I am using a link href' mailTo:email@example.com ' (this blog put in the hyperlink). I any case, when I click the link in the TextFlow, it:
1. Opens IE window and reports 'Navigation to the webpage was canceled' with my mailTo href in the url (which is bad), and
2. It opens my mail program (which is good).
I have set allowScriptAccess=always per comments in navigateToURL documentation throws section.
Works like a charm in Firefox, but IE opens a window in the process. Anyone know how to fix this?
Turns out it is easy to fix. The problem is that the LinkElement calls navigateToURL and if you do not specify a target, it defaults to "_blank" and thus the blank window. If you use a target "_self" it works. So,
var link:LinkElement = new LinkElement;
link.href = "mailTo: ...";
link.target = "_self";