« Apollo alpha is live | Main | Using HTML and Script Bridging in Apollo »

March 19, 2007

MapSnap: An Apollo Example Application

MapSnap was one of the first Apollo applications I wrote which incorporates HTML. It lets you look up addresses on a Yahoo map, and save the maps as a PNGs to your desktop. It's a very simple application, but I think it makes for an excellent example.

MapSnap demonstrates the following:

If you just want to run the app, all you need is the Apollo runtime, and the MapSnap AIR file. If you want to see the source code, here is the Flex Builder project. There's a lib directory in the project with corelib.swc in it which you need to link in to your project in order to get the PNG encoding support.

Posted by cantrell at March 19, 2007 1:44 PM

Comments

Thanks Christian!
Is there any chance to release the hot app with the address book cards and the yahoo maps?
Take care.

Posted by: Savvas Malamas at March 19, 2007 2:15 PM

I wonder why you didn't enable View Source feature of Apollo apps as Flex Builder project setting like you did with Flex apps. In this early development phase it would be cool just download single .air file, test the app and view source as well.

Posted by: Erki Esken at March 19, 2007 2:25 PM

We'll probably enable view source at some point. And yes -- I will be release Maptacular at some point. And tons of other apps. I just need to clean them up a bit.

Christian

Posted by: Christian Cantrell at March 19, 2007 3:20 PM

Is it safe to assume that, as this is an alpha release, that performance will be considerably snappier come 1.0 time?

There is still a hint of sluggishness in the sample apps I have played with, most notably, Fresh... The app and the interaction seems simple enough that there shouldn't be any perceptible lag when clicking from post to post (even after it has been cached).

I was hoping that flash 9/tamarin would eliminate the lags. That would make me a True Believer, rather than a mere advocate of all things Flash.

Posted by: Mark Muday at March 19, 2007 6:43 PM

Christian

Great demo - thanks for sharing. Just an FYI - after running it on my machine for a few minutes it has already sucked up a half-gig of ram. I zoomed in to the parks area of SF and drug the screen around, then entered in my home address. Bam - 500 mb.

Thanks!
-Pat

Posted by: P Buchanan at March 20, 2007 12:02 PM

Great work. I'm excited to see the possibilities of intermixing all of the web technologies with desktop app power.

Mark:
The Fresh app is actually a DHTML/JavaScript application running on the Ext framework (formerly yui-ext). As an active user of the Ext framework and beginning blogging about Ext and ColdFusion, Apollo is a very exciting project. This demo shows my boss and my team that right out of the box, Apollo is able to run sample application from the Ext framework. This is huge if we decide to create an Apollo application from existing source.

Unfortunately, I think that Adobe could have provided a little more attribution to Jack Slocum . Here is a link to the original app which is running under Apollo.

Posted by: Aaron Conran at March 20, 2007 9:15 PM

When I click Snap I get this error:

Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.
at flash.filesystem::File$/flash.filesystem:File::getFile()[C:\Documents and Settings\acrorel\Local Settings\Temp\aslibc-26332\File.as:1535]
at flash.filesystem::File$/get desktopDirectory()[C:\Documents and Settings\acrorel\Local Settings\Temp\aslibc-26332\File.as:711]
at MapSnap/::takeSnapshot()
at MapSnap/___Button2_click()

any ideas?

matt

Posted by: Matt at March 31, 2007 7:43 AM

Has anyone tried building an AIR project with the YahooMap component? I am using the beta release of AIR and am having trouble getting it to work.

I get the following error:
1046: Type was not found or was not a compile-time constant: YahooMap.

It doesn't seem to be bringing in the yahoo libraries or something.

Posted by: Gary Mangum at June 19, 2007 7:28 PM

There is still a hint of sluggishness in the sample apps I have played with, most notably, Fresh... The app and the interaction seems simple enough that there shouldn't be any perceptible lag when clicking from post to post (even after it has been cached).

Posted by: Peter at September 26, 2007 11:58 AM

"Using a native file browser (the technique I use in MapSnap is a hack, but it will get you through until we officially add this functionality to Apollo)." So did they add it. Any new information about it? Thanks.

Posted by: Daniel at October 5, 2007 2:14 PM

The newest version of the app (available on labs.adobe.com) uses the real file browsing APIs. The app is now called MapCache. Check it out.

Christian

Posted by: Christian Cantrell at October 8, 2007 8:39 AM

Has anyone tried building an AIR project with the YahooMap component? I am using the beta release of AIR and am having trouble getting it to work.

Posted by: sharp aquos at December 19, 2007 1:24 PM




Remember Me?

(you may use HTML tags for style)

Copyright © 2009 Adobe Systems Incorporated. All rights reserved.
Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy (updated 07-14-2009).