<?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>nothing yet &#124; jason madsen &#187; AIR</title>
	<atom:link href="http://knomedia.com/blog/tag/air/feed/" rel="self" type="application/rss+xml" />
	<link>http://knomedia.com/blog</link>
	<description>ActionScript, Flex, Flash thoughts</description>
	<lastBuildDate>Sat, 24 Jul 2010 17:07:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>ActionScript AIR Projects In Flash Builder</title>
		<link>http://knomedia.com/blog/2010/05/11/actionscript-air-projects-in-flash-builder/</link>
		<comments>http://knomedia.com/blog/2010/05/11/actionscript-air-projects-in-flash-builder/#comments</comments>
		<pubDate>Tue, 11 May 2010 18:54:36 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Builder]]></category>

		<guid isPermaLink="false">http://knomedia.com/blog/?p=409</guid>
		<description><![CDATA[How to build an ActionScript AIR project using Flash Builder]]></description>
			<content:encoded><![CDATA[<p>I have been using Flex Builder ( and now Flash Builder ) as my ActionScript editor for a few years now.  I have put together a nice little workflow for designing in the Flash IDE, while developing, managing, and compiling my projects in Flash Builder.  When it came to working with AIR however there was a slight hiccup.  In Flash Builder, ( or  previous versions of Flex Builder ) there is no option for an ActionScript based (i.e. not Flex) AIR project.</p>
<p>I have seen a few workarounds, but none as simple as a tip I overheard on Twitter from <a href="http://twitter.com/__ted__/">Ted Patrick</a>.  So here it is, either read on, or watch a quick two minute <a href="http://knomedia.com/videos/video.php?id=1">screen-cast</a> I put together. </p>
<p>1.  Create a new Flex Project in Flash Builder.</p>
<p>2.  In the New Flex Project Wizard, give your project a name</p>
<p>3.  Choose Desktop (runs in Adobe AIR)</p>
<p>4.  Select &#8220;Next >&#8221; in the wizard</p>
<p>5.  Still in the Wizard click &#8220;Next >&#8221; again to bypass the Ouptut folder ( you can change it if you feel so inclined )</p>
<p>6.  Still in the Wizard change the file extension of your Main application file from .mxml to .as</p>
<p>7.  Select Finish</p>
<p>When you compile, and run the application in ADL, you won&#8217;t actually see the native window.  Here is where the tip from Ted Patrick comes in.  In your application-descriptor.xml file, change the visible tag to true.  Compile and run.  You should have a nice native window showing up.  You can set the initial width, height, backgroundColor, and frameRate using the [SWF] annotation / meta-tag.</p>
<p>Optionally, if you would rather wait to have the native window be visible, you can do so using ActionScript by setting the visible property of the nativeWindow instance of the stage like so:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">stage</span>.<span style="color: #006600;">nativeWindow</span>.<span style="color: #0066CC;">visible</span> = <span style="color: #000000; font-weight: bold;">true</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://knomedia.com/blog/2010/05/11/actionscript-air-projects-in-flash-builder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe Air Version Checker</title>
		<link>http://knomedia.com/blog/2009/12/10/adobe-air-version-checker/</link>
		<comments>http://knomedia.com/blog/2009/12/10/adobe-air-version-checker/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 18:16:16 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[AIR]]></category>

		<guid isPermaLink="false">http://knomedia.com/blog/?p=382</guid>
		<description><![CDATA[I had problems getting AIR updated to 1.5.3, and needed to build a little widget to verify that I had the correct runtime.  Download the widget and check for yourself]]></description>
			<content:encoded><![CDATA[<p>So I had a bit of an annoying morning today.  I went to update from AIR 1.5.2 to the <a href='http://get.adobe.com/air/'>latest release (1.5.3)</a>.  The process didn&#8217;t go so smoothly.  Long story short the updater would just hang up and sit there.  I tried uninstalling 1.5.2 to get a fresh version of 1.5.3 rather than an update.  No luck, the uninstaller wouldn&#8217;t work.  I kept getting error messages about possibly not being an admin on my machine.  Not true, I am the admin&#8230;.  So what to do&#8230;  Looking around the interwebz, it doesn&#8217;t seem like others are having the same trouble.</p>
<p>I checked permissions, restarted.  Tried again, no luck.  Tried again, and what?  It tells me that I already have 1.5.3 installed.  Huh?  On which of the failed attempts did that happen?  So I thought I would check the version number somehow.  After a bit of googling.  I found no easy way to verify the version number.  You can do it programatically from within ActionScript.  To do so you simply look at the following:<br />
<br/></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">NativeApplication.<span style="color: #006600;">nativeApplication</span>.<span style="color: #006600;">runtimeVersion</span></pre></div></div>

<p>Looking at that property from within your IDE will tell you which version of the runtime you have in your installed SDK.  To see which actual version of AIR is installed for AIR apps that you are running on the machine you need to execute the code within that environment.</p>
<p>So I built a quick little widget that displays the installed runtime version.  Nothing too fancy here, just a utility.  Feel free to install and use it via the badge installer below&#8230;</p>
<p><div id="flashcontent1133" style="width:215px; height:180px;"><strong>Please upgrade your Flash Player</strong> In order to view this content you will need to have the latest version of the Adobe Flash Player.</div><script type="text/javascript">
<!-- // <![CDATA[
var so = new SWFObject("http://knomedia.com/blog/wp-content/plugins/air-badge/AIRInstallBadge.swf", "Badge", "215", "180", "9.0.115", "#FFFFFF");
so.useExpressInstall("http://knomedia.com/blog/wp-content/plugins/air-badge/expressinstall.swf");
so.addVariable("airversion", "1.0");
so.addVariable("appname", "VersionChecker");
so.addVariable("appurl", "http://www.knomedia.com/air/versionChecker/VersionChecker.air");
so.addVariable("appid", "VersionChecker");
so.addVariable("pubid", "");
so.addVariable("appversion", "1.0");
so.addVariable("imageurl", "http://www.knomedia.com/air/versionChecker/assets/vc_badgeImage.png");
so.addVariable("appinstallarg", "installed from web");
so.addVariable("applauncharg", "launched from web");
so.addVariable("helpurl", "help.html");
so.addVariable("hidehelp", "true");
so.addVariable("skiptransition", "false");
so.addVariable("titlecolor", "#00AAFF");
so.addVariable("buttonlabelcolor", "#00AAFF");
so.addVariable("appnamecolor", "#00AAFF");
so.addVariable("str_err_airswf", "<u>Running locally?</u><br/><br/>The AIR proxy swf won't load properly when this is run from the local file system.");
so.write("flashcontent1133");
// ]]&gt; -->
</script>
</p>
<p>You can install the widget from the install badge above, or you can download the .air installer <a href="http://www.knomedia.com/air/versionChecker/VersionChecker.air">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://knomedia.com/blog/2009/12/10/adobe-air-version-checker/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Tour De Flex</title>
		<link>http://knomedia.com/blog/2008/11/18/tour-de-flex/</link>
		<comments>http://knomedia.com/blog/2008/11/18/tour-de-flex/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 15:44:24 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Tour De Flex]]></category>

		<guid isPermaLink="false">http://knomedia.com/blog/?p=161</guid>
		<description><![CDATA[So originally my work was planning on sending me (and a few others) to MAX NA 08, in San Fran. Without sounding too bitter, they changed the plans on us. So we are left in Orlando reading blog posts, and news updates from the sessions. Hopefully Adobe will put the videos up on Adobe TV [...]]]></description>
			<content:encoded><![CDATA[<p><a href=""><img src="http://knomedia.com/blog/wp-content/uploads/2008/11/tourdeflex.png" alt="Tour De Flex" title="Tour De Flex" width="128" height="128" class="alignleft size-full wp-image-130" /></a>So originally my work was planning on sending me (and a few others) to MAX NA 08, in San Fran.  Without sounding too bitter, they changed the plans on us.  So we are left in Orlando reading blog posts, and news updates from the sessions.  Hopefully Adobe will put the videos up on <a href='http://tv.adobe.com/'>Adobe TV</a> like they have been with some of the recent conferences.</p>
<p>Anyhow, in my readings about MAX, I have come across the <a href='http://flex.org/tour'>Tour De Flex</a> application that a few of the Adobe evangelists have put together.  It&#8217;s an AIR application that gives you samples on using everything Flex, from the very basics, to some interesting third party components, and even some cloud API&#8217;s.  It has working examples for everything.  A great application.  They even have a system in place to allow developers to showcase their own work through a submission process.  I can see this application being helpful for people just getting into Flex, or as a reference for Flex developers for those &#8216;how does that component work again&#8230;&#8217; moments.</p>
<p>There is also an Eclipse plug in.  It allows you to search for components.  It will bring up a list of search results, double clicking the result opens Tour De Flex and displays examples, and descriptions.</p>
<p>I&#8217;m going to put the install badge in the widgets bar to the right for a while.  Feel free to install it directly from the badge, or visit the <a href='http://flex.org/tour'>Tour De Flex</a> page, where they have the same badge in effect.</p>
]]></content:encoded>
			<wfw:commentRss>http://knomedia.com/blog/2008/11/18/tour-de-flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adogo Slides and Examples</title>
		<link>http://knomedia.com/blog/2008/11/03/adogo-slides-and-examples/</link>
		<comments>http://knomedia.com/blog/2008/11/03/adogo-slides-and-examples/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 22:16:33 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[SQLite]]></category>

		<guid isPermaLink="false">http://knomedia.com/blog/?p=158</guid>
		<description><![CDATA[So, later tonight I&#8217;ll be speaking at the Adobe Developers of Greater Orlando (adogo) user group on Adobe AIR. We&#8217;ll be looking into File I/O and SQLite as I had previously mentioned. I thought I would post up the Slides as well as a few example flex projects that I will be go through in [...]]]></description>
			<content:encoded><![CDATA[<p>So, later tonight I&#8217;ll be speaking at the Adobe Developers of Greater Orlando (<a href='http://adogo.us/'>adogo</a>) user group on Adobe AIR.  We&#8217;ll be looking into File I/O and SQLite as I had previously <a href-'http://knomedia.com/blog/?p=137'>mentioned</a>.  I thought I would post up the Slides as well as a few example flex projects that I will be go through in the presentation so that people can follow along on their own machine.  You can download the zipped materials <a href='http://knomedia.com/blog/wp-content/uploads/2008/11/air_file_sqlite_examples.zip'>here</a></p>
<p>Jason</p>
]]></content:encoded>
			<wfw:commentRss>http://knomedia.com/blog/2008/11/03/adogo-slides-and-examples/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speaking at ADOGO</title>
		<link>http://knomedia.com/blog/2008/10/23/speaking-at-adogo/</link>
		<comments>http://knomedia.com/blog/2008/10/23/speaking-at-adogo/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 20:11:53 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[AIR]]></category>

		<guid isPermaLink="false">http://knomedia.com/blog/?p=137</guid>
		<description><![CDATA[I will be presenting at the next Adobe Developers of Greater Orlando meeting. The presentation is entitled &#8220;Adobe AIR File I/O and Embedded SQLite&#8221;. I have posted a primer at the user groups page. You can read the details there. I&#8217;m hoping to cover both the technical details of the classes involved, as well as [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://knomedia.com/blog/wp-content/uploads/2008/10/adogo.png" alt="Adobe Developers of Greater Orlando" title="ADOGO" width="132" height="98" class="alignleft size-full wp-image-130" />I will be presenting at the next Adobe Developers of Greater Orlando meeting.  The presentation is entitled &#8220;Adobe AIR File I/O and Embedded SQLite&#8221;.  I have posted a primer at the user groups <a href='http://adogo.us/2008/10/22/november-primer-adobe-air-file-io-and-embedded-sqlite/trackback/'>page</a>.  You can read the details there.  I&#8217;m hoping to cover both the technical details of the classes involved, as well as putting together examples.</p>
<p>If you are free on November 3rd, and in Orlando, come check it out.</p>
<p>jason</p>
]]></content:encoded>
			<wfw:commentRss>http://knomedia.com/blog/2008/10/23/speaking-at-adogo/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>HelpDesk Adobe article</title>
		<link>http://knomedia.com/blog/2008/10/20/helpdesk-adobe-article/</link>
		<comments>http://knomedia.com/blog/2008/10/20/helpdesk-adobe-article/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 15:13:00 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://knomedia.com/blog/?p=129</guid>
		<description><![CDATA[Not to far back I built a small application for the University that I work for. I called it the HelpDesk. I wrote the technical end of an article for Adobe about the application, how Flex was involved and other details. I didn&#8217;t realize that the article had gone live at Adobe&#8217;s site until this [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://knomedia.com/blog/wp-content/uploads/2008/10/helpdesk.png" alt="" title="HelpDesk" width="128" height="128" class="alignleft size-full wp-image-130" />Not to far back I built a small application for the <a href='http://www.fullsail.edu'> University </a> that I work for.  I called it the HelpDesk.  I wrote the technical end of an article for Adobe about the application, how Flex was involved and other details.  I didn&#8217;t realize that the article had gone live at Adobe&#8217;s site until this morning when I got an email from a colleague who mentioned the article.  The app is described pretty thoroughly in the article so I won&#8217;t go into details here.  The article is live at Adobe&#8217;s site, you can check it out <a href='http://www.adobe.com/devnet/edu/articles/full-sail-flex.html'>here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://knomedia.com/blog/2008/10/20/helpdesk-adobe-article/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Adobe&#8217;s Badger AIR app</title>
		<link>http://knomedia.com/blog/2008/09/24/adobes-badger-air-app/</link>
		<comments>http://knomedia.com/blog/2008/09/24/adobes-badger-air-app/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 15:55:55 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[AIR]]></category>

		<guid isPermaLink="false">http://knomedia.com/blog/?p=88</guid>
		<description><![CDATA[So it was bound to happen. I put out a version of the Badge Builder, and Adobe and Grant Skinner soon there after release a similar application. It is called Badger, it has a cool flying badger icon, and does a few really cool things. For example when you select your AIR application it will [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_89" class="wp-caption alignleft" style="width: 138px"><img src="http://knomedia.com/blog/wp-content/uploads/2008/09/logo_128.png" alt="Badger application" title="logo_128" width="128" height="128" class="size-full wp-image-89" /><p class="wp-caption-text"> </p></div>
<p>So it was bound to happen.  I put out a version of the <a href="http://knomedia.com/blog/?p=71">Badge Builder</a>, and Adobe and Grant Skinner soon there after release a similar application.</p>
<p>It is called Badger, it has a cool flying badger icon, and does a few really cool things.  For example when you select your AIR application it will pull your publisher ID, and application ID out of the AIR file itself.  Very nice touch.</p>
<p>While I haven&#8217;t researched much further yet, it also appears that you can use various template badge SWF files.  Doing so should allow you to build your own custom template for use with the application.</p>
<p>You can check out Grant&#8217;s post on Badger <a href="http://www.gskinner.com/blog/archives/2008/09/beware_the_air.html">here</a></p>
<p>-jason</p>
]]></content:encoded>
			<wfw:commentRss>http://knomedia.com/blog/2008/09/24/adobes-badger-air-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Badge Builder Beta</title>
		<link>http://knomedia.com/blog/2008/09/05/badge-builder-beta/</link>
		<comments>http://knomedia.com/blog/2008/09/05/badge-builder-beta/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 19:00:25 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://knomedia.com/blog/?p=71</guid>
		<description><![CDATA[As mentioned in my previous post, I&#8217;ve been putting together an Adobe AIR application that allows the user to quickly create a Badge Install HTML file by filling out a simple form. The aim of Badge Builder is to give access to all of the options available for utilizing the Badge Installer, while not drowning [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://knomedia.com/air/badgeBuilder"><img src="http://knomedia.com/blog/wp-content/uploads/2008/09/badgebuilderbadge.png" alt="" title="Badge Builder" width="205" height="170" class="alignleft size-full wp-image-72" /></a>As mentioned in my previous post, I&#8217;ve been putting together an Adobe AIR application that allows the user to quickly create a Badge Install HTML file by filling out a simple form. The aim of <a href="http://knomedia.com/air/badgeBuilder">Badge Builder</a> is to give access to all of the options available for utilizing the Badge Installer, while not drowning the user with parameters that they don&#8217;t wish to change.</p>
<p>You can toggle between the necessary, and optional parameters.  It has a built in preview function that will open your browser and display the HTML file.  Once you are satisfied with your settings, you simply build the file to the folder of your choice.  All of the fields have tool-tips to get you up to speed quickly on the information that is needed.  The application is just another way to be more productive.</p>
<p>I&#8217;ve set up a page with an Install Badge, screen shots, and a bit more by way of features <a href="http://knomedia.com/air/badgeBuilder">here</a>.</p>
<p>I have been testing it as I develop and use it.  So far is has been pretty stable for me.  If you find any issues, please let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://knomedia.com/blog/2008/09/05/badge-builder-beta/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using the Adobe AIR Install Badge</title>
		<link>http://knomedia.com/blog/2008/08/29/using-the-adobe-air-badge-install/</link>
		<comments>http://knomedia.com/blog/2008/08/29/using-the-adobe-air-badge-install/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 18:30:51 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[AIR]]></category>

		<guid isPermaLink="false">http://knomedia.com/blog/?p=42</guid>
		<description><![CDATA[Lately I have developed several small AIR application for clients. Sometimes the apps are the actual project, sometimes they are a tool to allow the clients to do something with project. Either way I find myself building quite a few smaller AIR widget applications for clients lately. David Tucker&#8217;s 10 common mistakes when building AIR [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I have developed several small AIR application for clients.  Sometimes the apps are the actual project, sometimes they are a tool to allow the clients to do something with project.  Either way I find myself building quite a few smaller AIR widget applications for clients lately.  David Tucker&#8217;s <a href="http://www.adobe.com/devnet/air/articles/10_common_mistakes_air.html">10 common mistakes</a> when building AIR applications lists not using the badge install for your AIR app at number seven.  I have been happy with the results of using the badge install to distribute apps to clients.</p>
<p>The Badge Install is a mechanism that allows the user to install you AIR application from a browser.  If the user doesn&#8217;t have the necessary AIR runtime installed, it will first install the AIR runtime followed by your AIR application.  If the user already has your AIR application installed, it allows the user to choose to re-install, or simply launch the already installed application.</p>
<p>While there are examples of using the <a href="http://labs.adobe.com/wiki/index.php/AIR_Badge">latest install badge</a> that Grant Skinner put together.  I haven&#8217;t seen any examples that use the latest <a href="http://code.google.com/p/swfobject/">SWFObject</a> (v2.1) and produce html results that validate.  The process is actually quite simple.  You can download a finished example <a href='http://knomedia.com/blog/wp-content/uploads/2008/08/badgeinstallexample.zip'>here</a></p>
<p><b>Build your HTML file</b><br />
Build a simple HTML file with your DOCTYPE, head and body.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'&gt;
&lt;html xmlns='http://www.w3.org/1999/xhtml'lang='en' xml:lang='en'&gt;
	&lt;head&gt;
		&lt;title&gt;Number Converter AIR application&lt;/title&gt;
		&lt;meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' /&gt;
		&lt;script type='text/javascript' src='js/swfobject.js'&gt;&lt;/script&gt;
	&lt;/head&gt;
	&lt;body&gt;
		&lt;div id='badge_div'&gt;
			    To install this application you will need the &lt;a href='http://www.adobe.com/products/flashplayer/'&gt;Adobe Flash Player&lt;/a&gt;
		&lt;/div&gt;
	&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<p>In the head I bring in the SWFObject with a relative path via the &#8220;js&#8221; directory.  In the body I have created a div with an id of &#8216;badge_div&#8217;, this is the div that will get replaced with the Install Badge SWF file.</p>
<p><b>Set up the SWFObject</b><br />
I usually like to place all my SWFObject JavaScript in an individual .js file.  For this example I am using the following JavaScript in a file named &#8216;badgeInstall.js&#8217;.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> flashvars <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
flashvars.<span style="color: #660066;">airversion</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'1.1'</span><span style="color: #339933;">;</span>
flashvars.<span style="color: #660066;">appname</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'Number Converter'</span><span style="color: #339933;">;</span>
flashvars.<span style="color: #660066;">appurl</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'http://www.knomedia.com/air/numberConverter/NumberConverter.air'</span><span style="color: #339933;">;</span>
flashvars.<span style="color: #660066;">imageurl</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'assets/NumberConverter.jpg'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> params <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> attributes <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
swfobject.<span style="color: #660066;">embedSWF</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'install_swf/AIRInstallBadge.swf'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'badge_div'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'205'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'170'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'9.0.115'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'install_swf/expressInstall.swf'</span><span style="color: #339933;">,</span> flashvars<span style="color: #339933;">,</span> params<span style="color: #339933;">,</span> attributes<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>These are the required flashvars parameters required to get the badge working:</p>
<ul>
<li><b>airversion</b> is the AIR runtime version required to run your application</li>
<li><b>appname</b> is the name of your AIR application</li>
<li><b>appurl</b> is the absolute address of your .air file</li>
<li><b>imageurl</b> is the address (absolute or relative) of an image file to display in the badge.  The image should be 205px by 170px.</li>
<ul>
<p>The last line is simply using the SWFObject to replace the appropriate div with your Badge Install SWF file.</p>
<p>Back in the HTML head you need to include a reference to the badgeInstall.js which results in the following finalized HTML document:</p>

<div class="wp_syntax"><div class="code"><pre class="xhtml" style="font-family:monospace;">&lt;!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'&gt;
&lt;html xmlns='http://www.w3.org/1999/xhtml'lang='en' xml:lang='en'&gt;
	&lt;head&gt;
		&lt;title&gt;Number Converter AIR application&lt;/title&gt;
		&lt;meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' /&gt;
		&lt;script type='text/javascript' src='js/swfobject.js'&gt;&lt;/script&gt;
		&lt;script type='text/javascript' src='js/badgeInstall.js'&gt;&lt;/script&gt;
	&lt;/head&gt;
	&lt;body&gt;
		&lt;div id='badge_div'&gt;
			    To install this application you will need the &lt;a href='http://www.adobe.com/products/flashplayer/'&gt;Adobe Flash Player&lt;/a&gt;
		&lt;/div&gt;
	&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<p>There are lots of optional parameters that can be passed as a flashvar to the badge to customize the badge like changing the button label color, the application name color, etc.  For a listing of all of these, see the demo included with the <a href="http://labs.adobe.com/wiki/index.php/AIR_Badge">badge install swf</a>.<br />
<a href='http://knomedia.com/air/badgeBuilder/'><br />
<img src="http://knomedia.com/blog/wp-content/uploads/2008/08/bb_icon_128.png" alt="" title="Badge Builder" width="128" height="128" class="alignleft size-full wp-image-58" /></a><br />
<b>Badge Builder</b><br />
I&#8217;m actually finishing up a small AIR app called &#8216;Badge Builder&#8217; that facilitates writing all the necessary HTML, JavaScript, etc to quickly create a Badge Install page.  I&#8217;ll post it up as soon as I&#8217;m finished.  Stay tuned.</p>
<p>jason</p>
]]></content:encoded>
			<wfw:commentRss>http://knomedia.com/blog/2008/08/29/using-the-adobe-air-badge-install/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Simple Number Converter</title>
		<link>http://knomedia.com/blog/2008/07/23/simple-number-converter/</link>
		<comments>http://knomedia.com/blog/2008/07/23/simple-number-converter/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 02:16:42 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://knomedia.com/blog/?p=11</guid>
		<description><![CDATA[I put together a simple AIR app in Flex for a co-worker the other day. It&#8217;s a simple panel that allows the user to enter a number in any form (binary, octal, decimal, hexadecimal) and it will display all of the other number types for you. At first I didn&#8217;t think it was all that [...]]]></description>
			<content:encoded><![CDATA[<p>I put together a simple AIR app in Flex for a co-worker the other day.  It&#8217;s a simple panel that allows the user to enter a number in any form (binary, octal, decimal, hexadecimal) and it will display all of the other number types for you.  At first I didn&#8217;t think it was all that useful.  But in a recent project I needed to double check that a value that I had entered as hex was correct.  When I traced out the value, the output window displayed it as a decimal number&#8230;  Hey, my little app came in handy!!!  I thought I&#8217;d make it available.</p>
<p>The icons were made using <a href="http://clockmaker.jp/labs/air_icon/">Clockmaker Icon Generator</a> another widget type AIR app.</p>
<p>One of the things I love about AIR and Flex is how quickly you can put together a simple little &#8216;widget&#8217; type of app like this.  As I continue to learn more and more about the Flex framework, the more I&#8217;m liking it.</p>
<p>You can download the application using the install badge below.  (If you haven&#8217;t seen it yet, you should check out <a href='http://www.peterelst.com/blog/2008/04/19/air-badge-wordpress-plugin/'>Peter Elst&#8217;s AIR Badge WordPress plugin</a>)</p>
<p><div id="flashcontent8814" style="width:215px; height:180px;"><strong>Please upgrade your Flash Player</strong> In order to view this content you will need to have the latest version of the Adobe Flash Player.</div><script type="text/javascript">
<!-- // <![CDATA[
var so = new SWFObject("http://knomedia.com/blog/wp-content/plugins/air-badge/AIRInstallBadge.swf", "Badge", "215", "180", "9.0.115", "#FFFFFF");
so.useExpressInstall("http://knomedia.com/blog/wp-content/plugins/air-badge/expressinstall.swf");
so.addVariable("airversion", "1.0");
so.addVariable("appname", "Number+Converter");
so.addVariable("appurl", "http://www.knomedia.com/air/numberConverter/NumberConverter.air");
so.addVariable("appid", "Number+Converter");
so.addVariable("pubid", "");
so.addVariable("appversion", "1.0");
so.addVariable("imageurl", "http://www.knomedia.com/air/numberConverter/assets/NumberConverter.jpg");
so.addVariable("appinstallarg", "installed from web");
so.addVariable("applauncharg", "launched from web");
so.addVariable("helpurl", "help.html");
so.addVariable("hidehelp", "true");
so.addVariable("skiptransition", "false");
so.addVariable("titlecolor", "#00AAFF");
so.addVariable("buttonlabelcolor", "#00AAFF");
so.addVariable("appnamecolor", "#00AAFF");
so.addVariable("str_err_airswf", "<u>Running locally?</u><br/><br/>The AIR proxy swf won't load properly when this is run from the local file system.");
so.write("flashcontent8814");
// ]]&gt; -->
</script>
</p>
<p>jason</p>
]]></content:encoded>
			<wfw:commentRss>http://knomedia.com/blog/2008/07/23/simple-number-converter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
