0
function timerHandle (e:TimerEvent)
{
//loader.length = loader.length + 10
txt_time.text = time;
time--;
}
加载程序是一个矩形的影片剪辑。我需要随着时间延长它作为进度条。 请帮助。如何在ActionScript3中随时间缩放矩形?
function timerHandle (e:TimerEvent)
{
//loader.length = loader.length + 10
txt_time.text = time;
time--;
}
加载程序是一个矩形的影片剪辑。我需要随着时间延长它作为进度条。 请帮助。如何在ActionScript3中随时间缩放矩形?
可以使用TweenLite的代码动画,它更容易处理,所以在TweenLite的代码情况下对子级是:
//rectangle_mc is the rectangle movieclip or sprite
//1 is animation time in seconds
TweenLite.to(rectangle_mc, 1, {scaleX:2, scaleY:2});
你可以在这里找到库: http://www.greensock.com/tweenlite/
难道将scaleX不适合你? –