In this tutorial, the Triple series will share with you, how to apply some simple methods, you can make a very cool flash effect.
1. Here we just need to create a new ActionScript 2.0 document.
Next we create a new 300*360 pixel size document with a frame rate of 12fps.
2. Use the Rectangle tool to draw a rectangle with a white border, size is 300*300px; Next, we choose the right mouse click, in the pop-up menu select "Convert to Symbol" into "movie clips", the name can be arbitrarily named. But be aware of the name of its properties: "Viewer" as shown in the following figure :
3. Double-click the "movie clip" to edit the status. Before that you have to import the pictures into the library.
4. Press "F6" on the keyboard to insert a blank keyframe. Frames from Frames 2nd through 6th (each picture, one frame).
5. In this way we have 6 keyframes. We select the first frame and use the word tool to write "please".
6. We add an action in this frame. Right-click on the pop-up menu to select "Action" and add the action code:
Stop ();
Starting from the second frame to put the picture inside the library, the effect of the following figure:
7. Back to the scene, now let's do some thumbnails, drag the pictures out of the library and change them to 60*60, and put them underneath the rectangular movie clips.
Next, we convert these thumbnails into buttons. Press the "F8" button on the keyboard to select the button in the pop-up window.
8. Now the most magical step is coming out, hehe ....
Select the button, right-click in the menu, select Actions, and add the following code to the button:
On (release) {
Viewer.gotoandstop (x);
}
Here "X" is where the thumbnail is located in the viewer movie clip.
The effect we're going to do now is to show the picture when the mouse is over, so we'll add the following code to each button:
On (rollover) {
Viewer.gotoandstop (x);
}
On (RollOut) {
Viewer.gotoandstop (1);
}
Finally press Ctrl+enter to test.