<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>OnRails.org: WebSnapshot - a simple Adobe AIR application.</title>
    <link>http://onrails.org/articles/2007/06/13/websnapshot-a-simple-adobe-air-application</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Ruby On Rails and related matters.</description>
    <item>
      <title>WebSnapshot - a simple Adobe AIR application.</title>
      <description>&lt;span class="caps"&gt;UPDATE&lt;/span&gt;: new version can be found &lt;a href="http://myspyder.net/tools/websnapshot/"&gt;here&lt;/a&gt;
&lt;p/&gt;
I converted the &lt;a href="http://onrails.org/articles/2007/04/05/web-snapshot-a-simple-apollo-application"&gt;original Apollo WebSnapshot&lt;/a&gt; Application to Adobe &lt;span class="caps"&gt;AIR&lt;/span&gt; using &lt;a href="http://labs.adobe.com/technologies/flex/flexbuilder3/"&gt;FlexBuilder 3&lt;/a&gt;. Now WebSnapshot works on &lt;span class="caps"&gt;OSX&lt;/span&gt; and Windows. 

The conversion was straight forward. I changed the root tag of the application from 
&lt;pre&gt;&amp;lt;mx:ApolloApplication&amp;gt;&lt;/pre&gt; to &lt;pre&gt;&amp;lt;mx:WindowedApplication&amp;gt;&lt;/pre&gt; 

	&lt;p&gt;Then I used the new File.browseForSave method to show the save dialog when clicking on the thumbnail. No need anymore for the workaround that was required for this before. One thing I didn&amp;#8217;t find out (yet) is how to set the file type and default filename in the save dialog. Any pointer is welcome!&lt;/p&gt;


	&lt;p&gt;Download it now: &lt;a href="http://onrails.org/files/WebSnapshot0.2.air"&gt;WebSnapshot0.2.air&lt;/a&gt; (right click and &amp;lsquo;Download Linked File&amp;rsquo;)&lt;/p&gt;


	&lt;p&gt;&lt;img src="http://onrails.org/files/20070613_websnapshot_osx.gif" border="0" height="270" width="500" alt="20070613_websnapshot_osx.gif"  /&gt;&lt;/p&gt;


	&lt;p&gt;&lt;img src="http://onrails.org/files/20070613_websnapshot.gif" border="0" height="285" width="500" alt="20070613_websnapshot.gif" align="" /&gt;&lt;/p&gt;


	&lt;p&gt;To run the application you need to &lt;a href="http://labs.adobe.com/downloads/air.html"&gt;Adobe Integrated Runtime (AIR)&lt;/a&gt;.  Also uninstall Alpha 1 before installing Beta 1 if you had Apollo installed.&lt;/p&gt;


	&lt;p&gt;To uninstall the runtime on Windows:&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;1. In the Windows Start menu, select Settings &amp;gt; Control Panel.
