Starling Touch Events


/ Published in: ActionScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. import starling.events.Touch;
  2.  
  3. private function onTouch(e:TouchEvent):void
  4. {
  5. var touch:Touch = e.getTouch(stage);
  6. if (touch)
  7. trace(e.target, touch.target);
  8. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.