Document.library; Document.livepreview - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

Example
The following example imports the
fl.getDocumentDOM().importSWF(fl.configURI+"mySwf.swf");

document.library

Availability
Flash MX 2004.
Usage
document.library
Description
Read-only property; the
Example
The following example gets the library for the currently focused document:
var myCurrentLib = fl.getDocumentDOM().library;
Assuming the currently focused document is not
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
appear on the Stage as they will appear in the published Flash content, including their
approximate size. If set to
Example
The following example sets Live Preview to
fl.getDocumentDOM().livePreview = false;
"mySwf.swf"
library object
for a document.
, components appear only as outlines. The default value is
false
false
file from the Flash Configuration folder:
, the following example gets
fl.documents[1]
:
, components
true
.
true
Document object
99

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents