Yahoo Maps + Coldfusion = Dynamic Marker Example

While it’s nothing ground-breaking, I wanted to show a quick example of how to create a Yahoo Map with dynamic markers using coldfusion and LoadVars() in Flash. The coldfusion script pulls the data from an SQL database and passes it on to the flash app to plot as many markers as there are data entries. It may not be the cleanest, but it’s a quick solution.

I’ve also included a text file, in case you don’t have coldfusion and a database set up, that would be similar to what might be passed on to the flash app. So, you can also play around with the text file if you don’t want to set up a database and coldfusion.

UPDATE: I’ve included another swf for those without Flash authoring. This swf points to the cfm file for everything, including the app-ID. Also, the map auto-centers inself based on the first address in the events.

Click here to download the file..

Click here to download the .fla-less swf and cfm. (no flash authoring required)