98
Chapter 3: Objects
Example
The following example sets the height of the Stage to 400 pixels:
fl.getDocumentDOM().height = 400;
document.importPublishProfile()
Availability
Flash MX 2004.
Usage
document.importPublishProfile(
fileURI
)
Parameters
fileURI
A string that specifies the path, expressed as a file://URL, of the XML file defining the
profile to import.
Returns
An integer that is the index of the imported profile in the profiles list. Returns -1 if the profile
cannot be imported.
Description
Method; imports a profile from a file.
Example
The following example imports the profile contained in the profile.xml file and displays its index
in the profiles list:
alert(fl.getDocumentDOM().importPublishProfile('file:///C|/Documents and
Settings/username/Desktop/profile.xml'));
document.importSWF()
Availability
Flash MX 2004.
Usage
document.importSWF(
fileURI
)
Parameters
fileURI
A string that specifies the URI, expressed as a file://URI, for the SWF file to import.
Returns
Nothing.
Description
Method; imports a SWF file into the document. Performs the same operation as using the Import
menu option to specify a SWF file.
Summary of Contents for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Page 1: ...Flash JavaScript Dictionary ...
Page 16: ...16 Contents ...
Page 40: ...40 Chapter 2 Top level functions ...
Page 368: ...368 Chapter 3 Objects ...