PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
[RESOLVED] Touch move is not detected
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [RESOLVED] Touch move is not detected

  1. #1
    Senior Member
    Join Date
    Dec 2010
    Posts
    121

    resolved [RESOLVED] Touch move is not detected

    I'm testing this in Flash CS5 with Flash Player 10.1 Multitouch in Adobe Device Central. I managed to trace "touch begins" but not the other two, even though I'm tapping and moving at the same time. Can you help me find what I did wrong?

    Actionscript Code:
    package  
    {
        import flash.display.MovieClip;
        import flash.events.TouchEvent;
        import flash.ui.Multitouch;
        import flash.ui.MultitouchInputMode;
       
        public class ExpTouch extends MovieClip
        {
            public function ExpTouch()
            {
                // constructor code
                if(Multitouch.supportsTouchEvents)
                {
                    Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
                    stage.addEventListener(TouchEvent.TOUCH_BEGIN, touchBegin);
                    stage.addEventListener(TouchEvent.TOUCH_END, touchEnd);
                    stage.addEventListener(TouchEvent.TOUCH_MOVE, touchMove);
                }
            }
           
            private function touchBegin(e:TouchEvent):void
            {
                trace("touch begins"); //works
            }
           
            private function touchEnd(e:TouchEvent):void
            {
                trace("touch ends"); //doesn't show
            }
           
            private function touchMove(e:TouchEvent):void
            {
                trace("touch move"); //doesn't show
            }
        }
    }

  2. #2
    Senior Member
    Join Date
    Dec 2010
    Posts
    121
    I got this question answered in Kirupa and Adobe online help page. Flash Player 10.1 Multitouch profile was the problem. During emulating, switch to Flash Lite 4 and it worked out fine.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center