Page 1 of 1

Breaking Or Creating A Loop.

Posted: Mon Jan 18, 2016 7:48 am
by Googie85
Hey Guys!!

I have created a loop that contains a flashing .png image and I am trying to break out of the loop. I find it hard to explain. Im trying to get the loop to stop when the screen is pressed again. Im out of ideas. Any help would be awesome!

Many Thanks,

Matthew.

Re: Breaking Or Creating A Loop.

Posted: Mon Jan 18, 2016 8:32 am
by Googie85
I will try and be a bit more clearer.

When the stack is in a loop (dispatch flashimage - command flashimage) i cant get any other messages (mouseDown) etc.

Hope this is a bit more information.

Many Thanks,

Matthew.

Re: Breaking Or Creating A Loop.

Posted: Mon Jan 18, 2016 9:53 am
by Dixie
mmm... maybe this will help you out..

Code: Select all

on mouseUp
   repeat forever
      if the mouseClick then exit repeat
      put the seconds
   end repeat
end mouseUp