Make button effect with flash

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.