<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Sönke Rohde</title>
	
	<link>http://soenkerohde.com</link>
	<description>Flash /Flex/AIR related blog</description>
	<pubDate>Thu, 20 Nov 2008 16:48:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/soenkerohde" type="application/rss+xml" /><item>
		<title>Adobe MAX 2008 SF Review</title>
		<link>http://feeds.feedburner.com/~r/soenkerohde/~3/459766898/</link>
		<comments>http://soenkerohde.com/2008/11/adobe-max-2008-sf-review/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 16:48:01 +0000</pubDate>
		<dc:creator>Sönke</dc:creator>
		
		<category><![CDATA[AIR]]></category>

		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://soenkerohde.com/?p=249</guid>
		<description><![CDATA[ay the MAX Conference in San Francisco brings up so much cool stuff and I tried to summarize a but to give an overview of what is all anounced and released.
Adobe AIR 1.5

Adobe DevNet article
New: Encrypted local database, Flash Player 10 and WebKit update


CoCoMo beta
&#8220;Codename &#8220;Cocomo&#8221; is a Platform as a Service that allows Flex [...]]]></description>
			<content:encoded><![CDATA[<p>ay the MAX Conference in San Francisco brings up so much cool stuff and I tried to summarize a but to give an overview of what is all anounced and released.</p>
<p><strong><a href="http://get.adobe.com/air/">Adobe AIR 1.5</a></strong></p>
<ul>
<li><a href="http://www.adobe.com/devnet/logged_in/rchristensen_lpolanco_air_1.5.html">Adobe DevNet article</a></li>
<li>New: Encrypted local database, Flash Player 10 and WebKit update<strong><br />
</strong></li>
</ul>
<p><strong><a href="http://labs.adobe.com/technologies/cocomo/">CoCoMo beta</a></strong></p>
<p><em>&#8220;Codename &#8220;Cocomo&#8221; is a Platform as a Service that allows Flex developers to easily add real-time social capabilities into their RIA (rich Internet applications). Comprised of both Flex-based client components and a hosted services infrastructure, Cocomo allows you to build real-time, multi-user applications with Flex in less time than ever before. And because Acrobat.com hosts the service, issues like deployment, maintenance, and scalability are taken care of for you.&#8221;</em></p>
<p><strong><a href="http://labs.adobe.com/technologies/flashplayer10/">Flash Player 10 Solars &amp; Linux 64-bit</a></strong></p>
<ul>
<li><a href="http://www.kaourantin.net/2008/11/64-bits.html">blog post by Tinic Uro</a></li>
<li><a href="http://blogs.adobe.com/penguin.swf/2008/11/now_supporting_16_exabytes.html">Penguin.swf blog post</a></li>
</ul>
<p>&#8220;<em>Furthering Adobe&#8217;s commitment to the Linux community and as part of ongoing efforts to ensure the cross-platform compatibility of Flash Player, an alpha version of 64-bit Adobe Flash Player 10 for Linux operating systems was released on 11/17/2008 and is available for <a href="http://labs.adobe.com/downloads/flashplayer10.html">download</a>.</em>&#8221;</p>
<p><strong><a href="http://labs.adobe.com/technologies/pixelbender/">Pixel Bender prerelease 5</a></strong></p>
<ul>
<li><a href="http://blogs.adobe.com/kevin.goldsmith/2008/11/new_pixel_bende_1.html">blog post by Kevin Goldsmith</a></li>
<li><a href="http://blogs.adobe.com/jnack/2008/11/pixel_bender_ar.html">John Nack blog post</a></li>
</ul>
<p><em>&#8220;The most important release tonight is the Pixel Bender Plug-in for Photoshop Cs4. It supports both Pixel Bender kernels and Graphs and is accelerated for both GPUs and multi-core CPUs.<strong> You can now use the same Pixel Bender filter in Photoshop, After Effects and Flash!</strong>&#8220;</em></p>
<p><strong><a href="http://flex.org/tour">Tour de Flex</a></strong></p>
<ul>
<li><a href="http://www.webkitchen.be/2008/11/17/meet-the-downloadable-evangelist/">Serge Jespers blog post</a></li>
</ul>
<p><em>&#8220;Tour de Flex is a desktop application for exploring Flex capabilities and resources, including the core Flex components, Adobe AIR and data integration, as well as a variety of third-party components, effects, skins, and more.&#8221;</em></p>
<p><strong><a href="http://labs.adobe.com/technologies/flashcatalyst/">Thermo is now Adobe</a><a onclick="javascript:pageTracker._trackPageview('/outgoing/richswat.wordpress.com/2008/11/17/thermo-adobe%c2%ae-flash-catalyst%e2%84%a2/');" href="http://richswat.wordpress.com/2008/11/17/thermo-adobe%c2%ae-flash-catalyst%e2%84%a2/">®</a><a href="http://labs.adobe.com/technologies/flashcatalyst/"> Flash Catalyst</a><a onclick="javascript:pageTracker._trackPageview('/outgoing/richswat.wordpress.com/2008/11/17/thermo-adobe%c2%ae-flash-catalyst%e2%84%a2/');" href="http://richswat.wordpress.com/2008/11/17/thermo-adobe%c2%ae-flash-catalyst%e2%84%a2/">™</a></strong></p>
<ul>
<li><a href="http://thermoteamblog.com/">Catalyst team blog</a></li>
<li><a href="http://blog.digitalbackcountry.com/2008/11/the-flash-platform-again-and-hello-flash-catalyst/">Ryan Stewart blog post</a></li>
</ul>
<p><em>&#8220;Adobe® Flash® Catalyst is a new professional interaction design tool for rapidly creating application interfaces and interactive content without coding.&#8221;</em></p>
<p>YouTube Video by <a href="http://richswat.wordpress.com">Sven Claar</a> <a href="http://richswat.wordpress.com/2008/11/18/video-part-01-flash-catalyst/">Part 1</a>, <a href="http://richswat.wordpress.com/2008/11/18/video-part-02-flash-catalyst/">Part 2</a></p>
<p><strong><a href="http://biz.yahoo.com/bw/081117/20081116005074.html?.v=1">Adobe Flash Platform</a></strong></p>
<ul>
<li><a href="http://www.bit-101.com/blog/?p=1695">Keith Peters blog post</a></li>
<li><a href="http://biz.yahoo.com/bw/081117/20081116005074.html?.v=1">Yahoo News</a></li>
</ul>
<p><a href="http://www.adobe.com/aboutadobe/pressroom/pressreleases/200811/111708AdobeFMS35.html"><strong>Flash Media Server 3.5 announced</strong><br />
</a></p>
<ul>
<li><a href="http://www.flashcomguru.com/index.cfm/2008/11/17/fms3_5-announced">Flashcomguru blog post</a></li>
<li><a href="http://www.streamflashhd.com/">Flash HD Video using Dynamic Streaming</a></li>
</ul>
<p><em>&#8220;The new servers include new media delivery options, such as: dynamic streaming; enhanced H.264 video and High Efficiency AAC (HE-AAC) audio support; and the ability to pause and seek within a live stream.</em><em>&#8220;</em></p>
<p><strong><a href="http://labs.adobe.com/technologies/alchemy/">Alchemy</a></strong></p>
<p><em>&#8220;Alchemy is a research project that allows users to compile C and C++ code that is targeted to run on the open source ActionScript Virtual Machine (AVM2).&#8221;</em></p>
<p><strong><a href="http://www.adobe.com/devnet/flex/articles/sdk32_fb302.html">Flex SDK 3.2 and Flex Builder 3.0.2</a></strong></p>
<ul>
<li><a href="http://blogs.adobe.com/flexdoc/2008/11/flex_32_loading_subapps_1.html">flex docs loading sup-apps</a></li>
</ul>
<p><strong><a href="http://labs.adobe.com/wiki/index.php/Genesis">Genesis</a></strong></p>
<p><em>&#8220;Genesis is the code-name for a new product initiative at Adobe with the objective of joining business applications, documents and the web on every knowledge workers desktop with integrated collaboration capabilities. Using the very intuitive interface of the Genesis desktop client (built on Adobe AIR) knowledge workers are able to create custom workspaces combining views into business applications, analytics, web sites and documents. Workspaces can be easily and securely shared with other colleagues or business partners outside the company and provide out-of-the-box real time collaboration capabilities like instant messaging, voice and video as well as screen sharing and white boarding.&#8221;</em></p>
<p><strong><a href="http://labs.adobe.com/wiki/index.php/Adobe_Wave">Adobe Wave</a></strong></p>
<p><em>&#8220;Adobe® Wave™ is an Adobe AIR application and Adobe hosted service that work together to enable desktop notifications. It helps publishers stay connected to your customers and lets users avoid the email clutter of dozens of newsletters and social network update messages. Adobe Wave is a single web service call that lets publishers reach users directly on their desktop: there&#8217;s no need to make them download a custom application or build it yourself.&#8221;</em></p>
<p><strong><a href="http://labs.adobe.com/wiki/index.php/Stratus">Stratus</a></strong></p>
<p>&#8220;Flash Player 10 and Adobe AIR 1.5 introduce a new communications protocol called the Real-Time Media Flow Protocol (RTMFP).&#8221;</p>
<p>Stratus is <strong>&#8220;A new beta service from Adobe coming this December&#8221;.</strong></p>
<p>With Adobe Stratus you can build:</p>
<ul>
<li> A video chat application</li>
<li> Multi-player games</li>
<li> Voice Over IP</li>
</ul>
<p><strong><a href="http://labs.adobe.com/technologies/durango/">Durango</a></strong></p>
<p><em>&#8220;Durango is a framework that allows developers to build Adobe® AIR™ applications that can be customized by end-users. Durango allows developers, designers and end-users to easily mashup independent components to create new applications or extend existing Durango-enabled applications. These &#8220;mashable&#8221; components can be visual or non-visual (e.g., web services). Designers and developers can rapidly create prototype applications and then generate Adobe Flex® MXML source projects for further development. End-users can take parts of their favorite applications and bring them together in new ways.&#8221;</em></p>
<p><strong><a href="http://labs.adobe.com/wiki/index.php/PatchPanel">PatchPanel</a></strong></p>
<p><em>&#8220;Adobe is pleased to offer our third-party developers and the larger Adobe Flex® development community this preview of PatchPanel, a first glimpse at combining the dynamic control of ActionScript™ with the power of Adobe’s Creative Suite®.&#8221;</em></p>
<p><strong><a href="http://labs.adobe.com/technologies/configurator/">Adobe Configurator</a></strong></p>
<ul>
<li><a href="http://blogs.adobe.com/jnack/2008/11/configurator_is_live.html">John Nack blog post</a></li>
</ul>
<p><em>&#8220;Configurator is an open source utility that enables the easy creation of panels (palettes) for use in Adobe Photoshop® CS4. Specifically, Configurator makes it easy to drag and drop tools, menu items, scripts, actions, and other objects into a panel design, then export the results for use inside Photoshop. These panels leverage the support for Adobe Flash® built into Photoshop, making it possible to drag and drop audio, video, images, and even other SWF files into a panel design.&#8221;</em></p>
<p><strong><a href="http://labs.adobe.com/wiki/index.php/Centaur">Centaur</a> and <a href="http://labs.adobe.com/wiki/index.php/Bolt">Bolt</a></strong><br />
Eclipse based ColdFusion IDE codenamed &#8220;Bolt&#8221; to be released in conjunction with the next version of ColdFusion codenamed &#8220;Centaur&#8221;</p>
<p><strong>News</strong></p>
<ul>
<li><a href="http://www.openscreenproject.org/">OSP Open Screen Project</a></li>
<li><a href="http://news.cnet.com/8301-1023_3-10098963-93.html">MLB.com doprs Silverlight for Flash</a></li>
<li><a href="http://www.morearty.com/blog/2008/11/18/new-flex-builder-debugger-features-conditional-breakpoints-function-calls-from-expressions-watchpoints-and-more/">New Flex Builder features like contional breakpoints and network monitor</a></li>
<li><a href="http://www.adobe.com/devnet/actionscript/articles/atp_ria_guide.html">Adobe Flash Platform ActionScript reference guide for RIA development</a></li>
<li><a href="http://anilchannappa.org/2008/11/18/new-version-of-lc-ds-and-blaze-ds-available-today/">LC DS and Blaze Update for Flex SDK 3.2</a></li>
<li><a href="http://www.insideria.com/2008/11/google-maps-for-air.html">Google Maps now supports AIR</a></li>
<li><a href="http://www.adobe.com/livedocs/flex/3/extensibility/">Flex Builder Extensibility API Reference</a> (<a href="http://www.morearty.com/blog/2008/11/19/extending-flex-builder-sample-code-for-designxml/">blog post Mike Morearty</a>)<a href="http://www.adobe.com/livedocs/flex/3/extensibility/"><br />
</a></li>
<li><a href="http://www.flashmagazine.com/news/detail/groups.adobe.com_launched/">groups.adobe.com launched</a></li>
<li><a href="http://opensource.adobe.com/wiki/display/cairngorm/Plugin">Cairngorm Plugin</a></li>
</ul>
<p>Wow, wow, wow! What a week!</p>
<img src="http://feeds.feedburner.com/~r/soenkerohde/~4/459766898" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://soenkerohde.com/2008/11/adobe-max-2008-sf-review/feed/</wfw:commentRss>
		<feedburner:origLink>http://soenkerohde.com/2008/11/adobe-max-2008-sf-review/</feedburner:origLink></item>
		<item>
		<title>Flex Camp Hamburg</title>
		<link>http://feeds.feedburner.com/~r/soenkerohde/~3/448263937/</link>
		<comments>http://soenkerohde.com/2008/11/flex-camp-hamburg/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 10:21:09 +0000</pubDate>
		<dc:creator>Sönke</dc:creator>
		
		<category><![CDATA[AIR]]></category>

		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://soenkerohde.com/?p=247</guid>
		<description><![CDATA[Last week we had the first Flex Camp in Hamburg and in parallel also in Bucharest and Vienna!
I think the event was a great success and all speakers did a great job. The Flex Usergroup Hamburg did a great job organizing this event and I hope the location at Adobe was comfortable enough.
Below you see [...]]]></description>
			<content:encoded><![CDATA[<p>Last week we had the first Flex Camp in Hamburg and in parallel also in Bucharest and Vienna!</p>
<p>I think the event was a great success and all speakers did a great job. The <a href="http://www.flexughh.de">Flex Usergroup Hamburg</a> did a great job organizing this event and I hope the location at Adobe was comfortable enough.</p>
<p>Below you see Adobe Platform evangelist <a href="http://www.riaspace.net/">Piotr Walczyszyn</a> who did a talk about AIR.</p>
<p><img src="http://soenkerohde.com/img/flexcamp.jpg" alt="" width="640" height="480" /></p>
<p>This is also another prove for the bad iPhone camera, sorry!</p>
<p>Check out more pics at the <a href="http://www.flexughh.de/2008/11/08/flexcamp-08-es-ist-getan/#more-131">Flex Usergroup Hamburg blog</a>.</p>
<img src="http://feeds.feedburner.com/~r/soenkerohde/~4/448263937" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://soenkerohde.com/2008/11/flex-camp-hamburg/feed/</wfw:commentRss>
		<feedburner:origLink>http://soenkerohde.com/2008/11/flex-camp-hamburg/</feedburner:origLink></item>
		<item>
		<title>Chuck Norris anyone?</title>
		<link>http://feeds.feedburner.com/~r/soenkerohde/~3/447652240/</link>
		<comments>http://soenkerohde.com/2008/11/chuck-norris-anyone/#comments</comments>
		<pubDate>Sun, 09 Nov 2008 19:16:23 +0000</pubDate>
		<dc:creator>Sönke</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://soenkerohde.com/?p=248</guid>
		<description><![CDATA[I just came across the Google blog where is a post about the top searches after the election in the US.
Top 10 for political personas:
Obama
Palin
McCain
Tina Fey
Joe Biden
Chuck Norris
Cindy McCain
Bristol Palin
SNL Palin
Colin Powell
Chuck Norris? Come one ;)! After a small research I read that he did some spots for the republican party where he made a [...]]]></description>
			<content:encoded><![CDATA[<p>I just came across the Google blog where is a <a href="http://googleblog.blogspot.com/2008/11/top-searches-on-election-day-part-1.html">post about the top searches after the election</a> in the US.</p>
<p>Top 10 for political personas:</p>
<p>Obama<br />
Palin<br />
McCain<br />
Tina Fey<br />
Joe Biden<br />
<strong>Chuck Norris</strong><br />
Cindy McCain<br />
Bristol Palin<br />
SNL Palin<br />
Colin Powell</p>
<p>Chuck Norris? Come one ;)! After a small research I read that he did some spots for the republican party where he made a campaign called HuckChuckFacts. If you don&#8217;t now the <a href="http://www.chucknorrisfacts.com/">Chuck Norris Facts</a> check them out. Internet legend!</p>
<p>Of course the next step was YouTube where I found some <a href="http://www.youtube.com/watch?v=MDUQW8LUMs8">spots</a>. At least funny but not the party I would prefer &#8230; However, congratulations USA for this new president and be carefull if Chuck runs for president in 2012. Nobody can beat Chuck Norris!</p>
<img src="http://feeds.feedburner.com/~r/soenkerohde/~4/447652240" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://soenkerohde.com/2008/11/chuck-norris-anyone/feed/</wfw:commentRss>
		<feedburner:origLink>http://soenkerohde.com/2008/11/chuck-norris-anyone/</feedburner:origLink></item>
		<item>
		<title>Multitouch for Telekom</title>
		<link>http://feeds.feedburner.com/~r/soenkerohde/~3/429511364/</link>
		<comments>http://soenkerohde.com/2008/10/multitouch-for-telekom/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 10:16:53 +0000</pubDate>
		<dc:creator>Sönke</dc:creator>
		
		<category><![CDATA[Flash]]></category>

		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://soenkerohde.com/?p=245</guid>
		<description><![CDATA[My dear friend Jörg worked with foresee on a multitouch application for German Telekom and it went live in their store in Berlin - Mitte beginning of October. The client programming was done with Flash and Flex. I did not see it live but the video looks awesome! Congratulations!

]]></description>
			<content:encoded><![CDATA[<p>My dear friend <a href="http://liquidnight.de/2008/10/12/europes-first-multitouch/">Jörg</a> worked with <a href="http://foresee.biz">foresee</a> on a multitouch application for German Telekom and it went live in their <a href="http://4010.com/?p=http%3A//4010.com/blog/2008/09/erster-der-multitouch-im-4010-store/">store in Berlin</a> - Mitte beginning of October. The client programming was done with Flash and Flex. I did not see it live but the video looks awesome! Congratulations!</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="src" value="http://www.youtube.com/v/-EqGp-53j4E&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;fs=1" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/-EqGp-53j4E&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;fs=1" allowfullscreen="true"></embed></object></p>
<img src="http://feeds.feedburner.com/~r/soenkerohde/~4/429511364" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://soenkerohde.com/2008/10/multitouch-for-telekom/feed/</wfw:commentRss>
		<feedburner:origLink>http://soenkerohde.com/2008/10/multitouch-for-telekom/</feedburner:origLink></item>
		<item>
		<title>First German Flex Camp in Hamburg</title>
		<link>http://feeds.feedburner.com/~r/soenkerohde/~3/427314462/</link>
		<comments>http://soenkerohde.com/2008/10/first-german-flex-camp-in-hamburg/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 09:52:59 +0000</pubDate>
		<dc:creator>Sönke</dc:creator>
		
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://soenkerohde.com/?p=246</guid>
		<description><![CDATA[Now it&#8217;s official: November 6th we will have a Flex Camp in the Adobe Office Hamburg and in parallel also in Vienna and Bukarest. I am sure it will be great fun!
]]></description>
			<content:encoded><![CDATA[<p>Now it&#8217;s official: <a href="http://www.flexcamp-hamburg.de/08/">November 6th we will have a Flex Camp in the Adobe Office Hamburg</a> and in parallel also in Vienna and Bukarest. I am sure it will be great fun!</p>
<img src="http://feeds.feedburner.com/~r/soenkerohde/~4/427314462" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://soenkerohde.com/2008/10/first-german-flex-camp-in-hamburg/feed/</wfw:commentRss>
		<feedburner:origLink>http://soenkerohde.com/2008/10/first-german-flex-camp-in-hamburg/</feedburner:origLink></item>
		<item>
		<title>Conditional Compilation to Mock with Swiz</title>
		<link>http://feeds.feedburner.com/~r/soenkerohde/~3/409191853/</link>
		<comments>http://soenkerohde.com/2008/10/conditional-compilation-to-mock-with-swiz/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 12:08:08 +0000</pubDate>
		<dc:creator>Sönke</dc:creator>
		
		<category><![CDATA[Flex]]></category>

		<category><![CDATA[Swiz]]></category>

		<guid isPermaLink="false">http://soenkerohde.com/?p=243</guid>
		<description><![CDATA[The Flex compiler supports conditional compilation and now I had the first use-case for it.
I am still playing around with the Swiz framework and I wanted to have an easy way to switch between mocked and real data. For that reason I added the two compile constants mock and release in the CONFIG namespace:

To support [...]]]></description>
			<content:encoded><![CDATA[<p>The Flex compiler supports <a href="http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_21.html">conditional compilation</a> and now I had the first use-case for it.</p>
<p>I am still playing around with the <a href="http://code.google.com/p/swizframework/">Swiz framework</a> and I wanted to have an easy way to switch between <a href="http://en.wikipedia.org/wiki/Mock_object">mocked</a> and real data. For that reason I added the two compile constants mock and release in the CONFIG namespace:</p>
<p><img src="http://soenkerohde.com/img/conditional_compilation.jpg" alt="compiler settings" width="576" height="43" /></p>
<p>To support mock and real data I have two different <a href="http://code.google.com/p/swizframework/wiki/DefiningApplicationComponents">BeanLoaders</a>, one with the real service and one with the mock service. In my main mxml I have the following preinitialize event listener:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onPreInit<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">var</span> serviceBeanLoader:<span style="color: #000000; font-weight: bold;">Class</span>;
	<span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>CONFIG::mock<span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;MOCK&quot;</span><span style="color: #66cc66;">&#41;</span>;
		serviceBeanLoader = ServiceMockBeanLoader;
	<span style="color: #66cc66;">&#125;</span>
&nbsp;
	<span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>CONFIG::release<span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;RELEASE&quot;</span><span style="color: #66cc66;">&#41;</span>;
		serviceBeanLoader = ServiceBeanLoader;
	<span style="color: #66cc66;">&#125;</span>
&nbsp;
	Swiz.<span style="color: #006600;">loadBeans</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#91;</span>GeneralBeanLoader, serviceBeanLoader<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>The GeneralBeanLoader contains models and controllers which are independent from a server implementation and the ServiceBeanLoader contains server specific stuff like for instance DynamicChannelSet, HTTPService, RemoteObject, DataService etc.. The ServiceMockBeanLoader contains the same ids but mocked implementations. If you are using Delegates it can be even simpler because you can easily mock an AsyncToken like this:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> mockAsyncToken:AsyncToken;
&nbsp;
<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> loadSomeData<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:AsyncToken
<span style="color: #66cc66;">&#123;</span>
	mockAsyncToken = <span style="color: #000000; font-weight: bold;">new</span> AsyncToken<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #808080; font-style: italic;">// wait 500ms before invoking the result</span>
	<span style="color: #000000; font-weight: bold;">var</span> t:Timer = <span style="color: #000000; font-weight: bold;">new</span> Timer<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">500</span>, <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>;
	t.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>TimerEvent.<span style="color: #006600;">TIMER_COMPLETE</span>, onTimer<span style="color: #66cc66;">&#41;</span>;
	t.<span style="color: #0066CC;">start</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">return</span> mockAsyncToken;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onTimer<span style="color: #66cc66;">&#40;</span>event:TimerEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
<span style="color: #66cc66;">&#123;</span>
	Timer<span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">currentTarget</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">removeEventListener</span><span style="color: #66cc66;">&#40;</span>TimerEvent.<span style="color: #006600;">TIMER_COMPLETE</span>, onTimer<span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">for</span> each<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> responder:IResponder <span style="color: #b1b100;">in</span> mockAsyncToken.<span style="color: #006600;">responders</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		responder.<span style="color: #006600;">result</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> ResultEvent<span style="color: #66cc66;">&#40;</span>ResultEvent.<span style="color: #006600;">RESULT</span>, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #000000; font-weight: bold;">true</span>, RESULT<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #0066CC;">static</span> const RESULT:<span style="color: #0066CC;">XML</span> = &lt;result&gt;could be the mocked result&lt;/result&gt;;</pre></div></div>

<p>What are your best practices to use mock objects?</p>
<img src="http://feeds.feedburner.com/~r/soenkerohde/~4/409191853" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://soenkerohde.com/2008/10/conditional-compilation-to-mock-with-swiz/feed/</wfw:commentRss>
		<feedburner:origLink>http://soenkerohde.com/2008/10/conditional-compilation-to-mock-with-swiz/</feedburner:origLink></item>
		<item>
		<title>Maven &amp; Flex-mojos</title>
		<link>http://feeds.feedburner.com/~r/soenkerohde/~3/406317867/</link>
		<comments>http://soenkerohde.com/2008/09/maven-flex-mojos/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 14:42:31 +0000</pubDate>
		<dc:creator>Sönke</dc:creator>
		
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://soenkerohde.com/?p=240</guid>
		<description><![CDATA[To build and deploy Flex application I usually use Apache Ant with Flex Ant Tasks which come with the Flex SDK.
A few month ago the Flex-mojos blog got my attention and I added it to my RSS Reader and now I finally got the time to play around with it.
&#8220;Flex-mojos is a collection of maven [...]]]></description>
			<content:encoded><![CDATA[<p>To build and deploy Flex application I usually use <a href="http://ant.apache.org/">Apache Ant</a> with Flex Ant Tasks which come with the Flex SDK.</p>
<p>A few month ago the F<a href="http://blog.flex-mojos.info/">lex-mojos blog</a> got my attention and I added it to my RSS Reader and now I finally got the time to play around with it.</p>
<blockquote><p><em>&#8220;Flex-mojos is a collection of maven plugins to allow maven to compile, optimize, test and &#8230; Flex SWF, Flex SWC, Air SWF and Air SWC. The main goal is to provide a full support to all mxmlc/compc options.&#8221;</em></p></blockquote>
<blockquote><p><em>&#8220;Maven is a software project management and comprehension tool. Based on the concept of a project object model         (POM), Maven can manage a project&#8217;s build, reporting and documentation from a central piece of information.&#8221;</em></p></blockquote>
<p>This all sounds pretty promising so I gave it a try. I am under OS X so the commands are slightly different under Windows.</p>
<p><strong>Install Maven</strong></p>
<ul>
<li><a href="http://maven.apache.org/download.html">Download Maven</a></li>
<li>Set environment variables in the console:</li>
</ul>

<div class="wp_syntax"><div class="code"><pre>export M2_HOME=/path/to/maven
export M2=$M2_HOME/bin
export PATH=$M2:$PATH
mvn --version</pre></div></div>

<p>If you see the Maven and Java version info you know your installation was successful.</p>
<p><strong>Flex Mojos with Flex SDK 3.1.0<br />
</strong></p>
<p>The first thing I tried was to follow the <a href="http://code.google.com/p/flex-mojos/wiki/HelloWorldTutorial">Flex-mojos HelloWorld tutorial</a>. I got the same 4 missing artifacts error like you see below in the comments. After some research on <a href="http://blog.flex-mojos.info">Velos blog</a> and the goal to compile with 3.1.0 the research began ;).</p>
<p>The first thing is to copy the Maven settings.xml from /path/to/maven/conf/settings.xml to <em>~/.m2</em> which is your Maven user directory.</p>
<p>HINT: You can open this hidden directory in Finder from the Terminal with <em>open ~/.m2</em>.</p>
<p>Integrate the settings by Velo like described <a href="http://blog.flex-mojos.info/2008/08/21/install-mojo/">here</a> and provided <a href="http://flex-mojos.googlecode.com/files/flex-mojos%20settings.xml">here</a>.</p>
<p>Update to 2.0M5 (and change the path to your sdk):</p>

<div class="wp_syntax"><div class="code"><pre>mvn info.flex-mojos:install-mojo:2.0M5:install-sdk -Dflex.sdk.folder=/Users/soenkerohde/sdks/3.1.0/ -Dversion=3.1.0.2710</pre></div></div>

<p>Due to a <a href="http://code.google.com/p/flex-mojos/issues/detail?id=110">typo bug</a> in the <a href="http://svn.sonatype.org/flexmojos/repository//info/flex-mojos/flex-super-pom/2.0M5/flex-super-pom-2.0M5.pom">2.0M5 super-pom</a> we will work without super pom so you have to comment the parent node add add the contents from the super-pom which should look like this <a href="http://soenkerohde.com/flex/maven/pom.xml">pom.xml</a>.</p>
<p>Now things should be ready to go:</p>

<div class="wp_syntax"><div class="code"><pre>mvn install
...
...
INFO] Installing /Users/soenkerohde/maven/myproject/target/simple-flex-application-1.0-SNAPSHOT.swf to /Users/soenkerohde/.m2/repository/com/example/flex/simple-flex-application/1.0-SNAPSHOT/simple-flex-application-1.0-SNAPSHOT.swf
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12 seconds
[INFO] Finished at: Mon Sep 29 16:01:16 CEST 2008
[INFO] Final Memory: 9M/55M
[INFO] ------------------------------------------------------------------------
soenkerohde:myproject soenkerohde$</pre></div></div>

<p>Yeah! So this was &#8220;HelloWorld&#8221; and my first impression of Maven after walking into every trap is pretty good. I will try to blog more when I get more experience.</p>
<p>I also read a few things about Maven archetypes which is the Maven project templating toolkit. If I find time I would give this also a try. Just check the links to get some inspiration.</p>
<p><strong>Links</strong></p>
<ul>
<li><a href="http://code.google.com/p/flex-mojos">Flex Mojos</a> / <a href="http://blog.flex-mojos.info/">Blog</a></li>
<li><a href="http://code.google.com/p/maven-blazeds-spring-archetype/">BlazeDS Spring Archetype project</a></li>
<li><a href="http://riadiscuss.jeffmaury.com/2008/09/maven-and-flex-builder-tutorial-part-i.html">Maven and Flex Builder Tutorial Part I</a></li>
<li><a href="http://riadiscuss.jeffmaury.com/2008/09/maven-and-flex-builder-tutorial-part-ii.html">Maven and Flex Builder Tutorial Part II</a></li>
<li><a href="http://m2eclipse.codehaus.org/">Maven Eclipse Plugin</a></li>
<li><a href="http://maven.apache.org/guides/mini/guide-creating-archetypes.html">Guide to create Archetype</a></li>
<li><a href="http://maven.apache.org/plugins/maven-archetype-plugin/create-from-project-mojo.html">Create Archetype from project</a></li>
</ul>
<img src="http://feeds.feedburner.com/~r/soenkerohde/~4/406317867" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://soenkerohde.com/2008/09/maven-flex-mojos/feed/</wfw:commentRss>
		<feedburner:origLink>http://soenkerohde.com/2008/09/maven-flex-mojos/</feedburner:origLink></item>
		<item>
		<title>Swiz Framework - Brutally Simple</title>
		<link>http://feeds.feedburner.com/~r/soenkerohde/~3/401655030/</link>
		<comments>http://soenkerohde.com/2008/09/swiz-framework-brutally-simple/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 09:59:38 +0000</pubDate>
		<dc:creator>Sönke</dc:creator>
		
		<category><![CDATA[Flex]]></category>

		<category><![CDATA[Swiz]]></category>

		<guid isPermaLink="false">http://soenkerohde.com/?p=236</guid>
		<description><![CDATA[After the 360Flex took place in San Jose I watched a few of the video recordings which are available through Adobe Media Player. Ted Patrick was also so nice to put them on his blog.
I am always interested in new Flex frameworks and Swiz got my attention. I watched the video and started to play [...]]]></description>
			<content:encoded><![CDATA[<p>After the 360Flex took place in San Jose I watched a few of the video recordings which are <a href="http://www.onflex.org/ted/2008/08/recording-360flex-free-full-sessions-on.php">available</a> through <a href="http://www.adobe.com/products/amp/">Adobe Media Player</a>. <a href="http://blogsearch.google.com/blogsearch?ie=UTF-8&amp;q=360Flex+SJ+2008+blogurl:http://www.onflex.org/ted/">Ted Patrick</a> was also so nice to put them on <a href="http://blogsearch.google.com/blogsearch?ie=UTF-8&amp;q=360Flex+SJ+2008+blogurl:http://www.onflex.org/ted/&amp;sa=N&amp;start=20">his blog</a>.</p>
<p>I am always interested in new Flex frameworks and <a href="http://code.google.com/p/swizframework/">Swiz</a> got my attention. I watched <a href="http://www.onflex.org/ted/2008/09/360flex-sj-2008-introduction-to-swiz.php">the video</a> and started to play around with it. What I like most about the framework is the use of metadata aka annotations which really reduces the amount of code.</p>
<p>When I first checked out the <a href="http://code.google.com/p/swizframework/source/checkout">source</a> I recognized that the DynamicMediator which was shown in the presentation was not committed yet. However, I started to build an example project where the views got the controller injected via Autowire. After a few days I was a bit frustrated because I also wanted to use the Mediate metadata and surprise, the code was committed. I updated the library and could remove all the controller references from the views which decoupled things like I wanted it to have. And recently <a href="http://cdscott.blogspot.com">Chris Scott</a>, the developer behind Swiz, also <a href="http://cdscott.blogspot.com/2008/09/swiz-updates-and-documentation.html">blogged about the update</a> for <a href="http://code.google.com/p/swizframework/wiki/DynamicMediators">DynamicMediator</a>.</p>
<p>When you have no clue what I am talking about be sure to check the <a href="http://www.onflex.org/ted/2008/09/360flex-sj-2008-introduction-to-swiz.php">presentation of Chris at 360Flex</a>. There was no more need to study the docs after watching the video since the framework is really a &#8220;<em><a style="text-decoration: none; color: #000000;" href="http://code.google.com/p/swizframework/">Brutally simple micro-architecture for Rich Internet Application development with Adobe Flex</a></em>&#8220;.</p>
<p>So what&#8217;s it all about? Swiz is an <a href="http://en.wikipedia.org/wiki/Inversion_of_control">IoC</a> or Dependency Injection framework. I have used IoC frameworks in the past and got the point why it is cool but I always disliked the XML configuration files. Swiz uses similar concepts like <a href="http://springframework.org/">Spring</a> in the Java world were <a href="http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#beans-annotation-config">annotations were introduced in 2.5</a>.</p>
<p>Swiz currently support two kinds of annotations: Autowire and Mediate<br />
Autowire automatically injects references to objects which very defined in the <a href="http://code.google.com/p/swizframework/wiki/DefiningApplicationComponents">BeanLoader</a> and mediated methods get invoked when the belonging event was fire with event member variables as parameters.</p>
<p>The other hot discussed IoC framework is currently <a href="http://mate.asfusion.com/">Mate</a>. The <a href="http://www.onflex.org/ted/2008/09/360flex-sj-2008-mate-flex-framework-by.php">presentation of Laura Arguello at 360Flex</a> is really great and really nails down what the common problems are and how to solve them. I pretty much share the dislike of coding in XML <a href="http://www.techper.net/2008/09/10/mate-the-good-the-bad-and-the-ugly/">blogged by Olesen</a> and <a href="http://www.infoq.com/news/2008/09/flex-mate-good-bad">discussed on InfoQ</a>. Another review of Mate is done by <a href="http://www.flashmagazine.com/Reviews/detail/mate_event_driven_framework_for_flex/">Flash Magazine</a> and the structure is visualized in a <a href="http://flexblog.faratasystems.com/?p=342">diagram by Fatara Systems</a>. But don&#8217;t get me wrong. Mate looks really awesome but to my personal preference I prefer something more lightweight like Swiz.</p>
<p>The weakness of Swiz is currently that the Autowire and Mediate uses strings instead of constants which means there is no compile time check if things work or not. On the one hand you should use conventions how you name the &#8220;beans&#8221; to autowire and the event types to mediate and on the other hand it would not be to hard to build a kind of pre-compiler which validates that the annotations match. My convention for beans is to use the class name starting lowercase like</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript">&lt;Beanloader ... <span style="color: #006600;">xmlns</span>:ctrl=<span style="color: #ff0000;">&quot;com.soenkerohde.myproject.ctrl.*&quot;</span>&gt;
    &lt;ctrl:MyController id=<span style="color: #ff0000;">&quot;myController&quot;</span> /&gt;
&lt;/Beanloader&gt;</pre></div></div>

<p>.<br />
So it can be used/injected with:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript"><span style="color: #66cc66;">&#91;</span>Autowire<span style="color: #66cc66;">&#40;</span>bean=<span style="color: #ff0000;">&quot;myController&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span>
<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> myController:MyController;</pre></div></div>

<p>For the dynamic mediators my current approach is to type the event with the full qualified classname like</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript"><span style="color: #66cc66;">&#91;</span>Mediate<span style="color: #66cc66;">&#40;</span>event=<span style="color: #ff0000;">&quot;com.soenkerohde.myproject.events.LoginEvent&quot;</span>, properties=<span style="color: #ff0000;">&quot;username,password&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span>
<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> login<span style="color: #66cc66;">&#40;</span>username:<span style="color: #0066CC;">String</span>, <span style="color: #0066CC;">password</span>:<span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span></pre></div></div>

<p>The event would look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript">package com.<span style="color: #006600;">soenkerohde</span>.<span style="color: #006600;">myproject</span>.<span style="color: #006600;">event</span>
<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">Event</span>;
<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> LoginEvent <span style="color: #0066CC;">extends</span> Event
<span style="color: #66cc66;">&#123;</span>
  <span style="color: #0066CC;">public</span> <span style="color: #0066CC;">static</span> const LOGIN_EVENT:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">&quot;com.soenkerohde.myproject.events.LoginEvent&quot;</span>;
  <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> username:<span style="color: #0066CC;">String</span>;
  <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">password</span>:<span style="color: #0066CC;">String</span>;
  <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> LoginEvent<span style="color: #66cc66;">&#40;</span>username:<span style="color: #0066CC;">String</span>, <span style="color: #0066CC;">password</span>:<span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#123;</span>
    <span style="color: #0066CC;">super</span><span style="color: #66cc66;">&#40;</span>LOGIN_EVENT<span style="color: #66cc66;">&#41;</span>;
    <span style="color: #0066CC;">this</span>.<span style="color: #006600;">username</span> = username;
    <span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">password</span> = <span style="color: #0066CC;">password</span>;
  <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>However, it would be nice to have something during compile time. Let&#8217;s see how Swiz evolves and what other frameworks enter the arena.</p>
<img src="http://feeds.feedburner.com/~r/soenkerohde/~4/401655030" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://soenkerohde.com/2008/09/swiz-framework-brutally-simple/feed/</wfw:commentRss>
		<feedburner:origLink>http://soenkerohde.com/2008/09/swiz-framework-brutally-simple/</feedburner:origLink></item>
		<item>
		<title>AIR HTML with “_blank” Links Part II - Using HTMLHost</title>
		<link>http://feeds.feedburner.com/~r/soenkerohde/~3/383116720/</link>
		<comments>http://soenkerohde.com/2008/09/air-html-with-%e2%80%9c_blank%e2%80%9d-links-part-ii-using-htmlhost/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 09:37:45 +0000</pubDate>
		<dc:creator>Sönke</dc:creator>
		
		<category><![CDATA[AIR]]></category>

		<guid isPermaLink="false">http://soenkerohde.com/?p=234</guid>
		<description><![CDATA[I few days ago I blogged about how to open target=&#8221;_blank&#8221; anchor links in the system browser and leaving normal links in the HTML control of AIR. Since that I learned a bit more and people pointed me to the AIR docs. There you can find a great chapter about &#8220;Defining browser-like user interfaces for [...]]]></description>
			<content:encoded><![CDATA[<p>I few days ago I blogged about <a href="http://soenkerohde.com/2008/09/air-html-with-_blank-links/">how to open target=&#8221;_blank&#8221; anchor links in the system browser</a> and leaving normal links in the HTML control of AIR. Since that I learned a bit more and people pointed me to the AIR docs. There you can find a great <a href="http://help.adobe.com/en_US/AIR/1.1/devappsflex/WS5b3ccc516d4fbf351e63e3d118666ade46-7e74.html">chapter about &#8220;Defining browser-like user interfaces for HTML content&#8221;</a>.</p>
<p>So there is an easier method like mine which waited for the complete event of the HTML control and added custom event listeners for each anchor tag.</p>
<p style="text-align: left;">Like it is described in the docs you can extend the default <a href="http://livedocs.adobe.com/flex/3/langref/flash/html/HTMLHost.html">HTMLHost</a> class with for instance CustomHost. To handle links which should open a new window you simply override the createWindow method and implement it fitting to your needs</p>
<p>The simpliest approach might be using HTMLLoader.createRootWindow:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript"><span style="color: #0066CC;">public</span> override <span style="color: #000000; font-weight: bold;">function</span> createWindow<span style="color: #66cc66;">&#40;</span>windowCreateOptions:HTMLWindowCreateOptions<span style="color: #66cc66;">&#41;</span>:HTMLLoader
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #b1b100;">return</span> HTMLLoader.<span style="color: #006600;">createRootWindow</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>To set the new CustomHost the HTML control can be defined like this:</p>

<div class="wp_syntax"><div class="code"><pre class="xml"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;mx:HTML</span> <span style="color: #000066;">htmlHost</span>=<span style="color: #ff0000;">&quot;{new CustomHost()}&quot;</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></pre></div></div>

<p>Besides that you can override a bunch of other methods which would trigger because of called JavaScript functions like window.open, window.close, window.blur, etc.. If you use the HTML control of AIR be sure to read about &#8220;<a href="http://help.adobe.com/en_US/AIR/1.1/devappsflex/WS5b3ccc516d4fbf351e63e3d118666ade46-7ebd.html">Scripting the HTML Container</a>&#8221; with all its sub-chapters - great read!</p>
<img src="http://feeds.feedburner.com/~r/soenkerohde/~4/383116720" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://soenkerohde.com/2008/09/air-html-with-%e2%80%9c_blank%e2%80%9d-links-part-ii-using-htmlhost/feed/</wfw:commentRss>
		<feedburner:origLink>http://soenkerohde.com/2008/09/air-html-with-%e2%80%9c_blank%e2%80%9d-links-part-ii-using-htmlhost/</feedburner:origLink></item>
		<item>
		<title>Google Chrome Browser</title>
		<link>http://feeds.feedburner.com/~r/soenkerohde/~3/381554011/</link>
		<comments>http://soenkerohde.com/2008/09/google-chrome-browser/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 17:48:25 +0000</pubDate>
		<dc:creator>Sönke</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://soenkerohde.com/?p=233</guid>
		<description><![CDATA[Yesterday I posted about Firefox 3 and the new concepts Mozilla Labs is working on and today I came across Google Chrome. Check out the Google Chrome comic book which illustrates the ideas behind in a really nice way. The german news site heise said the beta will be available today 9pm.
News on Google Blog
Update: [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I <a href="http://soenkerohde.com/2008/09/firefox-3-and-new-concepts/">posted</a> about Firefox 3 and the new concepts Mozilla Labs is working on and today I came across Google Chrome. Check out the <a href="http://www.google.com/googlebooks/chrome/">Google Chrome comic book</a> which illustrates the ideas behind in a really nice way. The german news site <a href="http://www.heise.de/software/download/google_chrome/57483">heise said the beta will be available today 9pm</a>.</p>
<p><a href="http://googleblog.blogspot.com/2008/09/fresh-take-on-browser.html">News on Google Blog</a></p>
<p>Update: The browser is now available for <a href="http://www.google.com/chrome">download</a></p>
<img src="http://feeds.feedburner.com/~r/soenkerohde/~4/381554011" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://soenkerohde.com/2008/09/google-chrome-browser/feed/</wfw:commentRss>
		<feedburner:origLink>http://soenkerohde.com/2008/09/google-chrome-browser/</feedburner:origLink></item>
	</channel>
</rss>
