我经常缩放一个movieClip,需要根据它的大小将它放在屏幕上的某些地方。
缩放后,如何获得影片剪辑的宽度和高度?
trace(my_mc.width); /// would equal 333
/// This code makes my movie clip fit in the correct proportions.
my_mc.height = stage.stageHeight;
my_mc.scaleX = my_mc.scaleY;
/// Its been resized!
trace(my_mc.width); /// STILL equals 333
..
任何想法如何获得新的宽度和高度?