• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 2. Objects

Chapter 2. 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:

ObjectDescription
BitmapInstance objectThe BitmapInstance object is a subclass of the Instance object and represents a bitmap in a frame.
BitmapItem objectA BitmapItem object refers to a bitmap in the library of a document. The BitmapItem object is a subclass of the Item object.
CompiledClipInstance objectThe CompiledClipInstance object is a subclass of the Instance object.
ComponentInstance objectThe ComponentInstance object is a subclass of the SymbolInstance object and represents a component in a frame.
componentsPanel objectThe componentsPanel object, which represents the Components panel, is a property of the flash object (fl) and can be accessed by fl.componentsPanel.
Contour objectA Contour object represents a closed path of half edges on the boundary of a shape.
Document objectThe Document object represents the Stage.
drawingLayer objectThe drawingLayer object is accessible from JavaScript as a child of the flash object.
Edge objectThe Edge object represents an edge of a shape on the Stage.
Effect objectThe Effect object represents an instance of a timeline effect.
Element objectEverything that appears on the Stage is of the type Element.
Fill objectThe Fill object contains all the properties of the Fill color setting of the Tools panel or of a selected shape.
Filter objectThe Filter object contains all the properties for all filters.
flash object (fl)The flash object represents the Flash application.
FLfile objectThe FLfile object lets you write Flash extensions that can access, modify, and remove files and folders on the local file system.
folderItem objectThe folderItem object is a subclass of the Item object.
fontItem objectThe fontItem object is a subclass of the Item object.
Frame objectThe Frame object represents frames in the layer.
HalfEdge objectDirected side of the edge of a Shape object.
Instance objectThe Instance object is a subclass of the Element object.
Item objectThe Item object is an abstract base class.
Layer objectThe Layer object represents a layer in the timeline.
library objectThe library object represents the Library panel.
Math objectThe Math object is available as a read-only property of the flash object; see fl.Math.
Matrix objectThe Matrix object represents a transformation matrix.
outputPanel objectThe outputPanel object represents the Output panel, which displays troubleshooting information such as syntax errors.
Parameter objectThe Parameter object type is accessed from the screen.parameters array (which corresponds to the screen Property inspector in the Flash authoring tool) or by the componentInstance.parameters array (which corresponds to the component Property inspector in the authoring tool).
Path objectThe Path object defines a sequence of line segments (straight, curved, or both), which you typically use when creating extensible tools.
Project objectThe Project object represents a Flash Project (FLP) file.
ProjectItem objectThe ProjectItem object represents an item (file on disk) that has been added to a project.
Screen objectThe Screen object represents a single screen in a slide or form document.
ScreenOutline objectThe ScreenOutline object represents the group of screens in a slide or form document.
Shape objectThe 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.
SoundItem objectThe SoundItem object is a subclass of the Item object. It represents a library item used to create a sound.
Stroke objectThe Stroke object contains all the settings for a stroke, including the custom settings.
SymbolInstance objectThe SymbolInstance object is a subclass of the Instance object and represents a symbol in a frame.
SymbolItem objectThe SymbolItem object is a subclass of the Item object.
Text objectThe Text object represents a single text item in a document.
TextAttrs objectThe TextAttrs object contains all the properties of text that can be applied to a subselection. This object is a subclass of the Text object.
TextRun objectThe TextRun object represents a run of characters that have attributes that match all of the properties in the TextAttrs object.
Timeline objectThe Timeline object represents the Flash timeline, which can be accessed for the current document by fl.getDocumentDOM().getTimeline().
ToolObj objectA ToolObj object represents an individual tool in the Tools panel.
Tools objectThe Tools object is accessible from the Flash object (fl.tools).
Vertex objectThe Vertex object is the part of the shape data structure that holds the coordinate data.
VideoItem objectThe VideoItem object is a subclass of the Item object.
XMLUI objectThe XMLUI object provides the ability to get and set properties of an XMLUI dialog box, and accept or cancel out of one.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint