Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

Android App ID from ActionScript.

Engaged ,
Dec 10, 2018 Dec 10, 2018

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

TOPICS
Development
573
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Dec 11, 2018 Dec 11, 2018

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
Community Beginner ,
Dec 11, 2018 Dec 11, 2018

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Dec 11, 2018 Dec 11, 2018
LATEST

Thank you. Works great!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines