<?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>undefined-type &#187; AIR</title>
	<atom:link href="http://undefined-type.com/category/air/feed/" rel="self" type="application/rss+xml" />
	<link>http://undefined-type.com</link>
	<description>Flex,Flash &#38; AIR</description>
	<lastBuildDate>Wed, 18 Nov 2009 09:48:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Air Application Auto-Update</title>
		<link>http://undefined-type.com/2008/07/air-application-auto-update/</link>
		<comments>http://undefined-type.com/2008/07/air-application-auto-update/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 17:32:44 +0000</pubDate>
		<dc:creator>Bäcker</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[auto-update]]></category>

		<guid isPermaLink="false">http://localhost/undefined_type_/?p=147</guid>
		<description><![CDATA[There is a SDK at Adobe Labs with a beta of Air Application Updates. There are 2 ways, using the UI update and the headerless update. The headerless allows you to make updates and checks without the end-user knowing the checks.
Lets make a small example.
Short Description:
1.) Local AIR Application read local config file.
2.) The config [...]]]></description>
			<content:encoded><![CDATA[<p>There is a SDK at <a href="http://labs.adobe.com/">Adobe Labs</a> with a beta of Air Application Updates. There are 2 ways, using the UI update and the headerless update. The headerless allows you to make updates and checks without the end-user knowing the checks.</p>
<p>Lets make a small example.</p>
<p><strong>Short Description:</strong><br />
1.) Local AIR Application read local config file.<br />
2.) The config file points to external (online) config file.<br />
3.) Online Config file holds online released update and path to file.<br />
4.) If file is never, download and upgrade</p>
<p><a href="http://undefined-type.com/wp-content/air-updater.png" rel="lightbox[147]"><img class="alignnone size-full wp-image-257" title="air-updater" src="http://undefined-type.com/wp-content/air-updater.png" alt="air-updater" width="420" height="538" /></a></p>
<p><strong>1.) Download the SDK</strong><br />
1.1) Download the files from <a href="http://labs.adobe.com/wiki/index.php/Adobe_AIR_Update_Framework">Adobe Labs AIR Update Framework</a>.<br />
1.2) Put the 2 *.swc file into your app-folder/sdks/3.0.0/libs/air</p>
<p><strong>2.) Create a Project</strong><br />
2.1) Well, you know how to create a Flex AIR Project =)</p>
<p><strong>3.) The Local Settings File</strong><br />
3.1) Create an XML file in the project (mine is config.xml)<br />
3.2) Change the url path where the online pointer file is.<br />
3.3) If using the GUI version of update change the settings in defaultUI</p>
<pre>&lt;configuration xmlns="http://ns.adobe.com/air/framework/update/configuration/1.0"&gt;
	&lt;url&gt;http://www.undefined-type.com/update-buxfer.xml&lt;/url&gt;
	&lt;delay&gt;1&lt;/delay&gt;
	&lt;defaultUI&gt;
		&lt;dialog name="checkForUpdate" visible="true" /&gt;
		&lt;dialog name="downloadUpdate" visible="true" /&gt;
		&lt;dialog name="downloadProgress" visible="true" /&gt;
		&lt;dialog name="installUpdate" visible="true" /&gt;
		&lt;dialog name="fileUpdate" visible="true" /&gt;
		&lt;dialog name="unexpectedError" visible="true" /&gt;
	&lt;/defaultUI&gt;
&lt;/configuration&gt;</pre>
<p><strong>4.) Create the Online Pointer File</strong><br />
4.1) Create the XML file, (mines called update-buxfer.xml) this is so that I put all my pointer xml file at 1 place on my server.<br />
4.2) Fill the file with example code.</p>
<pre>&lt;update xmlns="http://ns.adobe.com/air/framework/update/description/1.0"&gt;
  &lt;version&gt;1.4&lt;/version&gt;
  &lt;url&gt;http://undefined-type.com/apps/buxfer_1.4.air&lt;/url&gt;
  &lt;description&gt;
           &lt;![CDATA[
               This update enables automatic updates in the future.
           ]]&gt;
   &lt;/description&gt;
