Macromedia Flash - Zoom in / Zoom out with the button
This exercise will show you how to create a zoomed in and out Movie Clip using the buttons and Action Script in flash 8.
Step 1
Create a new flash file, select the Line Tool (N) and draw 'star' as shown below.
Step 2
Press Ctrl + A and then F8 key on the keyboard to convert 'star' into Movie Clip.
Step 3
When the new Movie Clip ('star') is still selected, open the Properties Panel (Ctrl + F3) and enter 'star'.
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
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.
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.
You should read it
- Which star lives the longest, brightest, biggest, ... in the universe?
- Replacement operations for home button on iPhone XS, and iPhone XS Max
- Change the default browser in Windows 10
- Instructions to disable Control Panel on Windows 7
- How to open Control Panel on Windows 10, 8.1, 7
- Create Button in CSS
- How to Become a Panel Beater
- Vsmart Star 3: Snapdragon 215, dual camera, 3500mAh battery, priced at 1.79 million
May be interested
- Macromedia Flash - Create a simple menuin this article, i will explain how to create a simple flash menu in flash 8 using the action script.
- Macromedia Flash - The spotlightjust a few simple steps in flash 8.0 you can create a nice effect: the spotlight effect.
- Macromedia Flash - Product image advertising effectsin this article, we will show you how to create a product advertising effect in flash. you can use this effect when you need to introduce a new product launch or in banner ads. this effect does not need to use any action script code but only created with mask in flash.
- Macromedia Flash - Create menu effectsthis lesson will show you how to create a flash menu with the effect when moving the mouse. to create this post, you will have to use the action script code.
- Macromedia Flash - Vivid photo effectsthrough this tutorial, you will learn how to create a vivid photo effect with some basic flash tips. this article does not need to use action script code.
- Macromedia Flash - City photo zoom effectthis tutorial will show you how to enlarge any image with some flash tips. in this example, we will use a city photo, but you can use these same effects for any image. this article is completely
- Macromedia Flash - Create flash menu with soundin this flash tutorial, we will guide you to create a dynamic flash menu with sound. you can use this menu on any website.
- Macromedia Flash - Create analog clock in Flashthis tutorial will show you how to create a real working clock using flash effects.
- Macromedia Flash - Self-designed animated menuthis tutorial is quite complicated but we will try to explain it in the easiest way. make sure you follow the instructions step by step.
- Macromedia Flash - Text presentation in Flashin this article, we will learn how to create a text presentation in flash using some special flash tips.