Trying to get around instance names not working

Im sorry right off the bat if this has already been covered somewhere but im pulling my hair out over this and I need some help.

first of all, here is the code


import flash.events.MouseEvent;
import flash.display.SimpleButton;

stage.addEventListener(MouseEvent.CLICK, click_handler);
addEventListener(MouseEvent.MOUSE_OVER, mouse_over);
addEventListener(MouseEvent.MOUSE_OUT, mouse_out);


function mouse_over(event_object:MouseEvent){
    gotoAndStop(20);
}

function mouse_out(event_object:MouseEvent){
    gotoAndStop(2);
}
function click_handler(event_object:MouseEvent){
    gotoAndStop(2);
}


/*dot1.mouse_over(20);
dot2.mouse_over(5);
dot3.mouse_over(25);
dot4.mouse_over(15);
dot5.mouse_over(10);
pinelandsDot.mouse_over(30);*/

basically, what this is is a map with hotspots. Its starts off with a rotating movie that is just three maps fading into each other. Clicking on it brings up another map with the hotspots. This is working how I want it to. Now the problem comes when I try to get the “hotspots” to work. What I did was create a series of red dots of the “dot” instance. Their instance names are at the bottom of the code in the commented section. When I mouse over one of these dots (which are buttons, btw) I want the mouse-over function to be called so that it jumps the the frame I want (again, the commented out section kind of gives an idea of how i want to do this). The two biggest things I need are thus: I need to add another parameter to the mouse_over function that takes a number. This number will be the frame I want to go to i.e. the parameter of gotoAndStop(x); The second this I cant figure out how to attach this to the “dot” buttons. I think it has something to do with the getChildByName thing, but I dont know how to implement it.

Sorry if that was too detailed (if thats a thing) but I really want to figure this out. Thanks for any help in advance!