Frame 1
switchSound("", 5);
stop();
_quality = "MEDIUM";
Frame 2
MySO = SharedObject.getLocal("highscore");
_root.high = MySO.data.thing;
function createSound(id) {
_root.createEmptyMovieClip(id, _root.soundCount);
_root[id][id] = new Sound();
_root[id][id].attachSound(id);
_root.soundCount++;
}
function playSound(name, volume) {
_root.currentSong = name;
_root[name][name].start(0, 99999);
_root[name][name].setVolume(volume);
}
function switchSound(second, speed) {
first = _root.currentSong;
_root.music.switched = false;
_root.music.onEnterFrame = function () {
if (!_root.music.switched) {
if (_root[first][first].getVolume() > 0) {
_root[first][first].setVolume(_root[first][first].getVolume() - speed);
} else {
_root.music.switched = true;
_root[first][first].stop(first);
_root.playSound(second);
}
} else if (_root[second][second].getVolume() < 100) {
_root[second][second].setVolume(_root[second][second].getVolume() + speed);
} else {
delete _root.music.onEnterFrame;
}
};
}
_root.createEmptyMovieClip("Music", 999);
createSound("Song_1");
createSound("Song_2");
switchSound("", 5);
stop();
function rotate() {
_root.waveMC.removeMovieClip();
_root.distance = _root.distance * 0.5;
_root.rotSpeed = _root.rotSpeed * 0.5;
_root.rotTime = 0;
rotCount++;
if (rotCount > (3 + _root.level)) {
rotCount = 0;
_root.level++;
_root.myColor++;
if (myColor > 10) {
myColor = 1;
}
}
var lvl = (random(_root.level) + 1);
if (lvl == 1) {
_root.rotSpeed = random(11) - 5;
} else if (lvl == 2) {
_root.rotSpeed = 5 * (random(3) - 1);
_root.rotCount = 50;
} else if (lvl == 3) {
_root.small = true;
_root.distance = random(25) + 25;
} else if (lvl == 4) {
_root.createEmptyMovieClip("WaveMC", 100);
_root.WaveMC.top = false;
_root.WaveMC.onEnterFrame = function () {
if (!_root.WaveMC.top) {
_root.distance = _root.distance - 2;
if (_root.distance < -25) {
_root.WaveMC.top = true;
}
} else {
_root.distance = _root.distance + 4;
if (_root.distance > 100) {
_root.WaveMC.top = false;
}
}
};
} else if (lvl == 5) {
_root.rotSpeed = random(11) - 5;
_root.createEmptyMovieClip("WaveMC", 100);
_root.WaveMC.top = false;
_root.WaveMC.onEnterFrame = function () {
if (!_root.WaveMC.top) {
_root.distance = _root.distance - 2;
if (_root.distance < -25) {
_root.WaveMC.top = true;
}
} else {
_root.distance = _root.distance + 4;
if (_root.distance > 100) {
_root.WaveMC.top = false;
}
}
};
} else if (lvl >= 6) {
_root.rotSpeed = 3 * (random(3) - 1);
_root.distance = 80;
_root.rotCount = 200;
}
}
function SpawnWall() {
if (W == 60) {
W = 1;
}
_root.wallHold.attachMovie("Wall", "Wall" + W, W);
_root.wallHold["Wall" + W].myPrev = W - 1;
_root.wallHold["Wall" + W].mine = W;
_root.wallHold2.attachMovie("Wall", "Wall" + W, W);
_root.wallHold2["Wall" + W].big = true;
if (_root.wallHold["Wall" + W].myPrev == 0) {
_root.wallHold["Wall" + W].myPrev = 59;
}
W++;
}
Frame 3
switchSound("Song_1", 5);
stop();
Frame 4
switchSound("Song_2", 2);
stop();
_root.Speed = 23;
_root.myColor = 1;
_root.dead = false;
_root.deadTime = 0;
_root.time = 0;
_root.wallHold._rotation = 0;
_root.rotCount = 0;
_root.rotSpeed = 0;
_root.distance = 0;
_root.level = 1;
W = 1;
Mouse.hide();
onEnterFrame = function () {
if (!_root.dead) {
_root.time = _root.time + _root.level;
spawnWall();
rotTime++;
if (rotTime > (random(100) + 50)) {
rotate();
}
if (_root.rotSpeedC < _root.rotSpeed) {
_root.rotSpeedC = _root.rotSpeedC + 0.5;
} else if (_root.rotSpeedC > _root.rotSpeed) {
_root.rotSpeedC = _root.rotSpeedC - 0.5;
}
_root.wallHold._rotation = _root.wallHold._rotation + _root.rotSpeedC;
_root.wallHold2._rotation = _root.wallHold._rotation;
}
};
div = 2;
WallHold.onEnterFrame = function () {
if (!_root.dead) {
var i = 0;
while (i < div) {
var i2 = 1;
while (i2 < 60) {
wallHold["Wall" + i2]._x = wallHold["Wall" + i2]._x - (_root.Speed / div);
wallHold2["Wall" + i2]._x = wallHold2["Wall" + i2]._x - (_root.Speed / div);
if (_root.WallHold.hitTest(_root.Hero._x, _root.Hero._y, true)) {
_root.dead = true;
_root.Hero.play();
Mouse.show();
}
i2++;
}
i++;
}
}
};
Frame 5
if ((_root.time > _root.high) or (_root.high == undefined)) {
_root.high = _root.time;
MySO.data.thing = _root.high;
}
switchSound("Song_1", 8);
stop();
dead = true;
Symbol 5 MovieClip [Ball_Trail] Frame 1
speed = random(5) + 10;
scale = random(2) + 3;
_x = _root.Hero._x;
_y = _root.Hero._y;
_x = (_x + (random(11) - 5));
_y = (_y + (random(11) - 5));
_xscale = 50;
_yscale = _xscale;
onEnterFrame = function () {
if (!_root.dead) {
x = Math.sin((_root.WallHold._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((_root.WallHold._rotation - 90) * (Math.PI/180)) * speed) * -1;
_x = (_x + x);
_y = (_y + y);
}
_xscale = (_xscale - scale);
_yscale = _xscale;
if (_xscale < 0) {
this.removeMovieClip();
}
};
Symbol 5 MovieClip [Ball_Trail] Frame 25
stop();
Symbol 17 MovieClip Frame 1
if (_parent.big) {
gotoAndStop (11);
} else {
gotoAndStop(_root.myColor);
}
Symbol 18 MovieClip [Wall] Frame 1
if (!big) {
_x = 425;
_y = ((_root.WallHold["Wall" + myPrev]._y + random(26)) - 12.5);
_root.WallHold2["Wall" + mine]._y = _y;
if (_y < -150) {
_y = -150;
} else if (_y > 150) {
_y = 150;
}
piece1._y = piece1._y + (_root.distance / 2);
piece2._y = piece2._y - (_root.distance / 2);
onEnterFrame = function () {
if (!_root.dead) {
if (_x < -400) {
this.removeMovieClip();
}
}
};
} else {
piece1._y = piece1._y + (_root.distance / 2);
piece2._y = piece2._y - (_root.distance / 2);
_x = 425;
onEnterFrame = function () {
if (!_root.dead) {
if (_x < -400) {
this.removeMovieClip();
}
}
};
}
Symbol 20 MovieClip [explosion] Frame 1
_xscale = 1;
_yscale = _xscale;
_x = (_x + (random(26) - 12.5));
_y = (_y + (random(26) - 12.5));
speed = random(30) + 10;
onEnterFrame = function () {
_xscale = (_xscale + speed);
_yscale = _xscale;
if (speed > 0) {
speed = speed - 1;
}
time++;
if (time > 25) {
_alpha = (_alpha - 10);
if (_alpha < 0) {
this.removeMovieClip();
}
}
};
Symbol 23 MovieClip [Load_Loading] Frame 1
_xscale = 120;
_yscale = _xscale;
x = _x;
y = _y;
onEnterFrame = function () {
_x = x;
_y = y;
_x = (_x + (random(2) - 0.5));
_y = (_y + (random(2) - 0.5));
if (this.top) {
this._alpha = this._alpha - 2;
}
if (!this.top) {
this._alpha = this._alpha + 2;
}
if (this._alpha >= 100) {
this.top = true;
}
if (this._alpha <= 0) {
this.top = false;
}
};
Symbol 33 Button
on (release) {
getURL ("http://www.gamesofgondor.com", "_blank");
}
Symbol 35 MovieClip Frame 1
_alpha = 0;
x = _x;
y = _y;
onEnterFrame = function () {
a = Math.round(_parent.percent) + " %";
_x = x;
_y = y;
_x = (_x + (random(2) - 0.5));
_y = (_y + (random(2) - 0.5));
_xscale = 120;
_yscale = _xscale;
if (this.top) {
this._alpha = this._alpha - 2;
}
if (!this.top) {
this._alpha = this._alpha + 2;
}
if (this._alpha >= 100) {
this.top = true;
}
if (this._alpha <= 0) {
this.top = false;
}
};
Symbol 42 Button
on (release) {
_root.play();
}
Symbol 43 MovieClip Frame 1
stop();
onEnterFrame = function () {
var total = _root.getBytesTotal();
var current = _root.getBytesLoaded();
percent = (current / total) * 100;
if (percent >= 99) {
gotoAndStop (2);
}
};
Symbol 61 MovieClip Frame 1
gotoAndPlay (2);
Symbol 61 MovieClip Frame 177
stop();
_root.play();
Symbol 63 Button
on (release) {
play();
}
Symbol 68 Button
on (release) {
getURL ("http://www.vgmusic.com", "_blank");
}
Symbol 69 Button
on (release) {
getURL ("http://www.freewebs.com/syruplord/home.htm", "_blank");
}
Symbol 71 Button
on (release) {
_root.high = 0;
MySO.data.thing = _root.high;
}
Symbol 73 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (_root.wallHold._rotation + 90);
};
Symbol 84 MovieClip Frame 1
_name = "Hero";
stop();
onEnterFrame = function () {
if (!_root.dead) {
_rotation = (_root.WallHold._rotation + 90);
_x = _root._xmouse;
_y = _root._ymouse;
trail();
}
};
function trail() {
_root.TrailHold.attachMovie("Ball_Trail", "T" + t, t);
t++;
}
Symbol 84 MovieClip Frame 2
stop();
onEnterFrame = function () {
if (Ec < 20) {
attachMovie("Explosion", "E" + Ec, Ec);
}
Ec++;
if (Ec > 70) {
_root.gotoAndPlay("dead");
}
};
Symbol 90 Button
on (release) {
gotoAndPlay (4);
}