<?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>Centre of the Universe &#187; Adobe Air</title>
	<atom:link href="http://www.sergemeunier.com/blog/tag/adobe-air/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sergemeunier.com/blog</link>
	<description>The musings of a mad software developer</description>
	<lastBuildDate>Tue, 01 Jun 2010 20:26:26 +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>KnowledgeTree 3.7 released</title>
		<link>http://www.sergemeunier.com/blog/knowledgetree-3-7-released/</link>
		<comments>http://www.sergemeunier.com/blog/knowledgetree-3-7-released/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 05:17:26 +0000</pubDate>
		<dc:creator>Serge Meunier</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Adobe Air]]></category>
		<category><![CDATA[KnowledgeTree]]></category>

		<guid isPermaLink="false">http://www.sergemeunier.com/blog/?p=1371</guid>
		<description><![CDATA[I have been a little quiet lately, and when I have blogged it has been rather short posts. That is largely due to the fact that I have had a big deadline looming, which is now over.
KnowledgeTree released the commercial edition of KnowledgeTree 3.7, which makes some significant changes over the previous version.
For one thing, [...]


Related posts:<ol><li><a href='http://www.sergemeunier.com/blog/google-maps-navigation-released-on-android/' rel='bookmark' title='Permanent Link: Google Maps Navigation released on Android'>Google Maps Navigation released on Android</a> <small>The major GPS navigation software companies are not liking Google...</small></li>
<li><a href='http://www.sergemeunier.com/blog/cmis-1-0-speciification-now-available-for-comment/' rel='bookmark' title='Permanent Link: CMIS 1.0 specification now available for comment'>CMIS 1.0 specification now available for comment</a> <small>CMIS 1.0 was released for public comment recently, and is...</small></li>
<li><a href='http://www.sergemeunier.com/blog/getting-extjs-3-0-to-work-in-adobe-air/' rel='bookmark' title='Permanent Link: Getting ExtJS 3.0 to work in Adobe Air'>Getting ExtJS 3.0 to work in Adobe Air</a> <small>Adobe Air has quite a lot of security restrictions which...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I have been a little quiet lately, and when I have blogged it has been rather short posts. That is largely due to the fact that I have had a big deadline looming, which is now over.</p>
<p><a href="http://www.knowledgetree.com">KnowledgeTree</a> released the commercial edition of KnowledgeTree 3.7, which makes some significant changes over the previous version.</p>
<p>For one thing, it is considerably faster, which is one of the biggest complaints customers had previously.</p>
<p>Now, before I lose any of you, KnowledgeTree is a document management server, which allows you to maintain a repository of documents in a central location. Think along the lines of Al Fresco or Sharepoint if you are still lost.</p>
<p>By far (for me anyway), the most exciting thing to ship with this is the new client tools. I have a vested interest here, as I am on the team which works on the client tools. </p>
<p>The new kid on the block for the client toools is KnowledgeTree Explorer CP, which is an explorer application which allows you to browse and manipulate files on a KnowledgeTree server off your desktop.</p>
<p>KnowledgeTree Explorer CP was written using Adobe Air, and works on Windows, Mac OS X and Linux. The bulk of the code is Javascript based, and some of the things we were making Adobe air do simply has not been done before.</p>
<p>Many hours of my life has been spent on Explorer CP, and it is a great feeling to finally see it released to the world.</p>
<p>Go download an <a href="http://www.knowledgetree.com/commercial-trial/">evaluation copy of KnowledgeTree 3.7 Commercial Edition</a>, or, if you would like the free edition, go look at <a href="http://www.knowledgetree.com/opensource/">KnowledgeTree 3.7 Community Edition</a><br />
Here is to the best release of KnowledgeTree yet&#8230;.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.sergemeunier.com%2Fblog%2Fknowledgetree-3-7-released%2F&amp;linkname=KnowledgeTree%203.7%20released"><img src="http://www.sergemeunier.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://www.sergemeunier.com/blog/google-maps-navigation-released-on-android/' rel='bookmark' title='Permanent Link: Google Maps Navigation released on Android'>Google Maps Navigation released on Android</a> <small>The major GPS navigation software companies are not liking Google...</small></li>
<li><a href='http://www.sergemeunier.com/blog/cmis-1-0-speciification-now-available-for-comment/' rel='bookmark' title='Permanent Link: CMIS 1.0 specification now available for comment'>CMIS 1.0 specification now available for comment</a> <small>CMIS 1.0 was released for public comment recently, and is...</small></li>
<li><a href='http://www.sergemeunier.com/blog/getting-extjs-3-0-to-work-in-adobe-air/' rel='bookmark' title='Permanent Link: Getting ExtJS 3.0 to work in Adobe Air'>Getting ExtJS 3.0 to work in Adobe Air</a> <small>Adobe Air has quite a lot of security restrictions which...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.sergemeunier.com/blog/knowledgetree-3-7-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Adobe Air 2.0 and Flash Player 10.1 betas have been launched</title>
		<link>http://www.sergemeunier.com/blog/adobe-air-2-0-and-flash-player-10-1-betas-have-been-launched/</link>
		<comments>http://www.sergemeunier.com/blog/adobe-air-2-0-and-flash-player-10-1-betas-have-been-launched/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 15:47:16 +0000</pubDate>
		<dc:creator>Serge Meunier</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Adobe Air]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.sergemeunier.com/blog/?p=1326</guid>
		<description><![CDATA[Ah, the sheer programming bliss. I have been eagerly awaiting getting my hands on Adobe Air 2.0.
It has included a host of features that will make my life so much easier. It boasts a faster Webkit engine, making Javascript-based libraries run much faster. Improved network functionality, and the file promise API are other delectable additions.
Included [...]


Related posts:<ol><li><a href='http://www.sergemeunier.com/blog/adobe-air-2-0-coming-early-next-year/' rel='bookmark' title='Permanent Link: Adobe Air 2.0 coming early next year'>Adobe Air 2.0 coming early next year</a> <small>I saw this morning on Inside RIA that Adobe Air...</small></li>
<li><a href='http://www.sergemeunier.com/blog/book-review-adobe-air-for-javascript-developers-pocket-guide/' rel='bookmark' title='Permanent Link: Book review: Adobe AIR for Javascript Developers Pocket guide by Mike Chambers et al'>Book review: Adobe AIR for Javascript Developers Pocket guide by Mike Chambers et al</a> <small>Most of the online resources for Adobe Air seem to...</small></li>
<li><a href='http://www.sergemeunier.com/blog/getting-extjs-3-0-to-work-in-adobe-air/' rel='bookmark' title='Permanent Link: Getting ExtJS 3.0 to work in Adobe Air'>Getting ExtJS 3.0 to work in Adobe Air</a> <small>Adobe Air has quite a lot of security restrictions which...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Ah, the sheer programming bliss. I have been eagerly awaiting getting my hands on Adobe Air 2.0.</p>
<p>It has included a host of features that will make my life so much easier. It boasts a faster Webkit engine, making Javascript-based libraries run much faster. Improved network functionality, and the file promise API are other delectable additions.</p>
<p>Included in both <a href="http://labs.adobe.com/downloads/flashplayer10.html">Flash Player 10.1</a> and <a href="http://labs.adobe.com/technologies/air2/">Adobe Air 2.0</a> is support for touch-screen monitors and support for the inbuilt mic so sound recording is now possible too.</p>
<p>Still have to wait for the mobile version of Flash Player 10.1 though&#8230;hopefully for not too much longer.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.sergemeunier.com%2Fblog%2Fadobe-air-2-0-and-flash-player-10-1-betas-have-been-launched%2F&amp;linkname=Adobe%20Air%202.0%20and%20Flash%20Player%2010.1%20betas%20have%20been%20launched"><img src="http://www.sergemeunier.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://www.sergemeunier.com/blog/adobe-air-2-0-coming-early-next-year/' rel='bookmark' title='Permanent Link: Adobe Air 2.0 coming early next year'>Adobe Air 2.0 coming early next year</a> <small>I saw this morning on Inside RIA that Adobe Air...</small></li>
<li><a href='http://www.sergemeunier.com/blog/book-review-adobe-air-for-javascript-developers-pocket-guide/' rel='bookmark' title='Permanent Link: Book review: Adobe AIR for Javascript Developers Pocket guide by Mike Chambers et al'>Book review: Adobe AIR for Javascript Developers Pocket guide by Mike Chambers et al</a> <small>Most of the online resources for Adobe Air seem to...</small></li>
<li><a href='http://www.sergemeunier.com/blog/getting-extjs-3-0-to-work-in-adobe-air/' rel='bookmark' title='Permanent Link: Getting ExtJS 3.0 to work in Adobe Air'>Getting ExtJS 3.0 to work in Adobe Air</a> <small>Adobe Air has quite a lot of security restrictions which...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.sergemeunier.com/blog/adobe-air-2-0-and-flash-player-10-1-betas-have-been-launched/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe Air 2.0 coming early next year</title>
		<link>http://www.sergemeunier.com/blog/adobe-air-2-0-coming-early-next-year/</link>
		<comments>http://www.sergemeunier.com/blog/adobe-air-2-0-coming-early-next-year/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 08:29:07 +0000</pubDate>
		<dc:creator>Serge Meunier</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Adobe Air]]></category>

		<guid isPermaLink="false">http://www.sergemeunier.com/blog/?p=1029</guid>
		<description><![CDATA[I saw this morning on Inside RIA that Adobe Air 2.0 will be released in the first quarter of 2010. The beta should be out before the end of the year.
This is very exciting news for me and my colleagues at work, since the application we are developing is based on Adobe Air.
It has a [...]


Related posts:<ol><li><a href='http://www.sergemeunier.com/blog/adobe-air-2-0-and-flash-player-10-1-betas-have-been-launched/' rel='bookmark' title='Permanent Link: Adobe Air 2.0 and Flash Player 10.1 betas have been launched'>Adobe Air 2.0 and Flash Player 10.1 betas have been launched</a> <small>Ah, the sheer programming bliss. I have been eagerly awaiting...</small></li>
<li><a href='http://www.sergemeunier.com/blog/titanium-0-7-is-now-out-with-some-great-new-features/' rel='bookmark' title='Permanent Link: Titanium 0.7 is now out with some great new features'>Titanium 0.7 is now out with some great new features</a> <small>Titanium 0.7 has just been released, and some of the...</small></li>
<li><a href='http://www.sergemeunier.com/blog/getting-extjs-3-0-to-work-in-adobe-air/' rel='bookmark' title='Permanent Link: Getting ExtJS 3.0 to work in Adobe Air'>Getting ExtJS 3.0 to work in Adobe Air</a> <small>Adobe Air has quite a lot of security restrictions which...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I saw this morning on <a href="http://www.insideria.com/2009/10/air-2-enhancements-complete-ov.html">Inside RIA</a> that Adobe Air 2.0 will be released in the first quarter of 2010. The beta should be out before the end of the year.</p>
<p>This is very exciting news for me and my colleagues at work, since the application we are developing is based on Adobe Air.</p>
<p>It has a substantial amount of new features, and will be based on Flash player 10 using Flex 4.</p>
<p>Amongst the new features is support for IPv6 networking, UDP support, a DNS resolver to find out DNS information.</p>
<p>The biggest new feature for us though is the file promises API, which will enable you to drag and drop remote files seemlessly and easily, using URL streaming. Currently, Adobe Air only supports drag and drop on real local files.</p>
<p>The application will also have better performance, both in memory and CPU resources, which will make the applications run much better.</p>
<p>If you want to find out more about the new features offered in Adobe Air 2.0, <a href="http://www.insideria.com/2009/10/air-2-enhancements-complete-ov.html">click here</a>.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.sergemeunier.com%2Fblog%2Fadobe-air-2-0-coming-early-next-year%2F&amp;linkname=Adobe%20Air%202.0%20coming%20early%20next%20year"><img src="http://www.sergemeunier.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://www.sergemeunier.com/blog/adobe-air-2-0-and-flash-player-10-1-betas-have-been-launched/' rel='bookmark' title='Permanent Link: Adobe Air 2.0 and Flash Player 10.1 betas have been launched'>Adobe Air 2.0 and Flash Player 10.1 betas have been launched</a> <small>Ah, the sheer programming bliss. I have been eagerly awaiting...</small></li>
<li><a href='http://www.sergemeunier.com/blog/titanium-0-7-is-now-out-with-some-great-new-features/' rel='bookmark' title='Permanent Link: Titanium 0.7 is now out with some great new features'>Titanium 0.7 is now out with some great new features</a> <small>Titanium 0.7 has just been released, and some of the...</small></li>
<li><a href='http://www.sergemeunier.com/blog/getting-extjs-3-0-to-work-in-adobe-air/' rel='bookmark' title='Permanent Link: Getting ExtJS 3.0 to work in Adobe Air'>Getting ExtJS 3.0 to work in Adobe Air</a> <small>Adobe Air has quite a lot of security restrictions which...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.sergemeunier.com/blog/adobe-air-2-0-coming-early-next-year/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript error handling idiosyncrasies</title>
		<link>http://www.sergemeunier.com/blog/javascript-error-handling-idiosyncrasies/</link>
		<comments>http://www.sergemeunier.com/blog/javascript-error-handling-idiosyncrasies/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 13:30:30 +0000</pubDate>
		<dc:creator>Serge Meunier</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Adobe Air]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.sergemeunier.com/blog/?p=611</guid>
		<description><![CDATA[If there is one thing that can drive me insane is the way in which Javascript handles errors.
The way Javascript does this is dependant, to a degree, on the browser implementation, but the worst offender for me occurs in Adobe Air ( and quite likely some other browsers too).
Let&#8217;s first introduce the scenario. Imagine a [...]


Related posts:<ol><li><a href='http://www.sergemeunier.com/blog/better-javascript-error-handling-with-damnit/' rel='bookmark' title='Permanent Link: Better JavaScript error handling with DamnIT'>Better JavaScript error handling with DamnIT</a> <small>We all know that the Internet is a mess, with...</small></li>
<li><a href='http://www.sergemeunier.com/blog/dygraphs-javascript-visualization-library/' rel='bookmark' title='Permanent Link: Dygraphs Javascript Visualization Library'>Dygraphs Javascript Visualization Library</a> <small>Drawing graphs has become simpler in Javascript, with the dygraphs...</small></li>
<li><a href='http://www.sergemeunier.com/blog/php-functionality-from-within-javascript/' rel='bookmark' title='Permanent Link: PHP functionality from within Javascript'>PHP functionality from within Javascript</a> <small>Most PHP programmers have to deal with Javascript in some...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>If there is one thing that can drive me insane is the way in which Javascript handles errors.</p>
<p>The way Javascript does this is dependant, to a degree, on the browser implementation, but the worst offender for me occurs in Adobe Air ( and quite likely some other browsers too).</p>
<p>Let&#8217;s first introduce the scenario. Imagine a large framework built up with several Javascript &#8216;classes&#8217;, with multiple functions in each class.</p>
<p>Now, creating an instance of the class, and using the object, one of the functions generates an error when you call the function. Let&#8217;s assume the reason for the error was intermittent, caused by an improperly set parameter. What I mean is, that the function in question should not consistently fail, but only failed in that one instance.</p>
<p>The problem comes in that Javascript then decides that, since the function failed, then there is a problem with it, and consequently refuses to execute that function again after it has failed.</p>
<p>In a real world example, I had a function that starts a file download. It would work fine, until it crashed trying to download a file that does not exist, and after that, every call to that function would fail until I restarted the application. It is a problem that can cause some severe debugging headaches unless you are aware of this behaviour.</p>
<p>The solution to this problem is to use try-catch blocks around code that is likely to fail in this way, so that the code fails gracefully, which should be how you are coding anyway.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.sergemeunier.com%2Fblog%2Fjavascript-error-handling-idiosyncrasies%2F&amp;linkname=Javascript%20error%20handling%20idiosyncrasies"><img src="http://www.sergemeunier.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://www.sergemeunier.com/blog/better-javascript-error-handling-with-damnit/' rel='bookmark' title='Permanent Link: Better JavaScript error handling with DamnIT'>Better JavaScript error handling with DamnIT</a> <small>We all know that the Internet is a mess, with...</small></li>
<li><a href='http://www.sergemeunier.com/blog/dygraphs-javascript-visualization-library/' rel='bookmark' title='Permanent Link: Dygraphs Javascript Visualization Library'>Dygraphs Javascript Visualization Library</a> <small>Drawing graphs has become simpler in Javascript, with the dygraphs...</small></li>
<li><a href='http://www.sergemeunier.com/blog/php-functionality-from-within-javascript/' rel='bookmark' title='Permanent Link: PHP functionality from within Javascript'>PHP functionality from within Javascript</a> <small>Most PHP programmers have to deal with Javascript in some...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.sergemeunier.com/blog/javascript-error-handling-idiosyncrasies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Adobe Air and paste events to play nicely</title>
		<link>http://www.sergemeunier.com/blog/getting-adobe-air-and-paste-events-to-play-nicely/</link>
		<comments>http://www.sergemeunier.com/blog/getting-adobe-air-and-paste-events-to-play-nicely/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 08:41:47 +0000</pubDate>
		<dc:creator>Serge Meunier</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Adobe Air]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.sergemeunier.com/blog/?p=595</guid>
		<description><![CDATA[In a previous post, I talked about how Adobe Air was swallowing up the Javascript  keydown event for the ctrl+v key combination. Now I have figured out a way to bypass the key events altogether and tap directly into the copy, cut and past events.
These events get triggered whenever a copy, cut or paste [...]


Related posts:<ol><li><a href='http://www.sergemeunier.com/blog/curious-adventure-in-capturing-key-presses-in-adobe-air/' rel='bookmark' title='Permanent Link: A curious adventure in capturing key presses in Adobe Air'>A curious adventure in capturing key presses in Adobe Air</a> <small>Web browsers are notorious in how they handle key presses....</small></li>
<li><a href='http://www.sergemeunier.com/blog/getting-extjs-3-0-to-work-in-adobe-air/' rel='bookmark' title='Permanent Link: Getting ExtJS 3.0 to work in Adobe Air'>Getting ExtJS 3.0 to work in Adobe Air</a> <small>Adobe Air has quite a lot of security restrictions which...</small></li>
<li><a href='http://www.sergemeunier.com/blog/book-review-adobe-air-for-javascript-developers-pocket-guide/' rel='bookmark' title='Permanent Link: Book review: Adobe AIR for Javascript Developers Pocket guide by Mike Chambers et al'>Book review: Adobe AIR for Javascript Developers Pocket guide by Mike Chambers et al</a> <small>Most of the online resources for Adobe Air seem to...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>In a previous post, I talked about how Adobe Air was swallowing up the Javascript  keydown event for the ctrl+v key combination. Now I have figured out a way to bypass the key events altogether and tap directly into the copy, cut and past events.</p>
<p>These events get triggered whenever a copy, cut or paste occurs, and is consistently triggered within Adobe Air (and any other browser for that matter).</p>
<p>Now, the element on the page I wanted to attach the event to has an element within it that gets dynamically generated, and no amount of tweaking would get the dynamic content to trigger these events within Adobe Air. In Firefox, it did all work as expected.</p>
<p>So my solution for this slight problem, is add the copy/cut/paste event listeners to the window (which would always trigger &#8211; dynamic or not) and then add listeners for the focus and blur events on the element I want the editing events trigger for.</p>
<p>There is one more hack needed though. Adobe Air, for some unexplained reason was firing the copy/cut/paste events twice each time I triggered it,  so I put in a flag which checkes if the same event is refiring and ignore it. </p>
<p>So the code below, will give selective copy/cut/paste functionality in Adobe Air with no hassles.</p>
<pre name="code" class="Javascript">var eventHandled = false;
var elementSelected = false;

pasteHandler = function(e) {
	if (eventHandled == false) {
		if (elementSelected == true) {
			alert('Paste');
		}
	}
	eventHandled = !eventHandled;
}

copyHandler = function(e) {
	if (eventHandled == false) {
		if (elementSelected == true) {
			alert('Copy');
		}
	}
	eventHandled = !eventHandled;
}

cutHandler = function(e) {
	if (eventHandled == false) {
		if (elementSelected == true) {
			alert('Cut');
		}
	}
	eventHandled = !eventHandled;
}

elementFocusHandler = function(e) {
	elementSelected = true;
}

elementBlurHandler = function(e) {
	elementSelected = false;
}

document.getElementById('myelement').addEventListener('focus', elementFocusHandler, true);
document.getElementById('myelement').addEventListener('blur', elementBlurHandler, true);
window.addEventListener('paste', pasteHandler, false);
window.addEventListener('copy', copyHandler, false);
window.addEventListener('cut', cutHandler, false);
</pre>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.sergemeunier.com%2Fblog%2Fgetting-adobe-air-and-paste-events-to-play-nicely%2F&amp;linkname=Getting%20Adobe%20Air%20and%20paste%20events%20to%20play%20nicely"><img src="http://www.sergemeunier.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://www.sergemeunier.com/blog/curious-adventure-in-capturing-key-presses-in-adobe-air/' rel='bookmark' title='Permanent Link: A curious adventure in capturing key presses in Adobe Air'>A curious adventure in capturing key presses in Adobe Air</a> <small>Web browsers are notorious in how they handle key presses....</small></li>
<li><a href='http://www.sergemeunier.com/blog/getting-extjs-3-0-to-work-in-adobe-air/' rel='bookmark' title='Permanent Link: Getting ExtJS 3.0 to work in Adobe Air'>Getting ExtJS 3.0 to work in Adobe Air</a> <small>Adobe Air has quite a lot of security restrictions which...</small></li>
<li><a href='http://www.sergemeunier.com/blog/book-review-adobe-air-for-javascript-developers-pocket-guide/' rel='bookmark' title='Permanent Link: Book review: Adobe AIR for Javascript Developers Pocket guide by Mike Chambers et al'>Book review: Adobe AIR for Javascript Developers Pocket guide by Mike Chambers et al</a> <small>Most of the online resources for Adobe Air seem to...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.sergemeunier.com/blog/getting-adobe-air-and-paste-events-to-play-nicely/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Book review: Adobe Air for Dummies by Richard Wagner</title>
		<link>http://www.sergemeunier.com/blog/book-review-adobe-air-for-dummies-by-richard-wagner/</link>
		<comments>http://www.sergemeunier.com/blog/book-review-adobe-air-for-dummies-by-richard-wagner/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 12:09:15 +0000</pubDate>
		<dc:creator>Serge Meunier</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Adobe Air]]></category>

		<guid isPermaLink="false">http://www.sergemeunier.com/blog/?p=550</guid>
		<description><![CDATA[
I love the For Dummies series of books, and this one is no exception. It contains enough details about Air to get you going and using it quickly and easily. In the tradition of the For Dummies books, it addresses Air in a very easy to understand way.
It points out a lot of gotchas and [...]


Related posts:<ol><li><a href='http://www.sergemeunier.com/blog/book-review-adobe-air-with-ajax-by-larry-ullman/' rel='bookmark' title='Permanent Link: Book review: Adobe Air with Ajax by Larry Ullman'>Book review: Adobe Air with Ajax by Larry Ullman</a> <small> Adobe Air can be very finicky when it comes...</small></li>
<li><a href='http://www.sergemeunier.com/blog/book-review-legends-lies-and-cherished-myths-of-american-history-by-richard-shenkman/' rel='bookmark' title='Permanent Link: Book review: Legends, lies, and cherished myths of American History by Richard Shenkman'>Book review: Legends, lies, and cherished myths of American History by Richard Shenkman</a> <small>As they always say, there are always three sides to...</small></li>
<li><a href='http://www.sergemeunier.com/blog/book-review-adobe-air-for-javascript-developers-pocket-guide/' rel='bookmark' title='Permanent Link: Book review: Adobe AIR for Javascript Developers Pocket guide by Mike Chambers et al'>Book review: Adobe AIR for Javascript Developers Pocket guide by Mike Chambers et al</a> <small>Most of the online resources for Adobe Air seem to...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=centoftheuniv-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=10FE9736YVPPT7A0FBG2&#038;asins=0470390441" style="width:120px;height:240px;position:relative;float:right;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe><br />
I love the For Dummies series of books, and this one is no exception. It contains enough details about Air to get you going and using it quickly and easily. In the tradition of the For Dummies books, it addresses Air in a very easy to understand way.</p>
<p>It points out a lot of gotchas and pitfalls to watch out for when using Air too, which is most useful when first encountering the system or porting code across from a web environment.</p>
<p>This book will also help the novice, given the straightforwardness of the writing, although a seasoned veteran may need something more to keep him happy.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.sergemeunier.com%2Fblog%2Fbook-review-adobe-air-for-dummies-by-richard-wagner%2F&amp;linkname=Book%20review%3A%20Adobe%20Air%20for%20Dummies%20by%20Richard%20Wagner"><img src="http://www.sergemeunier.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://www.sergemeunier.com/blog/book-review-adobe-air-with-ajax-by-larry-ullman/' rel='bookmark' title='Permanent Link: Book review: Adobe Air with Ajax by Larry Ullman'>Book review: Adobe Air with Ajax by Larry Ullman</a> <small> Adobe Air can be very finicky when it comes...</small></li>
<li><a href='http://www.sergemeunier.com/blog/book-review-legends-lies-and-cherished-myths-of-american-history-by-richard-shenkman/' rel='bookmark' title='Permanent Link: Book review: Legends, lies, and cherished myths of American History by Richard Shenkman'>Book review: Legends, lies, and cherished myths of American History by Richard Shenkman</a> <small>As they always say, there are always three sides to...</small></li>
<li><a href='http://www.sergemeunier.com/blog/book-review-adobe-air-for-javascript-developers-pocket-guide/' rel='bookmark' title='Permanent Link: Book review: Adobe AIR for Javascript Developers Pocket guide by Mike Chambers et al'>Book review: Adobe AIR for Javascript Developers Pocket guide by Mike Chambers et al</a> <small>Most of the online resources for Adobe Air seem to...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.sergemeunier.com/blog/book-review-adobe-air-for-dummies-by-richard-wagner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Book review: Adobe Air with Ajax by Larry Ullman</title>
		<link>http://www.sergemeunier.com/blog/book-review-adobe-air-with-ajax-by-larry-ullman/</link>
		<comments>http://www.sergemeunier.com/blog/book-review-adobe-air-with-ajax-by-larry-ullman/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 12:09:11 +0000</pubDate>
		<dc:creator>Serge Meunier</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Adobe Air]]></category>

		<guid isPermaLink="false">http://www.sergemeunier.com/blog/?p=553</guid>
		<description><![CDATA[
Adobe Air can be very finicky when it comes to ajax, as it has quite a lot of security rules to protect your computer from rogue scripts, and that is where this book comes in handy.
Most of the book covers general topics in Adobe Air, giving Air a full treatment, but where this book stands [...]


Related posts:<ol><li><a href='http://www.sergemeunier.com/blog/book-review-adobe-air-for-javascript-developers-pocket-guide/' rel='bookmark' title='Permanent Link: Book review: Adobe AIR for Javascript Developers Pocket guide by Mike Chambers et al'>Book review: Adobe AIR for Javascript Developers Pocket guide by Mike Chambers et al</a> <small>Most of the online resources for Adobe Air seem to...</small></li>
<li><a href='http://www.sergemeunier.com/blog/getting-extjs-3-0-to-work-in-adobe-air/' rel='bookmark' title='Permanent Link: Getting ExtJS 3.0 to work in Adobe Air'>Getting ExtJS 3.0 to work in Adobe Air</a> <small>Adobe Air has quite a lot of security restrictions which...</small></li>
<li><a href='http://www.sergemeunier.com/blog/book-review-getting-started-with-flex-3/' rel='bookmark' title='Permanent Link: Book Review: Getting started with Flex 3 by Jack Herrington and Emily Kim'>Book Review: Getting started with Flex 3 by Jack Herrington and Emily Kim</a> <small>A few weeks ago, I managed to win this little...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=centoftheuniv-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=10FE9736YVPPT7A0FBG2&#038;asins=0321524616" style="width:120px;height:240px;position:relative; float:right" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe><br />
Adobe Air can be very finicky when it comes to ajax, as it has quite a lot of security rules to protect your computer from rogue scripts, and that is where this book comes in handy.</p>
<p>Most of the book covers general topics in Adobe Air, giving Air a full treatment, but where this book stands out is detailing how to get ajax working withing the Air environment, bypassing the security restrictions. For example, there is a chapter dealing with a client/server bridge.</p>
<p>Another great feature of this book is that it focuses on using Javascript to build Air applications rather than Flex, which is great for all us Javascript developers.</p>
<p>This book makes a good reference.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.sergemeunier.com%2Fblog%2Fbook-review-adobe-air-with-ajax-by-larry-ullman%2F&amp;linkname=Book%20review%3A%20Adobe%20Air%20with%20Ajax%20by%20Larry%20Ullman"><img src="http://www.sergemeunier.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://www.sergemeunier.com/blog/book-review-adobe-air-for-javascript-developers-pocket-guide/' rel='bookmark' title='Permanent Link: Book review: Adobe AIR for Javascript Developers Pocket guide by Mike Chambers et al'>Book review: Adobe AIR for Javascript Developers Pocket guide by Mike Chambers et al</a> <small>Most of the online resources for Adobe Air seem to...</small></li>
<li><a href='http://www.sergemeunier.com/blog/getting-extjs-3-0-to-work-in-adobe-air/' rel='bookmark' title='Permanent Link: Getting ExtJS 3.0 to work in Adobe Air'>Getting ExtJS 3.0 to work in Adobe Air</a> <small>Adobe Air has quite a lot of security restrictions which...</small></li>
<li><a href='http://www.sergemeunier.com/blog/book-review-getting-started-with-flex-3/' rel='bookmark' title='Permanent Link: Book Review: Getting started with Flex 3 by Jack Herrington and Emily Kim'>Book Review: Getting started with Flex 3 by Jack Herrington and Emily Kim</a> <small>A few weeks ago, I managed to win this little...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.sergemeunier.com/blog/book-review-adobe-air-with-ajax-by-larry-ullman/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A curious adventure in capturing key presses in Adobe Air</title>
		<link>http://www.sergemeunier.com/blog/curious-adventure-in-capturing-key-presses-in-adobe-air/</link>
		<comments>http://www.sergemeunier.com/blog/curious-adventure-in-capturing-key-presses-in-adobe-air/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 07:06:36 +0000</pubDate>
		<dc:creator>Serge Meunier</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Adobe Air]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.sergemeunier.com/blog/?p=479</guid>
		<description><![CDATA[Web browsers are notorious in how they handle key presses. Every browser handles them differently. I am not going to go into the details here about the differences between the browsers, as it is covered in lots of other places on the web. There is a particularly good comparison here by The Pothoven Post which [...]


Related posts:<ol><li><a href='http://www.sergemeunier.com/blog/getting-adobe-air-and-paste-events-to-play-nicely/' rel='bookmark' title='Permanent Link: Getting Adobe Air and paste events to play nicely'>Getting Adobe Air and paste events to play nicely</a> <small>In a previous post, I talked about how Adobe Air...</small></li>
<li><a href='http://www.sergemeunier.com/blog/adobe-air-2-0-and-flash-player-10-1-betas-have-been-launched/' rel='bookmark' title='Permanent Link: Adobe Air 2.0 and Flash Player 10.1 betas have been launched'>Adobe Air 2.0 and Flash Player 10.1 betas have been launched</a> <small>Ah, the sheer programming bliss. I have been eagerly awaiting...</small></li>
<li><a href='http://www.sergemeunier.com/blog/getting-extjs-3-0-to-work-in-adobe-air/' rel='bookmark' title='Permanent Link: Getting ExtJS 3.0 to work in Adobe Air'>Getting ExtJS 3.0 to work in Adobe Air</a> <small>Adobe Air has quite a lot of security restrictions which...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Web browsers are notorious in how they handle key presses. Every browser handles them differently. I am not going to go into the details here about the differences between the browsers, as it is covered in lots of other places on the web. There is a particularly good comparison <a href="http://blog.pothoven.net/2008/05/keydown-vs-keypress-in-javascript.html">here</a> by The Pothoven Post which shows how the browsers differ in their interpretation of key presses. Rather I am going to deal with how it is handled in Adobe Air, and Webkit which air is built on.</p>
<p>The three events linked to capturing keys are the keydown, keyup and keypress events. And it is not all that difficult to listen to events using Javascript. The only code you need to listen to the keydown even is this:</p>
<pre name="code" class="javascript">keyDownEvent = function(e) {
   alert(e.keyCode);
}

document.getElementById('obj_name').addEventListener('keyup', keyUpEvent, false);
</pre>
<p>In Webkit, this event gets fired when you press a key, and <strong>e.keyCode</strong> contains the code for the key that was pressed. </p>
<p>What I was trying to do was to capture the ctrl-x, ctrl-c, ctrl-v shortcut keys.</p>
<p>When you press these key combinations, the keydown event should get fired. Rather more specifically, a keydown event will get fired for the ctrl key as well as for the c, x or v key, so you will get, with the code above, a popup giving a keycode of 17 when you press the ctrl key, and then, while holding down ctrl, if you press c, it will pop up with a key code of 67, which is the same code as if you had only been pressing c by itself.</p>
<p>So, what might my problem be, you may ask?</p>
<p>Well, everything works well, except for the fact that when you press ctrl-v, no event gets triggered, thus making it impossible to check for that key combination. You can detect ctrl-x and ctrl-c but not ctrl-v. I even tried many other keys, and all others I have tried have worked, and so it is solely the ctrl-v key combo which refuses to work.</p>
<p>Safari 4 is also built on top of Webkit, and thus should give similar results to Adobe Air, so I ran my code in there to test it. The code all worked fine in Safari 4, and the ctrl-v key combo was being correctly trapped. </p>
<p>This seems to indicate to me that there is a slight problem in Adobe Air itself as to why it won&#8217;t see this key, and I have yet to find a way in which to overcome this problem.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.sergemeunier.com%2Fblog%2Fcurious-adventure-in-capturing-key-presses-in-adobe-air%2F&amp;linkname=A%20curious%20adventure%20in%20capturing%20key%20presses%20in%20Adobe%20Air"><img src="http://www.sergemeunier.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://www.sergemeunier.com/blog/getting-adobe-air-and-paste-events-to-play-nicely/' rel='bookmark' title='Permanent Link: Getting Adobe Air and paste events to play nicely'>Getting Adobe Air and paste events to play nicely</a> <small>In a previous post, I talked about how Adobe Air...</small></li>
<li><a href='http://www.sergemeunier.com/blog/adobe-air-2-0-and-flash-player-10-1-betas-have-been-launched/' rel='bookmark' title='Permanent Link: Adobe Air 2.0 and Flash Player 10.1 betas have been launched'>Adobe Air 2.0 and Flash Player 10.1 betas have been launched</a> <small>Ah, the sheer programming bliss. I have been eagerly awaiting...</small></li>
<li><a href='http://www.sergemeunier.com/blog/getting-extjs-3-0-to-work-in-adobe-air/' rel='bookmark' title='Permanent Link: Getting ExtJS 3.0 to work in Adobe Air'>Getting ExtJS 3.0 to work in Adobe Air</a> <small>Adobe Air has quite a lot of security restrictions which...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.sergemeunier.com/blog/curious-adventure-in-capturing-key-presses-in-adobe-air/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Book review: Adobe AIR for Javascript Developers Pocket guide by Mike Chambers et al</title>
		<link>http://www.sergemeunier.com/blog/book-review-adobe-air-for-javascript-developers-pocket-guide/</link>
		<comments>http://www.sergemeunier.com/blog/book-review-adobe-air-for-javascript-developers-pocket-guide/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 09:40:08 +0000</pubDate>
		<dc:creator>Serge Meunier</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Adobe Air]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.sergemeunier.com/blog/?p=453</guid>
		<description><![CDATA[Most of the online resources for Adobe Air seem to centre around the Flash and Flex components, with relatively few resources for Javascript developers.
As more of a Javascript developer than a Flex developer, I found this little guide to be an invaluable book. In fact, I tend to look in here before I go launch [...]


Related posts:<ol><li><a href='http://www.sergemeunier.com/blog/book-review-professional-javascript-for-web-developers-by-nicholas-zakas/' rel='bookmark' title='Permanent Link: Book review: Professional JavaScript for Web Developers by Nicholas Zakas'>Book review: Professional JavaScript for Web Developers by Nicholas Zakas</a> <small>This is a very in-depth book, which guides you through...</small></li>
<li><a href='http://www.sergemeunier.com/blog/book-review-adobe-air-with-ajax-by-larry-ullman/' rel='bookmark' title='Permanent Link: Book review: Adobe Air with Ajax by Larry Ullman'>Book review: Adobe Air with Ajax by Larry Ullman</a> <small> Adobe Air can be very finicky when it comes...</small></li>
<li><a href='http://www.sergemeunier.com/blog/book-review-getting-started-with-flex-3/' rel='bookmark' title='Permanent Link: Book Review: Getting started with Flex 3 by Jack Herrington and Emily Kim'>Book Review: Getting started with Flex 3 by Jack Herrington and Emily Kim</a> <small>A few weeks ago, I managed to win this little...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=centoftheuniv-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=10FE9736YVPPT7A0FBG2&#038;asins=0596518374" style="width:120px;height:240px; position:relative; float:right;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>Most of the online resources for Adobe Air seem to centre around the Flash and Flex components, with relatively few resources for Javascript developers.</p>
<p>As more of a Javascript developer than a Flex developer, I found this little guide to be an invaluable book. In fact, I tend to look in here before I go launch a search in Google. </p>
<p>It covers just about everything you would want to with Adobe Air, and even though, in quite a few cases it does not have the detail I have sometimes needed, it provides a good starting point to search for more information on the Internet or other sources.</p>
<p>This is a much recommended book for  Javascript developers wanting to use Adobe Air.</p>
<p>The other nice thing about this book, is that it is available free online from Adobe&#8217;s site <a href="http://onair.adobe.com/files/AIRforJSDevPocketGuide.pdf">here</a>, as well as a hardcopy book.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.sergemeunier.com%2Fblog%2Fbook-review-adobe-air-for-javascript-developers-pocket-guide%2F&amp;linkname=Book%20review%3A%20Adobe%20AIR%20for%20Javascript%20Developers%20Pocket%20guide%20by%20Mike%20Chambers%20et%20al"><img src="http://www.sergemeunier.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://www.sergemeunier.com/blog/book-review-professional-javascript-for-web-developers-by-nicholas-zakas/' rel='bookmark' title='Permanent Link: Book review: Professional JavaScript for Web Developers by Nicholas Zakas'>Book review: Professional JavaScript for Web Developers by Nicholas Zakas</a> <small>This is a very in-depth book, which guides you through...</small></li>
<li><a href='http://www.sergemeunier.com/blog/book-review-adobe-air-with-ajax-by-larry-ullman/' rel='bookmark' title='Permanent Link: Book review: Adobe Air with Ajax by Larry Ullman'>Book review: Adobe Air with Ajax by Larry Ullman</a> <small> Adobe Air can be very finicky when it comes...</small></li>
<li><a href='http://www.sergemeunier.com/blog/book-review-getting-started-with-flex-3/' rel='bookmark' title='Permanent Link: Book Review: Getting started with Flex 3 by Jack Herrington and Emily Kim'>Book Review: Getting started with Flex 3 by Jack Herrington and Emily Kim</a> <small>A few weeks ago, I managed to win this little...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.sergemeunier.com/blog/book-review-adobe-air-for-javascript-developers-pocket-guide/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Getting ExtJS 3.0 to work in Adobe Air</title>
		<link>http://www.sergemeunier.com/blog/getting-extjs-3-0-to-work-in-adobe-air/</link>
		<comments>http://www.sergemeunier.com/blog/getting-extjs-3-0-to-work-in-adobe-air/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 09:37:57 +0000</pubDate>
		<dc:creator>Serge Meunier</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Adobe Air]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.sergemeunier.com/blog/?p=390</guid>
		<description><![CDATA[Adobe Air has quite a lot of security restrictions which it imposes on the Javascript trying to run in the sandbox. One of the side effects of this is that ExtJS throws up one of these security violations.
ExtJS 2.3 came with an extension so that it was able to be used within Adobe Air, which [...]


Related posts:<ol><li><a href='http://www.sergemeunier.com/blog/getting-adobe-air-and-paste-events-to-play-nicely/' rel='bookmark' title='Permanent Link: Getting Adobe Air and paste events to play nicely'>Getting Adobe Air and paste events to play nicely</a> <small>In a previous post, I talked about how Adobe Air...</small></li>
<li><a href='http://www.sergemeunier.com/blog/adobe-air-2-0-coming-early-next-year/' rel='bookmark' title='Permanent Link: Adobe Air 2.0 coming early next year'>Adobe Air 2.0 coming early next year</a> <small>I saw this morning on Inside RIA that Adobe Air...</small></li>
<li><a href='http://www.sergemeunier.com/blog/curious-adventure-in-capturing-key-presses-in-adobe-air/' rel='bookmark' title='Permanent Link: A curious adventure in capturing key presses in Adobe Air'>A curious adventure in capturing key presses in Adobe Air</a> <small>Web browsers are notorious in how they handle key presses....</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Adobe Air has quite a lot of security restrictions which it imposes on the Javascript trying to run in the sandbox. One of the side effects of this is that ExtJS throws up one of these security violations.</p>
<p>ExtJS 2.3 came with an extension so that it was able to be used within Adobe Air, which managed to bypass this problem, and using this extension, ExtJS works very well in Adobe Air.</p>
<p>However, the latest ExtJS 3.0 does not have this extension built in. According to the forums, they are still working on this. There is, fortunately, a workaround.</p>
<p>I have successfully managed to get ExtJS 3.0 to run in Adobe Air by copying the air extension from the ExtJS 2.3 codebase into the ExtJS 3.0 codebase, and then referencing it appropriately in the html page.</p>
<p>I do have to admit that doing this hack might potentially cause problems if you are trying to use any of the newest features in ExtJS 3.0, but so far have not had any issues. </p>
<p>When the air extension for ExtJS 3.0 does get release, that, of course, would be preferable, but until then, this works for me perfectly.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.sergemeunier.com%2Fblog%2Fgetting-extjs-3-0-to-work-in-adobe-air%2F&amp;linkname=Getting%20ExtJS%203.0%20to%20work%20in%20Adobe%20Air"><img src="http://www.sergemeunier.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://www.sergemeunier.com/blog/getting-adobe-air-and-paste-events-to-play-nicely/' rel='bookmark' title='Permanent Link: Getting Adobe Air and paste events to play nicely'>Getting Adobe Air and paste events to play nicely</a> <small>In a previous post, I talked about how Adobe Air...</small></li>
<li><a href='http://www.sergemeunier.com/blog/adobe-air-2-0-coming-early-next-year/' rel='bookmark' title='Permanent Link: Adobe Air 2.0 coming early next year'>Adobe Air 2.0 coming early next year</a> <small>I saw this morning on Inside RIA that Adobe Air...</small></li>
<li><a href='http://www.sergemeunier.com/blog/curious-adventure-in-capturing-key-presses-in-adobe-air/' rel='bookmark' title='Permanent Link: A curious adventure in capturing key presses in Adobe Air'>A curious adventure in capturing key presses in Adobe Air</a> <small>Web browsers are notorious in how they handle key presses....</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.sergemeunier.com/blog/getting-extjs-3-0-to-work-in-adobe-air/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
