Document.livepreview, Document.match() – Adobe Extending Flash Professional CS4 User Manual
Page 141

119
EXTENDING FLASH CS4 PROFESSIONAL
Document object
Description
Property; a string that contains a list of items in the document’s ActionScript 3.0 Library path, which specifies the
location of SWC files or folders containing SWC files. 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 adds the ../Files folder to the document’s Library path and then displays the path Library path in the
Output panel:
var myDoc = fl.getDocumentDOM()
fl.trace(myDoc.libraryPath);
myDoc.libraryPath = "../Files;" + myDoc.libraryPath;
fl.trace(myDoc.libraryPath);
See also
,
,
document.livePreview
Availability
Flash MX 2004.
Usage
document.livePreview
Description
Property; a Boolean value that specifies whether Live Preview is enabled. If set to
true
, components appear on the
Stage as they will appear in the published Flash content, including their approximate size. If set to
false
, components
appear only as outlines. The default value is
true
.
Example
The following example sets Live Preview to
false
:
fl.getDocumentDOM().livePreview = false;
document.match()
Availability
Flash MX 2004.
Usage
document.match(bWidth, bHeight [, bUseDocumentBounds])
Parameters
bWidth
A Boolean value that, when set to
true
, causes the method to make the widths of the selected items the same.