Hi,
been trying this for a while but can’t quite figure it out.
i want to attach a number of dots onto a map and then give them rollover activity.
here’s what i have right now:
country = ["Portugal", "Spain", "Spain", "France", "France", "France", "France"];
city = ["lisbon", "Madrid", "Barcelona", "Paris", "Nice", "Provence", "Dijon"];
cityX = ["600", "700", "300", "450", "480", "600", "300", "690", "229", "200"];
cityY = ["100", "200", "220", "120", "160", "190", "280", "260", "274", "254", "300"];
function getDotty() {
for (var i = 0; i<country.length; i++) {
var hotDot = _root.attachMovie("dot", "dot"+i, i);
hotDot._x = cityX*;
hotDot._y = cityY*;
//hotDot._alpha = 0;
}
hotDot.i = i;
//trace(hotDot._name);
//hotDot.alphaTo(100,2,"linear",this.i)
hotDot.onRollOver = function() {
trace(this._name);
};
}
my problem is i don’t understand if hotDot contains multiple bit of information?
for instance how do i target the correct rollover dot.
would love to understand this as i trip up on it all the time.
thanks,