PDA

View Full Version : getBounds?



V1SHAL
03-14-2007, 10:36 PM
Hello...

How would I determine the width of a movieclip after using a scaling tween class on it?

Using "movieclip._width" gives me the original width, not the new scaled width.

I'm guess this might involve the getBounds() method but that would only return the coordinates...not sure how to translate that into a width.

Thanks for the help.

BLiZZaRD
03-15-2007, 06:00 PM
after the transformation use "this._width"

Alternately you can do something like movieClip._width = newWidth then just use newWidth when ever it is needed.

That is if I get your meaning in the use of it :)