deviant art

Deviant Login Shop  Join deviantART for FREE Take the Tour
[x]
Download File
SWF, 478 bytes
more ▶

More from *JohnJensen

Featured in Groups:

Details

December 31, 2007
478 bytes
350×350
Link
Thumb

Statistics

Comments: 64
Favourites: 41 [who?]

Views: 2,203 (0 today)
Downloads: 87 (0 today)
[x]
:iconjohnjensen:
Use the mouse.

Click to create fireworks! :D


i = 0;
onMouseDown = function () {
for (x=0; x<30; x++) {
i++;
_root.createEmptyMovieClip("Fireworks"+i, i, {_x:_xmouse, _y:_ymouse});
_root["Fireworks"+i].lineStyle(3, random(0xFFFFFF), 100);
_root["Fireworks"+i].moveTo(_xmouse, _ymouse);
setX = _xmouse+random(50)-25;
setY = _ymouse+random(50)-25;
_root["Fireworks"+i].lineTo(setX, setY);
_root["Fireworks"+i].Xspeed = (_xmouse-setX)/3;
_root["Fireworks"+i].Yspeed = (_ymouse-setY)/3;
}
};
onEnterFrame = function () {
for (y=0; y<i+1; y++) {
_root["Fireworks"+y]._x += _root["Fireworks"+y].Xspeed;
_root["Fireworks"+y]._y += _root["Fireworks"+y].Yspeed;
_root["Fireworks"+y]._alpha -= 2;
if (_root["Fireworks"+y]._alpha<10) {
_root["Fireworks"+y].removeMovieClip();
}
}
};
Add a Comment:
 
love 0 0 joy 4 4 wow 0 0 mad 0 0 sad 0 0 fear 0 0 neutral 0 0
:iconandygassner:
`AndyGassner Mar 1, 2008   Photographer
Wow very nice work! I had fun using it! xD
Reply
:iconmetal-icecream:
woh my computer went so slow!!! maybe i shouldnt clik 50 times per second...
Reply
:iconiloveknucklesshadow:
weeeeeeeee!
Reply
:iconmoggle0:
cool lol i clicked a bunch and now my computer goes really slow XD
Reply
:iconjohnjensen:
Idk how to fix it =P
Reply
:iconmoggle0:
yeah its not your fault its my computers. Curse you Windows! :shakefist:
Reply
:iconmathwiz9:
i would much rather get a mac but currently i have stupid vista!
Reply
:iconred-hog:
happy new year man
Reply
:iconjohnjensen:
yes very much indeed. :D
Reply
Add a Comment: