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

  • SEARCH
  • Home
  • 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 534529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:37:19+00:00 2026-05-13T09:37:19+00:00

[EDITED] This issue was originally described as my having trouble with Perl’s Socket, but

  • 0

[EDITED]
This issue was originally described as my having trouble with Perl’s Socket, but I have moved on now to where this is clearly a Flash security thing. However, I’m still stuck.

I have a flash client that attempts to connect to an open socket on the same host as the one on which it lives.

I am able to connect successfully from inside the Flash IDE, and when I run the swf movie locally on my machine, after granting it security clearance in the white list it connects as well. However, when I call the movie via the browser (http://mydomain/mymovie.swf) it fails to connect.

The socket reports that a connection attempt is made but immediately disconnects.

I have a crossdomain policy file that looks like this: in the root directory of the host.

<?xml version="1.0"?>
<cross-domain-policy>
  <allow-access-from domain="*" to-ports="10005"/>
</cross-domain-policy>

(yes, the Socket is listening on that port).

In the flash movie I have a line that looks like this:

System.security.loadPolicyFile("XMLSocket://myDomain.com:80");

And I’m thinking maybe that’s where the problem is, but the documentation on how to use this method is not entirely clear.

I’m in Flash CS3

All thoughts appreciated.

  • 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. Editorial Team
    Editorial Team
    2026-05-13T09:37:20+00:00Added an answer on May 13, 2026 at 9:37 am

    So, the solution appears to be that the socket server itself needs to deliver the crossdomain xml to the client.

    Flash sends a string that looks like this:
    <policy-file-request/> right after it connects.
    If you respond to this with

    <?xml version="1.0"?>
    <cross-domain-policy>
      <allow-access-from domain="*" to-ports="*"/>
    </cross-domain-policy>
    

    It accepts the connection.

    The one last remaining non-working element is that when the client is closed, it refuses to reconnect again until the server script is restarted, even though the server script appears to be willing to re-use the socket and is receiving and sending the same messages on subsequent connection requests. This problem also doesn’t seem to affect the local (non hosted) version of the swf client.
    Very strange.

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

Sidebar

Related Questions

This is a sample (edited slightly, but you get the idea) of my XML
I have HTML code edited by FCKEditor stored in a database and would like
I have a JavaScript resource that has the possibility of being edited at any
Edited again because it originally wasn't clear that I'm trying to initialize the arrays
Problem: edited files on windows, using git-bash, to fix IE7 problems committed, pushed to
I edited the question after David Hanak's answer (thanks btw!). He helped with the
How do I load the edited .emacs file without restarting Emacs?
Here is an example of polymorphism from http://www.cplusplus.com/doc/tutorial/polymorphism.html (edited for readability): // abstract base
My VB.Net Winforms app is a tool to allow hierarchical data to be edited
I'd like to write a plugin that does something with the currently edited file

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.