Combined Code
frame 1 {
function toggleStuff(pushed, min, max) {
i = min;
while (i < max + 1) {
mymenu_cm.customItems[i].visible = (i === pushed) ? false : true;
if (pushed < 3) {
_global[toggles[i]] = (i === pushed) ? 'down' : 'up';
}
++i;
}
if (pushed > 2 && pushed < 9) {
_global[toggles[pushed] || toggles[pushed - 1]] = pushed - min ? 100 : 0;
}
}
var mymenu_cm = new ContextMenu();
mymenu_cm.hideBuiltInItems();
var i;
var toggles = ['btSlide', 'btJoint', 'btHidden', 'volVoice', '', 'volDog', '', 'volSE', ''];
mymenu_cm.customItems.push(new ContextMenuItem('Internal View', function () {
toggleStuff(0, 0, 2);
}), new ContextMenuItem('Rear View', function () {
toggleStuff(1, 0, 2);
}), new ContextMenuItem('Hide Overlay', function () {
toggleStuff(2, 0, 2);
}), new ContextMenuItem('Mute Girl', function () {
toggleStuff(3, 3, 4);
}, true), new ContextMenuItem('Unmute Girl', function () {
toggleStuff(4, 3, 4);
}, true), new ContextMenuItem('Mute Dog', function () {
toggleStuff(5, 5, 6);
}), new ContextMenuItem('Unmute Dog', function () {
toggleStuff(6, 5, 6);
}), new ContextMenuItem('Mute SFX', function () {
toggleStuff(7, 7, 8);
}), new ContextMenuItem('Unmute SFX', function () {
toggleStuff(8, 7, 8);
}));
i = 0;
while (i < toggles.length) {
mymenu_cm.customItems[i].visible = false;
++i;
}
mymenu_cm.customItems.visible = false;
_root.menu = mymenu_cm;
fscommand('trapallkeys', 'true');
this.createEmptyMovieClip('UTA_mc', 1);
vUTA = new Sound(this.UTA_mc);
vUTA.attachSound('04R-u');
this.createEmptyMovieClip('EAG_mc', 2);
vEAG = new Sound(this.EAG_mc);
vEAG.attachSound('04R-e');
if (_root.MainMenu) {
this.gotoAndPlay(2);
this.vUTA.start(0, 32767);
this.vEAG.start(0, 32767);
} else {
this.stop();
Stage.scaleMode = 'showAll';
fscommand('fullscreen', true);
fscommand('showmenu', false);
fscommand('fullscreen', false);
}
this.createEmptyMovieClip('SE_mc', 3);
p01 = new Sound(this.SE_mc);
p01.attachSound('Picha3F_01');
p02 = new Sound(this.SE_mc);
p02.attachSound('Picha3F_02');
p03 = new Sound(this.SE_mc);
p03.attachSound('Picha3F_03');
p04 = new Sound(this.SE_mc);
p04.attachSound('Picha3F_04');
p05 = new Sound(this.SE_mc);
p05.attachSound('Picha3F_05');
p06 = new Sound(this.SE_mc);
p06.attachSound('Picha3F_06');
p07 = new Sound(this.SE_mc);
p07.attachSound('Picha3F_07');
p08 = new Sound(this.SE_mc);
p08.attachSound('Picha3F_08');
p09 = new Sound(this.SE_mc);
p09.attachSound('Picha3F_09');
p10 = new Sound(this.SE_mc);
p10.attachSound('Picha3F_10');
p11 = new Sound(this.SE_mc);
p11.attachSound('Picha3F_11');
p12 = new Sound(this.SE_mc);
p12.attachSound('Picha3F_12');
p13 = new Sound(this.SE_mc);
p13.attachSound('Picha3F_13');
p14 = new Sound(this.SE_mc);
p14.attachSound('Picha3F_14');
p15 = new Sound(this.SE_mc);
p15.attachSound('Picha3F_15');
p16 = new Sound(this.SE_mc);
p16.attachSound('Picha3F_16');
p17 = new Sound(this.SE_mc);
p17.attachSound('Picha3F_17');
p18 = new Sound(this.SE_mc);
p18.attachSound('Picha3F_18');
p19 = new Sound(this.SE_mc);
p19.attachSound('Picha3F_19');
p20 = new Sound(this.SE_mc);
p20.attachSound('Picha3F_20');
this.createEmptyMovieClip('SE_mc', 3);
j01 = new Sound(this.SE_mc);
j01.attachSound('Jupu13F_01');
j02 = new Sound(this.SE_mc);
j02.attachSound('Jupu13F_02');
j03 = new Sound(this.SE_mc);
j03.attachSound('Jupu13F_03');
j04 = new Sound(this.SE_mc);
j04.attachSound('Jupu13F_04');
j05 = new Sound(this.SE_mc);
j05.attachSound('Jupu13F_05');
j06 = new Sound(this.SE_mc);
j06.attachSound('Jupu13F_06');
j07 = new Sound(this.SE_mc);
j07.attachSound('Jupu13F_07');
j08 = new Sound(this.SE_mc);
j08.attachSound('Jupu13F_08');
j09 = new Sound(this.SE_mc);
j09.attachSound('Jupu13F_09');
j10 = new Sound(this.SE_mc);
j10.attachSound('Jupu13F_10');
this.createEmptyMovieClip('SE_mc', 3);
z01 = new Sound(this.SE_mc);
z01.attachSound('Zucha6F_01');
z02 = new Sound(this.SE_mc);
z02.attachSound('Zucha6F_02');
z03 = new Sound(this.SE_mc);
z03.attachSound('Zucha6F_03');
z04 = new Sound(this.SE_mc);
z04.attachSound('Zucha6F_04');
z05 = new Sound(this.SE_mc);
z05.attachSound('Zucha6F_05');
z06 = new Sound(this.SE_mc);
z06.attachSound('Zucha6F_06');
z07 = new Sound(this.SE_mc);
z07.attachSound('Zucha6F_07');
z08 = new Sound(this.SE_mc);
z08.attachSound('Zucha6F_08');
z09 = new Sound(this.SE_mc);
z09.attachSound('Zucha6F_09');
z10 = new Sound(this.SE_mc);
z10.attachSound('Zucha6F_10');
}
movieClip 45 {
}
instance ctrlVolume of movieClip 45 {
onClipEvent (enterFrame) {
this._parent.vUTA.setVolume(_global.volVoice);
this._parent.vEAG.setVolume(_global.volDog);
this._parent.z01.setVolume(_global.volSE);
}
}
// unknown tag 88 length 48
button 51 {
on (press) {
this.gotoAndPlay(2);
this.vUTA.start(0, 32767);
this.vEAG.start(0, 32767);
}
}
frame 2 {
var dice = Math.floor(Math.random() * 10) + 1;
switch (dice) {
case 1:
this.j01.start();
break;
case 2:
this.j02.start();
break;
case 3:
this.j03.start();
break;
case 4:
this.j04.start();
break;
case 5:
this.j05.start();
break;
case 6:
this.j06.start();
break;
case 7:
this.j07.start();
break;
case 8:
this.j08.start();
break;
case 9:
this.j09.start();
break;
case 10:
this.j10.start();
}
}
frame 2 {
if (!mymenu_cm.customItems.visible) {
toggleStuff(0, 0, 2);
toggleStuff(3, 3, 4);
toggleStuff(5, 5, 6);
toggleStuff(8, 7, 8);
mymenu_cm.customItems.visible = true;
}
}
movieClip 182 {
}
movieClip 313 {
}
movieClip 314 {
instance camJoint of movieClip 182 {
onClipEvent (enterFrame) {
if (this._visible) {
this.gotoAndStop(this._parent._parent._currentframe);
}
}
}
instance camSlide of movieClip 313 {
onClipEvent (enterFrame) {
if (this._visible) {
this.gotoAndStop(this._parent._parent._currentframe);
}
}
}
}
instance subCam of movieClip 314 {
onClipEvent (load) {
if (_global.btSlide == 'down') {
this.camSlide._visible = true;
this.camJoint._visible = false;
}
if (_global.btJoint == 'down') {
this.camSlide._visible = false;
this.camJoint._visible = true;
}
if (_global.btHidden == 'down') {
this.camSlide._visible = false;
this.camJoint._visible = false;
}
}
onClipEvent (enterFrame) {
if (_global.btSlide == 'down') {
this.camSlide._visible = true;
this.camJoint._visible = false;
}
if (_global.btJoint == 'down') {
this.camSlide._visible = false;
this.camJoint._visible = true;
}
if (_global.btHidden == 'down') {
this.camSlide._visible = false;
this.camJoint._visible = false;
}
}
}
frame 10 {
var dice = Math.floor(Math.random() * 20) + 1;
switch (dice) {
case 1:
this.p01.start();
break;
case 2:
this.p02.start();
break;
case 3:
this.p03.start();
break;
case 4:
this.p04.start();
break;
case 5:
this.p05.start();
break;
case 6:
this.p06.start();
break;
case 7:
this.p07.start();
break;
case 8:
this.p08.start();
break;
case 9:
this.p09.start();
break;
case 10:
this.p10.start();
break;
case 11:
this.p11.start();
break;
case 12:
this.p12.start();
break;
case 13:
this.p13.start();
break;
case 14:
this.p14.start();
break;
case 15:
this.p15.start();
break;
case 16:
this.p16.start();
break;
case 17:
this.p17.start();
break;
case 18:
this.p18.start();
break;
case 19:
this.p19.start();
break;
case 20:
this.p20.start();
}
}
frame 12 {
var dice = Math.floor(Math.random() * 10) + 1;
switch (dice) {
case 1:
this.z01.start();
break;
case 2:
this.z02.start();
break;
case 3:
this.z03.start();
break;
case 4:
this.z04.start();
break;
case 5:
this.z05.start();
break;
case 6:
this.z06.start();
break;
case 7:
this.z07.start();
break;
case 8:
this.z08.start();
break;
case 9:
this.z09.start();
break;
case 10:
this.z10.start();
}
}
frame 15 {
var dice = Math.floor(Math.random() * 10) + 1;
switch (dice) {
case 1:
this.j01.start();
break;
case 2:
this.j02.start();
break;
case 3:
this.j03.start();
break;
case 4:
this.j04.start();
break;
case 5:
this.j05.start();
break;
case 6:
this.j06.start();
break;
case 7:
this.j07.start();
break;
case 8:
this.j08.start();
break;
case 9:
this.j09.start();
break;
case 10:
this.j10.start();
}
}
frame 23 {
var dice = Math.floor(Math.random() * 20) + 1;
switch (dice) {
case 1:
this.p01.start();
break;
case 2:
this.p02.start();
break;
case 3:
this.p03.start();
break;
case 4:
this.p04.start();
break;
case 5:
this.p05.start();
break;
case 6:
this.p06.start();
break;
case 7:
this.p07.start();
break;
case 8:
this.p08.start();
break;
case 9:
this.p09.start();
break;
case 10:
this.p10.start();
break;
case 11:
this.p11.start();
break;
case 12:
this.p12.start();
break;
case 13:
this.p13.start();
break;
case 14:
this.p14.start();
break;
case 15:
this.p15.start();
break;
case 16:
this.p16.start();
break;
case 17:
this.p17.start();
break;
case 18:
this.p18.start();
break;
case 19:
this.p19.start();
break;
case 20:
this.p20.start();
}
}
frame 25 {
var dice = Math.floor(Math.random() * 10) + 1;
switch (dice) {
case 1:
this.z01.start();
break;
case 2:
this.z02.start();
break;
case 3:
this.z03.start();
break;
case 4:
this.z04.start();
break;
case 5:
this.z05.start();
break;
case 6:
this.z06.start();
break;
case 7:
this.z07.start();
break;
case 8:
this.z08.start();
break;
case 9:
this.z09.start();
break;
case 10:
this.z10.start();
}
}
frame 28 {
var dice = Math.floor(Math.random() * 10) + 1;
switch (dice) {
case 1:
this.j01.start();
break;
case 2:
this.j02.start();
break;
case 3:
this.j03.start();
break;
case 4:
this.j04.start();
break;
case 5:
this.j05.start();
break;
case 6:
this.j06.start();
break;
case 7:
this.j07.start();
break;
case 8:
this.j08.start();
break;
case 9:
this.j09.start();
break;
case 10:
this.j10.start();
}
}
frame 36 {
var dice = Math.floor(Math.random() * 20) + 1;
switch (dice) {
case 1:
this.p01.start();
break;
case 2:
this.p02.start();
break;
case 3:
this.p03.start();
break;
case 4:
this.p04.start();
break;
case 5:
this.p05.start();
break;
case 6:
this.p06.start();
break;
case 7:
this.p07.start();
break;
case 8:
this.p08.start();
break;
case 9:
this.p09.start();
break;
case 10:
this.p10.start();
break;
case 11:
this.p11.start();
break;
case 12:
this.p12.start();
break;
case 13:
this.p13.start();
break;
case 14:
this.p14.start();
break;
case 15:
this.p15.start();
break;
case 16:
this.p16.start();
break;
case 17:
this.p17.start();
break;
case 18:
this.p18.start();
break;
case 19:
this.p19.start();
break;
case 20:
this.p20.start();
}
}
frame 38 {
var dice = Math.floor(Math.random() * 10) + 1;
switch (dice) {
case 1:
this.z01.start();
break;
case 2:
this.z02.start();
break;
case 3:
this.z03.start();
break;
case 4:
this.z04.start();
break;
case 5:
this.z05.start();
break;
case 6:
this.z06.start();
break;
case 7:
this.z07.start();
break;
case 8:
this.z08.start();
break;
case 9:
this.z09.start();
break;
case 10:
this.z10.start();
}
}
frame 41 {
var dice = Math.floor(Math.random() * 10) + 1;
switch (dice) {
case 1:
this.j01.start();
break;
case 2:
this.j02.start();
break;
case 3:
this.j03.start();
break;
case 4:
this.j04.start();
break;
case 5:
this.j05.start();
break;
case 6:
this.j06.start();
break;
case 7:
this.j07.start();
break;
case 8:
this.j08.start();
break;
case 9:
this.j09.start();
break;
case 10:
this.j10.start();
}
}
frame 49 {
var dice = Math.floor(Math.random() * 20) + 1;
switch (dice) {
case 1:
this.p01.start();
break;
case 2:
this.p02.start();
break;
case 3:
this.p03.start();
break;
case 4:
this.p04.start();
break;
case 5:
this.p05.start();
break;
case 6:
this.p06.start();
break;
case 7:
this.p07.start();
break;
case 8:
this.p08.start();
break;
case 9:
this.p09.start();
break;
case 10:
this.p10.start();
break;
case 11:
this.p11.start();
break;
case 12:
this.p12.start();
break;
case 13:
this.p13.start();
break;
case 14:
this.p14.start();
break;
case 15:
this.p15.start();
break;
case 16:
this.p16.start();
break;
case 17:
this.p17.start();
break;
case 18:
this.p18.start();
break;
case 19:
this.p19.start();
break;
case 20:
this.p20.start();
}
}
frame 51 {
var dice = Math.floor(Math.random() * 10) + 1;
switch (dice) {
case 1:
this.z01.start();
break;
case 2:
this.z02.start();
break;
case 3:
this.z03.start();
break;
case 4:
this.z04.start();
break;
case 5:
this.z05.start();
break;
case 6:
this.z06.start();
break;
case 7:
this.z07.start();
break;
case 8:
this.z08.start();
break;
case 9:
this.z09.start();
break;
case 10:
this.z10.start();
}
}
frame 54 {
var dice = Math.floor(Math.random() * 10) + 1;
switch (dice) {
case 1:
this.j01.start();
break;
case 2:
this.j02.start();
break;
case 3:
this.j03.start();
break;
case 4:
this.j04.start();
break;
case 5:
this.j05.start();
break;
case 6:
this.j06.start();
break;
case 7:
this.j07.start();
break;
case 8:
this.j08.start();
break;
case 9:
this.j09.start();
break;
case 10:
this.j10.start();
}
}
frame 62 {
var dice = Math.floor(Math.random() * 20) + 1;
switch (dice) {
case 1:
this.p01.start();
break;
case 2:
this.p02.start();
break;
case 3:
this.p03.start();
break;
case 4:
this.p04.start();
break;
case 5:
this.p05.start();
break;
case 6:
this.p06.start();
break;
case 7:
this.p07.start();
break;
case 8:
this.p08.start();
break;
case 9:
this.p09.start();
break;
case 10:
this.p10.start();
break;
case 11:
this.p11.start();
break;
case 12:
this.p12.start();
break;
case 13:
this.p13.start();
break;
case 14:
this.p14.start();
break;
case 15:
this.p15.start();
break;
case 16:
this.p16.start();
break;
case 17:
this.p17.start();
break;
case 18:
this.p18.start();
break;
case 19:
this.p19.start();
break;
case 20:
this.p20.start();
}
}
frame 64 {
var dice = Math.floor(Math.random() * 10) + 1;
switch (dice) {
case 1:
this.z01.start();
break;
case 2:
this.z02.start();
break;
case 3:
this.z03.start();
break;
case 4:
this.z04.start();
break;
case 5:
this.z05.start();
break;
case 6:
this.z06.start();
break;
case 7:
this.z07.start();
break;
case 8:
this.z08.start();
break;
case 9:
this.z09.start();
break;
case 10:
this.z10.start();
}
}
frame 67 {
this.gotoAndPlay('R1');
}