i don't see an htmlText property for the s:TextArea class.
however, flash recently rolled out the flashx.textLayout.elements package, which includes most of the elements commonly seen in html. The package has been ported into gumbo through the mxml tags <s:a>, <s:br>, <s:p>, <s:div>, etc.
these new elements are supported by s:RichText (and by extension s:TextArea) and some of these elements (like LinkElement aka <s:a>) support events including the rollover event.
more to read @:
and my own little demo:
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768"> <s:TextArea horizontalCenter="0" verticalCenter="0" editable="false"> <s:p> <s:a href="http://www.google.com" rollOver="rot.play([bigBox])" rollOut="rot.stop()"> roll over me </s:a> to see the amazing blue ball do its thing. </s:p> </s:TextArea> <fx:Declarations> <s:Rotate id="rot" angleBy="10000" duration="50000" autoCenterTransform="true" affectLayout="false" suspendBackgroundProcessing="true"/> </fx:Declarations> <s:Group id="bigBox" horizontalCenter="0" verticalCenter="0" width="450" height="450"> <s:Ellipse width="100" height="100" horizontalCenter="0" top="0"> <s:fill> <mx:SolidColor color="blue" alpha=".5"/> </s:fill> </s:Ellipse> </s:Group> </s:Application>
Thanks very much for all the helpful links and your example too. A follow on question if you don't mind. I want my marked up text to be external in an xml file. Currently, I just read it all in, store it in a string and then assign it like this: myTextArea.htmlText = myString; Would I be able to do this with the new TextArea like this: myTextArea.content = myString; Also, will my mark up have to include the 's' in all the tags? (i.e. <s:p> instead of just <p>? Thanks again for your help. P.S. I have not downloaded the beta of Flex 4 yet because I'm afraid of messing up my development environment, but I have been doing a lot of reading and studying of things so that I am ready to go as much as possible when it is released which I hope will be soon.