getBounds()
Top  Previous  Next


SWiSH Player Support
SWF5 or later - Supported Internally

Syntax
mySprite.getBounds(targetCoordinateSpace)

Arguments
targetCoordinateSpace: the path of the target timeline with the coordinate system used for a reference point. This refers to the X and Y coordinates of the target timeline. X=0 on the _root is not necessarily the same as X=0 inside a Sprite.

Returns
An object with the properties xMin, xMax, yMin, and yMax.

Description
Method; returns properites indicating the bounds of the specified Sprite for the targetCoordinateSpace argument. You can use localToGlobal or globalToLocal to convert the coordinates of the Sprite to Stage coordinates (localToGlobal) and vice versa with globalToLocal.