Re: AnimationEngine pending messages

2013-05-26 Thread Malte Brill
Hey Tom,

Should be adding an aeCancelAllAEMessages command? Sounds like something that 
could be useful…

Cheers,

Malte
--
derbrill IT-service Malte Pfaff-Brill
Tanneneck 2, d-24790 Ostenfeld
Tel: +49 4331-337 640 0
eMail: i...@derbrill.de web: http://www.derbrill.de
Steuernummer: 28 015 03865 VAT ID: DE223571286

___
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


Re: AnimationEngine pending messages

2013-05-26 Thread Thomas McGrath III
Malte,

All I can say is that when I was working on this project it seemed to be a 
natural thing to look for. Every time I would go to a new card the same scripts 
would run and animate image 1 but If I went to the next card before the 
current card animation was done it would then build up on top of the new cards 
animation of image 1. So when I specifically targeted the name of image 1 
(which was different on each card) then it no longer built up. In this case it 
would have been a no brainer that when I wanted to skip quickly through the 
cards that I could clear the messages from the previous cards animation 
sequence.

Thanks

Tom

-- Tom McGrath III
http://lazyriver.on-rev.com
mcgra...@mac.com

On May 26, 2013, at 7:38 AM, Malte Brill revolut...@derbrill.de wrote:

 Hey Tom,
 
 Should be adding an aeCancelAllAEMessages command? Sounds like something that 
 could be useful…
 
 Cheers,
 
 Malte
 --
 derbrill IT-service Malte Pfaff-Brill
 Tanneneck 2, d-24790 Ostenfeld
 Tel: +49 4331-337 640 0
 eMail: i...@derbrill.de web: http://www.derbrill.de
 Steuernummer: 28 015 03865 VAT ID: DE223571286
 
 ___
 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


Re: AnimationEngine pending messages

2013-05-24 Thread Alex Tweedly

I'd give it a try with the code as in the docs (under cancel)



repeat until the pendingMessages is empty
  cancel item 1 of line 1 of the pendingMessages
end repeat

It might just be that you catch additional timed messages that have 
triggered while you are inside your loop.

What the heck - do that code twice :-)

-- delete all outstanding messages
repeat until the pendingMessages is empty
  cancel item 1 of line 1 of the pendingMessages
end repeat
-- and do it again just for luck
repeat until the pendingMessages is empty
  cancel item 1 of line 1 of the pendingMessages
end repeat

-- Alex.

On 24/05/2013 16:34, Thomas McGrath III wrote:

I am having trouble canceling the pending messages that are built up with use 
of AE in my mobile app. I have a series of AE commands on card open but want to 
stop them all when moving to a new card. Even in the IDE with the pending 
messages/message box open I can only delete one line of the pending messages 
and then a new message keeps coming after a bit. Is there a way to absolutely 
stop ALL of them that I am missing?

I am trying this in my openCard handler but they still seem to stack up.
put the pendingmessages into tPendingMsgs
  repeat for each line x in tPendingMsgs
   cancel item 1 of x
  end repeat

Thanks

Tom

-- Tom McGrath III
http://lazyriver.on-rev.com
mcgra...@mac.com


___
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


Re: AnimationEngine pending messages

2013-05-24 Thread Scott Rossi
May not make a difference, but have you already tried:

repeat for each line x in the pendingMessages

I'm asking only because I haven't seen message canceling done by putting the 
messages in a variable first.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design

On May 24, 2013, at 8:34 AM, Thomas McGrath III mcgra...@mac.com wrote:

 I am having trouble canceling the pending messages that are built up with use 
 of AE in my mobile app. I have a series of AE commands on card open but want 
 to stop them all when moving to a new card. Even in the IDE with the pending 
 messages/message box open I can only delete one line of the pending messages 
 and then a new message keeps coming after a bit. Is there a way to absolutely 
 stop ALL of them that I am missing?
 
 I am trying this in my openCard handler but they still seem to stack up.
   put the pendingmessages into tPendingMsgs
 repeat for each line x in tPendingMsgs
  cancel item 1 of x
 end repeat
 
 Thanks
 
 Tom
 
 -- Tom McGrath III
 http://lazyriver.on-rev.com
 mcgra...@mac.com
 
 
 ___
 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


RE: AnimationEngine pending messages

2013-05-24 Thread John Dixon
Scott...

like

on cancelThisMsg tMsg
   put the pendingmessages into tPendingMsgs
   IF tMsg is in tPendingMsgs then
  repeat for each line x in tPendingMsgs
 if tMsg is in x then cancel item 1 of x
  end repeat
   end if
end cancelThisMsg

from the notes in the dictionary..:-)

 Subject: Re: AnimationEngine pending messages
 From: sc...@tactilemedia.com
 Date: Fri, 24 May 2013 10:05:49 -0700
 To: use-livecode@lists.runrev.com
 
 May not make a difference, but have you already tried:
 
 repeat for each line x in the pendingMessages
 
 I'm asking only because I haven't seen message canceling done by putting the 
 messages in a variable first.
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX Design
 
 On May 24, 2013, at 8:34 AM, Thomas McGrath III mcgra...@mac.com wrote:
 
  I am having trouble canceling the pending messages that are built up with 
  use of AE in my mobile app. I have a series of AE commands on card open but 
  want to stop them all when moving to a new card. Even in the IDE with the 
  pending messages/message box open I can only delete one line of the pending 
  messages and then a new message keeps coming after a bit. Is there a way to 
  absolutely stop ALL of them that I am missing?
  
  I am trying this in my openCard handler but they still seem to stack up.
