PHOTOGRAPHERSONLINEPROOFING.COM

gun proof marks - www.photographersonlineproofing.com

Menu


2. Align the left edge of the home button with the left edge of the photo frame on the Stage. Align the right edge of the section 6 button


with the right edge of the photo frame. 3. Select all seven buttons. In the Align panel, deselect To Stage, click the Distribute Horizontal Center button, and then click the Align Top Edge button. 4. With all the buttons still selected, in the Property inspector, enter 77 for the Y value.   Activating the Buttons You've created buttons that include rollover states. Frame 10 of the Actions layer in the main Timeline already includes ActionScript that listens for the button clicks and displays the appropriate image when the button is released. Now the buttons need to have the names used in the ActionScript. To call the button, the ActionScript refers to an instance name. You'll name each button instance to match the ActionScript references. You'll also animate the marker symbol you created earlier to identify the active selection. Naming Instances Name each button instance so that it can be referenced by ActionScript. 1. Select the Buttons layer, and then click the pasteboard to deselect the buttons. 2. Select the first button on the Stage. 3. Type btn1_btn in the Instance Name box. [View full size image] 4. Name each of the other buttons btn2_btn, btn3_btn, btn4_btn, btn5_btn, btn6_btn, and btn7_btn. 5. Lock the Buttons layer. Labeling Frames You can label frames in Flash to make it easier to reference frames in ActionScript, and to give you more flexibility. If you want to change the frame at which an action occurs, you can move the label, rather than having to locate every reference to the frame number in the script. You'll label frames to use when animating the selection marker for the buttons. 1. Select frame 10 on the Marker layer. Then select the marker on the Stage. 2. In the Property inspector, type marker_mc in the Instance Name box. [View full size image] 3. Double-click the marker_mc instance on the Stage to edit the symbol. 4. Click the Insert Layer icon. 5. Name the new layer Labels, and rename Layer 1 Active Selection. [View full size image] 6. Select frame 49 in both the Labels and Active Selection layers, and press F5 to insert frames. 7. Select frame 7 in the Labels layer, and press F6 to insert a keyframe. 8. In the Labels layer, add keyframes to frames 14, 21, 28, 35, and 42.