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.
 

Michael Krotscheck

Senior Developer

                          

RESOURCE INTERACTIVE

<http://www.resource.com/> www.resource.com <http://www.resource.com/> 

[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Ricardo Kirkner
Sent: Thursday, January 24, 2008 2:17 PM
To: [email protected]
Subject: [flexcoders] mxml loader



Hi there,

I am new to flex. I am trying to find out if there is a way to render
mxml code dynamically at runtime.

What I want to achieve is to have a main mxml file that will fetch a
mxml form definition (in the form of a string, for example) through a
web service, and will then render the mxml code received.

I guess this would require to compile the mxml code received, and then
embed the resulting sw(f|c) file into the main application.

Can anyone tell me if this is possible to do using Flex 2 SDK?

Thank you in advance,

Ricardo Kirkner



 


We support privacy and confidentiality. Please delete this email if it
was received in error.

What's new ::
Capitalize on the social web | The Open Brand, a new book by Kelly
Mooney and Dr. Nita Rollins, available March 2008 | www.theopenbrand.com

<<1c85ec2_e267795c__img_1.gif>>

Reply via email to