Thanks, it did help, in order to load custom markers with click events this is 
now my attempt....
 
What I am now trying to do is load custom markers, once the user clicks on it, 
it's a method inside the loaded swf marker that loads the image...but I need to 
pass the image location to the loaded swf.. once it's loaded... This is what I 
have so far:

I added an event listener :
mapEventDispatcher.addEventListener('addSWFMarkerByAddress_Result', 
onSWFMarkerAdded);

Then similar to what you have:
latLonController.addMarkerByLatLon('CustomSWFMarker',44, 
-80,{url:'customMarker.swf', ref:'myMark'});

Then the event function:
 private function onSWFMarkerAdded(ev:Object):void {
    Alert.show(ev.lastResult, 'Title');
  //shows nothing...
}

All works great, the event fires when the markers are added BUT from what I 
gather the event object "ev" has 2 params: event type and a reference id. I do 
not know however what the actual param names are....And for some reason my 
Flexbuilder hangs while the map is loading ( I am uing the yahoo as3 connection 
kit) in debug mode.. I cannot go see the names..

So now, I am trying to figure out how I am going to pass the data to the loaded 
swf....  :(

Perhaps this is the wrong approach, but I am learning! :)

thanks in advance for any help!



----- Original Message ----
From: Abyss Knight <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, September 12, 2007 3:21:19 PM
Subject: [flexcoders] Re: yahoo maps "CustomSWFMarker"

I actually am having the same documentation issues, but this might
help you:

latLonController. addMarkerByLatLo n('CustomPOIMark er',dp[i] .lat,
dp[i].lon,{index: index,title: dp[i].shortName, description:
description, markerColor: Number('0x3366CC' ), strokeColor:
Number('0xCEE9FF' )}); 

Basically, it uses the latLonController to add CustomPOIMarker.
Problem is, the response will not give you a reference. I hacked
around it using the title of the marker as an index to the data array.

Hope that helps,
- William

--- In [EMAIL PROTECTED] ups.com, "thibs73" <[EMAIL PROTECTED] > wrote:
>
> 
> Hi there,
> 
> Anyone know if there is a click event for a CustomSWFMarker in yahoo 
> Maps? Just like the "onPOIClicked" for POIMarker... why am I not using 
> POIMarker? Because it seems that I can only add POI Markers by address 
> only. I need to be able to add it by Lat & Lon.
> 
> To sum up, I want to add custom makers by Lat & Lon, open a unique 
> image when the user clicks on any of them. \
> 
> I am having a hard time finding documentation on this.
> 
> Any help would be great, 
> Thank-you
>





      Be smarter than spam. See how smart SpamGuard is at giving junk email the 
boot with the All-new Yahoo! Mail at http://mrd.mail.yahoo.com/try_beta?.intl=ca

Reply via email to