Page 1 of 1

loading a customised map

Posted: 19 Feb 2009, 01:17
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.

Posted: 19 Feb 2009, 12:32
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.