# OOPs! can't get my head around this

**URL:** https://forum.kirupa.com/t/oops-cant-get-my-head-around-this/165951
**Category:** Uncategorized
**Created:** [October 15, 2005, 2:12pm UTC](https://forum.kirupa.com/t/oops-cant-get-my-head-around-this/165951 "2005-10-15T14:12:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kdzines](https://avatars.discourse-cdn.com/v4/letter/k/7ea924/32.png) [@kdzines](https://forum.kirupa.com/u/kdzines)
#### Post date: [October 15, 2005, 2:12pm UTC](https://forum.kirupa.com/t/oops-cant-get-my-head-around-this/165951/1 "2005-10-15T14:12:48Z")

</div>

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:

```auto

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,
