----- Original Message ----- From: "Ricardo Kirkner" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, January 25, 2008 3:46 PM Subject: Re: [flexcoders] mxml loader
> Mike Krotscheck wrote: >> >> This is possible two different ways: >> 1- With the livecycle server, which will compile your mxml on the fly >> and then send the resulting swf to your application. This costs a lot >> of money. >> 2- By using some kind of object encoding (coreLib.JSON might be able >> to do this), converting the string to a UIComponentDescriptor, and >> then adding it to a management class using >> createComponentFromDescriptor(). Note that in this case you're not >> actually passing MXML >> >> I highly reccomend you avoid the latter- dynamically sending object >> descriptors of _any_ type is just asking for someone to inject their >> own descriptors and thus backdoor your application. > > ok, I understand your reasons, but what would you recommend in case I > wanted to be able to insert dynamically generated mxml code into my > application (at runtime)? What is it that you are doing that means you need to use mxml dynamically? Two of us have already suggested a way to achieve similar (if not the same) behaviour without using dynamically generated mxml. Paul > > thanks again > > ricardo > > <http://www.resource.com/> <mailto:[EMAIL PROTECTED]> > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > >

