Many browsers and popup blockers block attempts to open a new window from a flex swf using navigateToURL. Also, how do you control size and browser properties from navigateToURL?
Solution
Create a workaround function in Flex that calls window.open() JavaScript method
Detailed explanation
I have updated previous technique since firefox will still block it. Previous post left below, but this technique comes from here:
Basically, make a call to an AS function that does this:
var url1:String = new String();
url1 = "http://www.macys.com/";
// This method of opening window gets around popup blockers
ExternalInterface.call("window.open", url1, "_blank", ""); You could also use ExternalInterface to call a javascript popup
function to size the popup (the above code just opens a new window).
hope it works for ya'll...
//////////////////// previous post
In main Flex script tag, create this function:
// function below opens window without getting it blocked private function openNewWindow(event:MouseEvent, url:String, winName:String, w:int, h:int, toolbar:int, location:int, directories:int, status:int, menubar:int, scrollbars:int, resizable:int):void {
To determine if the new window has toolbars, menubars, etc you can set a 0 or 1 for those fields when calling the function. There are actually several ways to do this, but this one seemed easiest to manage to me.