Description
Method; sets the specified
method does nothing if there is no selection.
Example
The following example sets the width of all selected objects to 100 and the height to 50:
fl.getDocumentDOM().setElementProperty("width", 100);
fl.getDocumentDOM().setElementProperty("height", 50);
document.setElementTextAttr()
Availability
Flash MX 2004.
Usage
document.setElementTextAttr( attrName, attrValue [, startIndex [,
endIndex]] )
Parameters
A string that specifies the name of the
attrName
The value to which to set the
attrValue
and expected values, see
An integer value that specifies the index of the first character that is affected.
startIndex
This parameter is optional.
An integer value that specifies the index of the last character that is affected. This
endIndex
parameter is optional.
Returns
A Boolean value:
true
Description
Method; sets the specified
value. For a list of property names and allowable values, see
TextAttrs object" on page
style of the currently selected text range, or the whole text field if no text is selected. If only
is passed, the method sets that character's attributes. If
startIndex
are passed, the method sets the attributes on the characters starting from
endIndex
up to, but not including,
startIndex
paragraphs that fall within the range are affected.
148
Objects
property on selected object(s) in the document. This
Element
TextAttrs
"Property summary for the TextAttrs object" on page
if at least one text attribute property is changed;
property of the selected text items to the specified
textAttrs
456. If the optional parameters are not passed, the method sets the
endIndex
property to change.
TextAttrs
property. For a list of property names
"Property summary for the
startIndex
. If paragraph styles are specified, all the
456.
otherwise.
false
and
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?