<?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>WS-Blog &#187; Apollo</title>
	<atom:link href="http://www.websector.de/blog/category/apollo/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.websector.de/blog</link>
	<description>// Flex, AIR, Flash</description>
	<lastBuildDate>Wed, 16 Jun 2010 09:25:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Using TextMate for building Apollo applications: Setting up</title>
		<link>http://www.websector.de/blog/2007/03/31/using-textmate-for-building-apollo-applications-setting-up/</link>
		<comments>http://www.websector.de/blog/2007/03/31/using-textmate-for-building-apollo-applications-setting-up/#comments</comments>
		<pubDate>Sat, 31 Mar 2007 12:29:00 +0000</pubDate>
		<dc:creator>sectore</dc:creator>
				<category><![CDATA[Apollo]]></category>

		<guid isPermaLink="false">http://www.websector.de/blog/2007/03/31/using-textmate-for-building-apollo-applications-setting-up/</guid>
		<description><![CDATA[In my previous entry I described &#8220;5 reasons for building Apollo applications as a Flash Developer&#8221;. Today I&#8217;ll give you an introduction for building an Apollo application without Flex Builder 2 using Apollo SDK (Alpha) and TextMate. Instruction Download Flex 2.0.1 SDK and the Apollo SDK. Open Terminal and create a new folder typing mkdir [...]]]></description>
			<content:encoded><![CDATA[<p>In my previous entry I described <a href="http://www.websector.de/blog/2007/03/23/5-reasons-for-building-apollo-applications-as-a-flash-developer/">&#8220;5 reasons for building Apollo applications as a Flash Developer&#8221;</a>. Today I&#8217;ll give you an introduction for building an Apollo application without Flex Builder 2 using <a href="http://www.adobe.com/go/getapollo">Apollo SDK</a> (Alpha) and <a href="http://macromates.com/">TextMate</a>.</p>
<p><span id="more-26"></span></p>
<h2>Instruction</h2>
<p>
<ol>
<li>Download <a href="http://www.adobe.com/devnet/flex/?tab:downloads=1">Flex 2.0.1 SDK</a> and the <a href="http://www.adobe.com/go/getapollo">Apollo SDK</a>.</li>
<li>Open Terminal and create a new folder typing <code>mkdir /Applications/flex_sdk2</code>.</li>
<li>Unzip both downloaded files. Type in your opened Terminal window <code>unzip /{downloadFolder}/flex_sdk_2.zip -d /Applications/flex_sdk2</code> and <code>unzip /{downloadFolder}/apollo_sdk_alpha1_031907.zip -d /Applications/flex_sdk2</code>. Accept the replacing of <em>&#8220;Version.as&#8221;</em> and <em>&#8220;mxmlc.jar&#8221;</em> twice. Note: Don&#8217;t unzip the files using Stuffit Expander.</li>
<li>For installing the Apollo runtime open the <em>/Applications/flex_sdk2/runtime</em> in Finder and double-click the <em>Adobe Apollo.dmg</em> file. Drag the <em>Adobe Apollo.frameworkfolder</em> contained in the *.dmg file to the <em>/Applications/flex_sdk2/runtime</em> directory.</li>
<li>Configure the <a href="http://developer.apple.com/documentation/MacOSX/Conceptual/OSX_Technology_Overview/CommandLine/chapter_8_section_4.html">environment variable</a><em>$PATH</em> in your <em>.bash_profile</em> with <em>pico</em>. Type in Terminal <code>pico .profile</code> and add the following line <code>export PATH=$PATH:/Applications/flex_sdk2/bin/</code>. Save and close pico. Refresh <em>.bash_profile</em> typing (Note the double points with space) <code>. .bash_profile</code> and check it with <code>echo $PATH</code>.</li>
<li>Open TextMate and create a new project (âŒƒâŒ˜N) named <em>&#8220;textMateMeetsApollo.tmproj&#8221;</em>.</li>
<li>Place a root content for Apollo creating a new file <em>&#8220;HelloWorld.mxml&#8221;</em> including following code:
<phpcode>
<div class="codeHeadlineBox">
<p>HelloWorld.mxml</p>
</div>
<div class="actionscript" style="font-family: monospace;">
<ol>
<li class="li1">
<div class="de1">&lt;?<span class="kw3">xml</span> <span class="kw3">version</span>=<span class="st0">&quot;1.0&quot;</span> encoding=<span class="st0">&quot;utf-8&quot;</span>?&gt; </div>
</li>
<li class="li1">
<div class="de1">&lt;mx:ApolloApplication xmlns:mx=<span class="st0">&quot;http://www.adobe.com/2006/mxml&quot;</span> </div>
</li>
<li class="li1">
<div class="de1">&nbsp; layout=<span class="st0">&quot;absolute&quot;</span> </div>
</li>
<li class="li1">
<div class="de1">&nbsp; title=<span class="st0">&quot;TextMate meets Apollo&quot;</span> </div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="kw3">backgroundColor</span>=<span class="st0">&quot;0&#215;000000&quot;</span>&gt; </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &lt;mx:Label <span class="kw3">htmlText</span>=<span class="st0">&quot;TextMate meets Apollo&quot;</span> </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; fontSize=<span class="st0">&quot;28&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;&nbsp; &nbsp;<span class="kw3">color</span>=<span class="st0">&quot;0xFFFFFF&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; horizontalCenter=<span class="st0">&quot;0&quot;</span> </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; verticalCenter=<span class="st0">&quot;0&quot;</span>/&gt; </div>
</li>
<li class="li1">
<div class="de1">&lt;/mx:ApolloApplication&gt;</div>
</li>
</ol>
</div>
</phpcode>
	In this case it&#8217;s a simple Flex file including a Label component.</li>
<li>Then add a XML file called <em>&#8220;HelloWorldApp.xml&#8221;</em> which defines the properties for your Apollo application:
<phpcode>
<div class="codeHeadlineBox">
<p>HelloWorldApp.xml</p>
</div>
<div class="actionscript" style="font-family: monospace;">
<ol>
<li class="li1">
<div class="de1">&lt;?<span class="kw3">xml</span> <span class="kw3">version</span>=<span class="st0">&quot;1.0&quot;</span> encoding=<span class="st0">&quot;UTF-8&quot;</span>?&gt; </div>
</li>
<li class="li1">
<div class="de1">&lt;application xmlns=<span class="st0">&quot;http://ns.adobe.com/apollo/application/1.0.M3&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw3">version</span>=<span class="st0">&quot;1.0&quot;</span> </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; appId=<span class="st0">&quot;HelloWorld&quot;</span>&gt;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &lt;properties&gt; </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &lt;name&gt;Example <span class="kw1">for</span> building an Apollo Application <span class="kw3">with</span> TextMate&lt;/name&gt; </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &lt;publisher&gt;sectore <span class="br0">&#91;</span>www.<span class="me1">websector</span>.<span class="me1">de</span><span class="br0">&#93;</span>&lt;/publisher&gt; </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &lt;description&gt;A sample Apollo application&lt;/description&gt; </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &lt;/properties&gt; </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &lt;rootContent systemChrome=<span class="st0">&quot;standard&quot;</span> transparent=<span class="st0">&quot;false&quot;</span>&gt;HelloWorld.<span class="me1">swf</span>&lt;/rootContent&gt; </div>
</li>
<li class="li1">
<div class="de1">&lt;/application&gt;</div>
</li>
</ol>
</div>
</phpcode></li>
<li>
<p>For easier handling define a TextMate command to compile your Apollo application. Open the project information panel (âŒ˜I) and add two shell variables named <em>APOLLO_APP</em> and <em>APOLLO_DESCRIPTOR</em>.</p>
<p><img src="http://www.websector.de/blog/wp-content/uploads/2007/03/tm_projectInfo.png" /></p>
</li>
<li>
<p>Finally create a command opening the command panel (âŒƒâŒ¥âŒ˜C). Add a new bundle named <em>&#8220;Apollo&#8221;</em> and a new command called <em>&#8220;build&#8221;</em> as well. For running the compiler I&#8217;ve chosen <em>STRG+ENTER</em>.
			</p>
<p><img src="http://www.websector.de/blog/wp-content/uploads/2007/03/tm_bundleEditor.png" /></p>
<p>Source of TextMates build command:</p>
<phpcode>
<div class="codeHeadlineBox">
<p>tm_buildApolloApp.command</p>
</div>
<div class="actionscript" style="font-family: monospace;">
<ol>
<li class="li1">
<div class="de1"><span class="co2"># Source some support functions we need.</span></div>
</li>
<li class="li1">
<div class="de1">. <span class="st0">&quot;${TM_SUPPORT_PATH}/lib/html.sh&quot;</span></div>
</li>
<li class="li1">
<div class="de1">. <span class="st0">&quot;${TM_SUPPORT_PATH}/lib/webpreview.sh&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">html_header <span class="st0">&quot;TextMate meets Apollo&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">echo <span class="st0">&#8216;&lt;h2&gt;Building Apollo App&quot;&#8217;</span></div>
</li>
<li class="li1">
<div class="de1">echo $APOLLO_APP</div>
</li>
<li class="li1">
<div class="de1">echo <span class="st0">&#8216;&quot;&lt;/h2&gt;&#8217;</span></div>
</li>
<li class="li1">
<div class="de1">echo <span class="st0">&#8216;&lt;p&gt;&#8217;</span></div>
</li>
<li class="li1">
<div class="de1">amxmlc $TM_PROJECT_DIRECTORY/$APOLLO_APP</div>
</li>
<li class="li1">
<div class="de1">echo <span class="st0">&#8216;&lt;/p&gt;&#8217;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">echo <span class="st0">&#8216;&lt;h2&gt;Test Apollo App &quot;&#8217;</span></div>
</li>
<li class="li1">
<div class="de1">echo $APOLLO_DESCRIPTOR</div>
</li>
<li class="li1">
<div class="de1">echo <span class="st0">&#8216;&quot;&lt;/h2&gt;&#8217;</span></div>
</li>
<li class="li1">
<div class="de1">echo <span class="st0">&#8216;&lt;p&gt;&#8217;</span></div>
</li>
<li class="li1">
<div class="de1">adl $TM_PROJECT_DIRECTORY/$APOLLO_DESCRIPTOR</div>
</li>
<li class="li1">
<div class="de1">echo <span class="st0">&#8216;&lt;/p&gt;&#8217;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">html_footer</div>
</li>
</ol>
</div>
</phpcode></li>
</ol>
<h2>Screen shots</h2>
<p>TextMates output window:</p>
<p><img src="http://www.websector.de/blog/wp-content/uploads/2007/03/tm_outputWindow.png" /></p>
<p>Apollo window:</p>
<p><img src="http://www.websector.de/blog/wp-content/uploads/2007/03/apollo_window.png" /></p>
<h2>Download</h2>
<p>Source: <a href="http://www.websector.de/blog/?download=textMateMeetsApolloExample">textMateApolloExample.zip</a><br /><em>(Downloads: 876)</em></p>
<h2>Links</h2>
<p>
<ul>
<li>Open book: <a href="http://labs.adobe.com/wiki/index.php/Apollo:Books:Apollo_for_Adobe_Flex_Developers_Pocket_Guide">&#8220;Apollo for Flex Developer&#8221;</a></li>
<li>Adobe Labs: <a href="http://labs.adobe.com/wiki/index.php/Apollo:Documentation:Set_up_instructions_for_Flex_SDK_users#Installing_and_configuring_the_Apollo_SDK"> Installing and configuring the Apollo SDK</a> and <a href="http://labs.adobe.com/wiki/index.php/Apollo:Documentation:Creating_an_Apollo_application_using_the_command_line_tools">Creating an Apollo application using the command line tools</a></li>
<li>Adobe Apollo Forum: <a href="http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&#038;catid=641&#038;threadid=1252936&#038;highlight_key=y&#038;keyword1=sdk">Can not unzip the SDK on a Mac</a></li>
</ul>
<h2>Feedback and suggestions</h2>
<p>Feedback and suggestions for improvement are welcome, especially smarter commands for TextMate <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  . <del>And is there anyone out there to create an Apollo bundle script for TextMate feel free to drop a comment, too.</del><strong>[EDIT: 04/04/07]</strong> I&#8217;ve just found that <a href="http://www.sitening.com/blog/">Tyler Hall</a> has already build an Apollo bundle for TextMate. <a href="http://www.sitening.com/blog/2007/03/23/adobe-apollo-bundle-for-textmate/">Check it out</a>! <strong>[EDIT]</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.websector.de/blog/2007/03/31/using-textmate-for-building-apollo-applications-setting-up/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>5 reasons for building Apollo applications as a Flash Developer</title>
		<link>http://www.websector.de/blog/2007/03/23/5-reasons-for-building-apollo-applications-as-a-flash-developer/</link>
		<comments>http://www.websector.de/blog/2007/03/23/5-reasons-for-building-apollo-applications-as-a-flash-developer/#comments</comments>
		<pubDate>Fri, 23 Mar 2007 10:20:00 +0000</pubDate>
		<dc:creator>sectore</dc:creator>
				<category><![CDATA[Apollo]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.websector.de/blog/2007/03/23/5-reasons-for-building-apollo-applications-as-a-flash-developer/</guid>
		<description><![CDATA[Well, 5 reasons aren&#8217;t enough and as a Flash Developer you&#8217;ll need experience with ActionScript 3 and Flex 2, too. However, Apollo Alpha is out of the door and after studying the open book &#8220;Apollo for Flex Developers&#8221; I&#8217;ve found my personal top 5 reasons for diving into Apollo as a Flash Developer: Personal top [...]]]></description>
			<content:encoded><![CDATA[<p>Well, 5 reasons aren&#8217;t enough <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  and as a Flash Developer you&#8217;ll need experience with ActionScript 3 and Flex 2, too. However, <a href="http://labs.adobe.com/technologies/apollo/">Apollo Alpha</a> is out of the door and after studying the open book <a href="http://labs.adobe.com/wiki/index.php/Apollo:Books:Apollo_for_Adobe_Flex_Developers_Pocket_Guide">&#8220;Apollo for Flex Developers&#8221;</a> I&#8217;ve found my personal top 5 reasons for diving into Apollo as a Flash Developer:</p>
<p><span id="more-21"></span></p>
<p><img src="http://www.websector.de/blog/wp-content/uploads/2007/03/apollo_logo.jpg" alt="Apollo Logo"/></p>
<h2>Personal top 5</h2>
<p>
<ol>
<li>Flash / Flex are one of the core technologies of Apollo.</li>
<li>Developing cross-platform web applications using Flash / Flex with possibilities of any desktop application, such as native installation, self update, offline support, Apollos File System API, drag and drop support between Apollo and native applications or operations systems, etc. </li>
<li>Full featured HTML support within Flash / Flex, because Apollos <code>HTMLControll</code> class uses the <a href="http://webkit.org/projects/documentation/index.html">open source WebKit engine</a> to retrieve, load and render HTML content. The <code>HTMLControll</code> class inherits the <a href="http://livedocs.adobe.com/flex/2/langref/flash/display/DisplayObject.html"><code>flash.display.DisplayObject</code></a> class, which you can manipulate HTML content like any other display object with applying filters, using matrix for transformations to scale, rotate or skew. Furthermore it&#8217;s possible to manipulate the HTML DOM from ActionScript.</li>
<li>Script bridging between Flash and JavaScript without browsers incompatibilities.</li>
<li><a href="http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_apollo">Apollo SDK</a>: You can use any tool of your choice (e.g. <a href="http://macromates.com/">TextMate</a>) to start developing Apollo applications &#8211; for free.</li>
</ol>
<p>Great, isn&#8217;t it?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.websector.de/blog/2007/03/23/5-reasons-for-building-apollo-applications-as-a-flash-developer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
