<?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>Software and Technology Ramblings &#187; AIR</title>
	<atom:link href="http://blog.eastfacesoftware.com/category/air/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.eastfacesoftware.com</link>
	<description>A blog of software design, architecture, and other unread ramblings.</description>
	<lastBuildDate>Wed, 19 May 2010 20:43:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Automatic Switching of Environments with Adobe AIR</title>
		<link>http://blog.eastfacesoftware.com/2009/05/17/automatic-switching-of-environments-with-adobe-air/</link>
		<comments>http://blog.eastfacesoftware.com/2009/05/17/automatic-switching-of-environments-with-adobe-air/#comments</comments>
		<pubDate>Mon, 18 May 2009 05:31:54 +0000</pubDate>
		<dc:creator>Doug Hays</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://blog.eastfacesoftware.com/?p=50</guid>
		<description><![CDATA[There is an issue with AIR application development to which I still have not found an official answer.
I just need to switch between http://localhost and http://fakeproductionurl.com depending on whether I was running in Flex Builder (via adl).
I found all sorts of articles about using conditional compilation (yikes) and reading XML files (I&#8217;m too lazy).
This is [...]]]></description>
			<content:encoded><![CDATA[<p>There is an issue with AIR application development to which I still have not found an official answer.</p>
<p>I just need to switch between http://localhost and http://fakeproductionurl.com depending on whether I was running in Flex Builder (via adl).</p>
<p>I found all sorts of articles about using conditional compilation (yikes) and reading XML files (I&#8217;m too lazy).</p>
<p>This is what I ended up using:</p>
<pre class="code">if (NativeApplication.nativeApplication.publisherID != "") {
   return "http://fakeproductionurl.com";
}
else {
   return "http://localhost";
}</pre>
<p>It doesn&#8217;t give you the ability to switch between 3+ different environments, but it&#8217;s a very easy way to toggle between development / production environments.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.eastfacesoftware.com/2009/05/17/automatic-switching-of-environments-with-adobe-air/feed/</wfw:commentRss>
		<slash:comments>3192</slash:comments>
		</item>
	</channel>
</rss>
