nulldesign/nd2d — Issue #32: click only effective on 1/4
Author: chocobo-green
Created: 2011-11-20 07:11:58+00:00
State: open

On 0.97.swf clicking is only effective on Rectangle(0,0,512,384) area. Is it a bug or I'm missing some config?

[SWF(width="1024", height="768", frameRate="60", backgroundColor="#000000")]
public class ClickTest extends World2D
{
private var _scene:Scene2D;

public function ClickTest()
{
super(Context3DRenderMode.AUTO, 60);

_scene = new Scene2D();
_scene.mouseEnabled=true;
_scene.backGroundColor = 0x00ff00;
_scene.addEventListener(MouseEvent.CLICK,clickHandler);
setActiveScene(_scene);
}

protected function clickHandler(event:MouseEvent):void
{
trace('click '+stage.mouseX+','+stage.mouseY);
}
}