移动的方式和层的应用
来源:岁月联盟
时间:2006-11-09

首先,按Ctrl+M把工作区定义成300*165,按Ctrl+Shift+Alt+G显示格子,按Ctrl+Alt+G定位鼠标。然后,在工作区里画上一个红色的矩形,如左图。接着,把它定义成图形符号(Graphics Symbol),再在第三十帧的小方格里单击右键选择Insert Keyframe插入一个关键帧。
接下来的步骤十分关键,我们要在这里用到一个新的概念——层。由于Flash规定在一个层里只能有一个符号(Symbol)作各种效果,所以,当我们需要用到多个符号的时候,我们就需要定义多个层。下面,我们就来说说怎样定义新层。
如右图,在层区的Layer1上单击鼠标右键,选择菜单中的Insert Layer插入一个层,这时层区就会多了一个名为Layer2的层,如下图。


再创建一个新层Layer3,在Layer2层和Layer3层上象Layer1层那样也分别画上一个蓝色和一个黄色的矩形。同样也把他们变成符号,也在各层的第三十帧插入一个关键帧。在这里,告诉你一个小技巧,你在Layer2层上作图的时候,可以在层区Layer1和Layer3的小锁下点击一下,使小圆点变成金黄色的小锁(如右图)。这样,你在对第二帧修改的时候就不会影响其他帧了,这一个技巧再帧数比较多的情况下常常要用到。
经过这一步骤,最后的层区、工作区和Timeline区如下图所示。



工作区

在Layer1的第一帧的小方格里单击右键,选择Properties... -> Tweening -> Motion 把Rotate选项选Clockwise(顺时针),后面的文本框里填入想转的圈数,这里填入4。
在Layer2的第一帧的小方格里单击右键,选择Properties... -> Tweening -> Motion 把Rotate选项选Automatic(自动)。
在Layer3的第一帧的小方格里单击右键,选择Properties... -> Tweening -> Motion 把Rotate选项选Countclockwise(逆时针),后面的文本框里填入想转的圈数,这里填入4。
如下图。



好了,一切OK!按Ctrl+Enter看看效果。