Touch Events still not registering?
I posted a little while ago saying that I couldn't get touch events to work. I changed them all to mouse events (I was told mouse events would still work on an iPad) and without doing anything else (just changing them to mouse events) the app started to function in testing.
But then I transferred it to my iPad and it didn't work. At all. It didn't do anything.
So I changed everything back to touch events. Sure enough, it's now completely non functional.
I used AIR for iOS and the adc debugger to test using mouse events.
I used Flash 10.1 and Device Central to test using touch events.
I also tested both mouse events and touch events on my iPad.
I have gotten touch events to work on my iPad and in Device Central before.
I imported the entire flash.events.* file to make sure all the bases were covered.
Why wont' touch events work?
Here is an example (non functioning in both testing and iPad)
import flash.events.*;
import flash.display.*;
caps.addEventListener(TouchEvent.TOUCH_TAP, changeCaps);
color.addEventListener(TouchEvent.TOUCH_TAP, changeColor);
Again: If I change it to:
caps.addEventListener(MouseEvent.CLICK, changeCaps);
color.addEventListener(MouseEvent.CLICK, changeColor);
it functions in testing but not on the iPad.
What am I missing?