Spark Effect
Description: Sparks shoot out of the mouse. Gravity effects the movement of the sparks.
Author: John Bezanis
Added: February 2nd 2007
Version: Flash 8
Total Views: 6562
Views in the Past 7 Days: 115
Sparks are generated using Actionscript. The colors are red, yellow, and orange. The sparks shoot from the starting position at a random angle, and gravity brings them downwards. The spark starting position follows the movement of the mouse.
The source file is available below for download.
Download Source File
Questions and Suggestions
cooool i want one of those
November 17th 2007 16:11PM - rawat sohail rawat
Hi, great effect.
I have tweaked it a little to increase spark size and reduce gravity, and I want to use the movie clip as a mask.
It works fine until I make the layer that it is on a mask. It seams to only make the very first spark a mask. I ave also tried using actionscript to make the movie clip a mask. But my actionscript knowledge is very limited.
please help,
Nick
December 5th 2007 03:12AM - Nick
I have a question: How do you get the sparks to stop?!
I've tried deleting the movieclip "spark"
I've tried mucking up the code by typing in random stuff
It won't stop!!!
Please Please Please help me!
Thanks
March 28th 2008 18:03PM - fred
How could I make this stagnent and not follow the mouse.
This is a great effect and would like to use it as a fuse to a firecracker loading annimation.
June 9th 2008 07:06AM - elgourdo
to make the spark follow a movie clip along the stage and not the mouse
create a new movie clip called holder or whatever you chose.
drag a copy of it on the stage and give it the instance name holder.
click on the spark instance, open the actions panel and find the code that says:
_x=_root.xmouse;
_y=_root.ymouse;
change to:
_x=_root.holder._x;
_y=_root.holder._y;
there are two places you have to change the xmouse and ymouse in the code. once you change them, wherever you move your holder clip across the stage the spark will follow.
June 9th 2008 11:06AM - dbk
Add a Question or Suggestion






