bReplaceCurrentSelection
selection. If it is
.
true
Returns
Nothing.
Description
Method; draws a rectangular selection marquee relative to the Stage, using the specified
coordinates. This is unlike
the object being edited.
This method is equivalent to dragging a rectangle with the arrow tool. An instance must be fully
enclosed by the rectangle to be selected.
Note: Repeating setSelectionRect() using the History panel or menu item repeats the step previous
to the setSelectionRect() operation.
See
document.selection
Example
In the following example, the second selection replaces the first one:
fl.getDocumentDOM().setSelectionRect({left:1, top:1, right:200, bottom:200});
fl.getDocumentDOM().setSelectionRect({left:364.0, top:203.0, right:508.0,
bottom:434.0}, true);
In the following example, the second selection is added to the first selection. This is the same as
the manual operation of holding down Shift and selecting a second object.
fl.getDocumentDOM().setSelectionRect({left:1, top:1, right:200, bottom:200});
fl.getDocumentDOM().setSelectionRect({left:364.0, top:203.0, right:508.0,
bottom:434.0}, false);
document.setStroke()
Availability
Flash MX 2004.
Usage
document.setStroke( color
Parameters
A color string in hexadecimal #rrggbb format (where r is red, g is green, and b is blue), a
color
hexidecimal color value (such as, 0xff0000), or an integer color value.
A floating point value that specifies the new stroke size for the selection.
size
A string that specifies the new type of stroke for the selection. Valid values are
strokeType
,
"hairline"
"solid"
A Boolean value, that if set to
, the method adds to the current selection. The default value, if not set, is
false
document.getSelectionRect()
and
document.setSelectionBounds()
,
,
size
,
,
"dashed"
"dotted"
strokeType )
,
,
"ragged"
"stipple"
, replaces the current
true
, in which the rectangle is relative to
.
, and
"hatched"
Document object
.
121
Need help?
Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?