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
Specifies the name of the scene. If you do not specify a name, a new scene name is
name
generated.
Returns
A Boolean value:
true
Description
Method; adds a new scene (
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.
if the scene is added successfully;
Timeline object
otherwise.
false
) as the next scene after the currently selected
Document object
77
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?