i've done something similar i think- why not have the web service send you a form definition in XML, then have your main flex app parse thru the XML and build the form components?
d. On Jan 24, 2008 2:36 PM, Maciek <[EMAIL PROTECTED]> wrote: > I don't think this is possible, since MXML is actually compiled down to > ActionScript. I believe the closest you can come to this is have a web > service that will invoke the compiler and build mini-swfs (same mxml > that you were thinking of sending around, plus just enough skeleton code > to get it to compile), then send you the actual swfs. Then you can load > the swfs. This might not give you the performance you'd like, though... > > > On Thu, 2008-01-24 at 19:17 +0000, Ricardo Kirkner wrote: > > 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 > > > > > > > > > > > > >

