<?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>Stuck in a for loop&#187; Security</title>
	<atom:link href="http://blog.kazumakzak.com/tag/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.kazumakzak.com</link>
	<description>blog.kazumakzak.com</description>
	<lastBuildDate>Thu, 04 Mar 2010 10:52:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Flex: Actionscript project Sandbox Error (Error #2044)</title>
		<link>http://blog.kazumakzak.com/2008/11/26/flex-actionscript-project-sandbox-error-error-2044/</link>
		<comments>http://blog.kazumakzak.com/2008/11/26/flex-actionscript-project-sandbox-error-error-2044/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 15:59:40 +0000</pubDate>
		<dc:creator>Mattias</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://blog.kazumakzak.com/?p=33</guid>
		<description><![CDATA[When you are working on an actionscript project with a generated swf in Flex you sometimes need to pass the work to someone else for review. If your swf is loading another swf you will not be able to get the files to work correctly. As soon as you copy the files to a local [...]]]></description>
			<content:encoded><![CDATA[<p>When you are working on an actionscript project with a generated swf in Flex you sometimes need to pass the work to someone else for review. If your swf is loading another swf you will not be able to get the files to work correctly. As soon as you copy the files to a local folder you are going to have problems because of the security in Flash player. If you run the html-file Flex created you will get an error:</p>
<blockquote><p><span style="color: #999999;">Error #2044: Unhandled SecurityErrorEvent:. text=Error #2140: Security sandbox violation: file:///Users/mattiaswargren/Documents/Flex Builder 3/my-project/bin-release/Main.swf cannot load file:///Users/mattiaswargren/Documents/Flex Builder 3/my-project/bin-release/assets.swf. Local-with-filesystem and local-with-networking SWF files cannot load each other.</span></p></blockquote>
<p>This is just the temporary solution to get it working in a local folder.</p>
<ol>
<li>Right-click your project and select <strong>properties</strong>.</li>
<li>Select <strong>Actionscript Compiler</strong>.</li>
<li>Write <strong>-use-network=false</strong> in the textbox for <strong>Additional compiler parameters</strong>.</li>
<li>Next time you run this project it is ready for local use.</li>
</ol>
<p><a href="http://blog.kazumakzak.com/wp-content/uploads/2008/11/picture-31.png" rel="lightbox[33]"><img class="alignnone size-medium wp-image-73" title="picture-31" src="http://blog.kazumakzak.com/wp-content/uploads/2008/11/picture-31-550x433.png" alt="" width="550" height="433" /></a></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Flex%3A+Actionscript+project+Sandbox+Error+%28Error+%232044%29+http://6hkwc.th8.us" title="Post to Twitter"><img class="nothumb" src="http://blog.kazumakzak.com/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.kazumakzak.com/2008/11/26/flex-actionscript-project-sandbox-error-error-2044/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->