Frame 1
stop();
Instance of Symbol 56 MovieClip in Frame 1
onClipEvent (load) {
_root.go = true;
}
onClipEvent (enterFrame) {
_root.loaded = _root.getBytesLoaded() + " bytes";
_root.bytesleft = (_root.getBytesTotal() - _root.getBytesLoaded()) + " bytes";
this.percent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + "%";
}
Frame 2
function chip100() {
removeMovieClip("_root.attachchip.drag");
_root.attachchip.attachMovie("chip100mc", "drag", 1);
startDrag ("_root.attachchip", true);
_root.attachchip.swapDepths(1);
_root.wert = 100;
if (_root.coins == 0) {
_root.coins = 1;
_root.button_1x_hi._visible = true;
}
if (_root.value == 0) {
_root.value = 1;
_root.button_1_hi._visible = true;
}
}
function chip50() {
removeMovieClip("_root.attachchip.drag");
_root.attachchip.attachMovie("chip50mc", "drag", 1);
startDrag ("_root.attachchip", true);
_root.attachchip.swapDepths(1);
_root.wert = 50;
if (_root.coins == 0) {
_root.coins = 1;
_root.button_1x_hi._visible = true;
}
if (_root.value == 0) {
_root.value = 1;
_root.button_1_hi._visible = true;
}
}
function chip10() {
removeMovieClip("_root.attachchip.drag");
_root.attachchip.attachMovie("chip10mc", "drag", 1);
startDrag ("_root.attachchip", true);
_root.attachchip.swapDepths(1);
_root.wert = 10;
if (_root.coins == 0) {
_root.coins = 1;
_root.button_1x_hi._visible = true;
}
if (_root.value == 0) {
_root.value = 1;
_root.button_1_hi._visible = true;
}
}
function chip5() {
removeMovieClip("_root.attachchip.drag");
_root.attachchip.attachMovie("chip5mc", "drag", 1);
startDrag ("_root.attachchip", true);
_root.attachchip.swapDepths(1);
_root.wert = 5;
if (_root.coins == 0) {
_root.coins = 1;
_root.button_1x_hi._visible = true;
}
if (_root.value == 0) {
_root.value = 1;
_root.button_1_hi._visible = true;
}
}
function chip1() {
removeMovieClip("_root.attachchip.drag");
_root.attachchip.attachMovie("chip1mc", "drag", 1);
startDrag ("_root.attachchip", true);
_root.attachchip.swapDepths(1);
_root.wert = 1;
if (_root.coins == 0) {
_root.coins = 1;
_root.button_1x_hi._visible = true;
}
if (_root.value == 0) {
_root.value = 1;
_root.button_1_hi._visible = true;
}
}
function numbercoins_3() {
if (((_root.credits - (3 * _root.value)) >= 0) && (_root.spinning == false)) {
_root.coins = 3;
_root.button_1x_hi._visible = false;
_root.button_2x_hi._visible = false;
_root.button_3x_hi._visible = true;
}
}
function numbercoins_2() {
if (((_root.credits - (2 * _root.value)) >= 0) && (_root.spinning == false)) {
_root.coins = 2;
_root.button_1x_hi._visible = false;
_root.button_2x_hi._visible = true;
_root.button_3x_hi._visible = false;
}
}
function numbercoins_1() {
if (((_root.credits - _root.value) >= 0) && (_root.spinning == false)) {
_root.coins = 1;
_root.button_1x_hi._visible = true;
_root.button_2x_hi._visible = false;
_root.button_3x_hi._visible = false;
}
}
function slotvalue_1() {
if (((_root.credits - 1) >= 0) && (_root.spinning == false)) {
_root.value = 1;
_root.button_1_hi._visible = true;
_root.button_2_hi._visible = false;
_root.button_5_hi._visible = false;
}
}
function slotvalue_2() {
if (((_root.credits - 2) >= 0) && (_root.spinning == false)) {
_root.value = 2;
_root.button_1_hi._visible = false;
_root.button_2_hi._visible = true;
_root.button_5_hi._visible = false;
}
}
function slotvalue_5() {
if (((_root.credits - 5) >= 0) && (_root.spinning == false)) {
_root.value = 5;
_root.button_1_hi._visible = false;
_root.button_2_hi._visible = false;
_root.button_5_hi._visible = true;
}
}
function checkcash() {
if ((_root.cash - 100) < 0) {
_root.chip_grau_100_mc._visible = true;
_root.chip_100_mc._visible = false;
_root.chip_static_100._visible = false;
}
if ((_root.cash - 50) < 0) {
_root.chip_grau_50_mc._visible = true;
_root.chip_50_mc._visible = false;
_root.chip_static_50._visible = false;
}
if ((_root.cash - 10) < 0) {
_root.chip_grau_10_mc._visible = true;
_root.chip_10_mc._visible = false;
_root.chip_static_10._visible = false;
}
if ((_root.cash - 5) < 0) {
_root.chip_grau_5_mc._visible = true;
_root.chip_5_mc._visible = false;
_root.chip_static_5._visible = false;
}
if ((_root.cash - 1) < 0) {
_root.chip_grau_1_mc._visible = true;
_root.chip_1_mc._visible = false;
_root.chip_static_1._visible = false;
}
if (((_root.cash - 100) > 0) && (_root.spinning == false)) {
_root.chip_grau_100_mc._visible = false;
_root.chip_100_mc._visible = true;
_root.chip_static_100._visible = true;
}
if (((_root.cash - 50) > 0) && (_root.spinning == false)) {
_root.chip_grau_50_mc._visible = false;
_root.chip_50_mc._visible = true;
_root.chip_static_50._visible = true;
}
if (((_root.cash - 10) > 0) && (_root.spinning == false)) {
_root.chip_grau_10_mc._visible = false;
_root.chip_10_mc._visible = true;
_root.chip_static_10._visible = true;
}
if (((_root.cash - 5) > 0) && (_root.spinning == false)) {
_root.chip_grau_5_mc._visible = false;
_root.chip_5_mc._visible = true;
_root.chip_static_5._visible = true;
}
if (((_root.cash - 1) > 0) && (_root.spinning == false)) {
_root.chip_grau_1_mc._visible = false;
_root.chip_1_mc._visible = true;
_root.chip_static_1._visible = true;
}
if (_root.spinning) {
_root.chip_grau_100_mc._visible = true;
_root.chip_100_mc._visible = false;
_root.chip_static_100._visible = false;
_root.chip_grau_50_mc._visible = true;
_root.chip_50_mc._visible = false;
_root.chip_static_50._visible = false;
_root.chip_grau_10_mc._visible = true;
_root.chip_10_mc._visible = false;
_root.chip_static_10._visible = false;
_root.chip_grau_5_mc._visible = true;
_root.chip_5_mc._visible = false;
_root.chip_static_5._visible = false;
_root.chip_grau_1_mc._visible = true;
_root.chip_1_mc._visible = false;
_root.chip_static_1._visible = false;
}
}
function reset() {
if (_root.film == 3) {
_root.film = 0;
_root.spinning = false;
_root.berechnung();
_root.chip_grau_100_mc._visible = false;
_root.chip_100_mc._visible = true;
_root.chip_static_100._visible = true;
_root.chip_grau_50_mc._visible = false;
_root.chip_50_mc._visible = true;
_root.chip_static_50._visible = true;
_root.chip_grau_10_mc._visible = false;
_root.chip_10_mc._visible = true;
_root.chip_static_10._visible = true;
_root.chip_grau_5_mc._visible = false;
_root.chip_5_mc._visible = true;
_root.chip_static_5._visible = true;
_root.chip_grau_1_mc._visible = false;
_root.chip_1_mc._visible = true;
_root.chip_static_1._visible = true;
}
}
function cashout() {
if (_root.spinning == false) {
_root.cash = _root.cash + _root.credits;
_root.credits = 0;
_root.credits_show = _root.credits;
_root.bet = 0;
_root.coins = 0;
_root.gewinn = 0;
_root.button_1_hi._visible = false;
_root.button_2_hi._visible = false;
_root.button_5_hi._visible = false;
_root.button_1x_hi._visible = false;
_root.button_2x_hi._visible = false;
_root.button_3x_hi._visible = false;
}
}
function slot() {
removeMovieClip(_root.attachchip.drag);
_root.credits = _root.wert + _root.credits;
_root.credits_show = _root.credits;
_root.cash = _root.cash - _root.wert;
stopDrag();
_root.attachchip._x = -100;
_root.attachchip._y = -100;
}
function berechnung() {
if (((zahl_links == 0) && (zahl_mitte == 0)) && (zahl_rechts == 0)) {
multiplikator = 50;
gewinn = multiplikator * bet;
credits = credits + gewinn;
}
if (((zahl_links == 1) && (zahl_mitte == 1)) && (zahl_rechts == 1)) {
multiplikator = 200;
gewinn = multiplikator * bet;
credits = credits + gewinn;
}
if (((zahl_links == 2) && (zahl_mitte == 2)) && (zahl_rechts == 2)) {
multiplikator = 300;
gewinn = multiplikator * bet;
credits = credits + gewinn;
}
if (((zahl_links == 3) && (zahl_mitte == 3)) && (zahl_rechts == 3)) {
multiplikator = 25;
gewinn = multiplikator * bet;
credits = credits + gewinn;
}
if (((zahl_links == 4) && (zahl_mitte == 4)) && (zahl_rechts == 4)) {
multiplikator = 10;
gewinn = multiplikator * bet;
credits = credits + gewinn;
}
if (((zahl_links == 5) && (zahl_mitte == 5)) && (zahl_rechts == 5)) {
multiplikator = 6;
gewinn = multiplikator * bet;
credits = credits + gewinn;
}
if (((zahl_links == 2) && (zahl_mitte != 2)) && (zahl_rechts != 2)) {
multiplikator = 2;
gewinn = multiplikator * bet;
credits = credits + gewinn;
}
if (((zahl_links != 2) && (zahl_mitte == 2)) && (zahl_rechts != 2)) {
multiplikator = 2;
gewinn = multiplikator * bet;
credits = credits + gewinn;
}
if (((zahl_links != 2) && (zahl_mitte != 2)) && (zahl_rechts == 2)) {
multiplikator = 2;
gewinn = multiplikator * bet;
credits = credits + gewinn;
}
if (((zahl_links == 2) && (zahl_mitte == 2)) && (zahl_rechts != 2)) {
multiplikator = 4;
gewinn = multiplikator * bet;
credits = credits + gewinn;
}
if (((zahl_links == 2) && (zahl_mitte != 2)) && (zahl_rechts == 2)) {
multiplikator = 4;
gewinn = multiplikator * bet;
credits = credits + gewinn;
}
if (((zahl_links != 2) && (zahl_mitte == 2)) && (zahl_rechts == 2)) {
multiplikator = 4;
gewinn = multiplikator * bet;
credits = credits + gewinn;
}
if ((((((zahl_links != 2) && (zahl_mitte != 2)) && (zahl_rechts != 2)) && (zahl_links != zahl_mitte)) && (zahl_links != zahl_rechts)) && (zahl_mitte != zahl_rechts)) {
multiplikator = 0;
gewinn = multiplikator * bet;
}
if (((((zahl_links != 2) && (zahl_mitte != 2)) && (zahl_rechts != 2)) && (zahl_links == zahl_mitte)) && (zahl_links != zahl_rechts)) {
multiplikator = 0;
gewinn = multiplikator * bet;
}
if (((((zahl_links != 2) && (zahl_mitte != 2)) && (zahl_rechts != 2)) && (zahl_links == zahl_rechts)) && (zahl_links != zahl_mitte)) {
multiplikator = 0;
gewinn = multiplikator * bet;
}
if (((((zahl_links != 2) && (zahl_mitte != 2)) && (zahl_rechts != 2)) && (zahl_mitte == zahl_rechts)) && (zahl_links != zahl_mitte)) {
multiplikator = 0;
gewinn = multiplikator * bet;
}
}
function hebel() {
if ((_root.credits - (_root.coins * _root.value)) < 0) {
_root.meldung = "Not enough credits!";
}
if (((_root.credits > 0) && ((_root.credits - (_root.coins * _root.value)) >= 0)) && (_root.spinning == false)) {
_root.meldung = "";
_root.gewinn = 0;
_root.bet = _root.coins * _root.value;
_root.credits = _root.credits - _root.bet;
_root.spinning = true;
_root.zahl_links = random(6);
_root.zahl_mitte = random(6);
_root.zahl_rechts = random(6);
_root.spacer_links_01.attachMovie("frucht_" + zahl_links, "frucht_links", _root.layer);
_root.spacer_mitte_01.attachMovie("frucht_" + zahl_mitte, "frucht_mitte", _root.layer);
_root.spacer_rechts_01.attachMovie("frucht_" + zahl_rechts, "frucht_rechts", _root.layer);
}
}
stop();
_root.layer = 1;
_root.film = 0;
_root.wert = 0;
_root.cash = 999;
_root.coins = 0;
_root.bet = 1;
_root.value = 0;
_root.gewinn = 0;
_root.credits = 0;
_root.chip_grau_100_mc._visible = false;
_root.chip_grau_50_mc._visible = false;
_root.chip_grau_10_mc._visible = false;
_root.chip_grau_5_mc._visible = false;
_root.chip_grau_1_mc._visible = false;
_root.button_1_hi._visible = false;
_root.button_2_hi._visible = false;
_root.button_5_hi._visible = false;
_root.button_1x_hi._visible = false;
_root.button_2x_hi._visible = false;
_root.button_3x_hi._visible = false;
_root.attachchip._x = -100;
_root.attachchip._y = -100;
_root.spinning = false;
_root.help._visible = false;
Instance of Symbol 103 MovieClip in Frame 2
onClipEvent (enterFrame) {
_root.checkcash();
_root.reset();
}
Symbol 19 MovieClip [frucht_2] Frame 33
_root.film++;
stop();
Symbol 20 MovieClip [frucht_0] Frame 25
_root.film++;
stop();
Symbol 21 MovieClip [frucht_1] Frame 29
_root.film++;
stop();
Symbol 22 MovieClip [frucht_3] Frame 37
_root.film++;
stop();
Symbol 23 MovieClip [frucht_4] Frame 41
_root.film++;
stop();
Symbol 24 MovieClip [frucht_5] Frame 45
_root.film++;
stop();
Symbol 44 Button
on (release) {
_root.gotoAndPlay(1, 1);
}
Symbol 47 Button
on (release) {
getURL ("http://www.gamblingfactory.de", "_parent");
}
Symbol 53 Button
on (release) {
getURL ("http://www.gamblingfactory.de", "_parent");
}
Symbol 63 Button
on (release) {
_root.hebel();
}
Symbol 66 Button
on (press) {
_root.chip5();
}
Symbol 68 Button
on (press) {
_root.chip1();
}
Symbol 70 Button
on (press) {
_root.chip10();
}
Symbol 72 Button
on (press) {
_root.chip50();
}
Symbol 74 Button
on (press) {
_root.chip100();
}
Symbol 92 Button
on (press) {
_root.slot();
}
Symbol 99 Button
on (release) {
_root.cashout();
}
Symbol 107 Button
on (release) {
_root.numbercoins_3();
}
Symbol 111 Button
on (release) {
_root.numbercoins_1();
}
Symbol 115 Button
on (release) {
_root.numbercoins_2();
}
Symbol 120 Button
on (release) {
_root.slotvalue_1();
}
Symbol 124 Button
on (release) {
_root.slotvalue_2();
}
Symbol 128 Button
on (release) {
_root.slotvalue_5();
}
Symbol 153 Button
on (release) {
getURL ("http://www.gamblingfactory.de", "_parent");
}
Symbol 158 Button
on (release) {
_root.help._visible = true;
}
Symbol 166 Button
on (release) {
this._visible = false;
}