Hi,
My question is how to have multitouch gesture events incorporated in
away3d. Below is a sample code for moving coins with finger
touch.Source is http://gestureworks.com/support-tutorials/drag/
package {
import flash.display.MovieClip;
import id.core.Application;
import id.core.TouchSprite;
import gl.events.TouchEvent;
public class Main extends Application {
public function Main() {
for (var i=0; i<4; i++) {
var container = new TouchSprite();
var gw_coin = new coin();
container.addChild(gw_coin);
container.x = Math.random()*stage.stageWidth/2;
container.y = Math.random()*stage.stageHeight/2;
container.blobContainerEnabled = true;
container.addEventListener(TouchEvent.TOUCH_DOWN,
startDrag_Press);
container.addEventListener(TouchEvent.TOUCH_UP,
stopDrag_Release);
addChild(container);
}
}
private function startDrag_Press(e:TouchEvent):void {
e.target.startTouchDrag();
}
private function stopDrag_Release(e:TouchEvent):void {
e.target.stopTouchDrag();
}
}
I tried to add the "container" from above code to "view" object from
away 3D.It didnt work.I am new to as3.So please help me use this
gesture library for manipulating 3D objects.
And my second question is how can I design my own buttons in flash and
put them into away3D interface.Bcoz the view command in away3d does
not allow to have custom buttons.