<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>sentient beings &#187; Bugs</title>
	<atom:link href="http://www.sentientbeings.com/tag/bugs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sentientbeings.com</link>
	<description>Adventures in BI</description>
	<lastBuildDate>Mon, 23 Jan 2012 09:12:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Loading non-existent domains with Firefox on OS-X</title>
		<link>http://www.sentientbeings.com/2008/05/loading-non-existent-domains-with-firefox-on-os-x/</link>
		<comments>http://www.sentientbeings.com/2008/05/loading-non-existent-domains-with-firefox-on-os-x/#comments</comments>
		<pubDate>Thu, 08 May 2008 17:54:49 +0000</pubDate>
		<dc:creator>Kristof</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.sentientbeings.com/?p=3</guid>
		<description><![CDATA[Consider the following code. &#160; var myLoader:Loader = new Loader&#40;&#41;; var myRequest:URLRequest = new URLRequest&#40;&#34;http://www.sentientbeings.com/deadDomain.jpg&#34;&#41;; //var myRequest:URLRequest = new URLRequest(&#34;http://www.xxxyyyzzzabcdefg.com/deadDomain.jpg&#34;); &#160; myLoader.load&#40;myRequest&#41;; myLoader.contentLoaderInfo.addEventListener &#40;Event.COMPLETE, function&#40;&#41;:void&#123;trace&#40;&#34;load complete&#34;&#41;&#125;&#41;; myLoader.contentLoaderInfo.addEventListener &#40;IOErrorEvent.NETWORK_ERROR, function&#40;&#41;:void&#123;trace&#40;&#34;network failed&#34;&#41;&#125;&#41;; myLoader.contentLoaderInfo.addEventListener &#40;IOErrorEvent.IO_ERROR, function&#40;&#41;:void&#123;trace&#40;&#34;IO failed&#34;&#41;&#125;&#41;; &#160; When you run this code, you'll get an IO_ERROR. But if you comment the first myRequest and then uncomment the [...]]]></description>
			<content:encoded><![CDATA[<p>Consider the following code.</p>
<pre class="actionscript">&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> myLoader:Loader = <span style="color: #000000; font-weight: bold;">new</span> Loader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">var</span> myRequest:URLRequest = <span style="color: #000000; font-weight: bold;">new</span> URLRequest<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;http://www.sentientbeings.com/deadDomain.jpg&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #808080; font-style: italic;">//var myRequest:URLRequest = new URLRequest(&quot;http://www.xxxyyyzzzabcdefg.com/deadDomain.jpg&quot;);</span>
&nbsp;
myLoader.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span>myRequest<span style="color: #66cc66;">&#41;</span>;
myLoader.<span style="color: #006600;">contentLoaderInfo</span>.<span style="color: #006600;">addEventListener</span> <span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">COMPLETE</span>, <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span><span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;load complete&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
myLoader.<span style="color: #006600;">contentLoaderInfo</span>.<span style="color: #006600;">addEventListener</span> <span style="color: #66cc66;">&#40;</span>IOErrorEvent.<span style="color: #006600;">NETWORK_ERROR</span>, <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span><span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;network failed&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
myLoader.<span style="color: #006600;">contentLoaderInfo</span>.<span style="color: #006600;">addEventListener</span> <span style="color: #66cc66;">&#40;</span>IOErrorEvent.<span style="color: #006600;">IO_ERROR</span>, <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span><span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;IO failed&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
<p>When you run this code, you'll get an IO_ERROR. But if you comment the first myRequest and then uncomment the second myRequest, you'll get nothing when testing on a Mac with Firefox. With "nothing", I mean the code does nothing. Somehow, the way Firefox on a Mac instantiates requests keeps Flash from firing the IO_ERROR event that you should be getting when trying to load a resource from a domain that does not exist.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sentientbeings.com/2008/05/loading-non-existent-domains-with-firefox-on-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