&lt;/update&gt;</pre>
<p><strong>5.) The actual file</strong><br />
5.1) Don&#8217;t forget to put the actual new *.air file on the server where you are pointing =)<br />
5.2) When building make sure as well to change the &#8220;version&#8221; in the application xml file.</p>
<p><strong>6.) The Code</strong><br />
6.1) When you want to check the update just add this code.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">import</span> air.<span style="color: #006600;">update</span>.<span style="color: #006600;">events</span>.<span style="color: #006600;">UpdateEvent</span>;
<span style="color: #0066CC;">import</span> air.<span style="color: #006600;">update</span>.<span style="color: #006600;">ApplicationUpdaterUI</span>;
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> updater : ApplicationUpdaterUI;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> check<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> confFile : File = File.<span style="color: #006600;">applicationDirectory</span>.<span style="color: #006600;">resolvePath</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;config-template.xml&quot;</span><span style="color: #66cc66;">&#41;</span>;
	updater = <span style="color: #000000; font-weight: bold;">new</span> ApplicationUpdaterUI<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	updater.<span style="color: #006600;">configurationFile</span> = confFile;
	updater.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>UpdateEvent.<span style="color: #006600;">INITIALIZED</span>, onInit<span style="color: #66cc66;">&#41;</span>;
	updater.<span style="color: #006600;">initialize</span><span style="color: #66cc66;">&#40;</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> onInit<span style="color: #66cc66;">&#40;</span>event:UpdateEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
