Frame 2
stop();
loader.stop();
this.onEnterFrame = function () {
percent = getBytesLoaded() / getBytesTotal();
frameNum = Math.ceil(percent * 22);
loader.gotoAndStop(frameNum);
if (getBytesLoaded() == getBytesTotal()) {
this.gotoAndPlay("initialize");
delete this.onEnterFrame;
}
};
Frame 9
function randColor() {
i = 0;
numHolder = new Array();
while (i < 6) {
randNum = Math.round(Math.random() * 17);
if (randNum >= 10) {
if (randNum == 15) {
randNum = "F";
} else if (randNum == 14) {
randNum = "E";
} else if (randNum == 13) {
randNum = "D";
} else if (randNum == 12) {
randNum = "C";
} else if (randNum == 11) {
randNum = "B";
} else {
randNum = "A";
}
}
numHolder[i] = randNum;
i++;
}
newColor = ((((("0x" + numHolder[0]) + numHolder[1]) + numHolder[2]) + numHolder[3]) + numHolder[4]) + numHolder[5];
return(newColor);
}
_root.createEmptyMovieClip("soundHolder", _root.getNextHighestDepth());
soundFX = new Sound(_root.soundHolder);
sHolder = _root.createEmptyMovieClip("sound", _root.getNextHighestDepth());
song = new Sound(sHolder);
keyListener = new Object();
Key.addListener(keyListener);
Frame 10
function titleColor() {
_root.titleText.textColor = _root.randColor();
}
stop();
this.onEnterFrame = function () {
_root.paddle._rotation = _root.paddle._rotation + 3.3;
_root.paddle2._rotation = _root.paddle2._rotation + 3.3;
};
titleInterval = setInterval(titleColor, 200);
song.stop();
_root.song.attachSound("uberSong4");
_root.song.setVolume(60);
_root.song.start(0, 999);
Frame 11
function ballHit(rot) {
_root.ball.play();
_root.ballSpeed = _root.ballSpeed + _root.speedInc;
if (_root.ballSpeed > _root.maxSpeed) {
_root.ballSpeed = _root.maxSpeed;
}
_root.ball._rotation = rot + ((Math.random() * 2) - 1);
_root.ball.shine._rotation = -_root.ball._rotation;
_root.ballRad = _root.ball._rotation * DEG_RAD;
_root.ballXVel = Math.cos(_root.ballRad) * _root.ballSpeed;
_root.ballYVel = Math.sin(_root.ballRad) * _root.ballSpeed;
_root.ballXBuf = Math.cos(_root.ballRad) * _root.ballBuf;
_root.ballYBuf = Math.sin(_root.ballRad) * _root.ballBuf;
if (ballXVel < 0) {
ballXBuf = -ballXBuf;
}
if (ballYVel < 0) {
ballYBuf = -ballYBuf;
}
w = _root.tailHolder.attachMovie("ballHit_mc", "wave" + _root.tailHolder.getNextHighestDepth(), _root.tailHolder.getNextHighestDepth());
w._x = _root.ball._x;
w._y = _root.ball._y;
_root.changeScore(100);
_root.startSound("ballHitSound", 75, 1);
}
function attachTail() {
m = _root.tailHolder.attachMovie("fadeBall_mc", "t" + _root.tailHolder.getNextHighestDepth(), _root.tailHolder.getNextHighestDepth());
m._x = _root.ball._x;
m._y = _root.ball._y;
}
function changeScore(amount) {
_root.score = _root.score + amount;
_root.scoreBox.text = _root.score;
}
function spawnPowerUp(xStart, yStart) {
if (Math.random() > 0.5) {
randNum = Math.ceil(Math.random() * _root.level);
p = _root.pHolder.attachMovie("powerUp" + randNum, "p" + _root.pHolder.getNextHighestDepth(), _root.pHolder.getNextHighestDepth());
p._x = xStart;
p._y = yStart;
p._rotation = Math.random() * 360;
pRad = p._rotation * _root.DEG_RAD;
tempSpeed = (Math.random() * _root.pSpeed) + 0.5;
p.xSpeed = Math.cos(pRad) * tempSpeed;
p.ySpeed = Math.sin(pRad) * tempSpeed;
p.stop();
p.onEnterFrame = function () {
_root.movePowerUp(this);
};
}
}
function movePowerUp(k) {
if (_root.go == true) {
if ((((k._x > 550) || (k._x < 150)) || (k._y > 400)) || (k._y < 0)) {
removeMovieClip(k);
}
k._x = k._x + k.xSpeed;
k._y = k._y + k.ySpeed;
if (_root.paddle.hitTest(k._x, k._y, true) || (_root.paddle2.hitTest(k._x, k._y, true))) {
delete k.onEnterFrame;
k.play();
}
}
}
function spawnBlock() {
if (_root.go == true) {
randNum = Math.random() * _root.level;
if (randNum < 1) {
blockName = "normalBlock_mc";
} else if (randNum < 2) {
blockName = "arrowBlock_mc";
} else if (randNum < 3) {
blockName = "spinBlock_mc";
} else if (randNum < 4) {
blockName = "rockBlock_mc";
} else if (randNum < 5) {
blockName = "timeBlock_mc";
} else if (randNum < 6) {
blockName = "itemBlock_mc";
} else if (randNum < 7) {
blockName = "orbitBlock_mc";
} else if (randNum < 8) {
blockName = "loopyBlock_mc";
} else if (randNum < 9) {
blockName = "followBlock_mc";
} else {
blockName = "invisaBlock_mc";
}
b = _root.bHolder.attachMovie(blockName, "block" + _root.bHolder.getNextHighestDepth(), _root.bHolder.getNextHighestDepth());
bDist = (Math.random() * _root.maxBlockDist) + 20;
bRad = (Math.random() * 360) * _root.DEG_RAD;
b._x = (Math.cos(bRad) * bDist) + centerX;
b._y = (Math.sin(bRad) * bDist) + centerY;
b._rotation = Math.random() * 360;
b._xscale = 10;
b._yscale = 10;
if (((blockName == "normalBlock_mc") || (blockName == "rockBlock_mc")) || (blockName == "invisaBlock_mc")) {
b.onEnterFrame = function () {
if (_root.go == true) {
if (this._xscale < 100) {
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
}
if (this.hitTest(_root.ball._x, _root.ball._y, true)) {
if (_root.fireBall == false) {
_root.ballHit(_root.calcAngle(this));
}
_root.spawnPowerUp(this._x, this._y);
_root.comboText();
this.play();
}
if (_root.splode == true) {
_root.spawnPowerUp(this._x, this._y);
_root.comboText();
this.play();
}
}
};
} else if (blockName == "timeBlock_mc") {
b.onEnterFrame = function () {
if (_root.go == true) {
this.play();
if (this._xscale < 100) {
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
}
if (this.hitTest(_root.ball._x, _root.ball._y, true)) {
if (_root.fireBall == false) {
_root.ballHit(_root.calcAngle(this));
}
_root.spawnPowerUp(this._x, this._y);
_root.comboText();
}
if (_root.splode == true) {
_root.spawnPowerUp(this._x, this._y);
_root.comboText();
}
} else {
this.stop();
}
};
} else if (blockName == "arrowBlock_mc") {
b.onEnterFrame = function () {
if (_root.go == true) {
if (this._xscale < 100) {
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
}
if (this.hitTest(_root.ball._x, _root.ball._y, true)) {
if (_root.fireBall == false) {
_root.ballHit(this._rotation - 90);
}
_root.spawnPowerUp(this._x, this._y);
_root.comboText();
this.play();
}
if (_root.splode == true) {
_root.spawnPowerUp(this._x, this._y);
_root.comboText();
this.play();
}
}
};
} else if ((blockName == "spinBlock_mc") || (blockName == "loopyBlock_mc")) {
b.onEnterFrame = function () {
if (_root.go == true) {
if (this._xscale < 100) {
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
}
this.shine._rotation = this.shine._rotation - 3.3;
this._rotation = this._rotation + 3.3;
if (this.hitTest(_root.ball._x, _root.ball._y, true)) {
if (_root.fireBall == false) {
_root.ballHit(this._rotation - 90);
}
_root.spawnPowerUp(this._x, this._y);
_root.comboText();
this.play();
}
if (_root.splode == true) {
_root.spawnPowerUp(this._x, this._y);
_root.comboText();
this.play();
}
}
};
} else if (blockName == "itemBlock_mc") {
b.onEnterFrame = function () {
if (_root.go == true) {
if (this._xscale < 100) {
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
}
if (this.hitTest(_root.ball._x, _root.ball._y, true)) {
if (_root.fireBall == false) {
_root.ballHit(_root.calcAngle(this));
}
_root.spawnPowerUp(this._x, this._y);
_root.spawnPowerUp(this._x, this._y);
_root.spawnPowerUp(this._x, this._y);
_root.spawnPowerUp(this._x, this._y);
_root.spawnPowerUp(this._x, this._y);
_root.spawnPowerUp(this._x, this._y);
_root.spawnPowerUp(this._x, this._y);
_root.spawnPowerUp(this._x, this._y);
_root.comboText();
this.play();
}
if (_root.splode == true) {
_root.spawnPowerUp(this._x, this._y);
_root.comboText();
this.play();
}
}
};
} else if (blockName == "followBlock_mc") {
b.onEnterFrame = function () {
if (_root.go == true) {
if (this._xscale < 100) {
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
}
this._rotation = _root.calcAngle(this);
this.shine._rotation = -this._rotation;
rad = this._rotation * _root.DEG_RAD;
this._x = this._x + (Math.cos(rad) * 1.8);
this._y = this._y + (Math.sin(rad) * 1.8);
if (this.hitTest(_root.ball._x, _root.ball._y, true)) {
if (_root.fireBall == false) {
_root.ballHit(this._rotation);
}
_root.spawnPowerUp(this._x, this._y);
_root.comboText();
this.play();
}
if (_root.splode == true) {
_root.spawnPowerUp(this._x, this._y);
_root.comboText();
this.play();
}
}
};
} else if (blockName == "orbitBlock_mc") {
b._x = _root.centerX;
b._y = _root.centerY;
}
}
}
function nextLevel() {
if (_root.go == true) {
_root.level++;
_root.levelBox.text = _root.level;
_root.ballSpeed = _root.minSpeed;
_root.changeScore(1000);
var _local2 = new TextFormat();
_local2.size = 32;
m = _root.textHolder.attachMovie("textHolder_mc", "text" + _root.textHolder.getNextHighestDepth(), _root.textHolder.getNextHighestDepth());
bob = m.anim.textBox;
bob.textColor = _root.randColor();
bob.text = ("Level " + _root.level) + "!";
bob.setTextFormat(_local2);
m._x = _root.centerX;
m._y = _root.centerY;
_root.increaseDiff();
_root.startSound("levelUpSound", 100, 1);
_root.songNum++;
}
if (_root.songNum >= 8) {
delete _root.song.onSoundComplete;
_root.song.onSoundComplete = function () {
_root.beginTen();
};
}
_root.song.attachSound("uberSong" + _root.songOrder[_root.songNum]);
_root.song.setVolume(_root.musicVolume);
_root.song.start(0, 4);
}
function calcAngle(target) {
xDist = target._x - _root.ball._x;
yDist = target._y - _root.ball._y;
rotation = Math.atan2(yDist, xDist);
rotation = rotation * _root.RAD_DEG;
rotation = rotation - 180;
return(rotation);
}
function removeBlock(target) {
m = _root.explosionHolder.attachMovie("explosion_mc", "explosion" + _root.explosionHolder.getNextHighestDepth(), _root.explosionHolder.getNextHighestDepth());
m._x = target._x;
m._y = target._y;
m._rotation = Math.random() * 360;
removeMovieClip(target);
_root.startSound("explodeSound", 75, 1);
}
function calcDifAngle() {
xDist = _root.ball._x - _root.centerX;
yDist = _root.ball._y - _root.centerY;
difAngle = Math.atan2(yDist, xDist);
difAngle = difAngle * _root.RAD_DEG;
difAngle = difAngle - 180;
difAngle = difAngle + ((Math.random() * 40) - 20);
return(difAngle);
}
function changeLives(num) {
_root.lives = _root.lives + num;
_root.livesBox.text = _root.lives;
if (_root.lives < 0) {
_root.endGame();
}
}
function endGame() {
clearInterval(_root.blockInterval);
clearInterval(_root.levelInterval);
clearInterval(_root.volumeInterval);
delete _root.song.onSoundComplete;
delete _root.keyListener.onKeyUp;
_root.song.stop();
_root.startSound("sonicBoomSound", 100, 1);
_root.gotoAndStop("endGame");
}
function comboText() {
_root.combo++;
if (_root.combo > 1) {
points = Math.pow((_root.combo - 1) * _root.bonus, 2) * 2;
if (points > 99999) {
points = 99999 /* 0x01869F */;
}
m = _root.textHolder.attachMovie("textHolder_mc", "text" + _root.textHolder.getNextHighestDepth(), _root.textHolder.getNextHighestDepth());
bob = m.anim.textBox;
bob.textColor = _root.randColor();
bob.text = ((_root.combo - 1) + " Combo! ") + points;
bob.setTextFormat(myformat);
m._x = _root.ball._x;
m._y = _root.ball._y;
_root.changeScore(points);
}
}
function beginTen() {
_root.level++;
_root.levelBox.text = _root.level;
_root.ballSpeed = _root.minSpeed;
_root.changeScore(1000);
var _local2 = new TextFormat();
_local2.size = 32;
m = _root.textHolder.attachMovie("textHolder_mc", "text" + _root.textHolder.getNextHighestDepth(), _root.textHolder.getNextHighestDepth());
bob = m.anim.textBox;
bob.textColor = _root.randColor();
bob.text = ("Level " + _root.level) + "!";
bob.setTextFormat(_local2);
m._x = _root.centerX;
m._y = _root.centerY;
_root.increaseDiff();
_root.maxMusicVolume = 100;
_root.minMusicVolume = 75;
_root.levelUpSound.start(0, 1);
delete _root.song.onSoundComplete;
_root.song.attachSound("uberSong7");
_root.song.setVolume(_root.musicVolume);
_root.song.start(0, 1);
_root.song.onSoundComplete = function () {
_root.continueTen();
};
_root.blockReset = 45;
}
function continueTen() {
_root.levelInterval = setInterval(_root.increaseDiff, 15000);
_root.song.attachSound("uberSong8");
_root.song.setVolume(_root.musicVolume);
_root.song.start(0, 999);
delete _root.song.onSoundComplete;
}
function increaseDiff() {
_root.minSpeed = _root.minSpeed + 0.2;
_root.maxSpeed = _root.maxSpeed + 0.2;
if (_root.maxSpeed > 12) {
_root.maxSpeed = 12;
}
if (_root.minSpeed > 12) {
_root.minSpeed = 12;
}
}
function startSound(targetSound, sVolume, variations) {
if (_root.sound == true) {
if (varNum != 1) {
varNum = Math.ceil(Math.random() * variations);
_root.soundFX.attachSound(targetSound + varNum);
} else {
_root.soundFX.attachSound(targetSound);
}
_root.soundFX.setVolume(sVolume);
_root.soundFX.start(0, 1);
}
}
function changeMusicVolume() {
if (_root.musicVolume != 0) {
_root.musicVolume = _root.musicVolume + ((Math.random() * 20) - 10);
if (_root.musicVolume > _root.maxMusicVolume) {
_root.musicVolume = _root.maxMusicVolume;
} else if (_root.musicVolume < _root.minMusicVolume) {
_root.musicVolume = _root.minMusicVolume;
}
_root.song.setVolume(_root.musicVolume);
}
}
stop();
DEG_RAD = (Math.PI/180);
RAD_DEG = 57.2957795130823;
centerX = 350;
centerY = 200;
_root.createEmptyMovieClip("textHolder", _root.getNextHighestDepth());
song.stop();
song.onSoundComplete = function () {
_root.nextLevel();
};
songNum = -1;
songOrder = new Array(1, 2, 3, 4, 5, 6, 4, 5, 6, 7, 8);
musicVolume = 75;
maxMusicVolume = 85;
minMusicVolume = 40;
music = true;
sound = true;
volumeInterval = setInterval(changeMusicVolume, 500);
go = true;
_root.pScreen._visible = false;
_root._quality = "HIGH";
curQuality = "high";
vel = 0;
accel = 2;
friction = 0.7;
paddle.gotoAndStop("medium");
paddle2.gotoAndStop("medium");
minSpeed = 2.5;
maxSpeed = 8;
ballSpeed = minSpeed;
ballInc = 1;
ballBuf = 5;
speedInc = 0.15;
fireBall = false;
ball._rotation = Math.random() * 360;
ballHit();
score = -1000;
changeScore(0);
pSpeed = 4;
level = 0;
nextLevel();
levelInterval = null;
maxBlockDist = 80;
splode = false;
changeSplode = false;
spawnBlock();
spawnBlock();
spawnBlock();
spawnBlock();
spawnBlock();
spawnBlock();
spawnBlock();
spawnBlock();
spawnBlock();
blockCounter = 62;
blockReset = 62;
lives = 3;
_root.livesBox.text = lives;
extraLives = 1;
combo = 0;
bonus = 5;
pauseKey = 80;
leftKey = 37;
rightKey = 39;
keyListener.onKeyUp = function () {
keyPressed = Key.getCode();
if (keyPressed == pauseKey) {
if (go == true) {
_root.pScreen._visible = true;
go = false;
} else {
_root.pScreen._visible = false;
go = true;
}
}
};
this.onEnterFrame = function () {
if (go == true) {
if (changeSplode == true) {
splode = false;
changeSplode = false;
}
if (splode == true) {
changeSplode = true;
}
if (Key.isDown(rightKey)) {
vel = vel + accel;
changeScore(1);
} else if (Key.isDown(leftKey)) {
vel = vel - accel;
changeScore(1);
}
paddle._rotation = paddle._rotation + vel;
paddle2._rotation = paddle2._rotation + vel;
vel = vel * friction;
ball._x = ball._x + ballXVel;
ball._y = ball._y + ballYVel;
if (_root.paddle.hitTest(ball._x, ball._y, true)) {
_root.combo = 0;
ballHit(_root.calcDifAngle());
}
if (_root.paddle2.hitTest(ball._x, ball._y, true)) {
_root.combo = 0;
ballHit(_root.calcDifAngle());
}
if ((((ball._x < 150) || (ball._x > 550)) || (ball._y < 0)) || (ball._y > 400)) {
_root.changeLives(-1);
ball._x = centerX;
ball._y = centerY;
ballSpeed = minSpeed;
ballHit(Math.random() * 360);
_root.combo = 0;
_root.go = false;
_root.pScreen._visible = true;
_root.startSound("dieSound", 100, 1);
}
attachTail();
_root.blockCounter--;
if (_root.blockCounter <= 0) {
_root.blockCounter = _root.blockReset;
_root.spawnBlock();
}
}
};
Frame 12
stop();
Frame 13
stop();
Frame 14
stop();
Frame 17
stop();
Symbol 8 MovieClip [fadeBall_mc] Frame 6
removeMovieClip(this);
Symbol 11 MovieClip [ballHit_mc] Frame 7
removeMovieClip(this);
Symbol 15 MovieClip [textHolder_mc] Frame 28
removeMovieClip(this);
Symbol 18 MovieClip [uberPaddle_mc] Frame 1
this.onEnterFrame = function () {
if (_root.go == true) {
play();
} else {
stop();
}
};
Symbol 18 MovieClip [uberPaddle_mc] Frame 337
removeMovieClip(this);
Symbol 21 MovieClip [fireBall_mc] Frame 1
this.onEnterFrame = function () {
if (_root.go == true) {
play();
} else {
stop();
}
};
Symbol 21 MovieClip [fireBall_mc] Frame 357
_root.fireBall = false;
_root.switchBack = true;
removeMovieClip(this);
Symbol 27 MovieClip Frame 1
stop();
newcolor = new Color(this.prev_btn_bg);
newcolor.setRGB(_parent.bg_color);
Symbol 27 MovieClip Frame 2
stop();
newcolor = new Color(this.prev_btn_bg);
newcolor.setRGB(_parent.but_over_color);
Symbol 27 MovieClip Frame 3
stop();
newcolor = new Color(this.prev_btn_bg);
newcolor.setRGB(_parent.but_down_color);
Symbol 28 MovieClip Frame 1
stop();
newcolor = new Color(this.next_btn_bg);
newcolor.setRGB(_parent.bg_color);
Symbol 28 MovieClip Frame 2
stop();
newcolor = new Color(this.next_btn_bg);
newcolor.setRGB(_parent.but_over_color);
Symbol 28 MovieClip Frame 3
stop();
newcolor = new Color(this.next_btn_bg);
newcolor.setRGB(_parent.but_down_color);
Symbol 37 Button
on (release) {
getURL ("http://www.kizash.com/", "_blank");
}
Symbol 44 MovieClip Frame 1
stop();
newcolor = new Color(this.submit_btn_bg);
newcolor.setRGB(_parent.bg_color);
Symbol 44 MovieClip Frame 2
stop();
newcolor = new Color(this.submit_btn_bg);
newcolor.setRGB(_parent.but_over_color);
Symbol 44 MovieClip Frame 3
newcolor = new Color(this.submit_btn_bg);
newcolor.setRGB(_parent.but_down_color);
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 2
stop();
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 2
stop();
Symbol 65 MovieClip [Kizash High Score Component] Frame 1
myTextFormat = new TextFormat();
myTextFormat.font = scoreFont;
myTextFormat.color = scoreColor;
myTextFormat.size = scoreSize;
myTextFormat.bold = scoreBold;
lastLabel.setTextFormat(myTextFormat);
nextLabel.setTextFormat(myTextFormat);
nextFrame();
Instance of Symbol 24 MovieClip "hs_frame" in Symbol 65 MovieClip [Kizash High Score Component] Frame 1
on (release) {
gotoAndStop (1);
_parent.alltime_tab.gotoAndStop(1);
_parent.scoreboard_lv.tabletype = 1;
_parent.showScores();
}
Instance of Symbol 27 MovieClip "last_btn" in Symbol 65 MovieClip [Kizash High Score Component] Frame 1
on (release) {
_parent.page = _parent.page - 10;
if (_parent.page < 0) {
_parent.page = 0;
}
if (_parent.page < 10) {
_parent.last_btn._visible = false;
_parent.lastScoreLabel._visible = false;
}
_parent.next_btn._visible = true;
_parent.nextScoreLabel._visible = true;
_parent.showScores();
}
Instance of Symbol 28 MovieClip "next_btn" in Symbol 65 MovieClip [Kizash High Score Component] Frame 1
on (release) {
_parent.page = _parent.page + 10;
if (_parent.page > _parent.maxScore) {
_parent.page = _parent.maxScore;
}
if (_parent.page > (_parent.maxScore - 20)) {
_parent.next_btn._visible = false;
_parent.nextScoreLabel._visible = false;
}
_parent.last_btn._visible = true;
_parent.lastScoreLabel._visible = true;
_parent.showScores();
}
Symbol 65 MovieClip [Kizash High Score Component] Frame 2
stop();
checkLabel.setTextFormat(myTextFormat);
String.prototype.addCommas = function () {
var _local3 = this.length;
var _local2 = "";
var _local1 = 0;
while (_local1 <= _local3) {
_local2 = this.charAt(_local3 - _local1) + _local2;
if ((((_local1 % 3) == 0) && (_local1 > 0)) && (_local1 < _local3)) {
_local2 = "," + _local2;
}
_local1++;
}
return(_local2);
};
game_so = SharedObject.getLocal(myswfname);
check_score = new LoadVars();
score = _level0[myscorevar];
check_score.score = score;
check_score.game = myuniqueid;
check_score.sendAndLoad("https://www.kizash.com/high_scores/check_score.php", check_score, "POST");
check_score.onLoad = function (success) {
if (success) {
if (String(check_score.success) eq "1") {
ishigh = check_score.ishigh;
if (((ishigh eq "1") && (score != undefined)) && (score != 0)) {
hs_text = "You got a high score!";
gotoAndPlay ("EnterName");
} else {
hs_text = "Sorry. keep on trying";
gotoAndPlay ("ShowHighScores");
}
}
}
};
Symbol 65 MovieClip [Kizash High Score Component] Frame 3
stop();
_level0[sub_button_skin]._visible = true;
scoreLabel.setTextFormat(myTextFormat);
nameLabel.setTextFormat(myTextFormat);
score_txt.setTextFormat(myTextFormat);
myTabTextFormat = new TextFormat();
myTabTextFormat.font = scoreFont;
myTabTextFormat.color = scoreColor;
submitText.setTextFormat(myTabTextFormat);
name_txt.setTextFormat(myTextFormat);
newcolor = new Color(sub_btn.sub_up);
newcolor.setRGB(sel_color);
newcolor = new Color(sub_btn.sub_over);
newcolor.setRGB(des_color);
newcolor = new Color(sub_btn.sub_dn);
newcolor.setRGB(bg_color);
newcolor = new Color(sub_btn.next_btn_bg);
newcolor.setRGB(bg_color);
name_txt.restrict = "A-Z 0-9.\\-";
name_txt.text = game_so.data.playerName;
name_txt.maxChars = 16;
Selection.setFocus(name_txt);
Selection.setSelection(name_txt.length, name_txt.length);
if (name_txt.text == "undefined") {
name_txt.text = "";
}
name_txt.textColor = scoreColor;
Instance of Symbol 44 MovieClip "sub_btn" in Symbol 65 MovieClip [Kizash High Score Component] Frame 3
on (release, keyPress "<Enter>") {
if (_parent.name_txt.length > 0) {
_parent.game_so.data.playerName = _parent.name_txt.text;
}
_parent.nextFrame();
}
Symbol 65 MovieClip [Kizash High Score Component] Frame 4
stop();
_level0[sub_button_skin]._visible = false;
unique_id = new LoadVars();
if ((score > 0) && (game_so.data.playerName.length > 0)) {
unique_id.score = score;
unique_id.name = game_so.data.playerName.toLowerCase();
}
unique_id.game = myuniqueid;
unique_id.sendAndLoad("https://www.kizash.com/high_scores/games_unique_id.php", unique_id, "POST");
unique_id.onLoad = function (success) {
if (success) {
if (String(unique_id.success) eq "1") {
myunique = unique_id.unid;
nextFrame();
}
}
};
Symbol 65 MovieClip [Kizash High Score Component] Frame 5
stop();
hs_frame._visible = showFrame;
myScoreTextFormat = new TextFormat();
myScoreTextFormat.font = scoreFont;
myScoreTextFormat.size = scoreSize;
myScoreTextFormat.bold = scoreBold;
viewLastSkin = function (bool) {
_level0[last_button_skin]._visible = bool;
};
viewNextSkin = function (bool) {
_level0[next_button_skin]._visible = bool;
};
showScores = function () {
var _local3 = 10;
while (_local3 > 0) {
if (scoreboard_lv.tabletype == 2) {
var _local2 = scoreboard_lv["hname" + (page + _local3)];
var s = scoreboard_lv["hscore" + (page + _local3)];
} else {
var _local2 = scoreboard_lv["name" + (page + _local3)];
var s = scoreboard_lv["score" + (page + _local3)];
}
var _local1 = this[("line" + _local3) + "_mc"];
_local1.rank_txt.text = (page + _local3) + ".";
_local1.name_txt.text = (_local2.length ? (_local2.toUpperCase()) : "...");
_local1.score_txt.text = (s.length ? (s.addCommas()) : "...");
_local1.rank_txt.textColor = (_local1.name_txt.textColor = (_local1.score_txt.textColor = ((game_so.data.playerName.length && (_local2.toUpperCase() == game_so.data.playerName.toUpperCase())) ? (pl_color) : (scoreColor))));
_local1._visible = true;
loading_mc._visible = false;
_local3--;
}
_local3 = 10;
while (_local3 > 0) {
var _local1 = this[("line" + _local3) + "_mc"];
_local1.rank_txt.setTextFormat(myScoreTextFormat);
_local1.name_txt.setTextFormat(myScoreTextFormat);
_local1.score_txt.setTextFormat(myScoreTextFormat);
_local3--;
}
};
page = 0;
maxScore = 100;
scoreboard_lv = new LoadVars();
scoreboard_lv.unid = myunique;
if (myunique == undefined) {
scoreboard_lv.game = myuniqueid;
scoreboard_lv.sendAndLoad("https://www.kizash.com/high_scores/games_high_score_tbl.php", scoreboard_lv, "POST");
} else {
scoreboard_lv.sendAndLoad("https://www.kizash.com/high_scores/games_score_sql.php", scoreboard_lv, "POST");
}
scoreboard_lv.onLoad = function (success) {
if (success) {
if (String(scoreboard_lv.success) eq "1") {
next_btn._visible = true;
_level0[next_button_skin]._visible = true;
if (scoreboard_lv.maxScore.length > 0) {
maxScore = Number(scoreboard_lv.maxScore);
}
var _local1 = maxScore;
while (_local1 > 0) {
var _local2 = scoreboard_lv["name" + _local1];
if (game_so.data.playerName.length && (_local2.toUpperCase() == game_so.data.playerName.toUpperCase())) {
page = Math.floor(_local1 / 10) * 10;
if ((_local1 % 10) == 0) {
page = page - 10;
}
}
_local1--;
}
if (page > maxScore) {
page = maxScore;
}
if (page > (maxScore - 20)) {
next_btn._visible = false;
_level0[next_button_skin]._visible = false;
nextScoreLabel._visible = false;
}
if (page < 10) {
last_btn._visible = false;
_level0[last_button_skin]._visible = false;
lastScoreLabel._visible = false;
} else {
last_btn._visible = true;
_level0[last_button_skin]._visible = true;
lastScoreLabel._visible = true;
}
showScores();
} else {
errorMsg = scoreboard_lv.errorMsg.toUpperCase();
scoreboard_lv = new LoadVars();
nextFrame();
}
} else {
errorMsg = "COULD NOT ACCESS HIGH SCORES";
scoreboard_lv = new LoadVars();
nextFrame();
}
};
score = 0;
next_btn._visible = (last_btn._visible = false);
_level0[last_button_skin]._visible = (_level0[next_button_skin]._visible = false);
myTabTextFormat = new TextFormat();
myTabTextFormat.font = scoreFont;
myTabTextFormat.color = scoreColor;
whsText.setTextFormat(myTabTextFormat);
athsText.setTextFormat(myTabTextFormat);
lastScoreLabel.setTextFormat(myTextFormat);
lastScoreLabel._visible = false;
nextScoreLabel.setTextFormat(myTextFormat);
newcolor = new Color(next_btn.next_btn_bg);
newcolor.setRGB(bg_color);
newcolor = new Color(last_btn.prev_btn_bg);
newcolor.setRGB(bg_color);
newcolor = new Color(week_tab.w_selected);
newcolor.setRGB(sel_color);
newcolor = new Color(week_tab.w_deselected);
newcolor.setRGB(des_color);
newcolor = new Color(alltime_tab.a_selected);
newcolor.setRGB(sel_color);
newcolor = new Color(alltime_tab.a_deselected);
newcolor.setRGB(des_color);
Instance of Symbol 27 MovieClip "last_btn" in Symbol 65 MovieClip [Kizash High Score Component] Frame 5
on (release) {
_parent.page = _parent.page - 10;
if (_parent.page < 0) {
_parent.page = 0;
}
if (_parent.page < 10) {
_parent.last_btn._visible = false;
_parent._level0[last_button_skin]._visible = false;
_parent.viewLastSkin(false);
_parent.lastScoreLabel._visible = false;
}
_parent.next_btn._visible = true;
_parent.viewNextSkin(true);
_parent.nextScoreLabel._visible = true;
_parent.showScores();
}
Instance of Symbol 28 MovieClip "next_btn" in Symbol 65 MovieClip [Kizash High Score Component] Frame 5
on (release) {
_parent.page = _parent.page + 10;
if (_parent.page > _parent.maxScore) {
_parent.page = _parent.maxScore;
}
if (_parent.page > (_parent.maxScore - 20)) {
_parent.next_btn._visible = false;
_parent.viewNextSkin(false);
_parent.nextScoreLabel._visible = false;
}
_parent.last_btn._visible = true;
_parent.viewLastSkin(true);
_parent.lastScoreLabel._visible = true;
_parent.showScores();
}
Instance of Symbol 55 MovieClip "week_tab" in Symbol 65 MovieClip [Kizash High Score Component] Frame 5
on (release) {
gotoAndStop (1);
_parent.alltime_tab.gotoAndStop(1);
newcolor = new Color(_parent.alltime_tab.a_deselected);
newcolor.setRGB(_parent.des_color);
newcolor = new Color(this.w_selected);
newcolor.setRGB(_parent.sel_color);
_parent.scoreboard_lv.tabletype = 1;
_parent.showScores();
}
Instance of Symbol 61 MovieClip "alltime_tab" in Symbol 65 MovieClip [Kizash High Score Component] Frame 5
on (release) {
this.gotoAndStop(2);
_parent.week_tab.gotoAndStop(2);
newcolor = new Color(this.a_selected);
newcolor.setRGB(_parent.sel_color);
newcolor = new Color(_parent.week_tab.w_deselected);
newcolor.setRGB(_parent.des_color);
_parent.scoreboard_lv.tabletype = 2;
_parent.showScores();
}
Instance of Symbol 24 MovieClip "hs_frame" in Symbol 65 MovieClip [Kizash High Score Component] Frame 5
on (release) {
gotoAndStop (1);
_parent.alltime_tab.gotoAndStop(1);
_parent.scoreboard_lv.tabletype = 1;
_parent.showScores();
}
Symbol 65 MovieClip [Kizash High Score Component] Frame 6
errorLabel.setTextFormat(myTextFormat);
_level0[last_button_skin]._visible = false;
_level0[next_button_skin]._visible = false;
stop();
Symbol 71 MovieClip Frame 1
this._rotation = this._rotation - this._parent._rotation;
Symbol 72 MovieClip [normalBlock_mc] Frame 1
stop();
Symbol 72 MovieClip [normalBlock_mc] Frame 2
_root.removeBlock(this);
Symbol 74 MovieClip [arrowBlock_mc] Frame 1
stop();
Symbol 74 MovieClip [arrowBlock_mc] Frame 2
_root.removeBlock(this);
Symbol 76 MovieClip [spinBlock_mc] Frame 1
stop();
Symbol 76 MovieClip [spinBlock_mc] Frame 2
_root.removeBlock(this);
Symbol 81 MovieClip [rockBlock_mc] Frame 1
stop();
Symbol 81 MovieClip [rockBlock_mc] Frame 2
stop();
Symbol 81 MovieClip [rockBlock_mc] Frame 3
stop();
Symbol 81 MovieClip [rockBlock_mc] Frame 4
_root.removeBlock(this);
Symbol 86 MovieClip [itemBlock_mc] Frame 1
stop();
Symbol 86 MovieClip [itemBlock_mc] Frame 2
_root.removeBlock(this);
Symbol 88 MovieClip [orbitBlock_mc] Frame 1
stop();
dist = (Math.random() * _root.maxBlockDist) + 20;
rotSpeed = Math.random() * 3;
rot = Math.random() * 360;
this.onEnterFrame = function () {
if (_root.go == true) {
if (this._xscale < 100) {
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
}
if (this.hitTest(_root.ball._x, _root.ball._y, true)) {
if (_root.fireBall == false) {
_root.ballHit(_root.calcAngle(this));
}
_root.spawnPowerUp(this._x, this._y);
_root.comboText();
this.play();
}
rot = rot + rotSpeed;
if (rot > 180) {
rot = rot - 360;
}
rad = rot * _root.DEG_RAD;
this._x = (Math.cos(rad) * dist) + _root.centerX;
this._y = (Math.sin(rad) * dist) + _root.centerY;
if (_root.splode == true) {
_root.spawnPowerUp(this._x, this._y);
_root.comboText();
this.play();
}
}
};
Symbol 88 MovieClip [orbitBlock_mc] Frame 2
_root.removeBlock(this);
Symbol 90 MovieClip [loopyBlock_mc] Frame 1
stop();
Symbol 90 MovieClip [loopyBlock_mc] Frame 2
_root.removeBlock(this);
Symbol 92 MovieClip [followBlock_mc] Frame 1
stop();
Symbol 92 MovieClip [followBlock_mc] Frame 2
_root.removeBlock(this);
Symbol 96 MovieClip [invisaBlock_mc] Frame 1
stop();
Symbol 96 MovieClip [invisaBlock_mc] Frame 2
stop();
Symbol 96 MovieClip [invisaBlock_mc] Frame 3
_root.removeBlock(this);
Symbol 100 MovieClip Frame 1
this._rotation = this._rotation - this._parent._parent._rotation;
Symbol 146 MovieClip Frame 16
removeMovieClip(this._parent);
Symbol 148 MovieClip [powerUp1] Frame 2
_root.changeScore(500);
_root.startSound("powerUpSound", 50, 1);
Symbol 148 MovieClip [powerUp1] Frame 6
removeMovieClip(this);
Symbol 149 MovieClip [powerUp2] Frame 2
_root.changeScore(-500);
_root.startSound("powerDownSound", 50, 1);
Symbol 149 MovieClip [powerUp2] Frame 6
removeMovieClip(this);
Symbol 150 MovieClip [powerUp3] Frame 2
_root.startSound("powerUpSound", 50, 1);
_root.paddle.play();
_root.paddle2.play();
_root.changeScore(200);
Symbol 150 MovieClip [powerUp3] Frame 6
removeMovieClip(this);
Symbol 151 MovieClip [powerUp4] Frame 2
_root.paddle.prevFrame();
_root.paddle2.prevFrame();
_root.changeScore(200);
_root.startSound("powerDownSound", 50, 1);
Symbol 151 MovieClip [powerUp4] Frame 6
removeMovieClip(this);
Symbol 152 MovieClip [powerUp5] Frame 2
_root.startSound("powerUpSound", 50, 1);
_root.ballSpeed = _root.minSpeed;
_root.ballHit(_root.ball._rotation);
_root.changeScore(200);
Symbol 152 MovieClip [powerUp5] Frame 6
removeMovieClip(this);
Symbol 153 MovieClip [powerUp6] Frame 2
_root.startSound("powerDownSound", 50, 1);
_root.ballSpeed = _root.maxSpeed;
_root.ballHit(_root.ball._rotation);
_root.changeScore(500);
Symbol 153 MovieClip [powerUp6] Frame 6
removeMovieClip(this);
Symbol 154 MovieClip [powerUp7] Frame 2
_root.startSound("powerUpSound", 50, 1);
_root.fireBall = true;
_root.changeScore(200);
_root.ballSpeed = _root.ballSpeed + 2;
_root.ballHit();
_root.ball.fireHolder.attachMovie("fireBall_mc", "ball", 1);
_root.changeScore(200);
Symbol 154 MovieClip [powerUp7] Frame 6
removeMovieClip(this);
Symbol 155 MovieClip [powerUp8] Frame 2
_root.startSound("powerUpSound", 50, 1);
_root.splode = true;
_root.changeScore(200);
Symbol 155 MovieClip [powerUp8] Frame 6
removeMovieClip(this);
Symbol 156 MovieClip [powerUp9] Frame 2
_root.startSound("powerUpSound", 50, 1);
_root.paddle.uberHolder.attachMovie("uberPaddle_mc", "paddle", 1);
_root.changeScore(200);
Symbol 156 MovieClip [powerUp9] Frame 6
removeMovieClip(this);
Symbol 157 MovieClip [powerUp10] Frame 1
if (_root.extraLives <= 0) {
removeMovieClip(this);
}
Symbol 157 MovieClip [powerUp10] Frame 2
_root.startSound("powerUpSound", 50, 1);
_root.extraLives--;
_root.changeLives(1);
_root.changeScore(500);
Symbol 157 MovieClip [powerUp10] Frame 6
removeMovieClip(this);
Symbol 168 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 2
stop();
Symbol 176 MovieClip Frame 3
stop();
Symbol 176 MovieClip Frame 4
this.prevFrame();
Symbol 180 Button
on (release) {
clearInterval(_root.titleInterval);
delete _root.onEnterFrame;
_root.gotoAndStop("credits");
}
Symbol 183 Button
on (release) {
clearInterval(_root.titleInterval);
delete _root.onEnterFrame;
_root.gotoAndStop("instructions");
}
Symbol 186 Button
on (release) {
clearInterval(_root.titleInterval);
delete _root.onEnterFrame;
_root.gotoAndStop("highScore");
}
Symbol 189 Button
on (release) {
clearInterval(_root.titleInterval);
delete _root.onEnterFrame;
_root.gotoAndStop("game");
}
Symbol 196 MovieClip Frame 1
stop();
Symbol 211 Button
on (release) {
if (go == true) {
_root.pScreen._visible = true;
go = false;
} else {
_root.pScreen._visible = false;
go = true;
}
}
Symbol 214 Button
on (release) {
if (_root.curQuality == "high") {
_root.curQuality = "low";
_root._quality = "LOW";
} else if (_root.curQuality == "medium") {
_root.curQuality = "high";
_root._quality = "HIGH";
} else {
_root.curQuality = "medium";
_root._quality = "MEDIUM";
}
}
Symbol 217 Button
on (release) {
if (_root.sound == true) {
_root.sound = false;
} else {
_root.sound = true;
}
}
Symbol 220 Button
on (release) {
if (_root.music == true) {
_root.musicVolume = 0;
_root.music = false;
} else {
_root.musicVolume = 75;
_root.music = true;
}
_root.song.setVolume(_root.musicVolume);
}
Symbol 223 Button
on (release) {
_root.endGame();
}
Symbol 232 Button
on (release) {
_root.gotoAndStop("highScore");
}
Symbol 235 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 242 Button
on (release) {
getURL ("http://www.xanga.com/xstormer1", "_blank");
}
Symbol 245 Button
on (release) {
getURL ("http://jacobgrahn.com/", "_blank");
}
Symbol 250 Button
on (release) {
getURL ("http://www.iconian.com/", "_blank");
}
Symbol 273 Button
on (release) {
_root.score = 0;
_root.gotoAndStop("menu");
}
Symbol 278 Button
on (release) {
getURL ("http://frontsteps.com/games/uber_breakout/", "_blank");
}