Best way to dynamically load an xml configuration file into a Flex4/Flash movie at runtime?
问题 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 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? 回答1: I would use URLLoader - I think that's the most lightweight one. The complexity of URLStream is unnecessary as far as a configuration file is concerned.