2 Replies Latest reply on Jun 19, 2009 11:13 PM by Celinio

    html table inside <mx:htmlText> ?

    Celinio Level 1


      i would like to insert a table inside a <mx:htmlText> component, like this :


          <mx:Accordion width="100%" height="100%">
          <mx:VBox label="Stuff">


                                         <td>This is my house </td><td>This is a picture of the house <img src="house.jpg"></td>



                                         <td>This is my car</td><td>This is a picture of the car<img src="car.jpg"></td>





      However the <table> tag does not display a table when used inside <mx:tmlText>.  Is that normal ? If yes, are there any other alternatives ?


      Thanks for your help.

        • 1. Re: html table inside <mx:htmlText> ?
          GordonSmith Level 4

          The documentation for the htmlText property of the flash.text.TextField class in the ActionScript Language Reference at http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/ shows which tags the Flash Player understands. Unfortunately, table tags aren't supported.


          Adobe is developing a new ActionScript library called the Text Layout Framework. Although it doesn't yet support tables either, and won't in its 1.0 release, they have been requested as a feature in a future release. It is much more likely that tables will eventually be supported in TLF than that they will be supported in TextField, which is becoming obsolete.


          You should also be aware that, if you are developing an AIR app, you can use the low-level HTMLLoader class (and, in Flex, the <mx:HTML> class) to display "real" HTML like browsers do, including tables.


          Gordon Smith

          Adobe Flex SDK Team

          • 2. Re: html table inside <mx:htmlText> ?
            Celinio Level 1

            in Flex, <mx:HTML> is not recognized :

               -Could not resolve <mx:HTML> to a component implementation.