154
Chapter 3: Objects
element.name
Availability
Flash MX 2004.
Usage
element.name
Description
Property; a string that specifies the name of the element, normally referred to as the Instance
name. If the value of
element.elementType
is
"shape"
, this property is ignored.
Example
The following example sets the Instance name of the first element in Frame 1, top layer to
"clip_mc":
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].name =
"clip_mc";
See the
element.elementType
example.
element.removePersistentData()
Availability
Flash MX 2004.
Usage
element.removePersistentData(
name
)
Parameters
name
A string that specifies the name of the data to remove.
Returns
Nothing.
Description
Method; removes any persistent data with the specified name that has been attached to the object.
Only symbols and bitmaps support persistent data.
Example
See
element.getPersistentData()
.
element.setPersistentData()
Availability
Flash MX 2004.
Usage
element.setPersistentData(
name
,
type
,
value
)
Summary of Contents for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Page 1: ...Flash JavaScript Dictionary ...
Page 16: ...16 Contents ...
Page 40: ...40 Chapter 2 Top level functions ...
Page 368: ...368 Chapter 3 Objects ...