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…