ActionScript: IE8 navigateToURL bug and workaround

Flash player on IE8 has a bug: the call to actionscript function navigateToURL(urlRequest) always opens in a new window.

The workaround is to use ExternalInterface to create on the fly a function and call it:

public class YourUtilsClass {
	public static function navigateToURL( url:String ) : void {
		ExternalInterface.call("function winOpen() { window.open('" + url + "'); }");
	}
}
This entry was posted in Actionscript. Bookmark the permalink.

One Response to ActionScript: IE8 navigateToURL bug and workaround

  1. Vitaly says:

    Thanks a lot!.

Leave a Reply

Your email address will not be published. Required fields are marked *