put the pendingmessages into tPendingMsgs
  repeat for each line x in tPendingMsgs
   cancel item 1 of x
  end repeat
  
  Thanks
  
  Tom
  
  -- Tom McGrath III
  http://lazyriver.on-rev.com
  mcgra...@mac.com
  
  
  ___
  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
  
___
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


Re: AnimationEngine pending messages

2013-05-24 Thread Scott Rossi
Just because it's in the dictionary doesn't mean I've seen it :-)

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design

On May 24, 2013, at 10:10 AM, John Dixon dixo...@hotmail.co.uk wrote:

 Scott...
 
 like
 
 on cancelThisMsg tMsg
   put the pendingmessages into tPendingMsgs
   IF tMsg is in tPendingMsgs then
  repeat for each line x in tPendingMsgs
 if tMsg is in x then cancel item 1 of x
  end repeat
   end if
 end cancelThisMsg
 
 from the notes in the dictionary..:-)
 
 Subject: Re: AnimationEngine pending messages
 From: sc...@tactilemedia.com
 Date: Fri, 24 May 2013 10:05:49 -0700
 To: use-livecode@lists.runrev.com
 
 May not make a difference, but have you already tried:
 
 repeat for each line x in the pendingMessages
 
 I'm asking only because I haven't seen message canceling done by putting the 
 messages in a variable first.
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX Design
 
 On May 24, 2013, at 8:34 AM, Thomas McGrath III mcgra...@mac.com wrote:
 
 I am having trouble canceling the pending messages that are built up with 
 use of AE in my mobile app. I have a series of AE commands on card open but 
 want to stop them all when moving to a new card. Even in the IDE with the 
 pending messages/message box open I can only delete one line of the pending 
 messages and then a new message keeps coming after a bit. Is there a way to 
 absolutely stop ALL of them that I am missing?
 
 I am trying this in my openCard handler but they still seem to stack up.
  put the pendingmessages into tPendingMsgs
repeat for each line x in tPendingMsgs
 cancel item 1 of x
end repeat
 
 Thanks
 
 Tom
 
 -- Tom McGrath III
 http://lazyriver.on-rev.com
 mcgra...@mac.com
 
 
 ___
 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
 
 ___
 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


Re: AnimationEngine pending messages

2013-05-24 Thread Thomas McGrath III
Actually, I did see the note in the dictionary and tried that. But I think 
since I was using AE to generate effects using image 1 that each card was 
somehow newly stacking commands for image 1 of each card. When I changed it to 
the name of image 1 then they no longer stacked for each card. Weird. So in the 
end I avoided having to cancel the pending messages. Still don't know exactly 
what was happening and how but I'm good now.

Thanks

-- Tom McGrath III
http://lazyriver.on-rev.com
mcgra...@mac.com

On May 24, 2013, at 1:27 PM, Scott Rossi sc...@tactilemedia.com wrote:

 Just because it's in the dictionary doesn't mean I've seen it :-)
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX Design
 
 On May 24, 2013, at 10:10 AM, John Dixon dixo...@hotmail.co.uk wrote:
 
 Scott...
 
 like
 
 on cancelThisMsg tMsg
  put the pendingmessages into tPendingMsgs
  IF tMsg is in tPendingMsgs then
 repeat for each line x in tPendingMsgs
if tMsg is in x then cancel item 1 of x
 end repeat
  end if
 end cancelThisMsg
 
 from the notes in the dictionary..:-)
 
 Subject: Re: AnimationEngine pending messages
 From: sc...@tactilemedia.com
 Date: Fri, 24 May 2013 10:05:49 -0700
 To: use-livecode@lists.runrev.com
 
 May not make a difference, but have you already tried:
 
 repeat for each line x in the pendingMessages
 
 I'm asking only because I haven't seen message canceling done by putting 
 the messages in a variable first.
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX Design
 
 On May 24, 2013, at 8:34 AM, Thomas McGrath III mcgra...@mac.com wrote:
 
 I am having trouble canceling the pending messages that are built up with 
 use of AE in my mobile app. I have a series of AE commands on card open 
 but want to stop them all when moving to a new card. Even in the IDE with 
 the pending messages/message box open I can only delete one line of the 
 pending messages and then a new message keeps coming after a bit. Is there 
 a way to absolutely stop ALL of them that I am missing?
 
 I am trying this in my openCard handler but they still seem to stack up.
 put the pendingmessages into tPendingMsgs
   repeat for each line x in tPendingMsgs
cancel item 1 of x
   end repeat
 
 Thanks
 
 Tom
 
 -- Tom McGrath III
 http://lazyriver.on-rev.com
 mcgra...@mac.com
 
 
 ___
 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
 
 ___
 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


___
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