Frame 1
var topScore = 0;
var score = 0;
var chance = 1;
Stage.showMenu = false;
Instance of Symbol 20 MovieClip in Frame 1
onClipEvent (load) {
_root.stop();
this.loadBar.stop();
}
onClipEvent (enterFrame) {
if (_root.getBytesTotal() > 0) {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_root.play();
} else {
var percentage = Math.round(10 * (_root.getBytesLoaded() / _root.getBytesTotal()));
this.loadBar.gotoAndStop(percentage);
this.percentText = percentage + "/10";
}
}
}
on (press) {
_root.getURL("http://www.SnubbyLand.com/", "_blank");
}
Instance of Symbol 20 MovieClip in Frame 2
onClipEvent (load) {
this.loadBar.gotoAndStop(10);
}
on (press) {
_root.getURL("http://www.SnubbyLand.com/", "_blank");
}
Frame 16
this._quality = "high";
Instance of Symbol 34 MovieClip "btn" in Frame 16
on (rollOver) {
this.gotoAndPlay("on");
}
on (rollOut) {
this.gotoAndPlay("off");
}
on (keyPress "l") {
_root.getURL("http://www.SnubbyLand.com/", "_BLANK");
}
on (press) {
_root.getURL("http://www.SnubbyLand.com/", "_BLANK");
}
Instance of Symbol 36 MovieClip in Frame 16
on (rollOver) {
this.gotoAndPlay("on");
}
on (rollOut) {
this.gotoAndPlay("off");
}
on (press) {
_root.nextFrame();
}
on (keyPress "s") {
_root.nextFrame();
}
on (keyPress "l") {
_root.getURL("http://www.SnubbyLand.com/", "_BLANK");
_root.btn.gotoAndPlay("off");
}
Frame 26
this.stop();
Frame 27
_root.score = 0;
this.scoreText = "Score: 0";
this.topScoreText = "Best: " + Math.floor(_root.topScore);
this.stop();
this.information.gotoAndStop(1);
this.flashA.play();
this._quality = "medium";
_root.chance = Math.floor((Math.random() * 2) + 1);
this.backgrounds.gotoAndStop(Math.floor((Math.random() * 3) + 1));
this.walls.gotoAndStop(_root.chance);
this.walls._x = -1.6;
this.walls._y = -4;
if (_root.chance == 1) {
_root.walls.point1._y = 102.7;
_root.walls.point2._y = 23;
_root.walls.point3._y = 200.7;
_root.walls.point1._x = 659.5;
_root.walls.point2._x = 1163.6;
_root.walls.point3._x = 1518.6;
}
if (_root.chance == 2) {
_root.walls.point1._y = 8.1;
_root.walls.point2._y = 132.1;
_root.walls.point3._y = 197.6;
_root.walls.point1._x = 407.1;
_root.walls.point2._x = 897.4;
_root.walls.point3._x = 1486.3;
}
_root.walls.point1.gotoAndStop(Math.round((Math.random() * 2) + 1));
_root.walls.point2.gotoAndStop(Math.round((Math.random() * 2) + 1));
_root.walls.point3.gotoAndStop(Math.round((Math.random() * 2) + 1));
Instance of Symbol 55 MovieClip "flashA" in Frame 27
onClipEvent (load) {
this.play();
}
Instance of Symbol 62 MovieClip "btn" in Frame 27
on (rollOver) {
this.gotoAndPlay("on");
}
on (rollOut) {
this.gotoAndPlay("off");
}
on (press) {
_root.getURL("http://www.SnubbyLand.com/", "_BLANK");
}
Instance of Symbol 64 MovieClip in Frame 27
on (rollOver) {
this.gotoAndPlay("on");
}
on (rollOut) {
this.gotoAndPlay("off");
}
on (press) {
_root.gotoAndPlay("backToMenu");
}
on (keyPress "m") {
_root.gotoAndPlay("backToMenu");
}
on (keyPress "s") {
_root.getURL("http://www.SnubbyLand.com/", "_BLANK");
_root.btn.gotoAndPlay("off");
}
Frame 28
this.information.play();
Instance of Symbol 85 MovieClip "player" in Frame 28
onClipEvent (load) {
function moveUp() {
this._y = this._y - (this.speed * 2);
}
function moveDown() {
this._y = this._y + this.speed;
}
function moveRight() {
this._x = this._x + this.speed;
}
function moveLeft() {
this._x = this._x - this.speed;
}
function addScore() {
_root.score = _root.score + 0.3;
}
this.gotoAndStop("fly");
var speed = 4;
var alive = true;
var wallSpeed = 4.5;
var wallSpeedIncrement = 0.006;
}
onClipEvent (enterFrame) {
if (this.alive) {
this.moveDown();
if (Key.isDown(38)) {
this.moveUp();
}
if (Key.isDown(39)) {
this.moveRight();
}
if (Key.isDown(37)) {
this.moveLeft();
}
}
if (this._x < 20) {
this.moveRight();
}
if (this._x > (Stage.width - 30)) {
this.moveLeft();
}
if (this._y < 20) {
this.moveDown();
}
_root.scoreText = "Score: " + Math.floor(_root.score);
if (_root.topScore < _root.score) {
_root.topScore = _root.score;
_root.topScoreText = "Best: " + Math.floor(_root.topScore);
}
if (this.alive) {
this.addScore();
}
_root.walls._x = _root.walls._x - this.wallSpeed;
this.wallSpeed = this.wallSpeed + this.wallSpeedIncrement;
if (_root.walls._x < -1604) {
_root.walls._x = -1;
if (_root.chance == 1) {
_root.walls.point1._y = 102.7;
_root.walls.point2._y = 23;
_root.walls.point3._y = 200.7;
_root.walls.point1._x = 659.5;
_root.walls.point2._x = 1163.6;
_root.walls.point3._x = 1518.6;
}
if (_root.chance == 2) {
_root.walls.point1._y = 8.1;
_root.walls.point2._y = 132.1;
_root.walls.point3._y = 197.6;
_root.walls.point1._x = 407.1;
_root.walls.point2._x = 897.4;
_root.walls.point3._x = 1486.3;
}
_root.walls.point1.gotoAndStop(Math.round((Math.random() * 2) + 1));
_root.walls.point2.gotoAndStop(Math.round((Math.random() * 2) + 1));
_root.walls.point3.gotoAndStop(Math.round((Math.random() * 2) + 1));
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this.alive = false;
this.gotoAndStop("die");
}
}
Symbol 34 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 5
stop();
Symbol 36 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 5
stop();
Symbol 42 MovieClip Frame 1
this.gotoAndStop(Math.round((Math.random() * 2) + 1));
Instance of Symbol 42 MovieClip "point1" in Symbol 51 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.alive)) {
_root.score = _root.score + 25;
this._y = -100;
}
}
Instance of Symbol 42 MovieClip "point2" in Symbol 51 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.alive)) {
_root.score = _root.score + 25;
this._y = -100;
}
}
Instance of Symbol 42 MovieClip "point3" in Symbol 51 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.alive)) {
_root.score = _root.score + 25;
this._y = -100;
}
}
Instance of Symbol 42 MovieClip "point2" in Symbol 51 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.alive)) {
_root.score = _root.score + 25;
this._y = -100;
}
}
Symbol 54 MovieClip Frame 1
stop();
Instance of Symbol 53 MovieClip in Symbol 54 MovieClip Frame 1
on (keyPress "<Space>") {
_root.nextFrame();
_parent.play();
}
Symbol 54 MovieClip Frame 11
stop();
Symbol 55 MovieClip Frame 8
this.stop();
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 5
stop();
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 5
stop();
Symbol 84 MovieClip Frame 21
this.stop();
_root.gotoAndStop("pause");