Document.externallibrarypath, Document.forcesimple – Adobe Extending Flash Professional CS5 User Manual
Page 123
101
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
document.externalLibraryPath
Availability
Flash CS4 Professional.
Usage
document.externalLibraryPath
Description
Property; a string that contains a list of items in the document’s ActionScript 3.0 External library path, which specifies
the location of SWC files used as runtime shared libraries. Items in the string are delimited by semi-colons. In the
authoring tool, the items are specified by choosing File > Publish Settings and then choosing ActionScript 3.0 Script
Settings on the Flash tab.
Example
The following example sets the document’s External library path to "." and "../mySWCLibrary":
var myDocument = fl.getDocumentDOM();
myDocument.externalLibraryPath = ".;../mySWCLibrary";
fl.trace(myDocument.externalLibraryPath);
See also
document.forceSimple
Availability
Flash MX 2004.
Usage
document.forceSimple
Description
Property; a Boolean value that specifies whether the children of the specified object are accessible. This is equivalent
to the inverse logic of the Make Child Objects Accessible setting in the Accessibility panel. That is, if
forceSimple
is
true
, it is the same as the Make Child Object Accessible option being unchecked. If
forceSimple
is
false
, it is the
same as the Make Child Object Accessible option being checked.
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;