You could escape the string before saving the file and unescape it before you display it.
Or you could get the string at run-time instead of compiling it in. Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of greenfishinwater Sent: Tuesday, September 11, 2007 4:03 PM To: [email protected] Subject: [flexcoders] How to load data from a file in mxml I have been using <mx:XML to load static data from an XML file: <mx:XML source="assets/setup.xml" format="e4x"> How can I do the same but using non XML data? I tried this: <mx:String source="testAS.as"> The file happens to have Action script code in it. But when the flex project is compiled I get compile errors from other parts of the mxml file. It appears to be trying to insert the data in testAS.as into the mxml file itself. It is still a problem if all the lines are commented out with //. It seems to dislike the line: //} What I am trying to do is to load some AS code as text to be displayed as text in my app. Thanks Andrew

