Given the following:
private var errorHtml:String = "<TextFlow xmlns=\"http://ns.adobe.com/textLayout/2008\"><p>Existing account, please <a click=\"clickHandler(event);\">click here</a>.</p></TextFlow>";
Then importing it on creationComplete:
errorMessageText.textFlow = TextConverter.importToFlow(errorHtml, TextConverter.TEXT_LAYOUT_FORMAT);
The click handler function never fires. But if I add it directly to the markup:
<s:textFlow>
<s:TextFlow>
<s:p>
Existing account, please <a click=\"clickHandler(event);\">click here</a>.
</s:p>
</s:TextFlow>
</s:textFlow>
The event fires fine. I saw that these events get removed if you try to import as TEXT_FIELD_HTML_FORMAT:
Note: Unlike the TextField class, ActionScript link events are not supported. Neither are a:link, a:hover, and a:active styles.
Are they also removed using TEXT_LAYOUT_FORMAT?