Flash CS3 Documentation |
|||
| Extending Flash > Objects > Element object | |||
Flash MX 2004.
Everything that appears on the Stage is of the type Element. The following code example lets you select an element:
var el = fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0];
The following methods are available for the Element object:
|
Method |
Description |
|---|---|
|
Retrieves the value of the data specified by the |
|
|
Gets the value of the specified element's transformation point. |
|
|
Determines whether the specified data has been attached to the specified element. |
|
|
Removes any persistent data with the specified name that has been attached to the object. |
|
|
Stores data with an element. |
|
|
Sets the position of the element's transformation point. |
The following properties are available for the Element object:
|
Property |
Description |
|---|---|
|
Read-only; an integer that has a value greater than 0 for the depth of the object in the view. |
|
|
Read-only; a string that represents the type of the specified element. |
|
|
A float value that specifies the height of the element in pixels. |
|
|
Read-only; represents the Layer object on which the element is located. |
|
|
Read-only; a float value that represents the left side of the element. |
|
|
A Boolean value: |
|
|
A Matrix object. The |
|
|
A string that specifies the name of the element, normally referred to as the Instance name. |
|
|
An integer or float value between -180 and 180 that specifies the object's clockwise rotation, in degrees. |
|
|
A float value that specifies the x scale value of symbols, drawing objects, and primitive rectangles and ovals. |
|
|
A float value that specifies the y scale value of symbols, drawing objects, and primitive rectangles and ovals. |
|
|
A Boolean value that specifies whether the element is selected or not. |
|
|
A float value between -180 and 180 that specifies the x skew value of symbols, drawing objects, and primitive rectangles and ovals. |
|
|
A float value between -180 and 180 that specifies the y skew value of symbols, drawing objects, and primitive rectangles and ovals. |
|
|
Read-only; top side of the element. |
|
|
A floating-point number that specifies the x value of the selected element's transformation point, within the coordinate system of the element's parent. |
|
|
A floating-point number that specifies the y value of the selected element's transformation point, within the coordinate system of the element's parent. |
|
|
A float value that specifies the width of the element in pixels. |
|
|
A float value that specifies the x value of the selected element's registration point. |
|
|
A float value that specifies the y value of the selected element's registration point. |
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/00004064.html