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);
});