Copy link to clipboard
Copied
Hi All,
Is there any way of knowing the render mode of an application at runtime on iOS device ?
I need to get the render mode of my running application and pass on different logic based on whatever render mode I get at runtime but I am struggling to find any such API or method that can solve my purpose.
Any suggestions ?
Thanks,
Ken
You should be able to get from the app descriptor XML from
NativeApplication.nativeApplication.applicationDescriptor:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/NativeApplication.html
--
Thanks,
Kawika Heftel
Heftel Studios
801-358-9830
http://www.heftelstudios.com
Copy link to clipboard
Copied
You should be able to get from the app descriptor XML from
NativeApplication.nativeApplication.applicationDescriptor:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/NativeApplication.html
--
Thanks,
Kawika Heftel
Heftel Studios
801-358-9830
http://www.heftelstudios.com
Copy link to clipboard
Copied
Thanks for the response. However, this method is not working in our case as we are using a remote swf and that doesn't not have permission to parse the XML due to iOS sandboxing.
Is there some other way to doing this ? or to do a hack fix, Is there any API that is supported only on GPU mode, using this I can differentiate GPU mode from CPU mode just like I can differentiate direct mode by checking support for stageVideo or stage3D.
Regards,
Ken
Copy link to clipboard
Copied
For the external SWF to have code it it, it would have to be included in the build of the app, and then the code-less SWF is put on the server. So, the code that you would run to see what render mode you're in would be in the IPA already, and as the render mode doesn't change, why would the remote SWF not know what render mode was being used?