User Guide

90 Chapter 3: Objects
Example
The following example sets the frame rate to 25.5 frames per second:
fl.getDocumentDOM().frameRate = 25.5;
document.getAlignToDocument()
Availability
Flash MX 2004.
Usage
document.getAlignToDocument()
Parameters
None.
Returns
A Boolean value: true if the preference is set to align the objects to the Stage; false otherwise.
Description
Method; identical to retrieving the value of the To Stage button in the Align panel. Gets the
preference that can be used for
document.align(), document.distribute(),
document.match(), and document.space() methods on the document. See
document.setAlignToDocument().
Example
The following example retrieves the value of the To Stage button in the Align panel. If the return
value is
true, the To Stage button is active; otherwise, it is not.
var isAlignToDoc = fl.getDocumentDOM().getAlignToDocument();
fl.getDocumentDOM().align("left", isAlignToDoc);
document.getCustomFill()
Availability
Flash MX 2004.
Usage
document.getCustomFill( [ objectToFill ] )
Parameters
objectToFill
A string that specifies the location of the fill object. The following values are
valid:
"toolbar", which returns the fill object of the toolbar and Property inspector
"selection", which returns the fill object of the selection
If you omit this parameter, the default value is
"selection". If there is no selection, the method
returns
undefined. This parameter is optional.