c# 加载flash脚本_Flash脚本-简单的预加载器

c# 加载flash脚本

Download the sample files here.

在此处下载示例文件

1. Set up twolayers in a new movie. Name the first one "loader", and the second "picture".

1.在新电影中设置两个图层。 将第一个命名为“ loader”,第二个命名为“ picture”。

2. In the picture layer import a large picture of your choice, and drop it into the layer. Make it 5 frames long, and make the last frame a key frame. Then delete the first four frames, leaving only the fifth, and call this "end frame". Insert the stop(); action into this layer.

2.在图片层中导入您选择的大图片,然后将其放入图层中。 使其长5帧,最后一帧成为关键帧。 然后删除前四个帧,仅保留第五个,并将其称为“结束帧”。 插入stop(); 动作进入这一层。

3. Now go to the actions layer, and create two key frames.

3.现在转到动作层,并创建两个关键帧。

4. In the first key frame, insert the action:

4.在第一个关键帧中,插入操作:

ifFrameLoaded ("endframe")
{  
gotoAndPlay ("endframe");  
}

7. In the second key frame, insert the action:

7.在第二个关键帧中,插入动作:

gotoAndPlay (1);

8. Press Ctrl+Enter twice on your keyboard. Voila! Your preloader is complete.

8.按键盘上的Ctrl + Enter两次。 瞧! 您的预加载器已完成。

翻译自: https://www.sitepoint.com/script-simple-preloader/

c# 加载flash脚本

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值