
Document object
77
Example
The following example adds a new rectangle with no rounding on the corners within the
specified coordinates; it is 100 pixels in width and in height:
flash.getDocumentDOM().addNewRectangle({left:0,top:0,right:100,bottom:100},
0);
The following example adds a new rectangle with no rounding on the corners and without a
fill; it is 100 pixels in width and 200 in height:
flash.getDocumentDOM().addNewRectangle({left:10,top:10,right:110,bottom:210
},0, true);
The following example adds a new rectangle with no rounding on the corners and without a
stroke; it is 200 pixels in width and 100 in height:
flash.getDocumentDOM().addNewRectangle({left:20,top:20,right:220,bottom:120
},0, false, true);
document.addNewScene()
Availability
Flash MX 2004.
Usage
document.addNewScene( [
name
] )
Parameters
name
Specifies the name of the scene. If you do not specify a name, a new scene name is
generated.
Returns
A Boolean value:
true
if the scene is added successfully;
false
otherwise.
Description
Method; adds a new scene (
Timeline object
) as the next scene after the currently selected
scene and makes the new scene the currently selected scene. If the specified scene name
already exists, the scene is not added and the method returns an error.
Содержание FLASH 8-EXTENDING FLASH
Страница 1: ...Extending Flash...
Страница 38: ...38 Top Level Functions and Methods...
Страница 532: ...532 Objects...
Страница 554: ...554 C Level Extensibility...