To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Reply
 
Thread Tools Search this Thread Display Modes
Old 10-18-2004, 06:23 PM   #1
the_light
Junior Member
 
Join Date: May 2002
Posts: 28
Hey! Give me a break!

Hi Folkz

My problem is:

just want to know what code I can use for the actionscript stop for time and then continue

Like this

Command command command;
wait some seconds;
Command command command;


is there a sintax to give this break???

tkxxx

[]s
the_light is offline   Reply With Quote
Old 10-18-2004, 06:28 PM   #2
jbum
Senior Member
 
jbum's Avatar
 
Join Date: Feb 2004
Location: Los Angeles
Posts: 2,920
What you're looking for is setInterval and there is a nice sticky post about it at the top of this forum.

The method you're currently describing of waiting for a few seconds won't work, because actionscript scripts are supposed to execute very quickly between drawing frames.

So instead, the way it's done is you use setInterval, and you say "execute these lines of code XXX seconds in the future".

code:

myFutureFunction = function()
{
// setInterval will repeat every XX seconds if we don't clear it here...
clearInterval(handle);

// future lines of code go here...
}

// execute some code here...

// Then use setInterval to schedule myFutureFunction 4 seconds in the future
handle = setInterval(myFutureFunction, 4*1000);


__________________
jbum is offline   Reply With Quote
Old 10-18-2004, 09:05 PM   #3
flasher_man_iam
Flasher_man
 
Join Date: Jul 2003
Location: USA
Posts: 49
wow

err sry wrong file
Attached Files
File Type: fla delete.fla (32.0 KB, 871 views)
__________________
;p
flasher_man_iam is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:41 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.