2 Replies Latest reply: Oct 23, 2011 6:49 PM by Vicky1314 RSS

    Is this an emulator problem or a programming problem?

    Ambari Community Member

      I am using the Flash Player 10.1 emulator to try to emulate an iPad since the iPad emulator doesn't work.

       

      I have a touch event using TOUCH_BEGIN and whenever I click on the object, it gets hit twice instead of just once.

       

      Is this just an emulator bug, or is there something wrong with my code that's causing it to hit twice?

       

      This is my code:

       

      this.addEventListener(TouchEvent.TOUCH_BEGIN, myFunction);

       

      If I put a trace in myFunction ("I've been hit!") it traces twice.

       

      Why?

       

      (XPosted to Actionscript Forum since I don't know if it's a coding problem or an emulator problem.)