Document.addnewscene() - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

Example
The following example adds a new rectangle with no round corners within the specified
coordinates.
flash.getDocumentDOM().addNewRectangle({left:0,top:0,right:100,bottom:100},0);
The following example adds a new rectangle with no round corners and without a fill.
flash.getDocumentDOM().addNewRectangle({left:0,top:0,right:100,bottom:100},0,
true);
The following example add a new rectangle no round corners and without a stroke.
flash.getDocumentDOM().addNewRectangle({left:0,top:0,right:100,bottom:100},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:
Description
Method; adds a new 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.
Example
The following example adds a new scene named
document. The variable
var success = flash.getDocumentDOM().addNewScene("myScene");
The following example adds a new scene using the default naming convention. If only one scene
exists, the newly created scene is named
fl.getDocumentDOM().addNewScene();
70
Chapter 3: Objects
if the scene is added successfully;
true
Timeline object
will be
success
false
) as the next scene after the currently selected scene
after the current scene in the current
myScene
when the new scene is created;
true
"Scene 2".
otherwise.
otherwise
false

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents