Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Delay X Seconds In Flash


3 replies to this topic

#1 Lozbo

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 282 posts
  • Location:Wanatos
  • Interests:Multimedia Arts and Technologies =)

Posted 08 October 2005 - 07:47 PM

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

#2 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 29 August 2008 - 07:04 AM

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 www.Webdesigner-logodesign.Com

Thanks

-reply by webeedesigner

#3 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 27 February 2009 - 11:28 AM

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



#4 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 14 December 2009 - 11:52 PM

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






Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users