Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 149029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:03:49+00:00 2026-05-11T09:03:49+00:00

I’m developing a Adobe Air application that should make use of a SWF file

  • 0

I’m developing a Adobe Air application that should make use of a SWF file using LocalConnection.

I’ve never used LocalConnection before, but from what I understood from the online reference, I need to specify the same connection name on both the sender and the receiver.

Since I don’t have access to this component source code, how can I find out what connection name should I use?

I do have access to some JavaScript files that use the same SWF, but since I have no experience with JavaScript I wouldn’t know where to start looking for. Could I figure something out from there?

… or am I missing something?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:03:49+00:00Added an answer on May 11, 2026 at 9:03 am

    There is no way to query from ActionScript what the connectionName is. The reason being it would open up a myriad of security holes. If this is mentioned in the documentation of the SWF you want to talk to — check it out.

    The whole LocalConnection business, though not difficult, is complicated by the fact that the documentation is flaky, to say the least. And very, very confusing. You should read it very carefully before attempting to do anything. I’ve burnt my fingers there.

    Check this out first:

    • Is the AIR app on different computer than the SWF? You’re out of luck otherwise. Because:

      LocalConnection objects can communicate only among files that are running on the same client computer […]

    • Does the SWF have a LocalConnection object? If no, you’re out of luck.

    • Your AIR app (assuming it the callee, and invokes some method X on the SWF) needs to have a LocalConnection object as well. And, it will have to call connect() to connect to the SWF.
    • Your best bet is to take the last approach mentioned in the documentation, (which is also the most generic) i.e. Different domains with unpredictable domain names. Also, to start off allow any and every domain so use: allowDomain(*);
    • If the other SWF is also an AIR application you will have to prepend the application ID to the connection name.

    Now, give it your best shot and let us know where you get stuck. Best of luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 280k
  • Answers 280k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer This looks like a job for... ROW_NUMBER! INSERT INTO NewTable… May 13, 2026 at 3:37 pm
  • Editorial Team
    Editorial Team added an answer The first google response I discovered: http://www.tipstrs.com/tip/354/Using-optional-parameters-in-Javascript-functions I haven't seen… May 13, 2026 at 3:37 pm
  • Editorial Team
    Editorial Team added an answer According to Wikipedia (7z article), the mime type of a… May 13, 2026 at 3:37 pm

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I want use html5's new tag to play a wav file (currently only supported
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I've got a string that has curly quotes in it. I'd like to replace
In order to apply a triggered animation to all ToolTip s in my app,

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.