Hi all,
this is my first post here in the forum and I’m quite new to Away3D but have worked with Papervision some years ago. So not new to 3D at all.
My question:
I have an AIR-application using Away3D 4.0.9 that should later run on a computer with a touchscreen. In this application I have some cubes that I wanted to make draggable. So I used the Drag3D-Class and everything works fine on my developing machine using a mouse to drag the cubes. But when running the same application on a computer with a touchscreen, the dragging doesn’t work anymore. It seems, that the cubes recognize only the mouseDown-Event, but then ignore the mouseMove-Event.
code snippet:
private function onMouseDown(e:MouseEvent3D):void
{
_dragging = true;
_drag3D = new Drag3D(_view, ObjectContainer3D(mesh), "xy");
}
protected function onMouseUp(e:MouseEvent3D):void
{
_dragging = false;
}
private function loop(e:Event) : void
{
if(_dragging) {
_drag3D.updateDrag();
}
_view.render();
}
Is that a known issue or did someone make similar experiences?
Please, any help or useful hints are highly appreciated.
Thanks,
Markus