/ Published in: ActionScript 3

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function main():void { stage.addEventListener(Event.DEACTIVATE, windowNotActive); stage.addEventListener(Event.ACTIVATE, windowActive); } main(); function windowNotActive(e:Event):void { trace("NOT ACTIVE"); } function windowActive(e:Event):void { trace("ACTIVE"); }
Comments
