WHAT'S NEW?
Loading...

AS3 – Detect when mouse leaves stage



stage.addEventListener(Event.MOUSE_LEAVE, mouse_offstage);
stage.addEventListener(MouseEvent.MOUSE_MOVE, mouse_onstage);
function mouse_offstage(e:Event)
{
	trace("keluar dr stage");
}
function mouse_onstage(e:MouseEvent)
{
	trace("berada di stage");
}

0 komentar:

Post a Comment