<?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: Problem (and solution) : getURL() in a Flash projector fails in Firefox</title>
	<atom:link href="http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/feed/" rel="self" type="application/rss+xml" />
	<link>http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/</link>
	<description>Thoughts on web development, user-centered design, code, etc. by Paul Robertson</description>
	<lastBuildDate>Sun, 13 Nov 2011 01:59:49 -0500</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Alam</title>
		<link>http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-99552</link>
		<dc:creator>Alam</dc:creator>
		<pubDate>Wed, 05 Oct 2011 03:58:33 +0000</pubDate>
		<guid isPermaLink="false">http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-99552</guid>
		<description>// assume the button&#039;s name is myButton

import flash.events.MouseEvent;
import flash.net.*;

function openPage(event:MouseEvent):void
{
    var request:URLRequest = new URLRequest(&quot;test.html&quot;);
    navigateToURL(request, &quot;_blank&quot;);
}

myButton.addEventListener(MouseEvent.CLICK, openPage);

wont work for me :((
I uses google chrome &amp; firefox 6.
the entire flash movie got blank.
I used actionscript 3 too
what happened paul?</description>
		<content:encoded><![CDATA[<p>// assume the button&#8217;s name is myButton</p>
<p>import flash.events.MouseEvent;<br />
import flash.net.*;</p>
<p>function openPage(event:MouseEvent):void<br />
{<br />
    var request:URLRequest = new URLRequest(&#8220;test.html&#8221;);<br />
    navigateToURL(request, &#8220;_blank&#8221;);<br />
}</p>
<p>myButton.addEventListener(MouseEvent.CLICK, openPage);</p>
<p>wont work for me :((<br />
I uses google chrome &amp; firefox 6.<br />
the entire flash movie got blank.<br />
I used actionscript 3 too<br />
what happened paul?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sacky</title>
		<link>http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-90496</link>
		<dc:creator>Sacky</dc:creator>
		<pubDate>Wed, 15 Jun 2011 18:50:56 +0000</pubDate>
		<guid isPermaLink="false">http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-90496</guid>
		<description>Years later and this little bit of code still saved me ;) 

I was working on a projector to run from a CD, the client handed me swf and I didn&#039;t have the flas...loaded hundreds of files just ok but one would always crash the projector and the browser window when running debug on flex...

...it wasn&#039;t the best way round but it worked ;)
Thanks a LOT!</description>
		<content:encoded><![CDATA[<p>Years later and this little bit of code still saved me ;) </p>
<p>I was working on a projector to run from a CD, the client handed me swf and I didn&#8217;t have the flas&#8230;loaded hundreds of files just ok but one would always crash the projector and the browser window when running debug on flex&#8230;</p>
<p>&#8230;it wasn&#8217;t the best way round but it worked ;)<br />
Thanks a LOT!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Robertson</title>
		<link>http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-76455</link>
		<dc:creator>Paul Robertson</dc:creator>
		<pubDate>Tue, 20 Jul 2010 17:13:59 +0000</pubDate>
		<guid isPermaLink="false">http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-76455</guid>
		<description>@Nyssa,

The AS3 equivalent would be as follows:
1. Select the object and give it an instance name in the properties panel: e.g. &quot;adButton&quot;

2. Select a keyframe where you want to add the code (best to add a new layer for this). Open the Actions panel and enter the following (replacing &quot;adButton&quot; with the instance name you specified in 1):


addEventListener(MouseEvent.ROLL_OVER, openAd);
addEventListener(MouseEvent.ROLL_OUT, closeAd);

function openAd(event:MouseEvent):void {
	getURL(&quot;javascript:ExpandableBanners.openAd();&quot;);
}

function closeAd(event:MouseEvent):void {
	getURL(&quot;javascript:ExpandableBanners.closeAd();&quot;);
} 


Of course, that&#039;s not applying any of the solutions mentioned here -- just the equivalent to the code you provided.</description>
		<content:encoded><![CDATA[<p>@Nyssa,</p>
<p>The AS3 equivalent would be as follows:<br />
1. Select the object and give it an instance name in the properties panel: e.g. &#8220;adButton&#8221;</p>
<p>2. Select a keyframe where you want to add the code (best to add a new layer for this). Open the Actions panel and enter the following (replacing &#8220;adButton&#8221; with the instance name you specified in 1):</p>
<p>addEventListener(MouseEvent.ROLL_OVER, openAd);<br />
addEventListener(MouseEvent.ROLL_OUT, closeAd);</p>
<p>function openAd(event:MouseEvent):void {<br />
	getURL(&#8220;javascript:ExpandableBanners.openAd();&#8221;);<br />
}</p>
<p>function closeAd(event:MouseEvent):void {<br />
	getURL(&#8220;javascript:ExpandableBanners.closeAd();&#8221;);<br />
} </p>
<p>Of course, that&#8217;s not applying any of the solutions mentioned here &#8212; just the equivalent to the code you provided.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nyssa</title>
		<link>http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-76433</link>
		<dc:creator>Nyssa</dc:creator>
		<pubDate>Mon, 19 Jul 2010 04:50:06 +0000</pubDate>
		<guid isPermaLink="false">http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-76433</guid>
		<description>I have tried this and i still cant work it out. I have tried many methods. All I need is actionscript 3.0 equivilant for this actionscript 2.0 below

on (rollOver) {
	getURL(&quot;javascript:ExpandableBanners.openAd();&quot;);
}

on (rollOut) {
	getURL(&quot;javascript:ExpandableBanners.closeAd();&quot;);
}

please please help if you can.</description>
		<content:encoded><![CDATA[<p>I have tried this and i still cant work it out. I have tried many methods. All I need is actionscript 3.0 equivilant for this actionscript 2.0 below</p>
<p>on (rollOver) {<br />
	getURL(&#8220;javascript:ExpandableBanners.openAd();&#8221;);<br />
}</p>
<p>on (rollOut) {<br />
	getURL(&#8220;javascript:ExpandableBanners.closeAd();&#8221;);<br />
}</p>
<p>please please help if you can.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Links from Flash Projector do not open in Firefox 3.6.x</title>
		<link>http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-76238</link>
		<dc:creator>Links from Flash Projector do not open in Firefox 3.6.x</dc:creator>
		<pubDate>Tue, 06 Jul 2010 15:33:51 +0000</pubDate>
		<guid isPermaLink="false">http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-76238</guid>
		<description>&lt;!--%kramer-ref-pre%--&gt;[...] http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/ [...]&lt;!--%kramer-ref-post%--&gt;</description>
		<content:encoded><![CDATA[<p><!--%kramer-ref-pre%-->[&#8230;] <a href="http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/" rel="nofollow">http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/</a> [&#8230;]<!--%kramer-ref-post%--></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mario</title>
		<link>http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-76159</link>
		<dc:creator>Mario</dc:creator>
		<pubDate>Fri, 02 Jul 2010 22:42:28 +0000</pubDate>
		<guid isPermaLink="false">http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-76159</guid>
		<description>Thanyou very mucho, this post is very helpfull. It works fine with firefox on a mac.
For some reason i does not work if Google Chrome or Opera are the default browser.
Maybe somebody can come with the solution.

Thank you again!</description>
		<content:encoded><![CDATA[<p>Thanyou very mucho, this post is very helpfull. It works fine with firefox on a mac.<br />
For some reason i does not work if Google Chrome or Opera are the default browser.<br />
Maybe somebody can come with the solution.</p>
<p>Thank you again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: m2tno</title>
		<link>http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-74518</link>
		<dc:creator>m2tno</dc:creator>
		<pubDate>Wed, 14 Apr 2010 10:04:16 +0000</pubDate>
		<guid isPermaLink="false">http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-74518</guid>
		<description>For some reason this code works! Take out the &quot;url&quot; in the function call and you get an error. Hope this helps someone.

var url:String = &quot;http://myurl.com&quot;;

function callLink(url):void {
	var request:URLRequest = new URLRequest(root.url);
  try {
    navigateToURL(request, &#039;_blank&#039;);
  } catch (e:Error) {
    trace(&quot;Error occurred!&quot;);
  }
}</description>
		<content:encoded><![CDATA[<p>For some reason this code works! Take out the &#8220;url&#8221; in the function call and you get an error. Hope this helps someone.</p>
<p>var url:String = &#8220;http://myurl.com&#8221;;</p>
<p>function callLink(url):void {<br />
	var request:URLRequest = new URLRequest(root.url);<br />
  try {<br />
    navigateToURL(request, &#8216;_blank&#8217;);<br />
  } catch (e:Error) {<br />
    trace(&#8220;Error occurred!&#8221;);<br />
  }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: V-Jake</title>
		<link>http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-74096</link>
		<dc:creator>V-Jake</dc:creator>
		<pubDate>Fri, 26 Mar 2010 15:00:56 +0000</pubDate>
		<guid isPermaLink="false">http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-74096</guid>
		<description>CS4 AS2 does not work from cd.
Downloaded the files but do not work?!
uncheck default in FF 3.6.2 will work...
But how do i know what the users will have?!</description>
		<content:encoded><![CDATA[<p>CS4 AS2 does not work from cd.<br />
Downloaded the files but do not work?!<br />
uncheck default in FF 3.6.2 will work&#8230;<br />
But how do i know what the users will have?!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kurt</title>
		<link>http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-71061</link>
		<dc:creator>Kurt</dc:creator>
		<pubDate>Tue, 22 Dec 2009 23:25:07 +0000</pubDate>
		<guid isPermaLink="false">http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-71061</guid>
		<description>I am a Noob to Flash and am having problems getting some movieclips to link to different URLs on release. I am able to get them to animate, and I am able to get them to link to an html page in the same folder, but I can‚Äôt get both functionalities to work at the same time and it is driving me crazy!!  I&#039;ve tried putting the actionscript in the instance object, in the action layer, and other things and nothing seems to work!?


Here is the link to the source file:   http://www.myfavorites.com/flashtest/header_v8_122209_v2.fla
I believe that the actionscripting needs to be done in the &quot;baners&quot; movieclip, but it could also be the &quot;Symbol 3&quot; movieclip.  I&#039;m not sure and this is where I also need help.


Here is also a link to the .swf (http://www.myfavorites.com/flashtest/header_v8_122209_v2.swf).  See, if you mouse over the first two clips, they animate, but they do not go to the HTML page if you click on them (http://www.myfavorites.com/flashtest/success1.html).  The third clip will go to the page success1.html in the same folder if you click on it, but it does not animate on mouse over.


I&#039;m using Flash CS3 as my editor and I&#039;m using ActionScript 2.0 for the scripting.

Any help you can provide on this is most appreciated!!  I&#039;m normally pretty good at figuring out things on my own, but This problem is driving me crazy!!</description>
		<content:encoded><![CDATA[<p>I am a Noob to Flash and am having problems getting some movieclips to link to different URLs on release. I am able to get them to animate, and I am able to get them to link to an html page in the same folder, but I can‚Äôt get both functionalities to work at the same time and it is driving me crazy!!  I&#8217;ve tried putting the actionscript in the instance object, in the action layer, and other things and nothing seems to work!?</p>
<p>Here is the link to the source file:   <a href="http://www.myfavorites.com/flashtest/header_v8_122209_v2.fla" rel="nofollow">http://www.myfavorites.com/flashtest/header_v8_122209_v2.fla</a><br />
I believe that the actionscripting needs to be done in the &#8220;baners&#8221; movieclip, but it could also be the &#8220;Symbol 3&#8221; movieclip.  I&#8217;m not sure and this is where I also need help.</p>
<p>Here is also a link to the .swf (<a href="http://www.myfavorites.com/flashtest/header_v8_122209_v2.swf" rel="nofollow">http://www.myfavorites.com/flashtest/header_v8_122209_v2.swf</a>).  See, if you mouse over the first two clips, they animate, but they do not go to the HTML page if you click on them (<a href="http://www.myfavorites.com/flashtest/success1.html" rel="nofollow">http://www.myfavorites.com/flashtest/success1.html</a>).  The third clip will go to the page success1.html in the same folder if you click on it, but it does not animate on mouse over.</p>
<p>I&#8217;m using Flash CS3 as my editor and I&#8217;m using ActionScript 2.0 for the scripting.</p>
<p>Any help you can provide on this is most appreciated!!  I&#8217;m normally pretty good at figuring out things on my own, but This problem is driving me crazy!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-65613</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sun, 23 Aug 2009 10:28:01 +0000</pubDate>
		<guid isPermaLink="false">http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-65613</guid>
		<description>This doesn&#039;t work when on CD, or usb disk etc.
Mac firefox still has file:/// instead of file:///Volumes/
Anyone ever fix this?</description>
		<content:encoded><![CDATA[<p>This doesn&#8217;t work when on CD, or usb disk etc.<br />
Mac firefox still has file:/// instead of file:///Volumes/<br />
Anyone ever fix this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brian</title>
		<link>http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-65226</link>
		<dc:creator>brian</dc:creator>
		<pubDate>Fri, 14 Aug 2009 06:24:51 +0000</pubDate>
		<guid isPermaLink="false">http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-65226</guid>
		<description>Nice work, this is totally helpful. I was having issues with opening pdfs with IE 8 and firefox on windows, but now it is working on all browsers including mac/safari 4</description>
		<content:encoded><![CDATA[<p>Nice work, this is totally helpful. I was having issues with opening pdfs with IE 8 and firefox on windows, but now it is working on all browsers including mac/safari 4</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Titus</title>
		<link>http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-61854</link>
		<dc:creator>Titus</dc:creator>
		<pubDate>Sun, 07 Jun 2009 10:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-61854</guid>
		<description>First let me say: This page was EXTREMELY useful. Finally a good explanation of an old problem (I had to deal with many times). Thanks for not only putting up a code, but instead nice explaining of how FF handles the URLs passed, the Flash side and so on.
It all works fine on my PC now (with any Browser), but I still have a Apple Mac / Safari problem. I tested your code, I also did many variations/tests myself, but no matter what I do, when calling the getURL from the Mac projector Safari ALWAYS opens up with the default apple start page..

I constructed the absolute in a way that it displays EXCATLY the path/file I want in the browser, I can display the string in th FLash-Movie, copy-n-paste it and then it works. Only getURL is not working...


Note that I am old Flash MX on the PC and I am also creating the Mac projector on the PC. But I think that shouldn&#039;t be a problem.
Does anyone have advice about this?</description>
		<content:encoded><![CDATA[<p>First let me say: This page was EXTREMELY useful. Finally a good explanation of an old problem (I had to deal with many times). Thanks for not only putting up a code, but instead nice explaining of how FF handles the URLs passed, the Flash side and so on.<br />
It all works fine on my PC now (with any Browser), but I still have a Apple Mac / Safari problem. I tested your code, I also did many variations/tests myself, but no matter what I do, when calling the getURL from the Mac projector Safari ALWAYS opens up with the default apple start page..</p>
<p>I constructed the absolute in a way that it displays EXCATLY the path/file I want in the browser, I can display the string in th FLash-Movie, copy-n-paste it and then it works. Only getURL is not working&#8230;</p>
<p>Note that I am old Flash MX on the PC and I am also creating the Mac projector on the PC. But I think that shouldn&#8217;t be a problem.<br />
Does anyone have advice about this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jazzmyn</title>
		<link>http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-57699</link>
		<dc:creator>Jazzmyn</dc:creator>
		<pubDate>Tue, 17 Mar 2009 13:23:42 +0000</pubDate>
		<guid isPermaLink="false">http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-57699</guid>
		<description>The CODE IS WORKING FINE..
But unless.. the url is in same folder.
What if the url is in the different folder ??</description>
		<content:encoded><![CDATA[<p>The CODE IS WORKING FINE..<br />
But unless.. the url is in same folder.<br />
What if the url is in the different folder ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flash Button Probleme (HTML Frame) - PSD-Tutorials.de - Forum</title>
		<link>http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-56419</link>
		<dc:creator>Flash Button Probleme (HTML Frame) - PSD-Tutorials.de - Forum</dc:creator>
		<pubDate>Fri, 20 Feb 2009 21:55:35 +0000</pubDate>
		<guid isPermaLink="false">http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-56419</guid>
		<description>&lt;!--%kramer-ref-pre%--&gt;[...] &quot;_blank&quot;); }; Habs getestet und es funktioniert einwandfrei. Lˆsung gefunden auf: Problem (and solution) : getURL() in a Flash projector fails in Firefox, a bunch of Words, punctuate...  Um die obere Frage auch noch zu beantworten. Dieser Bereich &#039;name=&quot;Kontent&quot;&#039; im Frame [...]&lt;!--%kramer-ref-post%--&gt;</description>
		<content:encoded><![CDATA[<p><!--%kramer-ref-pre%-->[&#8230;] &quot;_blank&quot;); }; Habs getestet und es funktioniert einwandfrei. Lˆsung gefunden auf: Problem (and solution) : getURL() in a Flash projector fails in Firefox, a bunch of Words, punctuate&#8230;  Um die obere Frage auch noch zu beantworten. Dieser Bereich &#8216;name=&quot;Kontent&quot;&#8217; im Frame [&#8230;]<!--%kramer-ref-post%--></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Complete Website, Graphic Design, and Multimedia Solutions for Small Businesses</title>
		<link>http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-54825</link>
		<dc:creator>Complete Website, Graphic Design, and Multimedia Solutions for Small Businesses</dc:creator>
		<pubDate>Sun, 11 Jan 2009 19:00:24 +0000</pubDate>
		<guid isPermaLink="false">http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/#comment-54825</guid>
		<description>&lt;!--%kramer-ref-pre%--&gt;[...] &quot;_blank&quot;);}myButton.addEventListener(MouseEvent.CLICK, gotoTestHtml);Here is a link to the original article where I found this with the full explanation and fix.     (Back to Article List ...)             Search [...]&lt;!--%kramer-ref-post%--&gt;</description>
		<content:encoded><![CDATA[<p><!--%kramer-ref-pre%-->[&#8230;] &quot;_blank&quot;);}myButton.addEventListener(MouseEvent.CLICK, gotoTestHtml);Here is a link to the original article where I found this with the full explanation and fix.     (Back to Article List &#8230;)             Search [&#8230;]<!--%kramer-ref-post%--></p>
]]></content:encoded>
	</item>
</channel>
</rss>

