Chapter 17: flash object (fl), Flash object (fl) – Adobe Extending Flash Professional CS4 User Manual
Page 240

218
Chapter 17: flash object (fl)
Availability
Flash MX 2004.
Description
The flash object represents the Flash application. You can use
flash
or
fl
to refer to this object. This documentation
uses
fl
in code samples throughout.
Method summary
The following methods can be used with the flash object:
Method
Description
Registers a function to be called when a specific event is received.
Opens a File Open or File Save system dialog box and lets the user
specify a file to be opened or saved.
Displays a Browse for Folder dialog box and lets the user select a folder.
Copies the specified string to the Clipboard.
Closes all open documents, displaying the Save As dialog box for any
documents that were not previously saved.
Closes all the SWF files that were opened with Control
> Test Movie.
Closes the specified document.
Opens a new document and selects it.
Downloads from the Version Cue server the latest version of a file that
is not currently open.
Checks whether a file already exists on disk.
Lets you target a specific file by using its unique identifier.
Returns an array of integers that represent the position of a document
in the
fl.documents
array.
Exposes elements with instance names that match specified text.
Exposes elements of a specified element type in a document.
Returns an integer that represents the number of bytes being used in
a specified area of Flash.exe memory.
) of the currently active
document.
Determines whether a specified font is installed.
Maps an escaped Unicode URL to a UTF-8 or MBCS URL.
Opens a Flash (FLA) document for editing in a new Flash Document
window and gives it focus.
Opens a script (JSFL, AS, ASC) or other file (XML, TXT) in the Flash text
editor.