<?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; Open Source</title>
	<atom:link href="http://www.websector.de/blog/category/opensource/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.websector.de/blog</link>
	<description>// Flex - AIR - Flash - JavaScript</description>
	<lastBuildDate>Wed, 18 Jan 2012 12:17:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Swiz: Cafe Townsend example (incl. FlexUnit tests)</title>
		<link>http://www.websector.de/blog/2010/04/25/swiz-cafe-townsend-example-incl-flexunit-tests/</link>
		<comments>http://www.websector.de/blog/2010/04/25/swiz-cafe-townsend-example-incl-flexunit-tests/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 10:56:14 +0000</pubDate>
		<dc:creator>sectore</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.websector.de/blog/?p=591</guid>
		<description><![CDATA[UPDATE [10/31/10]: Example and its full source has been updated using latest commit of Swiz 1.0 RC2. Cafe Townsend is a well known application to demonstrate any MVC framework for using Flex or ActionScript. There are already ports of Cairngorm, Mate, PureMVC, Spring ActionScript, RobotLegs and now Swiz. In cooperation with &#8220;my partner in crime&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p style="background-color: #f6f6f6"><strong>UPDATE [10/31/10]: </strong>Example and its <a href="http://github.com/swiz/swiz-examples/tree/master/CafeTownsend-Flex4/">full source</a> has been updated using latest <a href="http://github.com/swiz/swiz-framework/commit/1b7f62017d250834d6671a97aed42ac853ad59ef/">commit of Swiz 1.0 RC2</a>.</p>
<p>Cafe Townsend is a well known application to demonstrate any MVC framework for using Flex or ActionScript. There are already ports of <a href="http://cairngormdocs.org/blog/?p=19">Cairngorm</a>, <a href="http://www.websector.de/blog/2010/03/12/mate-cafe-townsend-example-updated-for-using-flex-4/">Mate</a>, <a href="http://trac.puremvc.org/Demo_AS3_Flex_CafeTownsend">PureMVC</a>, <a href="http://www.herrodius.com/blog/307">Spring ActionScript</a>, <a href="http://github.com/darscan/robotlegs-demos-Bundle/tree/master/CafeTownsend/">RobotLegs</a> and now <a href="http://github.com/swiz/swiz-examples/tree/master/CafeTownsend-Flex4/">Swiz</a>.</p>
<p>In cooperation with &#8220;my partner in crime&#8221; <a href="http://soenkerohde.com/">Sönke Rohde</a> we have built a Swiz port including unit tests. Check out the following example and its source.</p>
<p><span id="more-591"></span></p>
<h2>Live Example</h2>
<p>(To view source code just a right mouse click on it)<br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_CafeTownsend_1712467837"
			class="flashmovie"
			width="500"
			height="530">
	<param name="movie" value="http://www.websector.de/blog/wp-content/uploads/2010/04/25/CafeTownsend.swf" />
	<param name="menu" value="true" />
	<param name="bgcolor" value="#FFFFFF" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.websector.de/blog/wp-content/uploads/2010/04/25/CafeTownsend.swf"
			name="fm_CafeTownsend_1712467837"
			width="500"
			height="530">
		<param name="menu" value="true" />
		<param name="bgcolor" value="#FFFFFF" />
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<h2>Source code</h2>
<p>You will find the <a href="http://github.com/swiz/swiz-examples/tree/master/CafeTownsend-Flex4/">full source</a> of Swiz&#8217; Cafe Townsend example <a href="http://github.com/swiz/swiz-examples/tree/master/CafeTownsend-Flex4/">at GitHub</a>.</p>
<h2>Thanks!</h2>
<p>Thanks again to Sönke for his great cooperation including all helpful tips! Also big thanks to Swiz team for development such a simple to use framework &#8211; keep on rocking <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>-Jens</p>
]]></content:encoded>
			<wfw:commentRss>http://www.websector.de/blog/2010/04/25/swiz-cafe-townsend-example-incl-flexunit-tests/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Mate: Cafe Townsend example updated for using Flex 4</title>
		<link>http://www.websector.de/blog/2010/03/12/mate-cafe-townsend-example-updated-for-using-flex-4/</link>
		<comments>http://www.websector.de/blog/2010/03/12/mate-cafe-townsend-example-updated-for-using-flex-4/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 19:51:53 +0000</pubDate>
		<dc:creator>sectore</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.websector.de/blog/?p=552</guid>
		<description><![CDATA[For an upcoming Flex 4 training I do need a good example for using Mate framework. At the moment you will find a lot of examples on Mate&#8217;s official website or at the project called &#8220;mate-examples&#8221; at Google Code. But it seems that there is not any Flex 4 example available. Anyway, I just ported [...]]]></description>
			<content:encoded><![CDATA[<p>For an upcoming Flex 4 training I do need a good example for using <a href="http://mate.asfusion.com">Mate framework</a>. At the moment you will find <a href="http://mate.asfusion.com/page/examples">a lot of examples on Mate&#8217;s official website</a> or at the project called &#8220;<a href="http://code.google.com/p/mate-examples/">mate-examples</a>&#8221; at  Google Code. But it seems that there is not any Flex 4 example available. </p>
<p>Anyway, I just ported the <a href="http://mate.asfusion.com/page/examples/cafe-townsend">current Cafe Townsend example (Flex 3)</a> created by <a href="http://www.asfusion.com">Laura Arguello</a> to Flex 4. </p>
<p><span id="more-552"></span></p>
<p>It was not a big deal, because Mate supports already Flex 4. Only few changes was necessary for using new Spark components.</p>
<p>Also I did some little modifications in <code><a href="http://code.google.com/p/mate-examples/source/browse/trunk/examples/cafeTownsendFlex4/src/com/cafetownsend/maps/MainEventMap.mxml">MainEventMap.mxml</a></code> to start all Inject properties for any views as soon as possible listening to <code>FlexEvent.PREINITIALIZE</code>. Furthermore all presentation models now are not created before its view will be added. But that is what we called &#8220;cosmetic&#8221; <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  , because Laura has already done an awesome job building the Flex 3 example of Cafe Townsend!</p>
<h2>Live example</h2>
<p><strong>[Update 03/15/2010]</strong> For a better use case of Flex 4 I have refactored the original code of the app. Now it based on a new layout and uses some effects. Last but not least the code implement a LocalEventMap to encapsulate the handling of employes, which is important if you want to use a modular app with Flex-Modules<strong>[/Update]</strong></p>
<p>(To view source code just a right mouse click on the app) </p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_CafeTownsend_1756250486"
			class="flashmovie"
			width="500"
			height="530">
	<param name="movie" value="http://www.websector.de/blog/wp-content/uploads/2010/03/12/CafeTownsend.swf" />
	<param name="menu" value="true" />
	<param name="bgcolor" value="#FFFFFF" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.websector.de/blog/wp-content/uploads/2010/03/12/CafeTownsend.swf"
			name="fm_CafeTownsend_1756250486"
			width="500"
			height="530">
		<param name="menu" value="true" />
		<param name="bgcolor" value="#FFFFFF" />
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<h2>Source code available</h2>
<p>You will find the full source of Mate&#8217;s Cafe Townsend Flex 4 example <a href="http://code.google.com/p/mate-examples/source/browse/trunk/examples/cafeTownsendFlex4/src/">at the project called &#8216;mate-examples&#8217;</a> on Google Code.</p>
<p>Have fun!</p>
<p>-Jens</p>
]]></content:encoded>
			<wfw:commentRss>http://www.websector.de/blog/2010/03/12/mate-cafe-townsend-example-updated-for-using-flex-4/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Custom ApplicationUpdaterUI for using AIR Update Framework in Flex 4</title>
		<link>http://www.websector.de/blog/2009/09/09/custom-applicationupdaterui-for-using-air-updater-framework-in-flex-4/</link>
		<comments>http://www.websector.de/blog/2009/09/09/custom-applicationupdaterui-for-using-air-updater-framework-in-flex-4/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 17:25:54 +0000</pubDate>
		<dc:creator>sectore</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.websector.de/blog/?p=403</guid>
		<description><![CDATA[Flex 4 is Rock &#8216;n&#8217; Roll! However, Flex 4 is still beta and it can&#8217;t be perfect right now. Today one of the most missing feature for me is using the ApplicationUpdaterUI of the Adobe AIR Update Framework in Flex 4. This bug is already documented. (BTW: Please vote here to fix this issue! ) [...]]]></description>
			<content:encoded><![CDATA[<p>Flex 4 is Rock &#8216;n&#8217; Roll! However, Flex 4 is still beta and it can&#8217;t be perfect right now. Today one of the <a href="http://twitter.com/sectore/status/3513712009">most missing feature for me</a> is using the ApplicationUpdaterUI of the <a href="http://labs.adobe.com/wiki/index.php/Adobe_AIR_Update_Framework">Adobe AIR Update Framework</a> in Flex 4. <a href="http://bugs.adobe.com/jira/browse/SDK-22886?rc=1">This bug</a> is already documented. (BTW: <a href="http://bugs.adobe.com/jira/browse/SDK-22886?rc=1">Please vote here</a> to fix this issue! )</p>
<p>Anyway, I can&#8217;t wait for the final release of Flex 4, so I decided to build a <a href="http://github.com/sectore/applicationupdaterui/">custom ApplicationUpdaterUI component</a> based on the new <a href="http://opensource.adobe.com/wiki/display/flexsdk/Gumbo+Skinning">Spark skinning architecture</a>. The custom  ApplicationUpdaterUI is built on the top of the current version of Adobes AIR Update Framework and most of the current features are available (e.g. auto check, localization etc.) The component is full skinnable using it as an external window (as before) or as an embedded view component in an application (without the need of a popup window). </p>
<p><span id="more-403"></span></p>
<h2>Usage</h2>
<phpcode>
<div class="codeHeadlineBox">
<p>Usage of ApplicationUpdaterUI ( <a href="http://www.websector.de/blog/wp-content/uploads/2009/09/09/snippet0.txt">Download code</a> )</p>
</div>
<div class="actionscript" style="font-family: monospace;">
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">//</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// [1] Using ApplicationUpdaterUI as a popup window using ActionScript</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">var</span> updater: ApplicationUpdaterUI = <span class="kw2">new</span> ApplicationUpdaterUI<span class="br0">&#40;</span>&nbsp; &nbsp;<span class="kw2">new</span> File <span class="br0">&#40;</span> <span class="st0">&#8216;pathToYourUpdaterXML&#8217;</span> <span class="br0">&#41;</span>, <span class="kw2">true</span>, <span class="kw2">true</span> <span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// Optional: setting skin</span></div>
</li>
<li class="li1">
<div class="de1">updater.<span class="kw3">setStyle</span><span class="br0">&#40;</span><span class="st0">&#8216;skinClass&#8217;</span>, de.<span class="me1">websector</span>.<span class="me1">utils</span>.<span class="me1">updater</span>.<span class="me1">ui</span>.<span class="me1">skins</span>.<span class="me1">silver</span>.<span class="me1">AppUpdaterUISilverSkin</span><span class="br0">&#41;</span>; &nbsp; </div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// Optional:&nbsp; change the height and width of the window</span></div>
</li>
<li class="li1">
<div class="de1">updater.<span class="me1">windowHeight</span> = <span class="nu0">300</span>;&nbsp;&nbsp;&nbsp;&nbsp;</div>
</li>
<li class="li1">
<div class="de1">updater.<span class="me1">windowWidth</span> = <span class="nu0">500</span>;&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// check for updates</span></div>
</li>
<li class="li1">
<div class="de1">updater.<span class="me1">checkNow</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">//</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// [2] Using ApplicationUpdaterUI as an embedded view within your application</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// Important: Avoid using popup window: useWindow=false (default is true)</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// Optional: setting skin class via &quot;skinClass&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// Optional: If the view should be visible only if an update available set invisibleCheck=&quot;true&quot; (default is false)</span></div>
</li>
<li class="li1">
<div class="de1">&lt;ws:ApplicationUpdaterUI</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; xmlns:ws=<span class="st0">&quot;http://websector.de&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; id=<span class="st0">&quot;updater&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw3">width</span>=<span class="st0">&quot;100%&quot;</span> <span class="kw3">height</span>=<span class="st0">&quot;50&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; configurationFile=<span class="st0">&quot;{ new File ( Constants.UPDATE_FILE ) }&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; skinClass=<span class="st0">&quot;de.websector.utils.updater.ui.skins.firefox.AppUpdaterUIFirefoxSkin&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; invisibleCheck=<span class="st0">&quot;true&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; useWindow=<span class="st0">&quot;false&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; /&gt;</div>
</li>
</ol>
</div>
</phpcode>
<h2>Skin examples</h2>
<p>It&#8217;s pretty easy to create your own skin and add it to the component! Check out the 3 different skins and feel free to use these as an example for your custom skins. </p>
<ol>
<li><em>AppUpdaterUIStandardSkin:</em> Cloned interface of the Flex 3 based ApplicationUpdaterUI</li>
<li><em>AppUpdaterUISilverSkin:</em> Inspired from Adobes shiny XD components</li>
<li><em>AppUpdaterUIFirefoxSkin:</em> That&#8217;s my favorite <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . Do you know the status bar on the top of a HTML page in Firefox 3.0 if a popup is trying to open? This skin a clone of such a bar to inform the user, if an update available. No need for an extra popup window.</li>
</ol>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_FlexUpdaterUIExample_749944277"
			class="flashmovie"
			width="500"
			height="500">
	<param name="movie" value="http://www.websector.de/blog/wp-content/uploads/2009/09/09/FlexUpdaterUIExample.swf" />
	<param name="menu" value="false" />
	<param name="bgcolor" value="#FFFFFF" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.websector.de/blog/wp-content/uploads/2009/09/09/FlexUpdaterUIExample.swf"
			name="fm_FlexUpdaterUIExample_749944277"
			width="500"
			height="500">
		<param name="menu" value="false" />
		<param name="bgcolor" value="#FFFFFF" />
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<h2>Download full source</h2>
<p>Full source is available at GitHub (package: <em>de.websector.utils.updater.ui.*</em>) :<br />
<a href="http://github.com/sectore/applicationupdaterui/">http://github.com/sectore/applicationupdaterui/</a></p>
<p>All source of ApplicationUpdaterUI  is open source licensed under <a href="http://www.mozilla.org/MPL/MPL-1.1.html">Mozilla Public License 1.1.</a></p>
<h2>Personal TODOs</h2>
<ul>
<li>Documenting / commenting code base</li>
<li>It&#8217;s not a &#8220;most wanted feature&#8221; right now, but handling of an update using files (events: StatusFileUpdateEvent.FILE_UPDATE_STATUS and StatusFileUpdateErrorEvent.FILE_UPDATE_ERROR) would be nice. If I have the time, I&#8217;m going to implement it. </li>
</ul>
<p>Happy updating <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  !</p>
<p>-Jens</p>
]]></content:encoded>
			<wfw:commentRss>http://www.websector.de/blog/2009/09/09/custom-applicationupdaterui-for-using-air-updater-framework-in-flex-4/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Testing states of skin classes in Flex 4 using WSSkinStatesTester</title>
		<link>http://www.websector.de/blog/2009/09/06/testing-states-of-skin-classes-in-flex-4-using-wsskinstatestester/</link>
		<comments>http://www.websector.de/blog/2009/09/06/testing-states-of-skin-classes-in-flex-4-using-wsskinstatestester/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 09:59:38 +0000</pubDate>
		<dc:creator>sectore</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.websector.de/blog/?p=385</guid>
		<description><![CDATA[WSSkinStatesTester is a handy tool to test visually all states of any skin classes in Flex 4 (Gumbo). Imagine you as a Flex developer or a designer have been created a lot of skins for your application, e.g. using Flash Catalyst. Now you want to check the behavior of these skins changing its states. Therefore [...]]]></description>
			<content:encoded><![CDATA[<p>WSSkinStatesTester is a handy tool to test visually all states of any skin classes in Flex 4 (Gumbo).</p>
<p><span id="more-385"></span></p>
<p>Imagine you as a Flex developer or a designer have been created a lot of skins for your application, e.g. using Flash Catalyst. Now you want to check the behavior of these skins changing its states. Therefore you will run your application to change different states of components or you open Flash Catalyst to check all the states of a skin. Or you could use Flash Builders design view for this issue, but unfortunately it is unable to show transitions switching between states.</p>
<p>Anyway, how about switching between skin classes and all its states (incl. transitions) using only one (test-) view? </p>
<h2>Live example</h2>
<p><em>(Right mouse click to view source of example)</em></p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_GumboTestSkinExample_1631238142"
			class="flashmovie"
			width="500"
			height="400">
	<param name="movie" value="http://www.websector.de/blog/wp-content/uploads/2009/09/06/GumboTestSkinExample.swf" />
	<param name="menu" value="false" />
	<param name="bgcolor" value="#FFFFFF" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.websector.de/blog/wp-content/uploads/2009/09/06/GumboTestSkinExample.swf"
			name="fm_GumboTestSkinExample_1631238142"
			width="500"
			height="400">
		<param name="menu" value="false" />
		<param name="bgcolor" value="#FFFFFF" />
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>&nbsp;</p>
<h2>Usage</h2>
<p>Two steps only: </p>
<ol>
<li>Just create an instance of WSSkinStatesTester </li>
<li>And add all skins which have to be checked</li>
</ol>
<phpcode>
<div class="codeHeadlineBox">
<p>Usage code example ( <a href="http://www.websector.de/blog/wp-content/uploads/2009/09/06/snippet0.txt">Download code</a> )</p>
</div>
<div class="actionscript" style="font-family: monospace;">
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">//</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// Step 1</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// Create an instance of WSSkinStatesTester using MXML</span></div>
</li>
<li class="li1">
<div class="de1">&lt;ws:WSSkinStatesTester</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; xmlns:ws=<span class="st0">&quot;http://websector.de&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; id=<span class="st0">&quot;skinTester&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw3">width</span>=<span class="st0">&quot;100%&quot;</span> <span class="kw3">height</span>=<span class="st0">&quot;100%&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; /&gt;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; </div>
</li>
<li class="li1">
<div class="de1"><span class="co1">//</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// Step 2</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// Create and add an instance of a skin to WSSkinStatesTester. </span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">var</span> skin: PanelSkin = <span class="kw2">new</span> PanelSkin<span class="br0">&#40;</span><span class="br0">&#41;</span>; </div>
</li>
<li class="li1">
<div class="de1">skin.<span class="kw3">width</span> = <span class="nu0">250</span>;</div>
</li>
<li class="li1">
<div class="de1">skin.<span class="kw3">height</span> =<span class="nu0">250</span>;</div>
</li>
<li class="li1">
<div class="de1">skinTester.<span class="me1">addSkin</span><span class="br0">&#40;</span> skin <span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">//</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// Step 2a&nbsp; [ ALTERNATIVE ]</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// Alternative you can add an array of skins to WSSkinStatesTester using ActionScript. </span></div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// BTW: This usage is recommend if you want test a bunch of skins and have to set properties before!</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">var</span> skin0: ButtonSkin = <span class="kw2">new</span> ButtonSkin<span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">skin0.<span class="kw3">width</span> = <span class="nu0">150</span>;</div>
</li>
<li class="li1">
<div class="de1">skin0.<span class="kw3">height</span> = <span class="nu0">50</span>;</div>
</li>
<li class="li1">
<div class="de1">skin0.<span class="me1">labelDisplay</span>.<span class="kw3">text</span> = <span class="st0">&quot;ButtonSkin (Spark)&quot;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">var</span> skin2: ComboBoxSkin = <span class="kw2">new</span> ComboBoxSkin<span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">var</span> skin3: MyButtonSkin = <span class="kw2">new</span> MyButtonSkin<span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">skinTester.<span class="me1">skins</span> = <span class="br0">&#91;</span> skin1, skin2, skin3&nbsp; <span class="br0">&#93;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">//</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// Step 2b [ ALTERNATIVE ]</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// Or add an array of skins to WSSkinStatesTester using MXML</span></div>
</li>
<li class="li1">
<div class="de1">&lt;ws:WSSkinStatesTester</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; xmlns:ws=<span class="st0">&quot;http://websector.de&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; id=<span class="st0">&quot;skinTester&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="kw3">width</span>=<span class="st0">&quot;100%&quot;</span> <span class="kw3">height</span>=<span class="st0">&quot;100%&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; skins=<span class="st0">&quot;{ [ &nbsp;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="st0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new CheckBoxSkin(), </span></div>
</li>
<li class="li1">
<div class="de1"><span class="st0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new VideoPlayerSkin(), </span></div>
</li>
<li class="li1">
<div class="de1"><span class="st0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new ButtonSkin() </span></div>
</li>
<li class="li1">
<div class="de1"><span class="st0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ] }&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; /&gt;</div>
</li>
</ol>
</div>
</phpcode>
<h2>Full source available</h2>
<p><strong>Note:</strong> To run all code <a href="http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4">Flex SDK 4.0.0.9948 or higher</a> is required.</p>
<ul>
<li>SWC of WSSkinStatesTester and example posted above: <a href="http://www.websector.de/blog/?download=GumboTestSkinExample">GumboTestSkinExample.zip</a> (Downloads: 805)</li>
<li>Full source code of WSSkinStatesTester is hosted at Github: <a href="http://github.com/sectore/WSSkinStatesTester/">http://github.com/sectore/WSSkinStatesTester/</a></li>
</ul>
<p>WSSkinStatesTester is open source licensed under <a href="http://www.mozilla.org/MPL/MPL-1.1.html">Mozilla Public License 1.1.</a></p>
<p>Happy skin states testing <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>-Jens</p>
]]></content:encoded>
			<wfw:commentRss>http://www.websector.de/blog/2009/09/06/testing-states-of-skin-classes-in-flex-4-using-wsskinstatestester/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Speed up JPEG encoding using Alchemy</title>
		<link>http://www.websector.de/blog/2009/06/21/speed-up-jpeg-encoding-using-alchemy/</link>
		<comments>http://www.websector.de/blog/2009/06/21/speed-up-jpeg-encoding-using-alchemy/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 15:16:42 +0000</pubDate>
		<dc:creator>sectore</dc:creator>
				<category><![CDATA[Alchemy]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.websector.de/blog/?p=287</guid>
		<description><![CDATA[Few weeks ago Thibault Imbert published an optimized version of Adobes JPGEncoder. And it rocks! However, if you may have very big-size bitmaps it takes too much time to encode images. For example: A bitmap with a size of 2000px x 1500px takes 22 sec. (BTW: Adobes version 30 sec.!!) Today I came across to [...]]]></description>
			<content:encoded><![CDATA[<p>Few weeks ago <a href="http://www.bytearray.org/">Thibault Imbert</a> published an <a href="http://www.bytearray.org/?p=775">optimized version</a> of <a href="http://code.google.com/p/as3corelib/">Adobes JPGEncoder</a>. And it rocks! However, if you may have very big-size bitmaps it takes too much time to encode images. For example: A bitmap with a size of 2000px x 1500px takes 22 sec. (BTW: Adobes version 30 sec.!!) </p>
<p>Today I came across to a <a href="http://manfred.dschini.org/2008/11/21/alchemy-jpeg-encoder/">post by Manfred Weber</a>, which points to a discussion at <a href="http://forums.adobe.com/community/labs/alchemy">Adobes Alchemy forum</a>. There you will find <a href="http://forums.adobe.com/message/987186">a great solution</a> published by <a href="http://metal.hurlant.com/blog/">metalbot</a> for encoding JPEGs using <a href="http://labs.adobe.com/technologies/alchemy/">Alchemy</a>. It&#8217;s based on a <a href="http://www.ijg.org/files/">C library</a> for JPEG image compression by <a href="http://www.ijg.org/">IJG</a> and it&#8217;s pretty fast (2,7 sec. for 2000 px x 1500px ) !!! Check out the example:</p>
<p><span id="more-287"></span></p>
<h2>Example</h2>
<p>Click the image to see the live example. Feel free to post a comment about your your results!</p>
<p><a href="http://www.websector.de/blog/wp-content/uploads/2009/06/21/AlchemyJPEGEncoder.html"><img src="http://www.websector.de/blog/wp-content/uploads/2009/06/21/screen_testAlchemyJPEGEncoder.jpg" alt="Screen shot" /></a></p>
<h2>Download Full Source</h2>
<p>I have changed  the <a href="http://hurlant.com/as3_encoder_jpeg.tgz ">original C code</a> a little bit for manipulating the quality of an encoded image as well. It&#8217;s just one line added to &#8220;as3_jpeg_wrapper.gg&#8221; (line 78) <code>jpeg_set_quality(&#038;cinfo, quality, TRUE /* limit to baseline-JPEG values */);</code> Therefore the &#8220;as3_jpeg_wrapper.swc&#8221; located within the *.zip is recompiled for using this feature in your Flex project via  <code>as3_jpeg_wrapper.write_jpeg_file(baSource, WIDTH, HEIGHT, 3, 2, quality);</code> </p>
<p>Full source of the Flex based example above: <a href="http://www.websector.de/blog/?download=AlchemyJPEGEncoderFlexExample">AlchemyJPEGEncoderFlexExample.zip</a> (Downloads: 4207)</p>
<p>BTW: You will find the original source of all C based classes published by metalbot <a href="http://forums.adobe.com/message/987186#987186">here</a>.  </p>
<h2>Tips</h2>
<p>I struggled around to set up Alchemy and to recompile the IJG library and the &#8220;as3_jpeg_wrapper.swc&#8221;. To avoid this, here are some tips:</p>
<ul>
<li><a href="http://www.zeropointnine.com/wiki/index.php?n=FlashPlatform.Alchemy">Instruction for set up Alchemy</a> by <a href="http://www.zeropointnine.com/blog/">Lee Felarca</a>   (zeropointnine). Best instruction I&#8217;ve found so far for set up Alchemy.</li>
<li>Recompiling the SWC of metalbot&#8217;s source following its &#8220;README.txt&#8221; and using its &#8220;Makefile&#8221; failed: To avoid this issue, after compiling the C library of jpegsrc you have to move the following files to $ALCHEMY_HOME/jpeg/ as well: &#8220;jconfig.h&#8221;, &#8220;jmorecfg.h&#8221; and &#8220;jpeglib.h&#8221;. Check out <a href="http://forums.adobe.com/message/1059134#1059134">the comment by notnick here</a></li>
</ul>
<p><strong>[UPDATE 06/22/09]</strong> There is another great test for encoding images using Alchemy by <a href="http://segfaultlabs.com/">Mateusz Malczak</a>, which includes an asynchrounous example as well: <a href="http://segfaultlabs.com/blog/post/asynchronous-jpeg-encoding">Alchemy &#8211; asynchronous jpeg encoding</a> Thanks to <a href="http://twitter.com/xoestudio">xoestudio</a> for pointing to this via twitter! <strong>[UPDATE] </strong></p>
<p>Have fun <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>-Jens</p>
]]></content:encoded>
			<wfw:commentRss>http://www.websector.de/blog/2009/06/21/speed-up-jpeg-encoding-using-alchemy/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>ThunderBolt AS3 version 2.2 out now!</title>
		<link>http://www.websector.de/blog/2009/03/08/thunderbolt-as3-version-22-out-now/</link>
		<comments>http://www.websector.de/blog/2009/03/08/thunderbolt-as3-version-22-out-now/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 16:33:31 +0000</pubDate>
		<dc:creator>sectore</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[ThunderBolt]]></category>

		<guid isPermaLink="false">http://www.websector.de/blog/?p=262</guid>
		<description><![CDATA[ThunderBolt AS3, which is a lightweight logger extension for Flex 3-4, AIR and Flash 9-10 applications, has been updated to version 2.2. Check out the new features: New features Logging of package names + class names + code line numbers (Flash Debug Player required). ThunderBoltTarget for using Flex Logging API improved. SWC updated for using [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.google.com/p/flash-thunderbolt/" class="img"><img src="http://www.websector.de/blog/wp-content/uploads/2009/03/08/ThunderBoltAS3_teaser.png" width="500" height="90" /></a></p>
<p><a href="http://code.google.com/p/flash-thunderbolt/">ThunderBolt AS3</a>, which is a lightweight logger extension for Flex 3-4, AIR and Flash 9-10 applications, has been updated to version 2.2. </p>
<p>Check out the <a href="http://www.websector.de/blog/2009/03/08/thunderbolt-as3-version-22-out-now">new features</a>:</p>
<p><span id="more-262"></span></p>
<h2>New features</h2>
<ol>
<li>Logging of package names + class names + code line numbers (Flash Debug Player required).
<p><img src="http://www.websector.de/blog/wp-content/uploads/2009/03/08/thunderbolt_codelinenumbers.png" width="494" height="296" /></p>
</li>
<li><a href="http://code.google.com/p/flash-thunderbolt/source/browse/trunk/as3/source/org/osflash/thunderbolt/ThunderBoltTarget.as">ThunderBoltTarget</a> for using <a href="http://livedocs.adobe.com/flex/3/html/logging_09.html">Flex Logging API</a> improved.</li>
<li><a href="http://code.google.com/p/flash-thunderbolt/source/browse/#svn/trunk/as3/libs">SWC</a> updated for using Flex 4 (<a href="http://opensource.adobe.com/wiki/display/flexsdk/Gumbo">Gumbo</a>)</li>
<li><a href="http://code.google.com/p/flash-thunderbolt/wiki/ThunderBoltAS3Console">ThunderBolt AS3 Console</a> uses a certificate of <a href="http://www.thawte.com/">Thawte</a> sponsored by <a href="http://www.adobe.com/">Adobe</a>.
<p><img src="http://www.websector.de/blog/wp-content/uploads/2009/03/08/thunderbolt_certificate.png" width="500" height="410" /></p>
</li>
<li><a href="http://code.google.com/p/flash-thunderbolt/wiki/ThunderBoltAS3Console">ThunderBolt AS3 Console</a> is updated using latest version of <a href="http://get.adobe.com/air/">Adobe AIR v.1.5.1</a></li>
<li><a href="http://code.google.com/p/flash-thunderbolt/issues/detail?id=10">Issue 10</a> fixed: &#8220;<a href="http://code.google.com/p/flash-thunderbolt/issues/detail?id=10">Command + Q not working in OS X</a>&#8220;</li>
<li>All <a href="http://code.google.com/p/flash-thunderbolt/downloads/list">examples</a> and <a href="http://code.google.com/p/flash-thunderbolt/w/list">documentation</a> has been updated as well.</li>
</ol>
<p>Happy Logging <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>-Jens</p>
]]></content:encoded>
			<wfw:commentRss>http://www.websector.de/blog/2009/03/08/thunderbolt-as3-version-22-out-now/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Simple RSS reader for iPhone using PureMVC Standard for Objective-C</title>
		<link>http://www.websector.de/blog/2009/02/08/simple-rss-reader-for-iphone-using-puremvc-standard-for-objective-c/</link>
		<comments>http://www.websector.de/blog/2009/02/08/simple-rss-reader-for-iphone-using-puremvc-standard-for-objective-c/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 11:24:29 +0000</pubDate>
		<dc:creator>sectore</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PureMVC]]></category>

		<guid isPermaLink="false">http://www.websector.de/blog/?p=210</guid>
		<description><![CDATA[Few weeks ago Cliff Hall announced the release of PureMVC Objective-C Port by Brian Knorr. Brian also provided a very helpful demo called &#8220;Employee Admin&#8220;. To dive into the Objective-C port of PureMVC as quick as possible I have built a another demo. It&#8217;s a pretty simple RSS reader for iPhone or iPod touch, which [...]]]></description>
			<content:encoded><![CDATA[<p>Few weeks ago Cliff Hall <a href="http://puremvc.org/content/view/121/1/ ">announced the release of PureMVC Objective-C Port</a> by <a href="http://starterstep.wordpress.com">Brian Knorr</a>. Brian also provided a very helpful demo called &#8220;<a href="http://trac.puremvc.org/Demo_ObjectiveC_UIKit_EmployeeAdmin">Employee Admin</a>&#8220;.</p>
<p>To dive into the Objective-C port of PureMVC as quick as possible I have built a another demo. It&#8217;s a pretty simple RSS reader for iPhone or iPod touch, which grabs a feed of a blog and shows the latest 10 entries in detail. </p>
<p><span id="more-210"></span></p>
<h2>Screen shots</h2>
<p><a href="http://github.com/sectore/puremvc-objectivec-simplerssreader/" class="img"><img src="http://www.websector.de/blog/wp-content/uploads/2009/02/08/sreenshot_puremvc_iphone.jpg" alt="Screen shots of an iPhone RSS reader using PureMVC" /></a></p>
<h2>View and download full source</h2>
<p>View or grab the source here:<br />
<a href="http://github.com/sectore/puremvc-objectivec-simplerssreader/">http://github.com/sectore/puremvc-objectivec-simplerssreader/</a> </p>
<p>It&#8217;s open source licensed under the <a href="http://www.mozilla.org/MPL/MPL-1.1.txt">Mozilla Public License 1.1.</a></p>
<h2>Conclusion</h2>
<p>Brian Knorr, the project owner of the Objective-C port of PureMVC, did an awesome job! But the question is: Do I need a MVC framework such as PureMVC for developing an iPhone app? You don&#8217;t! Because Objective-C based already on a MVC paradigma. </p>
<p>However, if you are new to Objective-C and you may have a strong ActionScript background using PureMVC, it might be a good choice to dive into iPhone development. And you will see, that the code architecture is like your home <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>-Jens</p>
]]></content:encoded>
			<wfw:commentRss>http://www.websector.de/blog/2009/02/08/simple-rss-reader-for-iphone-using-puremvc-standard-for-objective-c/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Free iPhone app for Flex User Group Hamburg (incl. source code)</title>
		<link>http://www.websector.de/blog/2009/01/27/free-iphone-app-for-flex-user-group-hamburg-incl-source-code/</link>
		<comments>http://www.websector.de/blog/2009/01/27/free-iphone-app-for-flex-user-group-hamburg-incl-source-code/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 17:40:50 +0000</pubDate>
		<dc:creator>sectore</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.websector.de/blog/?p=150</guid>
		<description><![CDATA[[UPDATE 02/11/09] flexughh app is available on iTunes store! All links has been updated. Get it for free It&#8217;s done! My first iPhone app is uploaded to Apple&#8217;s app store. It&#8217;s an app for the Flex UG in Hamburg / Germany, called &#8220;flexughh&#8221;. Because I&#8217;m very excited about all the enthusiastic flexughh-members I decided to [...]]]></description>
			<content:encoded><![CDATA[<p style="background-color: #F6F6F6"><strong>[UPDATE 02/11/09]</strong> flexughh app is available on iTunes store! All links has been updated. Get it for free <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>It&#8217;s done! My first iPhone app is uploaded to <a href="http://www.apple.com/iphone/appstore/">Apple&#8217;s app store</a>. It&#8217;s an app for the <a href="http://www.flexughh.de">Flex UG in Hamburg / Germany</a>, called &#8220;flexughh&#8221;. Because I&#8217;m very excited about all the enthusiastic <a href="http://www.xing.com/net/flexughh/">flexughh-members</a> I decided to offer this app for free including its full source code written in Objective-C as open source! </p>
<p>Today I will present the new flexughh app <a href="http://www.flexughh.de/2009/01/07/flexughh-meeting-27012009-alger-werft-einfuhrung-in-blazeds/">at our flexughh-Meeting</a>. If you don&#8217;t have the chance to attend it, here are some screen shots. </p>
<p><span id="more-150"></span></p>
<h2>Screen shots</h2>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_ws-slideshow_2101000548"
			class="flashmovie"
			width="510"
			height="850">
	<param name="movie" value="http://www.websector.de/blog/wp-includes/swf/ws-slideshow.swf" />
	<param name="flashvars" value="XMLPath=http://www.flexughh.de/wp-content/uploads/2009/01/27/screenshots.xml" />
	<param name="menu" value="false" />
	<param name="bgcolor" value="#000000" />
	<param name="allowscriptaccess" value="sameDomain" />
	<param name="allowfullscreen" value="true" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.websector.de/blog/wp-includes/swf/ws-slideshow.swf"
			name="fm_ws-slideshow_2101000548"
			width="510"
			height="850">
		<param name="flashvars" value="XMLPath=http://www.flexughh.de/wp-content/uploads/2009/01/27/screenshots.xml" />
		<param name="menu" value="false" />
		<param name="bgcolor" value="#000000" />
		<param name="allowscriptaccess" value="sameDomain" />
		<param name="allowfullscreen" value="true" />
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>&nbsp;</p>
<h2>Get flexughh app for free!</h2>
<p>The flexughh app is be available in German and in English!</p>
<p><a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=303635605&#038;mt=8" class="img"><img src="http://www.websector.de/blog/wp-content/uploads/2009/01/27/flexughh_iTunesStore_en.png" alt="flexughh on iTunes Store" width="500" height="280" /></a></p>
<h2>Source code</h2>
<p>The flexughh app is written in Objective-C. You can see and download the full source here (within the next days):<br />
<a href="http://github.com/sectore/flexughh-iphone/">http://github.com/sectore/flexughh-iphone/</a></p>
<p>Have fun!</p>
<p>-Jens </p>
]]></content:encoded>
			<wfw:commentRss>http://www.websector.de/blog/2009/01/27/free-iphone-app-for-flex-user-group-hamburg-incl-source-code/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Swiz example based on Adobe AIR and SQLite</title>
		<link>http://www.websector.de/blog/2009/01/07/swiz-example-based-on-adobe-air-and-sqlite/</link>
		<comments>http://www.websector.de/blog/2009/01/07/swiz-example-based-on-adobe-air-and-sqlite/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 12:58:53 +0000</pubDate>
		<dc:creator>sectore</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.websector.de/blog/?p=114</guid>
		<description><![CDATA[About two months ago Sönke Rohde, a good friend of me and a very active contributor of the Swiz framework, told me about his experiences using Swiz and he recommended highly Swiz as a framework which seems brutally simple to use. For all the people out there who are not familiar with Swiz: Swiz is [...]]]></description>
			<content:encoded><![CDATA[<p>About two months ago <a href="http://soenkerohde.com/">Sönke Rohde</a>, a good friend of me and a very active contributor of the <a href="http://code.google.com/p/swizframework/">Swiz framework</a>, told me about his experiences using Swiz and <a href="http://soenkerohde.com/2008/09/swiz-framework-brutally-simple/">he recommended highly</a> Swiz as a framework which seems brutally simple to use. For all the people out there who are not familiar with Swiz: Swiz is an <a href="http://en.wikipedia.org/wiki/Inversion_of_Control">IoC</a> framework created by <a href="http://cdscott.blogspot.com/">Chris Scott</a> to simplify the development of <a href="http://www.adobe.com/products/flex/">Flex</a> based RIAs.</p>
<p><span id="more-114"></span></p>
<p>After <a href="http://www.websector.de/blog/2009/01/02/wspluginswitcher-cocoa-based-tool-for-switching-flash-plug-in-on-os-x/">diving into Objective-C for the last two weeks</a> I have now the time to dive into Swiz. So I ported my <a href="http://www.websector.de/blog/2008/10/04/new-mate-extensions-for-using-air-and-sqlite-sqlservice-sqlserviceinvoker/">latest published example using Mate</a> into Swiz.</p>
<p>The following example is a tiny AIR based application for storing user names into a SQLite database. It includes Eric Feminellas awesome <a href="http://www.ericfeminella.com/blog/2008/09/29/air-sql-framework/">AIR SQL Framework</a> and a way to use the <a href="http://weblogs.macromedia.com/paulw/archives/2007/10/presentation_pa_3.html">Presentation Model pattern</a> within an AIR application as well.</p>
<h2>Screen shot</h2>
<p><a class="img" href="http://www.websector.de/blog/download-manager.php?id=21"><img src="http://www.websector.de/blog/wp-content/uploads/2009/01/07/screen_app.png" alt="Click to download source code" /></a></p>
<h2>View source code</h2>
<p>Check out the source code: <a href="http://www.websector.de/blog/wp-content/uploads/2009/01/07/index.html">View source code</a></p>
<h2>Download full source</h2>
<p>Full source of the example: <a href="http://www.websector.de/blog/?download=SwizAIRSQLiteExample.zip">SwizAIRSQLiteExample.zip</a> (Downloads: 1825)</p>
<h2>Acknowledge</h2>
<ul>
<li>Video &#8211; 360|Flex, San Jose 2008 &#8211; Chris Scott: <a href="http://www.onflex.org/ted/2008/09/360flex-sj-2008-introduction-to-swiz.php">Introduction to the Swiz Framework for Flex</a></li>
<li>Sönke Rohde: <a href="http://soenkerohde.com/2008/11/mock-business-delegates-with-swiz/">Mock Business Delegates with Swiz</a></li>
<li>Tony Hillerson: <a href="http://www.insideria.com/2008/12/frameworkquest-2008-part-4-ioc.html">FrameworkQuest 2008 Part 4: IoC With Swiz</a></li>
<li><a href="http://code.google.com/p/swizframework/w/list">Swiz wiki pages at Google Code</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.websector.de/blog/2009/01/07/swiz-example-based-on-adobe-air-and-sqlite/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>WSPluginSwitcher: Cocoa based tool for switching Flash plug-in on OS X</title>
		<link>http://www.websector.de/blog/2009/01/02/wspluginswitcher-cocoa-based-tool-for-switching-flash-plug-in-on-os-x/</link>
		<comments>http://www.websector.de/blog/2009/01/02/wspluginswitcher-cocoa-based-tool-for-switching-flash-plug-in-on-os-x/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 15:54:12 +0000</pubDate>
		<dc:creator>sectore</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://www.websector.de/blog/?p=104</guid>
		<description><![CDATA[It&#8217;s never to late to learn a new (programming) language So I&#8217;ve been starting to learn Cocoa, Apple&#8217;s Objective-C based programming environment for Mac OS X. My &#8220;Cocoa&#8221;-trip started with building a little application called &#8220;WSPluginSwitcher&#8220;, which is a Cocoa based tool for switching Flash plug-ins on OS X (Leopard). Check it out &#8211; it&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.google.com/p/wspluginswitcher/" class="img"><br />
<img src="http://www.websector.de/blog/wp-content/uploads/2009/01/02/logo450x76.png" width="450" height="76"  /></a></p>
<p>It&#8217;s never to late to learn a new (programming) language <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  So I&#8217;ve been starting to learn <a href="http://developer.apple.com/cocoa/ ">Cocoa</a>, Apple&#8217;s Objective-C based programming environment for Mac OS X. </p>
<p>My &#8220;Cocoa&#8221;-trip started with building a little application called &#8220;<a href="http://code.google.com/p/wspluginswitcher/">WSPluginSwitcher</a>&#8220;, which is a Cocoa based tool for switching Flash plug-ins on OS X (Leopard). </p>
<p><span id="more-104"></span></p>
<p>Check it out &#8211; it&#8217;s open source, including its source code: <a href="http://code.google.com/p/wspluginswitcher/">WSPluginSwitcher on Google Code</a></p>
<h2>Screen shots</h2>
<p><a href="http://code.google.com/p/wspluginswitcher/" class="img"><img src="http://www.websector.de/blog/wp-content/uploads/2009/01/02/WSPluginSwitcher_mainWindow.png" width="328" height="390"  /></a></p>
<p><a href="http://code.google.com/p/wspluginswitcher/" class="img"><img src="http://www.websector.de/blog/wp-content/uploads/2009/01/02/WSPluginSwitcher_prefsWindow.png" width="352" height="303"  /></a></p>
<p><a href="http://code.google.com/p/wspluginswitcher/" class="img"><img src="http://www.websector.de/blog/wp-content/uploads/2009/01/02/WSPluginSwitcher_desktopIcon.png" width="510" height="217"  /></a></p>
<h2>Download WSPluginSwitcher including full source</h2>
<p>You can download WSPluginSwitcher at its <a href="http://code.google.com/p/wspluginswitcher/">Google Code project</a>.</p>
<p>To get the full source checkout the latest code using <a href="http://code.google.com/p/wspluginswitcher/source/checkout">WSPluginSwitchers repository</a> at Google Code. </p>
<p>It&#8217;s open source!</p>
<p>BTW: I&#8217;m very new to Cocoa, so I&#8217;m very happy about any feedback <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h2>Helpful links for learning Cocoa as an ActionScript Developer</h2>
<p>About 10 days of programming a new language is not enough to make a real statement&#8230; However, what I&#8217;ve have learned so far is: <strong>To learn Cocoa as quick as possible you will need a good book!</strong> Apple delivers <a href="http://developer.apple.com/documentation/Cocoa/index.html">tons of Cocoa guides</a>, but it takes me (too) much time to find basic solutions. I know why I love Adobes Flex and AIR docs <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </p>
<p>So I highly recommend the book called <a href="http://www.amazon.com/Cocoa-Programming-Mac-OS-3rd/dp/0321503619/">&#8220;Cocoa Programming for Max OS X&#8221; by Aaron Hillegass</a>, which helps me a lot!</p>
<p>Further helpful links (not only for ActionScript Developers) are:</p>
<ul>
<li><a href="http://cocoadevcentral.com/">Cocoa Dev Central</a>: <a href="http://cocoadevcentral.com/">Learn Cocoa</a></li>
<li><a href="http://theocacao.com/">Theocacao</a>: <a href="http://theocacao.com/document.page/510">A Quick Objective-C 2.0 Tutorial</a></li>
<li><a href="http://andyj.be/blog/">Andy Jacobs</a>: &#8220;<a href="http://andyj.be/blog/?p=3">Cocoa touch for actionscript developers (basics)</a>&#8220;, &#8220;<a href="http://andyj.be/blog/?p=25">AS3 to Cocoa Touch: Array’s</a>&#8220;, &#8220;<a href="http://andyj.be/blog/?p=37">AS3 to Cocoa touch: XML</a>&#8220;, &#8220;<a href="http://andyj.be/blog/?p=52">AS3 to Cocoa touch: JSON (Part 1)</a>&#8221;
<li><a href="http://www.bit-101.com/blog/">Keith Peters:</a> Gravity Tutorials for iPhone <a href="http://www.bit-101.com/blog/?p=1784">Part 1</a>, <a href="http://www.bit-101.com/blog/?p=1793">Part 2</a>, <a href="http://www.bit-101.com/blog/?p=1798">Part 3</a>, <a href="http://www.bit-101.com/blog/?p=1812">Part 4</a>, <a href="http://www.bit-101.com/blog/?p=1824">Part 5</a></li>
</ul>
<p>P.S.: Happy Flash plug-in switching using WSPluginSwitcher! <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.websector.de/blog/2009/01/02/wspluginswitcher-cocoa-based-tool-for-switching-flash-plug-in-on-os-x/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

