the declarations look a little strange to me. I usually code an event
handler like this:
sprite3D.addEventListener(MouseEvent.MOUSE_DOWN, on_mouse_down);
private function on_mouse_down(evt:MouseEvent):void {
framerate.text = "blablabla";
}
On May 2, 9:55 am, Ricardo Kelling <[email protected]>
wrote:
> Hello,
>
> i create a Sprite3D with a BitmapMaterial, and then i added it to the
> scene all is fine.
> Noew i add an eventhanlder to the Sprite but no event will trigger. I
> test two methods
>
> here the snippets
>
> sprite3D.addEventListener(MouseEvent.MOUSE_DOWN,
> function(evt:MouseEvent):void {
> framerate.text = "blablabla";
> }
> );
>
> sprite3D.addEventListener(MouseEvent3D.MOUSE_DOWN,
> function(evt:MouseEvent3D):void {
> framerate.text = "blablabla";
> }
> );