MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 120

Extending flash
Table of Contents

Advertisement

Description
Property; an integer that specifies the height of the document (Stage) in pixels.
Example
The following example sets the height of the Stage to 400 pixels:
fl.getDocumentDOM().height = 400;
See also
document.width
document.importFile()
Availability
Flash 8.
Usage
document.importFile(fileURI [, importToLibrary])
Parameters
A string, expressed as a file:/// URI, that specifies the path of the file to import.
fileURI
A Boolean value that specifies whether to import the file only into the
importToLibrary
document's library (
) or to also place a copy on the Stage (
). The default value is
true
false
.
false
Returns
A Boolean value that indicates whether the file was successfully imported.
Description
Method; imports a file into a document. This method performs the same operation as the
Import to Library or Import to Stage menu command. To import a publish profile, use
.
document.importPublishProfile()
Example
The following example lets the user browse for a file to import onto the Stage.
var dom = fl.getDocumentDOM();
var URI = fl.browseForFileURL("select", "Import File");
dom.importFile(URI);
See also
,
document.importSWF()
fl.browseForFileURL()
120
Objects

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents