WebSnapshot - a simple Adobe AIR application. 13

Posted by Daniel Wanja Wed, 13 Jun 2007 23:46:00 GMT

UPDATE: new version can be found here

I converted the original Apollo WebSnapshot Application to Adobe AIR using FlexBuilder 3. Now WebSnapshot works on OSX and Windows. The conversion was straight forward. I changed the root tag of the application from

<mx:ApolloApplication>
to
<mx:WindowedApplication>

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’t find out (yet) is how to set the file type and default filename in the save dialog. Any pointer is welcome!

Download it now: WebSnapshot0.2.air (right click and ‘Download Linked File’)

20070613_websnapshot_osx.gif

20070613_websnapshot.gif

To run the application you need to Adobe Integrated Runtime (AIR). Also uninstall Alpha 1 before installing Beta 1 if you had Apollo installed.

To uninstall the runtime on Windows:

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

To uninstall the runtime on Macintosh:

1. Delete the /Library/Frameworks/Adobe Apollo.framework directory.
2. Delete the /Library/Receipts/Adobe Apollo.pkg file.
3. Empty the Trash.
Comments

Leave a response

  1. underyang@yahoo.com Thu, 14 Jun 2007 09:41:39 GMT

    Could you share the source?

  2. flanture Thu, 14 Jun 2007 10:01:45 GMT

    To see inside air file just change extension to zip.

  3. Daniel Wanja Thu, 14 Jun 2007 14:05:09 GMT

    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 ).

  4. uyang Fri, 15 Jun 2007 07:20:13 GMT

    COOL,THANKS

  5. Red Head Sun, 29 Jul 2007 09:20:23 GMT

    Looks nice! I’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()

  6. Yang Thu, 27 Dec 2007 20:17:38 GMT

    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 ).

  7. MGM Mon, 31 Dec 2007 00:59:24 GMT

    I can’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

  8. Emo Fri, 08 Feb 2008 01:31:24 GMT

    I like this small Adobe Air Applications, some of them are really useful. Like this.

    Thanks!

  9. Alexander Evans Fri, 07 Mar 2008 14:47:45 GMT

    This is really great, I prefer it over Silverlight currently. Thanks for throwing some Air Applications in already, very appreciated.

  10. קידום אתרים Mon, 31 Mar 2008 13:16:49 GMT

    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 ).

  11. Sid_M Sat, 26 Apr 2008 03:38:48 GMT

    After playing around, I stumbled on hot set defaults for browseForSave(). Set the file object’s path to what you want as the default, and that will be respected by the dialog box. Like this:

    file = File.documentsDirectory.resolvePath("mySubDirectories/myDefaultFilename.ext");

    That’s it.

  12. Cayman Sun, 25 May 2008 07:09:41 GMT

    Like Daniel Wanja already commented you’ll only find the compiled sorces. For decompiling I often use a tool named “CreezyFile” >> it’s great. I can recommend it.

    Nice blog, by the way :)

  13. Flex Resources Mon, 05 Jan 2009 02:43:51 GMT

    Great list of Flex Resources at: http://www.flexbasics.com

Comments