This dice game uses the following Actionscript applied to the "Go" button:
on (release) {
frame = Number(random(6))+1;
tellTarget ("/left") {
gotoAndStop(/:frame);
setProperty("", _rotation, random(360));
}
frame = Number(random(6))+1;
tellTarget ("/right") {
gotoAndStop(/:frame);
setProperty("", _rotation, random(360));
}
}

You must also use the frame script
stop();
in each of the 6 frames of the dice movie clip. Remember to name each instance of the dice so that the script recognizes it. In this example the instances for the right and left dice are labelled "right" and "left."

You can download the .fla file here: dicegame.fla