Hi Joe,

Some notes to guide:
http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_8.html
^ In terms of data binding, this has it pretty well explained, it's good to 
understand though that when you add the [Bindable] tag you're really adding 
a getter and a setter and in the setter your implicitly dispatching an event 
(which by default is generic and may trigger many potential listeners, 
basically the point is Bindable is great for the boilerplate code it dodges 
but it's easy to create situations where the run-time execution speed is 
horrible due to bad/excessive bindables, so use them but try to be aware of 
how this is really happening, and if you have issues you'll have a better 
idea of where to look).

For "infinite markers", having worked with the flash maps API quite a bit 
that's a hilarious way to put it.  Getting 10 markers on the map without 
having it run like an old dog was originally a challenge, Jonathan Wagner 
posted a great example on how to get around the issue, I expanded on the 
concept and posted by take here:
http://www.shaunhusain.com/GoogleMapManyMarker/
my extension of his concept includes a clustering class from Kevin Luck as 
well, on top of those two parts I just added the mouse functionality for 
finding the closest marker in the overlay.  Essentially how this works is 
instead of adding a bunch of overlays (calling addOverlay) for each marker 
Jonathan suggested making a single overlay and dealing with re-positioning 
your markers withing the overlay rather than having the maps api update each 
of the overlays individually.  The clusterer class take a bunch of points 
after the lat/lng is translated to screen coordinates and determines if the 
local point distance between the markers is less than some "CLUSTER_RADIUS" 
and lumps them into a single object in an array based on their visual 
proximity to one another on screen.  Finally my code picks up the mouse move 
events on the overlay and determines which point on screen is closest to the 
current mouse position and causes the appropriate behavior on the marker 
under that location.  I make no guarantee to the fitness of the code for any 
given scenario, but you can take it as is and modify it at your will. 
 Otherwise here's my starting points for that if you'd like to take it in 
your own direction:
http://googlemapsmania.blogspot.com/2010/09/100000-markers-no-clustering.html
http://www.kelvinluck.com/2009/08/google-maps-for-flash-marker-clustering/
If you do use mine you can view source on my site and download the zip, the 
classes you'll be interested in are: ManyMarkerHolder.as (the overlay that 
is the "god" class of the whole operation), the LightMarkerVO.as which is a 
custom value object that you'd modify to store your mp3, Clusterer.as (if 
you want clustering otherwise need to decouple this from the 
ManyMarkerHolder.as).  You would create an instance of the ManyMarkerHolder, 
add it as an overlay then use it's "addSingleMarker" method passing it a 
LightMarkerVO for it to add to it's internal collection of markers it'll use 
for cluster/drawing/interaction.

On the MP3 playback side of things I like this example a lot (who doesn't 
like audio vis :) http://lab.benstucki.net/archives/visualizationexplorer/ from 
Ben Stucki.

I also recommend checking out "Flex in a Week" if you're still getting your 
feet wet, tutorial videos from Adobe (despite the injected advertising for 
ColdFusion etc.) they're a pretty good introduction into how to get things 
done in the "right" way.

Shaun

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api-for-flash?hl=en.

Reply via email to