you need to create a counter that is incremented each time a checkbox is clicked , when the counter value is 4 , go to the next frame.
also you may have to keep an array of the boxes have been checked, in case a second click unchecks the box , in which case you would decrement the counter.
edit:
i don't use as2 , so i can only give you an example in as3...
i've added an Array of all the checkboxes names in order to filter the click events, if you click outside a checkbox, the event would be registered but you don't want to proceed with the code
import flash.events.MouseEvent;
var counter:int;
var allNames:Array = ['cb1', 'cb2' , 'cb3' , 'cb4'];
var boxesList:Array = [];
stop();
addEventListener(MouseEvent.CLICK , clickHandler );
function clickHandler(event:MouseEvent):void
{
var boxName:String = event.target.name;
//make sure the target is one of the checkboxes
if(allNames.indexOf(boxName ) != -1 )
updateCounter(boxName);
}
function updateCounter(bName:String):void
{
var index:int = boxesList.indexOf(bName);
if( index == -1 )
{
//add to the list of checked boxes
boxesList.push(bName );
//increment counter
++counter;
}else{
//remove from the list of check boxes
boxesList.splice(index , 1 );
//decrement counter
--counter;
}
if(counter == 4 )
gotoAndStop('nextFrame');
trace( counter );
}