FAQ   Search   Memberlist   Usergroups   Register   Profile   Log in to check your private messages   Log in 

Let it snow =)

 
Post new topic   Reply to topic    Siggles Corner BBS Forum Index -> Flash
View previous topic :: View next topic  
Author Message
Woadraiders
Newbie


Joined: 25 Nov 2007
Posts: 8
Location: Under a rock.

PostPosted: Sat Dec 15, 2007 3:14 am    Post subject: Let it snow =) Reply with quote

Here's a little something that took about 5 minutes.
Snowing Cool
FLA - http://www.fast-files.com/getfile.aspx?file=21700

Create a little white circle (brush tool, second setting, 100% visibility of stage), make it a movieclip, instance name snow. Put this code in the frame with the snow on the main timeline, and play around with it.

snowOn = 0;
onEnterFrame = function()
{
if(Math.random()*100>40 && snowOn < 40)
{
snowOn++;
mc = attachMovie("snow","snow"+_root.getNextHighestDepth(),_root.getNextHighestDepth());
mc._x = Math.random()*Stage.width;
mc.speed = Math.random()*4+2;
mc.wind = (Math.random()*2)*(Math.round(Math.random()*1.5)-1)+.5;
mc._alpha = Math.random()*(56-14)+14;
scale = Math.random()*.7+.5;
mc._xscale *= scale;
mc._yscale *= scale;
mc.onEnterFrame = function()
{
this._y += this.speed;
this._x += this.wind;
if(this._x > Stage.width || this._x < 0 || this._y > Stage.height)
{
_root.snowOn--;
this.removeMovieClip();
}
}
}
}
_________________
I play Russian roulette everyday, a man's sport,
With a bullet called life, yeah mama called life,(sugar)
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Siggles Corner BBS Forum Index -> Flash All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

Theme xand created by spleen.


Free Forum Free Top Site List
Make this Forum Ad-Free