loadConfig API suggestion

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

Moderators: Lapo, Bax

User avatar
levancho
Posts: 71
Joined: 27 Jun 2011, 16:03

loadConfig API suggestion

Postby levancho » 27 Jun 2011, 16:11

Hi,

in the future releases is it possible to add an API method to smartFox loadConfig to accept XML or XMLList as an optional parameter?
problem is that
I am integrated smartfox API into my Flex framework that already has its own xml configuration API and I do not want to load another XML file, I can just get those properties (XML /XMLList ) from my main xml and then if there was an api I would just pass that to loadConfig method which in turn instead of making service call to load xml would read my xml parameter and configure SmartFox ?
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 27 Jun 2011, 20:14

If you load the settings in a different way, then simply pass them to the appropriate methods (for example the connect method).
Paolo Bax
The SmartFoxServer Team
User avatar
levancho
Posts: 71
Joined: 27 Jun 2011, 16:03

Postby levancho » 28 Jun 2011, 07:08

that's what I am doing right now, but I found another workaround,

I just load a dummy smartfox config to triger creation of configData object on smartfox and and then manually override all those properties from my properties object like this :

Code: Select all

   for (var i:String in props) {
            if(_smartFox.config.hasOwnProperty(i)) {
               _smartFox.config[i] =props[i];
            }
      
         }

Return to “SFS2X ActionScript 3 API”

Who is online

Users browsing this forum: No registered users and 22 guests