<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Detecting whether an image loaded successfully in Flex</title>
	<link>http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Sat, 06 Sep 2008 17:10:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/#comment-14697</link>
		<author>peterd</author>
		<pubDate>Thu, 14 Aug 2008 14:00:16 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/#comment-14697</guid>
		<description>Rahul,

I would file the bug against Flash Player and if they determine the issue is with Firefox/Mozilla, they will either mark the bug as "External" and they may file a bug in the Mozilla bug base for you.

Peter</description>
		<content:encoded><![CDATA[<p>Rahul,</p>
<p>I would file the bug against Flash Player and if they determine the issue is with Firefox/Mozilla, they will either mark the bug as &#8220;External&#8221; and they may file a bug in the Mozilla bug base for you.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/#comment-14695</link>
		<author>Rahul</author>
		<pubDate>Thu, 14 Aug 2008 13:29:54 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/#comment-14695</guid>
		<description>Hey Peter,

Not sure if we can file a Flash player bug as the problem might reside in the browser itself. Since, it works perfectly with IE. How to figure out the culprit here?
Is it Browser or the Flash Player..

Rahul</description>
		<content:encoded><![CDATA[<p>Hey Peter,</p>
<p>Not sure if we can file a Flash player bug as the problem might reside in the browser itself. Since, it works perfectly with IE. How to figure out the culprit here?<br />
Is it Browser or the Flash Player..</p>
<p>Rahul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/#comment-14676</link>
		<author>peterd</author>
		<pubDate>Wed, 13 Aug 2008 14:53:53 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/#comment-14676</guid>
		<description>Rahul,

Unfortunately, due to browser differences (ie: what the browser provides to the Flash Player), there can be subtle differences between browsers and OSes. In this case Firefox/Mozilla may not be passing the status code to the Flash Player plugin, but IE is passing the status codes to the ActiveX plugin.

Feel free to file a Flash Player bug at http://bugs.adobe.com/flashplayer/ and post the bug number here and a few of us can vote on the issue.

Peter</description>
		<content:encoded><![CDATA[<p>Rahul,</p>
<p>Unfortunately, due to browser differences (ie: what the browser provides to the Flash Player), there can be subtle differences between browsers and OSes. In this case Firefox/Mozilla may not be passing the status code to the Flash Player plugin, but IE is passing the status codes to the ActiveX plugin.</p>
<p>Feel free to file a Flash Player bug at <a href="http://bugs.adobe.com/flashplayer/" rel="nofollow">http://bugs.adobe.com/flashplayer/</a> and post the bug number here and a few of us can vote on the issue.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/#comment-14674</link>
		<author>Rahul</author>
		<pubDate>Wed, 13 Aug 2008 14:12:32 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/#comment-14674</guid>
		<description>With Mozilla the status cod is always 0. IE works perfectly. Is there any other way around with which we can find if the image loading is a success??? Is Flex browser specific???</description>
		<content:encoded><![CDATA[<p>With Mozilla the status cod is always 0. IE works perfectly. Is there any other way around with which we can find if the image loading is a success??? Is Flex browser specific???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: That Akwuzu Bwai</title>
		<link>http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/#comment-12455</link>
		<author>That Akwuzu Bwai</author>
		<pubDate>Sat, 03 May 2008 12:05:10 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/#comment-12455</guid>
		<description>Thank Petere for your illuminating examples.
I do have a smaller problem than the '0' being displayed that i need to tackle, I dont have an action script background but logic is a natural thing. I am trying to show an image from a node of a node of an xml list that populates a datagrid. what i want is to show the selected image. when i tried i loads just a broken link of the image. I must be missing something , any help here's my code


            private function doScan(evt:MouseEvent):void {
            	
                img.source = 'resultGrid.selectedItem.imgpath';
            }

my xml file


	
	2348056441978
	BIOS ADMIN
	Onne Field
	26/04/2008
	XN403ABr
	../bin-debug/img1.jpg
	
	
	
	2348034521561
	BIOS ADMIN2 
	Sapele Deopt
	26/04/2008
	XN403ABw
	../bin-debug/img2.jpg
	
</description>
		<content:encoded><![CDATA[<p>Thank Petere for your illuminating examples.<br />
I do have a smaller problem than the &#8216;0&#8242; being displayed that i need to tackle, I dont have an action script background but logic is a natural thing. I am trying to show an image from a node of a node of an xml list that populates a datagrid. what i want is to show the selected image. when i tried i loads just a broken link of the image. I must be missing something , any help here&#8217;s my code</p>
<p>            private function doScan(evt:MouseEvent):void {</p>
<p>                img.source = &#8216;resultGrid.selectedItem.imgpath&#8217;;<br />
            }</p>
<p>my xml file</p>
<p>	2348056441978<br />
	BIOS ADMIN<br />
	Onne Field<br />
	26/04/2008<br />
	XN403ABr<br />
	../bin-debug/img1.jpg</p>
<p>	2348034521561<br />
	BIOS ADMIN2<br />
	Sapele Deopt<br />
	26/04/2008<br />
	XN403ABw<br />
	../bin-debug/img2.jpg</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rod</title>
		<link>http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/#comment-12084</link>
		<author>rod</author>
		<pubDate>Fri, 18 Apr 2008 09:10:03 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/#comment-12084</guid>
		<description>Chaz
it is because it get the image from the cache

try to add a random number after your file url :
http://www.helpexamples.com/flash/images/image10.jpg? + (Math.random() * 10000000);

but with this solution, it will always download the file from the server, even if the image has not changed...</description>
		<content:encoded><![CDATA[<p>Chaz<br />
it is because it get the image from the cache</p>
<p>try to add a random number after your file url :<br />
<a href="http://www.helpexamples.com/flash/images/image10.jpg?" rel="nofollow">http://www.helpexamples.com/flash/images/image10.jpg?</a> + (Math.random() * 10000000);</p>
<p>but with this solution, it will always download the file from the server, even if the image has not changed&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chaz</title>
		<link>http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/#comment-7075</link>
		<author>Chaz</author>
		<pubDate>Tue, 19 Feb 2008 22:16:17 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/#comment-7075</guid>
		<description>I am having a problem with loading images.

The problem is when I change the image (same name new image) on the server in flex it still look at the old image (same name old image) until I close the application and open it up then it shows the me image.

How can I get this to show the new image without reopening the application? The user needs to see the new image loaded.

Thanks</description>
		<content:encoded><![CDATA[<p>I am having a problem with loading images.</p>
<p>The problem is when I change the image (same name new image) on the server in flex it still look at the old image (same name old image) until I close the application and open it up then it shows the me image.</p>
<p>How can I get this to show the new image without reopening the application? The user needs to see the new image loaded.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris</title>
		<link>http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/#comment-6968</link>
		<author>Kris</author>
		<pubDate>Thu, 14 Feb 2008 04:36:50 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/#comment-6968</guid>
		<description>I concur Tom. Firefox and Safari return 0 always whereas IE works as expected.

Why am I using Flex? ;)</description>
		<content:encoded><![CDATA[<p>I concur Tom. Firefox and Safari return 0 always whereas IE works as expected.</p>
<p>Why am I using Flex? ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harry</title>
		<link>http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/#comment-6234</link>
		<author>Harry</author>
		<pubDate>Mon, 21 Jan 2008 02:00:32 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/#comment-6234</guid>
		<description>Hey Peter! 

Thanks for the detailed description of status code 0. The documentation that came with flex 2.x does not mention it in as much detail. Is there any way around it so that I could stick to firefox as the development and deployment browser?

Cheers!
Harry S.</description>
		<content:encoded><![CDATA[<p>Hey Peter! </p>
<p>Thanks for the detailed description of status code 0. The documentation that came with flex 2.x does not mention it in as much detail. Is there any way around it so that I could stick to firefox as the development and deployment browser?</p>
<p>Cheers!<br />
Harry S.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/#comment-4379</link>
		<author>Tom</author>
		<pubDate>Tue, 20 Nov 2007 13:31:54 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/#comment-4379</guid>
		<description>Doesnt work ! Server returns always 0 as status code ;-( If you want to check if your image has not been downloaded use , this code by instance change the image if img.source is not available.

Hope to help you</description>
		<content:encoded><![CDATA[<p>Doesnt work ! Server returns always 0 as status code ;-( If you want to check if your image has not been downloaded use , this code by instance change the image if img.source is not available.</p>
<p>Hope to help you</p>
]]></content:encoded>
	</item>
</channel>
</rss>
