mdm.Browser() This page was last modified over 30 day(s) ago and has 0 comment(s)


Back to Browser Class Summary

Availability
Windows, Mac OSX

Constructor
mdm.Browser(x:String, y:String, width:String, height:String, path:String, border:Boolean)

Parameters
x:String: this could be either integer based value like "0" or relative value based on screen coordinates like "l" "c" or "r"
y:String: this could be either integer based value like "150" or relative value based on screen coordinates like "t" "c" or "b"
width:String: this could be either absolute integer value like "640" or relative based on screen percentage like "100%"
height:String: this could be either absolute integer value like "480" or relative based on screen percentage like "50%";
path:String path to remote or local resource
border:Boolean - should embedded object have distinctive border frame

Returns
instance of newly created browser plugin

Description
Inserts browser instance using the specified parameters. Multiple instances can be created (Windows Only). On Windows instance of Internet Explorer is used and on Mac OS X instance of Safari browser is used.

Notes
AS1/AS2 usage:
browser = mdm.Browser("10", "10", "300", "10", "http://www.google.com", false);

Please note that AS1/AS2 object creation does not use "new" keyword


On Windows, Internet Explorer 5 or higher must be installed for this command to function correctly.

On the Mac OSX, Safari must be installed for this command to function correctly.

Multiple Browser instances and relative positioning is not available on the Mac OS X.

For transparent projectors closing your application with key combinations (e.g. Ctrl+F4) will only work if the Flash content is in focus.

The Browser Class is not available when Direct Wmode (Stage Video) is Enabled.

Example Code
//Creates a new instance with absolute positioning using any of String-convertion/creation methods:
var myBrowser:mdm.Browser = new mdm.Browser(new String(0),
String(0),
(400).toString(),
350+"",
"http://www.multidmedia.com",
true)

// above using variables references for x/y/width/height defined elsewhere
var myBrowser:mdm.Browser = new mdm.Browser(new String(x),
String(y),
width.toString(),
height+"",
"http://www.multidmedia.com",
true)

// creates instance of browser using relative values
// t = top
// b = bottom
// l = left
// r = right
// c = center
var myBrowser = new mdm.Browser("c", "c", "50%", "50%", "http://www.multidmedia.com", true)


AS1/AS2 usage:
browser = mdm.Browser("10", "10", "300", "10", "http://www.multidmedia.com", false);

// note that AS1/AS2 version of code does not call constructor with "new" keyword!!!

mdm.Browser Class Example Downloads
No Example Downloads Available


Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page