Reputation: 3350
I need to pan and zoom swf file . I have work with adobe's zoom component. But it work only with images.
My requirement is zoom the specified area of swf and set centrally when I drag and drop a rectangle to the swf file.
Have any open source api available for doing this. or please give any useful information.
Thanks.
Upvotes: 0
Views: 866
Reputation: 497
U can use native Gesture-events. Catch them from the Stage or any other instance of InteractiveObject class. e.g.:
anyYourInteractiveObject.addEventListener(GestureEvent.GESTURE_TWO_FINGER_TAP, twoTapHandler);
or
stage.addEventListener(TransformGestureEvent.GESTURE_ZOOM, zoomGestureHandler);
Upvotes: 2