MotionBrush: Free Actionscript Class
One idea that I had when creating the MotionSketch extension was that it could be used to do write-on effects. I was going to write an Actionscript class to demo this effect prior to releasing MotionSketch but ran out of time. So I tweaked a version of vCam to quickly demo the effect for the MotionSketch video tutorial. Thanks to a reader’s email, I was reminded that I still had yet to write this class. It’s now written and free to download. I’m calling it MotionBrush to keep it in the family with MotionSketch and MotionBlur. It’s super simple to use. Check out the video tutorial:
Download
MotionBrush.zip
Short URL:
http://ajar.pro/blog/?p=476





very cool, this has lots of potential uses, thanks!
Comment by samBrown — May 3, 2009 @ 5:35 am
Awesome. This is a great video for this class!
The window fog effect is my favourite. You can do so much with that.
Thanks for the great class!
Comment by Davy — May 3, 2009 @ 11:55 am
Thanks for the comments, guys! Glad you like it.
Comment by Justin — May 4, 2009 @ 5:45 am
I noticed a strange issue, when im recording animation image showed in swf is missing first keyframe of animation it shows at end od animation. It looks like this:
swf shows: 2,3,4,5 (these numbers are keyframes)
and at the end of animation it shows 1,2,3,4,5
In the tutorial I haven’t noticed any thing like this, what can be the reason?
Comment by sek — September 3, 2009 @ 2:01 pm
Sek,
I’m not entirely clear what’s happening based on the information that you’ve provided. Could you link to your source file?
Comment by Justin — September 3, 2009 @ 6:08 pm
Here’s the link: pszajna.ires.pl/test.zip
Comment by sek — September 7, 2009 @ 6:29 am
Thanks, Sek. I’ve figured out the issue. I’ve changed the event listener from ENTER_FRAME to EXIT_FRAME to catch the first frame. The original download link above should direct you to the latest version (0.7.0).
Comment by Justin — September 10, 2009 @ 11:35 pm
Hi,
I’ve been looking for an easy to use write-on effect tool for a long time. So I’m thrilled to going to use your MotionBrush. My problem is I don’t manage to get the MotionBrush effect without having the MotionSketchtool installed, wich isn’t necessary so you say. (installing the motionsketch tool doesn’t work on my computer)
So without the tool installed but all the other instructions carefully followed these are the reported errors:
5001: The name of package ” does not reflect the location of this file. Please change the package definition’s name inside this file, or move the file. C:\Users\vaio\Desktop\vissen\com\ajarproductions\display\MotionBrush.as
5000: The class ‘com.ajarproductions.display.MotionBrush’ must subclass ‘flash.display.MovieClip’ since it is linked to a library symbol of that type.
Hope you understand this trouble!
Thankx,
Hes
Comment by Hes — November 10, 2009 @ 10:04 am
Hi Hes,
You should be able to use MotionBrush without MotionSketch.
I mistakedly omitted something on the last upload. Try downloading the new file (above) and let me know if that fixes it. Also, make sure you’re using Actionscript 3.
Comment by Justin — November 19, 2009 @ 8:21 pm
Hi Justin,
YES it works!! Thank you vey much…I’m really happy!!
Now I’m trying to find the optimal size oval and number of frames to get a natural penline. I’m using it to draw and write ‘on’ screen.
Thank you very much!!
(I’ll send you one of my results once I’m happy enough with it)
Hes
Comment by Hes — December 17, 2009 @ 10:23 am
[...] http://help.adobe.com/cs_CZ/AS3LCR/Flash_10.0/index.html?overview.html&all-classes.html *** http://ajarproductions.com/blog/2009/05/02/motionbrush/ http://www.actionscriptclasses.com/ *** [...]
Pingback by Poznámky « web-goodies — March 31, 2010 @ 9:07 am
Motionbrush is very useful I am trying on different things with it. Though I have only been playing around with it at this point maybe later I can use it for more practical applications. Thanks.
Comment by Illusion Mage Review — January 18, 2011 @ 8:48 pm
Thanks for the comment, Illusion Mage Review. I’d love to see what you come up with using MotionBrush.
Comment by Justin — January 20, 2011 @ 8:38 pm