# Custom Paint Brush Effect

**URL:** <https://forum.kirupa.com/t/custom-paint-brush-effect/185123>\
**Category:** flash\
**Created:** [April 11, 2006, 5:50am UTC](https://forum.kirupa.com/t/custom-paint-brush-effect/185123 "2006-04-11T05:50:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![psx2girl](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@psx2girl](https://forum.kirupa.com/u/psx2girl)\
**Post date:** [April 11, 2006, 5:50am UTC](https://forum.kirupa.com/t/custom-paint-brush-effect/185123/1 "2006-04-11T05:50:48Z")

</div>

Hi all,

I am trying to make a drawing application in Flash that that you can paint on using a custom “brush”, and not use the default lines that are made by lineTo. The idea I had was to create a brush movie clip, and as the mouse moves duplicate it and place it at the mouse location. However, the problem arises that I often get large gaps in between movie clips if I move the mouse fast enough (which is more like normal speed for me).

Can anyone help me out in solving this problem, or offer a different solution?

Thanks !

---

<div class="post-metadata">

**Author:** ![Uli](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@Uli](https://forum.kirupa.com/u/Uli)\
**Post date:** [April 11, 2006, 11:46am UTC](https://forum.kirupa.com/t/custom-paint-brush-effect/185123/2 "2006-04-11T11:46:02Z")

</div>

i guess the solution would be to increase the framerate…

---

<div class="post-metadata">

**Author:** ![psx2girl](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@psx2girl](https://forum.kirupa.com/u/psx2girl)\
**Post date:** [April 11, 2006, 8:06pm UTC](https://forum.kirupa.com/t/custom-paint-brush-effect/185123/3 "2006-04-11T20:06:34Z")

</div>

Thanks for the reply, that definately helped! I now have it on 120 and now there are only a few very small gaps if I move the mouse fast. I’m pretty sure I can write a function to fill those in though…

Thanks again!

---

<div class="post-metadata">

**Author:** ![Uli](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@Uli](https://forum.kirupa.com/u/Uli)\
**Post date:** [April 11, 2006, 8:22pm UTC](https://forum.kirupa.com/t/custom-paint-brush-effect/185123/4 "2006-04-11T20:22:43Z")

</div>

Becarefull tho, you should test your swf on a less powerfull computer… and be sure to compress your brush to the max otherwise it can became very laggy…  
Not all computer can display a 120 fps framerate. 🙂

---

<div class="post-metadata">

**Author:** ![Stratification](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@Stratification](https://forum.kirupa.com/u/Stratification)\
**Post date:** [April 11, 2006, 8:54pm UTC](https://forum.kirupa.com/t/custom-paint-brush-effect/185123/5 "2006-04-11T20:54:55Z")

</div>

120 is probably overkill, you may want to test a few starting at about 35 and bumping up from there. You’ll probably find very similar smoothness at a smaller value. Especially if you test this on a machine that’s less than top of the line.
