User Guide
72 Chapter 3: Objects
Example
The following example aligns objects to left and to the Stage. This is equivalent to turning on the
To Stage setting in the Align panel and clicking the Align to Left button:
fl.getDocumentDOM().align("left", true);
document.allowScreens()
Availability
Flash MX 2004.
Usage
document.allowScreens()
Parameters
None.
Returns
Returns a Boolean value: true if dom.screenOutline can be used safely; false otherwise.
Description
Method; Used before using the document.screenOutline property. If this method returns the
value
true, you can safely access the screenOutline property. Flash displays an error if you
access the
screenOutline property in a document without screens.
Example
The following example determines whether screens methods can be used in the current
document:
if(fl.getDocumentDOM().allowScreens()) {
fl.trace("screen outline is available.");
}
else {
fl.trace("whoops, no screens.");
}
document.arrange()
Availability
Flash MX 2004.
Usage
document.arrange( arrangeMode )
Parameters
arrangeMode
Specifies the direction in which to move the selection. The valid values for
arrangemode are "back", "backward", "forward", and "front". It provides the same
capabilities as these options provide on the Modify >Arrange menu.