c# 加载flash脚本_Flash脚本-加载程序简介

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!

现在,播放电影!

翻译自: https://www.sitepoint.com/flash-script-loader-intro/

c# 加载flash脚本

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值