Hello William,

Perhaps  < iphoneClearTouches > 

Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web       http://elementarysoftware.com/
email     [email protected]
-------------------------------------------------------


from iOS Release Notes:

Clearing pending interactions
As interaction events (touch and mouse messages) are queued, it is possible for 
such messages to
accumulate when they aren't needed. In particular, when executing 'waits', 
'moves' or during card
transitions.
To handle this case, the iphoneClearTouches command has been added. At the 
point of calling, this
will collect all pending touch interactions and remove them from the event 
queue.
Note that this also cancels any existing mouse or touch sequences, meaning that 
you (nor the
engine) will not receive a mouseUp, mouseRelease, touchEnd or touchCancel 
message for any
current interactions.
A good example of when this command might be useful is when playing an 
instructional sound:

on tellUserInstructions
    play specialFolderPath("engine") & slash & "Instruction_1.mp3"
    wait until the sound is "done"
    iphoneClearTouches
end tellUserInstructions

Here, if the iphoneClearTouches call was not made, any tough events the user 
created while the
sound was playing would be queued and then be delivered immediately afterwards 
potentially
causing unwanted effects.



On Jul 2, 2011, at 8:10 AM, William de Smet wrote:

> Hi there,
> 
> I am 'converting' one of my apps to iOS (iPad) and I am looking for an
> alternative for: put flushEvents("all") into temp.
> Is there something like this on iOS?
> 
> And another strange thing is that I don't have sound on the iPad simulator 4.3
> It does work fine when I use the iPhone simulator 4.3.
> Anyone else having the same thing?
> 
> greetings,
> 
> William
> 
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to