Tim Walling

technology is good

Flex 2 Yahoo Maps

4 comments

I’ve been meaning to experiment with this for some time and was reminded of it with the recent release of FlashInterface. Currently there’s no Flex 2 component for Yahoo Maps and since Flash 9 content can’t talk directly to Flash 8 content I wondered how one might use the Yahoo Maps Flash component in a Flex 2 application I always knew LocalConnection was a possibility but hadn’t thought about using ExternalInterface until I came across the solution I mentioned above. I figured this would be a great chance to try out FlashInterface and complete my proof of concept all in one shot.

I’ll post the source code soon as I plan on making more updates to this. I might also use it as a chance to play with UrlKit some more and knock out another task I’ve been meaning to get done. There might be a few issues with this example right now, I’ve noticed that the mouse handling seems to be a bit funky when one tries to click on the map marker. I think the Flex application is intercepting the click before the Flash component is so I’ll have to fix that.

Launch Flex 2 Yahoo Maps

Written by Tim

November 27th, 2006 at 5:33 pm

Posted in Flash, Flex

4 Responses to 'Flex 2 Yahoo Maps'

Subscribe to comments with RSS or TrackBack to 'Flex 2 Yahoo Maps'.

  1. Very nice!

    Did you put the address bar in the Flash object, or is it part of the Flex interface?

    John

    31 Jan 07 at 12:05 pm

  2. The address bar is part of the Flex interface. The goal was to only have the Yahoo map component as Flash, then embed that into a regular Flex application. I still have to post this code…

    Tim

    31 Jan 07 at 12:53 pm

  3. This is exactly what I’m trying to do – can’t wait to see your code.

    The thing I’m worried about (besides getting it to work) is that as soon as I get this to work, Yahoo’s going to release a Flex 2 version of the Maps API, and I’ll just have to start over anyway.

    Anyway, I’m off to look at this Flash Interface thing you cited in your post. Maybe it’ll help. Thanks for sharing!

    John

    31 Jan 07 at 1:59 pm

  4. [...] Want to use Yahoo! Maps in Flash 9 or Flex 2? Vote for it. Let your voice be heard! The Yahoo! Developer Network suggestion board has a topic with digg-like voting that is getting some strong interest, and I want to see the votes jump into the triple digits. If you’re unfamiliar with the current sitation, the Maps API targets ActionScript 2. There have been a thousand different ways to use LocalConnection to communicate with the AS2 version of Yahoo! Maps from Flash 9. Let me tell you, it feels like the big ugly hack that it is. [...]

Leave a Reply