Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Won't Fix
-
Adobe Flex SDK 3.3 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Run this:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" >
<mx:Script>
<![CDATA[
[Bindable]
public var testHTML : String = "<a href='event:doSomething'>A Link</a>";
]]
>
</mx:Script>
<mx:TextArea id="myTextArea"
width="100%" height="100%"
backgroundAlpha="0"
htmlText="
" selectable="false"
editable="false"
link="status.text='LINK event dispatched';" />
<mx:Label text="" id="status" />
</mx:Application>
When you click on the link in the TextArea for the first, the link event is not dispatched if selectable is false. A second click does dispatch the event. Changing selectable to true fixes the issue.