I’m guessing a lot of folks are waking up this morning to the news that Adobe has released Air 2 on to labs . I’m also guessing that a large number of you guys will be interested in wiping up a super simple multi-touch application just to see some of the new events.

Lastly, if you have access to a newish mac notebook, might I suggest giving this code a try:
<?xml version=”1.0″ encoding=”utf-8″?>
<s:WindowedApplication xmlns:fx=”http://ns.adobe.com/mxml/2009″
xmlns:s=”library://ns.adobe.com/flex/spark”
creationComplete=”windowedapplication1_creationCompleteHandler(event)”
xmlns:mx=”library://ns.adobe.com/flex/halo”>
<fx:Declarations>
<!– Place non-visual elements (e.g., services, value objects) here –>
</fx:Declarations>
<fx:Script>
<![CDATA[
import flash.events.TransformGestureEvent;
import flash.ui.Multitouch;
import mx.events.FlexEvent;
protected function windowedapplication1_creationCompleteHandler(event:FlexEvent):void
{
Multitouch.inputMode = MultitouchInputMode.GESTURE;
this.addEventListener( TransformGestureEvent.GESTURE_ZOOM, gestureEventHandler);
this.addEventListener( TransformGestureEvent.GESTURE_ROTATE, gestureEventHandler);
this.addEventListener( TransformGestureEvent.GESTURE_PAN, gestureEventHandler);
this.addEventListener( TransformGestureEvent.GESTURE_ZOOM, gestureEventHandler);
}
protected function gestureEventHandler ( event : TransformGestureEvent ):void
{
eventLabel.text = event.toString() + "\n" + eventLabel.text ;
}
]]>
</fx:Script>
<mx:TextInput height=”100%” width=”100%” id=”eventLabel” text=” ” />
</s:WindowedApplication>
Now, granted, this application isn’t going to blow the socks off of any veteran Flex developer but it’s kind of nice to have access to the new TransformGestureEvent and all of it’s glory. Now sit back and watch those events fly by.

[...] This post was mentioned on Twitter by CT, Axna popular. Axna popular said: Your First Quick Multi-Touch Air App.: I’m guessing a lot of folks are waking up this morning to the news.. http://bit.ly/8E9Iyr [...]