# MotionBlurClip Class

**URL:** <https://forum.kirupa.com/t/motionblurclip-class/193809>\
**Category:** open source\
**Created:** [July 18, 2006, 3:56pm UTC](https://forum.kirupa.com/t/motionblurclip-class/193809 "2006-07-18T15:56:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mprzybylski](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mprzybylski/32/613_2.png) [@mprzybylski](https://forum.kirupa.com/u/mprzybylski)\
**Post date:** [July 18, 2006, 3:56pm UTC](https://forum.kirupa.com/t/motionblurclip-class/193809/1 "2006-07-18T15:56:57Z")

</div>

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](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](http://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](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 ![](http://www.gotoandlearn.com/forum/images/smiles/icon_biggrin.gif)

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](http://www.facefaceface.com)) for helping me figure out a bit with the TweenExtended class and passing parameters to other functions.
