----- Original Message ----- From: "Ricardo Kirkner" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, January 24, 2008 7:17 PM 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? I've never done this, but I think some people use the SDK to compile stuff on the fly and then use the resulting swf. I think it's usually something done on the server rather than the client. I'm surprised an alternative approach isn't used - create some XML to represent the component you're trying to build and have the client interpret that and build the component on the fly. Naturally it can't be as sophisticated as the mxml/SDK approach but I suspect it's good enough for most purposes. Paul > > Thank you in advance, > > Ricardo Kirkner > > > > -- > 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 > > > >

