Flash timeline action and script execution order

Source: Internet
Author: User
Tags empty execution
Script | execution

This experience has been forgotten to send up, I believe many flasher do not know this, especially the flash Designer.

Flash scripts are executed prior to the timeline's actions. For example, you can create a new document, and then build two frames, the first frame randomly put a graphic, the second frame is an empty keyframe, and on the second frame of the time axis write gotoAndPlay (1);

Running the movie will find that the empty keyframe for the second frame has not been executed. Then you put the second frame of the gotoAndPlay (1); Delete, run the movie will be found, at this time the screen flashes in a flash.

Rotating graphics is one of the typical applications of this technique. If you use a rotation on the tween, you will find that the rotation to the end point will pause, making the rotation not smooth. At this point, in the last frame of the tween, add gotoAndPlay to the rotation starting frame, and you will find that the graph is spinning perfectly.

The use of low frame frequency (such as FPS) can be used to observe the more obvious effects when testing.



Related Article

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.