Yahoo! Map custom markers with Flash and Actionscript 3.0

Yahoo! Map custom markers with Flash and Actionscript 3.0

In this post i will show you briefly on how you can change the standard map marker of a Yahoo map component inside Flash, into any custom marker. Basically we can just sent a movieclip to the map marker manager to attach as marker.

afbeelding-34

Below is the Actionscript code you can use to achieve a custom marker , this is just a movieclip that is attached to the SimpleMarker and can be used to make the map more interactive by example including buttons or other components inside this movieclip …
Custom Marker Clip

afbeelding-5

Custom Marker

afbeelding-6

Following the code above, the outcome would be something like this , but than with your custom image as marker

afbeelding-42

About the Author

Daan is a Creative-Geek with passion for Adobe Flash , Flex and Air. He loves learning and sharing new techniques! Follow him on Twitter to keep up to date with the Creative-Geeks blog and other subjects. Contact him on e-mail : info[at]creative-geeks.com