Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

Macromedia Flash - Zoom in / Zoom Out with the Button: Step

This exercise will show you how to create a zoomed in and out Movie Clip using the buttons and Action Script in flash 8.

Table of Contents

Macromedia Flash - Zoom in / Zoom Out with the Button: Step covers the essential facts behind the topic, including what changed, why it mattered, and how it affected users.

Step Overview

Step 1 Create a new flash file, select the LINE Tool (N) and draw 'star' as shown below.

Macromedia Flash - Zoom in / Zoom Out with the Button: Step

Step 2 Press Ctrl + A and then F8 key on the keyboard to convert 'star' into Movie Clip.

Macromedia Flash - Zoom in / Zoom Out with the Button: Step (2)

Step 3 When the new Movie Clip ('star') is still selected, open the Properties Panel (Ctrl + F3) and enter 'star'.

Macromedia Flash - Zoom in / Zoom Out with the Button: Step (3)

Step 4 Click Window > Components to open the Components Panel. Step 5 Then from Components Panel select Button and use the drag-and-drop operation to do the following

Macromedia Flash - Zoom in / Zoom Out with the Button: Step (4)

Step 6 When your button is still selected, from the Properties Panel, enter ButtonDecrease Step 7 Select the button and press Ctrl + D on the keyboard to duplicate the object. Step 8 On the newly duplicated Button object, change the name to ButtonIncrease. Step 9 Add a new layer with the name Action.

Macromedia Flash - Zoom in / Zoom Out with the Button: Step (5)

Step 10 Click on the first frame of the layer Action, open the Action Script Panel (F9) and enter the following script:

ButtonIncrease. OnRelease = function (): Void { with (star) { _xscale + = 7; _yscale + = 7; } }; ButtonDecrease. OnRelease = function (): Void { with (star) { _xscale - = 7; _yscale - = 7; } };

Press Ctrl + Enter to preview the product and download the complete file here if you don't have time to practice.

FAQ

What is the main topic of Macromedia Flash - Zoom in / Zoom Out with the Button: Step?

Macromedia Flash - Zoom in / Zoom Out with the Button: Step covers the essential facts behind the topic, including what changed, why it mattered, and how it affected users.

Why is Step important?

Step Overview Step 1 Create a new flash file, select the LINE Tool (N) and draw 'star' as shown below.

What should readers remember about Step?

Step 2 Press Ctrl + A and then F8 key on the keyboard to convert 'star' into Movie Clip.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.