background preloader

Flex/Flash

Facebook Twitter

Maps API ActionScript Reference - Google Maps API for Flash - Go. The Maps JavaScript API lets you customize maps with your own content and imagery for display on web pages and mobile devices. The Maps JavaScript API features four basic map types (roadmap, satellite, hybrid, and terrain) which you can modify using layers and styles, controls and events, and various services and libraries. Audience This documentation is designed for people familiar with JavaScript programming and object-oriented programming concepts. You should also be familiar with Google Maps from a user's point of view. There are many JavaScript tutorials available on the Web. This conceptual documentation is designed to let you quickly start exploring and developing applications with the Maps JavaScript API. Hello, World The easiest way to start learning about the Maps JavaScript API is to see a simple example.

View example <! Try Sample Even in this simple example, there are a few things to note: We declare the application as HTML5 using the <! These steps are explained below. Libraries <! Source of MarkerCategoriesDemo. H. Using Google Maps in a Flex project. The following example shows how you can embed a Google map into a Flex/ActionScript 3.0 project. Full code after the jump. Before getting started, you need to first get an API key from Google and then download the mapping component and put it in your /libs/ folder in your Flex Builder 3 project: View MXML View source is enabled in the following example. For more information and examples, see the “Google Maps API for Flash homepage”. Maps API for Flash - Google Code. Maps API for Flash Events - Google Maps API for Flash - Google C. Map Events Overview ActionScript within SWF files is event driven, meaning that ActionScript responds to interactions by generating events, and expects a program to listen to interesting events.

For example, within a Flash file, user mouse and keyboard interactions create events that propagate throughout the Flash UI. Events may also be generated internally by the system when a state change occurs. Programs interested in certain events will register ActionScript event listeners for those events and execute code when those events are received. Generally, UI events within Flash bubble up from leaf "targets" up to the container objects, triggering events throughout the chain of objects. A click on a DisplayObject, for example, may trigger an event MouseEvent.MOUSE_DOWN on that object, and then pass that event up the hierarchy to any containing elements. The Google Maps API for Flash adds to this event model by defining custom events for objects within the API. Event Listeners. Create your first Google Maps Flex application. Custom Search Matthew Casperson's Hubfolio Has Moved Matt's hubfolio articles moved to his personal website at You can also follow Matt on Twitter!

@mcasperson Recommended by About Bright Hub Contact Us Advertise with Us Site Map Terms of Use Privacy Policy Copyright Policy ©2016 Bright Hub Inc. Popular Pages Home Additional Info Promoted Stories Python Eats A Porcupine Whole, Then The Unexpected Happens LolBoom 16 Things Cruise Ships Keep Hidden From Customers Destination Tips This Is What Will Happen When You Eat Avocados Every Day All - Awesome tips 10 Great Cars That Nobody Buys Buzzdrives.com Site Links Follow Us.