XML into Flash from aspx page
Posted on 2010-11-07
Im trying to load an aspx page as XML data into a flash project. Im using URLLoader as my method of loading the XML.
The error I get from Flash IDE is:
TypeError: Error #1088: The markup in the document following the root element must be well-formed.
If i view the page in a browser and copy and paste the entire displayed content into a local XML file, it does work (eg error is possibly misleading).
The data in the file is a list of folders, sub folders and file content which is reached by checking the folders themselves (ie no db). I reckon my SWF is loading the page too fast and as a result the code behind hasnt completed but i cant be certain.
The Flash is coverflow but im editting the FLA to make the xml path change.
Within the complete function of the loader I have:
this is what is throwing the error
im buidling the xml during PreInit on th ASPX and using an XMLWriter. For flash its AS3 but im using CS4