Jump to content
xisto Community
Lozbo

Delay X Seconds In Flash how to action script that

Recommended Posts

How do i have to do, to tell a frame to wait x seconds after it continues playing? In Macromedia Flash, of course...

Like:

stop();"wait  x seconds";play();

Thanks

Share this post


Link to post
Share on other sites

Delay X Seconds In Flash

Delay X Seconds In Flash

 

Simply put this line in the last frame from where you want time gap

------------

This.Stop();

Pause = function () {

play();

clearInterval(pausei);

}

Pausei = setInterval(pause, 30000);

 

------------

It works fine for me http://forums.xisto.com/no_longer_exists/

 

Thanks

 

-reply by webeedesigner

Share this post


Link to post
Share on other sites

What you could also do is go to window-components. Then in that window go to Media-MediaDisplay and set it up from there.

-reply by Chad Breaux

Share this post


Link to post
Share on other sites
stop code on movie clipDelay X Seconds In Flash

 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()

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.