Element Object - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

Element object

Availability
Flash MX 2004.
Description
Everything that appears on the Stage is of the type Element. The following code example lets you
select an element:
fl.getDocumentDOM().getTimeline().frames[0].layers[0].elements[0];
Method summary for the Element object
The following methods are available for the Element object:
Method
element.getPersistentData()
element.hasPersistentData()
element.removePersistentData()
element.setPersistentData()
Property summary for the Element object
The following properties are available for the Element object:
Property
element.depth
element.elementType
element.height
element.left
element.locked
element.matrix
element.name
element.top
element.width
Description
Retrieves the value of the data specified by the
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.
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; a float value that represents the left side of the
element.
A Boolean value:
true
A
Matrix
object. The
matrix
are floating point values;
ty. a, b, c, d
coordinates.
A string that specifies the name of the element, normally referred
to as the Instance name.
Read-only; top side of the element.
A float value that specifies the width of the element in pixels.
if the element is locked;
has properties
a, b, c, d, tx
and
tx
Element object
CHAPTER 3
Objects
parameter.
name
otherwise.
false
, and
are
ty
149

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents