Question and answer: How to make the MC inverted in Flash animation film?

Source: Internet
Author: User
Flash Animation

Q: How to make the MC inverted, from 100 frames to the 1th frame stop, through the button to control the normal playback of the MC, or inverted MC? As shown in figure:

For:

Method 1, add the code to the inverted button to go on it: (Give up the day to laugh)

On (release)
{
_root.onenterframe = function ()
{
if (This.mc._currentframe = 1)
{
Delete This.onenterframe;
}
This.mc.prevFrame ();
}
}

Method 2, (Ultimate hate to provide)

A_btn.onrelease = function () {
Delete This._parent.mc.onenterframe;
This._parent.mc.play ();
};
B_btn.onrelease = function () {
This._parent.mc.stop ();
This._parent.mc.onenterframe = function () {
This.prevframe ();
};
};

Effect:

Source file:

Method 3, (provided by Kingofkofs)

Source file:

In fact, the above three kinds of effect is the same, as long as you know that Flash has a forward and return the frame function can be, specific how to achieve is to see where you put.



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.