beautypg.com

Document.livepreview, Document.loadcuepointxml() – Adobe Extending Flash Professional CS5 User Manual

Page 140

background image

118

EXTENDING FLASH PROFESSIONAL

Document object

Last updated 5/2/2011

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.externalLibraryPath

,

document.sourcePath

,

fl.libraryPath

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.loadCuepointXML()

Availability
Flash Professional CS5

Usage

document.loadCuepointXML(String URI)

Parameters

URI

String; the absolute path to the cue point XML file.

This manual is related to the following products: