Flash CS3 Documentation |
|||
| Extending Flash > Objects > flash object (fl) | |||
Flash MX 2004.
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.
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 have been opened with Control > Test Movie. |
|
|
Closes the specified document. |
|
|
Closes the Flash Project (FLP) file that is currently open. |
|
|
Opens a new document and selects it. |
|
|
Creates a Flash Project (FLP) file with the specified name. |
|
|
Downloads from the Version Cue server the latest version of a file that is not currently open. |
|
|
Lets the script developer enable immediate visual updates of the timeline when executing effects. |
|
|
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 |
|
|
Exposes elements with instance names that contain specified text in a document. |
|
|
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. |
|
|
Retrieves the DOM (Document object) of the currently active document. |
|
|
Returns a Project object that represents the currently open project. |
|
|
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 the focus. |
|
|
Opens a Flash Project (FLP) file in the Flash authoring tool for editing. |
|
|
Opens a script (JSFL, AS, ASC) or other file (XML, TXT) in the Flash text editor. |
|
|
Quits Flash, prompting the user to save any changed documents. |
|
|
Reloads all effects descriptors defined in the user's Configuration Effects folder. |
|
|
Rebuilds the Tools panel from the toolconfig.xml file. Used only when creating extensible tools. |
|
|
Unregisters a function that was registered using |
|
|
Resets the global Classpath setting in the ActionScript 3.0 Settings dialog box to the default value. |
|
|
Resets the global Classpath setting in the ActionScript 2.0 Settings dialog box to the default value. |
|
|
Reverts the specified document to the version on the Version Cue server. |
|
|
Executes a JavaScript file. |
|
|
Saves all open documents, displaying the Save As dialog box for any documents that were not previously saved. |
|
|
Saves a version of the specified document to the Version Cue server. |
|
|
Saves the specified document as a FLA document. |
|
|
Displays the Save As dialog box for the specified document. |
|
|
Enables selection or editing of an element. |
|
|
Selects the specified tool in the Tools panel. |
|
|
Sets the active window to be the specified document. |
|
|
Lets you disable the warning about a script running too long. |
|
|
Synchronizes the specified document with the most current version on the Version Cue server, |
|
|
Sends a text string to the Output panel. |
The following properties can be used with the flash object.
|
Properties |
Description |
|---|---|
|
Read-only; an actionsPanel object. |
|
|
Read-only; the Effect object for the current effect being applied. |
|
|
A string that corresponds to the global Classpath setting in the ActionScript 3.0 Settings dialog box. |
|
|
Read-only; a compilerErrors object. |
|
|
Read-only; a componentsPanel object, which represents the Components panel. |
|
|
Read-only; a string that specifies the full path for the local user's Configuration folder as a platform-specific path. |
|
|
Read-only; a string that specifies the full path for the local user's Configuration directory as a file:/// URI. |
|
|
A Boolean value that specifies whether Contact Sensitive selection mode is enabled. |
|
|
Read-only; an array of strings that represent the various types of documents that can be created. |
|
|
Read-only; an array of strings that represent the file extensions of the types of documents that can be created. |
|
|
Read-only; an array of strings that represent the various types of templates that can be created. |
|
|
Read-only; an array of Document objects (see Document object) that represent the documents (FLA files) that are currently open for editing. |
|
|
Read-only; the drawingLayer object that an extensible tool should use when the user wants to temporarily draw while dragging. |
|
|
Read-only; an array of Effect objects (see Effect object), based on XML parameter file. |
|
|
Read-only; the Math object, which provides methods for matrix and point operations. |
|
|
Read-only; an array of the complete filenames in the Most Recently Used (MRU) list that the Flash authoring tool manages. |
|
|
Read-only; an array of the file types in the MRU list that the Flash authoring tool manages. |
|
|
A string that corresponds to the global Classpath setting in the ActionScript 2.0 Settings dialog box. |
|
|
An integer that represents the object drawing mode that is enabled. |
|
|
Read-only; reference to the outputPanel object. |
|
|
Read-only; a string that represents the path of the currently running JSFL script, expressed as a file:/// URI |
|
|
Read-only; an array of Tools objects. |
|
|
Read-only; the long string version of the Flash authoring tool, including platform. |
|
|
Read-only; an XMLUI object. |
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00004120.html