Extending Flash |
|
|
|
| Objects | |||
This chapter briefly describes each of the objects available in the Flash JavaScript application programming interface (JavaScript API). The objects are listed in alphabetical order in the following table:
|
Object |
Description |
|---|---|
|
The actionsPanel object represents the currently displayed Actions panel. |
|
|
The BitmapInstance object is a subclass of the Instance object and represents a bitmap in a frame. |
|
|
A BitmapItem object refers to a bitmap in the library of a document. The BitmapItem object is a subclass of the Item object. |
|
|
The CompiledClipInstance object is a subclass of the Instance object. |
|
|
The compilerErrors object, which represents the Compiler Errors panel, is a property of the flash object (fl) and can be accessed by |
|
|
The ComponentInstance object is a subclass of the SymbolInstance object and represents a component in a frame. |
|
|
The componentsPanel object, which represents the Components panel, is a property of the flash object (fl) and can be accessed by |
|
|
A Contour object represents a closed path of half edges on the boundary of a shape. |
|
|
The Document object represents the Stage. |
|
|
The drawingLayer object is accessible from JavaScript as a child of the flash object. |
|
|
The Edge object represents an edge of a shape on the Stage. |
|
|
The Effect object represents an instance of a timeline effect. |
|
|
Everything that appears on the Stage is of the type Element. |
|
|
The Fill object contains all the properties of the Fill color setting of the Tools panel or of a selected shape. |
|
|
The Filter object contains all the properties for all filters. |
|
|
The flash object represents the Flash application. |
|
|
The FLfile object lets you write Flash extensions that can access, modify, and remove files and folders on the local file system. |
|
|
The folderItem object is a subclass of the Item object. |
|
|
The fontItem object is a subclass of the Item object. |
|
|
The Frame object represents frames in the layer. |
|
|
Directed side of the edge of a Shape object. |
|
|
The Instance object is a subclass of the Element object. |
|
|
The Item object is an abstract base class. |
|
|
The Layer object represents a layer in the timeline. |
|
|
The library object represents the Library panel. |
|
|
The Math object is available as a read-only property of the flash object; see |
|
|
The Matrix object represents a transformation matrix. |
|
|
The outputPanel object represents the Output panel, which displays troubleshooting information such as syntax errors. |
|
|
The Oval object is a shape that is drawn using the Oval tool. To determine if an item is an Oval object, use |
|
|
The Parameter object type is accessed from the |
|
|
The Path object defines a sequence of line segments (straight, curved, or both), which you typically use when creating extensible tools. |
|
|
The Project object represents a Flash Project (FLP) file. |
|
|
The ProjectItem object represents an item (file on disk) that has been added to a project. |
|
|
The Rectangle object is a shape that is drawn using the Rectangle tool. To determine if an item is a Rectangle object, use |
|
|
The Screen object represents a single screen in a slide or form document. |
|
|
The ScreenOutline object represents the group of screens in a slide or form document. |
|
|
The Shape object is a subclass of the Element object. The Shape object provides more precise control than the drawing APIs for manipulating or creating geometry on the Stage. |
|
|
The SoundItem object is a subclass of the Item object. It represents a library item used to create a sound. |
|
|
The Stroke object contains all the settings for a stroke, including the custom settings. |
|
|
The SymbolInstance object is a subclass of the Instance object and represents a symbol in a frame. |
|
|
The SymbolItem object is a subclass of the Item object. |
|
|
The Text object represents a single text item in a document. |
|
|
The TextAttrs object contains all the properties of text that can be applied to a subselection. This object is a subclass of the Text object. |
|
|
The TextRun object represents a run of characters that have attributes that match all of the properties in the TextAttrs object. |
|
|
The Timeline object represents the Flash timeline, which can be accessed for the current document by |
|
|
A ToolObj object represents an individual tool in the Tools panel. |
|
|
The Tools object is accessible from the Flash object ( |
|
|
The Vertex object is the part of the shape data structure that holds the coordinate data. |
|
|
The VideoItem object is a subclass of the Item object. |
|
|
The XMLUI object provides the ability to get and set properties of an XMLUI dialog box, and accept or cancel out of one. |
|
|
|
|