步骤14:在场景中,将所有影帧长度都延长至60帧。新建层Action, 分别将帧1,10,20,30,40,50,60选中后按F6,将它们设为关键帧,每个关键帧的Actions设置为stop。帧标签(Frame Label)分别为:a,b,c,d,e,f,g。
分别将bu-sun, bu- flower&treetop,bu-tree, bu-sky&after,bu-front层的1,10,20,30,40,50,60帧设置为关键帧。如图14所示。

图14设置Actions、标签及关键帧 ·基于JSF开发实战经验 ·平民的三维 矢量的三维--Cool 3D 3.5实战 ·Atlas快速入门之实战Atlas ·无间地狱-实战技巧 Infernal ·VirtualDJ: 虚拟DJ 实战精彩 ·PS & CD商业实战:易拉罐设计 ·X3D实战基础讲座之一 ·风雨雷电→自然现象动画实战技术 ·实战:6GB内存运行Windows Vista! ·实战手记之4006维护细节 步骤15:在关键影帧b处,设置
按钮bu-sun的Actions:
on (release) {
tellTarget ("/sun") {
gotoAndStop (2);
}
}
"Times New Roman"'>鼠标放开{
告知目标(“/sun”){
"Times New Roman"'>跳至并停止(2);
}
}
按钮bu-flower的Actions:
on (release) {
tellTarget ("/flower") {
gotoAndStop (2);
}
}
"Times New Roman"'>鼠标放开{
告知目标(“/flower”){
"Times New Roman"'>跳至并停止(2);
}
}
用同样方法设置按钮bu-sky, bu-after, bu-front, bu-treetop和bu-tree的Actions。
步骤16:在关键帧c, d, e , f, g处分别设定按钮bu-sun, bu-flower, bu-sky, bu-after, bu-front, bu-treetop, bu-tree的Actions。控制电影片段分别跳向第3、4、5、6、7帧。
步骤17:设置选择颜色按钮的行为
按钮color1的Actions:
on (release) {
tellTarget ("/color") {
gotoAndStop (2);
}
gotoAndStop ("b");
}
"Times New Roman"'>鼠标放开{
"Times New Roman"'>告知目标(“/color”){
"Times New Roman"'>跳至并停止(2);
}
"Times New Roman"'>跳至并停止(“b”);
}
按钮color2的Actions:
on (release) {
tellTarget ("/color") {
gotoAndStop (3);
}
gotoAndStop ("c");
上一篇:flash遮罩特效实例精选(5)
下一篇:FlashMX 基础应用(1.5)
|