loading a customised map

Post here your questions about the OpenSpace 1.x or notify bugs and suggestions.

Moderators: Lapo, Bax

Post Reply
magic
Posts: 1
Joined: 19 Feb 2009, 01:12

loading a customised map

Post by magic »

currently, in order to run a map, we use the following load map function to load a map xml file generated by openspace editor.

function loadMap (filename:String, skinsLibrary:*, backgroundsLibrary:*) : void

we can only provide a filename of the xml file, is there any method for us to provide a XML object or sth like tat so that we can dynamically generate a map xml file for it to be loaded by the openspace object?

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

Post by Bax »

No, you can't pass the xml object to the OpenSpace.loadMap method, but you can pass a url to a (for example) php page which returns the xml after dynamically generating it.
Paolo Bax
The SmartFoxServer Team
Post Reply