I've got a rather simple question about loading in an xml file at runtime in a SWF.
I've found a couple different methods to load in the xml.
- myXml.load("file.xml");
- HTTPService object
- URLStream object
What开发者_如何学Go is better way to load an xml file that always has the same name and is located in the same folder as the SWF on the web server?
I would use URLLoader - I think that's the most lightweight one.
- The complexity of
URLStreamis unnecessary as far as a configuration file is concerned. HTTPServiceagain is heavy for this simple task (and Flex only). Of course, it allows you to get away with minimum code, but I use it only for something that needs to be updated repeatedly (binding thelastResultto a liveDataGridetc).myXml.load()- this is not AS3, is it?
加载中,请稍侯......
精彩评论