# Flash map

**URL:** <https://forum.kirupa.com/t/flash-map/241644>\
**Category:** Uncategorized\
**Created:** [October 16, 2007, 2:29pm UTC](https://forum.kirupa.com/t/flash-map/241644 "2007-10-16T14:29:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mako](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@mako](https://forum.kirupa.com/u/mako)\
**Post date:** [October 16, 2007, 2:29pm UTC](https://forum.kirupa.com/t/flash-map/241644/1 "2007-10-16T14:29:04Z")

</div>

Hey there,

I’m busy building a map. The data being used is xml.

Everything is working fine. The map is split up into various mc’s which represent the various states. When you hover over the mc it pulls a the relevant xml information.

something like:  
[AS]  
myState.onRollOver = function(){

```
			_root.popU._visible = 100;
			popU.startDrag ();
			popU._x = _xmouse;
			popU._y = _ymouse;
			_root.popU.satename.text = statename[2];
			
		}
		
		myState.onRollOut = function(){
			_root.popU._visible = 0;
		}
	}

```

[/AS]

But I’ve got a million rollover functions… for all the mc’s… Can someone steer me in the right direction… so I can have one mouse event for all of them?

Thx for any help regarding this… 😉

Keith
