forwarding 

Dimitrios Gianninas
Moderator

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of oivind_gronli
Sent: Wednesday, September 26, 2007 8:08 AM
To: [EMAIL PROTECTED]
Subject: Re: yahoo maps "CustomSWFMarker"

Try this:

Alert.show("Type: " + ev.lastResult.type + "\nRef: " + ev.lastResult.ref);

I was able to figure out the name of the reference parameter, but I can't 
figure out how to use it. I want to call functions on the custom marker, and 
eventually having the custom marker dispatching events which I can listen for.

I think I might need the YahooMap.swc, but I get an error when I try to add 
this to my project.

Any tips on how to do this?

Thanks
Oivind

--- In flexcoders@yahoogroups.com, Alain Thibodeau <[EMAIL PROTECTED]>
wrote:
>
> 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" <thibs73@ > 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
>


-- 
WARNING
-------
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--------------
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.

Reply via email to