Frame 1
stage.showMenu = false;
stop();
lys1._visible = false;
lys2._visible = false;
lys3._visible = false;
knap1 = 0;
knap2 = 0;
knap3 = 0;
omgang = 0;
omgang2 = 0;
omgang3 = 0;
hold1 = 0;
hold2 = 0;
hold3 = 0;
w = 0;
w2 = 0;
w3 = 0;
pvar = 0;
var i = 1;
while (i <= 25) {
this["bgLys" + i].gotoAndStop(1);
i++;
}
_root.red3.gotoAndStop(1);
_root.red2.gotoAndStop(1);
_root.red1.gotoAndStop(1);
_root.red3._visible = false;
_root.red1._visible = false;
_root.red2._visible = false;
_root.ekstraIndsats = 1;
_root.point = 12;
hopla = 0;
jackpotflash.gotoAndStop(1);
function bright() {
brightness = new color("gule");
brightnessTransform = new Object();
brighsnessTransform.rb = 100;
brightnessTransform.bb = 100;
brightnessTransform.gb = 100;
brightness.setTransform(brightnessTransform);
}
function brightno() {
brightness = new color("gule");
brightnessTransform = new Object();
brighsnessTransform.rb = 0;
brightnessTransform.bb = 0;
brightnessTransform.gb = 0;
brightness.setTransform(brightnessTransform);
}
function tjekscript() {
if (((trom1stop == 1) && (trom2stop == 1)) && (trom3stop == 1)) {
if ((((_root.a._currentframe == 6) || (_root.a._currentframe == 18)) && ((_root.c._currentframe == 8) || (_root.c._currentframe == 20))) && ((_root.b._currentframe == 8) || (_root.b._currentframe == 18))) {
_root.jackpotflash.gotoAndPlay(1);
_root.bgLys3.gotoAndPlay(1);
_root.bgLys4.gotoAndPlay(1);
pvar = 80;
}
if ((((_root.a._currentframe == 10) || (_root.a._currentframe == 20)) && (_root.c._currentframe == 14)) && (_root.b._currentframe == 14)) {
_root.jackpotflash.gotoAndPlay(1);
_root.bgLys1.gotoAndPlay(1);
_root.bgLys2.gotoAndPlay(1);
pvar = 100;
}
if (((_root.a._currentframe == 12) && (_root.b._currentframe == 22)) && (_root.c._currentframe == 22)) {
_root.jackpotflash.gotoAndPlay(1);
var i = 1;
while (i <= 25) {
this["bgLys" + i].gotoAndPlay(1);
i++;
}
pvar = 250;
}
if ((((_root.a._currentframe == 4) || (_root.a._currentframe == 14)) && (((_root.b._currentframe == 4) || (_root.b._currentframe == 10)) || (_root.b._currentframe == 16))) && (((_root.c._currentframe == 4) || (_root.c._currentframe == 10)) || (_root.c._currentframe == 16))) {
pvar = 20;
_root.bgLys3.gotoAndPlay(1);
_root.bgLys4.gotoAndPlay(1);
_root.jackpotflash.gotoAndPlay(1);
}
if (((_root.a._currentframe == 8) || (_root.a._currentframe == 16)) || (_root.a._currentframe == 22)) {
trace("1 klokke");
_root.bgLys5.gotoAndPlay(1);
_root.bgLys6.gotoAndPlay(1);
pvar = 2;
}
if ((((_root.a._currentframe == 8) || (_root.a._currentframe == 16)) || (_root.a._currentframe == 22)) && (((_root.b._currentframe == 6) || (_root.b._currentframe == 12)) || (_root.b._currentframe == 20))) {
pvar = 10;
_root.bgLys5.gotoAndPlay(1);
_root.bgLys6.gotoAndPlay(1);
}
if (((((_root.a._currentframe == 8) || (_root.a._currentframe == 16)) || (_root.a._currentframe == 22)) && (((_root.b._currentframe == 6) || (_root.b._currentframe == 12)) || (_root.b._currentframe == 20))) && (((_root.c._currentframe == 6) || (_root.c._currentframe == 12)) || (_root.c._currentframe == 18))) {
pvar = 15;
_root.bgLys5.gotoAndPlay(1);
_root.bgLys6.gotoAndPlay(1);
_root.jackpotflash.gotoAndPlay(1);
}
if (random(10) < 2) {
if (random(10) < 3) {
knapx4();
} else {
knapx2();
}
} else {
_root.ekstraIndsats = 1;
_root.red2._visible = false;
_root.red1._visible = false;
_root.red3._visible = false;
_root.red2.gotoAndStop(1);
_root.red1.gotoAndStop(1);
_root.red3.gotoAndStop(1);
}
pvar = pvar * _root.ekstraIndsats;
if ((_root.point + pvar) <= 0) {
_root.point = 0;
} else {
_root.point = _root.point + pvar;
}
}
if (pvar != 0) {
_root.noHold = 1;
}
pvar = 0;
if (((_root.trom2stop == 1) && (_root.trom1stop == 1)) && (_root.trom3stop == 1)) {
_root.greenSpin.gotoAndPlay(1);
lys1._visible = false;
lys2._visible = false;
lys3._visible = false;
}
}
function knapx4() {
_root.ekstraIndsats = 4;
_root.red3.gotoAndPlay(1);
_root.red2.gotoAndStop(1);
_root.red1.gotoAndStop(1);
_root.red3._visible = true;
_root.red1._visible = false;
_root.red2._visible = false;
}
function knapx2() {
_root.ekstraIndsats = 2;
_root.red2._visible = true;
_root.red1._visible = false;
_root.red3._visible = false;
_root.red2.gotoAndPlay(1);
_root.red1.gotoAndStop(1);
_root.red3.gotoAndStop(1);
}
stop();
Instance of Symbol 32 MovieClip "lydstop2" in Frame 1
onClipEvent (load) {
if (((trom1stop == 1) && (trom2stop == 1)) && (trom3stop == 1)) {
trace("jahuu");
}
}
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 4
if (tstop1 == 1) {
_root.lydstop.play(2);
_root.trom1stop = 1;
_root.b.tstop2 = random(10) + 1;
if (_root.hopla == 1) {
_root.c.tstop3 = random(10) + 1;
_root.hopla = 0;
}
_root.tjekscript();
stop();
}
Symbol 26 MovieClip Frame 6
if (tstop1 == 2) {
_root.lydstop.play(2);
_root.trom1stop = 1;
_root.b.tstop2 = random(10) + 1;
if (_root.hopla == 1) {
_root.c.tstop3 = random(10) + 1;
_root.hopla = 0;
}
_root.tjekscript();
stop();
}
Symbol 26 MovieClip Frame 8
if (tstop1 == 3) {
_root.lydstop.play(2);
_root.trom1stop = 1;
_root.b.tstop2 = random(10) + 1;
if (_root.hopla == 1) {
_root.c.tstop3 = random(10) + 1;
_root.hopla = 0;
}
_root.tjekscript();
stop();
}
Symbol 26 MovieClip Frame 10
if (tstop1 == 4) {
_root.trom1stop = 1;
_root.lydstop.play(2);
_root.b.tstop2 = random(10) + 1;
if (_root.hopla == 1) {
_root.c.tstop3 = random(10) + 1;
_root.hopla = 0;
}
_root.tjekscript();
stop();
}
Symbol 26 MovieClip Frame 12
if (tstop1 == 5) {
_root.trom1stop = 1;
_root.lydstop.play(2);
_root.b.tstop2 = random(10) + 1;
if (_root.hopla == 1) {
_root.c.tstop3 = random(10) + 1;
_root.hopla = 0;
}
_root.tjekscript();
stop();
}
Symbol 26 MovieClip Frame 14
if (tstop1 == 6) {
_root.trom1stop = 1;
_root.lydstop.play(2);
_root.b.tstop2 = random(10) + 1;
if (_root.hopla == 1) {
_root.c.tstop3 = random(10) + 1;
_root.hopla = 0;
}
_root.tjekscript();
stop();
}
Symbol 26 MovieClip Frame 16
if (tstop1 == 7) {
_root.trom1stop = 1;
_root.lydstop.play(2);
_root.b.tstop2 = random(10) + 1;
if (_root.hopla == 1) {
_root.c.tstop3 = random(10) + 1;
_root.hopla = 0;
}
_root.tjekscript();
stop();
}
Symbol 26 MovieClip Frame 18
if (tstop1 == 8) {
_root.trom1stop = 1;
_root.lydstop.play(2);
_root.b.tstop2 = random(10) + 1;
if (_root.hopla == 1) {
_root.c.tstop3 = random(10) + 1;
_root.hopla = 0;
}
_root.tjekscript();
stop();
}
Symbol 26 MovieClip Frame 20
if (tstop1 == 9) {
_root.trom1stop = 1;
_root.lydstop.play(2);
_root.b.tstop2 = random(10) + 1;
if (_root.hopla == 1) {
_root.c.tstop3 = random(10) + 1;
_root.hopla = 0;
}
_root.tjekscript();
stop();
}
Symbol 26 MovieClip Frame 22
if (tstop1 == 10) {
_root.trom1stop = 1;
_root.lydstop.play(2);
_root.b.tstop2 = random(10) + 1;
if (_root.hopla == 1) {
_root.c.tstop3 = random(10) + 1;
_root.hopla = 0;
}
_root.tjekscript();
stop();
} else {
gotoAndPlay (3);
}
Symbol 26 MovieClip Frame 23
gotoAndPlay (3);
Symbol 27 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 4
if (tstop2 == 1) {
_root.lydstop2.play(2);
_root.trom2stop = 1;
_root.tjekscript();
_root.c.tstop3 = random(10) + 1;
stop();
}
Symbol 27 MovieClip Frame 6
if (tstop2 == 2) {
_root.lydstop2.play(2);
_root.trom2stop = 1;
_root.tjekscript();
_root.c.tstop3 = random(10) + 1;
stop();
}
Symbol 27 MovieClip Frame 8
if (tstop2 == 3) {
_root.lydstop2.play(2);
_root.trom2stop = 1;
_root.tjekscript();
_root.c.tstop3 = random(10) + 1;
stop();
}
Symbol 27 MovieClip Frame 10
if (tstop2 == 4) {
_root.lydstop2.play(2);
_root.trom2stop = 1;
_root.tjekscript();
_root.c.tstop3 = random(10) + 1;
stop();
}
Symbol 27 MovieClip Frame 12
if (tstop2 == 5) {
_root.lydstop2.play(2);
_root.trom2stop = 1;
_root.tjekscript();
_root.c.tstop3 = random(10) + 1;
stop();
}
Symbol 27 MovieClip Frame 14
if (tstop2 == 6) {
_root.lydstop2.play(2);
_root.trom2stop = 1;
_root.tjekscript();
_root.c.tstop3 = random(10) + 1;
stop();
}
Symbol 27 MovieClip Frame 16
if (tstop2 == 7) {
_root.lydstop2.play(2);
_root.trom2stop = 1;
_root.tjekscript();
_root.c.tstop3 = random(10) + 1;
stop();
}
Symbol 27 MovieClip Frame 18
if (tstop2 == 8) {
_root.lydstop2.play(2);
_root.trom2stop = 1;
_root.tjekscript();
_root.c.tstop3 = random(10) + 1;
stop();
}
Symbol 27 MovieClip Frame 20
if (tstop2 == 9) {
_root.lydstop2.play(2);
_root.trom2stop = 1;
_root.tjekscript();
_root.c.tstop3 = random(10) + 1;
stop();
}
Symbol 27 MovieClip Frame 22
if (tstop2 == 10) {
_root.lydstop2.play(2);
_root.trom2stop = 1;
_root.tjekscript();
_root.c.tstop3 = random(10) + 1;
stop();
} else {
gotoAndPlay (3);
}
Symbol 27 MovieClip Frame 23
gotoAndPlay (3);
Symbol 29 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 4
if (tstop3 == 1) {
_root.lydstop3.play(2);
_root.trom3stop = 1;
_root.tjekscript();
stop();
}
Symbol 29 MovieClip Frame 6
if (tstop3 == 2) {
_root.lydstop3.play(2);
_root.trom3stop = 1;
_root.tjekscript();
stop();
}
Symbol 29 MovieClip Frame 8
if (tstop3 == 3) {
_root.lydstop3.play(2);
_root.trom3stop = 1;
_root.tjekscript();
stop();
}
Symbol 29 MovieClip Frame 10
if (tstop3 == 4) {
_root.lydstop3.play(2);
_root.trom3stop = 1;
_root.tjekscript();
stop();
}
Symbol 29 MovieClip Frame 12
if (tstop3 == 5) {
_root.lydstop3.play(2);
_root.trom3stop = 1;
_root.tjekscript();
stop();
}
Symbol 29 MovieClip Frame 14
if (tstop3 == 6) {
_root.lydstop3.play(2);
_root.trom3stop = 1;
_root.tjekscript();
stop();
}
Symbol 29 MovieClip Frame 16
if (tstop3 == 7) {
_root.trom3stop = 1;
_root.lydstop3.play(2);
_root.tjekscript();
stop();
}
Symbol 29 MovieClip Frame 18
if (tstop3 == 8) {
_root.lydstop3.play(2);
_root.trom3stop = 1;
_root.tjekscript();
stop();
}
Symbol 29 MovieClip Frame 20
if (tstop3 == 9) {
_root.trom3stop = 1;
_root.lydstop3.play(2);
_root.tjekscript();
stop();
}
Symbol 29 MovieClip Frame 22
if (tstop3 == 10) {
_root.lydstop3.play(2);
_root.trom3stop = 1;
_root.tjekscript();
stop();
} else {
gotoAndPlay (3);
}
Symbol 29 MovieClip Frame 23
gotoAndPlay (3);
Symbol 30 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 1
stop();
Symbol 54 Button
on (release) {
if (_root.noHold != 1) {
if (start == 1) {
_root.hold1 = 1;
lys1._visible = true;
knap1 = 1;
}
}
}
Symbol 55 Button
on (release) {
if (_root.noHold != 1) {
if (start == 1) {
lys2._visible = true;
_root.hold2 = 1;
knap2 = 1;
}
}
}
Symbol 56 Button
on (release) {
if (_root.noHold != 1) {
if (start == 1) {
lys3._visible = true;
_root.hold3 = 1;
knap3 = 1;
}
}
}
Symbol 69 Button
on (press) {
_root.red1.gotoAndStop(1);
_root.red1._visible = false;
var i = 1;
while (i <= 25) {
this["bgLys" + i].gotoAndStop(1);
i++;
}
_root.jackpotflash.gotoAndStop(1);
_root.greenSpin.gotoAndStop(1);
_root.lyden.play(2);
if (_root.point >= 1) {
_root.point = _root.point - _root.ekstraIndsats;
}
if (_root.point <= 0) {
_root.point = 0;
}
}
on (release) {
if (_root.point > 0) {
_root.noHold = 0;
jackpot._visible = 0;
start = 1;
if (((knap1 == 1) && (knap2 == 1)) && (knap3 == 1)) {
lys1._visible = false;
lys2._visible = false;
lys3._visible = false;
knap1 = 0;
knap2 = 0;
knap3 = 0;
omgang = 0;
omgang2 = 0;
omgang3 = 0;
hold1 = 0;
hold2 = 0;
hold3 = 0;
}
if ((knap1 == 1) && (omgang == 0)) {
_root.hold1 = 1;
omgang = 1;
knap1 = 0;
if (_root.hold2 != 1) {
b.tstop2 = random(10) + 1;
}
} else {
_root.lys1._visible = false;
_root.trom1stop = 0;
omgang = 0;
knap1 = 0;
_root.a.tstop1 = random(10) + 1;
_root.b.tstop2 = 0;
_root.c.tstop3 = 0;
w = a._currentframe;
a.gotoAndPlay(w);
play();
}
if ((knap2 == 1) && (omgang2 == 0)) {
_root.hold2 = 1;
omgang2 = 1;
knap2 = 0;
_root.hopla = 1;
} else {
_root.lys2._visible = false;
omgang2 = 0;
knap2 = 0;
w2 = b._currentframe;
_root.trom2stop = 0;
b.gotoAndPlay(w2);
play();
}
if ((knap3 == 1) && (omgang3 == 0)) {
_root.hold3 = 1;
omgang3 = 1;
knap3 = 0;
} else {
_root.lys3._visible = false;
omgang3 = 0;
knap3 = 0;
w3 = c._currentframe;
_root.trom3stop = 0;
c.gotoAndPlay(w3);
play();
}
}
}
Symbol 102 Button
on (release) {
_root.ekstraIndsats = 1;
_root.red1._visible = true;
_root.red2._visible = false;
_root.red3._visible = false;
_root.red1.gotoAndPlay(1);
_root.red2.gotoAndStop(1);
_root.red3.gotoAndStop(1);
point = 12;
}
Symbol 115 Button
on (press) {
_root.red1.gotoAndStop(1);
_root.red1._visible = false;
var i = 1;
while (i <= 25) {
this["bgLys" + i].gotoAndStop(1);
i++;
}
_root.jackpotflash.gotoAndStop(1);
_root.greenSpin.gotoAndStop(1);
_root.lydenGreen.play(2);
if (_root.point >= 1) {
_root.point = _root.point - _root.ekstraIndsats;
}
if (_root.point <= 0) {
_root.point = 0;
}
}
on (release) {
if (_root.point > 0) {
_root.noHold = 0;
jackpot._visible = 0;
start = 1;
if (((knap1 == 1) && (knap2 == 1)) && (knap3 == 1)) {
lys1._visible = false;
lys2._visible = false;
lys3._visible = false;
knap1 = 0;
knap2 = 0;
knap3 = 0;
omgang = 0;
omgang2 = 0;
omgang3 = 0;
hold1 = 0;
hold2 = 0;
hold3 = 0;
}
if ((knap1 == 1) && (omgang == 0)) {
_root.hold1 = 1;
omgang = 1;
knap1 = 0;
if (_root.hold2 != 1) {
b.tstop2 = random(10) + 1;
}
} else {
_root.lys1._visible = false;
_root.trom1stop = 0;
omgang = 0;
knap1 = 0;
_root.a.tstop1 = random(10) + 1;
_root.b.tstop2 = 0;
_root.c.tstop3 = 0;
w = a._currentframe;
a.gotoAndPlay(w);
play();
}
if ((knap2 == 1) && (omgang2 == 0)) {
_root.hold2 = 1;
omgang2 = 1;
knap2 = 0;
_root.hopla = 1;
} else {
_root.lys2._visible = false;
omgang2 = 0;
knap2 = 0;
w2 = b._currentframe;
_root.trom2stop = 0;
b.gotoAndPlay(w2);
play();
}
if ((knap3 == 1) && (omgang3 == 0)) {
_root.hold3 = 1;
omgang3 = 1;
knap3 = 0;
} else {
_root.lys3._visible = false;
omgang3 = 0;
knap3 = 0;
w3 = c._currentframe;
_root.trom3stop = 0;
c.gotoAndPlay(w3);
play();
}
}
}
Symbol 155 MovieClip Frame 2
stop();
Symbol 156 MovieClip Frame 1
if (this.sessionstarted != 1) {
this.arcade = new LoadVars();
this.sessionvars = new LoadVars();
this.arcade.gamename = "jackpot";
this.arcade.sessdo = "sessionstart";
this.arcade.sendAndLoad("arcade.php", sessionvars, "POST");
this.sessionstarted = 1;
}
if (_root.gameover == 1) {
if ((this.askpermission != 1) && (this.sessionvars.connStatus == 1)) {
this.prequestvars = new LoadVars();
this.pranswer = new LoadVars();
this.prequestvars.gametime = this.sessionvars.gametime;
this.prequestvars.fakekey = this.sessionvars.initbar;
_root.score = Number(int(_root.point));
if (_root.score == 0) {
this.prequestvars.score = -1;
} else {
this.prequestvars.score = _root.score;
}
this.prequestvars.id = this.sessionvars.lastid;
this.prequestvars.sessdo = "permrequest";
this.prequestvars.note = (this.prequestvars.id * this.prequestvars.score) * this.prequestvars.fakekey;
this.prequestvars.sendAndLoad("./arcade.php", this.pranswer, "POST");
this.askpermission = 1;
}
if ((this.pranswer.validate == 1) && (this.finalsent != 1)) {
this.burnscore = new LoadVars();
this.burnscore.microone = this.pranswer.microone;
this.burnscore.gametime = this.prequestvars.gametime;
this.burnscore.id = this.prequestvars.id;
if (_root.score == 0) {
this.burnscore.noscore = 1;
}
this.burnscore.sessdo = "burn";
this.burnscore.send("./arcade.php", "_self", "POST");
this.finalsent = 1;
}
}
Symbol 159 Button
on (press) {
_root.gameover = 1;
stop();
}