Buttons within an MC

I have several buttons all within a MC, on hover over they all display the correct on hover action, but when it comes to clicking on them they will not link to the corresponding frame.

I am using:

on (release) {
gotoAndPlay('XXXX');

}

I think that this is happening because they are looking for the frame within the MC and not in the main timeline, if this is the case then how would i go about getting them to link to the correct frame within the timeline?