I did this little exercise to shrink a UIComponent from center. The
component is scaled down when a button is clicked and scaled back to
its original size when the mouse is released. It seems working fine
except that the component shifts a little bit to top-left with each click.

I cannot figure out which part goes wrong, but my guess in "shrinkBack"?

Here is the swf and the source code:

http://maohao.com/blogs/wordpress/TestSomething/bin-release/TestResize.html

Sorry about the cross/duplicate post in advance. I can't remember if I
post this or not... 

Have a good one.

Reply via email to