<?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: Debugging crossdomain issues: Following HTTP 302s</title>
	<atom:link href="http://www.arpitonline.com/blog/2008/06/17/debugging-crossdomain-issues-following-http-302s/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.arpitonline.com/blog/2008/06/17/debugging-crossdomain-issues-following-http-302s/</link>
	<description>"I write pretty software"</description>
	<lastBuildDate>Sat, 04 Sep 2010 09:23:16 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jason</title>
		<link>http://www.arpitonline.com/blog/2008/06/17/debugging-crossdomain-issues-following-http-302s/comment-page-1/#comment-72248</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Fri, 07 May 2010 08:12:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.arpitonline.com/blog/?p=140#comment-72248</guid>
		<description>Brilliant.  Thanks for the matching URLs and LoaderContext tip.  Saved me a lot of debugging time.</description>
		<content:encoded><![CDATA[<p>Brilliant.  Thanks for the matching URLs and LoaderContext tip.  Saved me a lot of debugging time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zenMonkey</title>
		<link>http://www.arpitonline.com/blog/2008/06/17/debugging-crossdomain-issues-following-http-302s/comment-page-1/#comment-54081</link>
		<dc:creator>zenMonkey</dc:creator>
		<pubDate>Wed, 15 Apr 2009 20:05:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.arpitonline.com/blog/?p=140#comment-54081</guid>
		<description>Thank you for this post - very helpful. I&#039;ve applied it and found that sometimes the img_bmp assign will succeed the try, but then is still null. I&#039;ve worked around this by continually loading original URL until bitmap is non-null. Odd...

private function onLoadComplete(event:Event):void
	var img_bmp:Bitmap;	
	try{
		img_bmp = Bitmap(loader.content)// as Bitmap;
	}catch(e:Error){
		trace(&#039;Cannot access bitmap of image due to crossdomain issues&#039;);
		if (loader.contentLoaderInfo) {
			load(loader.contentLoaderInfo.url);
		}
		return;
	}
	if (img_bmp == null){
		if (loader.contentLoaderInfo != null) {
			if (loader.contentLoaderInfo.url != null){
				load(loader.contentLoaderInfo.url);
			}else{
				load(imgSrc);
			}
		}
		return;
	}
}</description>
		<content:encoded><![CDATA[<p>Thank you for this post &#8211; very helpful. I&#8217;ve applied it and found that sometimes the img_bmp assign will succeed the try, but then is still null. I&#8217;ve worked around this by continually loading original URL until bitmap is non-null. Odd&#8230;</p>
<p>private function onLoadComplete(event:Event):void<br />
	var img_bmp:Bitmap;<br />
	try{<br />
		img_bmp = Bitmap(loader.content)// as Bitmap;<br />
	}catch(e:Error){<br />
		trace(&#8217;Cannot access bitmap of image due to crossdomain issues&#8217;);<br />
		if (loader.contentLoaderInfo) {<br />
			load(loader.contentLoaderInfo.url);<br />
		}<br />
		return;<br />
	}<br />
	if (img_bmp == null){<br />
		if (loader.contentLoaderInfo != null) {<br />
			if (loader.contentLoaderInfo.url != null){<br />
				load(loader.contentLoaderInfo.url);<br />
			}else{<br />
				load(imgSrc);<br />
			}<br />
		}<br />
		return;<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabe Robinson</title>
		<link>http://www.arpitonline.com/blog/2008/06/17/debugging-crossdomain-issues-following-http-302s/comment-page-1/#comment-50676</link>
		<dc:creator>Gabe Robinson</dc:creator>
		<pubDate>Thu, 12 Feb 2009 17:43:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.arpitonline.com/blog/?p=140#comment-50676</guid>
		<description>Had a very similar problem. It would be nice if flash would let you see that the url has changed before the complete handler is triggered. 

The help docs say &quot;After the first progress event, the url property reflects the media&#039;s final URL, after any redirects and relative URLs are resolved.&quot;, but if you try to get the url in a progress event listener it throws and error (Error #2099: The loading object is not sufficiently loaded to provide this information). 

So since like you concluded we can not get the url until the complete handler, i am loading images twice like you</description>
		<content:encoded><![CDATA[<p>Had a very similar problem. It would be nice if flash would let you see that the url has changed before the complete handler is triggered. </p>
<p>The help docs say &#8220;After the first progress event, the url property reflects the media&#8217;s final URL, after any redirects and relative URLs are resolved.&#8221;, but if you try to get the url in a progress event listener it throws and error (Error #2099: The loading object is not sufficiently loaded to provide this information). </p>
<p>So since like you concluded we can not get the url until the complete handler, i am loading images twice like you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Fitzpatrick</title>
		<link>http://www.arpitonline.com/blog/2008/06/17/debugging-crossdomain-issues-following-http-302s/comment-page-1/#comment-40216</link>
		<dc:creator>Kevin Fitzpatrick</dc:creator>
		<pubDate>Wed, 02 Jul 2008 23:06:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.arpitonline.com/blog/?p=140#comment-40216</guid>
		<description>Yay 302 weirdness.  I found another weird (read: inconsistent between browsers) behavior for you with the Flash Player and 302/303s.  Blog to come soon.</description>
		<content:encoded><![CDATA[<p>Yay 302 weirdness.  I found another weird (read: inconsistent between browsers) behavior for you with the Flash Player and 302/303s.  Blog to come soon.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
