<?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>Helmut Granda</title>
	<atom:link href="http://www.helmutgranda.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.helmutgranda.com</link>
	<description>learning through interaction</description>
	<lastBuildDate>Tue, 09 Mar 2010 20:27:36 +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>Command line shortcuts Mac OS X</title>
		<link>http://www.helmutgranda.com/2010/03/09/command-line-shortcuts-mac-os-x/</link>
		<comments>http://www.helmutgranda.com/2010/03/09/command-line-shortcuts-mac-os-x/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 20:26:39 +0000</pubDate>
		<dc:creator>Helmut Granda</dc:creator>
				<category><![CDATA[AS Burst]]></category>

		<guid isPermaLink="false">http://www.helmutgranda.com/?p=434</guid>
		<description><![CDATA[Ctrl + A:	Go to the beginning of the line you are currently typing on
Ctrl + E:	Go to the end of the line you are currently typing on
Ctrl + L:	Clears the Screen, similar to the clear command
Ctrl + U:	Clears the line before the cursor position. If you are at the end of the line, clears the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Ctrl + A</strong>:	Go to the beginning of the line you are currently typing on<br />
<strong>Ctrl + E</strong>:	Go to the end of the line you are currently typing on<br />
<strong>Ctrl + L</strong>:	Clears the Screen, similar to the clear command<br />
<strong>Ctrl + U</strong>:	Clears the line before the cursor position. If you are at the end of the line, clears the entire line.<br />
<strong>Ctrl + H</strong>:	Same as backspace<br />
<strong>Ctrl + R</strong>:	Let’s you search through previously used commands<br />
<strong>Ctrl + C</strong>:	Kill whatever you are running<br />
<strong>Ctrl + D</strong>:	Exit the current shell<br />
<strong>Ctrl + Z</strong>:	Puts whatever you are running into a suspended background process. fg restores it.<br />
<strong>Ctrl + W</strong>:	Delete the word before the cursor<br />
<strong>Ctrl + K</strong>:	Clear the line after the cursor<br />
<strong>Ctrl + T</strong>:	Swap the last two characters before the cursor<br />
<strong>Esc + T</strong>:	Swap the last two words before the cursor</p>
<p><em>src: http://osxdaily.com/2006/12/19/command-line-keyboard-shortcuts-for-mac-os-x/</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.helmutgranda.com/2010/03/09/command-line-shortcuts-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make Permanent Aliases on MAC OS X</title>
		<link>http://www.helmutgranda.com/2010/03/09/make-permanent-aliases-on-mac-os-x/</link>
		<comments>http://www.helmutgranda.com/2010/03/09/make-permanent-aliases-on-mac-os-x/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 20:23:39 +0000</pubDate>
		<dc:creator>Helmut Granda</dc:creator>
				<category><![CDATA[quote-bits]]></category>

		<guid isPermaLink="false">http://www.helmutgranda.com/?p=432</guid>
		<description><![CDATA[command line:
open ~/.bash_profile
add as follows
alias name=path
example:
alias zf=/usr/local/ZendFrameworkCli/bin/zf.sh
if you need to pass a parameter where you need to escape characters or spaces wrap the path in quotes as follows:
alias projects="cd /Applications/xampp/xamppfiles/htdocs"
]]></description>
			<content:encoded><![CDATA[<p>command line:</p>
<p>open ~/.bash_profile</p>
<p>add as follows</p>
<p>alias name=path</p>
<p>example:</p>
<p>alias zf=/usr/local/ZendFrameworkCli/bin/zf.sh</p>
<p>if you need to pass a parameter where you need to escape characters or spaces wrap the path in quotes as follows:</p>
<p>alias projects="cd /Applications/xampp/xamppfiles/htdocs"</p>
]]></content:encoded>
			<wfw:commentRss>http://www.helmutgranda.com/2010/03/09/make-permanent-aliases-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why You Can&#8217;t Work at Work</title>
		<link>http://www.helmutgranda.com/2010/03/02/why-you-cant-work-at-work/</link>
		<comments>http://www.helmutgranda.com/2010/03/02/why-you-cant-work-at-work/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 20:58:52 +0000</pubDate>
		<dc:creator>Helmut Granda</dc:creator>
				<category><![CDATA[AS Burst]]></category>

		<guid isPermaLink="false">http://www.helmutgranda.com/?p=427</guid>
		<description><![CDATA[
As agencies get bigger and deadlines shorter it becomes harder to work at work. Some people even opt to work away from the office during crunch time due to the many distractions that are created at work.
]]></description>
			<content:encoded><![CDATA[<p><script src="http://video.bigthink.com/player.js?height=288&#038;autoplay=0&#038;width=512&#038;deepLinkEmbedCode=03NG42MTqVnn6kOnuDv8k_iDC2HEGniT&#038;embedCode=03NG42MTqVnn6kOnuDv8k_iDC2HEGniT"></script></p>
<p>As agencies get bigger and deadlines shorter it becomes harder to work at work. Some people even opt to work away from the office during crunch time due to the many distractions that are created at work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.helmutgranda.com/2010/03/02/why-you-cant-work-at-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SMW Part 04 Crowdsourcery Potions 101</title>
		<link>http://www.helmutgranda.com/2010/02/02/smw-part-04-crowdsourcery-potions-101/</link>
		<comments>http://www.helmutgranda.com/2010/02/02/smw-part-04-crowdsourcery-potions-101/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 04:29:07 +0000</pubDate>
		<dc:creator>Helmut Granda</dc:creator>
				<category><![CDATA[AS Burst]]></category>

		<guid isPermaLink="false">http://www.helmutgranda.com/?p=423</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><object width="560" height="340" id="preview-player1" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="http://cdn.livestream.com/grid/LSPlayer.swf?channel=smw_newyork&amp;clip=pla_2a03f485-cafc-4804-99f5-0c12d351ae9e&amp;color=0xe7e7e7&amp;autoPlay=false&amp;mute=false"></param><param name="allowScriptAccess" value="never"></param><param name="allowFullScreen" value="true"></param><embed id="preview-player" src="http://cdn.livestream.com/grid/LSPlayer.swf?channel=smw_newyork&amp;clip=pla_2a03f485-cafc-4804-99f5-0c12d351ae9e&amp;color=0xe7e7e7&amp;autoPlay=false&amp;mute=false" width="560" height="340" allowScriptAccess="never" allowFullScreen="true" type="application/x-shockwave-flash"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.helmutgranda.com/2010/02/02/smw-part-04-crowdsourcery-potions-101/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone applications built with Flash</title>
		<link>http://www.helmutgranda.com/2010/02/01/iphone-applications-built-with-flash/</link>
		<comments>http://www.helmutgranda.com/2010/02/01/iphone-applications-built-with-flash/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 04:16:01 +0000</pubDate>
		<dc:creator>Helmut Granda</dc:creator>
				<category><![CDATA[AS Burst]]></category>

		<guid isPermaLink="false">http://www.helmutgranda.com/?p=418</guid>
		<description><![CDATA[If the mountain doesn't come to you, then you must go to the mountain. A lot of people talking how Flash is dying but it is nice to see how at least Adobe is helping current Flash Developers to use Flash CS5 to create applications for iPhone, iTouch and iPad.

]]></description>
			<content:encoded><![CDATA[<p>If the mountain doesn't come to you, then you must go to the mountain. A lot of people talking how Flash is dying but it is nice to see how at least Adobe is helping current Flash Developers to use Flash CS5 to create applications for iPhone, iTouch and iPad.</p>
<p><object width="525" height="356"><param name="movie" value="http://tv.adobe.com/assets//swf/player.swf"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><param name="FlashVars" value="fileID=5039&#038;context=76&#038;embeded=true&#038;environment=production"></param><embed src="http://tv.adobe.com/assets//swf/player.swf" flashvars="fileID=5039&#038;context=76&#038;embeded=true&#038;environment=production" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="525" height="356"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.helmutgranda.com/2010/02/01/iphone-applications-built-with-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use SVN with FDT</title>
		<link>http://www.helmutgranda.com/2010/01/27/use-svn-with-fdt/</link>
		<comments>http://www.helmutgranda.com/2010/01/27/use-svn-with-fdt/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 08:43:26 +0000</pubDate>
		<dc:creator>Helmut Granda</dc:creator>
				<category><![CDATA[AS Burst]]></category>

		<guid isPermaLink="false">http://www.helmutgranda.com/?p=413</guid>
		<description><![CDATA[Quick way to set up a SVN Repositroy in FDT.

Instructions

Open the SVN Repository Exploring Perspective
Add an new SVN Repository
Return to the FDT Perspective
Select the Project within the Flash Explorer that you wish to link to the new Repository
Scroll down to Team and Select Share Project
Choose SVN from the Share Project dialog box
Choose the Repository from the supplied list
Enter [...]]]></description>
			<content:encoded><![CDATA[<p>Quick way to set up a SVN Repositroy in FDT.</p>
<blockquote>
<h3 style="font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, sans-serif; font-weight: bold; font-size: 1.3em; color: #333333; text-decoration: none; margin-top: 30px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding: 0px;">Instructions</h3>
<ol style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 35px; margin: 0px;">
<li style="list-style-type: decimal; list-style-position: outside; list-style-image: initial; margin-top: 7px; margin-right: 0px; margin-bottom: 8px; margin-left: 10px; padding: 0px;">Open the <em>SVN Repository Exploring</em> Perspective</li>
<li style="list-style-type: decimal; list-style-position: outside; list-style-image: initial; margin-top: 7px; margin-right: 0px; margin-bottom: 8px; margin-left: 10px; padding: 0px;">Add an new SVN Repository</li>
<li style="list-style-type: decimal; list-style-position: outside; list-style-image: initial; margin-top: 7px; margin-right: 0px; margin-bottom: 8px; margin-left: 10px; padding: 0px;">Return to the FDT Perspective</li>
<li style="list-style-type: decimal; list-style-position: outside; list-style-image: initial; margin-top: 7px; margin-right: 0px; margin-bottom: 8px; margin-left: 10px; padding: 0px;">Select the Project within the Flash Explorer that you wish to link to the new Repository</li>
<li style="list-style-type: decimal; list-style-position: outside; list-style-image: initial; margin-top: 7px; margin-right: 0px; margin-bottom: 8px; margin-left: 10px; padding: 0px;">Scroll down to Team and Select <em>Share Project</em></li>
<li style="list-style-type: decimal; list-style-position: outside; list-style-image: initial; margin-top: 7px; margin-right: 0px; margin-bottom: 8px; margin-left: 10px; padding: 0px;">Choose <em>SVN</em> from the Share Project dialog box</li>
<li style="list-style-type: decimal; list-style-position: outside; list-style-image: initial; margin-top: 7px; margin-right: 0px; margin-bottom: 8px; margin-left: 10px; padding: 0px;">Choose the Repository from the supplied list</li>
<li style="list-style-type: decimal; list-style-position: outside; list-style-image: initial; margin-top: 7px; margin-right: 0px; margin-bottom: 8px; margin-left: 10px; padding: 0px;">Enter the project name you want, and Finish</li>
<li style="list-style-type: decimal; list-style-position: outside; list-style-image: initial; margin-top: 7px; margin-right: 0px; margin-bottom: 8px; margin-left: 10px; padding: 0px;">Tidy up those files with ? marks that you do not want committed, by adding to svn:ignore</li>
<li style="list-style-type: decimal; list-style-position: outside; list-style-image: initial; margin-top: 7px; margin-right: 0px; margin-bottom: 8px; margin-left: 10px; padding: 0px;">Commit the project</li>
<li style="list-style-type: decimal; list-style-position: outside; list-style-image: initial; margin-top: 7px; margin-right: 0px; margin-bottom: 8px; margin-left: 10px; padding: 0px;">You should see each folder with a little ‘database’ symbol, without any white stars which means that that everything is perfectly synchronized</li>
</ol>
<li style="list-style-type: decimal; list-style-position: outside; list-style-image: initial; margin-top: 7px; margin-right: 0px; margin-bottom: 8px; margin-left: 10px; padding: 0px;">The top of my project has a white star, usually a commit and update sorts this out, but not always! (A topic for a new Blog!)</li>
</blockquote>
<div>source:  <a href="http://factornine.wordpress.com/2009/06/11/setting-up-svn-for-an-existing-fdt-project/" target="_blank">http://factornine.wordpress.com</a></div>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.helmutgranda.com/2010/01/27/use-svn-with-fdt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Boarding Pass Fail from Delta</title>
		<link>http://www.helmutgranda.com/2010/01/04/boarding-pass-fail-from-delta/</link>
		<comments>http://www.helmutgranda.com/2010/01/04/boarding-pass-fail-from-delta/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 22:29:17 +0000</pubDate>
		<dc:creator>Helmut Granda</dc:creator>
				<category><![CDATA[AS Burst]]></category>

		<guid isPermaLink="false">http://www.helmutgranda.com/2010/01/04/boarding-pass-fail-from-delta/</guid>
		<description><![CDATA[Tyler Thompson had a very discomforting experience with the Delta Boarding passes and he went ahead and took the time to make different designs that on his point of view meets the requirements of the customers.
Here you can see the first design Tyler did:

And here you can see a Delta boarding pass similar to what [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.newtoyork.com/about/" target="_blank">Tyler Thompson</a> had a very discomforting experience with the <a href="http://passfail.squarespace.com/" targe="_blank">Delta Boarding passes</a> and he went ahead and took the time to make different designs that on his point of view meets the requirements of the customers.</p>
<h3>Here you can see the first design Tyler did:</h3>
<p><img src="http://passfail.squarespace.com/storage/boardingpass.png" /></p>
<h3>And here you can see a Delta boarding pass similar to what Tyler used:</h3>
<p><img src="http://dailyreceipts.com/receipts/d/23354-1/delta_1506_boarding_pass_09.jpg" /><br />
<i>to see the real pass he was handed visit his site</i></p>
<p>I personally haven't done a lot of traveling but on the few flights I have had in the past years i can easily identify the gate and seat number in the boarding pass. At first glance it is difficult to distinguish the numbers in the suggested design since they are aligned one after the other on a black strip and they all look like a continuous line rather than a separate entity.</p>
<p>Some other things that need to be kept in mind when designed to such a broader audience is</p>
<h3>Languages</h3>
<p>Is the design going to be translated in different languages and and do we have enough room in case they are printed on a different language?<br />
Is the user at any time have to read the boarding pass left to right, is the design going to fit that requirement?</p>
<h3>Ink</h3>
<p>Will the company have to spend millions of dollars more in order to use color versus only one color ink?</p>
<h3>Training</h3>
<p>How many men hours do we need to train people so they know exactly where the new information will be located on the new boarding passes?<br />
How long do we expect everyone to get used to it and how long do we expect people to ask why it has changed and how to find the information?</p>
<h3>Legibility</h3>
<p>Is it legible to everyone?<br />
Can everyone read the numbers?</p>
<h3>Finally</h3>
<p>Don't get me wrong, the suggested design looks "pretty" but how many times after you went through the inspection point the first thing you look at is the Flight Number? This is a boarding pass not a buss ticket. Once you have gone though security and you look at your ticket, What is the first thing you look at? I personally look at the Gate Number so that I can figure out where to go from there. I don't see people walking by the isles trying to see the flight number on the plane to identify it.</p>
<p>Interestingly enough Tyler's inspiration for his post was the post by <a href="http://dustincurtis.com/dear_american_airlines.html" target="_blank">Dustin Curtis in regards to the American Airlines website horror experience he had while trying to book a flight</a> which as a consequence one of the UX Designers had his contract terminated due to him taking the time to explain the procedures of large corporations and the reasons behind the "ugly" design though corporate email.</p>
<p>I say I find this interesting because if you follow the post from Dustin you can learn a lot and understand why things are done the way they are and is not as easy as to turn on and off a switch but it is a lot more involved than that. This is part of the response from the UX Designer</p>
<p><quote>Let me explain. The group running AA.com consists of at least 200 people spread out amongst many different groups, including, for example, QA, product planning, business analysis, code development, site operations, project planning, and user experience. We have a lot of people touching the site, and a lot more with their own vested interests in how the site presents its content and functionality. Fortunately, much of the public-facing functionality is funneled through UX, so any new features you see on the site should have been vetted through and designed by us before going public.</p>
<p>However, there are large exceptions. For example, our Interactive Marketing group designs and implements fare sales and specials (and doesn’t go through us to do it), and the Publishing group pushes content without much interaction with us… Oh, and don’t forget the AAdvantage team (which for some reason, runs its own little corner of the site) or the international sites (which have a lot of autonomy in how their domains are run)… Anyway, I guess what I’m saying is that AA.com is a huge corporate undertaking with a lot of tentacles that reach into a lot of interests. It’s not small, by any means.</quote></p>
<p>So the ideas of revamping a site or updating the way a boarding pass is great but keep in mind it is just more than "I like it this way" call by one person but it is a team and layer of contributors that you have to consult before making the final call.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.helmutgranda.com/2010/01/04/boarding-pass-fail-from-delta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>From Kohana to ZendFramework in about 30 minutes</title>
		<link>http://www.helmutgranda.com/2009/12/07/from-kohana-to-zendframework-in-about-30-minutes/</link>
		<comments>http://www.helmutgranda.com/2009/12/07/from-kohana-to-zendframework-in-about-30-minutes/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 05:15:32 +0000</pubDate>
		<dc:creator>Helmut Granda</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[ZendFramework]]></category>
		<category><![CDATA[Kohana]]></category>

		<guid isPermaLink="false">http://www.helmutgranda.com/?p=408</guid>
		<description><![CDATA[I am pleased to say that it took me only about 30 minutes to transfer a basic site writte on Kohana to the ZendFramework, both frameworks make it easy to switch between each other. For one thing you can use the ZendFramework Library in Kohana (although I haven't done it myself people declare is rather [...]]]></description>
			<content:encoded><![CDATA[<p>I am pleased to say that it took me only about 30 minutes to transfer a basic site writte on Kohana to the ZendFramework, both frameworks make it easy to switch between each other. For one thing you can use the ZendFramework Library in Kohana (although I haven't done it myself people declare is rather <a href="http://docs.kohanaphp.com/general/libraries" target="_blank">easy</a>)</p>
<p>The thing I like the most about the ZendFramework is their tool which comes as a part of their library download. I have mainly used the tool to create the <a href="http://framework.zend.com/manual/en/zend.controller.html" target="_blank">controllers</a> and <a href="http://framework.zend.com/manual/en/zend.controller.action.html" target="_blank">actions</a> and so far it has been a time saver and has helped me to see how the framework works in a few keystrokes.</p>
<p>After the first site was a success the next step will be to convert a site with a simple CMS built in Kohana to the ZendFramework, I have to admit that there were two things that held me back for a while into using the ZendFramework.</p>
<h3>Speed</h3>
<p>I read in different blogs how slow ZendFramework was compared to other frameworks such as Kohana, CI, CakePHP and even the new framework called Yii. The graphic below is one of my many findings:</p>
<p><img src="http://www.yiiframework.com/images/performance-20090131.png" /><br />
<i>(Source yiiframework.com)</i></p>
<p>But it is obvious that as the time goes by the framework is getting better and seems like it is getting faster as well.</p>
<h3>Initial setup</h3>
<p>When I tried the framework for the first time was about a year ago or so, it was brand new and people were still getting their heads around it as well as was very limited content in the subject so my first attempt to try it was a failure but months later I come back and wow, what a difference. Not only that but I stayed away from the full package and downloaded the minimal package and started just with the library and it was a breeze.</p>
<p>It is nice to have different packages to choose from and that they get better day by day. So far Zend has made it an easy transition and a nice new PHP development start.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.helmutgranda.com/2009/12/07/from-kohana-to-zendframework-in-about-30-minutes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RobotLegs and Flash IDE CS4 Injection</title>
		<link>http://www.helmutgranda.com/2009/12/02/robotlegs-and-flash-ide-cs4-injection/</link>
		<comments>http://www.helmutgranda.com/2009/12/02/robotlegs-and-flash-ide-cs4-injection/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 22:58:52 +0000</pubDate>
		<dc:creator>Helmut Granda</dc:creator>
				<category><![CDATA[RobotLegs]]></category>

		<guid isPermaLink="false">http://www.helmutgranda.com/?p=400</guid>
		<description><![CDATA[So you heard of the RobotLegs framework and downloade their demos so you could compile them on your own computer but the only thing that you have available is CS4, not a problem you can still use the framework and I'm going to update the "Hello Flash" demo to show you how. After this article [...]]]></description>
			<content:encoded><![CDATA[<p>So you heard of the <a href="http://www.robotlegs.org" target="_blank">RobotLegs</a> framework and downloade their demos so you could compile them on your own computer but the only thing that you have available is CS4, not a problem you can still use the framework and I'm going to update the <a href="http://github.com/robotlegs/robotlegs-demos-Bundle/tree/master/HelloFlash/" target="_blank">"Hello Flash" demo</a> to show you how. After this article you should be able to update any other demo or create your own with CS4.</p>
<p align="center"><a href="http://www.robotlegs.org target="_blank"><img src="http://www.robotlegs.org/images/rl-header-logo-310-253.png"/></a></p>
<p>Accordingly to the <a href="http://knowledge.robotlegs.org/faqs/framework-core/is-robotlegs-compatible-with-the-flash-ide-cs3cs4" target="_blank">Knowledge Base</a> we get a good kick start by letting us know that we need the following:</p>
<div class="syntax_hilite"><strong>ActionScript:</strong>
<div id="as-6">
<div>
<ol style="">
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;"><span style="color: #808080; font-style: italic;">//Initializing the injector with XML is done by adding this line to your context's constructor, before the super() call:</span></span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">injector = <span style="color: #000000; font-weight:bold;">new</span> SwiftSuspendersInjector<span style="color:#008800; font-weight:bold;">&#40;</span>xmlConfiguration<span style="color:#008800; font-weight:bold;">&#41;</span>;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;"><span style="color: #808080; font-style: italic;">//Where xmlConfiguration is your XML object. </span></span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp;</span></li>
</ol>
</div>
</div>
</div>
<p>So in our HelloFlashContext file we are going to add our "xmlConfiguration" property that will be passed to the SwiftSuspendersInjector.</p>
<p>So I am going to borrow the XML_CONFIG from the <a href="http://github.com/robotlegs/robotlegs-framework/blob/master/src/org/robotlegs/adapters/SwiftSuspendersInjector.as" target="_blank">SwiftSuspendersInjector</a> and  use it as a guide for my HelloFlashContext class.</p>
<div class="syntax_hilite"><strong>ActionScript:</strong>
<div id="as-7">
<div>
<ol style="">
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">protected <span style="color: #003366;">static</span> const XML_CONFIG:<span style="color: #003366;">XML</span> =</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;types&gt;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;type <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'org.robotlegs.mvcs::Actor'</span>&gt;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;field <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'eventDispatcher'</span>/&gt;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/type&gt;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;type <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'org.robotlegs.mvcs::Command'</span>&gt;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;field <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'contextView'</span>/&gt;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;field <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'mediatorMap'</span>/&gt;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;field <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'eventDispatcher'</span>/&gt;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;field <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'injector'</span>/&gt;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;field <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'mediatorMap'</span>/&gt;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/type&gt;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;type <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'org.robotlegs.mvcs::Mediator'</span>&gt;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;field <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'contextView'</span>/&gt;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;field <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'mediatorMap'</span>/&gt;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;field <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'eventDispatcher'</span>/&gt;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/type&gt;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/types&gt;;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;"><span style="color: #003366;">public</span> <span style="color: #000000; font-weight:bold;">function</span> HelloFlashContext<span style="color:#008800; font-weight:bold;">&#40;</span>contextView:DisplayObjectContainer<span style="color:#008800; font-weight:bold;">&#41;</span></span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;<span style="color:#008800; font-weight:bold;">&#123;</span></span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;injector = <span style="color: #000000; font-weight:bold;">new</span> SwiftSuspendersInjector<span style="color:#008800; font-weight:bold;">&#40;</span>XML_CONFIG<span style="color:#008800; font-weight:bold;">&#41;</span>;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #003366;">super</span><span style="color:#008800; font-weight:bold;">&#40;</span>contextView<span style="color:#008800; font-weight:bold;">&#41;</span>;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;<span style="color:#008800; font-weight:bold;">&#125;</span> </span></li>
</ol>
</div>
</div>
</div>
<p>Now that we know how our XML has to be formed we can start adding our custom properties that will substitute the [Inject] annotations.</p>
<p>There are only two locations where the inject annotation is being used.</p>
<div class="syntax_hilite"><strong>ActionScript:</strong>
<div id="as-8">
<div>
<ol style="">
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">org.<span style="color: #006600;">robotlegs</span>.<span style="color: #006600;">demos</span>.<span style="color: #006600;">hellowflash</span>.<span style="color: #006600;">view</span>.<span style="color: #006600;">BallMediator</span></span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">org.<span style="color: #006600;">robotlegs</span>.<span style="color: #006600;">demos</span>.<span style="color: #006600;">hellowflash</span>.<span style="color: #006600;">view</span>.<span style="color: #006600;">ReadoutMediator</span> </span></li>
</ol>
</div>
</div>
</div>
<p>and there are only 2 properties used in both instances</p>
<div class="syntax_hilite"><strong>ActionScript:</strong>
<div id="as-9">
<div>
<ol style="">
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">view</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">statsModel </span></li>
</ol>
</div>
</div>
</div>
<p>So with that information we very easily update our XML_CONFIG constant as follows:</p>
<div class="syntax_hilite"><strong>ActionScript:</strong>
<div id="as-10">
<div>
<ol style="">
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&lt;type <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'org.robotlegs.demos.helloflash.view::BallMediator'</span>&gt;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;field <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'view'</span>/&gt;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;field <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'statsModel'</span>/&gt;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/type&gt;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;type <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'org.robotlegs.demos.helloflash.view::ReadoutMediator'</span>&gt;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;field <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'view'</span>/&gt;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;field <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'statsModel'</span>/&gt;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/type&gt; </span></li>
</ol>
</div>
</div>
</div>
<p>And here you have the complete HellowFlashContext class updated:</p>
<div class="syntax_hilite"><strong>ActionScript:</strong>
<div id="as-11">
<div>
<ol style="">
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">package org.<span style="color: #006600;">robotlegs</span>.<span style="color: #006600;">demos</span>.<span style="color: #006600;">helloflash</span></span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;"><span style="color:#008800; font-weight:bold;">&#123;</span></span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;<span style="color: #003366;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">DisplayObjectContainer</span>;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;<span style="color: #003366;">import</span> org.<span style="color: #006600;">robotlegs</span>.<span style="color: #006600;">base</span>.<span style="color: #006600;">ContextEvent</span>;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;<span style="color: #003366;">import</span> org.<span style="color: #006600;">robotlegs</span>.<span style="color: #006600;">demos</span>.<span style="color: #006600;">helloflash</span>.<span style="color: #006600;">controller</span>.<span style="color: #006600;">CreateBallCommand</span>;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;<span style="color: #003366;">import</span> org.<span style="color: #006600;">robotlegs</span>.<span style="color: #006600;">demos</span>.<span style="color: #006600;">helloflash</span>.<span style="color: #006600;">controller</span>.<span style="color: #006600;">HelloFlashEvent</span>;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;<span style="color: #003366;">import</span> org.<span style="color: #006600;">robotlegs</span>.<span style="color: #006600;">demos</span>.<span style="color: #006600;">helloflash</span>.<span style="color: #006600;">model</span>.<span style="color: #006600;">StatsModel</span>;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;<span style="color: #003366;">import</span> org.<span style="color: #006600;">robotlegs</span>.<span style="color: #006600;">demos</span>.<span style="color: #006600;">helloflash</span>.<span style="color: #006600;">view</span>.<span style="color: #006600;">Ball</span>;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;<span style="color: #003366;">import</span> org.<span style="color: #006600;">robotlegs</span>.<span style="color: #006600;">demos</span>.<span style="color: #006600;">helloflash</span>.<span style="color: #006600;">view</span>.<span style="color: #006600;">BallMediator</span>;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;<span style="color: #003366;">import</span> org.<span style="color: #006600;">robotlegs</span>.<span style="color: #006600;">demos</span>.<span style="color: #006600;">helloflash</span>.<span style="color: #006600;">view</span>.<span style="color: #006600;">Readout</span>;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;<span style="color: #003366;">import</span> org.<span style="color: #006600;">robotlegs</span>.<span style="color: #006600;">demos</span>.<span style="color: #006600;">helloflash</span>.<span style="color: #006600;">view</span>.<span style="color: #006600;">ReadoutMediator</span>;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;<span style="color: #003366;">import</span> org.<span style="color: #006600;">robotlegs</span>.<span style="color: #006600;">mvcs</span>.<span style="color: #006600;">Context</span>;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;<span style="color: #003366;">import</span> org.<span style="color: #006600;">robotlegs</span>.<span style="color: #006600;">adapters</span>.<span style="color: #006600;">SwiftSuspendersInjector</span>;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;<span style="color: #003366;">public</span> <span style="color: #000000; font-weight:bold;">class</span> HelloFlashContext <span style="color: #003366;">extends</span> Context</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;<span style="color:#008800; font-weight:bold;">&#123;</span></span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;protected <span style="color: #003366;">static</span> const XML_CONFIG:<span style="color: #003366;">XML</span> =</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;types&gt;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;type <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'org.robotlegs.demos.helloflash.view::BallMediator'</span>&gt;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;field <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'view'</span>/&gt;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;field <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'statsModel'</span>/&gt;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/type&gt;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;type <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'org.robotlegs.demos.helloflash.view::ReadoutMediator'</span>&gt;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;field <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'view'</span>/&gt;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;field <span style="color: #003366;">name</span>=<span style="color: #ff0000;">'statsModel'</span>/&gt;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/type&gt;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/types&gt;;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #003366;">public</span> <span style="color: #000000; font-weight:bold;">function</span> HelloFlashContext<span style="color:#008800; font-weight:bold;">&#40;</span>contextView:DisplayObjectContainer<span style="color:#008800; font-weight:bold;">&#41;</span></span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;<span style="color:#008800; font-weight:bold;">&#123;</span></span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;injector = <span style="color: #000000; font-weight:bold;">new</span> SwiftSuspendersInjector<span style="color:#008800; font-weight:bold;">&#40;</span>XML_CONFIG<span style="color:#008800; font-weight:bold;">&#41;</span>;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #003366;">super</span><span style="color:#008800; font-weight:bold;">&#40;</span>contextView<span style="color:#008800; font-weight:bold;">&#41;</span>;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;<span style="color:#008800; font-weight:bold;">&#125;</span></span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;override <span style="color: #003366;">public</span> <span style="color: #000000; font-weight:bold;">function</span> startup<span style="color:#008800; font-weight:bold;">&#40;</span><span style="color:#008800; font-weight:bold;">&#41;</span>:<span style="color: #003366;">void</span></span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;<span style="color:#008800; font-weight:bold;">&#123;</span></span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #808080; font-style: italic;">// Map some Commands to Events</span></span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;commandMap.<span style="color: #006600;">mapEvent</span><span style="color:#008800; font-weight:bold;">&#40;</span>ContextEvent.<span style="color: #006600;">STARTUP_COMPLETE</span>, CreateBallCommand, ContextEvent, <span style="color: #000000; font-weight:bold;">true</span><span style="color:#008800; font-weight:bold;">&#41;</span>;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;commandMap.<span style="color: #006600;">mapEvent</span><span style="color:#008800; font-weight:bold;">&#40;</span>HelloFlashEvent.<span style="color: #006600;">BALL_CLICKED</span>, CreateBallCommand, HelloFlashEvent <span style="color:#008800; font-weight:bold;">&#41;</span>;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #808080; font-style: italic;">// Create a rule for Dependency Injection</span></span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;injector.<span style="color: #006600;">mapSingleton</span><span style="color:#008800; font-weight:bold;">&#40;</span>StatsModel<span style="color:#008800; font-weight:bold;">&#41;</span>;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #808080; font-style: italic;">// Here we bind Mediator Classes to View Classes:</span></span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #808080; font-style: italic;">// Mediators will be created automatically when</span></span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #808080; font-style: italic;">// view instances arrive on stage (anywhere inside the context view)</span></span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;mediatorMap.<span style="color: #006600;">mapView</span><span style="color:#008800; font-weight:bold;">&#40;</span>Ball, BallMediator<span style="color:#008800; font-weight:bold;">&#41;</span>;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;mediatorMap.<span style="color: #006600;">mapView</span><span style="color:#008800; font-weight:bold;">&#40;</span>Readout, ReadoutMediator<span style="color:#008800; font-weight:bold;">&#41;</span>;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #808080; font-style: italic;">// Manually add something to stage</span></span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;contextView.<span style="color: #006600;">addChild</span><span style="color:#008800; font-weight:bold;">&#40;</span><span style="color: #000000; font-weight:bold;">new</span> Readout<span style="color:#008800; font-weight:bold;">&#40;</span><span style="color:#008800; font-weight:bold;">&#41;</span><span style="color:#008800; font-weight:bold;">&#41;</span>;</span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #808080; font-style: italic;">// And we're done</span></span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #003366;">super</span>.<span style="color: #006600;">startup</span><span style="color:#008800; font-weight:bold;">&#40;</span><span style="color:#008800; font-weight:bold;">&#41;</span>;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;&nbsp; &nbsp;<span style="color:#008800; font-weight:bold;">&#125;</span></span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;</span></li>
<li><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp;<span style="color:#008800; font-weight:bold;">&#125;</span></span></li>
<li style="font-weight: bold;color:#770000;"><span style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;"><span style="color:#008800; font-weight:bold;">&#125;</span> </span></li>
</ol>
</div>
</div>
</div>
<p>This way you should be able to update any demo and compile with the Flash IDE.</p>
<p><i>Updated: Thanks to <a href="http://twitter.com/josyule" target="_blank">Jos Yule</a> for pointing out that the XML will be concatenated on the existing XML so no need to recreate it all</i></p>
]]></content:encoded>
			<wfw:commentRss>http://www.helmutgranda.com/2009/12/02/robotlegs-and-flash-ide-cs4-injection/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Optimizing SWF files with Flex Optimizer</title>
		<link>http://www.helmutgranda.com/2009/12/01/optimizing-swf-files-with-flex-optimizer/</link>
		<comments>http://www.helmutgranda.com/2009/12/01/optimizing-swf-files-with-flex-optimizer/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 19:03:28 +0000</pubDate>
		<dc:creator>Helmut Granda</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Articles]]></category>

		<guid isPermaLink="false">http://www.helmutgranda.com/?p=398</guid>
		<description><![CDATA[I found a reference to optimizing SWC files with Flex Optimizer and I figured I would run some tests through SWF files and see what effects it had in it.
To my surprise the Optimizer tool did optimize the SWF files but just by a few bytes:
Test 1:
..._concept1_v1_alt.swf (56569 bytes)
..._concept1_v1_alt_optimized.swf (56456 bytes)
Test 2:
...600_Flash_v1.swf (38164 bytes)
...600_Flash_v1_optimized.swf (38127 [...]]]></description>
			<content:encoded><![CDATA[<p>I found a reference to optimizing SWC files with Flex Optimizer and I figured I would run some tests through SWF files and see what effects it had in it.</p>
<p>To my surprise the Optimizer tool did optimize the SWF files but just by a few bytes:</p>
<p>Test 1:<br />
..._concept1_v1_alt.swf (56569 bytes)<br />
..._concept1_v1_alt_optimized.swf (56456 bytes)</p>
<p>Test 2:<br />
...600_Flash_v1.swf (38164 bytes)<br />
...600_Flash_v1_optimized.swf (38127 bytes)</p>
<p>I also ran a test against a custom SWF file inside a SWC file and this is the result:</p>
<p>...DropDown/library.swf (14810 bytes)<br />
...DropDown/library_optimized.swf (11723 bytes)</p>
<p>So the SWC files are bloated with extra information no needed and can be compressed quite a bit but SWF file no love. And it does make sense since the SWF files that I was testing contain a lot of graphics but I still gave it a go.</p>
<p><a href="http://livedocs.adobe.com/flex/3/html/help.html?content=rsl_07.html" target="_blank">Here you can ind more information about Optimizing RSL SWF Files.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.helmutgranda.com/2009/12/01/optimizing-swf-files-with-flex-optimizer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
