Multiple Images as Links

Hi.

I just completed a website and it uses Flash on the homepage. I’m just now adding the links to the Flash since it was hosted locally up to this point and I have run into trouble. It’s been a couple of years since I have used Flash and I can’t remember how to add links to images.

You can view the flash on the site Siona Entertainment Although it’s not uploaded yet, the links for the first 4 images work correctly with this code which is placed on keyframe 1.


BTN_Child00.addEventListener(MouseEvent.MOUSE_DOWN, Child00);

function Child00(event:MouseEvent):void {
	navigateToURL(new URLRequest("http://www.sionaentertainment.com/talent/children/"));
}

BTN_Teen00.addEventListener(MouseEvent.MOUSE_DOWN, Teen00);

function Teen00(event:MouseEvent):void {
	navigateToURL(new URLRequest("http://www.sionaentertainment.com/talent/teens/"));
}

BTN_Adult00.addEventListener(MouseEvent.MOUSE_DOWN, Adult00);

function Adult00(event:MouseEvent):void {
	navigateToURL(new URLRequest("http://www.sionaentertainment.com/talent/adults/"));
}

BTN_ModelTeen.addEventListener(MouseEvent.MOUSE_DOWN, ModelTeen);

function ModelTeen(event:MouseEvent):void {
	navigateToURL(new URLRequest("http://www.sionaentertainment.com/modeling/teen-models/"));
}

I made a new keyframe at frame 251 on an actions layer and changed the instance and function name, but keep getting this as an error:

1120: Access of undefined property BTN_Adult01.
1120: Access of undefined property BTN_ModelFemale.

but in the Flash the instance of both these buttons is defined in the property window. I’m confused and have to add a set of links to the third set of images still.

I feel like there must be an easier way to do this, but I’m just not sure what to do.