Flash Games

 FAQ   Search   Members   Groups   Register  User Control Panel      Login 

Your time now:
Mon Nov 23, 2009 12:23 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ]  Bookmark and Share
Author Message
 Post subject: Delay
PostPosted: Thu Nov 16, 2006 2:37 pm 
Offline

Joined: Thu Nov 16, 2006 2:23 pm
Posts: 0
hi all,
question for javascripts programmers
i'm a beginner in javascript but not in programming by other langs and i'm using setTimeout to make delay in my animation for div block, i have four divs each one can expand and collapsed as a slide, the problem occur when more than one block move in the same time, and the reason because the seTimeout is a delay to execute a javascript code, function...etc and in this case the code execution will jump and execute what is after setTimeout, before end the execution of the script setTimeout

in another word, i want a way for delay that make the execution of the code stop until finish delay period and run the script that linked to the delay command. I don’t know if there is another way not using setTimeout or setInterval.
i think javascript is make more than one thread in its execution, not as one thread. i tried to re-write my code, but no way, i thought about AJAX also but i hope to find a way to solve that in javascript itself.

best regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review


Webmaster - Excruciating - Johnathan - Kotik - Ash - Tomi - rangana - Phate - dflynn - Medley