This content has been marked as final. Show 4 replies
MXML is just text, so you can certainly generate it as a String. Or you can use XML and use the built-in XML (or E4X) functions to build the MXML as an XML document.
You will need to save the string to a server though, since the Flash Player cannot write to the local disk.
It would be grate if you provide some example
Perhaps something like:
var newmxml:String = "<?xml version='1.0' ?>";
newmxml += "<mx:Application xmlns=' http://www.adobe.com/2006/mxml' layout='absolute'>";
newmxml += "<mx:Label text='hello world' />";
newmxml += "</mx:Application>";
Now send that string to the server to save someplace reachable by the Flex Data Service server and when you request it, the web tier compiler will process it and display "hello world'.
Thank you very much