Use a wait with messages in your handler... wait 0 seconds with messages
Then liveCode will have a look to see what else is going on... > Date: Fri, 17 Jul 2015 13:52:06 +0300 > From: richmondmathew...@gmail.com > To: use-livecode@lists.runrev.com > Subject: Totally Loopy > > I am animating a series of images like this: > > on animaSHun > set the vis of img "M1" to true > set the vis of img "M4" to false > wait 4 ticks > set the vis of img "M2" to true > set the vis of img "M1" to false > wait 4 ticks > set the vis of img "M3" to true > set the vis of img "M2" to false > wait 4 ticks > set the vis of img "M4" to true > set the vis of img "M3" to false > wait 4 ticks > animaSHun > end animaSHun > > and there I was feeling proud of myself for having been "so" clever, BUT > I was wrong . . . > > Now in the same cardScript I have an "on arrowKey" script to let me move > the animation > around the card with the arrow keys on my keyboard . . . > > But that "animaSHun" routine goes round and round (as, indeed, it > should) and the arrowKeys > are quite unable to "get a word in edgeways"; in fact the only way to > stop the thing > is by crashing LiveCode. > > I would be grateful if anyone could tell me how to get a word in > edgeways while keeping the animation going. > > Yup: I know I could just use an animated GIF image . . . but, call me > bloody-minded, I have my > reasons for not using one. > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode