Frame 1
fscommand ("allowscale", "false");
wh1 = Number(random(6) * 20) + 1;
wh2 = Number(random(6) * 20) + 1;
wh3 = Number(random(6) * 20) + 1;
tellTarget ("/wheel1") {
gotoAndStop(/:wh1);
};
tellTarget ("/wheel2") {
gotoAndStop(/:wh2);
};
tellTarget ("/wheel3") {
gotoAndStop(/:wh3);
};
amtscore = 100;
amtwin = 0;
amtbet = 5;
stop();
Frame 4
stop1 = 0;
stop2 = 0;
stop3 = 0;
Frame 5
gotoAndPlay (25);
Frame 6
wh1 = wh1 - sp1;
wh2 = wh2 - sp2;
wh3 = wh3 - sp3;
if (Number(wh1) < 1) {
wh1 = Number(wh1) + 120;
}
if (Number(wh2) < 1) {
wh2 = Number(wh2) + 120;
}
if (Number(wh3) < 1) {
wh3 = Number(wh3) + 120;
}
tellTarget ("/wheel1") {
gotoAndStop(/:wh1);
};
tellTarget ("/wheel2") {
gotoAndStop(/:wh2);
};
tellTarget ("/wheel3") {
gotoAndStop(/:wh3);
};
loop = Number(loop) + 1;
if ((Number(sp1) == 0) and (Number(stop1) == 0)) {
gotoAndPlay (44);
}
if ((Number(sp2) == 0) and (Number(stop2) == 0)) {
gotoAndPlay (44);
}
if ((Number(sp3) == 0) and (Number(stop3) == 0)) {
gotoAndPlay (44);
}
if (((Number(sp1) == 0) and (Number(sp2) == 0)) and (Number(sp3) == 0)) {
gotoAndPlay (10);
}
Frame 7
if (Number(loop) > 7) {
loop = 0;
if (Number(sr1) < 1) {
sp1 = sp1 - 1;
} else {
sr1 = sr1 - 1;
}
if (Number(sr2) < 1) {
sp2 = sp2 - 1;
} else {
sr2 = sr2 - 1;
}
if (Number(sr3) < 1) {
sp3 = sp3 - 1;
} else {
sr3 = sr3 - 1;
}
if (Number(sp1) < 1) {
sp1 = 0;
if (Number(Number(int(wh1 / 20) * 20) + 1) != Number(Number(int(wh1 / 10) * 10) + 1)) {
sp1 = 1;
} else {
wh1 = Number(int((Number(wh1) + 10) / 20) * 20) + 1;
}
}
if (Number(sp2) < 1) {
sp2 = 0;
if (Number(int(wh2 / 20) * 20) != Number(int(wh2 / 10) * 10)) {
sp2 = 1;
} else {
wh2 = Number(int((Number(wh2) + 10) / 20) * 20) + 1;
}
}
if (Number(sp3) < 1) {
sp3 = 0;
if (Number(Number(int(wh3 / 20) * 20) + 1) != Number(Number(int(wh3 / 10) * 10) + 1)) {
sp3 = 1;
} else {
wh3 = Number(int((Number(wh3) + 10) / 20) * 20) + 1;
}
}
}
gotoAndPlay (6);
Frame 10
sc1 = (wh1 - 1) / 20;
sc2 = (wh2 - 1) / 20;
sc3 = (wh3 - 1) / 20;
if (Number(sc1) == 0) {
s1 = 1;
} else if (Number(sc1) == 1) {
s1 = 2;
} else if (Number(sc1) == 2) {
s1 = 3;
} else if (Number(sc1) == 3) {
s1 = 4;
} else if (Number(sc1) == 4) {
s1 = 5;
} else if (Number(sc1) == 5) {
s1 = 6;
}
if (Number(sc2) == 0) {
s2 = 4;
} else if (Number(sc2) == 1) {
s2 = 5;
} else if (Number(sc2) == 2) {
s2 = 1;
} else if (Number(sc2) == 3) {
s2 = 2;
} else if (Number(sc2) == 4) {
s2 = 6;
} else if (Number(sc2) == 5) {
s2 = 3;
}
if (Number(sc3) == 0) {
s3 = 5;
} else if (Number(sc3) == 1) {
s3 = 4;
} else if (Number(sc3) == 2) {
s3 = 6;
} else if (Number(sc3) == 3) {
s3 = 3;
} else if (Number(sc3) == 4) {
s3 = 2;
} else if (Number(sc3) == 5) {
s3 = 1;
}
Frame 11
win = 0;
winamt = 0;
if (Number(s1) == 6) {
win = 1;
winamt = 2;
tellTarget ("/winmovie16") {
gotoAndPlay (2);
};
}
if (Number(s2) == 6) {
win = 1;
winamt = Number(winamt) + 2;
tellTarget ("/winmovie26") {
gotoAndPlay (2);
};
}
if (Number(s3) == 6) {
win = 1;
winamt = Number(winamt) + 2;
tellTarget ("/winmovie36") {
gotoAndPlay (2);
};
}
if (((Number(s1) == 1) and (Number(s2) == 1)) and (Number(s3) == 1)) {
win = 1;
winamt = 50;
tellTarget ("/winmovie11") {
gotoAndPlay (2);
};
tellTarget ("/winmovie21") {
gotoAndPlay (2);
};
tellTarget ("/winmovie31") {
gotoAndPlay (2);
};
}
if (((Number(s1) == 2) and (Number(s2) == 2)) and (Number(s3) == 2)) {
win = 1;
winamt = 20;
tellTarget ("/winmovie12") {
gotoAndPlay (2);
};
tellTarget ("/winmovie22") {
gotoAndPlay (2);
};
tellTarget ("/winmovie32") {
gotoAndPlay (2);
};
}
if (((Number(s1) == 3) and (Number(s2) == 3)) and (Number(s3) == 3)) {
win = 1;
winamt = 20;
tellTarget ("/winmovie13") {
gotoAndPlay (2);
};
tellTarget ("/winmovie23") {
gotoAndPlay (2);
};
tellTarget ("/winmovie33") {
gotoAndPlay (2);
};
}
if (((Number(s1) == 4) and (Number(s2) == 4)) and (Number(s3) == 4)) {
win = 1;
winamt = 20;
tellTarget ("/winmovie14") {
gotoAndPlay (2);
};
tellTarget ("/winmovie24") {
gotoAndPlay (2);
};
tellTarget ("/winmovie34") {
gotoAndPlay (2);
};
}
if (((Number(s1) == 5) and (Number(s2) == 5)) and (Number(s3) == 5)) {
win = 1;
winamt = 20;
tellTarget ("/winmovie15") {
gotoAndPlay (2);
};
tellTarget ("/winmovie25") {
gotoAndPlay (2);
};
tellTarget ("/winmovie35") {
gotoAndPlay (2);
};
}
if (((Number(s1) == 6) and (Number(s2) == 6)) and (Number(s3) == 6)) {
win = 1;
winamt = 20;
tellTarget ("/winmovie16") {
gotoAndPlay (2);
};
tellTarget ("/winmovie26") {
gotoAndPlay (2);
};
tellTarget ("/winmovie36") {
gotoAndPlay (2);
};
}
if (Number(win) == 1) {
gotoAndPlay (15);
} else {
gotoAndStop (4);
}
Frame 15
amtwin = Number(amtwin) + Number(amtbet * winamt);
amtwindisp = amtwin;
Frame 16
if (Number(amtwin) > 0) {
amtwin = amtwin - 1;
amtscore = Number(amtscore) + 1;
tellTarget ("/border") {
gotoAndStop (2);
};
} else {
tellTarget ("/border") {
gotoAndStop (1);
};
gotoAndStop (4);
}
Frame 17
if (Number(amtwin) > 0) {
amtwin = amtwin - 1;
amtscore = Number(amtscore) + 1;
tellTarget ("/border") {
gotoAndStop (1);
};
} else {
tellTarget ("/border") {
gotoAndStop (1);
};
gotoAndStop (4);
}
gotoAndPlay (16);
Frame 19
gotoAndStop (4);
Frame 25
sr1 = Number(random(5)) + 2;
sr2 = Number(random(5)) + 4;
sr3 = Number(random(5)) + 6;
sp1 = Number(random(4)) + 4;
sp2 = Number(random(5)) + 4;
sp3 = Number(random(6)) + 4;
maxspeed = sp1;
if (Number(sp2) > Number(maxspeed)) {
maxspeed = sp2;
}
if (Number(sp3) > Number(maxspeed)) {
maxspeed = sp3;
}
loop = 0;
Frame 39
gotoAndPlay (6);
Frame 44
if (Number(sp1) == 0) {
stop1 = 1;
}
if (Number(sp2) == 0) {
stop2 = 1;
}
if (Number(sp3) == 0) {
stop3 = 1;
}
Frame 45
gotoAndPlay (6);
Symbol 8 MovieClip Frame 1
stop();
Symbol 9 MovieClip Frame 1
stop();
Symbol 10 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 1
stop();
Symbol 40 Button
on (release) {
amtscore = amtscore - amtbet;
amtwindisp = 0;
gotoAndPlay (5);
}
Symbol 42 Button
on (release) {
amtbet = 5;
}
Symbol 44 Button
on (release) {
amtbet = 1;
}
Symbol 45 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 10
gotoAndStop (1);
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 10
gotoAndStop (1);
Symbol 47 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 10
gotoAndStop (1);
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 10
gotoAndStop (1);
Symbol 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 10
gotoAndStop (1);
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 10
gotoAndStop (1);
Symbol 53 Button
on (press) {
getURL ("http://www.thepcmanwebsite.com", "_top");
}
Symbol 55 Button
on (press) {
getURL ("http://www.thepcmanwebsite.com/affiliate_games.shtml", "_top");
}