Flash CS5 iPhone multi-touch

Here is a very quick video showing the new multi-touch APIs in an iPhone application that was created from Flash CS5. The code needed is shown below. Now I’m off to Brasil!

1
2
3
4
5
6
7
photo.addEventListener(TransformGestureEvent.GESTURE_ZOOM, onZoom);

function onZoom(e:TransformGestureEvent):void
{
    photo.scaleX *= e.scaleX;
    photo.scaleY *= e.scaleY;
}

Lee

Show Comments

Hide Comments

Comments are closed.