Like:
stop(); "wait x seconds"; play();
Thanks
| |
|
Welcome to KnowledgeSutra - Dear Guest | |
Posted 29 August 2008 - 07:04 AM
Posted 14 December 2009 - 11:52 PM
init = function () { width = 300; // pixels height = 250; // pixels max_snowsize = 10; // pixels snowflakes = 50; // quantity for (I=0; I<snowflakes; I++) { t = attachMovie("snow", "snow"+I, I); t._alpha = 20+Math.Random()*60; t._x = -(width/2)+Math.Random()*(1.5*width); t._y = -(height/2)+Math.Random()*(1.5*height); t._xscale = t._yscale=50+Math.Random()*(max_snowsize*10); t.K = 1+Math.Random()*2; t.Wind = -1.5+Math.Random()*(1.4*3); t.OnEnterFrame = mover; } }; mover = function() { this._y += this.K; this._x += this.Wind; if (this._y>height+10) { this._y = -20; } if (this._x>width+20) { this._x = -(width/2)+Math.Random()*(1.5*width); this._y = -20; } else if (this._x<-20) { this._x = -(width/2)+Math.Random()*(1.5*width); this._y = -20; } } init()

0 members, 1 guests, 0 anonymous users