<?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: SecurityError: Error #3015: Loader.loadBytes() is not permitted to load content with executable code.</title>
	<atom:link href="http://www.flexer.info/2009/01/27/securityerror-error-3015-loaderloadbytes-is-not-permitted-to-load-content-with-executable-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flexer.info/2009/01/27/securityerror-error-3015-loaderloadbytes-is-not-permitted-to-load-content-with-executable-code/</link>
	<description>flex developers web corner</description>
	<lastBuildDate>Wed, 18 Jan 2012 13:28:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Fanch</title>
		<link>http://www.flexer.info/2009/01/27/securityerror-error-3015-loaderloadbytes-is-not-permitted-to-load-content-with-executable-code/comment-page-1/#comment-1973</link>
		<dc:creator>Fanch</dc:creator>
		<pubDate>Sat, 25 Sep 2010 22:11:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=537#comment-1973</guid>
		<description>Thanks!
Such a small detail, but helful!</description>
		<content:encoded><![CDATA[<p>Thanks!<br />
Such a small detail, but helful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arpit</title>
		<link>http://www.flexer.info/2009/01/27/securityerror-error-3015-loaderloadbytes-is-not-permitted-to-load-content-with-executable-code/comment-page-1/#comment-1390</link>
		<dc:creator>arpit</dc:creator>
		<pubDate>Sat, 21 Feb 2009 21:38:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=537#comment-1390</guid>
		<description>Whew, thanks. I had the same issue. You just saved me a lot of time :)</description>
		<content:encoded><![CDATA[<p>Whew, thanks. I had the same issue. You just saved me a lot of time <img src='http://www.flexer.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arun</title>
		<link>http://www.flexer.info/2009/01/27/securityerror-error-3015-loaderloadbytes-is-not-permitted-to-load-content-with-executable-code/comment-page-1/#comment-1365</link>
		<dc:creator>Arun</dc:creator>
		<pubDate>Thu, 19 Feb 2009 18:26:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=537#comment-1365</guid>
		<description>Oops sorry I missed the last part. The example I posted in my previous comment is not suitable for Loading. I am trying something similar. Please do let me know if you found a way. Thanks</description>
		<content:encoded><![CDATA[<p>Oops sorry I missed the last part. The example I posted in my previous comment is not suitable for Loading. I am trying something similar. Please do let me know if you found a way. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arun Ponnusamy</title>
		<link>http://www.flexer.info/2009/01/27/securityerror-error-3015-loaderloadbytes-is-not-permitted-to-load-content-with-executable-code/comment-page-1/#comment-1364</link>
		<dc:creator>Arun Ponnusamy</dc:creator>
		<pubDate>Thu, 19 Feb 2009 18:22:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=537#comment-1364</guid>
		<description>Use FileReference and it can fetch the file contents in the form of ByteArray. More could be found at http://blog.flexexamples.com/2008/08/25/previewing-an-image-before-uploading-it-using-the-filereference-class-in-flash-player-10/

Example:&lt;pre lang=&quot;actionscript&quot;&gt;private var fileReferenceLoad:FileReference = new FileReference();

private function onLoadImage():void
{
    var f:FileFilter = new FileFilter(&quot;Images&quot;, &quot;*.jpg;*.gif;*.png;*.jpeg&quot;);
    fileReferenceLoad.browse([f]);
    fileReferenceLoad.addEventListener(Event.SELECT,onFileSelect);
    fileReferenceLoad.addEventListener(Event.COMPLETE,onFileComplete);
}
private function onFileSelect(event:Event):void
{
    fileReferenceLoad.load();
}
 
private function onFileComplete(event:Event):void
{
     var byteArray:ByteArray = fileReferenceLoad.data;
     //
 }&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Use FileReference and it can fetch the file contents in the form of ByteArray. More could be found at <a href="http://blog.flexexamples.com/2008/08/25/previewing-an-image-before-uploading-it-using-the-filereference-class-in-flash-player-10/" rel="nofollow">http://blog.flexexamples.com/2008/08/25/previewing-an-image-before-uploading-it-using-the-filereference-class-in-flash-player-10/</a></p>
<p>Example:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> fileReferenceLoad:FileReference = <span style="color: #000000; font-weight: bold;">new</span> FileReference<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onLoadImage<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: #000000; font-weight: bold;">var</span> f:FileFilter = <span style="color: #000000; font-weight: bold;">new</span> FileFilter<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Images&quot;</span>, <span style="color: #ff0000;">&quot;*.jpg;*.gif;*.png;*.jpeg&quot;</span><span style="color: #66cc66;">&#41;</span>;
    fileReferenceLoad.<span style="color: #006600;">browse</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#91;</span>f<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
    fileReferenceLoad.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">SELECT</span>,onFileSelect<span style="color: #66cc66;">&#41;</span>;
    fileReferenceLoad.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">COMPLETE</span>,onFileComplete<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onFileSelect<span style="color: #66cc66;">&#40;</span>event:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
<span style="color: #66cc66;">&#123;</span>
    fileReferenceLoad.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onFileComplete<span style="color: #66cc66;">&#40;</span>event:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
<span style="color: #66cc66;">&#123;</span>
     <span style="color: #000000; font-weight: bold;">var</span> byteArray:ByteArray = fileReferenceLoad.<span style="color: #0066CC;">data</span>;
     <span style="color: #808080; font-style: italic;">//</span>
 <span style="color: #66cc66;">&#125;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Casey</title>
		<link>http://www.flexer.info/2009/01/27/securityerror-error-3015-loaderloadbytes-is-not-permitted-to-load-content-with-executable-code/comment-page-1/#comment-1312</link>
		<dc:creator>Casey</dc:creator>
		<pubDate>Sun, 15 Feb 2009 17:43:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=537#comment-1312</guid>
		<description>How can I create a bytearray from a local file for loading?</description>
		<content:encoded><![CDATA[<p>How can I create a bytearray from a local file for loading?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

