MouseEvent3D events won’t fire [they work now]

Software: Away3D 4.x

elemmiki, Newbie
Posted: 07 September 2013 09:40 AM   Total Posts: 10

I have a plane in my scene and I’ve added this code to the function it’s supposed to execute when I click on the plane:

_plane1.addEventListener(MouseEvent3D.CLICK_plane1Action);
private function 
_plane1Action(event:MouseEvent3D):void
  {
   starling1
.nextFrame();
   
starling1.start();
   
  

As you can see I want to start a starling instance (in this case a button) when I click on the plane, but the button doesn’t show up.

If I add that same code to “onEnterFrame” function, it works…

edit1: Events work I just didn’t notice, apparently the problem are the lines in the function, because they don’t work, at least not in that function…

   

Avatar
SharpEdge, Member
Posted: 08 September 2013 11:13 AM   Total Posts: 94   [ # 1 ]

have you set _plane1.mouseEnabled = true; ?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X