<?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>The Mindful Coder &#187; Flex</title>
	<atom:link href="http://themindfulcoder.com/tag/flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://themindfulcoder.com</link>
	<description>Code, yes. But think about it a little first.</description>
	<lastBuildDate>Sun, 27 Nov 2011 20:18:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Flex on the Mac</title>
		<link>http://themindfulcoder.com/2008/12/flex-on-the-mac/</link>
		<comments>http://themindfulcoder.com/2008/12/flex-on-the-mac/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 19:53:51 +0000</pubDate>
		<dc:creator>The Fat Oracle</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Builder 3]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[security sandbox violation]]></category>
		<category><![CDATA[Tiger]]></category>

		<guid isPermaLink="false">http://themindfulcoder.com/?p=6</guid>
		<description><![CDATA[TweetI am used to doing most of my Flex dev on Windows. At home, I do it on my XP VM on my Mac. But I was having a conversation with some friends on Friendfeed a couple of days back about Microsoft having a development bias while Mac had a consumer bias – and during [...]]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton6" class="tw_button" style="float:right;margin-left:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fthemindfulcoder.com%2F2008%2F12%2Fflex-on-the-mac%2F&amp;text=RT%20%40fatoracle%20Flex%20on%20the%20Mac&amp;related=fatoracle&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Fthemindfulcoder.com%2F2008%2F12%2Fflex-on-the-mac%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://themindfulcoder.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><fb:like href='http://themindfulcoder.com/2008/12/flex-on-the-mac/' send='true' layout='standard' show_faces='true' width='450' height='65' action='recommend' colorscheme='light' font='lucida+grande'></fb:like><p>I am used to doing most of my Flex dev on Windows. At home, I do it on my XP VM on my Mac. But I was having a conversation with some friends on Friendfeed a couple of days back about Microsoft having a development bias while Mac had a consumer bias – and during the course of the discussion, it came home to me that I see my Mac as a pleasure boat – and not a platform I want to develop on. I immediately realized this was ridiculous because I have no problem developing on Linux – and the Mac OS is the pretty refined cousin of Linux who hasn’t forgotten her roots. </p>
<p>So I’ve decided to do at least some part of my dev on the Mac. Conveniently, I am currently working on architecting a Flex application for 3D modeling that uses Papervision3d. Flex Builder is Eclipse based and available on the Mac – perfect!</p>
<p>To keep my workspace and files synchronized between my work Windows machine and my Mac at home, I am in the process of setting up <a href="http://www.mesh.com/">Windows Live Mesh</a>. Live Mesh is looking amazing and works pretty flawlessly. The only problem is that their Mac client is still in tech preview and my account doesn’t have authorization yet to use it on the Mac <img src='http://themindfulcoder.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> . So I am using my XP VM on the Mac as my conduit to synch for now. I can’t wait for the Mac client to go live. More on how I use Mesh in future posts.</p>
<p>So I opened up my Flex project on the Mac version of Flex Builder 3. You soon realize subtle differences between the Windows and Mac versions of both the Flex Builder and the Flex compiler. Also, since I was using both Mac and Windows, I started mixing up my keyboard shortcuts – got annoying very quickly.</p>
<p>The first issue with using Flex on the mac was that as soon as I tried debugging my app, I got a ‘Security Sandbox Violation’. It was working just fine on Windows.    <br />&#160;</p>
<blockquote><p>*** Security Sandbox Violation ***      <br />Connection to xxxxxx_frontElev.dae halted &#8211; not permitted from <a href="file://localhost/Volumes/Anatta/work/xxxxxx/Prototype">file://localhost/Volumes/Anatta/work/xxxxxx/Prototype</a> I/bin-debug/main.swf       <br />SecurityError: Error #2148: SWF file <a href="file://localhost/Volumes/Anatta/work/xxxxxxx/Prototype">file://localhost/Volumes/Anatta/work/xxxxxxx/Prototype</a> I/bin-debug/main.swf cannot access local resource yyyyy_frontElev.dae. Only local-with-filesystem and trusted local SWF files may access local resources.       <br />&#160;&#160;&#160; at flash.net::URLStream/load()       <br />&#160;&#160;&#160; at flash.net::URLLoader/load()       <br />&#160;&#160;&#160; at org.ascollada.io::DaeReader/read()[/Volumes/Anatta/work/xxxxxxx/xxxxxxx/Libraries/papervision3d_SVN_Checkout/as3/trunk/src/org/ascollada/io/DaeReader.as:76]       <br />&#160;&#160;&#160; at org.papervision3d.objects.parsers::DAE/load</p>
<p>….</p>
</blockquote>
<p><font color="#777777">After digging around a little, turns out this was because of the sandbox settings on the Flash player on the Mac.</font></p>
<p><font color="#777777">To fix this, </font></p>
<ol>
<li><font color="#777777">Go to the compiler settings in&#160; your project’s properties via Project-&gt;Properties-&gt;FlexCompiler</font> </li>
<li><font color="#777777">In the ‘Additional compiler arguments:” settings, add        <br /><em>-use-network=false          <br /></em><a href="http://themindfulcoder.com/wp-content/uploads/2008/12/image1.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://themindfulcoder.com/wp-content/uploads/2008/12/image-thumb1.png" width="544" height="517" /></a>         <br /></font></li>
<li><font color="#777777">Click ok. </font></li>
</ol>
<p><font color="#777777">Should work fine. Hope it saves you some time if you are starting with Flex on the Mac.</font></p>
]]></content:encoded>
			<wfw:commentRss>http://themindfulcoder.com/2008/12/flex-on-the-mac/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

