Frame 1 (204 B)
function doSomething() {
}
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("No right click!", doSomething);
MENU.customItems.push(Functioned);
_root.menu = MENU;
Frame 2 (407 B)
Count = 0;
CoinS = new Sound();
CoinS.attachSound("CoinSound");
Music = new Sound();
Music.attachSound("8bitMusic1");
CountS = new Sound();
CountS.attachSound("CounterChanged");
Explosion = new Sound();
Explosion.attachSound("Explosion");
Loose = new Sound();
Loose.attachSound("Loose");
Won = new Sound();
Won.attachSound("Won");
Rickroll = new Sound();
Rickroll.attachSound("8bitrickroll");
Frame 3 (8 B)
stop();
Instance of Symbol 27 MovieClip in Frame 3 (113 B)
onClipEvent (enterFrame) {
_root.Count++;
if (_root.Count == 50) {
_root.Count = 0;
_root.nextFrame();
}
}
Frame 4 (8 B)
stop();
Instance of Symbol 29 MovieClip in Frame 4 (66 B)
on (release) {
getURL ("http://www.wackiegames.com", "_blank");
}
Frame 5 (128 B)
stop();
Score = 0;
_root.Counter = 0;
_root.Started = 0;
_root.Done = 0;
_root.CalculateDistance = 0;
_root.WinLoose = 0;
Instance of Symbol 24 MovieClip [Coin] "Coin" in Frame 5 (529 B)
on (press) {
startDrag (this);
}
on (release) {
stopDrag();
}
onClipEvent (enterFrame) {
if ((this._x < 200) and (this._y < 200)) {
this._y = 210;
stopDrag();
}
if ((this._x < 200) and (this._y > 220)) {
this._y = 210;
stopDrag();
}
if (this.hitTest(_root.HitBox)) {
this.unloadMovie();
_root.CoinS.start();
_root.Text.gotoAndPlay("Fast");
_root.Start = 1;
}
if (_root.Start == 1) {
_root.Count++;
}
if (_root.Count == 40) {
_root.Count = 0;
_root.Start = 0;
_root.nextFrame();
}
}
Frame 6 (8 B)
stop();
Instance of Symbol 24 MovieClip [Coin] "Coin" in Frame 6 (308 B)
onClipEvent (enterFrame) {
if (Key.isDown(13) and (_root.Start == 0)) {
this.unloadMovie();
_root.CoinS.start();
_root.Text.gotoAndPlay("Fast");
_root.Start = 1;
}
if (_root.Start == 1) {
_root.Count++;
}
if (_root.Count == 40) {
_root.Count = 0;
_root.Start = 0;
_root.nextFrame();
}
}
Instance of Symbol 41 MovieClip in Frame 6 (81 B)
on (release) {
getURL ("http://www.rtgkom.dk/~jesperae08/font.ttf", "_blank");
}
Frame 7 (89 B)
stop();
_root.Level_Goal = 50;
_root.Counter = 0;
_root.Started = 0;
_root.Done = 0;
Instance of Symbol 24 MovieClip [Coin] "Coin" in Frame 7 (243 B)
onClipEvent (load) {
_root.CoinS.start();
_root.Start = 1;
_root.Count = 0;
}
onClipEvent (enterFrame) {
if (_root.Start == 1) {
_root.Count++;
}
if (_root.Count == 100) {
_root.Count = 0;
_root.Start = 0;
_root.nextFrame();
}
}
Frame 8 (8 B)
stop();
Instance of Symbol 48 MovieClip in Frame 8 (2.58 KiB) ●
onClipEvent (load) {
_root.Counter = 0;
_root.Started = 0;
_root.Done = 0;
_root.StatusText = " ";
}
onClipEvent (enterFrame) {
_root.Font1 = _root.Counter;
_root.Font2 = _root.Status;
_root.Font3 = _root.Score;
_root.Font4 = _root.StatusText;
_root.Count++;
if (((_root.Count == 120) and (_root.Started == 0)) and (_root.Done == 0)) {
_root.Started = 1;
_root.Status = "Go!";
_root.Done = 0;
}
if ((_root.Count == 40) and (_root.Done == 0)) {
_root.Status = "Set...";
}
if ((_root.Started == 1) and (_root.Done == 0)) {
_root.Counter++;
_root.CountS.start();
}
if (Key.isDown(13) and (_root.Started == 1)) {
_root.Started = 0;
_root.Done = 1;
_root.Explosion.start();
_root.Count = 0;
}
if (((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter > (_root.Level_Goal + 10))) {
_root.StatusText = "Too much";
_root.Loose.start();
_root.WinLoose = -1;
}
if (((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter < (_root.Level_Goal - 10))) {
_root.StatusText = "Too little";
_root.Loose.start();
_root.WinLoose = -1;
}
if ((((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter > (_root.Level_Goal - 11))) and (_root.Counter < (_root.Level_Goal + 11))) {
_root.StatusText = "Epic win!";
_root.Won.start();
_root.WinLoose = 1;
_root.CalculateDistance = 1;
_root.Score = _root.Score + 250;
}
if ((_root.Count == 120) and (_root.WinLoose == 1)) {
_root.nextFrame();
}
if ((_root.Count == 120) and (_root.WinLoose == -1)) {
_root.StatusText = "Try again!";
_root.Status = " ";
}
if ((_root.Count == 160) and (_root.WinLoose == -1)) {
_root.Started = 0;
_root.Done = 0;
_root.Count = 0;
_root.Counter = 0;
_root.Score = _root.Score - 250;
_root.WinLoose = 0;
_root.StatusText = " ";
}
if (((_root.Count == 80) and (_root.CalculateDistance == 1)) and (_root.Counter > _root.Level_Goal)) {
_root.StatusText = "Next Level!";
_root.ScoreAdd = _root.Counter - _root.Level_Goal;
_root.Score = _root.Score - (_root.ScoreAdd * 5);
_root.ScoreAdd = 0;
_root.Done = 0;
}
if (((_root.Count == 80) and (_root.CalculateDistance == 1)) and (_root.Counter < _root.Level_Goal)) {
_root.StatusText = "Next Level!";
_root.ScoreAdd = _root.Level_Goal - _root.Counter;
_root.Score = _root.Score - (_root.ScoreAdd * 5);
_root.ScoreAdd = 0;
_root.Done = 0;
}
if (((_root.Count == 80) and (_root.CalculateDistance == 1)) and (_root.Counter == _root.Level_Goal)) {
_root.StatusText = "PRECISE!";
_root.ScoreAdd = 1000;
_root.Score = _root.Score + _root.ScoreAdd;
_root.ScoreAdd = 0;
_root.Done = 0;
}
}
Instance of Symbol 57 MovieClip in Frame 8 (75 B)
onClipEvent (enterFrame) {
if (Key.isDown(17)) {
_root.prevFrame();
}
}
Frame 9 (140 B)
stop();
_root.Level_Goal = 80;
_root.Counter = 0;
_root.Started = 0;
_root.Done = 0;
_root.CalculateDistance = 0;
_root.WinLoose = 0;
Instance of Symbol 24 MovieClip [Coin] "Coin" in Frame 9 (243 B)
onClipEvent (load) {
_root.CoinS.start();
_root.Start = 1;
_root.Count = 0;
}
onClipEvent (enterFrame) {
if (_root.Start == 1) {
_root.Count++;
}
if (_root.Count == 100) {
_root.Count = 0;
_root.Start = 0;
_root.nextFrame();
}
}
Frame 10 (8 B)
stop();
Instance of Symbol 48 MovieClip in Frame 10 (2.6 KiB) ●
onClipEvent (load) {
_root.Counter = 0;
_root.Started = 0;
_root.Done = 0;
_root.StatusText = " ";
_root.WinLoose = 0;
}
onClipEvent (enterFrame) {
_root.Font1 = _root.Counter;
_root.Font2 = _root.Status;
_root.Font3 = _root.Score;
_root.Font4 = _root.StatusText;
_root.Count++;
if (((_root.Count == 120) and (_root.Started == 0)) and (_root.Done == 0)) {
_root.Started = 1;
_root.Status = "Go!";
_root.Done = 0;
}
if ((_root.Count == 40) and (_root.Done == 0)) {
_root.Status = "Set...";
}
if ((_root.Started == 1) and (_root.Done == 0)) {
_root.Counter++;
_root.CountS.start();
}
if (Key.isDown(13) and (_root.Started == 1)) {
_root.Started = 0;
_root.Done = 1;
_root.Explosion.start();
_root.Count = 0;
}
if (((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter > (_root.Level_Goal + 10))) {
_root.StatusText = "Too much";
_root.Loose.start();
_root.WinLoose = -1;
}
if (((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter < (_root.Level_Goal - 10))) {
_root.StatusText = "Too little";
_root.Loose.start();
_root.WinLoose = -1;
}
if ((((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter > (_root.Level_Goal - 11))) and (_root.Counter < (_root.Level_Goal + 11))) {
_root.StatusText = "Epic win!";
_root.Won.start();
_root.WinLoose = 1;
_root.CalculateDistance = 1;
_root.Score = _root.Score + 250;
}
if ((_root.Count == 120) and (_root.WinLoose == 1)) {
_root.nextFrame();
}
if ((_root.Count == 120) and (_root.WinLoose == -1)) {
_root.StatusText = "Try again!";
_root.Status = " ";
}
if ((_root.Count == 160) and (_root.WinLoose == -1)) {
_root.Started = 0;
_root.Done = 0;
_root.Count = 0;
_root.Counter = 0;
_root.Score = _root.Score - 250;
_root.WinLoose = 0;
_root.StatusText = " ";
}
if (((_root.Count == 80) and (_root.CalculateDistance == 1)) and (_root.Counter > _root.Level_Goal)) {
_root.StatusText = "Next Level!";
_root.ScoreAdd = _root.Counter - _root.Level_Goal;
_root.Score = _root.Score - (_root.ScoreAdd * 5);
_root.ScoreAdd = 0;
_root.Done = 0;
}
if (((_root.Count == 80) and (_root.CalculateDistance == 1)) and (_root.Counter < _root.Level_Goal)) {
_root.StatusText = "Next Level!";
_root.ScoreAdd = _root.Level_Goal - _root.Counter;
_root.Score = _root.Score - (_root.ScoreAdd * 5);
_root.ScoreAdd = 0;
_root.Done = 0;
}
if (((_root.Count == 80) and (_root.CalculateDistance == 1)) and (_root.Counter == _root.Level_Goal)) {
_root.StatusText = "PRECISE!";
_root.ScoreAdd = 1000;
_root.Score = _root.Score + _root.ScoreAdd;
_root.ScoreAdd = 0;
_root.Done = 0;
}
}
Instance of Symbol 57 MovieClip in Frame 10 (75 B)
onClipEvent (enterFrame) {
if (Key.isDown(17)) {
_root.prevFrame();
}
}
Frame 11 (187 B)
stop();
_root.Level_Goal = 100;
_root.Level_Goal2 = 50;
_root.Counter = 0;
_root.Counter2 = 0;
_root.Started = 0;
_root.Done = 0;
_root.CalculateDistance = 0;
_root.WinLoose = 0;
Instance of Symbol 24 MovieClip [Coin] "Coin" in Frame 11 (243 B)
onClipEvent (load) {
_root.CoinS.start();
_root.Start = 1;
_root.Count = 0;
}
onClipEvent (enterFrame) {
if (_root.Start == 1) {
_root.Count++;
}
if (_root.Count == 100) {
_root.Count = 0;
_root.Start = 0;
_root.nextFrame();
}
}
Frame 12 (8 B)
stop();
Instance of Symbol 48 MovieClip in Frame 12 (4.64 KiB) ●
onClipEvent (load) {
_root.Counter = 0;
_root.Started = 0;
_root.Done = 0;
_root.StatusText = " ";
}
onClipEvent (enterFrame) {
_root.Font1 = _root.Counter;
_root.Font2 = _root.Status;
_root.Font3 = _root.Score;
_root.Font4 = _root.StatusText;
_root.Count++;
if (((_root.Count == 120) and (_root.Started == 0)) and (_root.Done == 0)) {
_root.Started = 1;
_root.Status = "Go!";
_root.Done = 0;
}
if ((_root.Count == 40) and (_root.Done == 0)) {
_root.Status = "Set...";
}
if ((_root.Started == 1) and (_root.Done == 0)) {
_root.Counter++;
_root.CountS.start();
}
if ((_root.Started == 2) and (_root.Done == 0)) {
_root.Counter2++;
_root.CountS.start();
}
if (Key.isDown(13) and (_root.Started == 1)) {
_root.Started = 2;
_root.Done = 0;
_root.Explosion.start();
_root.Count = 0;
}
if ((Key.isDown(13) and (_root.Started == 2)) and (_root.Count > 5)) {
_root.Started = 0;
_root.Done = 1;
_root.Explosion.start();
_root.Count = 0;
}
if (((((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter > (_root.Level_Goal - 11))) and (_root.Counter < (_root.Level_Goal + 11))) and (_root.Counter2 > (_root.Level_Goal2 + 10))) {
_root.StatusText = "Almost";
_root.Loose.start();
_root.WinLoose = -1;
}
if (((((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter > (_root.Level_Goal - 11))) and (_root.Counter < (_root.Level_Goal + 11))) and (_root.Counter2 < (_root.Level_Goal2 - 10))) {
_root.StatusText = "Almost";
_root.Loose.start();
_root.WinLoose = -1;
}
if (((((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter > (_root.Level_Goal + 10))) and (_root.Counter2 > (_root.Level_Goal2 - 11))) and (_root.Counter2 < (_root.Level_Goal2 + 11))) {
_root.StatusText = "Almost";
_root.Loose.start();
_root.WinLoose = -1;
}
if (((((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter < (_root.Level_Goal - 10))) and (_root.Counter2 > (_root.Level_Goal2 - 11))) and (_root.Counter2 < (_root.Level_Goal2 + 11))) {
_root.StatusText = "Almost";
_root.Loose.start();
_root.WinLoose = -1;
}
if ((((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter > (_root.Level_Goal + 10))) and (_root.Counter2 > (_root.Level_Goal2 + 10))) {
_root.StatusText = "Too much";
_root.Loose.start();
_root.WinLoose = -1;
}
if ((((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter < (_root.Level_Goal - 10))) and (_root.Counter2 < (_root.Level_Goal2 - 10))) {
_root.StatusText = "Too little";
_root.Loose.start();
_root.WinLoose = -1;
}
if ((((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter < (_root.Level_Goal - 10))) and (_root.Counter2 > (_root.Level_Goal2 + 10))) {
_root.StatusText = "Too little and too much";
_root.Loose.start();
_root.WinLoose = -1;
}
if ((((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter > (_root.Level_Goal + 10))) and (_root.Counter2 < (_root.Level_Goal2 - 10))) {
_root.StatusText = "Too much and too little";
_root.Loose.start();
_root.WinLoose = -1;
}
if ((((((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter > (_root.Level_Goal - 11))) and (_root.Counter < (_root.Level_Goal + 11))) and (_root.Counter2 > (_root.Level_Goal2 - 11))) and (_root.Counter2 < (_root.Level_Goal2 + 11))) {
_root.StatusText = "Epic win!";
_root.Won.start();
_root.WinLoose = 1;
_root.Score = _root.Score + 250;
}
if ((_root.Count == 120) and (_root.WinLoose == 1)) {
_root.nextFrame();
}
if ((_root.Count == 120) and (_root.WinLoose == -1)) {
_root.StatusText = "Try again!";
_root.Status = " ";
}
if ((_root.Count == 160) and (_root.WinLoose == -1)) {
_root.Started = 0;
_root.Done = 0;
_root.Count = 0;
_root.Counter = 0;
_root.Counter2 = 0;
_root.Score = _root.Score - 250;
_root.WinLoose = 0;
_root.StatusText = " ";
}
if (((_root.Count == 80) and (_root.CalculateDistance == 1)) and (_root.Counter > _root.Level_Goal)) {
_root.StatusText = "Next Level!";
_root.ScoreAdd = _root.Counter - _root.Level_Goal;
_root.Score = _root.Score + (_root.ScoreAdd * 2);
_root.ScoreAdd = 0;
_root.Done = 0;
}
if (((_root.Count == 80) and (_root.CalculateDistance == 1)) and (_root.Counter < _root.Level_Goal)) {
_root.StatusText = "Next Level!";
_root.ScoreAdd = _root.Level_Goal - _root.Counter;
_root.Score = _root.Score + (_root.ScoreAdd * 2);
_root.ScoreAdd = 0;
_root.Done = 0;
}
if (((_root.Count == 80) and (_root.CalculateDistance == 1)) and (_root.Counter == _root.Level_Goal)) {
_root.StatusText = "Next Level!";
_root.ScoreAdd = 1000;
_root.Score = _root.Score + _root.ScoreAdd;
_root.ScoreAdd = 0;
_root.Done = 0;
}
}
Instance of Symbol 57 MovieClip in Frame 12 (75 B)
onClipEvent (enterFrame) {
if (Key.isDown(17)) {
_root.prevFrame();
}
}
Frame 13 (186 B)
stop();
_root.Level_Goal = 20;
_root.Level_Goal2 = 25;
_root.Counter = 0;
_root.Counter2 = 0;
_root.Started = 0;
_root.Done = 0;
_root.CalculateDistance = 0;
_root.WinLoose = 0;
Instance of Symbol 24 MovieClip [Coin] "Coin" in Frame 13 (243 B)
onClipEvent (load) {
_root.CoinS.start();
_root.Start = 1;
_root.Count = 0;
}
onClipEvent (enterFrame) {
if (_root.Start == 1) {
_root.Count++;
}
if (_root.Count == 100) {
_root.Count = 0;
_root.Start = 0;
_root.nextFrame();
}
}
Frame 14 (8 B)
stop();
Instance of Symbol 48 MovieClip in Frame 14 (4.64 KiB) ●
onClipEvent (load) {
_root.Counter = 0;
_root.Started = 0;
_root.Done = 0;
_root.StatusText = " ";
}
onClipEvent (enterFrame) {
_root.Font1 = _root.Counter;
_root.Font2 = _root.Status;
_root.Font3 = _root.Score;
_root.Font4 = _root.StatusText;
_root.Count++;
if (((_root.Count == 120) and (_root.Started == 0)) and (_root.Done == 0)) {
_root.Started = 1;
_root.Status = "Go!";
_root.Done = 0;
}
if ((_root.Count == 40) and (_root.Done == 0)) {
_root.Status = "Set...";
}
if ((_root.Started == 1) and (_root.Done == 0)) {
_root.Counter++;
_root.CountS.start();
}
if ((_root.Started == 2) and (_root.Done == 0)) {
_root.Counter2++;
_root.CountS.start();
}
if (Key.isDown(13) and (_root.Started == 1)) {
_root.Started = 2;
_root.Done = 0;
_root.Explosion.start();
_root.Count = 0;
}
if ((Key.isDown(13) and (_root.Started == 2)) and (_root.Count > 5)) {
_root.Started = 0;
_root.Done = 1;
_root.Explosion.start();
_root.Count = 0;
}
if (((((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter > (_root.Level_Goal - 11))) and (_root.Counter < (_root.Level_Goal + 11))) and (_root.Counter2 > (_root.Level_Goal2 + 10))) {
_root.StatusText = "Almost";
_root.Loose.start();
_root.WinLoose = -1;
}
if (((((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter > (_root.Level_Goal - 11))) and (_root.Counter < (_root.Level_Goal + 11))) and (_root.Counter2 < (_root.Level_Goal2 - 10))) {
_root.StatusText = "Almost";
_root.Loose.start();
_root.WinLoose = -1;
}
if (((((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter > (_root.Level_Goal + 10))) and (_root.Counter2 > (_root.Level_Goal2 - 11))) and (_root.Counter2 < (_root.Level_Goal2 + 11))) {
_root.StatusText = "Almost";
_root.Loose.start();
_root.WinLoose = -1;
}
if (((((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter < (_root.Level_Goal - 10))) and (_root.Counter2 > (_root.Level_Goal2 - 11))) and (_root.Counter2 < (_root.Level_Goal2 + 11))) {
_root.StatusText = "Almost";
_root.Loose.start();
_root.WinLoose = -1;
}
if ((((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter > (_root.Level_Goal + 10))) and (_root.Counter2 > (_root.Level_Goal2 + 10))) {
_root.StatusText = "Too much";
_root.Loose.start();
_root.WinLoose = -1;
}
if ((((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter < (_root.Level_Goal - 10))) and (_root.Counter2 < (_root.Level_Goal2 - 10))) {
_root.StatusText = "Too little";
_root.Loose.start();
_root.WinLoose = -1;
}
if ((((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter < (_root.Level_Goal - 10))) and (_root.Counter2 > (_root.Level_Goal2 + 10))) {
_root.StatusText = "Too little and too much";
_root.Loose.start();
_root.WinLoose = -1;
}
if ((((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter > (_root.Level_Goal + 10))) and (_root.Counter2 < (_root.Level_Goal2 - 10))) {
_root.StatusText = "Too much and too little";
_root.Loose.start();
_root.WinLoose = -1;
}
if ((((((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter > (_root.Level_Goal - 11))) and (_root.Counter < (_root.Level_Goal + 11))) and (_root.Counter2 > (_root.Level_Goal2 - 11))) and (_root.Counter2 < (_root.Level_Goal2 + 11))) {
_root.StatusText = "Epic win!";
_root.Won.start();
_root.WinLoose = 1;
_root.Score = _root.Score + 250;
}
if ((_root.Count == 120) and (_root.WinLoose == 1)) {
_root.nextFrame();
}
if ((_root.Count == 120) and (_root.WinLoose == -1)) {
_root.StatusText = "Try again!";
_root.Status = " ";
}
if ((_root.Count == 160) and (_root.WinLoose == -1)) {
_root.Started = 0;
_root.Done = 0;
_root.Count = 0;
_root.Counter = 0;
_root.Counter2 = 0;
_root.Score = _root.Score - 250;
_root.WinLoose = 0;
_root.StatusText = " ";
}
if (((_root.Count == 80) and (_root.CalculateDistance == 1)) and (_root.Counter > _root.Level_Goal)) {
_root.StatusText = "Next Level!";
_root.ScoreAdd = _root.Counter - _root.Level_Goal;
_root.Score = _root.Score + (_root.ScoreAdd * 2);
_root.ScoreAdd = 0;
_root.Done = 0;
}
if (((_root.Count == 80) and (_root.CalculateDistance == 1)) and (_root.Counter < _root.Level_Goal)) {
_root.StatusText = "Next Level!";
_root.ScoreAdd = _root.Level_Goal - _root.Counter;
_root.Score = _root.Score + (_root.ScoreAdd * 2);
_root.ScoreAdd = 0;
_root.Done = 0;
}
if (((_root.Count == 80) and (_root.CalculateDistance == 1)) and (_root.Counter == _root.Level_Goal)) {
_root.StatusText = "Next Level!";
_root.ScoreAdd = 1000;
_root.Score = _root.Score + _root.ScoreAdd;
_root.ScoreAdd = 0;
_root.Done = 0;
}
}
Instance of Symbol 57 MovieClip in Frame 14 (75 B)
onClipEvent (enterFrame) {
if (Key.isDown(17)) {
_root.prevFrame();
}
}
Frame 15 (141 B)
stop();
_root.Level_Goal = 150;
_root.Counter = 0;
_root.Started = 0;
_root.Done = 0;
_root.CalculateDistance = 0;
_root.WinLoose = 0;
Instance of Symbol 81 MovieClip in Frame 15 (243 B)
onClipEvent (load) {
_root.CoinS.start();
_root.Start = 1;
_root.Count = 0;
}
onClipEvent (enterFrame) {
if (_root.Start == 1) {
_root.Count++;
}
if (_root.Count == 100) {
_root.Count = 0;
_root.Start = 0;
_root.nextFrame();
}
}
Frame 16 (8 B)
stop();
Instance of Symbol 48 MovieClip in Frame 16 (2.63 KiB) ●
onClipEvent (load) {
_root.Counter = 0;
_root.Started = 0;
_root.Done = 0;
_root.StatusText = " ";
_root.WinLoose = 0;
}
onClipEvent (enterFrame) {
_root.Font1 = _root.Counter;
_root.Font2 = _root.Status;
_root.Font3 = _root.Score;
_root.Font4 = _root.StatusText;
_root.Count++;
if (((_root.Count == 120) and (_root.Started == 0)) and (_root.Done == 0)) {
_root.Started = 1;
_root.Status = "Go!";
_root.Done = 0;
}
if ((_root.Count == 40) and (_root.Done == 0)) {
_root.Status = "Set...";
}
if ((_root.Started == 1) and (_root.Done == 0)) {
_root.Counter++;
_root.CountS.start();
}
if (Key.isDown(13) and (_root.Started == 1)) {
_root.Started = 0;
_root.Done = 1;
_root.Explosion.start();
_root.Count = 0;
_root.Hand.gotoAndPlay(166);
}
if (((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter > (_root.Level_Goal + 10))) {
_root.StatusText = "Too much";
_root.Loose.start();
_root.WinLoose = -1;
}
if (((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter < (_root.Level_Goal - 10))) {
_root.StatusText = "Too little";
_root.Loose.start();
_root.WinLoose = -1;
}
if ((((_root.Count == 40) and (_root.Done == 1)) and (_root.Counter > (_root.Level_Goal - 11))) and (_root.Counter < (_root.Level_Goal + 11))) {
_root.StatusText = "Epic win!";
_root.Won.start();
_root.WinLoose = 1;
_root.CalculateDistance = 1;
_root.Score = _root.Score + 250;
}
if ((_root.Count == 120) and (_root.WinLoose == 1)) {
_root.nextFrame();
}
if ((_root.Count == 120) and (_root.WinLoose == -1)) {
_root.StatusText = "Try again!";
_root.Status = " ";
}
if ((_root.Count == 160) and (_root.WinLoose == -1)) {
_root.Started = 0;
_root.Done = 0;
_root.Count = 0;
_root.Counter = 0;
_root.Score = _root.Score - 250;
_root.WinLoose = 0;
_root.StatusText = " ";
}
if (((_root.Count == 80) and (_root.CalculateDistance == 1)) and (_root.Counter > _root.Level_Goal)) {
_root.StatusText = "Next Level!";
_root.ScoreAdd = _root.Counter - _root.Level_Goal;
_root.Score = _root.Score - (_root.ScoreAdd * 5);
_root.ScoreAdd = 0;
_root.Done = 0;
}
if (((_root.Count == 80) and (_root.CalculateDistance == 1)) and (_root.Counter < _root.Level_Goal)) {
_root.StatusText = "Next Level!";
_root.ScoreAdd = _root.Level_Goal - _root.Counter;
_root.Score = _root.Score - (_root.ScoreAdd * 5);
_root.ScoreAdd = 0;
_root.Done = 0;
}
if (((_root.Count == 80) and (_root.CalculateDistance == 1)) and (_root.Counter == _root.Level_Goal)) {
_root.StatusText = "PRECISE!";
_root.ScoreAdd = 1000;
_root.Score = _root.Score + _root.ScoreAdd;
_root.ScoreAdd = 0;
_root.Done = 0;
}
}
Instance of Symbol 57 MovieClip in Frame 16 (75 B)
onClipEvent (enterFrame) {
if (Key.isDown(17)) {
_root.prevFrame();
}
}
Frame 17 (141 B)
stop();
_root.Level_Goal = 150;
_root.Counter = 0;
_root.Started = 0;
_root.Done = 0;
_root.CalculateDistance = 0;
_root.WinLoose = 0;
Instance of Symbol 24 MovieClip [Coin] "Coin" in Frame 17 (243 B)
onClipEvent (load) {
_root.CoinS.start();
_root.Start = 1;
_root.Count = 0;
}
onClipEvent (enterFrame) {
if (_root.Start == 1) {
_root.Count++;
}
if (_root.Count == 100) {
_root.Count = 0;
_root.Start = 0;
_root.nextFrame();
}
}
Frame 18 (54 B)
stop();
_root.Music.stop();
_root.Rickroll.start();
Instance of Symbol 148 MovieClip in Frame 18 (54 B)
onClipEvent (enterFrame) {
this._y = this._y - 0.5;
}
Instance of Symbol 152 MovieClip in Frame 18 (63 B)
on (release) {
_root.Rickroll.stop();
_root.gotoAndPlay(5);
}
Symbol 22 MovieClip Frame 1 (1.53 KiB) ●
function timerHandler() {
if (!loadingComplete) {
var _local4 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * _local4;
if (_local4 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop ("loaded");
}
return(undefined);
}
}
dt = getTimer() - time;
time = time + dt;
frameAccum = frameAccum + dt;
var _local3 = 0;
while ((frameAccum >= FRAME_TIME) && (_local3 < MAX_FRAME_SKIP)) {
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(this, false, false);
}
(frameAccum = frameAccum - FRAME_TIME);
_local3++;
}
updateAfterEvent();
}
function advanceFrame(clip, recurse, loop) {
if (!clip) {
return(undefined);
}
clip.stop();
if (clip._currentframe == clip._totalframes) {
if (loop) {
clip.gotoAndStop(1);
}
} else {
clip.nextFrame();
}
if (recurse) {
for (childName in clip) {
if (typeof(clip[childName]) == "movieclip") {
advanceFrame(clip[childName], recurse, loop);
}
}
}
}
function startMovie() {
clearInterval(intervalId);
_root.play();
}
_root.stop();
stop();
var FRAME_TIME = 33.3333333333333;
var AUTO_PLAY = false;
var MAX_FRAME_SKIP = 5;
var loadingComplete;
var intervalId;
var time;
var frameAccum;
loadingComplete = false;
intervalId = setInterval(this, "timerHandler", FRAME_TIME / 2);
frameAccum = 0;
time = getTimer();
timerHandler();
Symbol 22 MovieClip Frame 37 (14 B)
startMovie();
Symbol 32 MovieClip Frame 40 (17 B)
gotoAndPlay (1);
Symbol 32 MovieClip Frame 58 (18 B)
gotoAndPlay (41);
Symbol 39 MovieClip Frame 40 (17 B)
gotoAndPlay (1);
Symbol 39 MovieClip Frame 60 (18 B)
gotoAndPlay (41);
Symbol 89 MovieClip Frame 165 (8 B)
stop();