ssCore.Browser.setURL

Change the page displayed in the browser.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

url - Any valid URL. For files on the local file system use the 'file://' prefix. This parameter supports monikers.


Output Parameters:

No output parameters.


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.Browser.setURL( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.Browser.setURL( paramsObject );


Notes:

Browser.setURL can be called before Browser.open to set the initial URL or it can be called on-the-fly. Calling Browser.setURL will generate an onNavigate event. An event will not be generated before the browser window has been opened.


Examples:

ssCore.init();
ssDefaults.synchronousCommands = true;
ssCore.Browser.setPosition ({x:0, y:50});
ssCore.Browser.setSize ({width:Stage.width, height:Stage.height-50});
ssCore.Browser.setURL({url:"http://www.northcode.com"});
ssCore.Browser.open();