<?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: Loading and modifying remote images</title>
	<link>http://blog.flexexamples.com/2007/10/22/loading-and-modifying-remote-images/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Tue, 06 Jan 2009 06:34:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Helliax</title>
		<link>http://blog.flexexamples.com/2007/10/22/loading-and-modifying-remote-images/#comment-17449</link>
		<author>Helliax</author>
		<pubDate>Tue, 23 Dec 2008 17:49:02 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/10/22/loading-and-modifying-remote-images/#comment-17449</guid>
		<description>I still get the following error (when loading this page in Firefox 3.0.5): 
&lt;blockquote&gt;
SecurityError: Error #2147: Forbidden protocol in URL
http://www.helpexamples.com/flash/images/image1.jpg
.
at flash.display::Loader/_load()
at flash.display::Loader/load()
at mx.controls::SWFLoader/loadContent()
at mx.controls::SWFLoader/load()
at mx.controls::SWFLoader/commitProperties()
at mx.core::UIComponent/validateProperties()
at mx.managers::LayoutManager/validateProperties()
at mx.managers::LayoutManager/doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()
at mx.core::UIComponent/callLaterDispatcher() 
&lt;/blockquote&gt;

And I found out it's because the URL of the image has a large blank space before it. After editing that part of the code into one line, it worked fine for me. Your example works in Internet Explorer just fine though, perhaps because IE ignores the leading blank space(s) when retrieving the image.</description>
		<content:encoded><![CDATA[<p>I still get the following error (when loading this page in Firefox 3.0.5): </p>
<blockquote><p>
SecurityError: Error #2147: Forbidden protocol in URL<br />
<a href="http://www.helpexamples.com/flash/images/image1.jpg" rel="nofollow">http://www.helpexamples.com/flash/images/image1.jpg</a><br />
.<br />
at flash.display::Loader/_load()<br />
at flash.display::Loader/load()<br />
at mx.controls::SWFLoader/loadContent()<br />
at mx.controls::SWFLoader/load()<br />
at mx.controls::SWFLoader/commitProperties()<br />
at mx.core::UIComponent/validateProperties()<br />
at mx.managers::LayoutManager/validateProperties()<br />
at mx.managers::LayoutManager/doPhasedInstantiation()<br />
at Function/http://adobe.com/AS3/2006/builtin::apply()<br />
at mx.core::UIComponent/callLaterDispatcher2()<br />
at mx.core::UIComponent/callLaterDispatcher()
</p></blockquote>
<p>And I found out it&#8217;s because the URL of the image has a large blank space before it. After editing that part of the code into one line, it worked fine for me. Your example works in Internet Explorer just fine though, perhaps because IE ignores the leading blank space(s) when retrieving the image.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Romain</title>
		<link>http://blog.flexexamples.com/2007/10/22/loading-and-modifying-remote-images/#comment-16749</link>
		<author>Romain</author>
		<pubDate>Mon, 17 Nov 2008 16:14:39 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/10/22/loading-and-modifying-remote-images/#comment-16749</guid>
		<description>It's working fine.
But the reason why it's working is because of that : http://www.helpexamples.com/crossdomain.xml

If you don't have a cross domain on the external URL it will not work to due to Flash Player sandbox restrictions.</description>
		<content:encoded><![CDATA[<p>It&#8217;s working fine.<br />
But the reason why it&#8217;s working is because of that : <a href="http://www.helpexamples.com/crossdomain.xml" rel="nofollow">http://www.helpexamples.com/crossdomain.xml</a></p>
<p>If you don&#8217;t have a cross domain on the external URL it will not work to due to Flash Player sandbox restrictions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/10/22/loading-and-modifying-remote-images/#comment-16175</link>
		<author>peterd</author>
		<pubDate>Tue, 14 Oct 2008 03:04:22 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/10/22/loading-and-modifying-remote-images/#comment-16175</guid>
		<description>Tom,

I haven't looked at this example in a long time, but you may want to try uploading your SWF files to an HTTP server and try running it over the web instead of locally.

Peter</description>
		<content:encoded><![CDATA[<p>Tom,</p>
<p>I haven&#8217;t looked at this example in a long time, but you may want to try uploading your SWF files to an HTTP server and try running it over the web instead of locally.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://blog.flexexamples.com/2007/10/22/loading-and-modifying-remote-images/#comment-16174</link>
		<author>Tom</author>
		<pubDate>Tue, 14 Oct 2008 02:57:07 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/10/22/loading-and-modifying-remote-images/#comment-16174</guid>
		<description>SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: file:///C&#124;/Documents%20and%20Settings/temp/Desktop/main.swf cannot access http://www.helpexamples.com/flash/video/water.flv. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded.
	at flash.display::BitmapData/draw()
	.......................................

hi peter, 
 i could hardly solve tis problem. i jus started flex a month ago. im using flex 3.
 can help me please ?</description>
		<content:encoded><![CDATA[<p>SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: <a href="file:///C" rel="nofollow">file:///C</a>|/Documents%20and%20Settings/temp/Desktop/main.swf cannot access <a href="http://www.helpexamples.com/flash/video/water.flv." rel="nofollow">http://www.helpexamples.com/flash/video/water.flv.</a> A policy file is required, but the checkPolicyFile flag was not set when this media was loaded.<br />
	at flash.display::BitmapData/draw()<br />
	&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;</p>
<p>hi peter,<br />
 i could hardly solve tis problem. i jus started flex a month ago. im using flex 3.<br />
 can help me please ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yon</title>
		<link>http://blog.flexexamples.com/2007/10/22/loading-and-modifying-remote-images/#comment-16172</link>
		<author>Yon</author>
		<pubDate>Tue, 14 Oct 2008 00:47:23 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/10/22/loading-and-modifying-remote-images/#comment-16172</guid>
		<description>I can see the example and i think its a problem with browsers configuration.

In the advanced configuration options of your browsers you can find an option "Don't save encrypted pages to disk" check it, save and reopen your browser.</description>
		<content:encoded><![CDATA[<p>I can see the example and i think its a problem with browsers configuration.</p>
<p>In the advanced configuration options of your browsers you can find an option &#8220;Don&#8217;t save encrypted pages to disk&#8221; check it, save and reopen your browser.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lucas Matos</title>
		<link>http://blog.flexexamples.com/2007/10/22/loading-and-modifying-remote-images/#comment-14951</link>
		<author>lucas Matos</author>
		<pubDate>Tue, 26 Aug 2008 16:05:30 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/10/22/loading-and-modifying-remote-images/#comment-14951</guid>
		<description>I found a solution
you need to use a proxy
well I use the Proxy.php
http://board.flashkit.com/board/showthread.php?t=705122</description>
		<content:encoded><![CDATA[<p>I found a solution<br />
you need to use a proxy<br />
well I use the Proxy.php<br />
<a href="http://board.flashkit.com/board/showthread.php?t=705122" rel="nofollow">http://board.flashkit.com/board/showthread.php?t=705122</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/10/22/loading-and-modifying-remote-images/#comment-13173</link>
		<author>peterd</author>
		<pubDate>Sun, 01 Jun 2008 19:55:46 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/10/22/loading-and-modifying-remote-images/#comment-13173</guid>
		<description>kanu kukreja,

Do you see the error if you view the SWF from an HTTP URL also?

Peter</description>
		<content:encoded><![CDATA[<p>kanu kukreja,</p>
<p>Do you see the error if you view the SWF from an HTTP URL also?</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kanu kukreja</title>
		<link>http://blog.flexexamples.com/2007/10/22/loading-and-modifying-remote-images/#comment-13161</link>
		<author>kanu kukreja</author>
		<pubDate>Sun, 01 Jun 2008 10:39:59 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/10/22/loading-and-modifying-remote-images/#comment-13161</guid>
		<description>I'm using IE 6.0
Flex 3.0
Windows XP
Flash 9.0.115</description>
		<content:encoded><![CDATA[<p>I&#8217;m using IE 6.0<br />
Flex 3.0<br />
Windows XP<br />
Flash 9.0.115</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kanu kukreja</title>
		<link>http://blog.flexexamples.com/2007/10/22/loading-and-modifying-remote-images/#comment-13160</link>
		<author>kanu kukreja</author>
		<pubDate>Sun, 01 Jun 2008 10:07:58 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/10/22/loading-and-modifying-remote-images/#comment-13160</guid>
		<description>	http://www.helpexamples.com/flash/images/image1.jpg




i'm doing only this much, and getting:
&lt;blockquote&gt;
SecurityError: Error #2142: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property. file://C:\Documents and Settings\kukrejakanu\My Documents\Flex Builder 3\My Aol\bin-debug\main.swf was attempting to load http://www.helpexamples.com/flash/images/image1.jpg.
	at flash.display::Loader/_load()
	at flash.display::Loader/load()
	at mx.controls::SWFLoader/loadContent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\SWFLoader.as:1362]
	at mx.controls::SWFLoader/load()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\SWFLoader.as:1211]
	at mx.controls::SWFLoader/commitProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\SWFLoader.as:1015]
	at mx.core::UIComponent/validateProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:5670]
	at mx.managers::LayoutManager/validateProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:519]
	at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:639]
	at Function/http://adobe.com/AS3/2006/builtin::apply()
	at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]
	at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403]
&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://www.helpexamples.com/flash/images/image1.jpg" rel="nofollow">http://www.helpexamples.com/flash/images/image1.jpg</a></p>
<p>i&#8217;m doing only this much, and getting:</p>
<blockquote><p>
SecurityError: Error #2142: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property. <a href="file://C:" rel="nofollow">file://C:</a>\Documents and Settings\kukrejakanu\My Documents\Flex Builder 3\My Aol\bin-debug\main.swf was attempting to load <a href="http://www.helpexamples.com/flash/images/image1.jpg." rel="nofollow">http://www.helpexamples.com/flash/images/image1.jpg.</a><br />
	at flash.display::Loader/_load()<br />
	at flash.display::Loader/load()<br />
	at mx.controls::SWFLoader/loadContent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\SWFLoader.as:1362]<br />
	at mx.controls::SWFLoader/load()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\SWFLoader.as:1211]<br />
	at mx.controls::SWFLoader/commitProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\SWFLoader.as:1015]<br />
	at mx.core::UIComponent/validateProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:5670]<br />
	at mx.managers::LayoutManager/validateProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:519]<br />
	at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:639]<br />
	at Function/http://adobe.com/AS3/2006/builtin::apply()<br />
	at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]<br />
	at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403]
</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: BW</title>
		<link>http://blog.flexexamples.com/2007/10/22/loading-and-modifying-remote-images/#comment-12739</link>
		<author>BW</author>
		<pubDate>Fri, 16 May 2008 18:17:38 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/10/22/loading-and-modifying-remote-images/#comment-12739</guid>
		<description>Works for me using Win XP Flash Player 9,0,124,0 (Debug player).</description>
		<content:encoded><![CDATA[<p>Works for me using Win XP Flash Player 9,0,124,0 (Debug player).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
