User Guide
120 Chapter 3: Objects
Returns
Nothing.
Description
Method; sets the tint for the instance.
Example
The following example sets the tint for the selected instance to red with an opacity value of 50:
fl.getDocumentDOM().setInstanceTint(0xff0000, 50);
document.setSelectionBounds()
Availability
Flash MX 2004.
Usage
document.setSelectionBounds( boundingRectangle )
Parameters
boundingRectangle
A rectangle that specifies the new location and size of the selection. The
parameter specifies location as left and top pixel locations and size as width and height. See
document.setSelectionRect().
Returns
Nothing.
Description
Method; moves and resizes the selection in a single operation.
Example
The following example moves the current selection to 10, 20 and resizes it to 100, 200:
var l = 10;
var t = 20;
fl.getDocumentDOM().setSelectionBounds({left:l, top:t, right:(100+l),
bottom:(200+t)});
document.setSelectionRect()
Availability
Flash MX 2004.
Usage
document.setSelectionRect( rect [, bReplaceCurrentSelection] )
Parameters
rect
A rectangle object to set as selected.