<?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"
	>

<channel>
	<title>RBLAB</title>
	<atom:link href="http://www.rblab.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rblab.com/blog</link>
	<description>Riccardo Bartoli's Dev Blog</description>
	<pubDate>Tue, 17 Jun 2008 23:21:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>Logging Flash, Flex and AIR outside the IDE</title>
		<link>http://www.rblab.com/blog/2008/06/18/logging-flash-flex-and-air-outside-the-ide/</link>
		<comments>http://www.rblab.com/blog/2008/06/18/logging-flash-flex-and-air-outside-the-ide/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 23:21:29 +0000</pubDate>
		<dc:creator>Riccardo</dc:creator>
		
		<category><![CDATA[AIR]]></category>

		<category><![CDATA[Actionscript]]></category>

		<category><![CDATA[Flash]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[ide]]></category>

		<category><![CDATA[log]]></category>

		<category><![CDATA[logging]]></category>

		<guid isPermaLink="false">http://www.rblab.com/blog/?p=7</guid>
		<description><![CDATA[<br/>I&#8217;ve discovered myself that logging can save a lot of time in developing an application. I&#8217;ve used initially the well known trace action, that permits to send messages to the Output Panel of the Flash (or FlashDevelop) or Flex Builder IDE.
Then I&#8217;ve used some class like Out from BigSpaceShip Labs. I&#8217;ve added a call to [...]]]></description>
			<content:encoded><![CDATA[<br/><p>I&#8217;ve discovered myself that logging can save a lot of time in developing an application. I&#8217;ve used initially the well known trace action, that permits to send messages to the Output Panel of the Flash (or <a href="http://www.flashdevelop.org/community/" target="_blank">FlashDevelop</a>) or Flex Builder IDE.<br />
Then I&#8217;ve used some class like <a href="http://labs.bigspaceship.com/2007/03/06/out-with-thee/" target="_blank">Out from BigSpaceShip Labs</a>. I&#8217;ve added a call to the debug method of the Out class in all the methods of my classes, using it like this:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p7code4'); return false;">View Code</a> ACTIONSCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p74"><td width="1%" class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p7code4"><pre class="actionscript actionscript" style="font-family:monospace;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> constructUI<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
     Out.<span style="color: #006600;">info</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>, <span style="color: #ff0000;">&quot;constructUI&quot;</span><span style="color: #66cc66;">&#41;</span>;
     <span style="color: #808080; font-style: italic;">/*...*/</span>
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

<p>and having an output like this:</p>
<p>INFO:  com.unicoshop.UnicoShop: setConnection<br />
INFO:  com.unicoshop.UnicoShop: initApplication<br />
INFO:  com.unicoshop.views.TabView: setApplicationGlobally<br />
INFO:  com.unicoshop.views.stats.StatisticheVenditeTempoReale: setConnection<br />
INFO:  com.unicoshop.views.manager.VenditaArticoli: setConnection<br />
INFO:  com.unicoshop.views.manager.ArticoliResiFornitore: setConnection<br />
INFO:  com.unicoshop.views.manager.ArticoliVenduti: setConnection</p>
<p>Out is powerful than the trace command, but like it doesn&#8217;t work outside of the IDE.</p>
<p>So I googled and I found this two great logging tools, both works in Flash and Flex projects, works under Windows, Macintosh and Linux, and both permits to log the output of Flash and Flex in a custom AIR Application (using LocalConnection to connect to the source swf or reading the flashlog.txt outputted by the debug version of the Flash Player):</p>
<ul>
<li><a href="http://arthropod.stopp.se/" target="_blank">Arthropod<br />
</a><em>(<a href="http://theflashblog.com/?p=396" target="_blank">from Lee Brimelow&#8217;s blog</a>)<br />
</em>The application is named Arthropod allows you to color-code your log messages for easy viewing. All you need to do is add their debug class to your project and use the log method instead of the usual trace command. This will be particularly useful for AIR projects created in the Flash CS3 as the trace command doesn’t work unless in debug mode.</p>
<p>Usage example:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p7code5'); return false;">View Code</a> ACTIONSCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p75"><td width="1%" class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p7code5"><pre class="actionscript actionscript" style="font-family:monospace;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">carlcalderon</span>.<span style="color: #006600;">arthropod</span>.<span style="color: #006600;">Debug</span>;
&nbsp;
Debug.<span style="color: #0066CC;">log</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;My log message&quot;</span><span style="color: #66cc66;">&#41;</span>;
Debug.<span style="color: #006600;">warning</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;My warning message&quot;</span><span style="color: #66cc66;">&#41;</span>;
Debug.<span style="color: #0066CC;">error</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;My error message&quot;</span><span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

<p>If you are using Arthropod to log an AIR application make sure you have checked the &#8220;insecure&#8221; option.<br />
This is a screenshot of my system running a Flex based AIR application, logged with Anthropod:</p>
<p><a href="http://www.rblab.com/blog/wp-content/uploads/2008/06/anthropod.jpg" rel="lightbox[7]"><img class="alignnone size-medium wp-image-12" title="Anthropod screenshot" src="http://www.rblab.com/blog/wp-content/uploads/2008/06/anthropod-300x187.jpg" alt="" width="300" height="187" /></a></li>
</ul>
<ul>
<li><a href="http://code.google.com/p/flash-thunderbolt/" target="_blank">Thunderbolt</a><br />
(from the website)<br />
ThunderBolt is a logger extension for Flash ActionScript 2 and 3 as well as Flex 2 and 3 applications based on the Firebug add-on for Firefox.For logging without Firebug, especially for AIR applications, check out the new ThunderBolt AS3 Console. <span style="text-decoration: line-through;">Unfortunately the Thunderbolt AS3 Console AIR application <a href="http://code.google.com/p/flash-thunderbolt/issues/detail?id=4" target="_blank">doesn&#8217;t work on Windows</a>, due to a &#8220;limitation&#8221; of the win version of the AIR Runtime</span>.<br />
<span style="text-decoration: line-through;"> </span><strong>Update:</strong> the problem is fixed installing the updated AIR 1.1, I&#8217;ve just tested it!<span style="text-decoration: line-through;"><br />
</span></p>
<p>Usage example:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p7code6'); return false;">View Code</a> ACTIONSCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p76"><td width="1%" class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code" id="p7code6"><pre class="actionscript actionscript" style="font-family:monospace;"><span style="color: #0066CC;">import</span> org.<span style="color: #006600;">osflash</span>.<span style="color: #006600;">thunderbolt</span>.<span style="color: #006600;">Logger</span>;
&nbsp;
Logger.<span style="color: #006600;">includeTime</span> = <span style="color: #000000; font-weight: bold;">true</span>;
&nbsp;
Logger.<span style="color: #006600;">memorySnapshot</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> myNumber:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">5</span>;
<span style="color: #000000; font-weight: bold;">var</span> myString:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">&quot;Lorem ipsum&quot;</span>;
&nbsp;
Logger.<span style="color: #006600;">debug</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;My debug message&quot;</span>, myNumber, myString<span style="color: #66cc66;">&#41;</span>;
Logger.<span style="color: #0066CC;">error</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;My error message&quot;</span>, myNumber, myString<span style="color: #66cc66;">&#41;</span>;
Logger.<span style="color: #006600;">info</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;My info message&quot;</span>, myNumber, myString<span style="color: #66cc66;">&#41;</span>;
Logger.<span style="color: #006600;">warn</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;My warning message&quot;</span>, myNumber, myString<span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

<p>This is a screenshot of my system running a Flex based AIR application, logged with anthropod:</p>
<p><a href="http://www.rblab.com/blog/wp-content/uploads/2008/06/thunderbolt.jpg" rel="lightbox[7]"><img class="alignnone size-medium wp-image-13" title="Thunderbolt screenshot" src="http://www.rblab.com/blog/wp-content/uploads/2008/06/thunderbolt-300x187.jpg" alt="" width="300" height="187" /></a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.rblab.com/blog/2008/06/18/logging-flash-flex-and-air-outside-the-ide/feed/</wfw:commentRss>
		</item>
		<item>
		<title>AIR 1.1 released</title>
		<link>http://www.rblab.com/blog/2008/06/17/air-11-released/</link>
		<comments>http://www.rblab.com/blog/2008/06/17/air-11-released/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 02:55:07 +0000</pubDate>
		<dc:creator>Riccardo</dc:creator>
		
		<category><![CDATA[AIR]]></category>

		<category><![CDATA[Flash]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[air 1.1]]></category>

		<category><![CDATA[Dreamweaver]]></category>

		<guid isPermaLink="false">http://www.rblab.com/blog/?p=8</guid>
		<description><![CDATA[<br/>Today Adobe released AIR 1.1, that includes the following new capabilities:

Installation and other runtime dialog boxes have been translated into:

Brazilian Portuguese
Chinese (Traditional and Simplified)
French
German
Italian
Japanese
Korean
Russian
Spanish




Support for building internationalized applications, including keyboard input for double-byte language

Support for localizing the name and description attributes in the application descriptor file
Support for localizing error messages, such as SQLError.detailID and SQLError.detailArguments, [...]]]></description>
			<content:encoded><![CDATA[<br/><p>Today Adobe released AIR 1.1, that includes the following new capabilities:</p>
<ul>
<li>Installation and other runtime dialog boxes have been translated into:
<ul>
<li>Brazilian Portuguese</li>
<li>Chinese (Traditional and Simplified)</li>
<li>French</li>
<li>German</li>
<li>Italian</li>
<li>Japanese</li>
<li>Korean</li>
<li>Russian</li>
<li>Spanish</li>
</ul>
</li>
</ul>
<ul>
<li>Support for building internationalized applications, including keyboard input for double-byte language
<ul>
<li>Support for localizing the name and description attributes in the application descriptor file</li>
<li>Support for localizing error messages, such as SQLError.detailID and SQLError.detailArguments, in the SQLite database</li>
<li>Addition of Capabilities.languages property to obtain an array of preferred UI languages as set by the operating system</li>
<li>HTML button labels and default menus, such as context menus and the Mac menu bar, have been localized to all supported languages</li>
</ul>
</li>
<li>Support for certificate migration from a self-signed application to one that chains to a certificate of authority (CA)</li>
<li>Support for Microsoft Windows XP Tablet PC Edition and support for 64-bit editions of Windows Vista® Home Premium, Business, Ultimate, or Enterprise.</li>
<li>Addition of File.spaceAvailable : API to obtain the amount of disk space available on a disk</li>
<li>Addition of NativeWindow.supportsTransparency property to determine whether a window can be drawn as transparent by the current operating system</li>
<li>Bug fixes and memory improvements</li>
</ul>
<p>For more information, please see the <a href="http://download.macromedia.com/pub/air/documentation/1_1/adobe_air_1-1_faq.pdf" target="_blank">Adobe AIR 1.1 Release Notes (.pdf)</a>.</p>
<p>Here the links:</p>
<ul>
<li><a href="http://www.adobe.com/go/getair/?devcon=f1" target="_blank">Get Adobe AIR 1.1</a></li>
<li><a href="http://www.adobe.com/devnet/flex/articles/flex_air1.1.html?devcon=f1a" target="_blank">Update Flex for AIR 1.1</a></li>
<li><a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403682&amp;sliceId=1&amp;devcon=f1b" target="_blank">Update Flash for AIR 1.1</a></li>
<li><a href="http://www.adobe.com/products/air/tools/ajax/#section-2?devcon=f1c" target="_blank">Update Dreamweaver for AIR 1.1</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.rblab.com/blog/2008/06/17/air-11-released/feed/</wfw:commentRss>
		</item>
		<item>
		<title>on AIR Tour: Milan</title>
		<link>http://www.rblab.com/blog/2008/06/14/on-air-tour-milan/</link>
		<comments>http://www.rblab.com/blog/2008/06/14/on-air-tour-milan/#comments</comments>
		<pubDate>Sat, 14 Jun 2008 19:53:24 +0000</pubDate>
		<dc:creator>Riccardo</dc:creator>
		
		<category><![CDATA[AIR]]></category>

		<category><![CDATA[Andrew Shorten]]></category>

		<category><![CDATA[lee brimelow]]></category>

		<category><![CDATA[Milan]]></category>

		<category><![CDATA[on Air Tour]]></category>

		<category><![CDATA[onAIRTour]]></category>

		<category><![CDATA[Serge Jespers]]></category>

		<guid isPermaLink="false">http://www.rblab.com/blog/?p=4</guid>
		<description><![CDATA[<br/>Inspired from the sessions at on AIR Tour in Milan I decided to fire up a blog and start blogging to share my ideas and solutions with the Flash and Flex communities. I&#8217;ve decided to write it in english because all the blogs I read everyday are in english too, so it&#8217;s our standard language [...]]]></description>
			<content:encoded><![CDATA[<br/><p><a href="http://www.rblab.com/blog/wp-content/uploads/2008/06/onairtour.jpg" rel="lightbox[4]"><img class="size-thumbnail wp-image-6" style="margin: 0px 10px 10px 0px;float:left;" title="on AIR Tour Milan" src="http://www.rblab.com/blog/wp-content/uploads/2008/06/onairtour-150x150.jpg" alt="" width="150" height="150" /></a>Inspired from the sessions at <a title="on AIR Tour: Milan" href="http://onair.adobe.com/schedule/cities/milan.php" target="_blank">on AIR Tour in Milan</a> I decided to fire up a blog and start blogging to share my ideas and solutions with the Flash and Flex communities. I&#8217;ve decided to write it in english because all the blogs I read everyday are in english too, so it&#8217;s our standard language (after Actionscript I hope).</p>
<p>Yesterday in Milan was a beautiful day, perfectly organized in a <a title="Officine del Volo" href="http://www.officinedelvolo.it/" target="_blank">fantastic location</a>. I want to thanks <a title="Adobe" href="http://www.adobe.com/" target="_blank">Adobe</a> and all the onAIRTour Team for all the ten sessions, for the good lunch and for all the fantastic prizes gived away during the day. I&#8217;m the lucky winner of a copy of <a title="Adobe Flex 3 Professional" href="http://www.adobe.com/products/flex/" target="_blank">Adobe Flex Builder 3 Professional</a>. Thanks Adobe!</p>
<p>I enjoyed a lot <a href="http://www.webkitchen.be/">Serge Jespers</a>&#8217;s session about &#8220;Deploying and Updating AIR Applications&#8221; and <a href="http://www.ashorten.com/" target="_blank">Andrew Shorten</a>&#8217;s one about &#8220;Data Intensive Enterprise AIR Applications&#8221;, but my preferred was &#8220;AIR Conditioning&#8221; , presented by <a title="The Flash Blog" href="http://theflashblog.com/" target="_blank">Lee Brimelow</a>, with a lot of demos (<a title="NativeWindower AIR Application" href="http://theflashblog.com/?p=398" target="_blank">NativeWindower</a>, <a title="AIRTube" href="http://theflashblog.com/?p=371" target="_blank">AIRTube</a>, <a title="SpitEmOut" href="http://theflashblog.com/?p=339" target="_blank">SpitEmOut</a>, etc.) and a lot of fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rblab.com/blog/2008/06/14/on-air-tour-milan/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
