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两次。 瞧! 您的预加载器已完成。
c# 加载flash脚本