User Guide
222 Objects
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 throughout.
Method summary for the flash object
The following methods can be used with the flash object.
Method Description
fl.browseForFileURL() Opens a File Open or File Save system dialog box and lets the
user specify a file to be opened or saved.
fl.browseForFolderURL() Displays a Browse for Folder dialog box and lets the user
select a folder.
fl.closeAll() Closes all open documents, displaying the Save As dialog box
for any documents that were not previously saved.
fl.closeDocument() Closes the specified document.
fl.closeProject() Closes the Flash Project (FLP) file that is currently open.
fl.createDocument() Opens a new document and selects it.
fl.createProject() Creates a Flash Project (FLP) file with the specified name.
fl.enableImmediateUpdates() Lets the script developer enable immediate visual updates of
the timeline when executing effects.
fl.fileExists() Checks whether a file already exists on disk.
fl.findDocumentIndex() Returns an array of integers that represent the position of a
document in the
fl.documents array.
fl.getAppMemoryInfo() Returns an integer that represents the number of bytes being
used in a specified area of Flash.exe memory.
fl.getDocumentDOM() Retrieves the DOM (Document object) of the currently active
document.
fl.getProject() Returns a Project object that represents the currently open
project.
fl.mapPlayerURL() Maps an escaped Unicode URL to a UTF-8 or MBCS URL.
CHAPTER 16
Objects