changing the style of a linkElement dynamically
Hi, simple question that I can't find in the docs. How do I set the style of a link element in an event handler?
<fx:Script>
<![CDATA[
import flashx.textLayout.events.FlowElementMouseEvent;
private function showRollOver(event:FlowElementMouseEvent):void {
event.flowElement.setStyle("color", 0xff0000); // doesn't do anything
}
]]>
</fx:Script>
<s:TextArea id="textArea" editable="false">
<s:textFlow>
<s:TextFlow>
<s:p>Here is a link to <s:a href="http://www.adobe.com rollOver="showRollOver(event);">Adobe </s:a>and here is a link to Adobe.</s:p>
</s:TextFlow>
</s:textFlow>
</s:TextArea>
Thanks for any help!
In an unrelated suggestion, getting a better text entry form on this site might make it less infuriating to use.
