Breaking Or Creating A Loop.

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Googie85
Posts: 227
Joined: Tue Aug 05, 2014 10:07 am

Breaking Or Creating A Loop.

Post by Googie85 » Mon Jan 18, 2016 7:48 am

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.

Googie85
Posts: 227
Joined: Tue Aug 05, 2014 10:07 am

Re: Breaking Or Creating A Loop.

Post by Googie85 » Mon Jan 18, 2016 8:32 am

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.

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Breaking Or Creating A Loop.

Post by Dixie » Mon Jan 18, 2016 9:53 am

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

Post Reply