Ver Mensaje Individual
  #6 (permalink)  
Antiguo 13/08/2008, 04:21
tyxola
 
Fecha de Ingreso: julio-2008
Mensajes: 9
Antigüedad: 15 años, 9 meses
Puntos: 0
Respuesta: importar google maps en flash

hola,

estoy con este componente y no soy capaz de insertar un marcador que señale la ubicación de mi empresa, lo estoy intentando con este código en una capa superior:

import com.yahoo.maps.tools.PanTool;
import com.yahoo.maps.markers.CustomPOIMarker;
miMapa.addEventListener(com.yahoo.maps.api.flash.Y ahooMap.EVENT_INITIALIZE, onInitMap);
function onInitMap(eventData) {
var panTool = new PanTool();
miMapa.addTool(panTool, true);
var address = “Avenida 24 de Septiembre 788, PONTEVEDRA, ES”;
miMapa.setCenterByAddress(address, 0);
var myMarker = {index:’Systematic’, title:’IT Solutions’, description:’Desarrollo de aplicaciones web enabled’, markerColor:0×990099, strokeColor:0xFFFF00};
miMapa.addMarkerByAddress(CustomPOIMarker, address, myMarker);
}


Me salen dos errores:


**Error** Scene=Scene 1, layer=Layer 3, frame=1:Line 7: This type of quotation mark is not allowed in ActionScript. Please change it to a standard (straight) double quote.
var address = “Avenida 24 de Septiembre 788, PONTEVEDRA, ES”;

**Error** Scene=Scene 1, layer=Layer 3, frame=1:Line 9: Syntax error.
var myMarker = {index:’Systematic’, title:’IT Solutions’, description:’Desarrollo de aplicaciones web enabled’, markerColor:0×990099, strokeColor:0xFFFF00};

Total ActionScript Errors: 2 Reported Errors: 2

No consigo que salga nada, si alguien pudiera ayudarme......