Developer Network Home  Help 

YDN Flash Developer Center Yahoo! Maps AS3 Component
Flash Developer Center

Yahoo! Maps AS3 Component

The all-new Yahoo! Maps component for Flex 3 enables you to add a map to a wide-range of web and desktop applications. Included in the API is support for other Yahoo! APIs including the geocoder, local search and traffic APIs along with an advanced marker and overlay manager to allow you to easily represent data on the map.

Using the YahooMap component in your Flash, Flex, Ajax or AIR projects gives you the ability to develop anything from a simple map mash-up to full application utilizing Yahoo! Maps.

Download

Using the YahooMap AS3 Component in ActionScript and Flex 3 applications

This sample ActionScript application creates a YahooMap object that demonstrates how to render the map and center on a location.

Screen capture of YahooMap ActionScript Example

To see a live example, please install Adobe Flash Player version 9 or higher.

Initializing a YahooMap with MXML

The approach to adding a YahooMap to your Flex application is similar, but requires that you add the YahooMap object as a child of a UIComponent. This example demonstrates how to create a map in MXML and how to geocode a location.

View the Flex example.

To get further in-depth with the API and download sample application, head over to the examples page. Also, be sure to check out the class reference documentation.