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
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
Comments
cooool i want one of those
November 17th 2007 04: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
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
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 06: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.
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.
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
Great information and work. Is it possible to move the actionscript from the clip itself so that it can be added to the stage progrommatically?
August 19th 2009 05:08PM - ed
Thats a pretty neat effect. How do you get them to stop though?
November 13th 2009 03:11AM - MB Mirrors
Nicely presented information in this post, I prefer to read this kind of stuff. The quality of content is fine and the conclusion is good. Thanks for the post.
November 24th 2009 05:11PM - Versace Eyeglasses
Wonderful, thanks.
December 6th 2009 02:12AM - seo
Really nice post,thanks for sharing.
December 7th 2009 10:12AM - condo
I have bookmarked your site. Thanks for sharing
December 13th 2009 08:12AM - dental
That really is very good of you for sharing so freely. Thanks very much!
January 1st 2010 07:01PM - Online Slimming
nice
January 4th 2010 01:01AM - Evening Gowns
Very interesting article. Content has been written in very nice manner. I enjoy reading this kind of stuff. Thanks for sharing good knowledge.<a href="http://www.mcitpmcts.com/mcitp.html">mcitp</a> <a href="http://www.mcitpmcts.com/mcts.html">mcts</a>
January 5th 2010 04:01PM - Khand
Cheers for the source code. Going to have a play with this. Much appreciated.
January 5th 2010 06:01PM - jocuri super mario
Great work every buddy can get lots of interesting information, keep on posting this type of brilliant articles. I really like this keep it up again!
January 15th 2010 09:01PM - evening dresses
What are you thoughts about the updates? They say that they have been successful for many others.
January 20th 2010 08:01PM - What is SEO
It's nice tutorial , some of these can be truly useful.
January 24th 2010 06:01AM - evening dresses
Special thank for good post.
February 5th 2010 09:02PM - โหลดเพลงà
Thank for the information
February 6th 2010 07:02AM - โหลดเพลงm
Special thank for good post.
February 10th 2010 03:02AM - โหลดเพลงà
Special thank for good post.
February 10th 2010 08:02AM - โหลดเพลงà
Add a Comment





