Flash ActionScript Learning: Let the animation stop

Source: Internet
Author: User

  Demo Effect:

Click here to download the source file

  Tutorial : Beginners Flash friends, find their own animation is a cycle without stopping, how to make their own animation to stop it? Now let's use a very simple example to illustrate the problem.

1. Draw a circle on the stage.
2. Insert key frame at 40 hardwood.
3, drag the circle to another location.
4, select the first frame, open the property panel, open the Tween drop-down menu, select the shape, so that completes a simplest timeline animation. As shown in figure:

5, select the 40th frame, open the following action panel (if there is no action panel below, then click the Window | | Development Panel | | Action, or press F9).

6, in the Action writing panel input

Stop ();

As shown in figure:

7, press Enter+ctrl or select Menu Control | | Test the movie.

We will find that the circle to the right, after listening to, we can be popular to understand this: when the time axis playback head to 40 frames, get stop command, it stopped at 40 frame will not move.

Practice Advice : Please continue to add a gotoplay (*) or gotostop (*) meaning to the Stop command frame. When the 40th frame gets stopped command, continue to accept the command: Jump and play which frame, jump and stop in which frame, in order to deepen the perceptual knowledge of AS.



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.