How to listen to what Native Application opens

Hello

I'm sure it's pretty trivial, so I'm sorry that if it comes to an easy question, AS3 is far from my point hard.

I had a peek here http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/Flash/desktop/NativeApp lication.html but I'm not 100% sure class that will help me achieve what I want to do and how to implement this code.

I want to just run a function when the native application opens again?

If someone could help me or let me know if this is possible, it would be great.

Thank you

Alex

Hi Alex!

Use the Event.ACTIVATE in nativeApplication like this:

NativeApplication.nativeApplication.addEventListener (Event.ACTIVATE, onActivate);

function onActivate(e:Event):void {}

What you want to do here

}

Have fun!

Anders

Tags: Adobe AIR

Similar Questions

Maybe you are looking for