Set BlueBox settings without loading config xml

Post here your questions about the Flash / Flex / Air API for SFS2X

Moderators: Lapo, Bax

Post Reply
lomriilod
Posts: 46
Joined: 12 Nov 2006, 11:55

Set BlueBox settings without loading config xml

Post by lomriilod »

Hi,

I am trying to set the BlueBox settings in sfsclient.config (ConfigData) which does not work, because I am not loading the server settings via loadConfig. (I use my own config loader). Is there a way to force the sfsclient to create ConfigData?

Dirk
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

No.
But why do you use your own config loader?
Paolo Bax
The SmartFoxServer Team
lomriilod
Posts: 46
Joined: 12 Nov 2006, 11:55

Post by lomriilod »

Because we are storing various other client settings within the same xml file.
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

I'm sorry but this is not possible.
Use two separate files.
Paolo Bax
The SmartFoxServer Team
dingo
Posts: 98
Joined: 27 Jan 2009, 21:34

Post by dingo »

So how do i get the xml file to the client?

It's not automatically downloaded with the swf, and even if it were, the clients security restrictions won't allow to read an xml file.

I don't quite understand how I'm supposed to accomplish setting up bluebox.

thanks.
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

You have to use the default loadConfig method to load the client configuration file in which the BlueBox settings are stored.
For your additional settings use a separate xml file that you have to load in your application.
Paolo Bax
The SmartFoxServer Team
Post Reply