Document.setelementtextattr() - 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

Note: You can't use this method to set values for read-only properties, such as
, and
element.top
Specifies the value to set in the specified Element property.
value
Returns
Nothing.
Description
Method; sets the specified
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
expected values, see
An integer value that specifies the index of the first character that is affected. This
startIndex
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:
Description
Method; sets the specified
For a list of property names and allowable values, see
on page
299. If the optional parameters are not passed, the method sets the style of the currently
selected text range, or the whole text field if no text is selected. If only
method sets that character's attributes. If
the attributes on the characters starting from
paragraph styles are specified, all the paragraphs that fall within the range are affected.
.
element.left
property on selected object(s) in the document. This method
Element
"Property summary for the TextAttrs object" on page
if at least one text attribute property is changed;
true
property of the selected text items to the specified value.
textAttrs
property to change.
TextAttrs
property. For a list of property names and
TextAttrs
"Property summary for the TextAttrs object"
and
startIndex
endIndex
up to, but not including,
startIndex
element.elementType
299.
otherwise.
false
is passed, the
startIndex
are passed, the method sets
endIndex
Document object
,
. If
117

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents