Combined Code
frame 1 {
se_01 = new Sound(this);
se_01.attachSound('01');
}
frame 1 {
roll = 1;
roll_no = [0, 1, 2, 3];
stop();
}
// unknown tag 88 length 42
movieClip 9 {
frame 1 {
stop();
}
}
instance of movieClip 9 {
onClipEvent (press) {
_parent.roll += 1;
gotoAndStop(_parent.roll);
if (_parent.roll >= 4) {
stopAllSounds();
_parent.se_01.start();
_parent.gotoAndPlay(2);
} else {
_parent.se_01.start();
}
}
}
movieClip 14 {
}
instance of movieClip 14 {
onClipEvent (load) {
_parent.roll_no[1] = random(9) + 1;
gotoAndStop(_parent.roll_no[1]);
}
onClipEvent (enterFrame) {
if (_parent.roll < 2) {
_parent.roll_no[1] = random(9) + 1;
gotoAndStop(_parent.roll_no[1]);
}
}
}
instance of movieClip 14 {
onClipEvent (load) {
_parent.roll_no[2] = random(9) + 1;
gotoAndStop(_parent.roll_no[2]);
}
onClipEvent (enterFrame) {
if (_parent.roll < 3) {
_parent.roll_no[2] = random(9) + 1;
gotoAndStop(_parent.roll_no[2]);
}
}
}
instance of movieClip 14 {
onClipEvent (load) {
_parent.roll_no[3] = random(9) + 1;
gotoAndStop(_parent.roll_no[3]);
}
onClipEvent (enterFrame) {
if (_parent.roll < 4) {
_parent.roll_no[3] = random(9) + 1;
gotoAndStop(_parent.roll_no[3]);
}
}
}
movieClip 16 {
instance of movieClip 14 {
onClipEvent (load) {
gotoAndStop(_parent._parent.roll_no[1]);
}
}
instance of movieClip 14 {
onClipEvent (load) {
gotoAndStop(_parent._parent.roll_no[2]);
}
}
instance of movieClip 14 {
onClipEvent (load) {
gotoAndStop(_parent._parent.roll_no[3]);
}
}
}
movieClip 26 {
}
instance of movieClip 26 {
onClipEvent (load) {
gotoAndStop(_parent.roll_no[1]);
}
}
instance of movieClip 26 {
onClipEvent (load) {
gotoAndStop(_parent.roll_no[3]);
}
}
instance of movieClip 26 {
onClipEvent (load) {
gotoAndStop(_parent.roll_no[2]);
}
}
frame 102 {
stop();
}
// unknown tag 88 length 42
movieClip 32 {
}
button 33 {
on (release) {
stopAllSounds();
gotoAndPlay(1);
}
}