document.addNewText()
Availability
Flash MX 2004.
Usage
document.addNewText( boundingRectangle )
Parameters
boundingRectangle
pixels for
,
left
should be followed by calling
Returns
Nothing.
Description
Method; inserts a new empty text field. See
Example
The following example creates a new text field in the upper left corner of the Stage and then sets
the text string to
fl.getDocumentDOM().addNewText({left:0, top:0, right:100, bottom:100});
fl.getDocumentDOM().setTextString('Hello World!');
document.align()
Availability
Flash MX 2004.
Usage
document.align( alignmode [, bUseDocumentBounds ] )
Parameters
A string that specifies how to align the selection. Valid values for
alignmode
,
"left"
"right"
bUseDocumentBounds
bounds of the document. Otherwise, the method uses the bounds of the selected objects. The
default is
. This parameter is optional.
false
Returns
Nothing.
Description
Method; aligns the selection. See
document.setAlignToDocument()
Specifies the size and location of the text field by providing locations in
,
, and
top
right
bottom
setTextString()
":
"Hello World
,
,
,
"top"
"bottom"
"vertical center"
A Boolean value that, if set to
document.distribute()
, and
. The method applies the current text attributes. It
to populate the new text box.
document.setTextString()
, and
, causes the method to align to the
true
,
document.getAlignToDocument()
.
alignmode
"horizontal center"
.
Document object
are
.
71
Need help?
Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?