Simulate mouse click from loaded swf

I have a button with the following actionscript in a swf called map. It’s being loaded into a parent swf and then into another parent swf. What I want to do is add a list of buttons on the root swf and have the buttons function the same. Any Ideas?


myButton.addEventListener(MouseEvent.MOUSE_UP, function (e):void{																 
	MovieClip(parent.parent.parent.parent.parent.parent.parent).zoomTo(x,y,230);
	popup.gotoAndStop(2);
});

myButton.addEventListener(FocusEvent.FOCUS_OUT, function (e):void{
	popup.gotoAndStop(1);
});

Anybody???

I don’t really understand your problem, but:

If you want two (or more) buttons to do the same thing, simply have them call the same function.

Take any functionality off the buttons and put it inside a function. Then have the buttons you want, call that function.

I tried that, but maybe I am calling the wrong variables. I am trying to call an instance in the 1stFloor.swf called hawaii.