<span style="color: #66cc66;">&#123;</span>
	updater.<span style="color: #006600;">checkNow</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://undefined-type.com/2008/07/air-application-auto-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Buxfer Sweden Bank Converter</title>
		<link>http://undefined-type.com/2008/07/buxfer-sweden-bank-converter/</link>
		<comments>http://undefined-type.com/2008/07/buxfer-sweden-bank-converter/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 17:01:35 +0000</pubDate>
		<dc:creator>Bäcker</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[bank]]></category>
		<category><![CDATA[buxfer]]></category>
		<category><![CDATA[convert]]></category>

		<guid isPermaLink="false">http://localhost/undefined_type_/?p=108</guid>
		<description><![CDATA[I figured that I would start keeping track on my personal bank accounts. Where does my money go anyway, why is it always empty ???
So after a little surfing on the web I found http://www.buxfer.com
Wonderful site with its simple way of tracking, keeping metadata tags for grouping. Just so simple and I love it. Then [...]]]></description>
			<content:encoded><![CDATA[<p>I figured that I would start keeping track on my personal bank accounts. Where does my money go anyway, why is it always empty ???</p>
<p>So after a little surfing on the web I found <a title="Buxfer" href="http://www.buxfer.com" target="_blank">http://www.buxfer.com</a></p>
<p>Wonderful site with its simple way of tracking, keeping metadata tags for grouping. Just so simple and I love it. Then the problem came. I want to import my accounts and not do it manually and buxfer doesn’t support my bank (but it supports a very long list of other banks).</p>
<p><strong>Download</strong> and try the air application: <a href="http://undefined-type.com/wp-content/uploads/2008/07/buxferbankaccountconverter.air">buxferbankaccountconverter</a></p>
<p>So what happened I wrote my own little parser.</p>
<p><strong>#1 Copy &amp; Paste Bank Account data</strong></p>
<p><a href="http://undefined-type.com/wp-content/uploads/2008/07/buxfer-account.png" rel="lightbox[108]"><img class="alignnone size-medium wp-image-280" title="buxfer-account" src="http://undefined-type.com/wp-content/uploads/2008/07/buxfer-account-300x71.png" alt="buxfer-account" width="300" height="71" /></a></p>
<p><strong>#2 Paste into the converter and run it. Has for now Handelsbanken &amp; Nordea. Export to the csv file.</strong></p>
<p><a href="http://undefined-type.com/wp-content/uploads/2008/07/buxfer-convert.png" rel="lightbox[108]"><img class="alignnone size-medium wp-image-281" title="buxfer-convert" src="http://undefined-type.com/wp-content/uploads/2008/07/buxfer-convert-300x147.png" alt="buxfer-convert" width="300" height="147" /></a></p>
<p><strong>#3 Import into Buxfer</strong></p>
<p><a href="http://undefined-type.com/wp-content/uploads/2008/07/buxfer-import.png" rel="lightbox[108]"><img class="alignnone size-medium wp-image-282" title="buxfer-import" src="http://undefined-type.com/wp-content/uploads/2008/07/buxfer-import-300x140.png" alt="buxfer-import" width="300" height="140" /></a></p>
<p>&#8212;&#8212;&#8212;-<br />
<strong>UPDATED: 2008-07-05</strong><br />
Added support for banks<br />
- Handelsbanken<br />
- Nordea<br />
- Swedbank<br />
Extras<br />
- Added support for direct upload data into buxfer account.<br />
&#8212;&#8212;&#8212;-<br />
<strong>UPDATED: 2008-07-13</strong><br />
Added support for banks<br />
- SEB<br />
&#8212;&#8212;&#8212;-<br />
<strong>UPDATED: 2008-07-22</strong><br />
Bugfix<br />
- Sort order by date and lock columns</p>
<p>- Remove Saldo in descriptions, messes up saldo for buxfer.<br />
&#8212;&#8212;&#8212;-<br />
<strong>UPDATED: 2008-07-30</strong><br />
Added support</p>
<p>- Application auto-update.<br />
&#8212;&#8212;&#8212;-<br />
<strong>UPDATE: 2009-02-21</strong> (Version 1.5)<br />
Fixed Handelsbanken Copy/Paste linebreaks<br />
&#8212;&#8212;&#8212;-<br />
Note: seems like problems for recognizing income/expense when uploading data.<br />
&#8212;&#8212;&#8212;-<br />
<strong>UPDATE:2009-03-31</strong> (Version 1.6)<br />
Fixed MAC OS 10.5 Paste problem.<br />
A confirmed bug in Mac os x 10.5 made it almost impossible to copy/paste the account data to the application. The fix is to hijack the text event:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">textField1.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>TextEvent.<span style="color: #006600;">TEXT_INPUT</span>, input<span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">function</span> input<span style="color: #66cc66;">&#40;</span>event:TextEvent<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
event.<span style="color: #006600;">preventDefault</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">textField</span>:<span style="color: #0066CC;">TextField</span> = event.<span style="color: #0066CC;">target</span> as <span style="color: #0066CC;">TextField</span>;
<span style="color: #000000; font-weight: bold;">var</span> currentText:<span style="color: #0066CC;">String</span> = <span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">text</span>;
<span style="color: #000000; font-weight: bold;">var</span> insertionPrefix:<span style="color: #0066CC;">String</span> = currentText.<span style="color: #0066CC;">substr</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>, <span style="color: #0066CC;">textField</span>.<span style="color: #006600;">selectionBeginIndex</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">var</span> insertionSuffix:<span style="color: #0066CC;">String</span> = currentText.<span style="color: #0066CC;">substr</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">textField</span>.<span style="color: #006600;">selectionEndIndex</span>, currentText.<span style="color: #0066CC;">length</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">text</span> = insertionPrefix + event.<span style="color: #0066CC;">text</span> + insertionSuffix;
<span style="color: #000000; font-weight: bold;">var</span> caretIndex:<span style="color: #0066CC;">int</span> = insertionPrefix.<span style="color: #0066CC;">length</span> + event.<span style="color: #0066CC;">text</span>.<span style="color: #0066CC;">length</span>;
<span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">setSelection</span><span style="color: #66cc66;">&#40;</span>caretIndex, caretIndex<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>more information about the bug can be found at <a href="http://bugs.adobe.com/jira/browse/FP-780" target="_blank">adobe bugs</a>.</p>
<p><strong>Download</strong> and try the air application: <a href="http://undefined-type.com/wp-content/uploads/2008/07/buxferbankaccountconverter.air">buxferbankaccountconverter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://undefined-type.com/2008/07/buxfer-sweden-bank-converter/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>ColorPicker Apollo</title>
		<link>http://undefined-type.com/2007/09/colorpicker-apollo/</link>
		<comments>http://undefined-type.com/2007/09/colorpicker-apollo/#comments</comments>
		<pubDate>Tue, 11 Sep 2007 16:10:56 +0000</pubDate>
		<dc:creator>Bäcker</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[apollo]]></category>
		<category><![CDATA[color]]></category>

		<guid isPermaLink="false">http://localhost/undefined_type_/?p=34</guid>
		<description><![CDATA[I’ve started to play around in Flex, AS3. When doing that why not add some Apollo to the mix.
One of my Art Directors wanted a tool for selecting colors in a specified range. So a made my first small Apollo application.
colorpicker-source
colorpicker-air

]]></description>
			<content:encoded><![CDATA[<p>I’ve started to play around in Flex, AS3. When doing that why not add some Apollo to the mix.</p>
<p>One of my Art Directors wanted a tool for selecting colors in a specified range. So a made my first small Apollo application.</p>
<p><a href="http://undefined-type.com/wp-content/uploads/2007/09/colorpicker.zip">colorpicker-source</a></p>
<p><a href="http://undefined-type.com/wp-content/uploads/2007/09/colorpickerair.zip">colorpicker-air</a></p>
<p><a href="http://undefined-type.com/wp-content/uploads/2007/09/colorpicker.jpg" rel="lightbox[34]"><img class="alignnone size-medium wp-image-308" title="colorpicker" src="http://undefined-type.com/wp-content/uploads/2007/09/colorpicker-281x299.jpg" alt="colorpicker" width="281" height="299" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://undefined-type.com/2007/09/colorpicker-apollo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

