how do I use MouseEvent3D? I tried to put in each mesh that is exported, but without success!
MouseEvent3DSoftware: Prefab3D |
||
|
||
Richard Olsson, Administrator
Posted: 30 June 2012 09:39 AM Total Posts: 1192 [ # 1 ] What do you mean? Do you want to listen for mouse events on a mesh? Then just do the following, similarly to what you would do in regular Flash. mesh.mouseEnabled = true; |
||
|
||
Richard Olsson, Administrator
Posted: 01 July 2012 12:36 PM Total Posts: 1192 [ # 3 ] Make sure you have mouseEnabled = true and mouseChildren = true on the object and all it’s ancestor (parent, parent of parent et c.) Otherwise I think you will have to explain your set up better for anyone to be able to help. |
||
careca, Newbie
Posted: 01 July 2012 03:31 PM Total Posts: 14 [ # 4 ] I use prefab to export to Class.
var cabowasc_11Data:Cabowasc_11Data = new Cabowasc_11Data(); I make: but the event don’t fire!
|
||
Richard Olsson, Administrator
Posted: 01 July 2012 03:45 PM Total Posts: 1192 [ # 5 ] This sounds very odd. Have you tried any other event types (e.g. MOUSE_UP)? This may be a bug with the picking system, but since you’re using Prefab I’m guessing that you’re using a fairly old version of the engine codebase. If it is a bug it will likely have been fixed already in the release branch of the github repository. But I’m afraid that version is likely not compatible with the Prefab AS3 export yet. |