c# 加载flash脚本
This tutorial shows you how to create a great loader animation. Download the sample files here.
本教程向您展示如何创建出色的加载器动画。 在此处下载示例文件 。
1. Create some short, static text, and name it "Loading". Convert this to a symbol, and call it "loader".
1.创建一些简短的静态文本,并将其命名为“正在加载”。 将此转换为符号,并将其称为“加载程序”。
2. Use loader symbol to create a rotating movieclip. Give this movieclip an instance name of "ball".
2.使用加载器符号创建旋转的影片剪辑。 为该动画片段指定实例名称“ ball”。
3. Create three key frames in the scene. In the first, insert the action:
3.在场景中创建三个关键帧。 在第一个中,插入操作:
//initialize variables.
i = 0;
a = 10;
4. In the second key frame, insert the action:
4.在第二个关键帧中,插入动作:
if (Number(i)<10)
{
//Create duplicate movie clip
duplicateMovieClip("ball", "ball" add i, i);
//decrease the alpha of the dupliacte movieclip
setProperty("ball" add i, _alpha, 50-(i*(50/a)));
i = Number(i)+1;
}
5. In the third key frame, insert the action:
5.在第三个关键帧中,插入操作:
gotoAndPlay(2);
Now, play the movie!
现在,播放电影!
c# 加载flash脚本