Element Object - MACROMEDIA FLASH 8-EXTENDING FLASH Manual

Extending flash
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().layers[0].frames[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.layer
element.left
CHAPTER 13
Description
Retrieves the value of the data specified by the
parameter.
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; represents the
element is located.
Read-only; a float value that represents the left side of the
element.
name
Layer object
on which the
Element object
Objects
193

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents