Document object
99
Example
The following example imports the
"mySwf.swf"
file from the Flash Configuration folder:
fl.getDocumentDOM().importSWF(fl.co"mySwf.swf");
document.library
Availability
Flash MX 2004.
Usage
document.library
Description
Read-only property; the
library object
for a document.
Example
The following example gets the library for the currently focused document:
var myCurrentLib = fl.getDocumentDOM().library;
Assuming the currently focused document is not
fl.documents[1]
, the following example gets
the library for a non-focused library or for a library you opened using File > Open as external
library:
var externalLib = fl.documents[1].library;
document.livePreview
Availability
Flash MX 2004.
Usage
document.livePreview
Description
Property; a Boolean value that specifies if 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;
Содержание FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Страница 1: ...Flash JavaScript Dictionary ...
Страница 16: ...16 Contents ...
Страница 40: ...40 Chapter 2 Top level functions ...
Страница 368: ...368 Chapter 3 Objects ...
Страница 386: ...386 Chapter 4 C Level Extensibility ...