quick question about config.xml load

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

Moderators: Lapo, Bax

User avatar
mistermind
Posts: 131
Joined: 15 Sep 2007, 01:33
Contact:

quick question about config.xml load

Postby mistermind » 07 Dec 2010, 23:45

Hey there,
I've been trying to find an answer by searching, but couldn't get one.
How am I suppose to load config.xml from cross domains (the client one, using sfs.loadConfig)?
Adding a http address to it doesn't work

Code: Select all

sfs.loadConfig("http://www.mywebsite/config.xml")


I mean, I understand how to load a policy file:

Code: Select all

Security.loadPolicyFile("xmlsocket://216.55.137.18:9339");

But after that, how do I load the config.xml from another domain on AS3?

I ask that cause I soon wanna publish the game on other websites and don't want the swf to depend on a config.xml file in the same folder.
SELECT * FROM users WHERE clue > 0
0 rows returned.
User avatar
mistermind
Posts: 131
Joined: 15 Sep 2007, 01:33
Contact:

Postby mistermind » 07 Dec 2010, 23:57

nvm my question (again lol)
sfs.loadConfig("http://www.mywebsite/config.xml") works just fine ;)
SELECT * FROM users WHERE clue > 0

0 rows returned.

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 13 guests