MotionBlurClip Class

REPOSTED BECAUSE IT WAS LOST IN THE HACKING, although i got this from another forum i posted and it was an edited version so it lost some of the stuff i wrote in the original on here, sorry if i forgot anything.

Inspired by the thread here:

http://www.kirupa.com/forum/showthread.php?t=226930

and because I’ve just started learning OOP, I decided to convert Anogar’s code (hope you dont mind) into a class.

since I am new to OOP, if anyone looking at this has some ideas and ways to make this better or sees something I did wrong, by all means point them out and i’m definitely more than willing to adjust it and make a new version update. Thanks in advance.

You will need the TweenExtended class by square circle (www.sqcircle.com/downloads) to work with this on your own (unless you want to reprogram it to work with the Macromedia tweens, which you can also do, I prefer to use that class though because of the multiple property tweening).

EXAMPLE: http://blog.reintroducing.com/source/flash/motionblurclip/MotionBlurClip.swf

as you can see in the example, i changed the tween type after the first tween using a setter for the tweenType. you don’t have to do this. also, it fires off an event when the tween is finished.

Enjoy.

EDIT: This hasn’t really been thoroughly tested, so if you put like 100 of them on stage and it eats your processor, not my fault

EDIT 2: I forgot to thank TheCanadian who helped me figure out a tricky part of the code (tricky to me at least) and Mike Kellogg (www.facefaceface.com) for helping me figure out a bit with the TweenExtended class and passing parameters to other functions.