MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 163

Extending flash
Table of Contents

Advertisement

Returns
A Boolean value:
true
Description
Method; inserts a string of text. If the optional parameters are not passed, the existing text
selection is replaced; if the text object isn't currently being edited, the whole text string is
replaced. If only
startIndex
and
startIndex
endIndex
from
up to, but not including,
startIndex
Example
The following example replaces the current text selection with "Hello World":
var success = fl.getDocumentDOM().setTextString("Hello World!");
The following example inserts "hello" at position 6 of the current text selection:
var pass = fl.getDocumentDOM().setTextString("hello", 6);
The following example inserts "Howdy" starting at position 2 and up to, but not including,
position 7 of the current text selection:
var ok = fl.getDocumentDOM().setTextString("Howdy", 2, 7);
See also
document.getTextString()
document.setTransformationPoint()
Availability
Flash MX 2004.
Usage
document.setTransformationPoint( transformationPoint )
Parameters
transformationPoint
the following elements:
Shapes:
transformationPoint
(upper-left corner).
Symbols:
transformationPoint
located at the registration point.
if the text of at least one text string is set;
is passed, the string passed is inserted at this position. If
are passed, the string passed replaces the segment of text starting
A pair of floating-point numbers that specifies values for each of
is set relative to document. 0,0 is the same as the Stage
is set relative to the symbol's registration point. 0,0 is
false
.
endIndex
otherwise.
Document object
163

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents