Fl.objectdrawingmode, Fl.opendocument() – Adobe Extending Flash Professional CS4 User Manual
Page 263
241
EXTENDING FLASH CS4 PROFESSIONAL
flash object (fl)
fl.trace("Number of recently opened files: " + fl.mruRecentFileListType.length);
for (i = 0; i < fl.mruRecentFileListType.length; i++) fl.trace("type: " +
fl.mruRecentFileListType[i]);
fl.objectDrawingMode
Availability
Flash 8.
Usage
fl.objectDrawingMode
Description
Property; a Boolean value that specifies whether the object drawing mode is enabled (
true
) or the merge drawing
mode is enabled (
false
).
Example
The following example toggles the state of the object drawing mode:
var toggleMode = fl.objectDrawingMode;
if (toggleMode) {
fl.objectDrawingMode = false;
} else {
fl.objectDrawingMode = true;
}
fl.openDocument()
Availability
Flash MX 2004.
Usage
fl.openDocument(fileURI)
Parameters
fileURI
A string, expressed as a file:/// URI, that specifies the name of the file to be opened.
Returns
The
for the newly opened document, if the method is successful. If the file is not found or is not a
valid FLA file, an error is reported and the script is cancelled.
Description
Method; opens a Flash document (FLA file) for editing in a new Flash Document window and gives it focus. For a user,
the effect is the same as selecting File
> Open and then selecting a file. If the specified file is already open, the window
that contains the document comes to the front. The window that contains the specified file becomes the currently
selected document.