I'm building an AIR-based iOS app as pure AS3 from FlashBuilder, and I want to detect ACTIVATE and DEACTIVATE events when the app loses focus.
Much of the docs say to register the event listener against NativeApplication.nativeApplication
, but I'm just registering it against this
, in the context of the application's Main class. And it works.
Is there any risk to doing it that way? What are the reasons for explicitly using the NativeApplication singleton instance to register event listeners?