2. Select the Add or Remove Programs control panel.
3. Select &amp;amp;ldquo;Adobe Apollo 1.0 Alpha1&amp;amp;rdquo; to uninstall the Apollo runtime.
4. Click the Change/Remove button.&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;To uninstall the runtime on Macintosh:&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;1. Delete the /Library/Frameworks/Adobe Apollo.framework directory.
2. Delete the /Library/Receipts/Adobe Apollo.pkg file.
3. Empty the Trash.&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 13 Jun 2007 23:46:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:e36e7838-cb98-46bc-b0d8-e220c20a2a40</guid>
      <author>Daniel Wanja</author>
      <link>http://onrails.org/articles/2007/06/13/websnapshot-a-simple-adobe-air-application</link>
    </item>
    <item>
      <title>"WebSnapshot - a simple Adobe AIR application." by Cayman</title>
      <description>&lt;p&gt;Like Daniel Wanja already commented you&amp;#8217;ll only find the compiled sorces. For decompiling I often use a tool named &amp;#8220;CreezyFile&amp;#8221; &amp;gt;&amp;gt; it&amp;#8217;s great. I can recommend it.&lt;/p&gt;


	&lt;p&gt;Nice blog, by the way :)&lt;/p&gt;</description>
      <pubDate>Sun, 25 May 2008 07:09:41 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:d1798e5e-f525-4ae3-9e88-f8449e25192f</guid>
      <link>http://onrails.org/articles/2007/06/13/websnapshot-a-simple-adobe-air-application#comment-3559</link>
    </item>
    <item>
      <title>"WebSnapshot - a simple Adobe AIR application." by Sid_M</title>
      <description>&lt;p&gt;After playing around, I stumbled on hot set defaults for browseForSave(). Set the file object&amp;#8217;s path to what you want as the default, and that will be respected by the dialog box. Like this:&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;file = File.documentsDirectory.resolvePath("mySubDirectories/myDefaultFilename.ext");&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;That&amp;#8217;s it.&lt;/p&gt;</description>
      <pubDate>Sat, 26 Apr 2008 03:38:48 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:913cc497-58c8-4423-9fca-7738d1bee992</guid>
      <link>http://onrails.org/articles/2007/06/13/websnapshot-a-simple-adobe-air-application#comment-3491</link>
    </item>
    <item>
      <title>"WebSnapshot - a simple Adobe AIR application." by קידום אתרים</title>
      <description>&lt;p&gt;Inside the .air file, which is a zip like flanture mentioned, you will only find the compiled version not the sources. You can find most of the significant code in the original blog post, and I will also release the code with the next release (0.3). I will first ensure the save dialog gets populated with the default file name, replace the JPEGEncoder with the one provided by Flex 3 (mx.graphics.codec.JPEGEncoder ).&lt;/p&gt;</description>
      <pubDate>Mon, 31 Mar 2008 13:16:49 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:6db8b43e-a8de-4655-b3f6-0eebd99e5dd7</guid>
      <link>http://onrails.org/articles/2007/06/13/websnapshot-a-simple-adobe-air-application#comment-3425</link>
    </item>
    <item>
      <title>"WebSnapshot - a simple Adobe AIR application." by Alexander Evans</title>
      <description>&lt;p&gt;This is really great, I prefer it over Silverlight currently. Thanks for throwing some Air Applications in already, very appreciated.&lt;/p&gt;</description>
      <pubDate>Fri, 07 Mar 2008 14:47:45 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:231ac579-8f4c-4d53-b5a2-8665b016a796</guid>
      <link>http://onrails.org/articles/2007/06/13/websnapshot-a-simple-adobe-air-application#comment-3365</link>
    </item>
    <item>
      <title>"WebSnapshot - a simple Adobe AIR application." by Emo</title>
      <description>&lt;p&gt;I like this small Adobe Air Applications, some of them are really useful. Like this.&lt;/p&gt;


	&lt;p&gt;Thanks!&lt;/p&gt;</description>
      <pubDate>Fri, 08 Feb 2008 01:31:24 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:65f97613-3330-489f-abd1-09ad0f346a2d</guid>
      <link>http://onrails.org/articles/2007/06/13/websnapshot-a-simple-adobe-air-application#comment-3254</link>
    </item>
    <item>
      <title>"WebSnapshot - a simple Adobe AIR application." by MGM</title>
      <description>&lt;p&gt;I can&amp;#8217;t seem to get it to initialize, I get a memory runtime error in Windows XP every time. Please feel free to e-mail me at my given address if you know how to fix it. Thank you&lt;/p&gt;</description>
      <pubDate>Mon, 31 Dec 2007 00:59:24 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:f6c37835-a238-4a6e-a8bd-5dfa5ca4cd3c</guid>
      <link>http://onrails.org/articles/2007/06/13/websnapshot-a-simple-adobe-air-application#comment-3186</link>
    </item>
    <item>
      <title>"WebSnapshot - a simple Adobe AIR application." by Yang</title>
      <description>&lt;p&gt;Inside the .air file, which is a zip like flanture mentioned, you will only find the compiled version not the sources. You can find most of the significant code in the original blog post, and I will also release the code with the next release (0.3). I will first ensure the save dialog gets populated with the default file name, replace the JPEGEncoder with the one provided by Flex 3 (mx.graphics.codec.JPEGEncoder ).&lt;/p&gt;</description>
      <pubDate>Thu, 27 Dec 2007 20:17:38 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:c8379037-0bd6-496d-afd2-a87309218c51</guid>
      <link>http://onrails.org/articles/2007/06/13/websnapshot-a-simple-adobe-air-application#comment-3181</link>
    </item>
    <item>
      <title>"WebSnapshot - a simple Adobe AIR application." by Red Head</title>
      <description>&lt;p&gt;Looks nice!
I&amp;#8217;m also building an air app where the user can save a file and i have the same problem:
How to set the default filename when using the browseforsave()&lt;/p&gt;</description>
      <pubDate>Sun, 29 Jul 2007 09:20:23 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:a35727f1-d15b-4806-afb3-82e26f4f6522</guid>
      <link>http://onrails.org/articles/2007/06/13/websnapshot-a-simple-adobe-air-application#comment-2480</link>
    </item>
    <item>
      <title>"WebSnapshot - a simple Adobe AIR application." by uyang</title>
      <description>&lt;p&gt;COOL,THANKS&lt;/p&gt;</description>
      <pubDate>Fri, 15 Jun 2007 07:20:13 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:729af542-0f7b-4c1c-b8a2-36c4eeff191f</guid>
      <link>http://onrails.org/articles/2007/06/13/websnapshot-a-simple-adobe-air-application#comment-2312</link>
    </item>
    <item>
      <title>"WebSnapshot - a simple Adobe AIR application." by Daniel Wanja</title>
      <description>&lt;p&gt;Inside the .air file, which is a zip like flanture mentioned, you will only find the compiled version  not the sources. You can find most of the significant code in the original blog post, and I will also release the code with the next release (0.3). I will first ensure the save dialog gets populated with the default file name, replace the JPEGEncoder with the one provided by Flex 3 (mx.graphics.codec.JPEGEncoder ).&lt;/p&gt;</description>
      <pubDate>Thu, 14 Jun 2007 14:05:09 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:45aa3362-48db-41ed-93a2-b5a5d79bcadc</guid>
      <link>http://onrails.org/articles/2007/06/13/websnapshot-a-simple-adobe-air-application#comment-2309</link>
    </item>
    <item>
      <title>"WebSnapshot - a simple Adobe AIR application." by flanture</title>
      <description>&lt;p&gt;To see inside air file just change extension to zip.&lt;/p&gt;</description>
      <pubDate>Thu, 14 Jun 2007 10:01:45 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:73a60d3f-9460-49ef-9963-3489239f656f</guid>
      <link>http://onrails.org/articles/2007/06/13/websnapshot-a-simple-adobe-air-application#comment-2308</link>
    </item>
    <item>
      <title>"WebSnapshot - a simple Adobe AIR application." by underyang@yahoo.com</title>
      <description>&lt;p&gt;Could you share the source?&lt;/p&gt;</description>
      <pubDate>Thu, 14 Jun 2007 09:41:39 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:223d884c-d567-4955-a15a-6e466f5e3165</guid>
      <link>http://onrails.org/articles/2007/06/13/websnapshot-a-simple-adobe-air-application#comment-2307</link>
    </item>
  </channel>
</rss>
