We had this same need.  we store listings in a manager and place them
individually on the map. our solution required setting a "marker"
value on each object in the dataset to equal the marker's "foreground"
object when the marker is created.  we use the foreground object
(which is a display object) because it turns out the marker object
itself cant be referenced later (don't know why).  here's the idea:

(when the listing's marker is placed on the map)
listingInManager.marker = newMarkerOnMap.foreground;

(where you need to get a listing ID back ground the marker)
var listingId = ListingManager.getListingFromMarker
( theMarker ).listingId;

(how the manager does that)
for each ( var listing in mListingContainer )
                        {
                                if ( listing.marker === pMarker )
                                {
                                        return listing;
                                }
                        }


On Aug 25, 11:59 am, larry22 <[email protected]> wrote:
> Is there a way to return a Flash instance name when a marker is
> clicked?
>
> I am trying to associate other data with a marker.. so that when a
> marker is clicked... the app essentially says "you clicked marker 1"
> and gets all other data from another data source about marker 1.....
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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