Is there a way to make innerMXML (a bit like innerHTML in js)?

I have a case where an important part of the Flex page should be redesigned with different widgets, layout and data with certain actions of the user. I can do it in ActionScript, but then I'll need to go through the tedious controls instantiation in actionscript, adding properties and then adding them to the DOM application. DHTML, there is a very convenient way to do this either innerHTML allows you to set a string of HTML and the browser will automatically create DOM objects out of it.

I'm looking for an innerMXML or something like that who take the string MXML and automatically create controls etc out of it and place them in the DOM of application. Is this possible with ActionScript 3.0? This feature is planned for the future?

No, there is no way to do that with Flex. This is possible in HTML for a browser is to analyze and make the HTML. Flash Player knows nothing about MXML. The only way to achieve this would be to create your own MXML parser and renderer in ActionScript, which is not a good idea.

Tags: Flex

Similar Questions

Maybe you are looking for

  • My notes have disappeared

    I backed up or synchronized (I don't know which) my iPhone 4 on my mac and then I got an iphone 5 s. I clicked on restore iphone to back last place and my new phone had all my old content top, but my grades were not there. I can't find them anywhere.

  • Pad at the top of the keyboard no longer works after installing Windows 7

    I have a cl dv7-1273.  Just changed from Vista Home Premium 64 for Windows 7 64.   Win 7 installed OK.  After you install the pad at the top of the keyboard no longer works in the dialogs like this.  When I entered the numbers here I had to use the k

  • HP workflow: System disabled

    you forgot admin password on power after that three links I get this code 76960864 please help?

  • Satellite A45-SP270 - how boot from LAN?

    Hi, I have a Toshiba Satellite A45-SP270 and I want to install Windows XP, but the CD player does not work and I don't have floppy drive (boot USB is not available) so the only remaining option is using the LAN option, but I don't know how to use it.

  • BEI meinem iconia a3 - a40 micro sd schacht zu ist der. Warum

    Hallo, ICH habe ein neues Iconia 10 A3 - A40. Warum ist der ´Micro zu SD Schacht, also kann keine Karte einstecken, oder ist das Modell then? MFG Wilfried