Reputation: 3254
How do I find say the left edge of a movie clip?
Upvotes: 0
Views: 2043
Reputation: 1322
Try using getBounds or getRect methods of display object: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/DisplayObject.html#getBounds() http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/DisplayObject.html#getRect()
Upvotes: 3
Reputation: 3895
That depends on the movie clip position registration, which i believe defaults to its top left corner. All you have to do is get its x
and y
and then fiddle with adding its width
and/or height
to figure out what you need.
Upvotes: 0