Hi,
Since we have to target Flash Player for 3D projects, I’m struggling to retain some important AIR functionality for Android:
NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.KEEP_AWAKE;
NativeApplication.nativeApplication.addEventListener(Event.DEACTIVATE, DeactivateDevice);
NativeApplication.nativeApplication.addEventListener(Event.ACTIVATE, ReactivateDevice);
I get this error in Flash CS6:
1120: Access of undefined property NativeApplication.
Or this if I try to import the class manually:
1172: Definition flash.desktop:NativeApplication could not be found.
Is it possible to have the best of both worlds? How are developers handling things like this in their mobile projects?