how want to zoom image dispersed finger on android devices flashcs5.5
I you make the application of a book on Flash for mobile android by Flash
cs5.5 But I have a big problem for me, I did not find a solution And the
solution be willing, on your hand Problem: I want to zoom in Page
dispersed finger on android devices That turned the pages of a book into a
picture and then to the end Movie clip and Movie clip given the names
elevator, elevator1, elevator 2, elevator3 The findings of the code that
makes me the desired Here is the code:
package {
import flash.display.MovieClip;
import flash.ui.Multitouch;
import flash.display.StageScaleMode;
import flash.display.StageAlign;
import flash.display.Sprite;
import flash.events.TransformGestureEvent;
import flash.ui.MultitouchInputMode;
import flash.events.MouseEvent;
public class GestureExample extends MovieClip {
public function GestureExample() {
super();
Multitouch.inputMode = MultitouchInputMode.GESTURE;
stage.addEventListener(TransformGestureEvent.GESTURE_ZOOM, onZoom);
}
protected function onZoom(e:TransformGestureEvent):void
{
elevator.scaleX *= e.scaleX;
elevator.scaleY *= e.scaleY;
}
}
}
The code actually works wonderfully, but with the first page only a name
elevator How do I add the rest of the inquiry names Movie Clips elevator1,
elevator 2, elevator3
Properly within the code I hope to modify Please note that I tried hard
not successful Thank you in advance for your help
No comments:
Post a Comment