Open browser on click of anchor tag from an AIR( flex ) Html Component -


i rendering html page in flex using htmlloader component. html content has anchor tag clicking on should launch webpage in browser.

this anchor tag doesn't work.do have use intermediate communication of js as(actionscript) make work? code using render html in flex

 html.location = "https://my_url?path=get_notifications"; 

html snippet

<a href="url" target="_blank">go web</a> 

the issue comes htmlloader's handling of target="_blank". if want htmlloader handle _blank need create custom htmlhost htmlloader (htmlloader.htmlhost). custom htmlhost need override createwindow function , handle _blank case. more information available following links:

adobe - defining browser-like user interfaces html content

forrst - enable link target='_blank' in adobe air htmlloader component

sonke rohde - air html “_blank” links part ii – using htmlhost


Comments