Amigos estoy desarrollando una aplicacion con un mapa donde creo un marcador para mostrar imagenes segun el cursor se va moviendo por los diferentes puntos del mapa.
Código :
import mx.transitions.Tween; import mx.transitions.easing.*; var cities:Array = ["raul", "yoelvi", "yadira","lian"] function mover (targetX, targetY){ currentX = marker_mc._x; currentY = marker_mc._y; var xTween:Tween = new Tween(marker_mc, "_x", Strong.easeOut, currentX, targetX, .5, true); var yTween:Tween = new Tween(marker_mc, "_y", Back.easeOut, currentY, targetY, 1.5, true); } for (var i = 0; i<cities.length; i++){ var my_btn = this[cities[i]+"_btn"]; my_btn.myCity = cities[i]; my_btn.onRollOver = function() { mover( this._x, this._y); marker_mc.gotoAndStop(this.myCity); } }
Ahora las imagenes que muestro estan en fotogramas dentro del MovieClip marker_mc ahora lo que quiero es en ves de cargar dichas imagenes como puedo modificar el codigo para que cargue las imagenes desde un xml?? y me las muestre en el marcador segun me valla moviendo por los puntos???
Espero alguien pueda ayudarme, estaria muy agradecido!!!
saludos.