Example
The following example adds a new scene named
after the current scene in the
myScene
current document. The variable
will be
when the new scene is created;
success
true
false
otherwise.
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
"Scene 2".
fl.getDocumentDOM().addNewScene();
document.addNewText()
Availability
Flash MX 2004.
Usage
document.addNewText( boundingRectangle )
Parameters
Specifies the size and location of the text field; for information on the
boundingRectangle
format of
, see
. It should be followed by
boundingRectangle
document.addNewRectangle()
calling
to populate the new text box.
document.seTextString()
Returns
Nothing.
Description
Method; inserts a new empty text field.
Example
The following example creates a new text field in the upper-left corner of the Stage and then
sets the text string to
":
"Hello World
fl.getDocumentDOM().addNewText({left:0, top:0, right:100, bottom:100});
fl.getDocumentDOM().setTextString('Hello World!');
See also
document.setTextString()
78
Objects
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?
Questions and answers