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

LocalConnection between desktop app and android app

Community Beginner ,
Oct 29, 2023 Oct 29, 2023

Copy link to clipboard

Copied

I'm trying to do a LocalConnection between an application (.exe) file and an android application, I've tried almost every domain and I keep getting errors. What should I do?

Views

64

Translate

Translate

Report

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
Community Expert ,
Oct 30, 2023 Oct 30, 2023

Copy link to clipboard

Copied

Hi.

 

Can you provide details about the code you are using?

 

Regards,

JC

Votes

Translate

Translate

Report

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
Community Beginner ,
Oct 30, 2023 Oct 30, 2023

Copy link to clipboard

Copied

Of course.

 

SWF or Desktop Application:

var test:LocalConnection = new LocalConnection;
 
show_btn.addEventListener(MouseEvent.CLICK, showtest);
 
function showtest(event:MouseEvent):void
{
test.send("_myConnection","game");
}
 
AIR:
var test:LocalConnection = new LocalConnection;
test.client=this;
test.allowDomain("app#screen");
test.connect("_myConnection");
 
function game():void{
test_txt.text="THIS IS A TEST."
}

Votes

Translate

Translate

Report

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
Community Expert ,
Oct 30, 2023 Oct 30, 2023

Copy link to clipboard

Copied

LATEST

again, localconnection is not supported on mobiles. ie, read the api.

Votes

Translate

Translate

Report

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
Community Expert ,
Oct 30, 2023 Oct 30, 2023

Copy link to clipboard

Copied

localconnection is not supported on mobiles.

Votes

Translate

Translate

Report

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