scope - How to manage function when use concurrent in livecode? -


itemprop = "text">

I have two graphics These graphics are countdown functions when open cards are started counting these graphics are countdown. These graphics call functions are "refreshing" when reaching the countdown. These graphic call functions are at the same time how to manage it?

My code on the card for the graphic usage function is here:

  If the account is not empty then refresh, then add 1 to the account and enter 0 at the end of the account if Waiting for 300 milliseconds if the message is ecount & gt; = 2 again - Deosomiting () is empty at the earnings end and if the refresh happens   

update ---

  refresh = 1 then put it in the account = 1, then add eCount = 2 to the eckount and if eCount = 1 is inserted then - e commanding india () is ekount finally put 0 when the end refreshes   

When Call Function is "Refresh" at the same time in two graphics call method "--dosomethingOnce ()" What can I do to fix?

And here's my graphic code.

  on countdown count if countT> 0 then send the "countdown count count" in 1 second and then send the "refresh" card "main" at the end if end countdown    

Here's another idea that I think your problem can be solved (if I think correctly!)

  Local accounts, Add refresh to ePount with sPending 1 if I had last refresh, then send me "something" to 100%, e-count = 1 then - execute the code for 1 timer I execute the code for 1 timer end if the reset flag is inserted incorrectly if the two timers end up within 100 milliseconds of each other, the code for multiple timers will be executed - otherwise code will be executed for 1 timer. I / C>   

Adjust the 100 milliseconds settings you need.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -