Combined Code
movieClip 4 {
}
movieClip 5 cursor {
}
// unknown tag 88 length 73
movieClip 11 ControlSign {
#initclip
Object.registerClass('ControlSign', ControlSign);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
frame 1 {
stop();
onEnterFrame = function () {
var v3 = _root.getBytesLoaded() / _root.getBytesTotal();
preloader_mc.value = v3;
if (v3 == 1) {
gotoAndStop(2);
_global.levelcompleted = 1;
_global.timenotshot = 0;
_global.timenotshotmin = 0;
delete onEnterFrame;
}
};
}
movieClip 18 {
}
movieClip 19 {
frame 1 {
var value = 0;
onEnterFrame = function () {
bar_mc._xscale = 100 * value;
};
onEnterFrame();
}
}
movieClip 55 {
}
movieClip 58 {
}
movieClip 59 {
}
movieClip 68 {
}
movieClip 75 {
}
movieClip 107 {
}
movieClip 108 {
}
movieClip 109 {
frame 1 {
stop();
timer = 0;
onEnterFrame = function () {
timer += 1;
if (_global.level == 1) {
gotoAndStop(10);
delete onEnterFrame;
} else {
if (_global.level == 2) {
gotoAndStop(10);
delete onEnterFrame;
} else {
if (_global.level == 3) {
gotoAndStop(10);
delete onEnterFrame;
} else {
if (_global.level == 4) {
gotoAndStop(10);
delete onEnterFrame;
} else {
if (_global.level == 4.01) {
if (timer > 60) {
_global.level = 4.02;
gotoAndStop(10);
delete onEnterFrame;
}
} else {
if (_global.level == 4.03) {
if (timer > 60) {
_global.level = 4.04;
gotoAndStop(10);
delete onEnterFrame;
}
} else {
if (_global.level == 4.05) {
if (timer > 80) {
_global.level = 4.06;
gotoAndStop(10);
delete onEnterFrame;
}
} else {
if (_global.level == 4.07) {
if (timer > 60) {
_global.level = 4.08;
gotoAndStop(10);
delete onEnterFrame;
}
} else {
if (_global.level == 4.09) {
if (timer > 120) {
_global.level = 4.1;
gotoAndStop(10);
delete onEnterFrame;
}
} else {
if (_global.level == 5) {
gotoAndStop(10);
delete onEnterFrame;
} else {
if (_global.level == 6) {
gotoAndStop(10);
delete onEnterFrame;
} else {
if (_global.level == 6.1) {
if (timer > 120) {
_global.level = 6.2;
gotoAndStop(20);
delete onEnterFrame;
}
} else {
if (_global.level == 7) {
if (timer > 30) {
gotoAndStop(30);
delete onEnterFrame;
}
} else {
if (_global.level == 8) {
gotoAndStop(10);
delete onEnterFrame;
} else {
if (_global.level == 9) {
if (timer > 300) {
gotoAndStop(10);
delete onEnterFrame;
}
} else {
if (_global.level == 10) {
gotoAndStop(10);
delete onEnterFrame;
} else {
if (_global.level == 11) {
gotoAndStop(10);
delete onEnterFrame;
} else {
if (_global.level == 12) {
if (timer > 400) {
gotoAndStop(10);
_global.fake = 1;
delete onEnterFrame;
}
} else {
if (_global.level == 13.1) {
gotoAndStop(10);
delete onEnterFrame;
} else {
if (_global.level == 14) {
gotoAndStop(10);
delete onEnterFrame;
} else {
if (_global.level == 14.1) {
if (timer > 60) {
gotoAndPlay(50);
delete onEnterFrame;
}
} else {
if (_global.level == 15) {
gotoAndStop(110);
delete onEnterFrame;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
};
}
frame 10 {
stop();
speed1 = 2;
speed2 = 0.8;
speed3 = 0.7;
speed35 = 0.6;
speed4 = 0.5;
speed5 = 0.3;
timer = 0;
onEnterFrame = function () {
timer += 1;
if (_global.level == 0) {
gotoAndStop(1);
delete onEnterFrame;
} else {
if (_global.level == 1) {
_root.rarity._x -= speed1;
} else {
if (_global.level == 2) {
_root.rarity._x -= speed2;
} else {
if (_global.level == 3) {
_root.rarity._x -= speed2;
} else {
if (_global.level == 4) {
_root.rarity._x -= speed2;
if (timer > 60) {
_global.level = 4.01;
gotoAndStop(1);
delete onEnterFrame;
}
} else {
if (_global.level == 4.02) {
_root.rarity._x -= speed2;
if (timer > 60) {
_global.level = 4.03;
gotoAndStop(1);
delete onEnterFrame;
}
} else {
if (_global.level == 4.04) {
_root.rarity._x -= speed2;
if (timer > 120) {
_global.level = 4.05;
gotoAndStop(1);
delete onEnterFrame;
}
} else {
if (_global.level == 4.06) {
_root.rarity._x -= speed2;
if (timer > 150) {
_global.level = 4.07;
gotoAndStop(1);
delete onEnterFrame;
}
} else {
if (_global.level == 4.08) {
_root.rarity._x -= speed2;
if (timer > 170) {
_global.level = 4.09;
gotoAndStop(1);
delete onEnterFrame;
}
} else {
if (_global.level == 4.1) {
_root.rarity._x -= speed2;
} else {
if (_global.level == 5) {
_root.rarity._x -= speed3;
} else {
if (_global.level == 6) {
_root.rarity._x -= speed2;
if (timer > 180) {
_global.level = 6.1;
gotoAndStop(1);
delete onEnterFrame;
}
} else {
if (_global.level == 8) {
_root.rarity._x -= speed5;
} else {
if (_global.level == 9) {
_root.rarity._x -= speed3;
} else {
if (_global.level == 10) {
_root.rarity._x -= speed35;
} else {
if (_global.level == 11) {
_root.rarity._x -= speed35;
} else {
if (_global.level == 12) {
_root.rarity._x -= speed35;
} else {
if (_global.level == 13.1) {
_root.rarity._x -= speed35;
} else {
if (_global.level == 14) {
_root.rarity._x -= speed35;
if (timer > 270) {
_global.level = 14.1;
gotoAndStop(1);
delete onEnterFrame;
}
} else {
if (_global.level == 15) {
_root.rarity._x -= speed35;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
};
}
frame 20 {
stop();
speed1 = 2;
speed2 = 0.8;
speed3 = 0.7;
speed4 = 0.5;
timer = 0;
onEnterFrame = function () {
timer += 1;
if (_global.level == 0) {
gotoAndStop(1);
delete onEnterFrame;
} else {
if (_global.level == 6.2) {
_root.rarity._x -= speed4;
} else {
if (_global.level == 7.1) {
_root.rarity._x -= speed4;
}
}
}
};
}
frame 30 {
stop();
speed1 = 2;
speed2 = 0.8;
speed3 = 0.7;
speed4 = 0.5;
timer = 0;
onEnterFrame = function () {
timer += 1;
if (_global.level == 0) {
gotoAndStop(1);
delete onEnterFrame;
} else {
if (_global.level == 7) {
_root.rarity._x += speed2;
if (timer > 240) {
_global.level = 7.1;
gotoAndStop(20);
delete onEnterFrame;
}
}
}
};
}
frame 100 {
stop();
timer = 0;
_root.filly._visible = false;
onEnterFrame = function () {
timer += 1;
if (_global.level == 0) {
gotoAndStop(1);
delete onEnterFrame;
} else {
if (_global.level == 14.1) {
_root.rarity.filly._x -= 0.5;
if (_root.rarity.filly._x < -210) {
_global.level = 14.2;
}
} else {
if (_global.level == 14.2) {
_root.rarity.filly._x = 350;
_root.rarity.filly._y = 5;
_global.level = 14.3;
} else {
if (_global.level == 14.3) {
_root.rarity.filly._x -= 0.5;
if (_root.rarity.filly._x < -330) {
_global.level = 14.4;
gotoAndStop(1);
delete onEnterFrame;
}
}
}
}
}
};
}
frame 110 {
stop();
timer = 0;
onEnterFrame = function () {
timer += 1;
if (_global.level == 0) {
gotoAndStop(1);
delete onEnterFrame;
} else {
if (_global.level == 15) {
_root.rarity._x -= 0.1;
if (_root.rarity._x == 70) {
gotoAndStop(10);
}
}
}
};
}
}
movieClip 114 {
}
movieClip 115 {
}
movieClip 116 {
}
movieClip 117 {
}
movieClip 118 {
}
movieClip 119 {
}
movieClip 120 {
}
movieClip 121 {
}
movieClip 122 {
}
movieClip 123 {
}
movieClip 124 {
}
movieClip 125 {
}
movieClip 128 {
frame 1 {
stop();
onEnterFrame = function () {
if (_global.loose == 0.5) {
gotoAndPlay(2);
delete onEnterFrame;
}
};
}
frame 11 {
_global.loose = 1;
}
}
movieClip 200 __Packages.ControlSign {
#initclip
if (!_global.ControlSign) {
var v1 = function () {
super();
};
_global.ControlSign = v1;
_global.ControlSign extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.md = 0;
this.KeyListener = {};
this.KeyListener.onKeyDown = function () {
if (_root.controlsign.md == 1) {
_global.loose = 0.5;
}
};
this.cdtimer = 1380;
Key.addListener(this.KeyListener);
};
v2.onEnterFrame = function () {
if (Key.isDown(1) && this.md == 1) {
_global.loose = 0.5;
}
if (Key.isDown(9) && this.md == 1) {
_global.loose = 0.5;
this.md = 2;
}
if (Key.isDown(18) && this.md == 1) {
_global.loose = 0.5;
this.md = 2;
}
if (_global.level == 13) {
this.cdtimer -= 1;
_root.countdown.text = int(this.cdtimer / 30);
} else {
if (_global.level == 13.1) {
this.cdtimer = 1380;
} else {
_root.countdown.text = '';
}
}
if (this.cdtimer == 1) {
_global.level = 13.1;
}
_root.lastlvl.text = _global.lastlevel;
if (_global.levelcompleted < _global.lastlevel) {
_global.levelcompleted = _global.lastlevel - 1;
}
_root.lvlcomplete.text = _global.levelcompleted;
if (_global.loose == 0) {
_global.timenotshot += 0.045;
if (_global.timenotshot >= 60) {
_global.timenotshot = 0;
++_global.timenotshotmin;
}
}
_root.time_sec.text = int(_global.timenotshot);
_root.time_min.text = _global.timenotshotmin;
};
v2.onMouseMove = function () {
if (_root.controlsign.md == 1) {
_global.loose = 0.5;
}
};
v2.mouseCords = function () {
this.md = 1;
};
ASSetPropFlags(_global.ControlSign.prototype, null, 1);
}
#endinitclip
}
frame 2 {
stop();
_global.loose = 0;
_root.rarity._x = 400;
_root.startbutton._visible = true;
_global.lastlevel = 1;
onEnterFrame = function () {
if (_global.loose == 1) {
gotoAndStop(150);
delete onEnterFrame;
}
if (_root.rarity._x < -105) {
_root.controlsign.md = 0;
_global.level = 0;
gotoAndStop(10);
delete _root.onEnterFrame;
}
};
_root.startbutton.onRelease = function () {
_global.level = 1;
_root.startbutton._visible = false;
_root.controlsign.mouseCords();
};
}
movieClip 132 {
}
frame 9 {
gotoAndStop(150);
_global.loose = 1;
}
frame 10 {
stop();
_root.rarity._x = 400;
_global.loose = 0;
_root.startbutton._visible = true;
_global.lastlevel = 2;
onEnterFrame = function () {
if (_global.loose == 1) {
gotoAndStop(150);
delete onEnterFrame;
}
if (_root.rarity._x < -105) {
_root.controlsign.md = 0;
_global.level = 0;
gotoAndStop(20);
delete onEnterFrame;
}
};
_root.startbutton.onRelease = function () {
_global.level = 2;
_root.startbutton._visible = false;
_root.controlsign.mouseCords();
};
}
frame 19 {
gotoAndStop(150);
_global.loose = 1;
}
frame 20 {
stop();
_global.loose = 0;
_root.rarity._x = 400;
_root.startbutton._visible = true;
_root.pinkie._visible = false;
_global.lastlevel = 3;
onEnterFrame = function () {
if (_global.loose == 1) {
gotoAndStop(150);
_root.pinkie._visible = false;
delete onEnterFrame;
}
if (_root.rarity._x < -105) {
_root.controlsign.md = 0;
_global.level = 0;
gotoAndStop(30);
_root.pinkie._visible = false;
delete onEnterFrame;
}
};
_root.startbutton.onRelease = function () {
_global.level = 3;
_root.startbutton._visible = false;
_root.controlsign.mouseCords();
_root.pinkie._visible = true;
};
}
movieClip 143 {
}
frame 29 {
gotoAndStop(150);
_global.loose = 1;
}
frame 30 {
stop();
_global.loose = 0;
_root.rarity._x = 400;
_root.startbutton._visible = true;
_global.lastlevel = 4;
onEnterFrame = function () {
if (_global.loose == 1) {
gotoAndStop(150);
delete onEnterFrame;
}
if (_root.rarity._x < -105) {
_root.controlsign.md = 0;
_global.level = 0;
gotoAndStop(40);
delete onEnterFrame;
}
};
_root.startbutton.onRelease = function () {
_global.level = 4;
_root.startbutton._visible = false;
_root.controlsign.mouseCords();
};
}
frame 39 {
gotoAndStop(150);
_global.loose = 1;
}
frame 40 {
stop();
_global.loose = 0;
_root.rarity._x = 400;
_root.startbutton._visible = true;
_root.controlsign.gotoAndStop(3);
_global.lastlevel = 5;
onEnterFrame = function () {
if (_global.loose == 1) {
gotoAndStop(150);
delete onEnterFrame;
}
if (_root.rarity._x < -105) {
_root.controlsign.md = 0;
_global.level = 0;
_root.controlsign.gotoAndStop(1);
gotoAndStop(50);
delete onEnterFrame;
}
};
_root.startbutton.onRelease = function () {
_global.level = 5;
_root.startbutton._visible = false;
_root.controlsign.mouseCords();
};
}
frame 49 {
gotoAndStop(150);
_global.loose = 1;
}
frame 50 {
stop();
_global.loose = 0;
_root.rarity._x = 400;
_root.startbutton._visible = true;
_root.controlsign.gotoAndStop(1);
_global.lastlevel = 6;
onEnterFrame = function () {
if (_global.loose == 1) {
gotoAndStop(150);
delete onEnterFrame;
}
if (_root.rarity._x < -105) {
_root.controlsign.md = 0;
_global.level = 0;
gotoAndStop(60);
delete onEnterFrame;
}
if (_global.level == 6.2) {
_root.tom.gotoAndStop(1);
}
};
_root.startbutton.onRelease = function () {
_root.tom.gotoAndPlay(2);
_global.level = 6;
_root.startbutton._visible = false;
_root.controlsign.mouseCords();
};
}
movieClip 150 {
}
movieClip 151 {
frame 1 {
stop();
}
frame 40 {
stop();
}
frame 80 {
stop();
}
}
frame 59 {
gotoAndStop(150);
_global.loose = 1;
}
frame 60 {
stop();
_global.loose = 0;
_root.rarity._x = 400;
_root.startbutton._visible = true;
_global.lastlevel = 7;
onEnterFrame = function () {
if (_global.loose == 1) {
gotoAndStop(150);
delete onEnterFrame;
}
if (_root.rarity._x < -105) {
_root.controlsign.md = 0;
_global.level = 0;
gotoAndStop(70);
delete onEnterFrame;
}
};
_root.startbutton.onRelease = function () {
_root.tom.gotoAndPlay(41);
_root.rarity.timer = 0;
_global.level = 7;
_root.startbutton._visible = false;
_root.controlsign.mouseCords();
};
}
frame 69 {
gotoAndStop(150);
_global.loose = 1;
}
frame 70 {
stop();
_global.loose = 0;
_root.rarity._x = 430;
_root.rarity._y = 237;
_root.rarity._xscale = 30;
_root.rarity._yscale = 30;
_root.startbutton._visible = true;
_root.skiplevel._visible = false;
_global.lastlevel = 8;
onEnterFrame = function () {
if (_global.loose == 1) {
gotoAndStop(150);
delete onEnterFrame;
}
if (_root.rarity._x < -40) {
_root.rarity._xscale = 100;
_root.rarity._yscale = 100;
_root.rarity._y = 175;
_root.controlsign.md = 0;
_global.level = 0;
gotoAndStop(80);
delete onEnterFrame;
}
};
_root.startbutton.onRelease = function () {
_global.level = 8;
_root.startbutton._visible = false;
_root.controlsign.mouseCords();
};
}
// unknown tag 88 length 78
movieClip 159 {
}
frame 79 {
gotoAndStop(150);
_global.loose = 1;
}
frame 80 {
stop();
_global.loose = 0;
_root.rarity._x = 400;
_root.startbutton._visible = true;
_root.rarity._xscale = 100;
_root.rarity._yscale = 100;
_root.rarity._y = 175;
var my_event = new Object();
Mouse.addListener(my_event);
_global.lastlevel = 9;
onEnterFrame = function () {
if (_global.loose == 1) {
Mouse.show();
fakeCursor.removeMovieClip();
gotoAndStop(150);
delete onEnterFrame;
}
if (_root.rarity._x < -105) {
Mouse.show();
fakeCursor.removeMovieClip();
_root.controlsign.md = 0;
_global.level = 0;
gotoAndStop(90);
delete onEnterFrame;
}
};
_root.startbutton.onRelease = function () {
_global.level = 9;
_root.startbutton._visible = false;
_root.controlsign.mouseCords();
_root.rarity.timer = 0;
Mouse.hide();
var v4 = _root.attachMovie('cursor', 'fakeCursor', this.getNextHighestDepth(), this.getNextHighestDepth());
v4._x = _xmouse;
v4._y = _ymouse;
my_event.onMouseMove = function () {
fakeCursor._x = _xmouse;
fakeCursor._y = _ymouse;
updateAfterEvent();
};
};
}
movieClip 163 {
}
frame 89 {
gotoAndStop(150);
_global.loose = 1;
}
frame 90 {
stop();
_global.loose = 0;
_root.rarity._x = 400;
_root.startbutton._visible = true;
_root.screen._visible = false;
_global.lastlevel = 10;
onEnterFrame = function () {
if (_global.loose == 1) {
Mouse.show();
_root.screen._visible = false;
gotoAndStop(150);
delete onEnterFrame;
}
if (_root.rarity._x < -105) {
Mouse.show();
_root.screen._visible = false;
_root.controlsign.md = 0;
_global.level = 0;
gotoAndStop(100);
delete _root.onEnterFrame;
}
};
_root.startbutton.onRelease = function () {
_global.level = 10;
_root.startbutton._visible = false;
_root.controlsign.mouseCords();
Mouse.hide();
};
}
movieClip 167 {
}
frame 99 {
gotoAndStop(150);
_global.loose = 1;
}
frame 100 {
stop();
_global.loose = 0;
_root.rarity._x = 400;
_root.startbutton._visible = true;
_root.sling._visible = false;
_global.lastlevel = 11;
onEnterFrame = function () {
if (_global.loose == 1) {
_root.sling._visible = true;
gotoAndStop(150);
delete onEnterFrame;
}
if (_root.rarity._x < -105) {
_root.sling._visible = true;
_root.controlsign.md = 0;
_global.level = 0;
gotoAndStop(110);
delete _root.onEnterFrame;
}
};
_root.startbutton.onRelease = function () {
_global.level = 11;
_root.startbutton._visible = false;
_root.controlsign.mouseCords();
};
}
movieClip 170 {
frame 1 {
stop();
onEnterFrame = function () {
if (_global.loose == 0.5) {
gotoAndPlay(2);
delete onEnterFrame;
}
};
}
frame 10 {
_global.loose = 1;
}
}
frame 109 {
gotoAndStop(150);
_global.loose = 1;
}
frame 110 {
stop();
_global.loose = 0;
_root.rarity._x = 400;
_root.startbutton._visible = true;
_global.lastlevel = 12;
onEnterFrame = function () {
if (_global.loose == 1) {
gotoAndStop(150);
delete onEnterFrame;
}
if (_root.rarity._x < -105) {
_root.controlsign.md = 0;
_global.level = 0;
gotoAndStop(120);
delete _root.onEnterFrame;
}
if (_global.fake == 1 && _global.level == 12) {
_root.startbutton._visible = false;
}
};
_root.startbutton.onRelease = function () {
_global.level = 12;
_root.startbutton._visible = false;
_root.controlsign.mouseCords();
_root.rarity.timer = 0;
};
}
frame 119 {
gotoAndStop(150);
_global.loose = 1;
}
frame 120 {
stop();
_global.loose = 0;
_root.rarity._x = 400;
_root.startbutton._visible = true;
_global.lastlevel = 13;
onEnterFrame = function () {
if (_global.loose == 1) {
gotoAndStop(150);
delete onEnterFrame;
}
if (_root.rarity._x < -105) {
_root.controlsign.md = 0;
_global.level = 0;
gotoAndStop(130);
delete _root.onEnterFrame;
}
};
_root.startbutton.onRelease = function () {
_global.level = 13;
_root.startbutton._visible = false;
_root.controlsign.mouseCords();
};
}
frame 129 {
gotoAndStop(150);
_global.loose = 1;
}
frame 130 {
stop();
_global.loose = 0;
_root.rarity._x = 400;
_root.startbutton._visible = true;
_global.lastlevel = 14;
_root.rarity.gotoAndStop(1);
onEnterFrame = function () {
if (_global.loose == 1) {
gotoAndStop(150);
delete onEnterFrame;
}
if (_global.level == 14.4) {
_root.controlsign.md = 0;
_global.level = 0;
gotoAndStop(140);
delete _root.onEnterFrame;
}
};
_root.startbutton.onRelease = function () {
_global.level = 14;
_root.startbutton._visible = false;
_root.controlsign.mouseCords();
};
}
frame 139 {
gotoAndStop(150);
_global.loose = 1;
}
frame 140 {
stop();
_global.loose = 0;
_root.rarity._x = 400;
_root.startbutton._visible = true;
_global.lastlevel = 15;
onEnterFrame = function () {
if (_global.loose == 1) {
gotoAndStop(150);
delete onEnterFrame;
}
if (_root.rarity._x < -105) {
_root.controlsign.md = 0;
_global.level = 0;
gotoAndStop(154);
delete _root.onEnterFrame;
}
};
_root.startbutton.onRelease = function () {
_global.level = 15;
_root.startbutton._visible = false;
_root.controlsign.mouseCords();
};
}
frame 149 {
gotoAndStop(150);
_global.loose = 1;
}
frame 150 {
stop();
loseSound = new Sound(this);
loseSound.attachSound('how could you.mp3');
loseSound.start(0, 1);
onEnterFrame = function () {
_root.controlsign.gotoAndStop(2);
if (_global.loose == 0) {
delete onEnterFrame;
}
};
}
button 181 {
on (release) {
gotoAndStop(2);
_global.loose = 0;
_global.level = 0;
_global.timenotshot = 0;
}
}
movieClip 184 {
}
frame 153 {
gotoAndStop(150);
_global.loose = 1;
}
frame 154 {
stop();
_global.loose = 4;
winSound = new Sound(this);
winSound.attachSound('thank you.mp3');
winSound.start(0, 1);
}
button 194 {
on (release) {
gotoAndStop(2);
_global.loose = 0;
_global.level = 0;
}
}