Entrepreneur Geek

Nirav Mehta on life, technology and future

Archive for the ‘new window’ tag

Opening External Links in new window from AS3

with 9 comments

You most probably know that there are issues opening links using the navigateToURL() method in Flex. The three most common problems / issues are:

  • allowScriptAccess not set to all in the HTML Wrapper
  • Window Mode set to transparent in IE
  • Popup blockers blocking the new window – specially when target is _blank

Many people have tried solving this issue. My approach is simply a hack over FlexMerge’s code. Which in turn is a hack on “Jason the SAJ”’s approach. Another approach I liked in detecting if popup blockers blocked your window is Andrew Trice’s solution on InsideRIA.

Essentially, use JavaScript window.open method for Firefox, a little tweak on that for IE and use navigateToURL() for other browsers.

Continue reading for the code…
Read the rest of this entry »

Written by Nirav

November 27th, 2008 at 11:58 am