checkBox Command

Hi all,

I’ve got a checkBox component (flash mx component) and a submit button, and I want to make it so if the checkbox is checked and the submit button is pressed, then they can continue to the next section:

on (release)
// If checkBox is checked, then:
{gotoAndPlay(10);
}

Can anybody tell me how I can do that?