|
Flash CS4 Resources |
document.addNewScene()Parameters
DescriptionMethod; 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. ExampleThe following example adds a new scene named myScene after the current scene in the current document. The variable success will be true when the new scene is created; false otherwise. var success = fl.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 "Scene 2". fl.getDocumentDOM().addNewScene(); |