<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Safari blocking popups from Flash &#8211; fix</title>
	<atom:link href="http://www.scottking.com.au/blog/2009/10/safari-blocking-popups-from-flash-fix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scottking.com.au/blog/2009/10/safari-blocking-popups-from-flash-fix/</link>
	<description></description>
	<lastBuildDate>Thu, 20 May 2010 03:12:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Scott King</title>
		<link>http://www.scottking.com.au/blog/2009/10/safari-blocking-popups-from-flash-fix/comment-page-1/#comment-31</link>
		<dc:creator>Scott King</dc:creator>
		<pubDate>Wed, 14 Oct 2009 03:54:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottking.com.au/blog/?p=689#comment-31</guid>
		<description>Another Solution:::


/**
* Flash AS3 Page Change Utility
* @author Jordan Ambra
* @version 1.2
* http://www.zorked.com
* http://www.zorked.com/flash/flash-and-navigatetourl-popup-blocking/
*/

package com.zorked {
import flash.external.ExternalInterface;
import flash.net.*;
public class URLNavigator {
/**
* Utility function to wrap up changing pages. Avoids over-aggressive popup blockers.
* @param url The URL to change to. Either a String or a URLRequest
* @param window The target browser window/tab, generally _self, _top, or _blank
* @usage URLNavigator.ChangePage(&quot;http://www.google.com&quot;, &quot;_blank&quot;);
*/
public static function ChangePage(url:*, window:String = &quot;_self&quot;):void {
var req:URLRequest = url is String ? new URLRequest(url) : url;
if (!ExternalInterface.available) {
navigateToURL(req, window);
} else {
var strUserAgent:String = String(ExternalInterface.call(&quot;function() {return navigator.userAgent;}&quot;)).toLowerCase();
if (strUserAgent.indexOf(&quot;firefox&quot;) != -1 &#124;&#124; (strUserAgent.indexOf(&quot;msie&quot;) != -1 &amp;&amp; uint(strUserAgent.substr(strUserAgent.indexOf(&quot;msie&quot;) + 5, 3)) &gt;= 7)) {
ExternalInterface.call(&quot;window.open&quot;, req.url, window);
} else {
navigateToURL(req, window);
}
}
}
}
}</description>
		<content:encoded><![CDATA[<p>Another Solution:::</p>
<p>/**<br />
* Flash AS3 Page Change Utility<br />
* @author Jordan Ambra<br />
* @version 1.2<br />
* <a href="http://www.zorked.com" rel="nofollow">http://www.zorked.com</a><br />
* <a href="http://www.zorked.com/flash/flash-and-navigatetourl-popup-blocking/" rel="nofollow">http://www.zorked.com/flash/flash-and-navigatetourl-popup-blocking/</a><br />
*/</p>
<p>package com.zorked {<br />
import flash.external.ExternalInterface;<br />
import flash.net.*;<br />
public class URLNavigator {<br />
/**<br />
* Utility function to wrap up changing pages. Avoids over-aggressive popup blockers.<br />
* @param url The URL to change to. Either a String or a URLRequest<br />
* @param window The target browser window/tab, generally _self, _top, or _blank<br />
* @usage URLNavigator.ChangePage(&#8220;http://www.google.com&#8221;, &#8220;_blank&#8221;);<br />
*/<br />
public static function ChangePage(url:*, window:String = &#8220;_self&#8221;):void {<br />
var req:URLRequest = url is String ? new URLRequest(url) : url;<br />
if (!ExternalInterface.available) {<br />
navigateToURL(req, window);<br />
} else {<br />
var strUserAgent:String = String(ExternalInterface.call(&#8220;function() {return navigator.userAgent;}&#8221;)).toLowerCase();<br />
if (strUserAgent.indexOf(&#8220;firefox&#8221;) != -1 || (strUserAgent.indexOf(&#8220;msie&#8221;) != -1 &#038;&#038; uint(strUserAgent.substr(strUserAgent.indexOf(&#8220;msie&#8221;) + 5, 3)) >= 7)) {<br />
ExternalInterface.call(&#8220;window.open&#8221;, req.url, window);<br />
} else {<br />
navigateToURL(req, window);<br />
}<br />
}<br />
}<br />
}<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

