If you are inside a loop, and need to wait.... you have a big problem!

I would like a semaphore for syncronization. :-\
The Adobe/Macromedia must put this on Flash. (AS) :'( .


Danny,  thanks for you help! ;-)
Rodrigo Schramm

Danny Kodicek wrote:


Using setInterval, I can only call a method (or funciton) same time
later. I can't continue to run from the same point, at same function.
Exist another solution for this?


Yes, put your remaining code into a separate function:

id=setInterval(function(){myRemainingCode},2000)

You can comfortably (well, messily) create a whole set of commands that run at intervals. The only problem is that you might want to avoid any other functions running in the intervening time.

Danny
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to