This content has been marked as final. Show 3 replies
i don't know if you can display an external HTML file in a TextArea, possibly something else...but go to http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html it will help a lot in creating a css to style any component
Are you trying to just use HTML text for a single text area, or are you trying to load an entire web page? If you are just looking to load some text, you can create an <mx:HTTPService> and point it to your .html file. Then you have to drill down to the section you are looking for ie.. htmlVar.HTML.Body.div.tr.td.etc. Unless you are creating the file from scratch, in which case you can just make is an HTML formatted flat file with a single header like:
<body> this is the <b>TEXT</b> I wanted to <i>display</i> </body>
and then just load that. In any case, load that into an Object and then assign, the htmlText property of your textArea the Object variable and you should be set (be that the case).
If you are looking to load a webpage in a container, check out this link: http://raghunathraoflexing.blogspot.com/2006/12/flex-i-frame.html
If it's a real html document you cannot display it inside Flex - the Flex TextArea support for HTML is just a bit of formatting markup, it can't actually show any significant subset of html. You'll have to use the frames solution above or wait (patiently) for Apollo.