I want to get mouse click screen coordinates (by clicking outside AIR application window)
I tried the following, but i don't get anything, it seem like the ScreenMouseEvent.CLICK event not dispatched.
public function Main():void
{
if (NativeApplication.supportsSystemTrayIcon)//testExpression return true
{
SystemTrayIcon(NativeApplication.nativeApplication.icon).
addEventListener(ScreenMouseEvent.CLICK, click);
}
}
private function click(e:ScreenMouseEvent):void
{
trace(e.screenX);//nothing displayed :(
}
ScreenMouseEventbefore, but it looks like it is only dispatched from theSystemTrayIconClass. You might have to add your listener to that somehow. Docs for ScreenMouseEvent: help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/… - Adam Harte