0
function timerHandle (e:TimerEvent)
{
    //loader.length = loader.length + 10

    txt_time.text = time;
    time--;
}

Loader 是一个矩形影片剪辑。我需要随着时间延长它作为进度条。请帮忙。

4

1 回答 1

0

您可以将 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/

于 2013-11-15T04:50:37.200 回答