rejo
rejo

Reputation: 3350

How to Zoom and Pan SWF file in Flex

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

Answers (1)

Alex Koz.
Alex Koz.

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

Related Questions