开发者

AIR: url navigation via <a> link in htmlText

I have AIR application and mx:Label with htmlText property (<a href='http://www.adobe.com'>Navigate to Adobe.com.</a>). For some reason nothing happens when I click it. It works i开发者_如何转开发n not-AIR application, but does not in AIR one. Any suggestions? Thanks.


Make sure that you have the selectable property set to true or otherwise it won't work.

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