<?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>Ninetynine.be &#187; AIR</title>
	<atom:link href="http://ninetynine.be/blog/category/air/feed/" rel="self" type="application/rss+xml" />
	<link>http://ninetynine.be/blog</link>
	<description>Just another blog with no useful content on it at all.</description>
	<lastBuildDate>Sun, 08 Jan 2012 10:39:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Doc? v3.0 BETA released</title>
		<link>http://ninetynine.be/blog/2009/12/doc-v3-0-beta-released/</link>
		<comments>http://ninetynine.be/blog/2009/12/doc-v3-0-beta-released/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 10:43:21 +0000</pubDate>
		<dc:creator>michiel</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Doc?]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://ninetynine.be/blog/?p=585</guid>
		<description><![CDATA[Yesterday we&#8217;ve released a public beta from the new Doc? (v3.0) Go and check it out at www.airdoc.be! Here are some of the most important new features : Minimize/Close to tray (WINDOWS) Local Books Online Books Download Inline Search Performance Upgrade (SQLITE) Custom tree icons Complete design makeover Take a look on our website to [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday we&#8217;ve released a public beta from the new Doc? (v3.0)<br />
Go and check it out at <a href="http://www.airdoc.be/">www.airdoc.be</a>!</p>
<p><a href="http://www.airdoc.be/"><img src="http://ninetynine.be/blog/wp-content/uploads/2009/12/feature_doc.png" alt="Doc? Air Local Livedocs" title="Doc? Air Local Livedocs" width="515" height="340" class="aligncenter size-full wp-image-586" /></a></p>
<p>Here are some of the most important new features :</p>
<ul style="list-style-type: square;">
<li> 	Minimize/Close to tray (WINDOWS)</li>
<li> 	Local Books</li>
<li> Online Books Download</li>
<li> 	Inline Search</li>
<li> Performance Upgrade (SQLITE)</li>
<li> 	Custom tree icons</li>
<li> Complete design makeover</li>
</ul>
<p>Take a look on our website to learn more &#8230;</p>
<p><br/></p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://ninetynine.be/blog/2009/12/doc-v3-0-beta-released/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Flex: TabNavigator Label Jump (Quick Fix)</title>
		<link>http://ninetynine.be/blog/2009/12/flex-tabnavigator-label-jump-quick-fix/</link>
		<comments>http://ninetynine.be/blog/2009/12/flex-tabnavigator-label-jump-quick-fix/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 11:38:03 +0000</pubDate>
		<dc:creator>michiel</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://ninetynine.be/blog/?p=543</guid>
		<description><![CDATA[Hey, Somethings been bugging me while skinning a flex application : The label from the selected tab from the TabNavigator component is 1px lower than the other tabs. As you can see in the example. (It has something to to with the bottom border I&#8217;m guessing). This can help as a visual support you are [...]]]></description>
			<content:encoded><![CDATA[<p>Hey,</p>
<p>Somethings been bugging me while skinning a flex application :</p>
<p>The label from the selected tab from the <a href="http://livedocs.adobe.com/flex/3/langref/mx/containers/TabNavigator.html">TabNavigator</a> component is 1px lower than the other tabs. As you can see in the example.<br />
(It has something to to with the bottom border I&#8217;m guessing).</p>
<p> This can help as a visual support you are on a different tab, but I found it rather annoying, so here is my fix for it.<br />
A quick fix by changing the &#8220;<em>paddingTop</em>&#8221; property.</p>
<p><br/><br />
View source is enabled so can download the example there.<br />
<a href="http://ninetynine.be/blog/wp-content/uploads/2009/12/srcview/index.html">http://ninetynine.be/blog/wp-content/uploads/2009/12/srcview/index.html</a><br />

<object width="500" height="100">
<param name="movie" value="http://ninetynine.be/blog/wp-content/uploads/2009/12/TabNavFix.swf"></param>
<param name="quality" value="high"></param>
<param name="wmode" value="window"></param>
<param name="menu" value="false"></param>
<param name="bgcolor" value="#FFFFFF"></param>
<embed type="application/x-shockwave-flash" width="500" height="100" src="http://ninetynine.be/blog/wp-content/uploads/2009/12/TabNavFix.swf" quality="high" bgcolor="#FFFFFF" wmode="window" menu="false" ></embed>
</object>
<br />
Code after the jump.<br/><br/></p>
<p><span id="more-543"></span><br/></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">events</span>.<span style="color: #006600;">IndexChangedEvent</span>;
<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">events</span>.<span style="color: #006600;">FlexEvent</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">/*
*	@author: Michiel Vancoillie
*	http://www.ninetynine.be
*/</span>
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span>
&nbsp;
	<span style="color: #808080; font-style: italic;">//fix the first selected tab</span>
	fixedTabNav.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">ADDED_TO_STAGE</span>,onTabNavCreated<span style="color: #66cc66;">&#41;</span>;
	<span style="color: #808080; font-style: italic;">//fix the newly selected tab</span>
	fixedTabNav.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>IndexChangedEvent.<span style="color: #006600;">CHANGE</span>,onTabNavChanged<span style="color: #66cc66;">&#41;</span>;
&nbsp;
	<span style="color: #808080; font-style: italic;">//JUST ADD THE SAME EVENTLISTENERS TO ALL TABNAVIGATORS YOU WANT FIXED</span>
	<span style="color: #808080; font-style: italic;">//notfixedTabNav.addEventListener(Event.ADDED_TO_STAGE,onTabNavCreated);</span>
	<span style="color: #808080; font-style: italic;">//notfixedTabNav.addEventListener(IndexChangedEvent.CHANGE,onTabNavChanged);</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onTabNavCreated<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<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> tabNav:TabNavigator = <span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">target</span> as TabNavigator;
	tabNav.<span style="color: #006600;">getTabAt</span><span style="color: #66cc66;">&#40;</span>tabNav.<span style="color: #006600;">selectedIndex</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">setStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'paddingTop'</span>,-<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onTabNavChanged<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:IndexChangedEvent<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> tabNav:TabNavigator = <span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">target</span> as TabNavigator;
	<span style="color: #808080; font-style: italic;">//reset the old tab</span>
	tabNav.<span style="color: #006600;">getTabAt</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #006600;">oldIndex</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">setStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'paddingTop'</span>,<span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #808080; font-style: italic;">//fix the new tab</span>
	tabNav.<span style="color: #006600;">getTabAt</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #006600;">newIndex</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">setStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'paddingTop'</span>,-<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://ninetynine.be/blog/2009/12/flex-tabnavigator-label-jump-quick-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex: Runtime font embedding using compiled CSS with loader</title>
		<link>http://ninetynine.be/blog/2009/04/flex-runtime-font-embedding-using-compiled-css-with-loader/</link>
		<comments>http://ninetynine.be/blog/2009/04/flex-runtime-font-embedding-using-compiled-css-with-loader/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 19:57:52 +0000</pubDate>
		<dc:creator>michiel</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://ninetynine.be/blog/?p=118</guid>
		<description><![CDATA[A missing feature in Flex is the ability to load fonts at runtime. &#8216;Why is this useful?&#8217;, you could ask. Well one situation is you&#8217;re creating an online rich text editor, and you want to add a font to the font list. You would only have to edit the css and upload the new swf [...]]]></description>
			<content:encoded><![CDATA[<p>A missing feature in Flex is the ability to load fonts at runtime. </p>
<p>&#8216;Why is this useful?&#8217;, you could ask. Well one situation is you&#8217;re creating an online rich text editor, and you want to add a font<br />
to the font list. You would only have to edit the css and upload the new swf instead of the whole application. Or you want a client<br />
to be able to add fonts without him having the source code from the application.</p>
<p><br/>Luckily it&#8217;s possible in Flex to load runtime CSS compiled as an SWF with the StyleManager class.<br />
<a href="http://livedocs.adobe.com/flex/gumbo/langref/mx/styles/StyleManager.html">StyleManager on LiveDocs</a></p>
<p>Fonts.css Example :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@font-face {</span>
    src<span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;fonts/Arial.ttf&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
    fontFamily<span style="color: #00AA00;">:</span><span style="color: #ff0000;">&quot;Arial&quot;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p><strong>How to compile the CSS to SWF?</strong><br/><br />
<span id="more-118"></span><br />
<img src="http://ninetynine.be/blog/wp-content/uploads/2009/04/compile-css-to-swf.png" alt="Flex Builder Compile CSS to SWF" title="Flex Builder Compile CSS to SWF" width="216" height="59" class="alignleft size-full wp-image-131"   style="border:1px solid #C0C0C0"/><br />
In Flex Builder you can right click any CSS inside your source and check the &#8220;compile CSS to SWF&#8221; option.<br />
<br/><br />
An alternative way to compile the CSS to SWF is using the command line :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">mxmlc Fonts.css</pre></td></tr></table></div>

<p><br/><br />
<strong>Loading the compiled stylesheet</strong></p>
<p>For the example where we just compiled the Fonts.css to Fonts.swf</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">styles</span>.<span style="color: #006600;">StyleManager</span>;
&nbsp;
StyleManager.<span style="color: #006600;">loadStyleDeclarations</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Fonts.swf&quot;</span><span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

<p>It&#8217;s as simple as that&#8230;  you can now start using the font.<br />
The nice thing about this is you can now load your fonts visually using an intermediate loader or animation.<br />
<br/><br />
<strong>Loading the stylesheet visually with intermediate loader</strong></p>
<p>First thing we do is create a custom titlewindow with a preloader in it to show the loading.<br />
We can catch the <strong>StyleEvent.COMPLETE</strong> with an <strong>IEventDispatcher</strong>.<br />
Right click the example for the source code.</p>
<p>
<object width="500" height="100">
<param name="movie" value="http://ninetynine.be/blog/wp-content/uploads/2009/04/fontEmbedding.swf"></param>
<param name="quality" value="high"></param>
<param name="wmode" value="window"></param>
<param name="menu" value="false"></param>
<param name="bgcolor" value="#FFFFFF"></param>
<embed type="application/x-shockwave-flash" width="500" height="100" src="http://ninetynine.be/blog/wp-content/uploads/2009/04/fontEmbedding.swf" quality="high" bgcolor="#FFFFFF" wmode="window" menu="false" ></embed>
</object>
</p>
<p><br/><br />
You can use this to &#8216;preload&#8217; any stylesheet.</p>
<p>Compiling CSS to SWF and loading it runtime is also used for application with theme support.<br />
You can read more about that and view an example here : <a href="http://onflash.org/ted/2007/01/flex-201-understand-runtime-css.php">Understanding runtime CSS</a><br />
<br/></p>
<p>Happy coding!</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://ninetynine.be/blog/2009/04/flex-runtime-font-embedding-using-compiled-css-with-loader/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Growl messages with AIR</title>
		<link>http://ninetynine.be/blog/2009/03/growl-messages-with-air/</link>
		<comments>http://ninetynine.be/blog/2009/03/growl-messages-with-air/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 20:21:40 +0000</pubDate>
		<dc:creator>michiel</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[growl]]></category>
		<category><![CDATA[notification]]></category>

		<guid isPermaLink="false">http://ninetynine.be/blog/?p=46</guid>
		<description><![CDATA[For an AIR application that I&#8217;m creating (more about that later), I needed some way to show the users some event happened while the application was running in the background. So what&#8217;s better on Mac OS than showing growl notifications ? Adobe has worked together with the Growl team to add support for AIR and [...]]]></description>
			<content:encoded><![CDATA[<p>For an AIR application that I&#8217;m creating (more about that later), I needed some way to show the users some event happened while the application was running in the background. So what&#8217;s better on Mac OS than showing <a href="http://www.growl.info">growl</a> notifications <img src='http://ninetynine.be/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ?<br />
<br/><br />
<img class="alignnone size-full wp-image-54" title="Growl message with as3" src="http://ninetynine.be/blog/wp-content/uploads/2009/03/growl-with-as3.png" alt="Growl message with as3" width="341" height="121" /><br />
<br/><br />
Adobe has worked together with the Growl team to add support for AIR and flash applications.<br />
<a href="http://www.mikechambers.com/blog/">Mike Chambers</a> has put together an open source project named <a href="http://code.google.com/p/as3growl/">as3growl</a> which provides an API to work with the new Growl build.<br />
<br/><br />
<span id="more-46"></span></p>
<blockquote><p>The as3growl library is an ActionScript library that leverages new TCP socket communication functionality within the Growl notification framework to allow Adobe AIR and Flash applications to register with, send notifications, and receive events from the Growl service.</p></blockquote>
<p>You can grab the latest as3growl <a href="http://code.google.com/p/as3growl/downloads/list">here</a> or with the svn :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">svn</span> checkout http:<span style="color: #000000; font-weight: bold;">//</span>as3growl.googlecode.com<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>trunk<span style="color: #000000; font-weight: bold;">/</span> as3growl-read-only</pre></td></tr></table></div>

<p><br/>The support for AIR and flash is not yet in the release version, so the first step is download the nightly build from growl :</p>
<p><a href="http://bitbucket.org/evands/growl/changeset/eb9d3e4d9fa3/">http://bitbucket.org/evands/growl/changeset/eb9d3e4d9fa3/</a></p>
<blockquote>
<ol>
<li>Unzip</li>
<li>Open Growl.xcodeproj in Xcode 3.1</li>
<li>Set target to &#8220;Deployment&#8221;</li>
<li>Build</li>
<li>Double click the &#8220;Build/Deployment/Growl.prefPane&#8221; file to install the compiled Growl. </li>
</ol>
</blockquote>
<p>To start using the as3growl API, you can check out the example on the wiki:<br />
<a href="To start using the as3growl API, you can check out the wiki: http://code.google.com/p/as3growl/wiki/UsingTheLibrary">http://code.google.com/p/as3growl/wiki/UsingTheLibrary</a></p>
<p>I&#8217;ll probably post a little tutorial later!</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://ninetynine.be/blog/2009/03/growl-messages-with-air/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

