AIR:通过<a> link in htmlText</a>进行网址导航

时间:2011-06-17 07:55:56

标签: flex actionscript-3 air htmltext

我有AIR应用程序和mx:Label htmlText属性(<a href='http://www.adobe.com'>Navigate to Adobe.com.</a>)。由于某种原因,当我点击它时没有任何反应。它适用于非AIR应用程序,但不适用于AIR一。有什么建议吗?谢谢。

1 个答案:

答案 0 :(得分:2)

确保将可选属性设置为 true ,否则无效。

<mx:Label selectable="true">
    <mx:htmlText>
        <![CDATA[ <a href='http://www.adobe.com'>Navigate to Adobe.com.</a> ]]>
    </mx:htmlText>
</mx:Label>