I had been following code samples following this pattern:
Problem solved
markerLocal.addEventListener(MapMouseEvent.CLICK,
function(e:MapMouseEvent):void {
Logger.info("MapMouseEvent.CLICK: ",
markerLocal.getOptions().tooltip);
}
);
THIS DOESNT WORK
you need to use the target in the event:
markerLocal.addEventListener(MapMouseEvent.CLICK,
function(e:MapMouseEvent):void {
var m:Marker = e.target as Marker;
Logger.info("MapMouseEvent.CLICK: ", m.getOptions().tooltip);
}
);
I don't know why all the Google code samples use the incorrect
pattern.
On Oct 21, 2:02 pm, chrissky <[EMAIL PROTECTED]> wrote:
> reading docs, I see marker.foreground is the DisplayObject
> But setting properties on that didn't have any effect.
>
> Chris
>
> On Oct 21, 1:29 am, chrissky <[EMAIL PROTECTED]> wrote:
>
> > wanting to do something like:
> > marker.getOptions().icon.alpha = .5
>
> > I get no error but nothing visually changes
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---