“Be inspired, enjoy your work, keep learning and never forget to play.” — gskinner

Using code to play MovieClips in reverse and/or play them on a different frame rate.

Posted: October 24th, 2007 | Author: Ivan Valadares | Filed under: Actionscript3, Tutorial | 1 Comment »

One easy way to play movies clips reversed is to affect the currentFrame propriety. The problem is that currentFrame is read only, so you need to make a custom class that extends MovieClip where you can assign values to that propriety.

The class:

The MovieClip:
movieclipanimation.jpg

So with Tweener you can now play with your MovieClip. You can play it on reverse, play it on a different frame rate, and you can even use some crazy transitions.

Example:
example1.zip


One Comment on “Using code to play MovieClips in reverse and/or play them on a different frame rate.”

  1. 1 tufao said at 10:17 am on October 30th, 2007:

    Actually it’s not necessary to extend the MovieClip, you can use a special property of Tweener called “_frame” which will do just that. Example:

    Tweener.addTween(mc, {_frame:1, time:2, transition:”easeinoutquad”});

    It’s that simple! ;o)


Leave a Reply