Document object
93
document.getElementProperty()
Availability
Flash MX 2004.
Usage
document.getElementProperty(
propertyName
)
Parameters
The name of the Element property for which to retrieve the value.
Returns
The value of the specified property. Returns
null
if the property is an indeterminate state, as
when multiple elements are selected with different property values. Returns
undefined
if the
property is not a valid property of the selected element.
Description
Method; gets the specified
Element
property for the current selection. See
“Property summary for
the Element object” on page 149
for a list of valid values. See
document.setElementProperty()
.
Example
The following example gets the
name
of the Element property for the current selection:
//elementName = the instance name of the selected object
var elementName = fl.getDocumentDOM().getElementProperty("name");
document.getElementTextAttr()
Availability
Flash MX 2004.
Usage
document.getElementTextAttr(
attrName
[
, startIndex
[
, endIndex
]] )
Parameters
attrName
A string that specifies the name of the
TextAttrs
property to be returned. For a list
of property names and expected values, see
“Property summary for the TextAttrs object”
on page 299
.
startIndex
An integer that specifies the index of first character, with 0 (zero) specifying the
first position. This parameter is optional.
endIndex
An integer that specifies the index of last character. This parameter is optional.
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 ...