TouchEvent3D

Software: Away3D 4.x

fxdev, Newbie
Posted: 10 September 2013 03:10 PM   Total Posts: 25

Hi,

I am currently working on games for mobile. I have trouble to get the TouchEvent3D work.

Does anyone have a working example, or can figure me in the right direction?

I tried to add

mouseMoveCont.addEventListener(TouchEvent3D.TOUCH_BEGINhandleTouch);
mouseMoveCont.addEventListener(TouchEvent3D.TOUCH_ENDhandleTouch);
mouseMoveCont.addEventListener(TouchEvent3D.TOUCH_MOVEhandleTouch); 

set

mouseMoveCont.mouseEnabled true;
mouseMoveCont.mouseChildren true

I get none of these Events working.

Thx for your help

   

John Brookes, Moderator
Posted: 10 September 2013 03:49 PM   Total Posts: 732   [ # 1 ]

Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;

   

fxdev, Newbie
Posted: 11 September 2013 10:00 AM   Total Posts: 25   [ # 2 ]
JohnBrookes - 10 September 2013 03:49 PM

Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;

I know settings this Input Mode. I set this to TOUCH_POINT, but its not working. The Flash internal TouchEvents were working.

   

John Brookes, Moderator
Posted: 11 September 2013 10:31 AM   Total Posts: 732   [ # 3 ]

The only other thing I can think of is StageProxy.
Touch doesn’t currently work when using stageProxy (sharedContext).


Actually just done a test and there is an issue with mouseChildren.

If your adding the listener to an ObjectContainer3D with mouseChildren set, the child meshes don’t seem to be mouseEnabled.
For now you will have to manually set mouseEnabled on the children.

File a bug
https://github.com/away3d/away3d-core-fp11/issues?state=open

   

Avatar
SharpEdge, Member
Posted: 11 September 2013 12:57 PM   Total Posts: 94   [ # 4 ]

If you want get Touch events from the container instead of get them from meshes you should apply the workaround described here Issue #639

   

fxdev, Newbie
Posted: 12 September 2013 03:05 PM   Total Posts: 25   [ # 5 ]

Thanks for the workaround. Till now I use the traditionell Mouse_DOWN, Mouse_UP Events.

   

AP van Grootel, Newbie
Posted: 09 January 2014 11:11 PM   Total Posts: 2   [ # 6 ]

Somehow it looks like the event is only dispatched when touching with more than one finger.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X