Frame 1
_global.speedmult = 10;
Frame 2
_global.speedmult = 1;
score = 0;
_root.invincible = 0;
_root.slower = 0;
numsquares = int((speedmult - 1) / 0.07) + " balls";
_root.evilsquares = 0;
_root.lead.setVolume(_root.leadvol);
_root.bass.setVolume(0);
stop();
startDrag ("square2", true);
Mouse.hide();
Instance of Symbol 82 MovieClip in Frame 2
onClipEvent (load) {
function reset() {
var _local1 = this;
whichside = random(4);
enemySpeed = 3 + speedmult;
if (whichside == 0) {
_local1._x = -400 * enemySpeed;
_local1._y = random(400);
}
if (whichside == 1) {
_local1._x = 550 + (400 * enemySpeed);
_local1._y = random(400);
}
if (whichside == 2) {
_local1._y = -400 * enemySpeed;
_local1._x = random(550);
}
if (whichside == 3) {
_local1._y = 400 + (enemySpeed * 400);
_local1._x = random(550);
}
}
reset();
}
onClipEvent (enterFrame) {
if (whichside == 0) {
this._x = this._x + enemySpeed;
if (this._x > 560) {
reset();
}
}
if (whichside == 1) {
this._x = this._x - enemySpeed;
if (this._x < -10) {
reset();
}
}
if (whichside == 2) {
this._y = this._y + enemySpeed;
if (this._y > 410) {
reset();
}
}
if (whichside == 3) {
this._y = this._y - enemySpeed;
if (this._y < -10) {
reset();
}
}
if (this.hitTest(_root.square2)) {
powerdownwav = new Sound();
powerdownwav.attachSound("powerdownwav");
powerdownwav.start();
randpowerdown = random(4);
if ((randpowerdown == 0) & (_root.invincible == 0)) {
_root.powerdowns.gotoAndPlay(2);
_root.goodl.gotoAndPlay(2);
_root.goodr.gotoAndPlay(2);
_root.goodt.gotoAndPlay(2);
_root.goodb.gotoAndPlay(2);
_root.evilsquares = 1;
} else if ((randpowerdown == 1) & (_root.slower == 0)) {
_root.powerdowns.gotoAndPlay(362);
_root.slower = 2;
} else if (randpowerdown == 2) {
_root.powerdowns.gotoAndPlay(722);
_root.score = _root.score - 1000;
} else if (randpowerdown == 3) {
_root.powerdowns.gotoAndPlay(812);
} else if (((randpowerdown == 0) & (_root.invincible == 1)) | ((randpowerdown == 1) & (_root.slower == 1))) {
_root.powerdowns.gotoAndPlay(722);
_root.score = _root.score - 1000;
}
reset();
}
}
Instance of Symbol 84 MovieClip "powerup" in Frame 2
onClipEvent (load) {
function reset() {
var _local1 = this;
whichside = random(4);
enemySpeed = 3 + speedmult;
if (whichside == 0) {
_local1._x = -700 * enemySpeed;
_local1._y = random(400);
}
if (whichside == 1) {
_local1._x = 550 + (700 * enemySpeed);
_local1._y = random(400);
}
if (whichside == 2) {
_local1._y = -700 * enemyspeed;
_local1._x = random(550);
}
if (whichside == 3) {
_local1._y = 400 + (enemyspeed * 700);
_local1._x = random(550);
}
}
reset();
}
onClipEvent (enterFrame) {
if (whichside == 0) {
this._x = this._x + enemySpeed;
if (this._x > 560) {
reset();
}
}
if (whichside == 1) {
this._x = this._x - enemySpeed;
if (this._x < -10) {
reset();
}
}
if (whichside == 2) {
this._y = this._y + enemySpeed;
if (this._y > 410) {
reset();
}
}
if (whichside == 3) {
this._y = this._y - enemySpeed;
if (this._y < -10) {
reset();
}
}
if (this.hitTest(_root.square2)) {
powerupwav = new Sound();
powerupwav.attachSound("powerupwav");
powerupwav.start();
buttonover = new Sound();
buttonover.attachSound("buttonover");
buttonover.start();
randpowerup = random(4);
if ((randpowerup == 0) & (_root.evilsquares == 0)) {
_root.powerups.gotoAndPlay(2);
_root.invincible = 1;
} else if ((randpowerup == 1) & (_root.slower == 0)) {
_root.powerups.gotoAndPlay(362);
_root.slower = 1;
_root.lead.setVolume(0);
_root.bass.setVolume(_root.bassvol);
} else if (randpowerup == 2) {
_root.powerups.gotoAndPlay(722);
_root.score = _root.score + 1000;
} else if (randpowerup == 3) {
_root.powerups.gotoAndPlay(812);
} else if (((randpowerup == 0) & (_root.evilsquares == 1)) | ((randpowerup == 1) & (_root.slower == 2))) {
_root.powerups.gotoAndPlay(722);
_root.score = _root.score + 1000;
}
reset();
}
}
Instance of Symbol 86 MovieClip "enemyr" in Frame 2
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = 600;
_local1._y = random(400);
enemySpeed = random(3) + speedmult;
_local1._xscale = random(50) + 75;
_local1._yscale = _local1._xscale;
}
reset();
}
onClipEvent (enterFrame) {
if (_root.slower == 0) {
this._x = this._x - enemySpeed;
}
if (_root.slower == 1) {
this._x = this._x - 1;
}
if (_root.slower == 2) {
this._x = this._x - (enemySpeed + 3);
}
if (this._x < -10) {
reset();
}
}
Instance of Symbol 86 MovieClip "enemyl" in Frame 2
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = -50;
_local1._y = random(400);
enemySpeed = random(3) + speedmult;
_local1._xscale = random(50) + 75;
_local1._yscale = _local1._xscale;
}
reset();
}
onClipEvent (enterFrame) {
if (_root.slower == 0) {
this._x = this._x - (-enemySpeed);
}
if (_root.slower == 1) {
this._x = this._x - -1;
}
if (_root.slower == 2) {
this._x = this._x - (-(enemySpeed + 3));
}
if (this._x > 560) {
reset();
}
}
Instance of Symbol 86 MovieClip "enemyb" in Frame 2
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._y = 450;
_local1._x = random(550);
enemySpeed = random(3) + speedmult;
_local1._xscale = random(50) + 75;
_local1._yscale = _local1._xscale;
}
reset();
}
onClipEvent (enterFrame) {
if (_root.slower == 0) {
this._y = this._y - enemySpeed;
}
if (_root.slower == 1) {
this._y = this._y - 1;
}
if (_root.slower == 2) {
this._y = this._y - (enemySpeed + 3);
}
if (this._y < -10) {
reset();
}
}
Instance of Symbol 86 MovieClip "enemyt" in Frame 2
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._y = -50;
_local1._x = random(550);
enemySpeed = random(3) + speedmult;
_local1._xscale = random(50) + 75;
_local1._yscale = _local1._xscale;
}
reset();
}
onClipEvent (enterFrame) {
if (_root.slower == 0) {
this._y = this._y - (-enemySpeed);
}
if (_root.slower == 1) {
this._y = this._y - -1;
}
if (_root.slower == 2) {
this._y = this._y - (-(enemySpeed + 3));
}
if (this._y > 410) {
reset();
}
}
Instance of Symbol 88 MovieClip "goodb" in Frame 2
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._y = 450;
_local1._x = random(550);
enemySpeed = random(3) + speedmult;
_local1._xscale = random(50) + 75;
_local1._yscale = _local1._xscale;
}
reset();
}
onClipEvent (enterFrame) {
if (_root.slower == 0) {
this._y = this._y - enemySpeed;
}
if (_root.slower == 1) {
this._y = this._y - 1;
}
if (_root.slower == 2) {
this._y = this._y - (enemySpeed + 3);
}
if (this._y < -10) {
reset();
}
if (this.hitTest(_root.square2)) {
squarewav = new Sound();
squarewav.attachSound("squarewav");
squarewav.start();
if (_root.evilsquares == 0) {
_root.score = _root.score + int(speedmult * 20);
reset();
_global.speedmult = _global.speedmult + 0.07;
_root.square2._xscale = _root.square2._xscale * 1.01;
_root.square2._yscale = _root.square2._xscale;
}
}
}
Instance of Symbol 88 MovieClip "goodt" in Frame 2
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._y = -50;
_local1._x = random(550);
enemySpeed = random(3) + speedmult;
_local1._xscale = random(50) + 75;
_local1._yscale = _local1._xscale;
}
reset();
}
onClipEvent (enterFrame) {
if (_root.slower == 0) {
this._y = this._y - (-enemySpeed);
}
if (_root.slower == 1) {
this._y = this._y - -1;
}
if (_root.slower == 2) {
this._y = this._y - (-(enemySpeed + 3));
}
if (this._y > 410) {
reset();
}
if (this.hitTest(_root.square2)) {
squarewav = new Sound();
squarewav.attachSound("squarewav");
squarewav.start();
if (_root.evilsquares == 0) {
_root.score = _root.score + int(speedmult * 20);
reset();
_global.speedmult = _global.speedmult + 0.07;
_root.square2._xscale = _root.square2._xscale * 1.01;
_root.square2._yscale = _root.square2._xscale;
}
}
}
Instance of Symbol 88 MovieClip "goodl" in Frame 2
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = -50;
_local1._y = random(400);
enemySpeed = random(3) + speedmult;
_local1._xscale = random(50) + 75;
_local1._yscale = _local1._xscale;
}
reset();
}
onClipEvent (enterFrame) {
if (_root.slower == 0) {
this._x = this._x - (-enemySpeed);
}
if (_root.slower == 1) {
this._x = this._x - -1;
}
if (_root.slower == 2) {
this._x = this._x - (-(enemySpeed + 3));
}
if (this._x > 560) {
reset();
}
if (this.hitTest(_root.square2)) {
squarewav = new Sound();
squarewav.attachSound("squarewav");
squarewav.start();
if (_root.evilsquares == 0) {
_root.score = _root.score + int(speedmult * 20);
reset();
_global.speedmult = _global.speedmult + 0.07;
_root.square2._xscale = _root.square2._xscale * 1.01;
_root.square2._yscale = _root.square2._xscale;
}
}
}
Instance of Symbol 88 MovieClip "goodr" in Frame 2
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = 600;
_local1._y = random(400);
enemySpeed = random(3) + speedmult;
_local1._xscale = random(50) + 75;
_local1._yscale = _local1._xscale;
}
reset();
}
onClipEvent (enterFrame) {
if (_root.slower == 0) {
this._x = this._x - enemySpeed;
}
if (_root.slower == 1) {
this._x = this._x - 1;
}
if (_root.slower == 2) {
this._x = this._x - (enemySpeed + 3);
}
if (this._x < -10) {
reset();
}
if (this.hitTest(_root.square2)) {
squarewav = new Sound();
squarewav.attachSound("squarewav");
squarewav.start();
if (_root.evilsquares == 0) {
_root.score = _root.score + int(speedmult * 20);
reset();
_global.speedmult = _global.speedmult + 0.07;
_root.square2._xscale = _root.square2._xscale * 1.01;
_root.square2._yscale = _root.square2._xscale;
}
}
}
Instance of Symbol 90 MovieClip "square2" in Frame 2
onClipEvent (enterFrame) {
if (((this.hitTest(_root.enemyr) | this.hittest(_root.enemyb)) | this.hittest(_root.enemyl)) | this.hittest(_root.enemyt)) {
if (_root.invincible != 1) {
_root.gotoAndStop("gameover");
}
}
if (((this.hitTest(_root.goodr) | this.hittest(_root.goodb)) | this.hittest(_root.goodl)) | this.hittest(_root.goodt)) {
if (_root.evilsquares == 1) {
_root.gotoAndStop("gameover");
}
}
}
onClipEvent (enterFrame) {
_root.score = _root.score + (0.02 * _global.speedmult);
_root.intscore = int(_root.score);
if (int((speedmult - 1) / 0.07) != 1) {
_root.numsquares = int((speedmult - 1) / 0.07) + " balls touched";
}
if (int((speedmult - 1) / 0.07) == 1) {
_root.numsquares = int((speedmult - 1) / 0.07) + " ball touched";
}
}
Frame 5
Mouse.show();
die = new Sound();
die.attachSound("die");
die.start();
_root.intscore = "final score: " + _root.intscore;
if (int((speedmult - 1) / 0.07) != 1) {
totalsquares = ("you touched " + int((speedmult - 1) / 0.07)) + " balls";
}
if (int((speedmult - 1) / 0.07) == 1) {
totalsquares = "you touched 1 ball";
}
_root.lead.setVolume(0);
_root.bass.setVolume(_root.bassvol);
if (_root.music == 0) {
musicbutton._alpha = 20;
} else if (_root.music == 1) {
musicbutton._alpha = 100;
}
_global.speedmult = 10;
_root.slower = 0;
_root.invincible = 0;
Instance of Symbol 86 MovieClip "enemyr" in Frame 5
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = 600;
_local1._y = random(400);
enemySpeed = random(3) + speedmult;
_local1._xscale = random(50) + 75;
_local1._yscale = _local1._xscale;
}
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - enemySpeed;
if (this._x < -10) {
reset();
}
}
Instance of Symbol 86 MovieClip "enemyl" in Frame 5
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = -50;
_local1._y = random(400);
enemySpeed = random(3) + speedmult;
_local1._xscale = random(50) + 75;
_local1._yscale = _local1._xscale;
}
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - (-enemySpeed);
if (this._x > 560) {
reset();
}
}
Instance of Symbol 86 MovieClip "enemyb" in Frame 5
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._y = 450;
_local1._x = random(550);
enemySpeed = random(3) + speedmult;
_local1._xscale = random(50) + 75;
_local1._yscale = _local1._xscale;
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y - enemySpeed;
if (this._y < -10) {
reset();
}
}
Instance of Symbol 86 MovieClip "enemyt" in Frame 5
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._y = -50;
_local1._x = random(550);
enemySpeed = random(3) + speedmult;
_local1._xscale = random(50) + 75;
_local1._yscale = _local1._xscale;
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y - (-enemySpeed);
if (this._y > 410) {
reset();
}
}
Instance of Symbol 88 MovieClip "goodb" in Frame 5
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._y = 450;
_local1._x = random(550);
enemySpeed = random(3) + speedmult;
_local1._xscale = random(50) + 75;
_local1._yscale = _local1._xscale;
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y - enemySpeed;
if (this._y < -10) {
reset();
}
if (this.hitTest(_root.square2)) {
_root.score = _root.score + int(speedmult * 20);
reset();
_global.speedmult = _global.speedmult + 0.07;
_root.square2._xscale = _root.square2._xscale * 1.01;
_root.square2._yscale = _root.square2._xscale;
}
}
Instance of Symbol 88 MovieClip "goodt" in Frame 5
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._y = -50;
_local1._x = random(550);
enemySpeed = random(3) + speedmult;
_local1._xscale = random(50) + 75;
_local1._yscale = _local1._xscale;
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y - (-enemySpeed);
if (this._y > 410) {
reset();
}
if (this.hitTest(_root.square2)) {
_root.score = _root.score + int(speedmult * 20);
reset();
_global.speedmult = _global.speedmult + 0.07;
_root.square2._xscale = _root.square2._xscale * 1.01;
_root.square2._yscale = _root.square2._xscale;
}
}
Instance of Symbol 88 MovieClip "goodl" in Frame 5
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = -50;
_local1._y = random(400);
enemySpeed = random(3) + speedmult;
_local1._xscale = random(50) + 75;
_local1._yscale = _local1._xscale;
}
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - (-enemySpeed);
if (this._x > 560) {
reset();
}
if (this.hitTest(_root.square2)) {
_root.score = _root.score + int(speedmult * 20);
reset();
_global.speedmult = _global.speedmult + 0.07;
_root.square2._xscale = _root.square2._xscale * 1.01;
_root.square2._yscale = _root.square2._xscale;
}
}
Instance of Symbol 88 MovieClip "goodr" in Frame 5
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = 600;
_local1._y = random(400);
enemySpeed = random(3) + speedmult;
_local1._xscale = random(50) + 75;
_local1._yscale = _local1._xscale;
}
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - enemySpeed;
if (this._x < -10) {
reset();
}
if (this.hitTest(_root.square2)) {
_root.score = _root.score + int(speedmult * 20);
reset();
_global.speedmult = _global.speedmult + 0.07;
_root.square2._xscale = _root.square2._xscale * 1.01;
_root.square2._yscale = _root.square2._xscale;
}
}
Frame 6
_global.speedmult = 10;
Frame 7
lead = new Sound(_root.leadmc);
lead.attachSound("gamemusic");
lead.start(0, 999);
bass = new Sound(_root.bassmc);
bass.attachSound("gamemusic");
bass.start(0, 999);
_root.bassvol = 75;
_root.leadvol = 100;
music = 1;
_root.lead.setVolume(0);
_root.bass.setVolume(_root.bassvol);
_global.speedmult = 10;
stop();
Symbol 10 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 10 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 13 MovieClip [FPushButtonSymbol] Frame 1
#initclip 3
function FPushButtonClass() {
this.init();
}
FPushButtonClass.prototype = new FUIComponentClass();
Object.registerClass("FPushButtonSymbol", FPushButtonClass);
FPushButtonClass.prototype.init = function () {
var _local1 = this;
super.setSize(_local1._width, _local1._height);
_local1.boundingBox_mc.unloadMovie();
_local1.attachMovie("fpb_states", "fpbState_mc", 1);
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 2);
_local1.attachMovie("fpb_hitArea", "fpb_hitArea_mc", 3);
super.init();
_local1.btnState = false;
_local1.setClickHandler(_local1.clickHandler);
_local1._xscale = 100;
_local1._yscale = 100;
_local1.setSize(_local1.width, _local1.height);
if (_local1.label != undefined) {
_local1.setLabel(_local1.label);
}
_local1.ROLE_SYSTEM_PUSHBUTTON = 43;
_local1.STATE_SYSTEM_PRESSED = 8;
_local1.EVENT_OBJECT_STATECHANGE = 32778;
_local1.EVENT_OBJECT_NAMECHANGE = 32780;
_local1._accImpl.master = _local1;
_local1._accImpl.stub = false;
_local1._accImpl.get_accRole = _local1.get_accRole;
_local1._accImpl.get_accName = _local1.get_accName;
_local1._accImpl.get_accState = _local1.get_accState;
_local1._accImpl.get_accDefaultAction = _local1.get_accDefaultAction;
_local1._accImpl.accDoDefaultAction = _local1.accDoDefaultAction;
};
FPushButtonClass.prototype.setHitArea = function (w, h) {
var _local1 = this.fpb_hitArea_mc;
this.hitArea = _local1;
_local1._visible = false;
_local1._width = w;
_local1._height = ((arguments.length > 1) ? (h) : (_local1._height));
};
FPushButtonClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = w;
var _local3 = h;
_local2 = ((_local2 < 6) ? 6 : (_local2));
if (arguments.length > 1) {
if (_local3 < 6) {
_local3 = 6;
}
}
super.setSize(_local2, _local3);
_local1.setLabel(_local1.getLabel());
_local1.arrangeLabel();
_local1.setHitArea(_local2, _local3);
_local1.boundingBox_mc._width = _local2;
_local1.boundingBox_mc._height = _local3;
_local1.drawFrame();
if (_local1.focused) {
super.myOnSetFocus();
}
_local1.initContentPos("fLabel_mc");
};
FPushButtonClass.prototype.arrangeLabel = function () {
var _local3 = this;
var _local1 = _local3.fLabel_mc;
var h = _local3.height;
var w = (_local3.width - 2);
var _local2 = 1;
_local3.fLabel_mc.setSize(w - (_local2 * 4));
_local1._x = _local2 * 3;
_local1._y = (h / 2) - (_local1._height / 2);
};
FPushButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FPushButtonClass.prototype.setLabel = function (label) {
var _local1 = this;
_local1.fLabel_mc.setLabel(label);
_local1.txtFormat();
_local1.arrangeLabel();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_NAMECHANGE);
}
};
FPushButtonClass.prototype.getEnabled = function () {
return(this.enabled);
};
FPushButtonClass.prototype.setEnabled = function (enable) {
var _local1 = this;
if (enable || (enable == undefined)) {
_local1.gotoFrame(1);
_local1.drawFrame();
_local1.flabel_mc.setEnabled(true);
_local1.enabled = true;
super.setEnabled(true);
} else {
_local1.gotoFrame(4);
_local1.drawFrame();
_local1.flabel_mc.setEnabled(false);
_local1.enabled = false;
super.setEnabled(false);
}
};
FPushButtonClass.prototype.txtFormat = function () {
var _local1 = this;
var _local2 = _local1.textStyle;
var _local3 = _local1.styleTable;
_local2.align = ((_local3.textAlign.value == undefined) ? ((_local2.align = "center")) : undefined);
_local2.leftMargin = ((_local3.textLeftMargin.value == undefined) ? ((_local2.leftMargin = 1)) : undefined);
_local2.rightMargin = ((_local3.textRightMargin.value == undefined) ? ((_local2.rightMargin = 1)) : undefined);
if (_local1.fLabel_mc._height > _local1.height) {
super.setSize(_local1.width, _local1.fLabel_mc._height);
} else {
super.setSize(_local1.width, _local1.height);
}
_local1.fLabel_mc.labelField.setTextFormat(_local1.textStyle);
_local1.setEnabled(_local1.enable);
};
FPushButtonClass.prototype.drawFrame = function () {
var _local3 = this;
var _local2 = 1;
var x1 = 0;
var y1 = 0;
var x2 = _local3.width;
var y2 = _local3.height;
var mc_array = ["up_mc", "over_mc", "down_mc", "disabled_mc"];
var frame = mc_array[_local3.fpbState_mc._currentframe - 1];
var mc = "frame";
var _local1 = 0;
while (_local1 < 6) {
x1 = x1 + ((_local1 % 2) * _local2);
y1 = y1 + ((_local1 % 2) * _local2);
x2 = x2 - (((_local1 + 1) % 2) * _local2);
y2 = y2 - (((_local1 + 1) % 2) * _local2);
var w = (Math.abs(x1 - x2) + (2 * _local2));
var h = (Math.abs(y1 - y2) + (2 * _local2));
_local3.fpbState_mc[frame][mc + _local1]._width = w;
_local3.fpbState_mc[frame][mc + _local1]._height = h;
_local3.fpbState_mc[frame][mc + _local1]._x = x1 - _local2;
_local3.fpbState_mc[frame][mc + _local1]._y = y1 - _local2;
_local1++;
}
};
FPushButtonClass.prototype.setClickHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((arguments.length < 2) ? (_local1._parent) : (obj));
_local1.clickHandler = chng;
};
FPushButtonClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.clickHandler](_local1);
};
FPushButtonClass.prototype.initContentPos = function (mc) {
var _local1 = this;
_local1.incrVal = 1;
_local1.initx = _local1[mc]._x - (_local1.getBtnState() * _local1.incrVal);
_local1.inity = _local1[mc]._y - (_local1.getBtnState() * _local1.incrVal);
_local1.togx = _local1.initx + _local1.incrVal;
_local1.togy = _local1.inity + _local1.incrVal;
};
FPushButtonClass.prototype.setBtnState = function (state) {
var _local1 = this;
_local1.btnState = state;
if (state) {
_local1.fLabel_mc._x = _local1.togx;
_local1.fLabel_mc._y = _local1.togy;
} else {
_local1.fLabel_mc._x = _local1.initx;
_local1.fLabel_mc._y = _local1.inity;
}
};
FPushButtonClass.prototype.getBtnState = function () {
return(this.btnState);
};
FPushButtonClass.prototype.myOnSetFocus = function () {
this.focused = true;
super.myOnSetFocus();
};
FPushButtonClass.prototype.onPress = function () {
var _local1 = this;
_local1.pressFocus();
_local1.fpbState_mc.gotoAndStop(3);
_local1.drawFrame();
_local1.setBtnState(true);
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRelease = function () {
var _local1 = this;
_local1.fpbState_mc.gotoAndStop(2);
_local1.drawFrame();
_local1.executeCallBack();
_local1.setBtnState(false);
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRollOver = function () {
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
};
FPushButtonClass.prototype.onRollOut = function () {
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onReleaseOutside = function () {
var _local1 = this;
_local1.setBtnState(false);
_local1.fpbState_mc.gotoAndStop(1);
_local1.drawFrame();
};
FPushButtonClass.prototype.onDragOut = function () {
var _local1 = this;
_local1.setBtnState(false);
_local1.fpbState_mc.gotoAndStop(1);
_local1.drawFrame();
};
FPushButtonClass.prototype.onDragOver = function () {
var _local1 = this;
_local1.setBtnState(true);
_local1.fpbState_mc.gotoAndStop(3);
_local1.drawFrame();
};
FPushButtonClass.prototype.myOnKeyDown = function () {
var _local1 = this;
if ((Key.getCode() == 32) && (_local1.pressOnce == undefined)) {
_local1.onPress();
_local1.pressOnce = 1;
}
};
FPushButtonClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.onRelease();
this.pressOnce = undefined;
}
};
FPushButtonClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_PUSHBUTTON);
};
FPushButtonClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FPushButtonClass.prototype.get_accState = function (childId) {
var _local1 = this;
if (_local1.pressOnce) {
return(_local1.master.STATE_SYSTEM_PRESSED);
}
return(_local1.master.STATE_SYSTEM_DEFAULT);
};
FPushButtonClass.prototype.get_accDefaultAction = function (childId) {
return("Press");
};
FPushButtonClass.prototype.accDoDefaultAction = function (childId) {
this.master.onPress();
this.master.onRelease();
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 14 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
return(undefined);
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local3 = 0;
while (_local3 < arguments.length) {
var _local2 = arguments[_local3];
_local1.listeners[arguments[_local3]] = _local2;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local2.updateStyleProperty(_local1, i.toString());
}
}
_local3++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 23 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 29 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 35 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame4, "shadow");
component.registerSkinElement(frame2, "darkshadow");
component.registerSkinElement(frame3, "highlight");
component.registerSkinElement(frame1, "highlight3D");
Symbol 41 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 42 MovieClip [fpb_states] Frame 1
stop();
Symbol 42 MovieClip [fpb_states] Frame 2
stop();
Symbol 42 MovieClip [fpb_states] Frame 3
stop();
Symbol 42 MovieClip [fpb_states] Frame 4
stop();
Symbol 45 MovieClip [FLabelSymbol] Frame 1
#initclip 2
_global.FLabelClass = function () {
var _local1 = this;
if (_local1.hostComponent == undefined) {
_local1.hostComponent = ((_local1._parent.controller == undefined) ? (_local1._parent) : (_local1._parent.controller));
}
if (_local1.customTextStyle == undefined) {
if (_local1.hostComponent.textStyle == undefined) {
_local1.hostComponent.textStyle = new TextFormat();
}
_local1.textStyle = _local1.hostComponent.textStyle;
_local1.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var _local1 = this;
var _local2 = _local1.hostComponent.styleTable.embedFonts.value;
if (_local2 != undefined) {
_local1.labelField.embedFonts = _local2;
}
_local1.labelField.setNewTextFormat(_local1.textStyle);
_local1.labelField.text = label;
_local1.labelField._height = _local1.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
var _local2 = this;
var _local3 = enable;
_local2.enable = _local3;
var _local1 = _local2.hostComponent.styleTable[(_local3 ? "textColor" : "textDisabled")].value;
if (_local1 == undefined) {
_local1 = (_local3 ? 0 : 8947848);
}
_local2.setColor(_local1);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 49 MovieClip [squares2] Frame 36
stop();
Symbol 55 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
} else {
_root.gotoAndPlay(7);
}
Symbol 55 MovieClip Frame 2
gotoAndPlay (1);
Symbol 70 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 360
_root.evilsquares = 0;
_root.goodl.gotoAndPlay(7);
_root.goodr.gotoAndPlay(7);
_root.goodt.gotoAndPlay(7);
_root.goodb.gotoAndPlay(7);
Symbol 70 MovieClip Frame 361
stop();
Symbol 70 MovieClip Frame 720
_root.slower = 0;
Symbol 70 MovieClip Frame 721
stop();
Symbol 70 MovieClip Frame 811
stop();
_root.square2._xscale = _root.square2._xscale / 0.95;
_root.square2._yscale = _root.square2._xscale;
Symbol 70 MovieClip Frame 812
_root.square2._xscale = _root.square2._xscale / 0.95;
_root.square2._yscale = _root.square2._xscale;
Symbol 70 MovieClip Frame 813
_root.square2._xscale = _root.square2._xscale / 0.95;
_root.square2._yscale = _root.square2._xscale;
Symbol 70 MovieClip Frame 814
_root.square2._xscale = _root.square2._xscale / 0.95;
_root.square2._yscale = _root.square2._xscale;
Symbol 70 MovieClip Frame 815
_root.square2._xscale = _root.square2._xscale / 0.95;
_root.square2._yscale = _root.square2._xscale;
Symbol 70 MovieClip Frame 816
_root.square2._xscale = _root.square2._xscale / 0.95;
_root.square2._yscale = _root.square2._xscale;
Symbol 70 MovieClip Frame 817
_root.square2._xscale = _root.square2._xscale / 0.95;
_root.square2._yscale = _root.square2._xscale;
Symbol 70 MovieClip Frame 900
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 360
_root.invincible = 0;
Symbol 77 MovieClip Frame 361
stop();
Symbol 77 MovieClip Frame 720
_root.slower = 0;
_root.lead.setVolume(_root.leadvol);
_root.bass.setVolume(0);
Symbol 77 MovieClip Frame 721
stop();
Symbol 77 MovieClip Frame 811
stop();
_root.square2._xscale = _root.square2._xscale * 0.95;
_root.square2._yscale = _root.square2._xscale;
Symbol 77 MovieClip Frame 812
_root.square2._xscale = _root.square2._xscale * 0.95;
_root.square2._yscale = _root.square2._xscale;
Symbol 77 MovieClip Frame 813
_root.square2._xscale = _root.square2._xscale * 0.95;
_root.square2._yscale = _root.square2._xscale;
Symbol 77 MovieClip Frame 814
_root.square2._xscale = _root.square2._xscale * 0.95;
_root.square2._yscale = _root.square2._xscale;
Symbol 77 MovieClip Frame 815
_root.square2._xscale = _root.square2._xscale * 0.95;
_root.square2._yscale = _root.square2._xscale;
Symbol 77 MovieClip Frame 816
_root.square2._xscale = _root.square2._xscale * 0.95;
_root.square2._yscale = _root.square2._xscale;
Symbol 77 MovieClip Frame 817
_root.square2._xscale = _root.square2._xscale * 0.95;
_root.square2._yscale = _root.square2._xscale;
Symbol 77 MovieClip Frame 818
_root.square2._xscale = _root.square2._xscale * 0.95;
_root.square2._yscale = _root.square2._xscale;
Symbol 77 MovieClip Frame 819
_root.square2._xscale = _root.square2._xscale * 0.95;
_root.square2._yscale = _root.square2._xscale;
Symbol 77 MovieClip Frame 900
stop();
Symbol 82 MovieClip Frame 1
gotoAndPlay (1);
Symbol 84 MovieClip Frame 1
gotoAndPlay (1);
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 6
stop();
Symbol 88 MovieClip Frame 11
stop();
Symbol 90 MovieClip Frame 60
gotoAndPlay (1);
Symbol 90 MovieClip Frame 71
gotoAndPlay (1);
Symbol 106 Button
on (release) {
gotoAndPlay (2);
}
on (rollOver) {
playsquare._alpha = 100;
playsquare.gotoAndPlay(61);
}
on (rollOut) {
playsquare._alpha = 0;
}
Symbol 111 Button
on (rollOver) {
playsquare2._alpha = 100;
playsquare2.gotoAndPlay(61);
}
on (rollOut) {
playsquare2._alpha = 0;
}
on (release) {
if (_root.music == 1) {
_root.bassvol = 0;
_root.leadvol = 0;
_root.lead.setVolume(0);
_root.bass.setVolume(_root.bassvol);
musicbutton._alpha = 20;
_root.music = 0;
} else if (_root.music == 0) {
_root.bassvol = 75;
_root.leadvol = 100;
_root.lead.setVolume(0);
_root.bass.setVolume(_root.bassvol);
musicbutton._alpha = 100;
_root.music = 1;
}
}
Symbol 115 MovieClip Frame 25
stop();
Symbol 123 Button
on (release) {
_root.gotoAndPlay(2);
}
on (rollOver) {
_root.playsquare._alpha = 100;
_root.playsquare.gotoAndPlay(61);
}
on (rollOut) {
_root.playsquare._alpha = 0;
}
Symbol 129 MovieClip Frame 12
stop();
Symbol 133 Button
on (release) {
getURL ("http://www.balltoucher.com", "_self");
}