Connection trouble(except for some exceptions)

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
ASCIISkull
Posts: 4
Joined: 08 Dec 2005, 08:10

Connection trouble(except for some exceptions)

Post by ASCIISkull »

For some reason, I can connect to the server I'm using when I test an application in flash, and the admin.swf for the server connects just fine.
When I telnet the ip and port of the server, I get:
<cross-domain-policy><allow-access-from domain='*' to-ports='9339' /></cross-domain-policy>

However, when I try running the swf of the app either from my computer or from an uploaded location, it doesn't work.

The policy file is being received during testing as well(when running in flash I see the trace of it being caught), but outside of flash all swfs except the admin just hang at 'connecting...'

Any ideas?

The IP is 64.252.103.12 by the way.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

In order to load the poilicy file from the socket server you should use:

Code: Select all

System.security.loadPolicyFile("xmlsocket://192.168.0.1:9339")
(using the right IP addr and port)
The above line of code should be added in your actionscript before you connect to the server

Also, please note that this will work only with flash player 7.0.19 and later.

You can read more about this in our docs (chapter 3.1)
Lapo
--
gotoAndPlay()
...addicted to flash games
ASCIISkull
Posts: 4
Joined: 08 Dec 2005, 08:10

Post by ASCIISkull »

I tried both that and the square brackets version. Also, my flash player runs the admin panel no problem(using flash player 8 ).
Post Reply