User Guide
108 Objects
Example
The following example sets the areChildrenAccessible variable to the value of the
forceSimple property; a value of false means the children are accessible:
var areChildrenAccessible = fl.getDocumentDOM().forceSimple;
The following example sets the forceSimple property to allow the children of the document
to be accessible:
fl.getDocumentDOM().forceSimple = false;
document.frameRate
Availability
Flash MX 2004.
Usage
document.frameRate
Description
Property; a float value that specifies the number of frames displayed per second when the
SWF file plays; the default is 12. Setting this property is the same as setting the default frame
rate in the Document Properties dialog box (Modify > Document) in the FLA file.
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.