ssCore.ActiveX.setSize

Set the size of the ActiveX control window.


Availability:

First available in version 3.3 build 120.


Input Parameters:

object - The name of the ActiveX object used in the call to createObject.

width - Desired width of the object window in pixels.

height - Desired height of the object window in pixels.


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.ActiveX.setSize( 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.ActiveX.setSize( paramsObject );


Notes:

None.


Examples:

Set the ActiveX object to a fixed size.

ssCore.ActiveX.setSize({object:"MyBrowser", width:"320", width:"240"});

Set the ActiveX object to fill the stage. This does not keep the ActiveX object in sync with the size of the Stage, to do that you should use ssCore.ActiveX.setGuides.

ssCore.ActiveX.setSize({object:"MyBrowser", width:Stage.width, width:Stage.height});