<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Dan 'On Air'</title>
	<atom:link href="http://danonair.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://danonair.wordpress.com</link>
	<description>My journey on air, from an AJAX &#38; HTML perspective.</description>
	<lastBuildDate>Fri, 20 Feb 2009 18:17:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='danonair.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Dan 'On Air'</title>
		<link>http://danonair.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://danonair.wordpress.com/osd.xml" title="Dan &#039;On Air&#039;" />
	<atom:link rel='hub' href='http://danonair.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Saving Remote Files in Adobe Air</title>
		<link>http://danonair.wordpress.com/2009/02/19/saving-remote-files-in-adobe-air/</link>
		<comments>http://danonair.wordpress.com/2009/02/19/saving-remote-files-in-adobe-air/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 22:06:55 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Adobe Air]]></category>
		<category><![CDATA[adboe air]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[air]]></category>
		<category><![CDATA[remote files]]></category>
		<category><![CDATA[saving files]]></category>

		<guid isPermaLink="false">http://danonair.wordpress.com/?p=9</guid>
		<description><![CDATA[The next hurdle ive come across while working on Air. I needed to save files from a remote site, but found there was a lack of documentation or I just hadn&#8217;t looked hard enough ofcourse. I thought i would provide an example and please note I use AJAX/HTML for Air development. // Assign variable the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danonair.wordpress.com&amp;blog=6526168&amp;post=9&amp;subd=danonair&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The next hurdle ive come across while working on Air. I needed to save files from a remote site, but found there was a lack of documentation or I just hadn&#8217;t looked hard enough ofcourse. I thought i would provide an example and please note I use AJAX/HTML for Air development.</p>
<p><code><br />
// Assign variable the link to the remote file.<br />
var url = "http://&lt;Replace with URL to file you want to download&gt;";</code></p>
<p><code><br />
// Specify the name you want to save the file as.<br />
var fileName = "my_file_name.txt";</code></p>
<p><code><br />
// HTTP Request to the specified URL .<br />
var url = new air.URLRequest(url);</code></p>
<p><code><br />
// Assigns a new URL loader.<br />
var loader = new air.URLLoader();</code></p>
<p><code><br />
// Tells the loader to use Binary as the data format.<br />
loader.dataFormat = air.URLLoaderDataFormat.BINARY;</code></p>
<p><code><br />
// Adds a listener to run when the download completes, runs downloadCompleteHandler function.<br />
loader.addEventListener(air.Event.COMPLETE, downloadCompleteHandler);</code></p>
<p><code><br />
// Loads the actual data the was requested above.<br />
loader.load(url);</code></p>
<p><code><br />
// Function to be run when the load completes<br />
function downloadCompleteHandler(e) {</code></p>
<p><code><br />
//  Put loaded data into ByteArray<br />
var data = air.ByteArray(e.target.data);</code></p>
<p><code><br />
// Specifys a new directory in the Application Storage Dir<br />
var dir = air.File.applicationStorageDirectory.resolvePath("Example Folder");</code></p>
<p><code><br />
// Actually creates the directory specifed.<br />
dir.createDirectory();</code></p>
<p><code><br />
// Assign path to Application Storage Directory.<br />
var file = air.File.applicationStorageDirectory;</code></p>
<p><code><br />
//  Specify our newly created folder within the App Storage Directory.<br />
file = file.resolvePath("Example Folder");</code></p>
<p><code><br />
// Specify what we want our downloaded file to be called. we assigned the file name above.<br />
file = file.resolvePath(fileName);</code></p>
<p><code><br />
// Create new File Stream used to write to newley create file within the App Storage Dir<br />
var fileStream = new air.FileStream();</code></p>
<p><code><br />
// Open the new file in Update mode (means we can read/write to the new file)<br />
fileStream.open(file, air.FileMode.UPDATE);</code></p>
<p><code><br />
// Writes the loaded data from the ByteArray to our new file, the 0 and data.length tell it to write all of the bytes captured by the byte array.<br />
fileStream.writeBytes(data, 0, data.length);</code></p>
<p><code><br />
}</code></p>
<p>There you have it, you should now be able to download and write remote files in Adobe Air! Ive tried to explain best I can but let me know if ive made any mistakes and ill alter it. You can also go further with this example and add more event listeners  to capture errors or the progress of the download.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/danonair.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/danonair.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/danonair.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/danonair.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/danonair.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/danonair.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/danonair.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/danonair.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/danonair.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/danonair.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/danonair.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/danonair.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/danonair.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/danonair.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danonair.wordpress.com&amp;blog=6526168&amp;post=9&amp;subd=danonair&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://danonair.wordpress.com/2009/02/19/saving-remote-files-in-adobe-air/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/edd79261be547adc3d9e359d37ad3d64?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Dan</media:title>
		</media:content>
	</item>
		<item>
		<title>Printing Support in Adobe Air?</title>
		<link>http://danonair.wordpress.com/2009/02/12/printing-support-in-adobe-air/</link>
		<comments>http://danonair.wordpress.com/2009/02/12/printing-support-in-adobe-air/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 22:34:31 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Adobe Air]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[air]]></category>
		<category><![CDATA[print support]]></category>
		<category><![CDATA[printing]]></category>

		<guid isPermaLink="false">http://danonair.wordpress.com/?p=7</guid>
		<description><![CDATA[First major obstacle in the mission to produce a production ready application based on Adobe Air, wait for it, no printing support! Yes, i am serious. I couldn&#8217;t believe it when I first read about it, all I wanted is for a dynamically created document to be printed directly from my Adobe Air app, without [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danonair.wordpress.com&amp;blog=6526168&amp;post=7&amp;subd=danonair&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>First major obstacle in the mission to produce a production ready application based on Adobe Air, wait for it, no printing support! Yes, i am serious.</p>
<p>I couldn&#8217;t believe it when I first read about it, all I wanted is for a dynamically created document to be printed directly from my Adobe Air app, without printing headers and footers. I also didn&#8217;t want my users to have to change there browser settings to remove these. So that ruled out using the System Browser via the navigateToURL() function. Basically the window.print() function is not supported in Air. There also appears to be this dark cloud over the subject of printing support, everyone&#8217;s talking about it, but nothing is coming back from Adobe in the way of a &#8220;fix date&#8221; or when it is likely to be supported. I&#8217;ve heard you can print using the  flash.printing.PrintJob API which I believe is quite awkward. I hope Adobe Air isn&#8217;t favouring Action Script users! ;o)</p>
<p>My solution? PDF! It suits me to generate PDF&#8217;s that need to be printed, opening them <strong>within</strong> my Air app and include the standard Adobe Reader controls to Print, Zoom and so on. This actually proved to be better altogeather, as they are also files that can be emailed and archived. An interesting concept for producing PDF&#8217;s within Air is <a href="http://alivepdf.bytearray.org/">AlivePDF</a>. AlivePDF is written in Action Script 3 I believe and means you don&#8217;t have to generate the PDFs using a server side language like PHP. I&#8217;m using a server side language by the way, it just suites for my project.</p>
<p>There you have it, first major obsticle: No printing support in Adobe Air (as of version 1.5 anyway).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/danonair.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/danonair.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/danonair.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/danonair.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/danonair.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/danonair.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/danonair.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/danonair.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/danonair.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/danonair.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/danonair.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/danonair.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/danonair.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/danonair.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danonair.wordpress.com&amp;blog=6526168&amp;post=7&amp;subd=danonair&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://danonair.wordpress.com/2009/02/12/printing-support-in-adobe-air/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/edd79261be547adc3d9e359d37ad3d64?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Dan</media:title>
		</media:content>
	</item>
		<item>
		<title>Brief Intro&#8230;</title>
		<link>http://danonair.wordpress.com/2009/02/10/brief-intro/</link>
		<comments>http://danonair.wordpress.com/2009/02/10/brief-intro/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 22:09:52 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://danonair.wordpress.com/?p=5</guid>
		<description><![CDATA[This is the first post on an all new blog. I thought that i would log my events that i encounter when creating an application(s) using Adobe Air. This is the first time i have used Air and i must admit the whole concept of the Intergrated Runtime is quite exciting. I am a guy [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danonair.wordpress.com&amp;blog=6526168&amp;post=5&amp;subd=danonair&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is the first post on an all new blog.</p>
<p>I thought that i would log my events that i encounter when creating an application(s) using Adobe Air. This is the first time i have used Air and i must admit the whole concept of the Intergrated Runtime is quite exciting.</p>
<p>I am a guy from the UK who enjoys creating web based applications! Don&#8217;t shoot me if the grammer and English in general isnt 100%. The coding languages I use are PHP, HTML and limited JS. I have just started using <a href="http://jquery.com/" target="_blank">JQuery</a>, alot, and i like it ;o).</p>
<p>There you go, a brief intro! Enjoy.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/danonair.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/danonair.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/danonair.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/danonair.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/danonair.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/danonair.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/danonair.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/danonair.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/danonair.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/danonair.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/danonair.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/danonair.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/danonair.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/danonair.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danonair.wordpress.com&amp;blog=6526168&amp;post=5&amp;subd=danonair&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://danonair.wordpress.com/2009/02/10/brief-intro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/edd79261be547adc3d9e359d37ad3d64?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Dan</media:title>
		</media:content>
	</item>
	</channel>
</rss>
