hi,
thanks for the replies - I've been tinkering about with this and got some 
help from the guy who did the tutorial - 

I added code inside the marker - I went inside the marker1 movieclip and 
converted it to a button.

then I added this code in the MC

stop();
function colorNav(event:MouseEvent):void{
    MovieClip(root).gotoAndStop("about");
}
marker_1.addEventListener(MouseEvent.CLICK,colorNav);

so when I click the marker it communicates to the root of my project.

works.


BUT now I need multiple markers

i added this to the main bit of code for the map - 


*var myMarker :Marker = new Marker(new LatLng(20.6333,-156.4964),
                                  
var myMarker2:Marker = new Marker(new LatLng(-6.199264,106.843414),*


*new MarkerOptions({icon:new marker1(),
                  
new MarkerOptions({icon:new marker2(),*
                  
*    
hasShadow: false}));
gomap.addOverlay(myMarker);
}



hasShadow: false}));

gomap.addOverlay(myMarker2);

}*


but I am getting errors ...

Symbol 'GOOGLE_MAP', Layer 'Layer 2', Frame 1, Line 113    1084: Syntax 
error: expecting identifier before var.
Symbol 'GOOGLE_MAP', Layer 'Layer 2', Frame 1, Line 113    1084: Syntax 
error: expecting rightparen before colon.
Symbol 'GOOGLE_MAP', Layer 'Layer 2', Frame 1, Line 132    1084: Syntax 
error: expecting identifier before new.
Symbol 'GOOGLE_MAP', Layer 'Layer 2', Frame 1, Line 132    1086: Syntax 
error: expecting semicolon before leftparen.
Symbol 'GOOGLE_MAP', Layer 'Layer 2', Frame 1, Line 138    1084: Syntax 
error: expecting semicolon before rightparen.
Symbol 'GOOGLE_MAP', Layer 'Layer 2', Frame 1, Line 144    1084: Syntax 
error: expecting identifier before rightparen.


maybe this is a simple fix? 


-- 
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