
2.2 选择图形
若要在舞台上修改图形对象,则需要先选择对象,再对其进行修改。Flash提供了几种选择对象的方法。
2.2.1 选择工具
选择工具可以完成选择、移动、复制、调整矢量线条和色块的功能,是使用频率较高的一种工具。启用“选择”工具,有以下两种方法:
单击工具箱中的“选择”工具
;
按V键。
启用“选择”工具后,工具箱下方会出现如图2-3所示的按钮,利用这些按钮可以完成以下工作。

图2-3
“贴紧至对象”按钮:自动将舞台上两个对象定位到一起,一般制作引导层动画时可利用此按钮将关键帧的对象锁定到引导路径上。此按钮还可以将对象定位到网格上。
“平滑”按钮:可以柔化选择的曲线条。当选中对象时,此按钮变为可用。
“伸直”按钮:可以锐化选择的曲线条。当选中对象时,此按钮变为可用。
1. 选择对象
启用“选择”工具,在舞台中的对象上单击鼠标进行点选,如图2-4所示。按住Shift键,再点选对象,可以同时选中多个对象,如图2-5所示。
启用“选择”工具,在舞台中拖曳出一个矩形可以框选对象,如图2-6所示。

图2-4

图2-5

图2-6
2. 移动和复制对象
启用“选择”工具,点选中对象,如图2-7所示。按住鼠标左键不放,可直接拖曳对象到任意位置,如图2-8所示。
启用“选择”工具,点选中对象,按住Alt键,拖曳选中的对象到任意位置,选中的对象被复制,如图2-9和图2-10所示。

图2-7

图2-8

图2-9

图2-10
3. 调整向量线条和色块
启用“选择”工具,将鼠标移至对象,鼠标下方出现圆弧
,如图2-11所示。拖动鼠标,可对选中的线条和色块进行调整,如图2-12所示。

图2-11

图2-12
2.2.2 部分选取工具
启用“部分选取”工具,有以下两种方法:
单击工具箱中的“部分选取”工具
;
按A键。
启用“部分选取”工具,在对象的外边线上单击,对象上出现多个节点,如图2-13所示。可通过拖曳节点来调整控制线的长度和斜率,从而改变对象的曲线形状,如图2-14所示。

图2-13

图2-14
提示
若想增加图形上的节点,可选择“钢笔”工具在图形上单击。
在改变对象的形状时,“部分选取”工具的光标会产生不同的变化,其表示的含义也不同。
带黑色方块的光标:当鼠标放置在节点以外的线段上时,光标变为
,如图2-15所示。这时,可以移动对象到其他位置,如图2-16和图2-17所示。

图2-15

图2-16

图2-17
带白色方块的光标:当鼠标放置在节点上时,光标变为
,如图2-18所示。这时,可以移动单个的节点到其他位置,如图2-19和图2-20所示。

图2-18

图2-19

图2-20
变为小箭头的光标:当鼠标放置在节点调节手柄的尽头时,光标变为
,如图2-21所示。这时,可以调节与该节点相连的线段的弯曲度,如图2-22和图2-23所示。

图2-21

图2-22

图2-23
提示
在调整节点的手柄时,调整一个手柄,另一个相对的手柄也会随之发生变化。如果只想调整其中的一个手柄,按住Alt键再进行调整即可。
此外,我们还可以将直线节点转换为曲线节点,并进行弯曲度调节。选择“部分选取”工具,在对象的外边线上单击,对象上显示出节点,如图2-24所示。用鼠标单击要转换的节点,节点从空心变为实心,表示可编辑,如图2-25所示。
按住Alt键,用鼠标将节点向外拖曳,节点增加出两个可调节手柄,如图2-26所示。应用调节手柄可调节线段的弯曲度,如图2-27所示。

图2-24

图2-25

图2-26

图2-27
2.2.3 套索工具
应用套索工具可以按需要在对象上选取任意一部分不规则的图形。启用“套索”工具,有以下两种方法:
单击工具箱中的“套索”工具
;
按L键。
启用“套索”工具,在场景中导入一张位图,按Ctrl+B组合键,将位图进行分离。用鼠标在位图上任意勾选想要的区域,形成一个封闭的选区,如图2-28所示。松开鼠标左键,选区中的图像被选中,如图2-29所示。

图2-28

图2-29
在选择“套索”工具后,工具箱的下方出现如图2-30所示的按钮,利用这些按钮可以完成以下工作。
“魔术棒”按钮:以点选的方式选择颜色相似的位图图形。

图2-30
选中“魔术棒”按钮,将鼠标放在位图上,光标变为
,在要选择的位图上单击鼠标,如图2-31所示。与点取点颜色相近的图像区域被选中,如图2-32所示。

图2-31

图2-32
“魔术棒设置”按钮:可以用来设置魔术棒的属性,应用不同的属性,魔术棒选取的图像区域大小各不相同。
单击“魔术棒设置”按钮,弹出“魔术棒设置”对话框,如图2-33所示。
“阈值”选项:可以设置魔术棒的容差范围,输入数值越大,魔术棒的容差范围也越大。可输入数值的范围在0~200。
“平滑”选项:此选项中有4种模式可供选择。选择不同模式时,在魔术棒阈值数相同的情况下,魔术棒所选的图像区域也会产生轻微的不同。

图2-33
在“魔术棒设置”对话框中设置不同阈值后,如图2-34和图2-36所示,所产生的不同效果如图2-35和图2-37所示。

图2-34

图2-35

图2-36

图2-37
“多边形模式”按钮:可以用鼠标精确地勾画想要选中的图像。
选中“多边形模式”按钮,在图像上单击鼠标,确定第一个定位点,松开鼠标并将鼠标移至下一个定位点,再单击鼠标,用相同的方法直到勾画出想要的图像,并使选取区域形成一个封闭的状态,如图2-38所示。双击鼠标,选区中的图像被选中,如图2-39所示。

图2-38

图2-39