Skip to main content
Inspiring
Dec 10, 2018 6:14 PM UTC
Answered

Android App ID from ActionScript.

Hello. Is there a way to query Android App ID inside the app (from ActionScript)?

This topic is closed to new replies. Start a new post to keep the conversation going.
baslindCorrect answer
Participant
Dec 11, 2018 8:53 AM UTC

import flash.desktop.NativeApplication;

var appXML:XML = XML(NativeApplication.nativeApplication.applicationDescriptor);

var appID:String = appXML.children()[0];

Alternatively (for some reason this method didn't work for me): NativeApplication - Adobe ActionScript® 3 (AS3 ) API Reference

2 replies

baslindCorrect answer
Participant
Dec 11, 2018 8:53 AM UTC

import flash.desktop.NativeApplication;

var appXML:XML = XML(NativeApplication.nativeApplication.applicationDescriptor);

var appID:String = appXML.children()[0];

Alternatively (for some reason this method didn't work for me): NativeApplication - Adobe ActionScript® 3 (AS3 ) API Reference

Translate
Inspiring
Dec 11, 2018 3:29 PM UTC

Thank you. Works great!

Translate