Adobe Flash Lite

December 8, 2010

Flash Tip: How to add swipe gestures to you mobile Flex application

Filed under: Flash Lite Tips — Tags: , — Li YongFei @ 5:48 am

Steven Peeters has posted a new flash tip on his blog: Adding swipe gestures to you mobile Flex application, Steven said you can choose 2 options to use the gesture to move things around or go from screen to screen etc.

1. Using ActionScript to attach an event listener

private function initView():void {
   addEventListener(TransformGestureEvent.GESTURE_SWIPE, onSwipe);
}

2. capture the gestureSwipe event on the View tag

<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            gestureSwipe="onSwipe(event)"/>

http://www.adobe-flashlite.com/wp-content/uploads/2010/12/034821ht9.jpg

Via Flexpert

If you like this post then please consider subscribing to my full feed RSS. You can also subscribe by Email and have new posts sent directly to your inbox.

  • Facebook
  • TwitThis
  • DZone
  • Digg
  • StumbleUpon
  • E-mail this story to a friend!
  • Technorati
  • Sphinn
  • Mixx
  • Google
  • blinkbits
  • del.icio.us
  • BlogMemes
  • blogtercimlap
  • Book.mark.hu
  • Live

Related Posts

2 Comments »

  1. Last time I checked I was still male, so could you change the first sentence into “… on HIS blog…” :-o

    Comment by Steven Peeters — December 8, 2010 @ 5:53 am

  2. Ha ha, Steven you are very humorous, but your article is very nice. Thanks to share.

    Comment by Li YongFei — December 8, 2010 @ 6:24 am

RSS feed for comments on this post. TrackBack URL

Leave a comment

CAPTCHA Image
Refresh Image

Adobe Flash Lite 2008-2011 All rights reserved.