Getting started with multitouch in AIR 2.0 and Player 10.1 on the Macbook

I decided to have a look at the latest beta players for AIR 2.0 and FP 1.5 with regards to multitouch. Lee Brimelow has a great multitouch tutorial on his site, check it out.

In order to get it to work you need a Macbook with multitouch pad. I use the latest pro model, courtesy of theFactor.e :-) .

  • You need to download the beta runtime plus sdk which you can get here.
  • Install the runtime. This is the easy part.
  • Setup the sdk like they explain here. I’ve got it setup so I can export from Flash.
  • Create a new Flash AIR project.
  • If you would use any of the TransformGestureEvents now it will throw an error. But export the file anyway.
  • Open the xml file that Flash just exported next to your swf (Multitouch-app.xml in my case).
  • Change the line that define the name space so it uses the 2.0 beta name space:
    <application xmlns=”http://ns.adobe.com/air/application/2.0beta2″>
  • Save the xml and try exporting the Flash file again. It should work a charm now.

I’ve uploaded the source for you to play with here. And if you just want to see the AIR app download that here. It only works on a Macbook with multitouch pad or some other fancy multitouch device running Windows 7. Enjoy!

Big thanks to Lee Brimelow and the Internets :)

Tags: , , , , , ,

Friday, March 26th, 2010 as3, theFactor.e

1 Comment to Getting started with multitouch in AIR 2.0 and Player 10.1 on the Macbook

  • Jop Wielens says:

    1 2 3 testing Disqus

  • Leave a Reply