I’m using the sample code slideview for my flashcard app. I want to be able to play a different sound depending on the location of the tap.
I’m currently checking if DragDistance is zero and if Touch.y < 246 play sound under the event.phase == “ended” function. But I’m getting weird bugs when I put the app on my iPhone.
Is there a way to do this using the Tap EventListener?
Thanks,
Steve [import]uid: 8919 topic_id: 5025 reply_id: 305025[/import]
I’ve never done it, but I recall seeing something about someone using an invisible object and then setting a tap event for that object. You’d just position it at the location where you want to watch for a tap.
payjo,
Could you just create a fully transparent png graphic file the size you need, place it in the location and then add a touch event to it? I am not sure if that is any better, but it should work as well.
-edit sorry, meant to say payjo, not Jay… [import]uid: 13512 topic_id: 5025 reply_id: 16594[/import]