Frame 1
ifFrameLoaded (3) {
gotoAndPlay ("preloader");
}
fscommand ("allowscale", "false");
_quality = "medium";
Frame 2
gotoAndPlay(_currentframe - 1);
Frame 3
ifFrameLoaded (5) {
_root.fader.gotoAndPlay("afterfade");
gotoAndStop ("frontpage");
}
Instance of Symbol 90 MovieClip "hsm" in Frame 3
onClipEvent (load) {
this.swapDepths(-5000);
}
Instance of Symbol 95 MovieClip "fader" in Frame 3
onClipEvent (load) {
this.swapDepths(-4000);
}
Instance of Symbol 99 MovieClip in Frame 3
onClipEvent (enterFrame) {
total_time = getTimer();
cur_time = total_time - mark_time;
if (cur_time > 1000) {
mark_time = total_time;
this.fp = this._currentframe;
a = 60;
if (((fp / a) * 100) < 100) {
this.afps = (fp / a) * 100;
} else {
this.afps = 100;
}
this.gotoAndPlay(1);
}
_root.gamespeed = this.afps;
}
onClipEvent (load) {
mark_time = getTimer();
}
Frame 4
gotoAndPlay(_currentframe - 1);
Frame 5
playername = "";
Instance of Symbol 107 MovieClip "bar" in Frame 5
onClipEvent (enterFrame) {
loadedbytes = _root.getBytesLoaded();
totalbytes = 2550000 /* 0x26E8F0 */;
loadedkbytes = Math.ceil(loadedbytes / 1000);
totalkbytes = Math.ceil(totalbytes / 1000);
frame = int(loadedbytes / (totalbytes / 100));
if (frame > 100) {
frame = 100;
}
this.gotoAndStop(frame);
}
Instance of Symbol 114 MovieClip in Frame 5
onClipEvent (enterFrame) {
ifFrameLoaded (10) {
this.gotoAndStop(2);
}
}
Frame 6
stopAllSounds();
_root.chooserobot = 0;
beam1.clear();
beam2.clear();
beam3.clear();
beam4.clear();
pbeam1.clear();
pbeam2.clear();
pbeam3.clear();
pbeam4.clear();
stopAllSounds();
mx.remoting.debug.NetDebug.initialize();
_global.phpPath = "http://www.pepsiworld.com/amfphp/";
mx.remoting.NetServices.setDefaultGatewayUrl(phpPath + "gateway.php");
_global.conn = mx.remoting.NetServices.createGatewayConnection();
var NUSUNreturns = {};
_global.NUSUN = conn.getService("MotorolaGame", NUSUNreturns);
var player0 = {};
var player1 = {};
var player2 = {};
var player3 = {};
var player4 = {};
var player5 = {};
var player6 = {};
var player7 = {};
var player8 = {};
var player9 = {};
_global.topXPlayers = 10;
NUSUNreturns.getGameUserId_Result = function (Result) {
_global.userID = Result.RESULT;
debug.text = debug.text + (("_root.playername " + playername) + newline);
debug.text = debug.text + (("_root.score " + score) + newline);
debug.text = debug.text + (("_root.userID " + userID) + newline);
NUSUN.saveGameScore(_root.playername, _root.score, userID);
};
NUSUNreturns.saveGameScore_Result = function (Result) {
_root.scoremenu.youLost.pleaseWait_mc.gotoAndStop(2);
NUSUN.getGameTopScorerList(topXPlayers);
};
NUSUNreturns.getGameTopScorerList_Result = function (Result) {
i = 0;
while (i <= topXPlayers) {
_root["player" + i].rank = Result.RESULT[i].RANK;
_root["player" + i].player = Result.RESULT[i].PLAYER;
_root["player" + i].score = Result.RESULT[i].SCORE;
debug.text = debug.text + (((("player" + i) + ".player: ") + _root["player" + i].player) + newline);
debug.text = debug.text + (((("player" + i) + ".score: ") + _root["player" + i].score) + newline);
debug.text = debug.text + (((("player" + i) + ".rank: ") + _root["player" + i].rank) + "\n \n");
i++;
}
_root.hsm.gotoAndStop(2);
};
Instance of Symbol 195 MovieClip "robot1" in Frame 6
onClipEvent (enterFrame) {
this.robot.chest.gotoAndStop(t);
this.robot.head.gotoAndStop(t);
this.robot.leg1.gotoAndStop(t);
this.robot.leg2.gotoAndStop(t);
this.robot.leg3.gotoAndStop(t);
this.robot.leg4.gotoAndStop(t);
this.robot.arm1.gotoAndStop(t);
this.robot.arm2.gotoAndStop(t);
this.robot.arm3.gotoAndStop(t);
this.robot.arm4.gotoAndStop(t);
if ((_root.chooserobot != 0) & (_root.chooserobot != 1)) {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
} else if (this._alpha <= 0) {
_root.fader.play();
_root.fader.dest = "instructions";
}
}
}
onClipEvent (load) {
t = 1;
}
Instance of Symbol 195 MovieClip "robot2" in Frame 6
onClipEvent (enterFrame) {
this.robot.chest.gotoAndStop(t);
this.robot.head.gotoAndStop(t);
this.robot.leg1.gotoAndStop(t);
this.robot.leg2.gotoAndStop(t);
this.robot.leg3.gotoAndStop(t);
this.robot.leg4.gotoAndStop(t);
this.robot.arm1.gotoAndStop(t);
this.robot.arm2.gotoAndStop(t);
this.robot.arm3.gotoAndStop(t);
this.robot.arm4.gotoAndStop(t);
if ((_root.chooserobot != 0) & (_root.chooserobot != 2)) {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
} else if (this._alpha <= 0) {
_root.fader.play();
_root.fader.dest = "instructions";
}
}
}
onClipEvent (load) {
t = 2;
}
Instance of Symbol 195 MovieClip "robot3" in Frame 6
onClipEvent (enterFrame) {
this.robot.chest.gotoAndStop(t);
this.robot.head.gotoAndStop(t);
this.robot.leg1.gotoAndStop(t);
this.robot.leg2.gotoAndStop(t);
this.robot.leg3.gotoAndStop(t);
this.robot.leg4.gotoAndStop(t);
this.robot.arm1.gotoAndStop(t);
this.robot.arm2.gotoAndStop(t);
this.robot.arm3.gotoAndStop(t);
this.robot.arm4.gotoAndStop(t);
if ((_root.chooserobot != 0) & (_root.chooserobot != 4)) {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
} else if (this._alpha <= 0) {
_root.fader.play();
_root.fader.dest = "instructions";
}
}
}
onClipEvent (load) {
t = 4;
}
Instance of Symbol 195 MovieClip "robot4" in Frame 6
onClipEvent (enterFrame) {
this.robot.chest.gotoAndStop(t);
this.robot.head.gotoAndStop(t);
this.robot.leg1.gotoAndStop(t);
this.robot.leg2.gotoAndStop(t);
this.robot.leg3.gotoAndStop(t);
this.robot.leg4.gotoAndStop(t);
this.robot.arm1.gotoAndStop(t);
this.robot.arm2.gotoAndStop(t);
this.robot.arm3.gotoAndStop(t);
this.robot.arm4.gotoAndStop(t);
if ((_root.chooserobot != 0) & (_root.chooserobot != 3)) {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
} else if (this._alpha <= 0) {
_root.fader.play();
_root.fader.dest = "instructions";
}
}
}
onClipEvent (load) {
t = 3;
}
Instance of Symbol 201 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hit.hitTest(_root._xmouse, _root._ymouse)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
onClipEvent (load) {
pn = 1;
}
onClipEvent (mouseDown) {
if (this.hit.hitTest(_root._xmouse, _root._ymouse)) {
_root.chooserobot = 1;
_root.robot1.robot.gotoAndPlay("picked");
}
}
Instance of Symbol 205 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hit.hitTest(_root._xmouse, _root._ymouse)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
onClipEvent (load) {
pn = 2;
}
onClipEvent (mouseDown) {
if (this.hit.hitTest(_root._xmouse, _root._ymouse)) {
_root.chooserobot = 2;
_root.robot2.robot.gotoAndPlay("picked");
}
}
Instance of Symbol 208 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hit.hitTest(_root._xmouse, _root._ymouse)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
onClipEvent (load) {
pn = 3;
}
onClipEvent (mouseDown) {
if (this.hit.hitTest(_root._xmouse, _root._ymouse)) {
_root.chooserobot = 4;
_root.robot3.robot.gotoAndPlay("picked");
}
}
Instance of Symbol 211 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hit.hitTest(_root._xmouse, _root._ymouse)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
onClipEvent (load) {
pn = 4;
}
onClipEvent (mouseDown) {
if (this.hit.hitTest(_root._xmouse, _root._ymouse)) {
_root.chooserobot = 3;
_root.robot4.robot.gotoAndPlay("picked");
}
}
Frame 7
txs = 14;
trail = 10;
cc = 0;
thickness_x = 0;
thickness_y = 0;
icon_offsetx = 10;
icon_offsety = 6;
box_num = 0;
difficulty = 80;
playerstatus = "alive";
enemystatus = "alive";
_root.player_deflections = 0;
_root.player_hits = 0;
_root.gamestatus = "go";
_quality = "medium";
enemyfreeze = 0;
playerfreeze = 0;
function icon_code(name) {
if (((name.action == "set") & (_root.instructiongo == true)) & (_root.cue.cur_qqq < 6)) {
name.icon_color = _root.cue["qqq" + _root.cue.cur_qqq];
name.en.en.gotoAndStop(name.icon_color);
name.timer = random(60) + 60;
name.action = "select_position";
} else if (name.action == "select_position") {
if (_root["pos_fill" + name.col] == false) {
_root["pos_fill" + name.col] = true;
name._x = 97;
name._y = icon_offsety;
name.action = "grabme";
}
} else if (name.action == "waitset") {
name._x = -100;
name._y = -100;
_root["pos_fill" + name.col] = false;
name.wait_time = 1;
name.en.gotoAndStop(1);
name.action = "wait";
} else if (name.action == "wait") {
if (name.wait_time <= 0) {
name.action = "set";
name.en.gotoAndPlay(1);
} else {
name.en.gotoAndStop(1);
name.wait_time--;
}
} else if (name.action == "grabme") {
} else if (name.action == "nograb") {
} else if (name.action == "drag") {
_root["pos_fill" + name.col] = false;
} else if (name.action == "") {
} else if (name.action == "grabbed") {
}
}
pf = 0;
while (pf < 40) {
_root["pos_fill" + pf] = false;
pf++;
}
function fireball(name) {
if (name.action == "set") {
name._x = 225;
name._y = 225;
name.gotoAndStop(1);
name.gravity = 1;
name.xspeed = 40;
name.yspeed = -7;
name.action = "fire";
name.deflect = false;
blast = new Sound(_root.snd);
blast.attachSound("blast");
blast.start(0, 0);
blast.setVolume(140);
_root.ebb = 0;
} else if (name.action == "fire") {
name.x = name._x + name.xspeed;
name.y = name._y + name.yspeed;
name.yspeed = name.yspeed + name.gravity;
if ((name._x < 1000) & (name._x > -200)) {
name._x = name.x;
} else {
name.action == "off";
}
if (name._y < 600) {
name._y = name.y;
} else {
name.action == "off";
}
_root.ebb++;
_root["ex" + ebb] = this._x;
_root["ey" + ebb] = this._y;
name.dff = 0.9;
if ((((name.deflect == true) & name.hit.hitTest(_root.robot.robot.arm2.hit)) & (_root.cue.cur_qqq != (_root.boxgoal + 1))) & (_root.robot.robot.curdance != 0)) {
name.xspeed = (-name.xspeed) * name.dff;
name.yspeed = (-name.yspeed) * name.dff;
name.deflect = false;
name.tail._yscale = 10;
light = new Sound(_root.snd);
light.attachSound("light");
light.start(0, 0);
light.setVolume(20);
} else if ((((name.deflect == true) & name.hit.hitTest(_root.robot.robot.arm1.hit)) & (_root.cue.cur_qqq != (_root.boxgoal + 1))) & (_root.robot.robot.curdance != 0)) {
name.xspeed = (-name.xspeed) * name.dff;
name.yspeed = (-name.yspeed) * name.dff;
name.deflect = false;
name.tail._yscale = 10;
light = new Sound(_root.snd);
light.attachSound("light");
light.start(0, 0);
light.setVolume(20);
} else if ((name.deflect == true) & name.hit.hitTest(_root.robot.robot.chest)) {
if (_root.cue.cur_qqq == (_root.boxgoal + 1)) {
_root.robot.robot.gotoAndPlay("death");
} else {
_root.player_deflections++;
_root.word_enemy.gotoAndPlay("deflect");
_root.robot.robot.gotoAndPlay("smack");
}
name.action = "explode";
}
if ((((name.deflect == false) & name.hit.hitTest(_root.enemy.robot.arm1.hit)) & (_root.cue.cur_qqq != (_root.boxgoal + 1))) & (_root.enemy.robot.curdance != 0)) {
name.xspeed = (-name.xspeed) * name.dff;
name.yspeed = (-name.yspeed) * name.dff;
name.deflect = true;
name.tail._yscale = 10;
light = new Sound(_root.snd);
light.attachSound("light");
light.start(0, 0);
light.setVolume(20);
} else if ((((name.deflect == false) & name.hit.hitTest(_root.enemy.robot.arm2.hit)) & (_root.cue.cur_qqq != (_root.boxgoal + 1))) & (_root.enemy.robot.curdance != 0)) {
name.xspeed = (-name.xspeed) * name.dff;
name.yspeed = (-name.yspeed) * name.dff;
name.deflect = true;
name.tail._yscale = 10;
light = new Sound(_root.snd);
light.attachSound("light");
light.start(0, 0);
light.setVolume(20);
} else if ((name.deflect == false) & name.hit.hitTest(_root.enemy.robot.chest)) {
if (_root.cue.cur_qqq == (_root.boxgoal + 1)) {
_root.enemy.robot.gotoAndPlay("death");
_root.enemystatus = "dead";
} else {
_root.player_hits++;
_root.word_player.gotoAndPlay("hit");
_root.enemy.robot.gotoAndPlay("smack");
}
name.action = "explode";
}
} else if (name.action == "explode") {
name.gotoAndStop("dead");
} else if (name.action == "off") {
name._x = -300;
name._y = -300;
}
}
function fireball2(name) {
if (name.action == "set") {
name._x = 700;
name._y = 225;
name.gotoAndStop(1);
name.gravity = 1;
name.xspeed = -(random(15) + 25);
name.yspeed = -7;
name.action = "fire";
name.deflect = false;
blast = new Sound(_root.snd);
blast.attachSound("blast");
blast.start(0, 0);
blast.setVolume(140);
_root.ebb = 0;
} else if (name.action == "fire") {
name.x = name._x + name.xspeed;
name.y = name._y + name.yspeed;
name.yspeed = name.yspeed + name.gravity;
if ((name._x < 1000) & (name._x > -200)) {
name._x = name.x;
} else {
name.action == "off";
}
if (name._y < 600) {
name._y = name.y;
} else {
name.action == "off";
}
name.dff = 0.9;
if ((((name.deflect == true) & name.hit.hitTest(_root.enemy.robot.arm2.hit)) & (_root.cue2.cur_qqq != (_root.eboxgoal + 1))) & (_root.enemy.robot.curdance != 0)) {
name.xspeed = (-name.xspeed) * name.dff;
name.yspeed = (-name.yspeed) * name.dff;
name.deflect = false;
name.tail._yscale = 10;
light = new Sound(_root.snd);
light.attachSound("light");
light.start(0, 0);
light.setVolume(20);
} else if ((((name.deflect == true) & name.hit.hitTest(_root.enemy.robot.arm1.hit)) & (_root.cue2.cur_qqq != (_root.eboxgoal + 1))) & (_root.enemy.robot.curdance != 0)) {
name.xspeed = (-name.xspeed) * name.dff;
name.yspeed = (-name.yspeed) * name.dff;
name.deflect = false;
name.tail._yscale = 10;
light = new Sound(_root.snd);
light.attachSound("light");
light.start(0, 0);
light.setVolume(20);
} else if ((name.deflect == true) & name.hit.hitTest(_root.enemy.robot.chest)) {
if (_root.cue2.cur_qqq == (_root.eboxgoal + 1)) {
_root.enemy.robot.gotoAndPlay("death");
} else {
_root.word_player.gotoAndPlay("deflect");
_root.enemy.robot.gotoAndPlay("smack");
}
name.action = "explode";
}
if ((((name.deflect == false) & name.hit.hitTest(_root.robot.robot.arm1.hit)) & (_root.cue2.cur_qqq != (_root.eboxgoal + 1))) & (_root.robot.robot.curdance != 0)) {
name.xspeed = (-name.xspeed) * name.dff;
name.yspeed = (-name.yspeed) * name.dff;
name.deflect = true;
name.tail._yscale = 10;
light = new Sound(_root.snd);
light.attachSound("light");
light.start(0, 0);
light.setVolume(20);
} else if ((((name.deflect == false) & name.hit.hitTest(_root.robot.robot.arm2.hit)) & (_root.cue2.cur_qqq != (_root.eboxgoal + 1))) & (_root.robot.robot.curdance != 0)) {
name.xspeed = (-name.xspeed) * name.dff;
name.yspeed = (-name.yspeed) * name.dff;
name.deflect = true;
name.tail._yscale = 10;
light = new Sound(_root.snd);
light.attachSound("light");
light.start(0, 0);
light.setVolume(20);
} else if ((name.deflect == false) & name.hit.hitTest(_root.robot.robot.chest)) {
if (_root.cue2.cur_qqq == (_root.eboxgoal + 1)) {
_root.robot.robot.gotoAndPlay("death");
_root.playerstatus = "dead";
} else {
_root.word_enemy.gotoAndPlay("hit");
_root.robot.robot.gotoAndPlay("smack");
}
name.action = "explode";
}
} else if (name.action == "explode") {
name.gotoAndStop("dead");
} else if (name.action == "off") {
name._x = -300;
name._y = -300;
}
}
beam1.clear();
beam2.clear();
beam3.clear();
beam4.clear();
pbeam1.clear();
pbeam2.clear();
pbeam3.clear();
pbeam4.clear();
stopAllSounds();
Instance of Symbol 258 MovieClip "ball" in Frame 7
onClipEvent (enterFrame) {
_root.fireball(this);
if (this.tail._yscale < 100) {
this.tail._yscale = this.tail._yscale + 10;
}
x2 = this.xspeed;
y2 = this.yspeed;
if (x < 0) {
this.head._yscale = -100;
} else if (x > 0) {
this.head._yscale = 100;
}
if (x2 > 0) {
baseangle = -90;
} else if (x2 < 0) {
baseangle = 90;
}
if (x2 > 0) {
angleperc = y2 / x2;
if (angleperc > 2) {
angleperc = 2;
} else if (angleperc < -2) {
angleperc = -2;
}
this.tail._rotation = (angleperc * 45) - 90;
} else if (x2 < 0) {
x2 = -x2;
angleperc = y2 / x2;
if (angleperc > 2) {
angleperc = 2;
} else if (angleperc < -2) {
angleperc = -2;
}
this.tail._rotation = (angleperc * -45) + 90;
}
}
Instance of Symbol 259 MovieClip "tt" in Frame 7
onClipEvent (enterFrame) {
if (_root.playerstatus == "dead") {
_root.tarbox._visible = false;
action = "";
this._x = -300;
this._y = -300;
drawit = false;
_root.beam1.clear();
_root.beam2.clear();
_root.beam3.clear();
_root.beam4.clear();
} else if (_root.enemystatus == "dead") {
_root.pbeam1.clear();
_root.pbeam2.clear();
_root.pbeam3.clear();
_root.pbeam4.clear();
if (_root.scoremenu._currentframe == 1) {
_root.scoremenu.gotoAndStop(2);
_root.robot.robot.gotoAndPlay("windance");
}
_root.tarbox._visible = false;
action = "";
this._x = -300;
this._y = -300;
_root.beam1.clear();
_root.beam2.clear();
_root.beam3.clear();
_root.beam4.clear();
}
if (((action == "off") & (_root.gamestatus != "wait")) & (_root.trackit == true)) {
drawit = false;
_root.tarbox._visible = true;
_root.tarbox._x = _root._xmouse;
_root.tarbox._y = _root._ymouse;
this.onMouseDown = function () {
if (((action == "off") & (_root.gamestatus != "wait")) & (_root.trackit == true)) {
gotox = _root._xmouse;
gotoy = _root._ymouse;
ssh = _root.rb_y3 - _root.rb_y1;
ssw = _root.rb_x2 - _root.rb_x1;
this._x = _root.rb_x1 + (ssw / 2);
this._y = _root.rb_y1 + (ssh / 2);
_root.tarbox._visible = false;
action = "seek";
suck1 = new Sound(_root.snd);
suck1.attachSound("suck1");
suck1.start(0, 0);
suck1.setVolume(100);
}
};
} else if (action == "seek") {
closest = "";
gotsomething = false;
l = -(this._width / 2);
r = this._width / 2;
t = -(this._height / 2);
d = this._height / 2;
this._visible = true;
drawit = true;
xdif = this._x - gotox;
ydif = this._y - gotoy;
this._x = this._x - (xdif / 3);
this._y = this._y - (ydif / 3);
if ((Math.abs(xdif) <= 3) & (Math.abs(ydif) <= 3)) {
(sk = 1);
(best_td = 1000);
while (sk <= _root.box_num) {
xd = (_root["bn" + sk]._x - gotox) + 22;
yd = (_root["bn" + sk]._y - gotoy) + 22;
td = Math.abs(xd) + Math.abs(yd);
if (td < best_td) {
best_td = td;
closest = _root["bn" + sk];
}
sk++;
}
if (closest.hitTest(gotox, gotoy, true)) {
closest.action = "drag";
gotsomething = true;
gotit = new Sound(_root.snd);
gotit.attachSound("gotit");
gotit.start(0, 0);
gotit.start(0, 0);
gotit.start(0, 0);
gotit.setVolume(100);
}
action = "return";
}
} else if (action == "return") {
xdif = this._x - (_root.rb_x1 + (ssw / 2));
ydif = this._y - (_root.rb_y1 + (ssh / 2));
this._x = this._x - (xdif / 4);
this._y = this._y - (ydif / 4);
if (gotsomething == true) {
closest._x = this._x - 22;
closest._y = this._y - 22;
}
if ((Math.abs(xdif) <= 3) & (Math.abs(ydif) <= 3)) {
if (gotsomething == true) {
if (closest.icon_color == _root.cue["qqq" + _root.cue.cur_qqq]) {
_root.cue.match = true;
_root.instr.gotoAndStop("step3");
right = new Sound(_root.snd);
right.attachSound("right");
right.start(0, 0);
right.setVolume(50);
if (_root.robot.robot.curdance != closest.icon_color) {
_root.robot.robot.gotoAndStop("dance" + closest.icon_color);
}
_root.ball.action = "set";
closest.action = "waitset";
} else if (closest.icon_color != _root.cue["qqq" + _root.cue.cur_qqq]) {
closest.action = "waitset";
}
}
_root.beam1.clear();
_root.beam2.clear();
_root.beam3.clear();
_root.beam4.clear();
drawit = false;
this._visible = false;
action = "off";
} else {
drawit = true;
}
}
if (drawit == true) {
_root.beam.clear();
_root.createEmptyMovieClip("beam1", 1);
with (_root.beam1) {
beginFill(52479, 30);
lineStyle(1, 16711935, 0);
moveTo(l + this._x, t + this._y);
lineTo(l + this._x, d + this._y);
lineTo(_root.rb_x3, _root.rb_y3);
lineTo(_root.rb_x1, _root.rb_y1);
endFill();
}
_root.createEmptyMovieClip("beam2", 2);
with (_root.beam2) {
beginFill(52479, 30);
lineStyle(1, 16711935, 0);
moveTo(r + this._x, t + this._y);
lineTo(r + this._x, d + this._y);
lineTo(_root.rb_x4, _root.rb_y4);
lineTo(_root.rb_x2, _root.rb_y2);
endFill();
}
_root.createEmptyMovieClip("beam3", 3);
with (_root.beam3) {
beginFill(6750207, 60);
lineStyle(1, 16711935, 0);
moveTo(r + this._x, t + this._y);
lineTo(l + this._x, t + this._y);
lineTo(_root.rb_x1, _root.rb_y1);
lineTo(_root.rb_x2, _root.rb_y2);
endFill();
}
_root.createEmptyMovieClip("beam4", 4);
with (_root.beam4) {
beginFill(3394815, 60);
lineStyle(1, 16711935, 0);
moveTo(r + this._x, d + this._y);
lineTo(l + this._x, d + this._y);
lineTo(_root.rb_x3, _root.rb_y3);
lineTo(_root.rb_x4, _root.rb_y4);
endFill();
}
var bl = (new flash.filters.BlurFilter());
a = Math.abs(this._x - _root.rb_x3) / 50;
b = Math.abs(this._y - _root.rb_y3) / 50;
bl.blurX = a + 3;
bl.blurY = b + 3;
}
}
onClipEvent (load) {
action = "off";
}
Instance of Symbol 272 MovieClip "cue" in Frame 7
onClipEvent (load) {
_root.boxgoal = 20;
this.qqq1 = 5;
this.qqq2 = 4;
this.qqq3 = 4;
this.qqq4 = 3;
this.qqq5 = 2;
this.qqq6 = 1;
this.qqq7 = 6;
this.qqq8 = 4;
this.qqq9 = 4;
this.qqq10 = 4;
this.qqq11 = 4;
this.qqq12 = 4;
this.qqq13 = 4;
this.qqq14 = 4;
this.qqq15 = 4;
cur_qqq = 1;
match = false;
}
onClipEvent (enterFrame) {
_root.qscore = cur_qqq - 1;
}
Instance of Symbol 275 MovieClip "cue2" in Frame 7
onClipEvent (load) {
_root.eboxgoal = 20;
b = 1;
while (b <= _root.eboxgoal) {
this["qqq" + b] = random(6) + 1;
b++;
}
cur_qqq = 1;
match = false;
}
onClipEvent (enterFrame) {
_root.qscore2 = cur_qqq - 1;
}
Instance of Symbol 278 MovieClip "skipr" in Frame 7
onClipEvent (enterFrame) {
this.gotoAndStop(_root.instr._currentframe);
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.trackit = false;
} else {
_root.trackit = true;
}
}
Instance of Symbol 195 MovieClip "robot" in Frame 7
onClipEvent (enterFrame) {
this.robot.chest.gotoAndStop(t);
this.robot.head.gotoAndStop(t);
this.robot.leg1.gotoAndStop(t);
this.robot.leg2.gotoAndStop(t);
this.robot.leg3.gotoAndStop(t);
this.robot.leg4.gotoAndStop(t);
this.robot.arm1.gotoAndStop(t);
this.robot.arm2.gotoAndStop(t);
this.robot.arm3.gotoAndStop(t);
this.robot.arm4.gotoAndStop(t);
}
onClipEvent (load) {
t = _root.chooserobot;
}
Instance of Symbol 195 MovieClip "enemy" in Frame 7
onClipEvent (enterFrame) {
this.robot.chest.gotoAndStop(t);
this.robot.head.gotoAndStop(t);
this.robot.leg1.gotoAndStop(t);
this.robot.leg2.gotoAndStop(t);
this.robot.leg3.gotoAndStop(t);
this.robot.leg4.gotoAndStop(t);
this.robot.arm1.gotoAndStop(t);
this.robot.arm2.gotoAndStop(t);
this.robot.arm3.gotoAndStop(t);
this.robot.arm4.gotoAndStop(t);
}
onClipEvent (load) {
if ((_root.chooserobot + 1) <= 4) {
t = _root.chooserobot + 1;
} else {
t = (_root.chooserobot + 1) - 4;
}
}
Instance of Symbol 311 MovieClip "instr" in Frame 7
onClipEvent (mouseDown) {
if ((this._currentframe == 1) & (_root.trackit == true)) {
_root.instructiongo = true;
this.nextFrame();
_root.cue._alpha = 100;
_root.cue2._alpha = 100;
}
}
Instance of Symbol 313 MovieClip in Frame 7
onClipEvent (enterFrame) {
_root.icon_code(this);
}
onClipEvent (load) {
action = "waitset";
_root.box_num++;
this._name = "bn" + _root.box_num;
}
Frame 8
function setgame() {
txs = 14;
trail = 10;
cc = 0;
thickness_x = 0;
thickness_y = 0;
icon_offsetx = 10;
icon_offsety = 6;
box_num = 0;
difficulty = 120;
playerstatus = "alive";
enemystatus = "alive";
_root.player_deflections = 0;
_root.player_hits = 0;
_root.player_ringtones = 0;
_root.gamestatus = "wait";
score = 0;
enemyfreeze = 0;
playerfreeze = 0;
gamelevel = 0;
}
function levelup() {
gamelevel++;
stopAllSounds();
_quality = "low";
txs = 14;
trail = 10;
cc = 0;
thickness_x = 0;
thickness_y = 0;
icon_offsetx = 10;
icon_offsety = 6;
box_num = 0;
enemyfreeze = 0;
playerfreeze = 0;
if (difficulty >= 120) {
difficulty = 100;
}
if (difficulty > 10) {
difficulty = difficulty - 10;
}
playerstatus = "alive";
enemystatus = "alive";
_root.player_deflections = 0;
_root.player_hits = 0;
_root.player_ringtones = 0;
_root.gamestatus = "wait";
}
beam1.clear();
beam2.clear();
beam3.clear();
beam4.clear();
stopAllSounds();
_quality = "low";
setgame();
play();
Frame 9
play();
function icon_code(name) {
if (name.action == "set") {
if (((_root.playerstatus != "dead") & (_root.enemystatus != "dead")) & (_root.gamestatus != "wait")) {
name.icon_color = random(6) + 1;
name.select_special = random(100);
if (name.select_special > 96) {
name.icon_color = 7;
}
name.en.en.gotoAndStop(name.icon_color);
name.timer = random(60) + 60;
name.col = random(36);
name.action = "select_position";
}
} else if (name.action == "select_position") {
if (_root["pos_fill" + name.col] == false) {
_root["pos_fill" + name.col] = true;
if (name.col < 20) {
name._x = icon_offsetx + (45 * name.col);
name._y = icon_offsety;
name.action = "grabme";
} else if (name.col == 20) {
name._x = icon_offsetx + 360;
name._y = icon_offsety + 45;
name.action = "grabme";
} else if (name.col == 21) {
name._x = icon_offsetx + 405;
name._y = icon_offsety + 45;
name.action = "grabme";
} else if (name.col == 22) {
name._x = icon_offsetx + 450;
name._y = icon_offsety + 45;
name.action = "grabme";
} else if (name.col == 23) {
name._x = icon_offsetx + 495;
name._y = icon_offsety + 45;
name.action = "grabme";
} else if (name.col == 24) {
name._x = icon_offsetx + 360;
name._y = 343;
name.action = "grabme";
} else if (name.col == 25) {
name._x = icon_offsetx + 405;
name._y = 343;
name.action = "grabme";
} else if (name.col == 26) {
name._x = icon_offsetx + 450;
name._y = 343;
name.action = "grabme";
} else if (name.col == 27) {
name._x = icon_offsetx + 495;
name._y = 343;
name.action = "grabme";
} else if (name.col == 29) {
name._x = icon_offsetx + 315;
name._y = 386;
name.action = "grabme";
} else if (name.col == 30) {
name._x = icon_offsetx + 360;
name._y = 386;
name.action = "grabme";
} else if (name.col == 31) {
name._x = icon_offsetx + 405;
name._y = 386;
name.action = "grabme";
} else if (name.col == 32) {
name._x = icon_offsetx + 450;
name._y = 386;
name.action = "grabme";
} else if (name.col == 33) {
name._x = icon_offsetx + 495;
name._y = 386;
name.action = "grabme";
} else if (name.col == 34) {
name._x = icon_offsetx + 540;
name._y = 386;
name.action = "grabme";
}
} else {
name.col = random(20);
}
} else if (name.action == "waitset") {
name._x = -100;
name._y = -100;
_root["pos_fill" + name.col] = false;
name.wait_time = random(50) + 20;
name.en.gotoAndStop(1);
name.action = "wait";
} else if (name.action == "wait") {
if (name.wait_time <= 0) {
name.action = "set";
name.en.gotoAndPlay(1);
} else {
name.en.gotoAndStop(1);
name.wait_time--;
}
} else if (name.action == "grabme") {
} else if (name.action == "nograb") {
} else if (name.action == "drag") {
_root["pos_fill" + name.col] = false;
} else if (name.action == "") {
} else if (name.action == "grabbed") {
}
}
pf = 0;
while (pf < 40) {
_root["pos_fill" + pf] = false;
pf++;
}
function fireball(name) {
if (name.action == "set") {
name._x = 225;
name._y = 225;
name.gotoAndStop(1);
name.gravity = 1;
name.xspeed = random(15) + 25;
name.yspeed = -7;
name.action = "fire";
name.deflect = false;
blast = new Sound(_root.snd);
blast.attachSound("blast");
blast.start(0, 0);
blast.setVolume(140);
_root.ebb = 0;
} else if (name.action == "fire") {
name.x = name._x + name.xspeed;
name.y = name._y + name.yspeed;
name.yspeed = name.yspeed + name.gravity;
if ((name._x < 1000) & (name._x > -200)) {
name._x = name.x;
} else {
name.action == "off";
}
if (name._y < 600) {
name._y = name.y;
} else {
name.action == "off";
}
_root.ebb++;
_root["ex" + ebb] = this._x;
_root["ey" + ebb] = this._y;
name.dff = 0.9;
if (((((name.deflect == true) & name.hit.hitTest(_root.robot.robot.arm2.hit)) & (_root.cue.cur_qqq != (_root.boxgoal + 1))) & (_root.robot.robot.curdance != 0)) & (_root.playerfreeze == 0)) {
name.xspeed = (-name.xspeed) * name.dff;
name.yspeed = (-name.yspeed) * name.dff;
name.deflect = false;
name.tail._yscale = 10;
light = new Sound(_root.snd);
light.attachSound("light");
light.start(0, 0);
light.setVolume(20);
} else if (((((name.deflect == true) & name.hit.hitTest(_root.robot.robot.arm1.hit)) & (_root.cue.cur_qqq != (_root.boxgoal + 1))) & (_root.robot.robot.curdance != 0)) & (_root.playerfreeze == 0)) {
name.xspeed = (-name.xspeed) * name.dff;
name.yspeed = (-name.yspeed) * name.dff;
name.deflect = false;
name.tail._yscale = 10;
light = new Sound(_root.snd);
light.attachSound("light");
light.start(0, 0);
light.setVolume(20);
} else if ((name.deflect == true) & name.hit.hitTest(_root.robot.robot.chest)) {
if (_root.cue.cur_qqq == (_root.boxgoal + 1)) {
_root.playerfreeze = 0;
_root.robot.robot.gotoAndPlay("death");
_root.playerstatus = "dead";
} else if (_root.playerstatus == "alive") {
_root.player_deflections++;
_root.word_enemy.gotoAndPlay("deflect");
if (_root.playerfreeze == 0) {
_root.robot.robot.gotoAndPlay("smack");
}
}
name.action = "explode";
}
if (((((name.deflect == false) & name.hit.hitTest(_root.enemy.robot.arm1.hit)) & (_root.cue.cur_qqq != (_root.boxgoal + 1))) & (_root.enemy.robot.curdance != 0)) & (_root.enemyfreeze == 0)) {
name.xspeed = (-name.xspeed) * name.dff;
name.yspeed = (-name.yspeed) * name.dff;
name.deflect = true;
name.tail._yscale = 10;
light = new Sound(_root.snd);
light.attachSound("light");
light.start(0, 0);
light.setVolume(20);
} else if (((((name.deflect == false) & name.hit.hitTest(_root.enemy.robot.arm2.hit)) & (_root.cue.cur_qqq != (_root.boxgoal + 1))) & (_root.enemy.robot.curdance != 0)) & (_root.enemyfreeze == 0)) {
name.xspeed = (-name.xspeed) * name.dff;
name.yspeed = (-name.yspeed) * name.dff;
name.deflect = true;
name.tail._yscale = 10;
light = new Sound(_root.snd);
light.attachSound("light");
light.start(0, 0);
light.setVolume(20);
} else if ((name.deflect == false) & name.hit.hitTest(_root.enemy.robot.chest)) {
if (_root.cue.cur_qqq == (_root.boxgoal + 1)) {
_root.enemyfreeze = 0;
_root.enemy.robot.gotoAndPlay("death");
_root.enemystatus = "dead";
} else if (_root.playerstatus == "alive") {
_root.player_hits++;
_root.word_player.gotoAndPlay("hit");
if (_root.enemyfreeze == 0) {
_root.enemy.robot.gotoAndPlay("smack");
}
}
name.action = "explode";
}
} else if (name.action == "explode") {
name.gotoAndStop("dead");
} else if (name.action == "off") {
name._x = -300;
name._y = -300;
}
}
function fireball2(name) {
if (name.action == "set") {
name._x = 700;
name._y = 225;
name.gotoAndStop(1);
name.gravity = 1;
name.xspeed = -(random(15) + 25);
name.yspeed = -7;
name.action = "fire";
name.deflect = false;
blast = new Sound(_root.snd);
blast.attachSound("blast");
blast.start(0, 0);
blast.setVolume(140);
_root.ebb = 0;
} else if (name.action == "fire") {
name.x = name._x + name.xspeed;
name.y = name._y + name.yspeed;
name.yspeed = name.yspeed + name.gravity;
if ((name._x < 1000) & (name._x > -200)) {
name._x = name.x;
} else {
name.action == "off";
}
if (name._y < 600) {
name._y = name.y;
} else {
name.action == "off";
}
name.dff = 0.9;
if (((((name.deflect == true) & name.hit.hitTest(_root.enemy.robot.arm2.hit)) & (_root.cue2.cur_qqq != (_root.eboxgoal + 1))) & (_root.enemy.robot.curdance != 0)) & (_root.enemyfreeze == 0)) {
name.xspeed = (-name.xspeed) * name.dff;
name.yspeed = (-name.yspeed) * name.dff;
name.deflect = false;
name.tail._yscale = 10;
light = new Sound(_root.snd);
light.attachSound("light");
light.start(0, 0);
light.setVolume(20);
} else if (((((name.deflect == true) & name.hit.hitTest(_root.enemy.robot.arm1.hit)) & (_root.cue2.cur_qqq != (_root.eboxgoal + 1))) & (_root.enemy.robot.curdance != 0)) & (_root.enemyfreeze == 0)) {
name.xspeed = (-name.xspeed) * name.dff;
name.yspeed = (-name.yspeed) * name.dff;
name.deflect = false;
name.tail._yscale = 10;
light = new Sound(_root.snd);
light.attachSound("light");
light.start(0, 0);
light.setVolume(20);
} else if ((name.deflect == true) & name.hit.hitTest(_root.enemy.robot.chest)) {
if (_root.cue2.cur_qqq == (_root.eboxgoal + 1)) {
_root.enemyfreeze = 0;
_root.enemy.robot.gotoAndPlay("death");
_root.enemystatus = "dead";
} else if (_root.enemystatus == "alive") {
_root.word_player.gotoAndPlay("deflect");
if (_root.enemyfreeze == 0) {
_root.enemy.robot.gotoAndPlay("smack");
}
}
name.action = "explode";
}
if (((((name.deflect == false) & name.hit.hitTest(_root.robot.robot.arm1.hit)) & (_root.cue2.cur_qqq != (_root.eboxgoal + 1))) & (_root.robot.robot.curdance != 0)) & (_root.playerfreeze == 0)) {
name.xspeed = (-name.xspeed) * name.dff;
name.yspeed = (-name.yspeed) * name.dff;
name.deflect = true;
name.tail._yscale = 10;
light = new Sound(_root.snd);
light.attachSound("light");
light.start(0, 0);
light.setVolume(20);
} else if (((((name.deflect == false) & name.hit.hitTest(_root.robot.robot.arm2.hit)) & (_root.cue2.cur_qqq != (_root.eboxgoal + 1))) & (_root.robot.robot.curdance != 0)) & (_root.playerfreeze == 0)) {
name.xspeed = (-name.xspeed) * name.dff;
name.yspeed = (-name.yspeed) * name.dff;
name.deflect = true;
name.tail._yscale = 10;
light = new Sound(_root.snd);
light.attachSound("light");
light.start(0, 0);
light.setVolume(20);
} else if ((name.deflect == false) & name.hit.hitTest(_root.robot.robot.chest)) {
if (_root.cue2.cur_qqq == (_root.eboxgoal + 1)) {
_root.playerfreeze = 0;
_root.robot.robot.gotoAndPlay("death");
_root.playerstatus = "dead";
} else if (_root.enemystatus == "alive") {
_root.word_enemy.gotoAndPlay("hit");
if (_root.playerfreeze == 0) {
_root.robot.robot.gotoAndPlay("smack");
}
}
name.action = "explode";
}
} else if (name.action == "explode") {
name.gotoAndStop("dead");
} else if (name.action == "off") {
name._x = -300;
name._y = -300;
}
}
this.onEnterFrame = function () {
_root.cc++;
if (_root.cc > 800) {
_root.cc = 0;
}
if (_root.gamespeed > 70) {
if (_root.playerstatus == "alive") {
if (Math.abs(b3.x) > Math.abs(b3.y)) {
tx = 0;
ty = txs;
} else {
tx = txs;
ty = 0;
}
b2l = b2._x - (thickness_x * 0.4);
b2r = b2._x + (thickness_x * 0.4);
_root.createEmptyMovieClip("beam5", -10005);
with (_root.beam5) {
beginFill(16777215, 100);
lineStyle(1, 16711935, 0);
ctx = (b2r * 2) - ((b3._x + b1._x) / 2);
cty = (b2._y * 2) - ((b3._y + b1._y) / 2);
moveTo(b1._x, b1._y);
curveTo(ctx, cty, b3._x + tx, b3._y + ty);
lineTo(b3._x - tx, b3._y - ty);
ctx2 = (b2l * 2) - ((b1._x + b3._x) / 2);
cty2 = (b2._y * 2) - ((b1._y + b3._y) / 2);
curveTo(ctx2, cty2, b1._x, b1._y);
endFill();
}
if (Math.abs(b6.x) > Math.abs(b6.y)) {
tx2 = 0;
ty2 = txs;
} else {
tx2 = txs;
ty2 = 0;
}
b5l = b5._x - (thickness_x * 0.4);
b5r = b5._x + (thickness_x * 0.4);
_root.createEmptyMovieClip("beam6", -10006);
with (_root.beam6) {
beginFill(16777215, 100);
lineSty2le(1, 16711935, 0);
ctx3 = (b5r * 2) - ((b6._x + b4._x) / 2);
cty3 = (b5._y * 2) - ((b6._y + b4._y) / 2);
moveTo(b4._x, b4._y);
curveTo(ctx3, cty3, b6._x + tx2, b6._y + ty2);
lineTo(b6._x - tx2, b6._y - ty2);
ctx4 = (b5l * 2) - ((b4._x + b6._x) / 2);
cty4 = (b5._y * 2) - ((b4._y + b6._y) / 2);
curveTo(ctx4, cty4, b4._x, b4._y);
endFill();
}
} else {
beam5.clear();
beam6.clear();
}
if (_root.enemystatus == "alive") {
if (Math.abs(be3.x) > Math.abs(be3.y)) {
etx = 0;
ety = etxs;
} else {
etx = etxs;
ety = 0;
}
be2l = be2._x - (thickness_x * 0.4);
be2r = be2._x + (thickness_x * 0.4);
_root.createEmptyMovieClip("beam7", -10007);
with (_root.beam7) {
beginFill(16777215, 100);
lineStyle(1, 16711935, 0);
ectx = (be2r * 2) - ((be3._x + be1._x) / 2);
ecty = (be2._y * 2) - ((be3._y + be1._y) / 2);
moveTo(be1._x, be1._y);
curveTo(ectx, ecty, be3._x + etx, be3._y + ety);
lineTo(be3._x - etx, be3._y - ety);
ectx2 = (be2l * 2) - ((be1._x + be3._x) / 2);
ecty2 = (be2._y * 2) - ((be1._y + be3._y) / 2);
curveTo(ectx2, ecty2, be1._x, be1._y);
endFill();
}
if (Math.abs(be6.x) > Math.abs(be6.y)) {
etx2 = 0;
ety2 = etxs;
} else {
etx2 = etxs;
ety2 = 0;
}
be5l = be5._x - (thickness_x * 0.4);
be5r = be5._x + (thickness_x * 0.4);
_root.createEmptyMovieClip("beam8", -10008);
with (_root.beam8) {
beginFill(16777215, 100);
lineSty2le(1, 16711935, 0);
ectx3 = (be5r * 2) - ((be6._x + be4._x) / 2);
ecty3 = (be5._y * 2) - ((be6._y + be4._y) / 2);
moveTo(be4._x, be4._y);
curveTo(ectx3, ecty3, be6._x + etx2, be6._y + ety2);
lineTo(be6._x - etx2, be6._y - ety2);
ectx4 = (be5l * 2) - ((be4._x + be6._x) / 2);
ecty4 = (be5._y * 2) - ((be4._y + be6._y) / 2);
curveTo(ectx4, ecty4, be4._x, be4._y);
endFill();
}
var bl = (new flash.filters.BlurFilter());
bl.blurX = 4;
bl.blurY = 4;
} else {
beam7.clear();
beam8.clear();
}
} else {
beam5.clear();
beam6.clear();
beam7.clear();
beam8.clear();
}
};
Frame 10
stop();
back = 1;
Instance of Symbol 326 MovieClip in Frame 10
onClipEvent (load) {
gotoAndPlay (1);
}
Instance of Symbol 327 MovieClip "b1" in Frame 10
onClipEvent (enterFrame) {
a = _root.trail;
this._x = _root["cx" + (_root.cc - a)];
this._y = _root["cy" + (_root.cc - a)];
}
Instance of Symbol 327 MovieClip "b3" in Frame 10
onClipEvent (enterFrame) {
this._x = _root["cx" + _root.cc];
this._y = _root["cy" + _root.cc];
}
onClipEvent (enterFrame) {
xp = _root["cx" + (_root.cc - 1)];
yp = _root["cy" + (_root.cc - 1)];
xn = _root["cx" + _root.cc];
yn = _root["cy" + _root.cc];
x = xn - xp;
y = yn - yp;
}
Instance of Symbol 327 MovieClip "b2" in Frame 10
onClipEvent (enterFrame) {
a = _root.trail / 2;
this._x = _root["cx" + (_root.cc - a)];
this._y = _root["cy" + (_root.cc - a)];
}
Instance of Symbol 327 MovieClip "b4" in Frame 10
onClipEvent (enterFrame) {
a = _root.trail;
this._x = _root["cx2" + (_root.cc - a)];
this._y = _root["cy2" + (_root.cc - a)];
}
Instance of Symbol 327 MovieClip "b6" in Frame 10
onClipEvent (enterFrame) {
this._x = _root["cx2" + _root.cc];
this._y = _root["cy2" + _root.cc];
}
onClipEvent (enterFrame) {
xp = _root["cx2" + (_root.cc - 1)];
yp = _root["cy2" + (_root.cc - 1)];
xn = _root["cx2" + _root.cc];
yn = _root["cy2" + _root.cc];
x = xn - xp;
y = yn - yp;
}
Instance of Symbol 327 MovieClip "b5" in Frame 10
onClipEvent (enterFrame) {
a = _root.trail / 2;
this._x = _root["cx2" + (_root.cc - a)];
this._y = _root["cy2" + (_root.cc - a)];
}
Instance of Symbol 195 MovieClip "robot" in Frame 10
onClipEvent (enterFrame) {
if (_root.playerfreeze > 0) {
this.robot.stop();
this.gotoAndStop(2);
this.robot.dir = "";
_root.playerfreeze--;
_root.playerfreezeit = true;
} else if ((_root.playerfreeze == 0) & (_root.playerfreezeit == true)) {
this.robot.dir = "f";
this.gotoAndStop(1);
_root.playerfreezeit = false;
}
this.robot.chest.gotoAndStop(t);
this.robot.head.gotoAndStop(t);
this.robot.leg1.gotoAndStop(t);
this.robot.leg2.gotoAndStop(t);
this.robot.leg3.gotoAndStop(t);
this.robot.leg4.gotoAndStop(t);
this.robot.arm1.gotoAndStop(t);
this.robot.arm2.gotoAndStop(t);
this.robot.arm3.gotoAndStop(t);
this.robot.arm4.gotoAndStop(t);
this.robot2.chest.gotoAndStop(t);
this.robot2.head.gotoAndStop(t);
this.robot2.leg1.gotoAndStop(t);
this.robot2.leg2.gotoAndStop(t);
this.robot2.leg3.gotoAndStop(t);
this.robot2.leg4.gotoAndStop(t);
this.robot2.arm1.gotoAndStop(t);
this.robot2.arm2.gotoAndStop(t);
this.robot2.arm3.gotoAndStop(t);
this.robot2.arm4.gotoAndStop(t);
}
onClipEvent (load) {
t = _root.chooserobot;
this.gotoAndStop(1);
this.robot.gotoAndPlay(1);
}
Instance of Symbol 258 MovieClip "ball" in Frame 10
onClipEvent (enterFrame) {
_root.fireball(this);
if (this.tail._yscale < 100) {
this.tail._yscale = this.tail._yscale + 10;
}
x2 = this.xspeed;
y2 = this.yspeed;
if (x < 0) {
this.head._yscale = -100;
} else if (x > 0) {
this.head._yscale = 100;
}
if (x2 > 0) {
baseangle = -90;
} else if (x2 < 0) {
baseangle = 90;
}
if (x2 > 0) {
angleperc = y2 / x2;
if (angleperc > 2) {
angleperc = 2;
} else if (angleperc < -2) {
angleperc = -2;
}
this.tail._rotation = (angleperc * 45) - 90;
} else if (x2 < 0) {
x2 = -x2;
angleperc = y2 / x2;
if (angleperc > 2) {
angleperc = 2;
} else if (angleperc < -2) {
angleperc = -2;
}
this.tail._rotation = (angleperc * -45) + 90;
}
}
Instance of Symbol 258 MovieClip "eball" in Frame 10
onClipEvent (enterFrame) {
_root.fireball2(this);
if (this.tail._yscale < 100) {
this.tail._yscale = this.tail._yscale + 10;
}
x2 = this.xspeed;
y2 = this.yspeed;
if (x < 0) {
this.head._yscale = -100;
} else if (x > 0) {
this.head._yscale = 100;
}
if (x2 > 0) {
baseangle = -90;
} else if (x2 < 0) {
baseangle = 90;
}
if (x2 > 0) {
angleperc = y2 / x2;
if (angleperc > 2) {
angleperc = 2;
} else if (angleperc < -2) {
angleperc = -2;
}
this.tail._rotation = (angleperc * 45) - 90;
} else if (x2 < 0) {
x2 = -x2;
angleperc = y2 / x2;
if (angleperc > 2) {
angleperc = 2;
} else if (angleperc < -2) {
angleperc = -2;
}
this.tail._rotation = (angleperc * -45) + 90;
}
}
Instance of Symbol 195 MovieClip "enemy" in Frame 10
onClipEvent (enterFrame) {
if (_root.enemyfreeze > 0) {
this.robot.stop();
this.gotoAndStop(2);
this.robot.dir = "";
_root.enemyfreeze--;
_root.enemyfreezeit = true;
} else if ((_root.enemyfreeze == 0) & (_root.enemyfreezeit == true)) {
this.robot.dir = "f";
this.gotoAndStop(1);
_root.enemyfreezeit = false;
}
this.robot.chest.gotoAndStop(t);
this.robot.head.gotoAndStop(t);
this.robot.leg1.gotoAndStop(t);
this.robot.leg2.gotoAndStop(t);
this.robot.leg3.gotoAndStop(t);
this.robot.leg4.gotoAndStop(t);
this.robot.arm1.gotoAndStop(t);
this.robot.arm2.gotoAndStop(t);
this.robot.arm3.gotoAndStop(t);
this.robot.arm4.gotoAndStop(t);
}
onClipEvent (load) {
if ((_root.chooserobot + 1) <= 4) {
t = _root.chooserobot + 1;
} else {
t = (_root.chooserobot + 1) - 4;
}
}
Instance of Symbol 327 MovieClip "be1" in Frame 10
onClipEvent (enterFrame) {
a = _root.trail;
if ((_root.cc - a) >= 0) {
this._x = _root["ex" + (_root.cc - a)];
this._y = _root["ey" + (_root.cc - a)];
} else {
this._x = _root["ex" + ((_root.cc - a) + 800)];
this._y = _root["ey" + ((_root.cc - a) + 800)];
}
}
Instance of Symbol 327 MovieClip "be3" in Frame 10
onClipEvent (enterFrame) {
this._x = _root["ex" + (_root.cc - 1)];
this._y = _root["ey" + (_root.cc - 1)];
}
onClipEvent (enterFrame) {
xp = _root["ex" + (_root.cc - 1)];
yp = _root["ey" + (_root.cc - 1)];
xn = _root["ex" + _root.cc];
yn = _root["ey" + _root.cc];
x = xn - xp;
y = yn - yp;
}
Instance of Symbol 327 MovieClip "be2" in Frame 10
onClipEvent (enterFrame) {
a = _root.trail / 2;
if ((_root.cc - a) >= 0) {
this._x = _root["ex" + (_root.cc - a)];
this._y = _root["ey" + (_root.cc - a)];
} else {
this._x = _root["ex" + ((_root.cc - a) + 800)];
this._y = _root["ey" + ((_root.cc - a) + 800)];
}
}
Instance of Symbol 327 MovieClip "be4" in Frame 10
onClipEvent (enterFrame) {
a = _root.trail;
if ((_root.cc - a) >= 0) {
this._x = _root["ex2" + (_root.cc - a)];
this._y = _root["ey2" + (_root.cc - a)];
} else {
this._x = _root["ex2" + ((_root.cc - a) + 800)];
this._y = _root["ey2" + ((_root.cc - a) + 800)];
}
}
Instance of Symbol 327 MovieClip "be6" in Frame 10
onClipEvent (enterFrame) {
this._x = _root["ex2" + (_root.cc - 1)];
this._y = _root["ey2" + (_root.cc - 1)];
}
onClipEvent (enterFrame) {
xp = _root["ex2" + (_root.cc - 1)];
yp = _root["ey2" + (_root.cc - 1)];
xn = _root["ex2" + _root.cc];
yn = _root["ey2" + _root.cc];
x = xn - xp;
y = yn - yp;
}
Instance of Symbol 327 MovieClip "be5" in Frame 10
onClipEvent (enterFrame) {
a = _root.trail / 2;
if ((_root.cc - a) >= 0) {
this._x = _root["ex2" + (_root.cc - a)];
this._y = _root["ey2" + (_root.cc - a)];
d = _root.cc - a;
} else {
this._x = _root["ex2" + ((_root.cc - a) + 800)];
this._y = _root["ey2" + ((_root.cc - a) + 800)];
d = (_root.cc - a) + 800;
}
}
Instance of Symbol 329 MovieClip "ball1" in Frame 10
onClipEvent (enterFrame) {
this._x = _root.rhx;
this._y = _root.rhy;
_root["cx" + _root.cc] = this._x;
_root["cy" + _root.cc] = this._y;
}
Instance of Symbol 329 MovieClip "ball2" in Frame 10
onClipEvent (enterFrame) {
this._x = _root.rhx2;
this._y = _root.rhy2;
_root["cx2" + _root.cc] = this._x;
_root["cy2" + _root.cc] = this._y;
}
Instance of Symbol 329 MovieClip "ball4" in Frame 10
onClipEvent (enterFrame) {
this._x = _root.ehx;
this._y = _root.ehy;
_root["ex" + _root.cc] = this._x;
_root["ey" + _root.cc] = this._y;
}
Instance of Symbol 329 MovieClip "ball3" in Frame 10
onClipEvent (enterFrame) {
this._x = _root.ehx2;
this._y = _root.ehy2;
_root["ex2" + _root.cc] = this._x;
_root["ey2" + _root.cc] = this._y;
}
Instance of Symbol 350 MovieClip "musicplayer" in Frame 10
onClipEvent (load) {
cursong = 2;
}
onClipEvent (enterFrame) {
if (_root.enemystatus == "dead") {
this.gotoAndStop("off");
}
}
Instance of Symbol 259 MovieClip "tt" in Frame 10
onClipEvent (enterFrame) {
if (_root.playerfreeze != 0) {
_root.tarbox._visible = false;
}
if (_root.playerstatus == "dead") {
_root.tarbox._visible = false;
action = "";
this._x = -300;
this._y = -300;
drawit = false;
_root.beam1.clear();
_root.beam2.clear();
_root.beam3.clear();
_root.beam4.clear();
if (_root.scoremenu._currentframe == 1) {
_root.scoremenu.gotoAndStop("lose");
}
} else if (_root.enemystatus == "dead") {
_root.pbeam1.clear();
_root.pbeam2.clear();
_root.pbeam3.clear();
_root.pbeam4.clear();
if (_root.scoremenu._currentframe == 1) {
_root.scoremenu.gotoAndStop(2);
}
_root.tarbox._visible = false;
action = "";
this._x = -300;
this._y = -300;
_root.beam1.clear();
_root.beam2.clear();
_root.beam3.clear();
_root.beam4.clear();
}
if (((action == "off") & (_root.gamestatus != "wait")) & (_root.playerfreeze == 0)) {
drawit = false;
_root.tarbox._visible = true;
_root.tarbox._x = _root._xmouse;
_root.tarbox._y = _root._ymouse;
this.onMouseDown = function () {
if (((action == "off") & (_root.gamestatus != "wait")) & (_root.playerfreeze == 0)) {
gotox = _root._xmouse;
gotoy = _root._ymouse;
ssh = _root.rb_y3 - _root.rb_y1;
ssw = _root.rb_x2 - _root.rb_x1;
this._x = _root.rb_x1 + (ssw / 2);
this._y = _root.rb_y1 + (ssh / 2);
_root.tarbox._visible = false;
action = "seek";
suck1 = new Sound(_root.snd);
suck1.attachSound("suck1");
suck1.start(0, 0);
suck1.setVolume(100);
}
};
} else if (action == "seek") {
closest = "";
gotsomething = false;
l = -(this._width / 2);
r = this._width / 2;
t = -(this._height / 2);
d = this._height / 2;
this._visible = true;
drawit = true;
xdif = this._x - gotox;
ydif = this._y - gotoy;
this._x = this._x - (xdif / 3);
this._y = this._y - (ydif / 3);
if ((Math.abs(xdif) <= 3) & (Math.abs(ydif) <= 3)) {
(sk = 1);
(best_td = 1000);
while (sk <= _root.box_num) {
xd = (_root["bn" + sk]._x - gotox) + 22;
yd = (_root["bn" + sk]._y - gotoy) + 22;
td = Math.abs(xd) + Math.abs(yd);
if (td < best_td) {
best_td = td;
closest = _root["bn" + sk];
}
sk++;
}
if (closest.hitTest(gotox, gotoy, true)) {
closest.action = "drag";
gotsomething = true;
gotit = new Sound(_root.snd);
gotit.attachSound("gotit");
gotit.start(0, 0);
gotit.start(0, 0);
gotit.start(0, 0);
gotit.setVolume(100);
}
action = "return";
}
} else if (action == "return") {
xdif = this._x - (_root.rb_x1 + (ssw / 2));
ydif = this._y - (_root.rb_y1 + (ssh / 2));
this._x = this._x - (xdif / 4);
this._y = this._y - (ydif / 4);
if (gotsomething == true) {
closest._x = this._x - 22;
closest._y = this._y - 22;
}
if ((Math.abs(xdif) <= 3) & (Math.abs(ydif) <= 3)) {
if (gotsomething == true) {
if (closest.icon_color == _root.cue["qqq" + _root.cue.cur_qqq]) {
_root.cue.match = true;
right = new Sound(_root.snd);
right.attachSound("right");
right.start(0, 0);
right.setVolume(50);
if (_root.robot.robot.curdance != closest.icon_color) {
_root.robot.robot.gotoAndStop("dance" + closest.icon_color);
}
_root.ball.action = "set";
closest.action = "waitset";
} else if (closest.icon_color == 7) {
if (_root.enemyfreeze == 0) {
_root.musicplayer.gotoAndStop(_root.musicplayer.cursong);
}
_root.enemyfreeze = 300;
_root.player_ringtones++;
_root.word_enemy.gotoAndPlay("freeze");
closest.action = "waitset";
} else if (closest.icon_color != _root.cue["qqq" + _root.cue.cur_qqq]) {
closest.action = "waitset";
}
}
_root.beam1.clear();
_root.beam2.clear();
_root.beam3.clear();
_root.beam4.clear();
drawit = false;
this._visible = false;
action = "off";
} else {
drawit = true;
}
}
if (drawit == true) {
_root.beam.clear();
_root.createEmptyMovieClip("beam1", -12301);
with (_root.beam1) {
beginFill(52479, 30);
lineStyle(1, 16711935, 0);
moveTo(l + this._x, t + this._y);
lineTo(l + this._x, d + this._y);
lineTo(_root.rb_x3, _root.rb_y3);
lineTo(_root.rb_x1, _root.rb_y1);
endFill();
}
_root.createEmptyMovieClip("beam2", -12302);
with (_root.beam2) {
beginFill(52479, 30);
lineStyle(1, 16711935, 0);
moveTo(r + this._x, t + this._y);
lineTo(r + this._x, d + this._y);
lineTo(_root.rb_x4, _root.rb_y4);
lineTo(_root.rb_x2, _root.rb_y2);
endFill();
}
_root.createEmptyMovieClip("beam3", -12303);
with (_root.beam3) {
beginFill(6750207, 60);
lineStyle(1, 16711935, 0);
moveTo(r + this._x, t + this._y);
lineTo(l + this._x, t + this._y);
lineTo(_root.rb_x1, _root.rb_y1);
lineTo(_root.rb_x2, _root.rb_y2);
endFill();
}
_root.createEmptyMovieClip("beam4", -12304);
with (_root.beam4) {
beginFill(3394815, 60);
lineStyle(1, 16711935, 0);
moveTo(r + this._x, d + this._y);
lineTo(l + this._x, d + this._y);
lineTo(_root.rb_x3, _root.rb_y3);
lineTo(_root.rb_x4, _root.rb_y4);
endFill();
}
}
}
onClipEvent (load) {
action = "off";
}
Instance of Symbol 259 MovieClip "tt2" in Frame 10
onClipEvent (enterFrame) {
if (_root.enemyfreeze != 0) {
action = "off";
_root.pbeam1.clear();
_root.pbeam2.clear();
_root.pbeam3.clear();
_root.pbeam4.clear();
drawit = false;
this._x = -300;
this._y = -300;
}
if (_root.enemystatus == "dead") {
action = "";
this._x = -300;
this._y = -300;
drawit = false;
_root.pbeam1.clear();
_root.pbeam2.clear();
_root.pbeam3.clear();
_root.pbeam4.clear();
}
if (((action == "off") & (_root.gamestatus != "wait")) & (_root.enemyfreeze == 0)) {
drawit = false;
bbb = 1;
while (bbb < _root.box_num) {
if (_root["bn" + bbb].action == "grabme") {
if (_root["bn" + bbb].icon_color == _root.cue2["qqq" + _root.cue2.cur_qqq]) {
cpupick_x = _root["bn" + bbb]._x;
cpupick_y = _root["bn" + bbb]._y;
gotox = cpupick_x + 22;
gotoy = cpupick_y + 22;
ssh = _root.eb_y3 - _root.eb_y1;
ssw = _root.eb_x2 - _root.eb_x1;
this._height = ssh;
this._width = ssw;
this._x = _root.eb_x1 + (ssw / 2);
this._y = _root.eb_y1 + (ssh / 2);
dif_del = 0;
set_dif_del = random(_root.difficulty) + 5;
action = "difficulty_delay";
} else if (_root["bn" + bbb].icon_color == 7) {
cpupick_x = _root["bn" + bbb]._x;
cpupick_y = _root["bn" + bbb]._y;
gotox = cpupick_x + 22;
gotoy = cpupick_y + 22;
ssh = _root.eb_y3 - _root.eb_y1;
ssw = _root.eb_x2 - _root.eb_x1;
this._height = ssh;
this._width = ssw;
this._x = _root.eb_x1 + (ssw / 2);
this._y = _root.eb_y1 + (ssh / 2);
dif_del = 0;
set_dif_del = random(_root.difficulty) + 5;
action = "difficulty_delay";
}
}
bbb++;
}
} else if (action == "difficulty_delay") {
if (dif_del > set_dif_del) {
action = "seek";
suck2 = new Sound(_root.snd);
suck2.attachSound("suck2");
suck2.start(0, 0);
suck2.setVolume(50);
} else {
dif_del++;
}
} else if (action == "seek") {
if (this._xscale < 135) {
this._xscale = this._xscale + 5;
}
if (this._yscale < 135) {
this._yscale = this._yscale + 5;
}
closest = "";
gotsomething = false;
l = -(this._width / 2);
r = this._width / 2;
t = -(this._height / 2);
d = this._height / 2;
this._visible = true;
drawit = true;
xdif = this._x - gotox;
ydif = this._y - gotoy;
this._x = this._x - (xdif / 3);
this._y = this._y - (ydif / 3);
if ((Math.abs(xdif) <= 3) & (Math.abs(ydif) <= 3)) {
(sk = 1);
(best_td = 1000);
while (sk <= _root.box_num) {
xd = (_root["bn" + sk]._x - gotox) + 22;
yd = (_root["bn" + sk]._y - gotoy) + 22;
td = Math.abs(xd) + Math.abs(yd);
if (td < best_td) {
best_td = td;
closest = _root["bn" + sk];
}
sk++;
}
if (closest.hitTest(gotox, gotoy, true)) {
gotsomething = true;
gotit = new Sound(_root.snd);
gotit.attachSound("gotit");
gotit.start(0, 0);
gotit.setVolume(100);
}
action = "return";
}
} else if (action == "return") {
xdif = this._x - (_root.eb_x1 + (ssw / 2));
ydif = this._y - (_root.eb_y1 + (ssh / 2));
this._x = this._x - (xdif / 4);
this._y = this._y - (ydif / 4);
if (gotsomething == true) {
closest._x = this._x - 22;
closest._y = this._y - 22;
}
if ((_root.enemyfreeze != 0) or (_root.enemystatus == "dead")) {
trace("messup, " + closest.action);
closest.action = "waitset";
}
if ((Math.abs(xdif) <= 3) & (Math.abs(ydif) <= 3)) {
if (gotsomething == true) {
if (closest.icon_color == _root.cue2["qqq" + _root.cue2.cur_qqq]) {
_root.cue2.match = true;
_root.eball.action = "set";
right = new Sound(_root.snd);
right.attachSound("right");
right.start(0, 0);
right.setVolume(50);
if (_root.enemy.robot.curdance != closest.icon_color) {
_root.enemy.robot.gotoAndStop("dance" + closest.icon_color);
}
closest.action = "waitset";
} else if (closest.icon_color == 7) {
if (_root.playerfreeze == 0) {
_root.musicplayer.gotoAndStop(_root.musicplayer.cursong);
}
_root.playerfreeze = 300;
_root.word_player.gotoAndPlay("freeze");
closest.action = "waitset";
} else if (closest.icon_color != _root.cue2["qqq" + _root.cue.cur_qqq]) {
closest.action = "waitset";
} else {
closest.action = "waitset";
}
}
_root.pbeam1.clear();
_root.pbeam2.clear();
_root.pbeam3.clear();
_root.pbeam4.clear();
drawit = false;
this._visible = false;
action = "off";
} else {
drawit = true;
}
}
if (drawit == true) {
_root.createEmptyMovieClip("pbeam1", -12310);
with (_root.pbeam1) {
beginFill(16724940, 30);
lineStyle(1, 16737996, 0);
moveTo(l + this._x, t + this._y);
lineTo(l + this._x, d + this._y);
lineTo(_root.eb_x3, _root.eb_y3);
lineTo(_root.eb_x1, _root.eb_y1);
endFill();
}
_root.createEmptyMovieClip("pbeam2", -12311);
with (_root.pbeam2) {
beginFill(16751052, 30);
lineStyle(1, 16751052, 0);
moveTo(r + this._x, t + this._y);
lineTo(r + this._x, d + this._y);
lineTo(_root.eb_x4, _root.eb_y4);
lineTo(_root.eb_x2, _root.eb_y2);
endFill();
}
_root.createEmptyMovieClip("pbeam3", -12312);
with (_root.pbeam3) {
beginFill(16764108, 60);
lineStyle(1, 16751052, 0);
moveTo(r + this._x, t + this._y);
lineTo(l + this._x, t + this._y);
lineTo(_root.eb_x1, _root.eb_y1);
lineTo(_root.eb_x2, _root.eb_y2);
endFill();
}
_root.createEmptyMovieClip("pbeam4", -12313);
with (_root.pbeam4) {
beginFill(16737996, 60);
lineStyle(1, 16737996, 0);
moveTo(r + this._x, d + this._y);
lineTo(l + this._x, d + this._y);
lineTo(_root.eb_x3, _root.eb_y3);
lineTo(_root.eb_x4, _root.eb_y4);
endFill();
}
}
}
onClipEvent (load) {
action = "off";
}
Instance of Symbol 272 MovieClip "cue" in Frame 10
onClipEvent (load) {
_root.boxgoal = 20;
b = 1;
while (b <= _root.boxgoal) {
this["qqq" + b] = random(6) + 1;
b++;
}
cur_qqq = 1;
match = false;
}
onClipEvent (enterFrame) {
_root.qscore = cur_qqq - 1;
}
Instance of Symbol 275 MovieClip "cue2" in Frame 10
onClipEvent (load) {
_root.eboxgoal = 20;
b = 1;
while (b <= _root.eboxgoal) {
this["qqq" + b] = random(6) + 1;
b++;
}
cur_qqq = 1;
match = false;
}
onClipEvent (enterFrame) {
_root.qscore2 = cur_qqq - 1;
}
Instance of Symbol 313 MovieClip in Frame 10
onClipEvent (enterFrame) {
_root.icon_code(this);
}
onClipEvent (load) {
action = "waitset";
_root.box_num++;
this._name = "bn" + _root.box_num;
}
Instance of Symbol 313 MovieClip in Frame 10
onClipEvent (enterFrame) {
_root.icon_code(this);
}
onClipEvent (load) {
action = "waitset";
_root.box_num++;
this._name = "bn" + _root.box_num;
}
Instance of Symbol 313 MovieClip in Frame 10
onClipEvent (enterFrame) {
_root.icon_code(this);
}
onClipEvent (load) {
action = "waitset";
_root.box_num++;
this._name = "bn" + _root.box_num;
}
Instance of Symbol 313 MovieClip in Frame 10
onClipEvent (enterFrame) {
_root.icon_code(this);
}
onClipEvent (load) {
action = "waitset";
_root.box_num++;
this._name = "bn" + _root.box_num;
}
Instance of Symbol 313 MovieClip in Frame 10
onClipEvent (enterFrame) {
_root.icon_code(this);
}
onClipEvent (load) {
action = "waitset";
_root.box_num++;
this._name = "bn" + _root.box_num;
}
Instance of Symbol 313 MovieClip in Frame 10
onClipEvent (enterFrame) {
_root.icon_code(this);
}
onClipEvent (load) {
action = "waitset";
_root.box_num++;
this._name = "bn" + _root.box_num;
}
Instance of Symbol 313 MovieClip in Frame 10
onClipEvent (enterFrame) {
_root.icon_code(this);
}
onClipEvent (load) {
action = "waitset";
_root.box_num++;
this._name = "bn" + _root.box_num;
}
Frame 11
ifFrameLoaded (13) {
gotoAndStop ("stage2");
}
function icon_code(name) {
if (name.action == "set") {
if ((_root.playerstatus != "dead") & (_root.enemystatus != "dead")) {
name.icon_color = random(6) + 1;
name.select_special = random(100);
if (name.select_special > 96) {
name.icon_color = 7;
}
name.en.en.gotoAndStop(name.icon_color);
name.timer = random(60) + 60;
name.col = random(38);
name.action = "select_position";
}
} else if (name.action == "select_position") {
if (_root["pos_fill" + name.col] == false) {
_root["pos_fill" + name.col] = true;
if (name.col < 20) {
name._x = icon_offsetx + (45 * name.col);
name._y = icon_offsety;
name.action = "grabme";
} else if (name.col == 20) {
name._x = icon_offsetx + 0;
name._y = icon_offsety + 45;
name.action = "grabme";
} else if (name.col == 21) {
name._x = icon_offsetx + 45;
name._y = icon_offsety + 45;
name.action = "grabme";
} else if (name.col == 22) {
name._x = icon_offsetx + 0;
name._y = icon_offsety + 90;
name.action = "grabme";
} else if (name.col == 23) {
name._x = icon_offsetx + 810;
name._y = icon_offsety + 45;
name.action = "grabme";
} else if (name.col == 24) {
name._x = icon_offsetx + 855;
name._y = icon_offsety + 45;
name.action = "grabme";
} else if (name.col == 25) {
name._x = icon_offsetx + 855;
name._y = icon_offsety + 90;
name.action = "grabme";
} else if (name.col == 26) {
name._x = icon_offsetx + 405;
name._y = 298;
name.action = "grabme";
} else if (name.col == 27) {
name._x = icon_offsetx + 450;
name._y = 298;
name.action = "grabme";
} else if (name.col == 29) {
name._x = icon_offsetx + 360;
name._y = 343;
name.action = "grabme";
} else if (name.col == 30) {
name._x = icon_offsetx + 405;
name._y = 343;
name.action = "grabme";
} else if (name.col == 31) {
name._x = icon_offsetx + 450;
name._y = 343;
name.action = "grabme";
} else if (name.col == 32) {
name._x = icon_offsetx + 495;
name._y = 343;
name.action = "grabme";
} else if (name.col == 33) {
name._x = icon_offsetx + 315;
name._y = 386;
name.action = "grabme";
} else if (name.col == 34) {
name._x = icon_offsetx + 360;
name._y = 386;
name.action = "grabme";
} else if (name.col == 35) {
name._x = icon_offsetx + 405;
name._y = 386;
name.action = "grabme";
} else if (name.col == 36) {
name._x = icon_offsetx + 450;
name._y = 386;
name.action = "grabme";
} else if (name.col == 37) {
name._x = icon_offsetx + 495;
name._y = 386;
name.action = "grabme";
} else if (name.col == 38) {
name._x = icon_offsetx + 540;
name._y = 386;
name.action = "grabme";
}
} else {
name.col = random(20);
}
} else if (name.action == "waitset") {
name._x = -100;
name._y = -100;
_root["pos_fill" + name.col] = false;
name.wait_time = random(50) + 20;
name.en.gotoAndStop(1);
name.action = "wait";
} else if (name.action == "wait") {
if (name.wait_time <= 0) {
name.action = "set";
name.en.gotoAndPlay(1);
} else {
name.en.gotoAndStop(1);
name.wait_time--;
}
} else if (name.action == "grabme") {
} else if (name.action == "nograb") {
} else if (name.action == "drag") {
_root["pos_fill" + name.col] = false;
} else if (name.action == "") {
} else if (name.action == "grabbed") {
}
}
pf = 0;
while (pf < 40) {
_root["pos_fill" + pf] = false;
pf++;
}
this.onEnterFrame = function () {
_root.cc++;
if (_root.cc > 800) {
_root.cc = 0;
}
if (_root.gamespeed > 70) {
if (_root.playerstatus == "alive") {
if (Math.abs(b3.x) > Math.abs(b3.y)) {
tx = 0;
ty = txs;
} else {
tx = txs;
ty = 0;
}
b2l = b2._x - (thickness_x * 0.4);
b2r = b2._x + (thickness_x * 0.4);
_root.createEmptyMovieClip("beam5", -10005);
with (_root.beam5) {
beginFill(16777215, 100);
lineStyle(1, 16711935, 0);
ctx = (b2r * 2) - ((b3._x + b1._x) / 2);
cty = (b2._y * 2) - ((b3._y + b1._y) / 2);
moveTo(b1._x, b1._y);
curveTo(ctx, cty, b3._x + tx, b3._y + ty);
lineTo(b3._x - tx, b3._y - ty);
ctx2 = (b2l * 2) - ((b1._x + b3._x) / 2);
cty2 = (b2._y * 2) - ((b1._y + b3._y) / 2);
curveTo(ctx2, cty2, b1._x, b1._y);
endFill();
}
if (Math.abs(b6.x) > Math.abs(b6.y)) {
tx2 = 0;
ty2 = txs;
} else {
tx2 = txs;
ty2 = 0;
}
b5l = b5._x - (thickness_x * 0.4);
b5r = b5._x + (thickness_x * 0.4);
_root.createEmptyMovieClip("beam6", -10006);
with (_root.beam6) {
beginFill(16777215, 100);
lineSty2le(1, 16711935, 0);
ctx3 = (b5r * 2) - ((b6._x + b4._x) / 2);
cty3 = (b5._y * 2) - ((b6._y + b4._y) / 2);
moveTo(b4._x, b4._y);
curveTo(ctx3, cty3, b6._x + tx2, b6._y + ty2);
lineTo(b6._x - tx2, b6._y - ty2);
ctx4 = (b5l * 2) - ((b4._x + b6._x) / 2);
cty4 = (b5._y * 2) - ((b4._y + b6._y) / 2);
curveTo(ctx4, cty4, b4._x, b4._y);
endFill();
}
} else {
beam5.clear();
beam6.clear();
}
if (_root.enemystatus == "alive") {
if (Math.abs(be3.x) > Math.abs(be3.y)) {
etx = 0;
ety = etxs;
} else {
etx = etxs;
ety = 0;
}
be2l = be2._x - (thickness_x * 0.4);
be2r = be2._x + (thickness_x * 0.4);
_root.createEmptyMovieClip("beam7", -10007);
with (_root.beam7) {
beginFill(16777215, 100);
lineStyle(1, 16711935, 0);
ectx = (be2r * 2) - ((be3._x + be1._x) / 2);
ecty = (be2._y * 2) - ((be3._y + be1._y) / 2);
moveTo(be1._x, be1._y);
curveTo(ectx, ecty, be3._x + etx, be3._y + ety);
lineTo(be3._x - etx, be3._y - ety);
ectx2 = (be2l * 2) - ((be1._x + be3._x) / 2);
ecty2 = (be2._y * 2) - ((be1._y + be3._y) / 2);
curveTo(ectx2, ecty2, be1._x, be1._y);
endFill();
}
if (Math.abs(be6.x) > Math.abs(be6.y)) {
etx2 = 0;
ety2 = etxs;
} else {
etx2 = etxs;
ety2 = 0;
}
be5l = be5._x - (thickness_x * 0.4);
be5r = be5._x + (thickness_x * 0.4);
_root.createEmptyMovieClip("beam8", -10008);
with (_root.beam8) {
beginFill(16777215, 100);
lineSty2le(1, 16711935, 0);
ectx3 = (be5r * 2) - ((be6._x + be4._x) / 2);
ecty3 = (be5._y * 2) - ((be6._y + be4._y) / 2);
moveTo(be4._x, be4._y);
curveTo(ectx3, ecty3, be6._x + etx2, be6._y + ety2);
lineTo(be6._x - etx2, be6._y - ety2);
ectx4 = (be5l * 2) - ((be4._x + be6._x) / 2);
ecty4 = (be5._y * 2) - ((be4._y + be6._y) / 2);
curveTo(ectx4, ecty4, be4._x, be4._y);
endFill();
}
var bl = (new flash.filters.BlurFilter());
bl.blurX = 11;
bl.blurY = 11;
} else {
beam7.clear();
beam8.clear();
}
} else {
beam5.clear();
beam6.clear();
beam7.clear();
beam8.clear();
}
};
Frame 12
gotoAndPlay(_currentframe - 1);
Frame 13
stop();
back = 2;
Instance of Symbol 326 MovieClip in Frame 13
onClipEvent (load) {
gotoAndPlay (1);
}
Instance of Symbol 327 MovieClip "b1" in Frame 13
onClipEvent (enterFrame) {
a = _root.trail;
this._x = _root["cx" + (_root.cc - a)];
this._y = _root["cy" + (_root.cc - a)];
}
Instance of Symbol 327 MovieClip "b3" in Frame 13
onClipEvent (enterFrame) {
this._x = _root["cx" + _root.cc];
this._y = _root["cy" + _root.cc];
}
onClipEvent (enterFrame) {
xp = _root["cx" + (_root.cc - 1)];
yp = _root["cy" + (_root.cc - 1)];
xn = _root["cx" + _root.cc];
yn = _root["cy" + _root.cc];
x = xn - xp;
y = yn - yp;
}
Instance of Symbol 327 MovieClip "b2" in Frame 13
onClipEvent (enterFrame) {
a = _root.trail / 2;
this._x = _root["cx" + (_root.cc - a)];
this._y = _root["cy" + (_root.cc - a)];
}
Instance of Symbol 327 MovieClip "b4" in Frame 13
onClipEvent (enterFrame) {
a = _root.trail;
this._x = _root["cx2" + (_root.cc - a)];
this._y = _root["cy2" + (_root.cc - a)];
}
Instance of Symbol 327 MovieClip "b6" in Frame 13
onClipEvent (enterFrame) {
this._x = _root["cx2" + _root.cc];
this._y = _root["cy2" + _root.cc];
}
onClipEvent (enterFrame) {
xp = _root["cx2" + (_root.cc - 1)];
yp = _root["cy2" + (_root.cc - 1)];
xn = _root["cx2" + _root.cc];
yn = _root["cy2" + _root.cc];
x = xn - xp;
y = yn - yp;
}
Instance of Symbol 327 MovieClip "b5" in Frame 13
onClipEvent (enterFrame) {
a = _root.trail / 2;
this._x = _root["cx2" + (_root.cc - a)];
this._y = _root["cy2" + (_root.cc - a)];
}
Instance of Symbol 258 MovieClip "ball" in Frame 13
onClipEvent (enterFrame) {
_root.fireball(this);
if (this.tail._yscale < 100) {
this.tail._yscale = this.tail._yscale + 10;
}
x2 = this.xspeed;
y2 = this.yspeed;
if (x < 0) {
this.head._yscale = -100;
} else if (x > 0) {
this.head._yscale = 100;
}
if (x2 > 0) {
baseangle = -90;
} else if (x2 < 0) {
baseangle = 90;
}
if (x2 > 0) {
angleperc = y2 / x2;
if (angleperc > 2) {
angleperc = 2;
} else if (angleperc < -2) {
angleperc = -2;
}
this.tail._rotation = (angleperc * 45) - 90;
} else if (x2 < 0) {
x2 = -x2;
angleperc = y2 / x2;
if (angleperc > 2) {
angleperc = 2;
} else if (angleperc < -2) {
angleperc = -2;
}
this.tail._rotation = (angleperc * -45) + 90;
}
}
Instance of Symbol 258 MovieClip "eball" in Frame 13
onClipEvent (enterFrame) {
_root.fireball2(this);
if (this.tail._yscale < 100) {
this.tail._yscale = this.tail._yscale + 10;
}
x2 = this.xspeed;
y2 = this.yspeed;
if (x < 0) {
this.head._yscale = -100;
} else if (x > 0) {
this.head._yscale = 100;
}
if (x2 > 0) {
baseangle = -90;
} else if (x2 < 0) {
baseangle = 90;
}
if (x2 > 0) {
angleperc = y2 / x2;
if (angleperc > 2) {
angleperc = 2;
} else if (angleperc < -2) {
angleperc = -2;
}
this.tail._rotation = (angleperc * 45) - 90;
} else if (x2 < 0) {
x2 = -x2;
angleperc = y2 / x2;
if (angleperc > 2) {
angleperc = 2;
} else if (angleperc < -2) {
angleperc = -2;
}
this.tail._rotation = (angleperc * -45) + 90;
}
}
Instance of Symbol 327 MovieClip "be1" in Frame 13
onClipEvent (enterFrame) {
a = _root.trail;
if ((_root.cc - a) >= 0) {
this._x = _root["ex" + (_root.cc - a)];
this._y = _root["ey" + (_root.cc - a)];
} else {
this._x = _root["ex" + ((_root.cc - a) + 800)];
this._y = _root["ey" + ((_root.cc - a) + 800)];
}
}
Instance of Symbol 327 MovieClip "be3" in Frame 13
onClipEvent (enterFrame) {
this._x = _root["ex" + (_root.cc - 1)];
this._y = _root["ey" + (_root.cc - 1)];
}
onClipEvent (enterFrame) {
xp = _root["ex" + (_root.cc - 1)];
yp = _root["ey" + (_root.cc - 1)];
xn = _root["ex" + _root.cc];
yn = _root["ey" + _root.cc];
x = xn - xp;
y = yn - yp;
}
Instance of Symbol 327 MovieClip "be2" in Frame 13
onClipEvent (enterFrame) {
a = _root.trail / 2;
if ((_root.cc - a) >= 0) {
this._x = _root["ex" + (_root.cc - a)];
this._y = _root["ey" + (_root.cc - a)];
} else {
this._x = _root["ex" + ((_root.cc - a) + 800)];
this._y = _root["ey" + ((_root.cc - a) + 800)];
}
}
Instance of Symbol 327 MovieClip "be4" in Frame 13
onClipEvent (enterFrame) {
a = _root.trail;
if ((_root.cc - a) >= 0) {
this._x = _root["ex2" + (_root.cc - a)];
this._y = _root["ey2" + (_root.cc - a)];
} else {
this._x = _root["ex2" + ((_root.cc - a) + 800)];
this._y = _root["ey2" + ((_root.cc - a) + 800)];
}
}
Instance of Symbol 327 MovieClip "be6" in Frame 13
onClipEvent (enterFrame) {
this._x = _root["ex2" + (_root.cc - 1)];
this._y = _root["ey2" + (_root.cc - 1)];
}
onClipEvent (enterFrame) {
xp = _root["ex2" + (_root.cc - 1)];
yp = _root["ey2" + (_root.cc - 1)];
xn = _root["ex2" + _root.cc];
yn = _root["ey2" + _root.cc];
x = xn - xp;
y = yn - yp;
}
Instance of Symbol 327 MovieClip "be5" in Frame 13
onClipEvent (enterFrame) {
a = _root.trail / 2;
if ((_root.cc - a) >= 0) {
this._x = _root["ex2" + (_root.cc - a)];
this._y = _root["ey2" + (_root.cc - a)];
d = _root.cc - a;
} else {
this._x = _root["ex2" + ((_root.cc - a) + 800)];
this._y = _root["ey2" + ((_root.cc - a) + 800)];
d = (_root.cc - a) + 800;
}
}
Instance of Symbol 195 MovieClip "robot" in Frame 13
onClipEvent (enterFrame) {
if (_root.playerfreeze > 0) {
this.robot.stop();
this.gotoAndStop(2);
this.robot.dir = "";
_root.playerfreeze--;
_root.playerfreezeit = true;
} else if ((_root.playerfreeze == 0) & (_root.playerfreezeit == true)) {
this.robot.dir = "f";
this.gotoAndStop(1);
_root.playerfreezeit = false;
}
this.robot.chest.gotoAndStop(t);
this.robot.head.gotoAndStop(t);
this.robot.leg1.gotoAndStop(t);
this.robot.leg2.gotoAndStop(t);
this.robot.leg3.gotoAndStop(t);
this.robot.leg4.gotoAndStop(t);
this.robot.arm1.gotoAndStop(t);
this.robot.arm2.gotoAndStop(t);
this.robot.arm3.gotoAndStop(t);
this.robot.arm4.gotoAndStop(t);
this.robot2.chest.gotoAndStop(t);
this.robot2.head.gotoAndStop(t);
this.robot2.leg1.gotoAndStop(t);
this.robot2.leg2.gotoAndStop(t);
this.robot2.leg3.gotoAndStop(t);
this.robot2.leg4.gotoAndStop(t);
this.robot2.arm1.gotoAndStop(t);
this.robot2.arm2.gotoAndStop(t);
this.robot2.arm3.gotoAndStop(t);
this.robot2.arm4.gotoAndStop(t);
}
onClipEvent (load) {
t = _root.chooserobot;
this.gotoAndStop(1);
this.robot.gotoAndPlay(1);
}
Instance of Symbol 195 MovieClip "enemy" in Frame 13
onClipEvent (enterFrame) {
if (_root.enemyfreeze > 0) {
this.robot.stop();
this.gotoAndStop(2);
this.robot.dir = "";
_root.enemyfreeze--;
_root.enemyfreezeit = true;
} else if ((_root.enemyfreeze == 0) & (_root.enemyfreezeit == true)) {
this.robot.dir = "f";
this.gotoAndStop(1);
_root.enemyfreezeit = false;
}
this.robot.chest.gotoAndStop(t);
this.robot.head.gotoAndStop(t);
this.robot.leg1.gotoAndStop(t);
this.robot.leg2.gotoAndStop(t);
this.robot.leg3.gotoAndStop(t);
this.robot.leg4.gotoAndStop(t);
this.robot.arm1.gotoAndStop(t);
this.robot.arm2.gotoAndStop(t);
this.robot.arm3.gotoAndStop(t);
this.robot.arm4.gotoAndStop(t);
}
onClipEvent (load) {
if ((_root.chooserobot + 1) <= 4) {
t = _root.chooserobot + 1;
} else {
t = (_root.chooserobot + 1) - 4;
}
}
Instance of Symbol 329 MovieClip "ball1" in Frame 13
onClipEvent (enterFrame) {
this._x = _root.rhx;
this._y = _root.rhy;
_root["cx" + _root.cc] = this._x;
_root["cy" + _root.cc] = this._y;
}
Instance of Symbol 329 MovieClip "ball2" in Frame 13
onClipEvent (enterFrame) {
this._x = _root.rhx2;
this._y = _root.rhy2;
_root["cx2" + _root.cc] = this._x;
_root["cy2" + _root.cc] = this._y;
}
Instance of Symbol 329 MovieClip "ball4" in Frame 13
onClipEvent (enterFrame) {
this._x = _root.ehx;
this._y = _root.ehy;
_root["ex" + _root.cc] = this._x;
_root["ey" + _root.cc] = this._y;
}
Instance of Symbol 329 MovieClip "ball3" in Frame 13
onClipEvent (enterFrame) {
this._x = _root.ehx2;
this._y = _root.ehy2;
_root["ex2" + _root.cc] = this._x;
_root["ey2" + _root.cc] = this._y;
}
Instance of Symbol 423 MovieClip "musicplayer" in Frame 13
onClipEvent (load) {
cursong = 2;
}
onClipEvent (enterFrame) {
if (_root.enemystatus == "dead") {
this.gotoAndStop("off");
}
}
Instance of Symbol 385 MovieClip "scoremenu" in Frame 13
onClipEvent (load) {
this.swapDepths(-9000);
}
Instance of Symbol 259 MovieClip "tt" in Frame 13
onClipEvent (enterFrame) {
if (_root.playerfreeze != 0) {
_root.tarbox._visible = false;
}
if (_root.playerstatus == "dead") {
_root.tarbox._visible = false;
action = "";
this._x = -300;
this._y = -300;
drawit = false;
_root.beam1.clear();
_root.beam2.clear();
_root.beam3.clear();
_root.beam4.clear();
if (_root.scoremenu._currentframe == 1) {
_root.scoremenu.gotoAndStop("lose");
}
} else if (_root.enemystatus == "dead") {
_root.pbeam1.clear();
_root.pbeam2.clear();
_root.pbeam3.clear();
_root.pbeam4.clear();
if (_root.scoremenu._currentframe == 1) {
_root.scoremenu.gotoAndStop(2);
}
_root.tarbox._visible = false;
action = "";
this._x = -300;
this._y = -300;
_root.beam1.clear();
_root.beam2.clear();
_root.beam3.clear();
_root.beam4.clear();
}
if (((action == "off") & (_root.gamestatus != "wait")) & (_root.playerfreeze == 0)) {
drawit = false;
_root.tarbox._visible = true;
_root.tarbox._x = _root._xmouse;
_root.tarbox._y = _root._ymouse;
this.onMouseDown = function () {
if (((action == "off") & (_root.gamestatus != "wait")) & (_root.playerfreeze == 0)) {
gotox = _root._xmouse;
gotoy = _root._ymouse;
ssh = _root.rb_y3 - _root.rb_y1;
ssw = _root.rb_x2 - _root.rb_x1;
this._x = _root.rb_x1 + (ssw / 2);
this._y = _root.rb_y1 + (ssh / 2);
_root.tarbox._visible = false;
action = "seek";
suck1 = new Sound(_root.snd);
suck1.attachSound("suck1");
suck1.start(0, 0);
suck1.setVolume(100);
}
};
} else if (action == "seek") {
closest = "";
gotsomething = false;
l = -(this._width / 2);
r = this._width / 2;
t = -(this._height / 2);
d = this._height / 2;
this._visible = true;
drawit = true;
xdif = this._x - gotox;
ydif = this._y - gotoy;
this._x = this._x - (xdif / 3);
this._y = this._y - (ydif / 3);
if ((Math.abs(xdif) <= 3) & (Math.abs(ydif) <= 3)) {
(sk = 1);
(best_td = 1000);
while (sk <= _root.box_num) {
xd = (_root["bn" + sk]._x - gotox) + 22;
yd = (_root["bn" + sk]._y - gotoy) + 22;
td = Math.abs(xd) + Math.abs(yd);
if (td < best_td) {
best_td = td;
closest = _root["bn" + sk];
}
sk++;
}
if (closest.hitTest(gotox, gotoy, true)) {
closest.action = "drag";
gotsomething = true;
gotit = new Sound(_root.snd);
gotit.attachSound("gotit");
gotit.start(0, 0);
gotit.start(0, 0);
gotit.start(0, 0);
gotit.setVolume(100);
}
action = "return";
}
} else if (action == "return") {
xdif = this._x - (_root.rb_x1 + (ssw / 2));
ydif = this._y - (_root.rb_y1 + (ssh / 2));
this._x = this._x - (xdif / 4);
this._y = this._y - (ydif / 4);
if (gotsomething == true) {
closest._x = this._x - 22;
closest._y = this._y - 22;
}
if ((Math.abs(xdif) <= 3) & (Math.abs(ydif) <= 3)) {
if (gotsomething == true) {
if (closest.icon_color == _root.cue["qqq" + _root.cue.cur_qqq]) {
_root.cue.match = true;
right = new Sound(_root.snd);
right.attachSound("right");
right.start(0, 0);
right.setVolume(50);
if (_root.robot.robot.curdance != closest.icon_color) {
_root.robot.robot.gotoAndStop("dance" + closest.icon_color);
}
_root.ball.action = "set";
closest.action = "waitset";
} else if (closest.icon_color == 7) {
if (_root.enemyfreeze == 0) {
_root.musicplayer.gotoAndStop(_root.musicplayer.cursong);
}
_root.enemyfreeze = 300;
_root.player_ringtones++;
_root.word_enemy.gotoAndPlay("freeze");
closest.action = "waitset";
} else if (closest.icon_color != _root.cue["qqq" + _root.cue.cur_qqq]) {
closest.action = "waitset";
}
}
_root.beam1.clear();
_root.beam2.clear();
_root.beam3.clear();
_root.beam4.clear();
drawit = false;
this._visible = false;
action = "off";
} else {
drawit = true;
}
}
if (drawit == true) {
_root.beam.clear();
_root.createEmptyMovieClip("beam1", -12301);
with (_root.beam1) {
beginFill(52479, 30);
lineStyle(1, 16711935, 0);
moveTo(l + this._x, t + this._y);
lineTo(l + this._x, d + this._y);
lineTo(_root.rb_x3, _root.rb_y3);
lineTo(_root.rb_x1, _root.rb_y1);
endFill();
}
_root.createEmptyMovieClip("beam2", -12302);
with (_root.beam2) {
beginFill(52479, 30);
lineStyle(1, 16711935, 0);
moveTo(r + this._x, t + this._y);
lineTo(r + this._x, d + this._y);
lineTo(_root.rb_x4, _root.rb_y4);
lineTo(_root.rb_x2, _root.rb_y2);
endFill();
}
_root.createEmptyMovieClip("beam3", -12303);
with (_root.beam3) {
beginFill(6750207, 60);
lineStyle(1, 16711935, 0);
moveTo(r + this._x, t + this._y);
lineTo(l + this._x, t + this._y);
lineTo(_root.rb_x1, _root.rb_y1);
lineTo(_root.rb_x2, _root.rb_y2);
endFill();
}
_root.createEmptyMovieClip("beam4", -12304);
with (_root.beam4) {
beginFill(3394815, 60);
lineStyle(1, 16711935, 0);
moveTo(r + this._x, d + this._y);
lineTo(l + this._x, d + this._y);
lineTo(_root.rb_x3, _root.rb_y3);
lineTo(_root.rb_x4, _root.rb_y4);
endFill();
}
}
}
onClipEvent (load) {
action = "off";
}
Instance of Symbol 259 MovieClip "tt2" in Frame 13
onClipEvent (enterFrame) {
if (_root.enemyfreeze != 0) {
action = "off";
_root.pbeam1.clear();
_root.pbeam2.clear();
_root.pbeam3.clear();
_root.pbeam4.clear();
drawit = false;
this._x = -300;
this._y = -300;
}
if (_root.enemystatus == "dead") {
action = "";
this._x = -300;
this._y = -300;
drawit = false;
_root.pbeam1.clear();
_root.pbeam2.clear();
_root.pbeam3.clear();
_root.pbeam4.clear();
}
if (((action == "off") & (_root.gamestatus != "wait")) & (_root.enemyfreeze == 0)) {
drawit = false;
bbb = 1;
while (bbb < _root.box_num) {
if (_root["bn" + bbb].action == "grabme") {
if (_root["bn" + bbb].icon_color == _root.cue2["qqq" + _root.cue2.cur_qqq]) {
cpupick_x = _root["bn" + bbb]._x;
cpupick_y = _root["bn" + bbb]._y;
gotox = cpupick_x + 22;
gotoy = cpupick_y + 22;
ssh = _root.eb_y3 - _root.eb_y1;
ssw = _root.eb_x2 - _root.eb_x1;
this._height = ssh;
this._width = ssw;
this._x = _root.eb_x1 + (ssw / 2);
this._y = _root.eb_y1 + (ssh / 2);
dif_del = 0;
set_dif_del = random(_root.difficulty) + 5;
action = "difficulty_delay";
} else if (_root["bn" + bbb].icon_color == 7) {
cpupick_x = _root["bn" + bbb]._x;
cpupick_y = _root["bn" + bbb]._y;
gotox = cpupick_x + 22;
gotoy = cpupick_y + 22;
ssh = _root.eb_y3 - _root.eb_y1;
ssw = _root.eb_x2 - _root.eb_x1;
this._height = ssh;
this._width = ssw;
this._x = _root.eb_x1 + (ssw / 2);
this._y = _root.eb_y1 + (ssh / 2);
dif_del = 0;
set_dif_del = random(_root.difficulty) + 5;
action = "difficulty_delay";
}
}
bbb++;
}
} else if (action == "difficulty_delay") {
if (dif_del > set_dif_del) {
action = "seek";
suck2 = new Sound(_root.snd);
suck2.attachSound("suck2");
suck2.start(0, 0);
suck2.setVolume(50);
} else {
dif_del++;
}
} else if (action == "seek") {
if (this._xscale < 135) {
this._xscale = this._xscale + 5;
}
if (this._yscale < 135) {
this._yscale = this._yscale + 5;
}
closest = "";
gotsomething = false;
l = -(this._width / 2);
r = this._width / 2;
t = -(this._height / 2);
d = this._height / 2;
this._visible = true;
drawit = true;
xdif = this._x - gotox;
ydif = this._y - gotoy;
this._x = this._x - (xdif / 3);
this._y = this._y - (ydif / 3);
if ((Math.abs(xdif) <= 3) & (Math.abs(ydif) <= 3)) {
(sk = 1);
(best_td = 1000);
while (sk <= _root.box_num) {
xd = (_root["bn" + sk]._x - gotox) + 22;
yd = (_root["bn" + sk]._y - gotoy) + 22;
td = Math.abs(xd) + Math.abs(yd);
if (td < best_td) {
best_td = td;
closest = _root["bn" + sk];
}
sk++;
}
if (closest.hitTest(gotox, gotoy, true)) {
gotsomething = true;
gotit = new Sound(_root.snd);
gotit.attachSound("gotit");
gotit.start(0, 0);
gotit.setVolume(100);
}
action = "return";
}
} else if (action == "return") {
xdif = this._x - (_root.eb_x1 + (ssw / 2));
ydif = this._y - (_root.eb_y1 + (ssh / 2));
this._x = this._x - (xdif / 4);
this._y = this._y - (ydif / 4);
if (gotsomething == true) {
closest._x = this._x - 22;
closest._y = this._y - 22;
}
if ((Math.abs(xdif) <= 3) & (Math.abs(ydif) <= 3)) {
if (gotsomething == true) {
if ((_root.enemyfreeze != 0) or (_root.enemystatus == "dead")) {
closest.action = "waitset";
}
if (closest.icon_color == _root.cue2["qqq" + _root.cue2.cur_qqq]) {
_root.cue2.match = true;
_root.eball.action = "set";
right = new Sound(_root.snd);
right.attachSound("right");
right.start(0, 0);
right.setVolume(50);
if (_root.enemy.robot.curdance != closest.icon_color) {
_root.enemy.robot.gotoAndStop("dance" + closest.icon_color);
}
closest.action = "waitset";
} else if (closest.icon_color == 7) {
if (_root.playerfreeze == 0) {
_root.musicplayer.gotoAndStop(_root.musicplayer.cursong);
}
_root.playerfreeze = 300;
_root.word_player.gotoAndPlay("freeze");
closest.action = "waitset";
} else if (closest.icon_color != _root.cue2["qqq" + _root.cue.cur_qqq]) {
closest.action = "waitset";
} else {
closest.action = "waitset";
}
}
_root.pbeam1.clear();
_root.pbeam2.clear();
_root.pbeam3.clear();
_root.pbeam4.clear();
drawit = false;
this._visible = false;
action = "off";
} else {
drawit = true;
}
}
if (drawit == true) {
_root.createEmptyMovieClip("pbeam1", -12310);
with (_root.pbeam1) {
beginFill(16724940, 30);
lineStyle(1, 16737996, 0);
moveTo(l + this._x, t + this._y);
lineTo(l + this._x, d + this._y);
lineTo(_root.eb_x3, _root.eb_y3);
lineTo(_root.eb_x1, _root.eb_y1);
endFill();
}
_root.createEmptyMovieClip("pbeam2", -12311);
with (_root.pbeam2) {
beginFill(16751052, 30);
lineStyle(1, 16751052, 0);
moveTo(r + this._x, t + this._y);
lineTo(r + this._x, d + this._y);
lineTo(_root.eb_x4, _root.eb_y4);
lineTo(_root.eb_x2, _root.eb_y2);
endFill();
}
_root.createEmptyMovieClip("pbeam3", -12312);
with (_root.pbeam3) {
beginFill(16764108, 60);
lineStyle(1, 16751052, 0);
moveTo(r + this._x, t + this._y);
lineTo(l + this._x, t + this._y);
lineTo(_root.eb_x1, _root.eb_y1);
lineTo(_root.eb_x2, _root.eb_y2);
endFill();
}
_root.createEmptyMovieClip("pbeam4", -12313);
with (_root.pbeam4) {
beginFill(16737996, 60);
lineStyle(1, 16737996, 0);
moveTo(r + this._x, d + this._y);
lineTo(l + this._x, d + this._y);
lineTo(_root.eb_x3, _root.eb_y3);
lineTo(_root.eb_x4, _root.eb_y4);
endFill();
}
}
}
onClipEvent (load) {
action = "off";
}
Instance of Symbol 272 MovieClip "cue" in Frame 13
onClipEvent (load) {
_root.boxgoal = 20;
b = 1;
while (b <= _root.boxgoal) {
this["qqq" + b] = random(6) + 1;
b++;
}
cur_qqq = 1;
match = false;
}
onClipEvent (enterFrame) {
_root.qscore = cur_qqq - 1;
}
Instance of Symbol 275 MovieClip "cue2" in Frame 13
onClipEvent (load) {
_root.eboxgoal = 20;
b = 1;
while (b <= _root.eboxgoal) {
this["qqq" + b] = random(6) + 1;
b++;
}
cur_qqq = 1;
match = false;
}
onClipEvent (enterFrame) {
_root.qscore2 = cur_qqq - 1;
}
Instance of Symbol 313 MovieClip in Frame 13
onClipEvent (enterFrame) {
_root.icon_code(this);
}
onClipEvent (load) {
action = "waitset";
_root.box_num++;
this._name = "bn" + _root.box_num;
}
Instance of Symbol 313 MovieClip in Frame 13
onClipEvent (enterFrame) {
_root.icon_code(this);
}
onClipEvent (load) {
action = "waitset";
_root.box_num++;
this._name = "bn" + _root.box_num;
}
Instance of Symbol 313 MovieClip in Frame 13
onClipEvent (enterFrame) {
_root.icon_code(this);
}
onClipEvent (load) {
action = "waitset";
_root.box_num++;
this._name = "bn" + _root.box_num;
}
Instance of Symbol 313 MovieClip in Frame 13
onClipEvent (enterFrame) {
_root.icon_code(this);
}
onClipEvent (load) {
action = "waitset";
_root.box_num++;
this._name = "bn" + _root.box_num;
}
Instance of Symbol 313 MovieClip in Frame 13
onClipEvent (enterFrame) {
_root.icon_code(this);
}
onClipEvent (load) {
action = "waitset";
_root.box_num++;
this._name = "bn" + _root.box_num;
}
Instance of Symbol 313 MovieClip in Frame 13
onClipEvent (enterFrame) {
_root.icon_code(this);
}
onClipEvent (load) {
action = "waitset";
_root.box_num++;
this._name = "bn" + _root.box_num;
}
Instance of Symbol 313 MovieClip in Frame 13
onClipEvent (enterFrame) {
_root.icon_code(this);
}
onClipEvent (load) {
action = "waitset";
_root.box_num++;
this._name = "bn" + _root.box_num;
}
Frame 14
ifFrameLoaded (16) {
gotoAndStop ("stage3");
}
function icon_code(name) {
if (name.action == "set") {
if ((_root.playerstatus != "dead") & (_root.enemystatus != "dead")) {
name.icon_color = random(6) + 1;
name.select_special = random(100);
if (name.select_special > 96) {
name.icon_color = 7;
}
name.en.en.gotoAndStop(name.icon_color);
name.timer = random(60) + 60;
name.col = random(37);
name.action = "select_position";
}
} else if (name.action == "select_position") {
if (_root["pos_fill" + name.col] == false) {
_root["pos_fill" + name.col] = true;
if (name.col < 20) {
name._x = icon_offsetx + (45 * name.col);
name._y = icon_offsety;
name.action = "grabme";
} else if (name.col == 20) {
name._x = icon_offsetx + 315;
name._y = icon_offsety + 44;
name.action = "grabme";
} else if (name.col == 35) {
name._x = icon_offsetx + 360;
name._y = icon_offsety + 44;
name.action = "grabme";
} else if (name.col == 21) {
name._x = icon_offsetx + 405;
name._y = icon_offsety + 44;
name.action = "grabme";
} else if (name.col == 22) {
name._x = icon_offsetx + 450;
name._y = icon_offsety + 44;
name.action = "grabme";
} else if (name.col == 36) {
name._x = icon_offsetx + 495;
name._y = icon_offsety + 44;
name.action = "grabme";
} else if (name.col == 37) {
name._x = icon_offsetx + 540;
name._y = icon_offsety + 44;
name.action = "grabme";
} else if (name.col == 24) {
name._x = icon_offsetx + 360;
name._y = icon_offsety + 88;
name.action = "grabme";
} else if (name.col == 25) {
name._x = icon_offsetx + 405;
name._y = icon_offsety + 88;
name.action = "grabme";
} else if (name.col == 26) {
name._x = icon_offsetx + 450;
name._y = icon_offsety + 88;
name.action = "grabme";
} else if (name.col == 27) {
name._x = icon_offsetx + 495;
name._y = icon_offsety + 88;
name.action = "grabme";
} else if (name.col == 29) {
name._x = icon_offsetx + 315;
name._y = 386;
name.action = "grabme";
} else if (name.col == 30) {
name._x = icon_offsetx + 360;
name._y = 386;
name.action = "grabme";
} else if (name.col == 31) {
name._x = icon_offsetx + 405;
name._y = 386;
name.action = "grabme";
} else if (name.col == 32) {
name._x = icon_offsetx + 450;
name._y = 386;
name.action = "grabme";
} else if (name.col == 33) {
name._x = icon_offsetx + 495;
name._y = 386;
name.action = "grabme";
} else if (name.col == 34) {
name._x = icon_offsetx + 540;
name._y = 386;
name.action = "grabme";
}
} else {
name.col = random(20);
}
} else if (name.action == "waitset") {
name._x = -100;
name._y = -100;
_root["pos_fill" + name.col] = false;
name.wait_time = random(50) + 20;
name.en.gotoAndStop(1);
name.action = "wait";
} else if (name.action == "wait") {
if (name.wait_time <= 0) {
name.action = "set";
name.en.gotoAndPlay(1);
} else {
name.en.gotoAndStop(1);
name.wait_time--;
}
} else if (name.action == "grabme") {
} else if (name.action == "nograb") {
} else if (name.action == "drag") {
_root["pos_fill" + name.col] = false;
} else if (name.action == "") {
} else if (name.action == "grabbed") {
}
}
pf = 0;
while (pf < 40) {
_root["pos_fill" + pf] = false;
pf++;
}
this.onEnterFrame = function () {
_root.cc++;
if (_root.cc > 800) {
_root.cc = 0;
}
if (_root.gamespeed > 70) {
if (_root.playerstatus == "alive") {
if (Math.abs(b3.x) > Math.abs(b3.y)) {
tx = 0;
ty = txs;
} else {
tx = txs;
ty = 0;
}
b2l = b2._x - (thickness_x * 0.4);
b2r = b2._x + (thickness_x * 0.4);
_root.createEmptyMovieClip("beam5", -10005);
with (_root.beam5) {
beginFill(16777215, 100);
lineStyle(1, 16711935, 0);
ctx = (b2r * 2) - ((b3._x + b1._x) / 2);
cty = (b2._y * 2) - ((b3._y + b1._y) / 2);
moveTo(b1._x, b1._y);
curveTo(ctx, cty, b3._x + tx, b3._y + ty);
lineTo(b3._x - tx, b3._y - ty);
ctx2 = (b2l * 2) - ((b1._x + b3._x) / 2);
cty2 = (b2._y * 2) - ((b1._y + b3._y) / 2);
curveTo(ctx2, cty2, b1._x, b1._y);
endFill();
}
if (Math.abs(b6.x) > Math.abs(b6.y)) {
tx2 = 0;
ty2 = txs;
} else {
tx2 = txs;
ty2 = 0;
}
b5l = b5._x - (thickness_x * 0.4);
b5r = b5._x + (thickness_x * 0.4);
_root.createEmptyMovieClip("beam6", -10006);
with (_root.beam6) {
beginFill(16777215, 100);
lineSty2le(1, 16711935, 0);
ctx3 = (b5r * 2) - ((b6._x + b4._x) / 2);
cty3 = (b5._y * 2) - ((b6._y + b4._y) / 2);
moveTo(b4._x, b4._y);
curveTo(ctx3, cty3, b6._x + tx2, b6._y + ty2);
lineTo(b6._x - tx2, b6._y - ty2);
ctx4 = (b5l * 2) - ((b4._x + b6._x) / 2);
cty4 = (b5._y * 2) - ((b4._y + b6._y) / 2);
curveTo(ctx4, cty4, b4._x, b4._y);
endFill();
}
} else {
beam5.clear();
beam6.clear();
}
if (_root.enemystatus == "alive") {
if (Math.abs(be3.x) > Math.abs(be3.y)) {
etx = 0;
ety = etxs;
} else {
etx = etxs;
ety = 0;
}
be2l = be2._x - (thickness_x * 0.4);
be2r = be2._x + (thickness_x * 0.4);
_root.createEmptyMovieClip("beam7", -10007);
with (_root.beam7) {
beginFill(16777215, 100);
lineStyle(1, 16711935, 0);
ectx = (be2r * 2) - ((be3._x + be1._x) / 2);
ecty = (be2._y * 2) - ((be3._y + be1._y) / 2);
moveTo(be1._x, be1._y);
curveTo(ectx, ecty, be3._x + etx, be3._y + ety);
lineTo(be3._x - etx, be3._y - ety);
ectx2 = (be2l * 2) - ((be1._x + be3._x) / 2);
ecty2 = (be2._y * 2) - ((be1._y + be3._y) / 2);
curveTo(ectx2, ecty2, be1._x, be1._y);
endFill();
}
if (Math.abs(be6.x) > Math.abs(be6.y)) {
etx2 = 0;
ety2 = etxs;
} else {
etx2 = etxs;
ety2 = 0;
}
be5l = be5._x - (thickness_x * 0.4);
be5r = be5._x + (thickness_x * 0.4);
_root.createEmptyMovieClip("beam8", -10008);
with (_root.beam8) {
beginFill(16777215, 100);
lineSty2le(1, 16711935, 0);
ectx3 = (be5r * 2) - ((be6._x + be4._x) / 2);
ecty3 = (be5._y * 2) - ((be6._y + be4._y) / 2);
moveTo(be4._x, be4._y);
curveTo(ectx3, ecty3, be6._x + etx2, be6._y + ety2);
lineTo(be6._x - etx2, be6._y - ety2);
ectx4 = (be5l * 2) - ((be4._x + be6._x) / 2);
ecty4 = (be5._y * 2) - ((be4._y + be6._y) / 2);
curveTo(ectx4, ecty4, be4._x, be4._y);
endFill();
}
var bl = (new flash.filters.BlurFilter());
bl.blurX = 4;
bl.blurY = 4;
} else {
beam7.clear();
beam8.clear();
}
} else {
beam5.clear();
beam6.clear();
beam7.clear();
beam8.clear();
}
};
Frame 15
gotoAndPlay(_currentframe - 1);
Frame 16
stop();
back = 3;
Instance of Symbol 326 MovieClip in Frame 16
onClipEvent (load) {
gotoAndPlay (1);
}
Instance of Symbol 327 MovieClip "b1" in Frame 16
onClipEvent (enterFrame) {
a = _root.trail;
this._x = _root["cx" + (_root.cc - a)];
this._y = _root["cy" + (_root.cc - a)];
}
Instance of Symbol 327 MovieClip "b3" in Frame 16
onClipEvent (enterFrame) {
this._x = _root["cx" + _root.cc];
this._y = _root["cy" + _root.cc];
}
onClipEvent (enterFrame) {
xp = _root["cx" + (_root.cc - 1)];
yp = _root["cy" + (_root.cc - 1)];
xn = _root["cx" + _root.cc];
yn = _root["cy" + _root.cc];
x = xn - xp;
y = yn - yp;
}
Instance of Symbol 327 MovieClip "b2" in Frame 16
onClipEvent (enterFrame) {
a = _root.trail / 2;
this._x = _root["cx" + (_root.cc - a)];
this._y = _root["cy" + (_root.cc - a)];
}
Instance of Symbol 327 MovieClip "b4" in Frame 16
onClipEvent (enterFrame) {
a = _root.trail;
this._x = _root["cx2" + (_root.cc - a)];
this._y = _root["cy2" + (_root.cc - a)];
}
Instance of Symbol 327 MovieClip "b6" in Frame 16
onClipEvent (enterFrame) {
this._x = _root["cx2" + _root.cc];
this._y = _root["cy2" + _root.cc];
}
onClipEvent (enterFrame) {
xp = _root["cx2" + (_root.cc - 1)];
yp = _root["cy2" + (_root.cc - 1)];
xn = _root["cx2" + _root.cc];
yn = _root["cy2" + _root.cc];
x = xn - xp;
y = yn - yp;
}
Instance of Symbol 327 MovieClip "b5" in Frame 16
onClipEvent (enterFrame) {
a = _root.trail / 2;
this._x = _root["cx2" + (_root.cc - a)];
this._y = _root["cy2" + (_root.cc - a)];
}
Instance of Symbol 258 MovieClip "ball" in Frame 16
onClipEvent (enterFrame) {
_root.fireball(this);
if (this.tail._yscale < 100) {
this.tail._yscale = this.tail._yscale + 10;
}
x2 = this.xspeed;
y2 = this.yspeed;
if (x < 0) {
this.head._yscale = -100;
} else if (x > 0) {
this.head._yscale = 100;
}
if (x2 > 0) {
baseangle = -90;
} else if (x2 < 0) {
baseangle = 90;
}
if (x2 > 0) {
angleperc = y2 / x2;
if (angleperc > 2) {
angleperc = 2;
} else if (angleperc < -2) {
angleperc = -2;
}
this.tail._rotation = (angleperc * 45) - 90;
} else if (x2 < 0) {
x2 = -x2;
angleperc = y2 / x2;
if (angleperc > 2) {
angleperc = 2;
} else if (angleperc < -2) {
angleperc = -2;
}
this.tail._rotation = (angleperc * -45) + 90;
}
}
Instance of Symbol 258 MovieClip "eball" in Frame 16
onClipEvent (enterFrame) {
_root.fireball2(this);
if (this.tail._yscale < 100) {
this.tail._yscale = this.tail._yscale + 10;
}
x2 = this.xspeed;
y2 = this.yspeed;
if (x < 0) {
this.head._yscale = -100;
} else if (x > 0) {
this.head._yscale = 100;
}
if (x2 > 0) {
baseangle = -90;
} else if (x2 < 0) {
baseangle = 90;
}
if (x2 > 0) {
angleperc = y2 / x2;
if (angleperc > 2) {
angleperc = 2;
} else if (angleperc < -2) {
angleperc = -2;
}
this.tail._rotation = (angleperc * 45) - 90;
} else if (x2 < 0) {
x2 = -x2;
angleperc = y2 / x2;
if (angleperc > 2) {
angleperc = 2;
} else if (angleperc < -2) {
angleperc = -2;
}
this.tail._rotation = (angleperc * -45) + 90;
}
}
Instance of Symbol 327 MovieClip "be1" in Frame 16
onClipEvent (enterFrame) {
a = _root.trail;
if ((_root.cc - a) >= 0) {
this._x = _root["ex" + (_root.cc - a)];
this._y = _root["ey" + (_root.cc - a)];
} else {
this._x = _root["ex" + ((_root.cc - a) + 800)];
this._y = _root["ey" + ((_root.cc - a) + 800)];
}
}
Instance of Symbol 327 MovieClip "be3" in Frame 16
onClipEvent (enterFrame) {
this._x = _root["ex" + (_root.cc - 1)];
this._y = _root["ey" + (_root.cc - 1)];
}
onClipEvent (enterFrame) {
xp = _root["ex" + (_root.cc - 1)];
yp = _root["ey" + (_root.cc - 1)];
xn = _root["ex" + _root.cc];
yn = _root["ey" + _root.cc];
x = xn - xp;
y = yn - yp;
}
Instance of Symbol 327 MovieClip "be2" in Frame 16
onClipEvent (enterFrame) {
a = _root.trail / 2;
if ((_root.cc - a) >= 0) {
this._x = _root["ex" + (_root.cc - a)];
this._y = _root["ey" + (_root.cc - a)];
} else {
this._x = _root["ex" + ((_root.cc - a) + 800)];
this._y = _root["ey" + ((_root.cc - a) + 800)];
}
}
Instance of Symbol 327 MovieClip "be4" in Frame 16
onClipEvent (enterFrame) {
a = _root.trail;
if ((_root.cc - a) >= 0) {
this._x = _root["ex2" + (_root.cc - a)];
this._y = _root["ey2" + (_root.cc - a)];
} else {
this._x = _root["ex2" + ((_root.cc - a) + 800)];
this._y = _root["ey2" + ((_root.cc - a) + 800)];
}
}
Instance of Symbol 327 MovieClip "be6" in Frame 16
onClipEvent (enterFrame) {
this._x = _root["ex2" + (_root.cc - 1)];
this._y = _root["ey2" + (_root.cc - 1)];
}
onClipEvent (enterFrame) {
xp = _root["ex2" + (_root.cc - 1)];
yp = _root["ey2" + (_root.cc - 1)];
xn = _root["ex2" + _root.cc];
yn = _root["ey2" + _root.cc];
x = xn - xp;
y = yn - yp;
}
Instance of Symbol 327 MovieClip "be5" in Frame 16
onClipEvent (enterFrame) {
a = _root.trail / 2;
if ((_root.cc - a) >= 0) {
this._x = _root["ex2" + (_root.cc - a)];
this._y = _root["ey2" + (_root.cc - a)];
d = _root.cc - a;
} else {
this._x = _root["ex2" + ((_root.cc - a) + 800)];
this._y = _root["ey2" + ((_root.cc - a) + 800)];
d = (_root.cc - a) + 800;
}
}
Instance of Symbol 195 MovieClip "robot" in Frame 16
onClipEvent (enterFrame) {
if (_root.playerfreeze > 0) {
this.robot.stop();
this.gotoAndStop(2);
this.robot.dir = "";
_root.playerfreeze--;
_root.playerfreezeit = true;
} else if ((_root.playerfreeze == 0) & (_root.playerfreezeit == true)) {
this.robot.dir = "f";
this.gotoAndStop(1);
_root.playerfreezeit = false;
}
this.robot.chest.gotoAndStop(t);
this.robot.head.gotoAndStop(t);
this.robot.leg1.gotoAndStop(t);
this.robot.leg2.gotoAndStop(t);
this.robot.leg3.gotoAndStop(t);
this.robot.leg4.gotoAndStop(t);
this.robot.arm1.gotoAndStop(t);
this.robot.arm2.gotoAndStop(t);
this.robot.arm3.gotoAndStop(t);
this.robot.arm4.gotoAndStop(t);
this.robot2.chest.gotoAndStop(t);
this.robot2.head.gotoAndStop(t);
this.robot2.leg1.gotoAndStop(t);
this.robot2.leg2.gotoAndStop(t);
this.robot2.leg3.gotoAndStop(t);
this.robot2.leg4.gotoAndStop(t);
this.robot2.arm1.gotoAndStop(t);
this.robot2.arm2.gotoAndStop(t);
this.robot2.arm3.gotoAndStop(t);
this.robot2.arm4.gotoAndStop(t);
}
onClipEvent (load) {
t = _root.chooserobot;
this.gotoAndStop(1);
this.robot.gotoAndPlay(1);
}
Instance of Symbol 195 MovieClip "enemy" in Frame 16
onClipEvent (enterFrame) {
if (_root.enemyfreeze > 0) {
this.robot.stop();
this.gotoAndStop(2);
this.robot.dir = "";
_root.enemyfreeze--;
_root.enemyfreezeit = true;
} else if ((_root.enemyfreeze == 0) & (_root.enemyfreezeit == true)) {
this.robot.dir = "f";
this.gotoAndStop(1);
_root.enemyfreezeit = false;
}
this.robot.chest.gotoAndStop(t);
this.robot.head.gotoAndStop(t);
this.robot.leg1.gotoAndStop(t);
this.robot.leg2.gotoAndStop(t);
this.robot.leg3.gotoAndStop(t);
this.robot.leg4.gotoAndStop(t);
this.robot.arm1.gotoAndStop(t);
this.robot.arm2.gotoAndStop(t);
this.robot.arm3.gotoAndStop(t);
this.robot.arm4.gotoAndStop(t);
}
onClipEvent (load) {
if ((_root.chooserobot + 1) <= 4) {
t = _root.chooserobot + 1;
} else {
t = (_root.chooserobot + 1) - 4;
}
}
Instance of Symbol 329 MovieClip "ball1" in Frame 16
onClipEvent (enterFrame) {
this._x = _root.rhx;
this._y = _root.rhy;
_root["cx" + _root.cc] = this._x;
_root["cy" + _root.cc] = this._y;
}
Instance of Symbol 329 MovieClip "ball2" in Frame 16
onClipEvent (enterFrame) {
this._x = _root.rhx2;
this._y = _root.rhy2;
_root["cx2" + _root.cc] = this._x;
_root["cy2" + _root.cc] = this._y;
}
Instance of Symbol 329 MovieClip "ball4" in Frame 16
onClipEvent (enterFrame) {
this._x = _root.ehx;
this._y = _root.ehy;
_root["ex" + _root.cc] = this._x;
_root["ey" + _root.cc] = this._y;
}
Instance of Symbol 329 MovieClip "ball3" in Frame 16
onClipEvent (enterFrame) {
this._x = _root.ehx2;
this._y = _root.ehy2;
_root["ex2" + _root.cc] = this._x;
_root["ey2" + _root.cc] = this._y;
}
Instance of Symbol 440 MovieClip "musicplayer" in Frame 16
onClipEvent (load) {
cursong = 2;
}
onClipEvent (enterFrame) {
if (_root.enemystatus == "dead") {
this.gotoAndStop("off");
}
}
Instance of Symbol 259 MovieClip "tt" in Frame 16
onClipEvent (enterFrame) {
if (_root.playerfreeze != 0) {
_root.tarbox._visible = false;
}
if (_root.playerstatus == "dead") {
_root.tarbox._visible = false;
action = "";
this._x = -300;
this._y = -300;
drawit = false;
_root.beam1.clear();
_root.beam2.clear();
_root.beam3.clear();
_root.beam4.clear();
if (_root.scoremenu._currentframe == 1) {
_root.scoremenu.gotoAndStop("lose");
}
} else if (_root.enemystatus == "dead") {
_root.pbeam1.clear();
_root.pbeam2.clear();
_root.pbeam3.clear();
_root.pbeam4.clear();
if (_root.scoremenu._currentframe == 1) {
_root.scoremenu.gotoAndStop(2);
}
_root.tarbox._visible = false;
action = "";
this._x = -300;
this._y = -300;
_root.beam1.clear();
_root.beam2.clear();
_root.beam3.clear();
_root.beam4.clear();
}
if (((action == "off") & (_root.gamestatus != "wait")) & (_root.playerfreeze == 0)) {
drawit = false;
_root.tarbox._visible = true;
_root.tarbox._x = _root._xmouse;
_root.tarbox._y = _root._ymouse;
this.onMouseDown = function () {
if (((action == "off") & (_root.gamestatus != "wait")) & (_root.playerfreeze == 0)) {
gotox = _root._xmouse;
gotoy = _root._ymouse;
ssh = _root.rb_y3 - _root.rb_y1;
ssw = _root.rb_x2 - _root.rb_x1;
this._x = _root.rb_x1 + (ssw / 2);
this._y = _root.rb_y1 + (ssh / 2);
_root.tarbox._visible = false;
action = "seek";
suck1 = new Sound(_root.snd);
suck1.attachSound("suck1");
suck1.start(0, 0);
suck1.setVolume(100);
}
};
} else if (action == "seek") {
closest = "";
gotsomething = false;
l = -(this._width / 2);
r = this._width / 2;
t = -(this._height / 2);
d = this._height / 2;
this._visible = true;
drawit = true;
xdif = this._x - gotox;
ydif = this._y - gotoy;
this._x = this._x - (xdif / 3);
this._y = this._y - (ydif / 3);
if ((Math.abs(xdif) <= 3) & (Math.abs(ydif) <= 3)) {
(sk = 1);
(best_td = 1000);
while (sk <= _root.box_num) {
xd = (_root["bn" + sk]._x - gotox) + 22;
yd = (_root["bn" + sk]._y - gotoy) + 22;
td = Math.abs(xd) + Math.abs(yd);
if (td < best_td) {
best_td = td;
closest = _root["bn" + sk];
}
sk++;
}
if (closest.hitTest(gotox, gotoy, true)) {
closest.action = "drag";
gotsomething = true;
gotit = new Sound(_root.snd);
gotit.attachSound("gotit");
gotit.start(0, 0);
gotit.start(0, 0);
gotit.start(0, 0);
gotit.setVolume(100);
}
action = "return";
}
} else if (action == "return") {
xdif = this._x - (_root.rb_x1 + (ssw / 2));
ydif = this._y - (_root.rb_y1 + (ssh / 2));
this._x = this._x - (xdif / 4);
this._y = this._y - (ydif / 4);
if (gotsomething == true) {
closest._x = this._x - 22;
closest._y = this._y - 22;
}
if ((Math.abs(xdif) <= 3) & (Math.abs(ydif) <= 3)) {
if (gotsomething == true) {
if (closest.icon_color == _root.cue["qqq" + _root.cue.cur_qqq]) {
_root.cue.match = true;
right = new Sound(_root.snd);
right.attachSound("right");
right.start(0, 0);
right.setVolume(50);
if (_root.robot.robot.curdance != closest.icon_color) {
_root.robot.robot.gotoAndStop("dance" + closest.icon_color);
}
_root.ball.action = "set";
closest.action = "waitset";
} else if (closest.icon_color == 7) {
if (_root.enemyfreeze == 0) {
_root.musicplayer.gotoAndStop(_root.musicplayer.cursong);
}
_root.enemyfreeze = 300;
_root.player_ringtones++;
_root.word_enemy.gotoAndPlay("freeze");
closest.action = "waitset";
} else if (closest.icon_color != _root.cue["qqq" + _root.cue.cur_qqq]) {
closest.action = "waitset";
}
}
_root.beam1.clear();
_root.beam2.clear();
_root.beam3.clear();
_root.beam4.clear();
drawit = false;
this._visible = false;
action = "off";
} else {
drawit = true;
}
}
if (drawit == true) {
_root.beam.clear();
_root.createEmptyMovieClip("beam1", -12301);
with (_root.beam1) {
beginFill(52479, 30);
lineStyle(1, 16711935, 0);
moveTo(l + this._x, t + this._y);
lineTo(l + this._x, d + this._y);
lineTo(_root.rb_x3, _root.rb_y3);
lineTo(_root.rb_x1, _root.rb_y1);
endFill();
}
_root.createEmptyMovieClip("beam2", -12302);
with (_root.beam2) {
beginFill(52479, 30);
lineStyle(1, 16711935, 0);
moveTo(r + this._x, t + this._y);
lineTo(r + this._x, d + this._y);
lineTo(_root.rb_x4, _root.rb_y4);
lineTo(_root.rb_x2, _root.rb_y2);
endFill();
}
_root.createEmptyMovieClip("beam3", -12303);
with (_root.beam3) {
beginFill(6750207, 60);
lineStyle(1, 16711935, 0);
moveTo(r + this._x, t + this._y);
lineTo(l + this._x, t + this._y);
lineTo(_root.rb_x1, _root.rb_y1);
lineTo(_root.rb_x2, _root.rb_y2);
endFill();
}
_root.createEmptyMovieClip("beam4", -12304);
with (_root.beam4) {
beginFill(3394815, 60);
lineStyle(1, 16711935, 0);
moveTo(r + this._x, d + this._y);
lineTo(l + this._x, d + this._y);
lineTo(_root.rb_x3, _root.rb_y3);
lineTo(_root.rb_x4, _root.rb_y4);
endFill();
}
}
}
onClipEvent (load) {
action = "off";
}
Instance of Symbol 259 MovieClip "tt2" in Frame 16
onClipEvent (enterFrame) {
if (_root.enemyfreeze != 0) {
action = "off";
_root.pbeam1.clear();
_root.pbeam2.clear();
_root.pbeam3.clear();
_root.pbeam4.clear();
drawit = false;
this._x = -300;
this._y = -300;
}
if (_root.enemystatus == "dead") {
action = "";
this._x = -300;
this._y = -300;
drawit = false;
_root.pbeam1.clear();
_root.pbeam2.clear();
_root.pbeam3.clear();
_root.pbeam4.clear();
}
if (((action == "off") & (_root.gamestatus != "wait")) & (_root.enemyfreeze == 0)) {
drawit = false;
bbb = 1;
while (bbb < _root.box_num) {
if (_root["bn" + bbb].action == "grabme") {
if (_root["bn" + bbb].icon_color == _root.cue2["qqq" + _root.cue2.cur_qqq]) {
cpupick_x = _root["bn" + bbb]._x;
cpupick_y = _root["bn" + bbb]._y;
gotox = cpupick_x + 22;
gotoy = cpupick_y + 22;
ssh = _root.eb_y3 - _root.eb_y1;
ssw = _root.eb_x2 - _root.eb_x1;
this._height = ssh;
this._width = ssw;
this._x = _root.eb_x1 + (ssw / 2);
this._y = _root.eb_y1 + (ssh / 2);
dif_del = 0;
set_dif_del = random(_root.difficulty) + 5;
action = "difficulty_delay";
} else if (_root["bn" + bbb].icon_color == 7) {
cpupick_x = _root["bn" + bbb]._x;
cpupick_y = _root["bn" + bbb]._y;
gotox = cpupick_x + 22;
gotoy = cpupick_y + 22;
ssh = _root.eb_y3 - _root.eb_y1;
ssw = _root.eb_x2 - _root.eb_x1;
this._height = ssh;
this._width = ssw;
this._x = _root.eb_x1 + (ssw / 2);
this._y = _root.eb_y1 + (ssh / 2);
dif_del = 0;
set_dif_del = random(_root.difficulty) + 5;
action = "difficulty_delay";
}
}
bbb++;
}
} else if (action == "difficulty_delay") {
if (dif_del > set_dif_del) {
action = "seek";
suck2 = new Sound(_root.snd);
suck2.attachSound("suck2");
suck2.start(0, 0);
suck2.setVolume(50);
} else {
dif_del++;
}
} else if (action == "seek") {
if (this._xscale < 135) {
this._xscale = this._xscale + 5;
}
if (this._yscale < 135) {
this._yscale = this._yscale + 5;
}
closest = "";
gotsomething = false;
l = -(this._width / 2);
r = this._width / 2;
t = -(this._height / 2);
d = this._height / 2;
this._visible = true;
drawit = true;
xdif = this._x - gotox;
ydif = this._y - gotoy;
this._x = this._x - (xdif / 3);
this._y = this._y - (ydif / 3);
if ((Math.abs(xdif) <= 3) & (Math.abs(ydif) <= 3)) {
(sk = 1);
(best_td = 1000);
while (sk <= _root.box_num) {
xd = (_root["bn" + sk]._x - gotox) + 22;
yd = (_root["bn" + sk]._y - gotoy) + 22;
td = Math.abs(xd) + Math.abs(yd);
if (td < best_td) {
best_td = td;
closest = _root["bn" + sk];
}
sk++;
}
if (closest.hitTest(gotox, gotoy, true)) {
gotsomething = true;
gotit = new Sound(_root.snd);
gotit.attachSound("gotit");
gotit.start(0, 0);
gotit.setVolume(100);
}
action = "return";
}
} else if (action == "return") {
xdif = this._x - (_root.eb_x1 + (ssw / 2));
ydif = this._y - (_root.eb_y1 + (ssh / 2));
this._x = this._x - (xdif / 4);
this._y = this._y - (ydif / 4);
if (gotsomething == true) {
closest._x = this._x - 22;
closest._y = this._y - 22;
}
if ((Math.abs(xdif) <= 3) & (Math.abs(ydif) <= 3)) {
if (gotsomething == true) {
if ((_root.enemyfreeze != 0) or (_root.enemystatus == "dead")) {
closest.action = "waitset";
}
if (closest.icon_color == _root.cue2["qqq" + _root.cue2.cur_qqq]) {
_root.cue2.match = true;
_root.eball.action = "set";
right = new Sound(_root.snd);
right.attachSound("right");
right.start(0, 0);
right.setVolume(50);
if (_root.enemy.robot.curdance != closest.icon_color) {
_root.enemy.robot.gotoAndStop("dance" + closest.icon_color);
}
closest.action = "waitset";
} else if (closest.icon_color == 7) {
if (_root.playerfreeze == 0) {
_root.musicplayer.gotoAndStop(_root.musicplayer.cursong);
}
_root.playerfreeze = 300;
_root.word_player.gotoAndPlay("freeze");
closest.action = "waitset";
} else if (closest.icon_color != _root.cue2["qqq" + _root.cue.cur_qqq]) {
closest.action = "waitset";
} else {
closest.action = "waitset";
}
}
_root.pbeam1.clear();
_root.pbeam2.clear();
_root.pbeam3.clear();
_root.pbeam4.clear();
drawit = false;
this._visible = false;
action = "off";
} else {
drawit = true;
}
}
if (drawit == true) {
_root.createEmptyMovieClip("pbeam1", -12310);
with (_root.pbeam1) {
beginFill(16724940, 30);
lineStyle(1, 16737996, 0);
moveTo(l + this._x, t + this._y);
lineTo(l + this._x, d + this._y);
lineTo(_root.eb_x3, _root.eb_y3);
lineTo(_root.eb_x1, _root.eb_y1);
endFill();
}
_root.createEmptyMovieClip("pbeam2", -12311);
with (_root.pbeam2) {
beginFill(16751052, 30);
lineStyle(1, 16751052, 0);
moveTo(r + this._x, t + this._y);
lineTo(r + this._x, d + this._y);
lineTo(_root.eb_x4, _root.eb_y4);
lineTo(_root.eb_x2, _root.eb_y2);
endFill();
}
_root.createEmptyMovieClip("pbeam3", -12312);
with (_root.pbeam3) {
beginFill(16764108, 60);
lineStyle(1, 16751052, 0);
moveTo(r + this._x, t + this._y);
lineTo(l + this._x, t + this._y);
lineTo(_root.eb_x1, _root.eb_y1);
lineTo(_root.eb_x2, _root.eb_y2);
endFill();
}
_root.createEmptyMovieClip("pbeam4", -12313);
with (_root.pbeam4) {
beginFill(16737996, 60);
lineStyle(1, 16737996, 0);
moveTo(r + this._x, d + this._y);
lineTo(l + this._x, d + this._y);
lineTo(_root.eb_x3, _root.eb_y3);
lineTo(_root.eb_x4, _root.eb_y4);
endFill();
}
}
}
onClipEvent (load) {
action = "off";
}
Instance of Symbol 272 MovieClip "cue" in Frame 16
onClipEvent (load) {
_root.boxgoal = 20;
b = 1;
while (b <= _root.boxgoal) {
this["qqq" + b] = random(6) + 1;
b++;
}
cur_qqq = 1;
match = false;
}
onClipEvent (enterFrame) {
_root.qscore = cur_qqq - 1;
}
Instance of Symbol 275 MovieClip "cue2" in Frame 16
onClipEvent (load) {
_root.eboxgoal = 20;
b = 1;
while (b <= _root.eboxgoal) {
this["qqq" + b] = random(6) + 1;
b++;
}
cur_qqq = 1;
match = false;
}
onClipEvent (enterFrame) {
_root.qscore2 = cur_qqq - 1;
}
Instance of Symbol 313 MovieClip in Frame 16
onClipEvent (enterFrame) {
_root.icon_code(this);
}
onClipEvent (load) {
action = "waitset";
_root.box_num++;
this._name = "bn" + _root.box_num;
}
Instance of Symbol 313 MovieClip in Frame 16
onClipEvent (enterFrame) {
_root.icon_code(this);
}
onClipEvent (load) {
action = "waitset";
_root.box_num++;
this._name = "bn" + _root.box_num;
}
Instance of Symbol 313 MovieClip in Frame 16
onClipEvent (enterFrame) {
_root.icon_code(this);
}
onClipEvent (load) {
action = "waitset";
_root.box_num++;
this._name = "bn" + _root.box_num;
}
Instance of Symbol 313 MovieClip in Frame 16
onClipEvent (enterFrame) {
_root.icon_code(this);
}
onClipEvent (load) {
action = "waitset";
_root.box_num++;
this._name = "bn" + _root.box_num;
}
Instance of Symbol 313 MovieClip in Frame 16
onClipEvent (enterFrame) {
_root.icon_code(this);
}
onClipEvent (load) {
action = "waitset";
_root.box_num++;
this._name = "bn" + _root.box_num;
}
Instance of Symbol 313 MovieClip in Frame 16
onClipEvent (enterFrame) {
_root.icon_code(this);
}
onClipEvent (load) {
action = "waitset";
_root.box_num++;
this._name = "bn" + _root.box_num;
}
Instance of Symbol 313 MovieClip in Frame 16
onClipEvent (enterFrame) {
_root.icon_code(this);
}
onClipEvent (load) {
action = "waitset";
_root.box_num++;
this._name = "bn" + _root.box_num;
}
Symbol 6 MovieClip [RemotingDebugClasses] Frame 1
#initclip 57
Object.registerClass("RemotingDebugClasses", mx.remoting.DebugClasses);
#endinitclip
preview._visible = false;
stop();
Symbol 51 MovieClip [RemotingClasses] Frame 1
#initclip 58
Object.registerClass("RemotingClasses", mx.remoting.ApiClasses);
#endinitclip
preview._visible = false;
stop();
Symbol 9 MovieClip [__Packages.mx.remoting.NetServices] Frame 0
class mx.remoting.NetServices extends Object
{
static var defaultGatewayUrl, logger, traceNetServices;
function NetServices () {
super();
}
static function setDefaultGatewayUrl(url) {
defaultGatewayUrl = url;
}
static function setGatewayUrl(url) {
gatewayUrl = url;
}
static function createGatewayConnection(url, infoLogger) {
var _local1 = url;
logger = infoLogger;
if (_local1 == undefined) {
_local1 = gatewayUrl;
if (_local1 == undefined) {
_local1 = defaultGatewayUrl;
}
}
if (_local1 == undefined) {
trace("NetServices", "warning", 4, "createGatewayConnection - gatewayUrl is undefined");
logger.logInfo(("NetServices: createGatewayConnection - gateway url <" + _local1) + "> is undefined", mx.services.Log.DEBUG);
return(null);
}
var _local2 = new mx.remoting.Connection();
_local2.connect(_local1);
__sharedConnections[_local1] = _local2;
return(_local2);
}
static function getConnection(uri) {
return(__sharedConnections[uri]);
}
static function getHostUrl() {
var _local2 = _root;
if (!isHttpUrl(_local2._url)) {
trace("NetServices", "warning", 4, "createGatewayConnection - gatewayUrl is invalid");
return(null);
}
var _local1 = _local2._url.indexOf("/", 8);
if (_local1 < 0) {
trace("NetServices", "warning", 4, "createGatewayConnection - gatewayUrl is invalid");
return(null);
}
return(_local2._url.substring(0, _local1));
}
static function isHttpUrl(url) {
return((url.indexOf("http://") == 0) || (url.indexOf("https://") == 0));
}
static function getHttpUrl(url) {
var _local1 = url;
if (!isHttpUrl(_local1)) {
_local1 = getHostUrl() + _local1;
}
return(_local1);
}
static function trace(who, severity, number, message) {
traceNetServices(who, severity, number, message);
}
static var version = "1.2.0.124";
static var gatewayUrl = _root.gatewayUrl;
static var __sharedConnections = new Array();
}
Symbol 7 MovieClip [__Packages.mx.services.Log] Frame 0
class mx.services.Log
{
var level, name;
function Log (logLevel, name) {
level = ((logLevel == undefined) ? (BRIEF) : (logLevel));
this.name = ((name == undefined) ? "" : (name));
}
function logInfo(msg, level) {
if (level == undefined) {
level = BRIEF;
}
if (level <= this.level) {
if (level == DEBUG) {
onLog((((getDateString() + " [DEBUG] ") + name) + ": ") + msg);
} else {
onLog((((getDateString() + " [INFO] ") + name) + ": ") + msg);
}
}
}
function logDebug(msg) {
logInfo(msg, DEBUG);
}
function getDateString() {
var _local1 = new Date();
return(((((((((_local1.getMonth() + 1) + "/") + _local1.getDate()) + " ") + _local1.getHours()) + ":") + _local1.getMinutes()) + ":") + _local1.getSeconds());
}
function onLog(message) {
trace(message);
}
static var NONE = -1;
static var BRIEF = 0;
static var VERBOSE = 1;
static var DEBUG = 2;
}
Symbol 8 MovieClip [__Packages.mx.remoting.Connection] Frame 0
class mx.remoting.Connection extends NetConnection
{
var uri;
function Connection () {
super();
}
function getService(serviceName, client) {
var _local1 = new mx.remoting.NetServiceProxy(this, serviceName, client);
return(_local1);
}
function setCredentials(userId, password) {
addHeader("Credentials", false, {userid:userId, password:password});
}
function clone() {
var _local1 = new mx.remoting.Connection();
_local1.connect(uri);
return(_local1);
}
function getDebugId() {
return(null);
}
function getDebugConfig() {
return(null);
}
function setDebugId(id) {
}
function call() {
super.call.apply(super, arguments);
}
function close() {
super.close();
}
function connect(url) {
return(super.connect(url));
}
function addHeader(name, mustUnderstand, obj) {
super.addHeader(name, mustUnderstand, obj);
}
function trace(traceObj) {
}
function AppendToGatewayUrl(urlSuffix) {
var _local1 = this;
_local1.__urlSuffix = urlSuffix;
if (_local1.__originalUrl == null) {
_local1.__originalUrl = _local1.uri;
}
var _local2 = _local1.__originalUrl + urlSuffix;
_local1.connect(_local2);
}
function ReplaceGatewayUrl(newUrl) {
connect(newUrl);
}
function RequestPersistentHeader(info) {
var _local1 = info;
addHeader(_local1.name, _local1.mustUnderstand, _local1.data);
}
static var version = "1.2.0.124";
}
Symbol 14 MovieClip [__Packages.mx.remoting.NetServiceProxy] Frame 0
class mx.remoting.NetServiceProxy extends Object
{
var nc, client;
function NetServiceProxy (netC, servName, cli) {
var _local1 = this;
super();
if (netC != null) {
_local1.nc = netC;
_local1.serviceName = servName;
_local1.client = cli;
}
_local1._allowRes = true;
}
function _setParentService(service) {
nc = service.nc;
client = service.client;
}
function __resolve(methodName) {
var _local1 = this;
var _local2 = arguments;
if (_local1._allowRes) {
var _local3 = function () {
var _local1 = this;
var _local2 = arguments;
if (_local1.client != null) {
_local2.unshift(new mx.remoting.NetServiceProxyResponder(_local1, methodName));
} else if (typeof(_local2[0].onResult) != "function") {
mx.remoting.NetServices.trace("NetServices", "warning", 3, "There is no defaultResponder, and no responder was given in call to " + methodName);
_local2.unshift(new mx.remoting.NetServiceProxyResponder(_local1, methodName));
}
if (typeof(_local1.serviceName) == "function") {
_local1.serviceName = _local1.servicename;
}
_local2.unshift((_local1.serviceName + ".") + methodName);
return(_local1.nc.call.apply(_local1.nc, _local2));
};
return(_local3);
}
return(null);
}
static function registerNetServiceProxy() {
Object.registerClass("NetServiceProxy", mx.remoting.NetServiceProxy);
return(true);
}
static var init = registerNetServiceProxy();
var _allowRes = false;
}
Symbol 37 MovieClip [__Packages.mx.remoting.debug.NetDebug] Frame 0
class mx.remoting.debug.NetDebug extends Object
{
static var ndSingleton;
var _ncs, _nextNewId, _glc, _config;
function NetDebug () {
var _local1 = this;
super();
_local1._ncs = new Array();
_local1._config = mx.remoting.debug.NetDebugConfig.getDefaultNetDebugConfig(false);
_local1._glc = new mx.remoting.debug.GlobalLocalConnection(false, _local1);
_local1._glc.sendCommand(new mx.remoting.debug.commands.GetConfig());
_local1._nextNewId = 0;
if (_global.System.onStatus == undefined) {
_global.System.onStatus = globalOnStatus;
}
mx.remoting.NetServices.traceNetServices = traceNetServices;
}
function addNetConnection(nc) {
_ncs.push(nc);
return(_nextNewId++);
}
function requestNewConfig() {
return(sendCommand(new mx.remoting.debug.commands.GetConfig()));
}
function removeNetConnection(nc) {
var _local2 = this;
var _local3 = _local2._ncs.length;
var _local1 = 0;
while (_local1 < _local3) {
if (nc == _local2._ncs[_local1]) {
_local2._ncs.splice(_local1, 1);
return;
}
_local1++;
}
}
function sendDebugEvent(eventobj) {
if (!_glc.send(eventobj)) {
_glc.send(new mx.remoting.debug.events.NetDebugFailedSendError(stripNCDEventToMinmal(eventobj)));
return(false);
}
return(true);
}
function sendCommand(commandobj) {
return(_glc.sendCommand(commandobj));
}
function updateConfig(config) {
var _local2 = this;
mx.utils.ObjectCopy.copyProperties(_local2._config, config);
var _local3 = _local2._ncs.length;
var _local1 = 0;
while (_local1 < _local3) {
if (_local2._ncs[_local1] != null) {
_local2._ncs[_local1].updateConfig(config);
}
_local1++;
}
}
function sendStatus(statusobj) {
var _local1 = this;
if (_local1._config.m_debug && (_local1._config.client.m_debug)) {
return(_local1._glc.send(new mx.remoting.debug.events.NetDebugStatus(statusobj)));
}
return(undefined);
}
function onEvent(eventObj) {
return(sendDebugEvent(eventObj));
}
function onEventError(errorObj) {
return(sendDebugEvent(new mx.remoting.debug.events.NetDebugError(errorObj)));
}
function onReceiveCommand(commandobj) {
this[commandobj.command](commandobj.data);
}
function onReceiveError(errorobj) {
sendDebugEvent(new mx.remoting.debug.events.NetDebugError(errorobj));
}
function getConfig() {
return(_config);
}
static function getNetDebug() {
return(ndSingleton);
}
static function trace(obj) {
getNetDebug()._trace(obj);
}
static function traceNetServices(who, severity, number, message) {
getNetDebug()._traceNetServices(who, severity, number, message);
}
static function globalOnStatus(statusobj) {
getNetDebug().sendStatus(statusobj);
}
static function initialize() {
if (ndSingleton == null) {
ndSingleton = new mx.remoting.debug.NetDebug();
mx.remoting.debug.ConnectionMixin.initialize();
}
return(true);
}
static function stripNCDEventToMinmal(ev) {
var _local1 = ev;
var _local2 = new Object();
if (_local1.eventType != null) {
_local2.eventType = _local1.eventType;
}
if (_local1.source != null) {
_local2.source = _local1.source;
}
if (_local1.movieUrl != null) {
_local2.movieUrl = _local1.movieUrl;
}
if (_local1.date != null) {
_local2.date = _local1.date;
}
if (_local1.time != null) {
_local2.time = _local1.time;
}
if (_local1.protocol != null) {
_local2.protocol = _local1.protocol;
}
if (_local1.debugId != null) {
_local2.debugId = _local1.debugId;
}
return(_local2);
}
function _traceNetServices(who, severity, number, message) {
var _local1 = this;
if ((_local1._config.m_debug && (_local1._config.client.m_debug)) && (_local1._config.client.trace)) {
if (!_local1.sendDebugEvent(new mx.remoting.debug.events.NetDebugTraceNetServices(who, severity, number, message))) {
}
}
}
function _trace(traceobj) {
var _local1 = this;
if ((_local1._config.m_debug && (_local1._config.client.m_debug)) && (_local1._config.client.trace)) {
if (!_local1.sendDebugEvent(new mx.remoting.debug.events.NetDebugTrace(traceobj))) {
}
}
}
static var version = "1.2.0.124";
}
Symbol 21 MovieClip [__Packages.mx.remoting.debug.NetDebugConfig] Frame 0
class mx.remoting.debug.NetDebugConfig extends Object
{
function NetDebugConfig () {
super();
Object.registerClass("NetDebugConfig", mx.remoting.debug.NetDebugConfig);
}
static function getNetDebugVersion() {
return(1);
}
static function attachNetDebugConfigFunctions(ndc) {
var _local1 = ndc;
_local1.setDebug = function (setval) {
this.m_debug = setval;
};
_local1.getDebug = function () {
return(this.m_debug);
};
for (var _local2 in _local1) {
if (typeof(_local1[_local2]) == "object") {
attachNetDebugConfigFunctions(_local1[_local2]);
}
}
return(null);
}
static function getDefaultNetDebugConfig(isController) {
var _local1 = _global;
if (_local1.netDebugConfigSO == undefined) {
var _local2 = "TestMovie_Config_Info";
if (isController) {
_local2 = "Controller_Config_Info";
}
_local1.netDebugConfigSO = SharedObject.getLocal(_local2);
}
if (_local1.netDebugConfigSO.data.config == undefined) {
_local1.netDebugConfigSO.data.config = getRealDefaultNetDebugConfig();
}
_local1.netDebugConfigSO.flush();
return(_local1.netDebugConfigSO.data.config);
}
static function getRealDefaultNetDebugConfig() {
var _local1 = new mx.remoting.debug.NetDebugConfig();
_local1.m_debug = true;
_local1.client = new mx.remoting.debug.NetDebugConfig();
_local1.client.m_debug = true;
_local1.client.trace = true;
_local1.client.recordset = true;
_local1.client.http = true;
_local1.client.rtmp = true;
_local1.realtime_server = new mx.remoting.debug.NetDebugConfig();
_local1.realtime_server.m_debug = true;
_local1.realtime_server.trace = true;
_local1.app_server = new mx.remoting.debug.NetDebugConfig();
_local1.app_server.m_debug = true;
_local1.app_server.trace = true;
_local1.app_server.error = true;
_local1.app_server.recordset = true;
_local1.app_server.httpheaders = false;
_local1.app_server.amf = false;
_local1.app_server.amfheaders = false;
_local1.app_server.coldfusion = true;
return(_local1);
}
}
Symbol 30 MovieClip [__Packages.mx.remoting.debug.GlobalLocalConnection] Frame 0
class mx.remoting.debug.GlobalLocalConnection extends Object
{
var sendPrefix;
function GlobalLocalConnection (isController, receiver, domainName) {
var _local2 = this;
var _local3 = _global;
super();
_local2.maxConnections = 10;
var sToMovie = "_NetDebugLocalToDebugMovie";
var sToController = "_NetDebugLocalToController";
var connectname = null;
if (isController) {
connectname = sToController;
_local2.sendNames = new Array();
_local2.sendNames.push(sToMovie);
var _local1 = 0;
while (_local1 < _local2.maxConnections) {
_local2.sendNames.push(sToMovie + _local1);
_local1++;
}
_local2.maxConnections = 0;
} else {
connectname = sToMovie;
_local2.sendNames = new Array();
_local2.sendNames.push(sToController);
}
_local2.setDomainName(domainName);
if (_local3.g_NetDebugLocalConnection == undefined) {
_local3.g_NetDebugLocalConnection = new LocalConnection();
_local3.g_NetDebugLocalConnection.allowDomain = function () {
return(true);
};
}
if (receiver != null) {
_local3.g_NetDebugLocalConnection.m_Receiver = receiver;
_local3.g_NetDebugLocalConnection.onData = function (dataobj) {
_global.g_NetDebugLocalConnection.m_Receiver.onReceive(dataobj);
};
_local3.g_NetDebugLocalConnection.onCommand = function (commandobj) {
_global.g_NetDebugLocalConnection.m_Receiver.onReceiveCommand(commandobj);
};
if (!_local3.g_NetDebugLocalConnection.connect(connectname)) {
var connected = false;
var _local1 = 0;
while (_local1 < _local2.maxConnections) {
if (_local3.g_NetDebugLocalConnection.connect(connectname + _local1)) {
connected = true;
break;
}
_local1++;
}
if (!connected) {
if (isController) {
receiver.onReceiveError(new mx.remoting.debug.events.NetDebugDuplicateNCDError());
}
}
}
}
}
function setDomainName(domainName) {
var _local1 = domainName;
if ((_local1 != null) && (_local1 != "")) {
sendPrefix = _local1 + ":";
} else {
sendPrefix = "";
}
}
function send(dataobj) {
return(sendRaw("onData", dataobj));
}
function sendCommand(commandObj) {
return(sendRaw("onCommand", commandObj));
}
function sendRaw(functionName, obj) {
var _local3 = this;
var _local2 = true;
var snlen = _local3.sendNames.length;
var _local1 = 0;
while (_local1 < snlen) {
_local2 = Boolean(_local2 & _global.g_NetDebugLocalConnection.send(_local3.sendPrefix + _local3.sendNames[_local1], functionName, obj));
_local1++;
}
return(_local2);
}
}
Symbol 2 MovieClip [__Packages.mx.remoting.DebugClasses] Frame 0
class mx.remoting.DebugClasses extends MovieClip
{
function DebugClasses () {
super();
}
}
Symbol 10 MovieClip [__Packages.mx.data.DataRange] Frame 0
interface mx.data.DataRange{}
Symbol 11 MovieClip [__Packages.mx.data.PageableData] Frame 0
interface mx.data.PageableData{}
Symbol 12 MovieClip [__Packages.mx.data.PageableList] Frame 0
interface mx.data.PageableList{}
Symbol 13 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
var _local3 = queue;
if (_local3 != undefined) {
var l = _local3.length;
var _local1;
_local1 = 0;
while (_local1 < l) {
var _local2 = _local3[_local1];
if (_local2 == handler) {
_local3.splice(_local1, 1);
return;
}
_local1++;
}
}
}
static function initialize(object) {
var _local1 = object;
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
_local1.addEventListener = _fEventDispatcher.addEventListener;
_local1.removeEventListener = _fEventDispatcher.removeEventListener;
_local1.dispatchEvent = _fEventDispatcher.dispatchEvent;
_local1.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local2 = eventObj;
var queueName = ("__q_" + _local2.type);
var queue = queueObj[queueName];
if (queue != undefined) {
var i;
for (i in queue) {
var _local1 = queue[i];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(_local2);
}
if (_local1[_local2.type] != undefined) {
if (exceptions[_local2.type] == undefined) {
_local1[_local2.type](_local2);
}
}
} else {
_local1.apply(queueObj, [_local2]);
}
}
}
}
function dispatchEvent(eventObj) {
var _local1 = eventObj;
var _local2 = this;
if (_local1.target == undefined) {
_local1.target = _local2;
}
_local2[_local1.type + "Handler"](_local1);
_local2.dispatchQueue(_local2, _local1);
}
function addEventListener(event, handler) {
var _local2 = this;
var _local1 = "__q_" + event;
if (_local2[_local1] == undefined) {
_local2[_local1] = new Array();
}
_global.ASSetPropFlags(_local2, _local1, 1);
_removeEventListener(_local2[_local1], event, handler);
_local2[_local1].push(handler);
}
function removeEventListener(event, handler) {
var _local1 = "__q_" + event;
_removeEventListener(this[_local1], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = ["move", "draw"];
}
Symbol 15 MovieClip [__Packages.mx.utils.Iterator] Frame 0
interface mx.utils.Iterator{}
Symbol 16 MovieClip [__Packages.mx.remoting.RecordSet] Frame 0
class mx.remoting.RecordSet extends Object
{
var mTitles, _items, mRecordSetID, dispatchEvent, gateway_conn, mDataFetcher;
function RecordSet (columnNames) {
var _local1 = this;
super();
mx.events.EventDispatcher.initialize(_local1);
_local1._items = new Array();
_local1.uniqueID = 0;
if (_local1.mTitles != null) {
} else {
if (_local1.serverInfo == null) {
if (_local1.serverinfo != null) {
_local1.serverInfo = _local1.serverinfo;
}
}
if (_local1.serverInfo == null) {
_local1.mTitles = columnNames;
} else if (_local1.serverInfo.version != 1) {
mx.remoting.NetServices.trace("RecordSet", "warning", 100, "Received incompatible RecordSet version from server");
} else {
_local1.mTitles = _local1.serverInfo.columnNames;
_local1.mRecordsAvailable = 0;
_local1.setData(((_local1.serverInfo.cursor == null) ? 0 : (_local1.serverInfo.cursor - 1)), _local1.serverInfo.initialData);
if (_local1.serverInfo.initialData.length != _local1.serverInfo.totalCount) {
_local1.mRecordSetID = _local1.serverInfo.id;
if (_local1.mRecordSetID != null) {
_local1.serviceName = ((_local1.serverInfo.serviceName == null) ? "RecordSet" : (_local1.serverInfo.serviceName));
_local1.mTotalCount = _local1.serverInfo.totalCount;
_local1.mDeliveryMode = "ondemand";
_local1.mAllNotified = false;
_local1.mOutstandingRecordCount = 0;
} else {
mx.remoting.NetServices.trace("RecordSet", "warning", 102, "Missing some records, but there's no RecordSet id");
}
}
_local1.serverInfo = null;
}
}
}
function addItem(item) {
addItemAt(length, item);
}
function addItemAt(index, item) {
var _local1 = index;
var _local2 = this;
var _local3 = true;
if ((_local1 < _local2.__get__length()) && (_local1 >= 0)) {
_local2.items.splice(_local1, 0, item);
} else if (_local1 == _local2.__get__length()) {
_local2.items[_local1] = item;
} else {
_local3 = false;
mx.remoting.NetServices.trace("Cannot add an item outside the bounds of the RecordSet");
return;
}
if (_local3) {
item.__ID__ = _local2.uniqueID++;
}
_local2.updateViews("addItems", _local1, _local1);
}
function addEventListener(event, listener) {
}
function clear() {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
var _local2 = _local1.items.length;
_local1.items.splice(0);
_local1.uniqueID = 0;
_local1.updateViews("removeItems", 0, _local2);
}
}
function contains(itmToCheck) {
var _local2 = itmToCheck;
if (isObjectEmpty(_local2)) {
return(false);
}
var itemAtIndex;
var _local3;
var _local1 = 0;
while (_local1 < items.length) {
itemAtIndex = items[_local1];
_local3 = true;
for (var t in _local2) {
if (_local2[t] != itemAtIndex[t]) {
_local3 = false;
break;
}
}
if (_local3) {
return(true);
}
_local1++;
}
return(false);
}
function getColumnNames() {
return(mTitles);
}
function get columnNames() {
return(getColumnNames());
}
function getLocalLength() {
return(items.length);
}
function getLength() {
var _local1 = this;
if (_local1.mRecordSetID != null) {
return(_local1.mTotalCount);
}
return(_local1.items.length);
}
function getIterator() {
var _local1 = new mx.remoting.RecordSetIterator(this);
return(_local1);
}
function get length() {
return(getLength());
}
function getItemAt(index) {
var _local1 = index;
var _local2 = this;
if ((_local1 < 0) || (_local1 >= _local2.__get__length())) {
return(null);
}
if (_local2.mRecordSetID == null) {
return(_local2.items[_local1]);
}
_local2.requestRecord(_local1);
var _local3 = _local2.items[_local1];
if (_local3 == 1) {
return("in progress");
}
return(_local3);
}
function getItemID(index) {
return(items[index].__ID__);
}
function get items() {
return(_items);
}
function initialize(info) {
}
function filter(filterFunction, context) {
if (checkLocal()) {
} else {
var _local3 = new mx.remoting.RecordSet(mTitles);
var rcount = length;
var _local2 = 0;
while (_local2 < rcount) {
var _local1 = getItemAt(_local2);
if (((_local1 != null) && (_local1 != 1)) && (filterFunction(_local1, context))) {
_local3.addItem(_local1);
}
_local2++;
}
return(_local3);
}
return(undefined);
}
function sortItems(compareFunc, optionFlags) {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
_local1.items.sort(compareFunc, optionFlags);
_local1.updateViews("sort");
}
}
function sortItemsBy(fieldNames, order, optionFlags) {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
if (typeof(order) == "string") {
_local1.items.sortOn(fieldNames);
if (order.toUpperCase() == "DESC") {
_local1.items.reverse();
}
} else {
_local1.items.sortOn(fieldNames, optionFlags);
}
_local1.updateViews("sort");
}
}
function sort(compareFunc) {
var _local1 = this;
if (_local1.checkLocal()) {
} else {
_local1.items.sort(compareFunc);
_local1.updateViews("sort");
}
}
function isEmpty() {
return(items.length == 0);
}
function isLocal() {
return(mRecordSetID == null);
}
function isFullyPopulated() {
return(isLocal());
}
function getRemoteLength() {
var _local1 = this;
if (_local1.isLocal()) {
return(_local1.mRecordsAvailable);
}
return(_local1.mTotalCount);
}
function getNumberAvailable() {
var _local1 = this;
if (_local1.isLocal()) {
return(_local1.getLength());
}
return(_local1.mRecordsAvailable);
}
function replaceItemAt(index, item) {
var _local1 = index;
var _local2 = this;
if ((_local1 >= 0) && (_local1 <= _local2.__get__length())) {
var _local3 = _local2.getItemID(_local1);
_local2.items[_local1] = item;
_local2.items[_local1].__ID__ = _local3;
_local2.updateViews("updateItems", _local1, _local1);
}
}
function removeAll() {
clear();
}
function removeItemAt(index) {
var _local1 = index;
var _local2 = this;
var _local3 = _local2._items[_local1];
_local2._items.splice(_local1, 1);
var rItems = [_local2._items[_local1]];
var rIDs = [_local2.getItemID(_local1)];
_local2.dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:_local1, lastItem:_local1, removedItems:rItems, removedIDs:rIDs});
return(_local3);
}
function removeEventListener(event, listener) {
}
function requestRange(range) {
var _local1 = range.getStart();
var _local2 = range.getEnd();
return(internalRequestRange(_local1, _local2));
}
function setDeliveryMode(mode, pagesize, numPrefetchPages) {
var _local1 = this;
var _local2 = pagesize;
var _local3 = numPrefetchPages;
_local1.mDeliveryMode = mode.toLowerCase();
_local1.stopFetchAll();
if ((_local2 == null) || (_local2 <= 0)) {
_local2 = 25;
}
switch (_local1.mDeliveryMode) {
case "ondemand" :
return;
case "page" :
if (_local3 == null) {
_local3 = 0;
}
_local1.mPageSize = _local2;
_local1.mNumPrefetchPages = _local3;
return;
case "fetchall" :
_local1.stopFetchAll();
_local1.startFetchAll(_local2);
return;
default :
mx.remoting.NetServices.trace("RecordSet", "warning", 107, "SetDeliveryMode: unknown mode string");
}
}
function editField(index, fieldName, value) {
changeFieldValue(index, fieldName, value);
}
function getEditingData(index, fieldName) {
return(items[index][fieldName]);
}
function setField(index, fieldName, value) {
changeFieldValue(index, fieldName, value);
}
function changeFieldValue(index, fieldName, value) {
var _local1 = index;
var _local2 = this;
if (_local2.checkLocal()) {
} else if ((_local1 < 0) || (_local1 >= _local2.getLength())) {
} else {
_local2.items[_local1][fieldName] = value;
_local2.updateViews("updateItems", _local1, _local1);
}
}
function isObjectEmpty(objToCheck) {
var _local2 = objToCheck;
var _local1 = true;
for (var _local3 in _local2) {
_local1 = false;
return(_local1);
}
return(_local1);
}
function arrayToObject(anArray) {
if (mTitles == null) {
mx.remoting.NetServices.trace("RecordSet", "warning", 105, "getItem: titles are not available");
return(null);
}
var _local3 = new Object();
var alen = anArray.length;
var _local2;
var _local1 = 0;
while (_local1 < alen) {
_local2 = mTitles[_local1];
if (_local2 == null) {
_local2 = ("column" + _local1) + 1;
}
_local3[_local2] = anArray[_local1];
_local1++;
}
return(_local3);
}
function checkLocal() {
if (isLocal()) {
return(false);
}
mx.remoting.NetServices.trace("RecordSet", "warning", 108, "Operation not allowed on partial recordset");
return(true);
}
function getRecordSetService() {
var _local1 = this;
if (_local1.mRecordSetService == null) {
if (_local1.gateway_conn == null) {
_local1.gateway_conn = mx.remoting.NetServices.createGatewayConnection();
} else if (_global.netDebugInstance != undefined) {
_local1.gateway_conn = _local1.gateway_conn.clone();
}
if (_global.netDebugInstance != undefined) {
_local1.gateway_conn.setupRecordSet();
_local1.gateway_conn.setDebugId("RecordSet " + _local1.mRecordSetID);
}
_local1.mRecordSetService = _local1.gateway_conn.getService(_local1.serviceName, _local1);
if (_local1.mRecordSetService == null) {
mx.remoting.NetServices.trace("RecordSet", "warning", 101, "Failed to create RecordSet service");
_local1.mRecordSetService = null;
}
}
return(_local1.mRecordSetService);
}
function internalRequestRange(index, lastIndex) {
var _local1 = index;
var _local2 = this;
var highestRequested = -1;
if (_local1 < 0) {
_local1 = 0;
}
if (lastIndex >= _local2.getRemoteLength()) {
lastIndex = _local2.getRemoteLength() - 1;
}
var _local3;
var last;
while (_local1 <= lastIndex) {
while ((_local1 <= lastIndex) && (_local2.items[_local1] != null)) {
_local1++;
}
_local3 = _local1;
while ((_local1 <= lastIndex) && (_local2.items[_local1] == null)) {
_local2.mOutstandingRecordCount++;
_local2.items[_local1] = 1;
_local1++;
}
last = _local1 - 1;
if (_local3 <= last) {
_local2.logger.logInfo((((" Fetching records from index [" + _local3) + "] to index [") + last) + "]");
_local2.getRecordSetService().getRecords(_local2.mRecordSetID, _local3 + 1, (last - _local3) + 1);
highestRequested = last;
_local2.updateViews("fetchRows", _local3, last);
}
}
return(highestRequested);
}
function removeItems(index, len) {
var _local3 = index;
var _local2 = new Array();
var _local1 = 0;
while (_local1 < len) {
_local2.push(getItemID(_local3 + _local1));
_local1++;
}
var oldItems = items.splice(_local3, len);
dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:_local3, lastItem:(_local3 + len) - 1, removedItems:oldItems, removedIDs:_local2});
}
function getRecords_Result(info) {
var _local1 = this;
var _local2 = info;
_local1.setData(_local2.Cursor - 1, _local2.Page);
_local1.mOutstandingRecordCount = _local1.mOutstandingRecordCount - _local2.Page.length;
_local1.updateViews("updateItems", _local2.Cursor - 1, ((_local2.Cursor - 1) + _local2.Page.length) - 1);
if ((_local1.mRecordsAvailable == _local1.mTotalCount) && (!_local1.mAllNotified)) {
_local1.updateViews("allRows");
_local1.mRecordSetService.release();
_local1.mAllNotified = true;
_local1.mRecordSetID = null;
_local1.mRecordSetService = null;
}
}
function release_Result() {
}
function requestOneRecord(index) {
var _local1 = this;
var _local2 = index;
if (_local1.items[_local2] == null) {
if (_local1.mDeliveryMode == "ondemand") {
_local1.logger.logInfo((" INFO: Fetching Record [" + _local2) + "]");
}
_local1.getRecordSetService().getRecords(_local1.mRecordSetID, _local2 + 1, 1);
_local1.mOutstandingRecordCount++;
_local1.items[_local2] = 1;
_local1.updateViews("fetchRows", _local2, _local2);
}
}
function requestRecord(index) {
var _local1 = this;
if (_local1.mDeliveryMode != "page") {
_local1.requestOneRecord(index);
} else {
var _local2 = int(index / _local1.mPageSize) * _local1.mPageSize;
var _local3 = (_local2 + (_local1.mPageSize * (_local1.mNumPrefetchPages + 1))) - 1;
_local1.internalRequestRange(_local2, _local3);
}
}
function _setParentService(service) {
gateway_conn = service.nc;
}
function setData(start, dataArray) {
var _local1 = this;
var datalen = dataArray.length;
var _local3;
var rec;
var _local2 = 0;
while (_local2 < datalen) {
_local3 = _local2 + start;
rec = _local1.items[_local3];
if ((rec != null) && (rec != 1)) {
mx.remoting.NetServices.trace("RecordSet", "warning", 106, "Already got record # " + _local3);
} else {
_local1.mRecordsAvailable = _local1.mRecordsAvailable + 1;
}
_local1.items[_local3] = _local1.arrayToObject(dataArray[_local2]);
_local1.items[_local3].__ID__ = _local1.uniqueID++;
_local2++;
}
}
function startFetchAll(pagesize) {
var _local1 = this;
if (_local1.mDataFetcher != null) {
_local1.mDataFetcher.disable();
}
_local1.mDataFetcher = new mx.remoting.RsDataFetcher(_local1, pagesize);
}
function stopFetchAll() {
mDataFetcher.disable();
mDataFetcher = null;
}
function updateViews(event, first, last) {
dispatchEvent({type:"modelChanged", eventName:event, firstItem:first, lastItem:last});
}
static function registerRecordSet() {
Object.registerClass("RecordSet", mx.remoting.RecordSet);
return(true);
}
static var version = "1.2.0.124";
static var init = registerRecordSet();
}
Symbol 17 MovieClip [__Packages.mx.remoting.RecordSetIterator] Frame 0
class mx.remoting.RecordSetIterator
{
var _recordSet, _cursor;
function RecordSetIterator (rec) {
_recordSet = rec;
_cursor = 0;
}
function hasNext() {
return(_cursor < _recordSet.getLength());
}
function next() {
return(_recordSet.getItemAt(_cursor++));
}
static var version = "1.2.0.124";
}
Symbol 18 MovieClip [__Packages.mx.remoting.RsDataRange] Frame 0
class mx.remoting.RsDataRange extends Object
{
var _start, _end;
function RsDataRange (s, e) {
super();
_start = s;
_end = e;
}
function getStart() {
return(_start);
}
function getEnd() {
return(_end);
}
function setEnd(e) {
_end = e;
}
function setStart(s) {
_start = s;
}
}
Symbol 19 MovieClip [__Packages.mx.remoting.RsDataFetcher] Frame 0
class mx.remoting.RsDataFetcher extends Object
{
var mEnabled;
function RsDataFetcher (pgRS, increment) {
var _local1 = this;
super();
_local1.mRecordSet = pgRS;
_local1.mRecordSet.addEventListener("modelChanged", _local1);
_local1.mIncrement = increment;
_local1.mNextRecord = 0;
_local1.mEnabled = true;
_local1.doNext();
}
function disable() {
mEnabled = false;
}
function doNext() {
var _local1 = this;
if (_local1.mEnabled) {
do {
if (_local1.mNextRecord >= _local1.mRecordSet.getRemoteLength()) {
return;
}
var _local2 = new mx.remoting.RsDataRange(_local1.mNextRecord, (_local1.mNextRecord + _local1.mIncrement) - 1);
_local1.mHighestRequested = _local1.mRecordSet.requestRange(_local2);
_local1.mNextRecord = _local1.mNextRecord + _local1.mIncrement;
} while (_local1.mHighestRequested <= 0);
}
}
function modelChanged(eventObj) {
var _local1 = this;
var _local2 = eventObj;
if (((_local2.eventName == "updateItems") && (_local2.firstItem <= _local1.mHighestRequested)) && (_local2.lastItem >= _local1.mHighestRequested)) {
_local1.doNext();
}
if (_local2.eventName == "allRows") {
_local1.disable();
}
}
}
Symbol 20 MovieClip [__Packages.mx.remoting.NetServiceProxyResponder] Frame 0
class mx.remoting.NetServiceProxyResponder extends Object
{
var service, methodName;
function NetServiceProxyResponder (serv, method) {
super();
service = serv;
methodName = method;
}
function onResult(result) {
var _local2 = result;
var _local1 = service.client;
if ((_local2 instanceof mx.remoting.NetServiceProxy) || (_local2 instanceof mx.remoting.RecordSet)) {
_local2._setParentService(service);
}
var _local3 = methodName + "_Result";
if (typeof(_local1[_local3]) == "function") {
_local1[_local3].apply(_local1, [_local2]);
} else if (typeof(_local1.onResult) == "function") {
_local1.onResult(_local2);
} else {
mx.remoting.NetServices.trace("NetServices", "info", 1, (_local3 + " was received from server: ") + _local2);
}
}
function onStatus(result) {
var _local2 = result;
var _local1 = service.client;
var _local3 = methodName + "_Status";
if (typeof(_local1[_local3]) == "function") {
_local1[_local3].apply(_local1, [_local2]);
} else if (typeof(_local1.onStatus) == "function") {
_local1.onStatus(_local2);
} else if (typeof(_root.onStatus) == "function") {
_root.onStatus(_local2);
} else if (typeof(_global.System.onStatus) == "function") {
_global.System.onStatus(_local2);
} else {
mx.remoting.NetServices.trace("NetServices", "info", 2, (((_local3 + " was received from server: <") + _local2.level) + "> ") + _local2.description);
}
}
}
Symbol 22 MovieClip [__Packages.mx.utils.ObjectCopy] Frame 0
class mx.utils.ObjectCopy
{
function ObjectCopy () {
}
static function copy(refObj) {
var _local1 = new Function(refObj.__proto__.constructor)();
copyProperties(_local1, refObj);
return(_local1);
}
static function copyProperties(dstObj, srcObj) {
var _local2 = srcObj;
var to;
for (var i in _local2) {
to = typeof(_local2[i]);
if (to != "function") {
if (to == "object") {
if (_local2[i] instanceof Array) {
var p = new Array();
var _local3 = _local2[i];
var _local1 = 0;
while (_local1 < _local3.length) {
p[_local1] = _local3[_local1];
_local1++;
}
dstObj[i] = p;
} else if (_local2[i] instanceof String) {
dstObj[i] = new String(_local2[i]);
} else if (_local2[i] instanceof Number) {
dstObj[i] = new Number(_local2[i]);
} else if (_local2[i] instanceof Boolean) {
dstObj[i] = new Boolean(_local2[i]);
} else {
dstObj[i] = copy(_local2[i]);
}
} else {
dstObj[i] = _local2[i];
}
}
}
}
}
Symbol 23 MovieClip [__Packages.mx.remoting.debug.events.NetDebug] Frame 0
class mx.remoting.debug.events.NetDebug extends Object
{
var date, time;
function NetDebug () {
super();
init();
}
function init() {
var _local1 = this;
_local1.eventType = "DebugEvent";
_local1.source = "Client";
_local1.movieUrl = unescape(_root._url);
_local1.initDate();
}
function initDate() {
var _local1 = new Date();
date = _local1;
time = _local1.getTime();
}
}
Symbol 24 MovieClip [__Packages.mx.remoting.debug.events.NetDebugNetConnection] Frame 0
class mx.remoting.debug.events.NetDebugNetConnection extends mx.remoting.debug.events.NetDebug
{
function NetDebugNetConnection () {
super();
}
}
Symbol 25 MovieClip [__Packages.mx.remoting.debug.events.NetDebugConnect] Frame 0
class mx.remoting.debug.events.NetDebugConnect extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugConnect (args) {
var _local1 = args;
var _local2 = this;
super();
_local2.eventType = "Connect";
_local2.connectString = _local1[0];
if (_local1[1] != null) {
_local2.userName = _local1[1];
}
if (_local1[2] != null) {
_local2.password = _local1[2];
}
}
}
Symbol 26 MovieClip [__Packages.mx.remoting.debug.commands.Local] Frame 0
class mx.remoting.debug.commands.Local extends Object
{
var command, data;
function Local () {
super();
}
function init(commandname, dataobj) {
command = commandname;
data = dataobj;
}
}
Symbol 27 MovieClip [__Packages.mx.remoting.debug.commands.StartRTMPTrace] Frame 0
class mx.remoting.debug.commands.StartRTMPTrace extends mx.remoting.debug.commands.Local
{
var init;
function StartRTMPTrace (cs) {
super();
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
init("startRealTimeTrace", _local1);
}
}
Symbol 28 MovieClip [__Packages.mx.remoting.debug.ConnectionMixin] Frame 0
class mx.remoting.debug.ConnectionMixin extends Object
{
var _protocol, _id, _config;
function ConnectionMixin () {
super();
}
static function initialize() {
var _local1 = mx.remoting.Connection.prototype;
var _local2 = mx.remoting.debug.ConnectionMixin.prototype;
if (!_local1.netDebugProxyFunctions) {
_local1.netDebugProxyFunctions = true;
_local1.realConnect = _local1.connect;
_local1.realCall = _local1.call;
_local1.realClose = _local1.close;
_local1.realAddHeader = _local1.addHeader;
_local1.connect = _local2.netDebugProxyConnect;
_local1.call = _local2.netDebugProxyCall;
_local1.close = _local2.netDebugProxyClose;
_local1.addHeader = _local2.netDebugProxyAddHeader;
_local1.attachDebug = _local2.attachDebug;
_local1.sendDebugEvent = _local2.sendDebugEvent;
_local1.sendServerEvent = _local2.sendServerEvent;
_local1.sendClientEvent = _local2.sendClientEvent;
_local1.addNetDebugHeader = _local2.addNetDebugHeader;
_local1.updateConfig = _local2.updateConfig;
_local1.getNetDebug = _local2.getNetDebug;
_local1.isRealTime = _local2.isRealTime;
_local1.setupRecordSet = _local2.setupRecordSet;
_local1.setDebugId = _local2.setDebugId;
_local1.getDebugId = _local2.getDebugId;
_local1.getDebugConfig = _local2.getDebugConfig;
_local1.trace = _local2.trace;
return(true);
}
return(false);
}
function attachDebug() {
var _local1 = this;
if (!_attached) {
_attached = true;
_local1._headerAdded = false;
_local1._configured = false;
_local1._config = new mx.remoting.debug.NetDebugConfig();
mx.utils.ObjectCopy.copyProperties(_local1._config, _local1.getNetDebug().getConfig());
_local1._protocol = "none";
_local1._id = String(_local1.getNetDebug().addNetConnection(_local1));
}
}
function sendDebugEvent(eventobj) {
var _local1 = this;
var _local2 = eventobj;
_local2.protocol = _local1._protocol;
_local2.debugId = _local1._id;
return(_local1.getNetDebug().onEvent(_local2));
}
function sendServerEvent(eventobj) {
eventobj.movieUrl = unescape(_root._url);
if (!sendDebugEvent(eventobj)) {
}
}
function sendClientEvent(eventobj) {
var _local1 = this;
if (_local1._config.m_debug && (_local1._config.client.m_debug)) {
if ((_local1._config.client.http && (_local1._protocol == "http")) || (_local1._config.client.rtmp && (_local1._protocol.substr(0, 4) == "rtmp"))) {
if (!_local1.sendDebugEvent(eventobj)) {
}
}
}
}
function addNetDebugHeader() {
var _local1 = this;
if (!_local1._headerAdded) {
_local1._headerAdded = true;
if ((_local1._config.m_debug && (_local1._config.app_server.m_debug)) && (_local1._protocol == "http")) {
_local1.realAddHeader("amf_server_debug", true, _local1._config.app_server);
} else {
_local1.realAddHeader("amf_server_debug", true, undefined);
}
}
}
function updateConfig(config) {
var _local1 = this;
var _local2 = config;
_local1.attachDebug();
if ((_local2 == null) && (!_local1._configured)) {
_local1._configured = true;
_local2 = mx.remoting.debug.NetDebugConfig.getRealDefaultNetDebugConfig();
}
mx.utils.ObjectCopy.copyProperties(_local1._config, _local2);
_local1._headerAdded = false;
}
function isRealTime() {
return(_protocol.substr(0, 4) == "rtmp");
}
function setupRecordSet() {
var _local1 = this;
_local1.attachDebug();
_local1._config.client.http = _local1._config.client.recordset;
}
function netDebugProxyConnect() {
var _local1 = this;
var _local2 = arguments;
_local1.attachDebug();
var _local3 = _local2[0].substr(0, 4);
if ((_local3 == "http") || (_local3.substr(0, 4) == "rtmp")) {
if (_local2[0].charAt(4) == ":") {
_local1._protocol = _local3;
} else {
_local1._protocol = _local2[0].substr(0, 5);
}
} else {
_local1._protocol = "http";
}
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugConnect(_local2));
if (_local1.isRealTime()) {
_local1._connectString = _local2[0];
_local1.getNetDebug().sendCommand(new mx.remoting.debug.commands.StartRTMPTrace(_local2[0]));
var ret = _local1.realConnect.apply(_local1, _local2);
_local1.realCall("@getClientID", new mx.remoting.RTMPClientIDResponse(_local2[0], _local1));
return(ret);
}
return(Boolean(_local1.realConnect.apply(_local1, _local2)));
}
function netDebugProxyCall() {
var _local1 = this;
var _local2 = arguments;
_local1.attachDebug();
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugCall(_local2));
_local1.addNetDebugHeader();
if (_local1._config.app_server) {
_local2[1] = new mx.remoting.debug.NetDebugResponseProxy(_local1, _local2[1]);
return(Boolean(_local1.realCall.apply(_local1, _local2)));
}
return(Boolean(_local1.realCall.apply(_local1, _local2)));
}
function netDebugProxyClose() {
var _local1 = this;
_local1.attachDebug();
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugClose());
if (_local1.isRealTime()) {
_local1.getNetDebug().sendCommand(new mx.remoting.debug.commands.StopRTMPTrace(_local1._connectString, _local1._clientId));
}
var _local2 = _local1.realClose();
_local1.getNetDebug().removeNetConnection(_local1);
return(_local2);
}
function netDebugProxyAddHeader() {
var _local1 = this;
_local1.attachDebug();
_local1.sendClientEvent(new mx.remoting.debug.events.NetDebugAddHeader(arguments));
return(Boolean(_local1.realAddHeader.apply(_local1, arguments)));
}
function setDebugId(id) {
attachDebug();
_id = id;
}
function getDebugId() {
attachDebug();
return(_id);
}
function trace(traceobj) {
var _local1 = this;
_local1.attachDebug();
if ((_local1._config.m_debug && (_local1._config.client.m_debug)) && (_local1._config.client.trace)) {
_local1.sendDebugEvent(new mx.remoting.debug.events.NetDebugTrace(traceobj));
}
}
function getDebugConfig() {
attachDebug();
return(_config);
}
function getNetDebug() {
return(mx.remoting.debug.NetDebug.getNetDebug());
}
static var _attached = false;
}
Symbol 29 MovieClip [__Packages.mx.remoting.debug.events.NetDebugDuplicateNCDError] Frame 0
class mx.remoting.debug.events.NetDebugDuplicateNCDError extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugDuplicateNCDError () {
var _local1 = this;
super();
_local1.eventType = "Error";
_local1.source = "NCD";
_local1.message = "NCD_ALREADY_RUNNING";
}
}
Symbol 31 MovieClip [__Packages.mx.remoting.debug.commands.GetConfig] Frame 0
class mx.remoting.debug.commands.GetConfig extends mx.remoting.debug.commands.Local
{
var init;
function GetConfig () {
super();
}
function GetConfigCommand() {
super();
init("getConfig", null);
}
}
Symbol 32 MovieClip [__Packages.mx.remoting.debug.events.NetDebugFailedSendError] Frame 0
class mx.remoting.debug.events.NetDebugFailedSendError extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugFailedSendError (ev) {
var _local1 = this;
super();
_local1.eventType = "Error";
_local1.source = "NCD";
_local1.originalEvent = ev;
_local1.message = "NCD_FAILED_TO_SEND_EVENT";
}
}
Symbol 33 MovieClip [__Packages.mx.remoting.debug.events.NetDebugStatus] Frame 0
class mx.remoting.debug.events.NetDebugStatus extends mx.remoting.debug.events.NetDebugNetConnection
{
var eventType, status;
function NetDebugStatus (statusobj) {
super();
eventType = "Status";
status = statusobj;
}
}
Symbol 34 MovieClip [__Packages.mx.remoting.debug.events.NetDebugError] Frame 0
class mx.remoting.debug.events.NetDebugError extends mx.remoting.debug.events.NetDebug
{
var eventType, error;
function NetDebugError (dataobj) {
super();
eventType = "NetDebugError";
error = dataobj;
}
}
Symbol 35 MovieClip [__Packages.mx.remoting.debug.events.NetDebugTraceNetServices] Frame 0
class mx.remoting.debug.events.NetDebugTraceNetServices extends mx.remoting.debug.events.NetDebug
{
function NetDebugTraceNetServices (w, s, n, m) {
var _local1 = this;
super();
_local1.eventType = "NetServicesTrace";
_local1.trace = m;
_local1.who = w;
_local1.severity = s;
_local1.number = n;
}
}
Symbol 36 MovieClip [__Packages.mx.remoting.debug.events.NetDebugTrace] Frame 0
class mx.remoting.debug.events.NetDebugTrace extends mx.remoting.debug.events.NetDebug
{
var eventType, trace;
function NetDebugTrace (traceobj) {
super();
eventType = "Trace";
trace = traceobj;
}
}
Symbol 38 MovieClip [__Packages.mx.remoting.debug.commands.AddRTMPClient] Frame 0
class mx.remoting.debug.commands.AddRTMPClient extends mx.remoting.debug.commands.Local
{
var init;
function AddRTMPClient (cs, cid) {
super();
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
_local1.clientid = cid;
init("addRealTimeClient", _local1);
}
}
Symbol 39 MovieClip [__Packages.mx.remoting.RTMPClientIDResponse] Frame 0
class mx.remoting.RTMPClientIDResponse extends Object
{
var _connectString, _nc;
function RTMPClientIDResponse (cs, nc) {
super();
_connectString = cs;
_nc = nc;
}
function onResult(cid) {
_nc._clientId = cid;
mx.remoting.debug.NetDebug.getNetDebug().sendCommand(new mx.remoting.debug.commands.AddRTMPClient(_connectString, cid));
}
}
Symbol 40 MovieClip [__Packages.mx.remoting.debug.events.NetDebugCall] Frame 0
class mx.remoting.debug.events.NetDebugCall extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugCall (args) {
var _local2 = this;
var _local3 = args;
super();
_local2.eventType = "Call";
_local2.methodName = _local3[0];
_local2.parameters = new Array();
var alen = _local3.length;
var _local1 = 2;
while (_local1 < alen) {
_local2.parameters[_local1 - 2] = _local3[_local1];
_local1++;
}
}
}
Symbol 41 MovieClip [__Packages.mx.remoting.debug.events.NetDebugResult] Frame 0
class mx.remoting.debug.events.NetDebugResult extends mx.remoting.debug.events.NetDebugNetConnection
{
var eventType, result;
function NetDebugResult (resultobj) {
super();
eventType = "Result";
result = resultobj;
}
}
Symbol 42 MovieClip [__Packages.mx.remoting.debug.events.NetDebugReceiveCall] Frame 0
class mx.remoting.debug.events.NetDebugReceiveCall extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugReceiveCall (mName, args) {
var _local1 = this;
super();
_local1.eventType = "ReceivedCall";
_local1.methodName = mName;
_local1.parameters = args;
}
}
Symbol 43 MovieClip [__Packages.mx.remoting.debug.NetDebugResponseProxy] Frame 0
class mx.remoting.debug.NetDebugResponseProxy extends Object
{
var _sourceNC, _originalNR;
function NetDebugResponseProxy (source, original) {
super();
_sourceNC = source;
_originalNR = original;
}
function onDebugEvents(debugevents) {
var _local3 = debugevents;
var _local2 = _local3.length;
var _local1 = 0;
while (_local1 < _local2) {
_sourceNC.sendServerEvent(_local3[_local1]);
_local1++;
}
}
function onResult(resultobj) {
_sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugResult(resultobj));
_originalNR.onResult(resultobj);
}
function onStatus(statusobj) {
var _local1 = this;
var _local2 = statusobj;
_local1._sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugStatus(_local2));
if (_local1._originalNR.onStatus != undefined) {
_local1._originalNR.onStatus(_local2);
} else {
_global.System.onStatus(_local2);
}
}
function __resolve(name) {
var _local1 = name;
trace("NetDebugResponseProxy.__resolve name: " + _local1);
_sourceNC.sendClientEvent(new mx.remoting.debug.events.NetDebugReceiveCall(_local1, arguments));
_originalNR[_local1].apply(arguments);
return(null);
}
}
Symbol 44 MovieClip [__Packages.mx.remoting.debug.events.NetDebugClose] Frame 0
class mx.remoting.debug.events.NetDebugClose extends mx.remoting.debug.events.NetDebugNetConnection
{
var eventType;
function NetDebugClose () {
super();
eventType = "Close";
}
}
Symbol 45 MovieClip [__Packages.mx.remoting.debug.commands.StopRTMPTrace] Frame 0
class mx.remoting.debug.commands.StopRTMPTrace extends mx.remoting.debug.commands.Local
{
var init;
function StopRTMPTrace () {
super();
}
function StopRTMPTraceCommand(cs, cid) {
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
_local1.clientid = cid;
init("stopRealTimeTrace", _local1);
}
}
Symbol 46 MovieClip [__Packages.mx.remoting.debug.events.NetDebugAddHeader] Frame 0
class mx.remoting.debug.events.NetDebugAddHeader extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugAddHeader (args) {
var _local1 = this;
var _local2 = args;
super();
_local1.eventType = "AddHeader";
_local1.headerName = _local2[0];
_local1.mustUnderstand = _local2[1];
if (_local2[2] != null) {
_local1.headerObject = _local2[2];
}
}
}
Symbol 47 MovieClip [__Packages.mx.remoting.debug.events.NetDebugInfoError] Frame 0
class mx.remoting.debug.events.NetDebugInfoError extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugInfoError (infoobj, mes) {
var _local1 = this;
super();
_local1.eventType = "Error";
_local1.source = "NCD";
_local1.info = infoobj;
if (mes != null) {
_local1.message = mes;
}
}
}
Symbol 48 MovieClip [__Packages.mx.remoting.debug.events.NetDebugRtmpLog] Frame 0
class mx.remoting.debug.events.NetDebugRtmpLog extends mx.remoting.debug.events.NetDebugNetConnection
{
function NetDebugRtmpLog (infoobj) {
var _local1 = this;
super();
_local1.eventType = "Trace";
_local1.source = "Flash Communication Server";
_local1.info = infoobj;
_local1.trace = infoobj.description;
}
}
Symbol 49 MovieClip [__Packages.mx.remoting.debug.commands.UpdateNetDebugConfig] Frame 0
class mx.remoting.debug.commands.UpdateNetDebugConfig extends mx.remoting.debug.commands.Local
{
var init;
function UpdateNetDebugConfig () {
super();
}
function UpdateNetDebugCommand(dataobj) {
super();
init("updateConfig", dataobj);
}
}
Symbol 50 MovieClip [__Packages.mx.remoting.ApiClasses] Frame 0
class mx.remoting.ApiClasses extends MovieClip
{
function ApiClasses () {
super();
}
}
Symbol 52 MovieClip [__Packages.mx.remoting.DataGlue] Frame 0
class mx.remoting.DataGlue extends Object
{
var __dataProv, __labelStr, __dataStr, formatFunction;
function DataGlue (dp) {
super();
__dataProv = dp;
}
function get dataProvider() {
return(__dataProv);
}
function get labelString() {
return(__labelStr);
}
function set labelString(val) {
__labelStr = val;
//return(labelString);
}
function get dataString() {
return(__dataStr);
}
function set dataString(val) {
__dataStr = val;
//return(dataString);
}
static function bindFormatStrings(dataConsumer, dp, labelStr, dataStr) {
var _local1 = new mx.remoting.DataGlue(dp);
_local1.__set__labelString(labelStr);
_local1.__set__dataString(dataStr);
_local1.getItemAt = mx.remoting.DataGlue.prototype.getItemAt_FormatString;
dataConsumer.dataProvider = _local1;
}
static function bindFormatFunction(dataConsumer, dp, formatFunc) {
var _local1 = new mx.remoting.DataGlue(dp);
_local1.formatFunction = formatFunc;
_local1.getItemAt = mx.remoting.DataGlue.prototype.getItemAt_FormatFunction;
dataConsumer.setDataProvider(_local1);
}
function addEventListener(eventName, listener) {
dataProvider.addEventListener(eventName, listener);
}
function get length() {
return(getLength());
}
function getLength() {
return(dataProvider.length);
}
function format(formatString, item) {
var _local3 = formatString.split("#");
var result = "";
var tlen = _local3.length;
var _local2;
var _local1 = 0;
while (_local1 < tlen) {
result = result + _local3[_local1];
_local2 = _local3[_local1 + 1];
if (_local2 != undefined) {
result = result + item[_local2];
}
_local1 = _local1 + 2;
}
return(result);
}
function getItemAt_FormatString(index) {
var _local2 = this;
var _local1 = _local2.dataProvider.getItemAt(index);
if ((_local1 == "in progress") || (_local1 == undefined)) {
return(_local1);
}
return({label:_local2.format(_local2.__get__labelString(), _local1), data:((_local2.__get__dataString() == null) ? (_local1) : (_local2.format(_local2.__get__dataString(), _local1)))});
}
function getItemAt_FormatFunction(index) {
var _local1 = dataProvider.getItemAt(index);
if ((_local1 == "in progress") || (_local1 == undefined)) {
return(_local1);
}
return(formatFunction(_local1));
}
function getItemID(index) {
return(dataProvider.getItemID(index));
}
function addItemAt(index, value) {
dataProvider.addItemAt(index, value);
}
function addItem(value) {
dataProvider.addItem(value);
}
function removeItemAt(index) {
dataProvider.removeItemAt(index);
}
function removeAll() {
dataProvider.removeAll();
}
function replaceItemAt(index, itemObj) {
dataProvider.replaceItemAt(index, itemObj);
}
function sortItemsBy(fieldNames, optionFlags) {
dataProvider.sortItemsBy(fieldNames, optionFlags);
}
function sortItems(compareFunc, optionFlags) {
dataProvider.sortItems(compareFunc, optionFlags);
}
static var version = "1.2.0.124";
}
Symbol 53 MovieClip [__Packages.mx.remoting.PendingCall] Frame 0
class mx.remoting.PendingCall extends Object
{
var __service, __methodName, __responder;
function PendingCall (srv, methodName) {
super();
__service = srv;
__methodName = methodName;
}
function get responder() {
return(__responder);
}
function set responder(res) {
__responder = res;
//return(responder);
}
function onResult(result) {
var _local1 = result;
var _local2 = this;
_local1.serviceName = ((typeof(_local1.serviceName) == "function") ? (_local1.servicename) : (_local1.serviceName));
if (_local1 != null) {
if (_local1 instanceof mx.remoting.NetServiceProxy) {
var serv = (new mx.remoting.Service(null, null, _local1.serviceName, _local2.__service.__get__connection(), _local2.__service.__get__responder()));
_local1 = serv;
} else if (_local1 instanceof mx.remoting.RecordSet) {
var _local3 = new mx.remoting.NetServiceProxy(_local2.__service.__get__connection());
_local1._setParentService(_local3);
_local1.logger = _local2.__service.log;
}
}
if (_local2.__responder != null) {
_local2.__responder.onResult(new mx.rpc.ResultEvent(_local1));
}
if (_local2.__service.log != null) {
_local2.__service.log.logInfo((((_local2.__service.__get__name() + ".") + _local2.__methodName) + "() returned ") + mx.data.binding.ObjectDumper.toString(_local1));
}
}
function onStatus(status) {
var _local1 = this;
var _local2 = status;
if (_local1.__responder != null) {
_local1.__responder.onFault(new mx.rpc.FaultEvent(new mx.rpc.Fault(_local2.code, _local2.description, _local2.details, _local2.type)));
}
if (_local1.__service.log != null) {
_local1.__service.log.logDebug("Service invocation failed.");
_local1.__service.log.logDebug((((_local1.__service.__get__name() + ".") + _local1.__methodName) + "() returned ") + mx.data.binding.ObjectDumper.toString(_local2));
}
}
function get methodName() {
return(__methodName);
}
static var inited = mx.remoting.NetServiceProxy.registerNetServiceProxy();
}
Symbol 54 MovieClip [__Packages.mx.rpc.ResultEvent] Frame 0
class mx.rpc.ResultEvent extends Object
{
var __result;
function ResultEvent (res) {
super();
__result = res;
}
function get result() {
return(__result);
}
}
Symbol 55 MovieClip [__Packages.mx.rpc.Fault] Frame 0
class mx.rpc.Fault extends Object
{
var __faultcode, __faultstring, __detail, __type;
function Fault (code, msg, detail, type) {
var _local1 = this;
super();
_local1.__faultcode = code;
_local1.__faultstring = msg;
_local1.__detail = detail;
_local1.__type = type;
}
function get faultcode() {
return(__faultcode);
}
function get faultstring() {
return(__faultstring);
}
function get detail() {
return(__detail);
}
function get description() {
var _local2 = this;
if (_local2.__description == null) {
if (_local2.__faultstring.indexOf(":") > -1) {
_local2.__description = _local2.__faultstring.substring(_local2.__faultstring.indexOf(":") + 1);
var _local1 = 0;
while (_local2.__description.indexOf(" ", _local1) == _local1) {
_local1++;
}
if (_local1 > 0) {
_local2.__description = _local2.__description.substring(_local1);
}
} else {
_local2.__description = _local2.__faultstring;
}
}
return(_local2.__description);
}
function get type() {
return(__type);
}
}
Symbol 56 MovieClip [__Packages.mx.rpc.FaultEvent] Frame 0
class mx.rpc.FaultEvent extends Object
{
var __fault;
function FaultEvent (f) {
super();
__fault = f;
}
function get fault() {
return(__fault);
}
}
Symbol 57 MovieClip [__Packages.mx.rpc.Responder] Frame 0
interface mx.rpc.Responder{}
Symbol 58 MovieClip [__Packages.mx.remoting.Service] Frame 0
class mx.remoting.Service extends Object
{
var __conn, __serviceName, __responder;
function Service (gatewayURI, logger, serviceName, conn, resp) {
var _local1 = this;
var _local2 = conn;
var _local3 = gatewayURI;
super();
_local1.log = logger;
_local1.log.logInfo("Creating Service for " + serviceName, mx.services.Log.VERBOSE);
if ((_local3 == "") && (_local2 == null)) {
_local3 = mx.remoting.NetServices.gatewayUrl;
}
_local3 = mx.remoting.NetServices.getHttpUrl(_local3);
if (_local2 == null) {
_local2 = mx.remoting.NetServices.getConnection(_local3);
if (_local2 == null) {
_local1.log.logInfo("Creating gateway connection for " + _local3, mx.services.Log.VERBOSE);
_local2 = mx.remoting.NetServices.createGatewayConnection(_local3, logger);
}
}
_local1.__conn = _local2;
_local2.updateConfig();
_local1._allowRes = true;
_local1.__serviceName = serviceName;
_local1.__responder = resp;
_local1.log.logInfo("Successfully created Service", mx.services.Log.VERBOSE);
}
function get connection() {
return(__conn);
}
function __resolve(methodName) {
var _local2 = this;
if (_local2._allowRes) {
var _local1 = _local2.__makeOpFunc(methodName);
_local2[methodName] = _local1;
return(_local1);
}
return(null);
}
function __makeOpFunc(name) {
var op = (new mx.remoting.Operation(name, this));
var _local1 = function () {
op.invoke(arguments);
return(op.send());
};
_local1.send = function () {
return(op.createThenSend());
};
_local1.setResponder = function (resp) {
op.responder = resp;
};
_local1.getRequest = function () {
return(op.request);
};
_local1.setRequest = function (val) {
op.request = val;
};
_local1.addProperty("request", _local1.getRequest, _local1.setRequest);
_local1.operation = op;
return(_local1);
}
function get name() {
return(__serviceName);
}
function get responder() {
return(__responder);
}
static var version = "1.2.0.124";
var _allowRes = false;
}
Symbol 59 MovieClip [__Packages.mx.remoting.Operation] Frame 0
class mx.remoting.Operation
{
var __arguments, __responder, __request, __methodName;
function Operation (methodName, parent) {
var _local1 = this;
_local1.__service = parent;
_local1.__responder = parent.responder;
_local1.__methodName = methodName;
_local1.__invokationName = (_local1.__service.__get__name() + ".") + methodName;
_local1.__request = new Object();
_local1.__arguments = new Array();
}
function createThenSend(Void) {
createArguments();
return(send());
}
function send(Void) {
var _local1 = this;
_local1.__service.log.logInfo((("Invoking " + _local1.__methodName) + " on ") + _local1.__service.__get__name());
var _local3 = new mx.remoting.PendingCall(_local1.__service, _local1.__methodName);
_local3.__set__responder(_local1.__responder);
var _local2 = null;
if (_local1.__arguments == null) {
_local2 = new Array();
} else {
_local2 = _local1.__arguments.concat();
}
_local1.__invokationName = (_local1.__service.__get__name() + ".") + _local1.__methodName;
_local2.unshift(_local1.__invokationName, _local3);
_local1.__service.connection.call.apply(_local1.__service.__get__connection(), _local2);
return(_local3);
}
function invoke(a) {
__arguments = a;
}
function get responder() {
return(__responder);
}
function set responder(r) {
__responder = r;
//return(responder);
}
function get request() {
return(__request);
}
function set request(r) {
__request = r;
//return(request);
}
function get name() {
return(__methodName);
}
function createArguments() {
var _local1 = this;
if (_local1.__request != null) {
_local1.__arguments = new Array();
for (var _local2 in _local1.__request) {
if (_local2 != "arguments") {
_local1.__arguments.unshift(_local1.__request[_local2]);
}
}
}
}
}
Symbol 60 MovieClip [__Packages.mx.data.binding.ObjectDumper] Frame 0
class mx.data.binding.ObjectDumper
{
var inProgress;
function ObjectDumper () {
inProgress = new Array();
}
static function toString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent) {
var _local1 = indent;
var _local2 = maxLineLength;
var _local3 = new mx.data.binding.ObjectDumper();
if (_local2 == undefined) {
_local2 = 100;
}
if (_local1 == undefined) {
_local1 = 0;
}
return(_local3.realToString(obj, showFunctions, showUndefined, showXMLstructures, _local2, _local1));
}
function realToString(obj, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent) {
var _local1 = obj;
var x = 0;
while (x < inProgress.length) {
if (inProgress[x] == _local1) {
return("***");
}
x++;
}
inProgress.push(_local1);
indent++;
var t = typeof(_local1);
var result;
if ((_local1 instanceof XMLNode) && (showXMLstructures != true)) {
result = _local1.toString();
} else if (_local1 instanceof Date) {
result = _local1.toString();
} else if (t == "object") {
var _local3 = new Array();
if (_local1 instanceof Array) {
result = "[";
var i = 0;
while (i < _local1.length) {
_local3.push(i);
i++;
}
} else {
result = "{";
for (var i in _local1) {
_local3.push(i);
}
_local3.sort();
}
var sep = "";
var _local2 = 0;
while (_local2 < _local3.length) {
var val = _local1[_local3[_local2]];
var show = true;
if (typeof(val) == "function") {
show = showFunctions == true;
}
if (typeof(val) == "undefined") {
show = showUndefined == true;
}
if (show) {
result = result + sep;
if (!(_local1 instanceof Array)) {
result = result + (_local3[_local2] + ": ");
}
result = result + realToString(val, showFunctions, showUndefined, showXMLstructures, maxLineLength, indent);
sep = ", `";
}
_local2++;
}
if (_local1 instanceof Array) {
result = result + "]";
} else {
result = result + "}";
}
} else if (t == "function") {
result = "function";
} else if (t == "string") {
result = ("\"" + _local1) + "\"";
} else {
result = String(_local1);
}
if (result == "undefined") {
result = "-";
}
inProgress.pop();
return(replaceAll(result, "`", ((result.length < maxLineLength) ? "" : (newline + doIndent(indent)))));
}
static function replaceAll(str, from, to) {
var _local3 = str.split(from);
var result = "";
var _local2 = "";
var _local1 = 0;
while (_local1 < _local3.length) {
result = result + (_local2 + _local3[_local1]);
_local2 = to;
_local1++;
}
return(result);
}
function doIndent(indent) {
var _local3 = indent;
var _local2 = "";
var _local1 = 0;
while (_local1 < _local3) {
_local2 = _local2 + " ";
_local1++;
}
return(_local2);
}
}
Symbol 61 MovieClip [__Packages.mx.rpc.RelayResponder] Frame 0
class mx.rpc.RelayResponder extends Object
{
var __onFault, __obj, __onResult;
function RelayResponder (resp, resultFunc, faultFunc) {
var _local1 = this;
super();
_local1.__obj = resp;
_local1.__onFault = faultFunc;
_local1.__onResult = resultFunc;
}
function onFault(fault) {
__obj[__onFault](fault);
}
function onResult(result) {
__obj[__onResult](result);
}
}
Symbol 62 MovieClip [__Packages.mx.rpc.DefaultResponder] Frame 0
class mx.rpc.DefaultResponder
{
var __target;
function DefaultResponder (t) {
target = (t);
}
function get target() {
return(__target);
}
function set target(t) {
__target = t;
//return(target);
}
function onResult(event) {
trace("RPC Result: " + event.__get__result());
}
function onFault(event) {
trace("RPC Fault: " + event.fault.faultstring);
}
}
Symbol 90 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 2
stop();
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 17
_root.gotoAndStop(dest);
_root.hsm.gotoAndStop(1);
Symbol 95 MovieClip Frame 18
play();
Symbol 95 MovieClip Frame 34
gotoAndStop (1);
Symbol 107 MovieClip Frame 1
stop();
Symbol 113 Button
on (release) {
_root.fader.dest = "choose";
_root.fader.play();
}
Symbol 114 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 1
_name = "foot1";
stop();
Symbol 133 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 32
stop();
Symbol 160 MovieClip Frame 1
stop();
Instance of Symbol 145 MovieClip "tl" in Symbol 160 MovieClip Frame 1
onClipEvent (enterFrame) {
localX = this._x;
localY = this._y;
dragSq = new Object();
dragSq.x = localX;
dragSq.y = localY;
_parent.localToGlobal(dragSq);
if (_parent._parent._parent._name == "robot") {
_root.rb_x1 = dragSq.x;
_root.rb_y1 = dragSq.y;
} else if (_parent._parent._parent._name == "enemy") {
_root.eb_x2 = dragSq.x;
_root.eb_y2 = dragSq.y;
}
}
Instance of Symbol 145 MovieClip "bl" in Symbol 160 MovieClip Frame 1
onClipEvent (enterFrame) {
localX = this._x;
localY = this._y;
dragSq = new Object();
dragSq.x = localX;
dragSq.y = localY;
_parent.localToGlobal(dragSq);
if (_parent._parent._parent._name == "robot") {
_root.rb_x3 = dragSq.x;
_root.rb_y3 = dragSq.y;
} else if (_parent._parent._parent._name == "enemy") {
_root.eb_x4 = dragSq.x;
_root.eb_y4 = dragSq.y;
}
}
Instance of Symbol 145 MovieClip "tr" in Symbol 160 MovieClip Frame 1
onClipEvent (enterFrame) {
localX = this._x;
localY = this._y;
dragSq = new Object();
dragSq.x = localX;
dragSq.y = localY;
_parent.localToGlobal(dragSq);
if (_parent._parent._parent._name == "robot") {
_root.rb_x2 = dragSq.x;
_root.rb_y2 = dragSq.y;
} else if (_parent._parent._parent._name == "enemy") {
_root.eb_x1 = dragSq.x;
_root.eb_y1 = dragSq.y;
}
}
Instance of Symbol 145 MovieClip "br" in Symbol 160 MovieClip Frame 1
onClipEvent (enterFrame) {
localX = this._x;
localY = this._y;
dragSq = new Object();
dragSq.x = localX;
dragSq.y = localY;
_parent.localToGlobal(dragSq);
if (_parent._parent._parent._name == "robot") {
_root.rb_x4 = dragSq.x;
_root.rb_y4 = dragSq.y;
} else if (_parent._parent._parent._name == "enemy") {
_root.eb_x3 = dragSq.x;
_root.eb_y3 = dragSq.y;
}
}
Symbol 171 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 1
stop();
Instance of Symbol 145 MovieClip "tl" in Symbol 180 MovieClip Frame 1
onClipEvent (enterFrame) {
localX = this._x;
localY = this._y;
dragSq = new Object();
dragSq.x = localX;
dragSq.y = localY;
_parent.localToGlobal(dragSq);
if (_parent._parent._parent._name == "robot") {
_root.rhx = dragSq.x;
_root.rhy = dragSq.y;
} else if (_parent._parent._parent._name == "enemy") {
_root.ehx = dragSq.x;
_root.ehy = dragSq.y;
}
}
Symbol 181 MovieClip Frame 1
stop();
Instance of Symbol 145 MovieClip in Symbol 181 MovieClip Frame 1
onClipEvent (enterFrame) {
localX = this._x;
localY = this._y;
dragSq = new Object();
dragSq.x = localX;
dragSq.y = localY;
_parent.localToGlobal(dragSq);
if (_parent._parent._parent._name == "robot") {
_root.rhx2 = dragSq.x;
_root.rhy2 = dragSq.y;
} else if (_parent._parent._parent._name == "enemy") {
_root.ehx2 = dragSq.x;
_root.ehy2 = dragSq.y;
}
}
Symbol 189 MovieClip Frame 1
dir = "f";
if (_parent._name == "robot") {
_root.txs = 0;
} else if (_parent._name == "enemy") {
_root.etxs = 0;
}
curdance = 0;
Symbol 189 MovieClip Frame 66
chest.bscreen.play();
Symbol 189 MovieClip Frame 97
dir = "f";
if (_parent._name == "robot") {
_root.txs = 0;
} else if (_parent._name == "enemy") {
_root.etxs = 0;
}
curdance = 0;
Symbol 189 MovieClip Frame 122
dir = "b";
Symbol 189 MovieClip Frame 124
dir = "f";
_root.txs = 0;
Symbol 189 MovieClip Frame 156
gotoAndPlay("repair" + curdance);
Symbol 189 MovieClip Frame 159
dir = "f";
Symbol 189 MovieClip Frame 178
stop();
dir = "";
Symbol 189 MovieClip Frame 179
gotoAndStop(currentframe - 1);
Symbol 189 MovieClip Frame 205
dir = "f";
if (_parent._name == "robot") {
_root.txs = 14;
} else if (_parent._name == "enemy") {
_root.etxs = 14;
}
curdance = 3;
Symbol 189 MovieClip Frame 316
gotoAndPlay ("dance3");
Symbol 189 MovieClip Frame 326
dir = "f";
if (_parent._name == "robot") {
_root.txs = 7;
} else if (_parent._name == "enemy") {
_root.etxs = 7;
}
curdance = 4;
Symbol 189 MovieClip Frame 397
dir = "b";
Symbol 189 MovieClip Frame 407
dir = "f";
if (_parent._name == "robot") {
_root.txs = 14;
} else if (_parent._name == "enemy") {
_root.etxs = 14;
}
curdance = 5;
Symbol 189 MovieClip Frame 501
gotoAndPlay ("dance5");
Symbol 189 MovieClip Frame 511
dir = "f";
if (_parent._name == "robot") {
_root.txs = 14;
} else if (_parent._name == "enemy") {
_root.etxs = 14;
}
curdance = 6;
Symbol 189 MovieClip Frame 606
gotoAndPlay ("dance6");
Symbol 189 MovieClip Frame 616
dir = "f";
if (_parent._name == "robot") {
_root.txs = 7;
} else if (_parent._name == "enemy") {
_root.etxs = 7;
}
curdance = 2;
Symbol 189 MovieClip Frame 747
gotoAndPlay ("dance2");
Symbol 189 MovieClip Frame 759
dir = "f";
if (_parent._name == "robot") {
_root.txs = 14;
} else if (_parent._name == "enemy") {
_root.etxs = 14;
}
curdance = 1;
Symbol 189 MovieClip Frame 866
gotoAndPlay ("dance1");
Symbol 192 MovieClip Frame 1
stopAllSounds();
_root.txs = 14;
chest.bscreen.play();
Symbol 192 MovieClip Frame 2
chest.bscreen.play();
Symbol 192 MovieClip Frame 517
_root.scoremenu.gotoAndStop("scoreit");
Symbol 192 MovieClip Frame 1556
stop();
Symbol 193 MovieClip Frame 1
stopAllSounds();
_quality = "medium";
_root.txs = 14;
chest.bscreen.play();
Symbol 193 MovieClip Frame 2
chest.bscreen.play();
Symbol 193 MovieClip Frame 603
_root.scoremenu.gotoAndStop("scoreit");
Symbol 193 MovieClip Frame 1336
stop();
Symbol 194 MovieClip Frame 1
stopAllSounds();
_quality = "medium";
_root.txs = 14;
chest.bscreen.play();
Symbol 194 MovieClip Frame 2
chest.bscreen.play();
Symbol 194 MovieClip Frame 832
_root.scoremenu.gotoAndStop("scoreit");
Symbol 194 MovieClip Frame 1062
stop();
Symbol 195 MovieClip Frame 1
stop();
Instance of Symbol 189 MovieClip "robot" in Symbol 195 MovieClip Frame 1
onClipEvent (enterFrame) {
t = this.chest.tl._x + this.chest._x;
l = this.chest.tl._y + this.chest._y;
if (this.dir == "f") {
nextFrame();
} else if (this.dir == "b") {
prevFrame();
}
}
Symbol 195 MovieClip Frame 7
_root.dance_loc = 0;
xx = 20;
counttime = getTimer();
setInterval(function () {
lasttime = counttime;
counttime = getTimer();
elapsedtime = counttime - lasttime;
xx = 20 - (elapsedtime - 20);
trace(xx);
}, xx);
_root.dance_loc = 0;
xx = 20;
counttime = getTimer();
setInterval(function () {
_root.dance_loc++;
robot2.cf = robot._currentframe;
_root.robot.robot2.gotoAndStop(_root.dance_loc);
lasttime = counttime;
counttime = getTimer();
elapsedtime = counttime - lasttime;
xx = 20 - (elapsedtime - 20);
trace((xx + " | ") + getTimer());
}, xx);
Symbol 201 MovieClip Frame 1
dir = "u";
stop();
Symbol 201 MovieClip Frame 2
if (dir == "u") {
over = new Sound(_root.snd);
over.attachSound("over");
over.start(0, 0);
over.setVolume(50);
}
Symbol 201 MovieClip Frame 3
dir = "d";
Symbol 205 MovieClip Frame 1
dir = "u";
stop();
Symbol 205 MovieClip Frame 2
if (dir == "u") {
over = new Sound(_root.snd);
over.attachSound("over");
over.start(0, 0);
over.setVolume(50);
}
Symbol 205 MovieClip Frame 3
dir = "d";
Symbol 208 MovieClip Frame 1
dir = "u";
stop();
Symbol 208 MovieClip Frame 2
if (dir == "u") {
over = new Sound(_root.snd);
over.attachSound("over");
over.start(0, 0);
over.setVolume(50);
}
Symbol 208 MovieClip Frame 3
dir = "d";
Symbol 211 MovieClip Frame 1
dir = "u";
stop();
Symbol 211 MovieClip Frame 2
if (dir == "u") {
over = new Sound(_root.snd);
over.attachSound("over");
over.start(0, 0);
over.setVolume(50);
}
Symbol 211 MovieClip Frame 3
dir = "d";
Symbol 254 MovieClip Frame 19
stop();
Symbol 257 MovieClip Frame 1
stop();
Symbol 258 MovieClip Frame 1
stop();
Symbol 258 MovieClip Frame 3
function frag(name) {
if (name.action == "fire") {
name.gravity = 1.5;
name.yspeed = name.yspeed + name.gravity;
name._x = name.x;
name.x = name.xspeed + name._x;
name.y = name.yspeed + name._y;
if (name.y < 500) {
name._y = name.y;
} else {
name.action = "off";
}
} else if (name.action == "off") {
name.unloadMovie(this);
name.yspeed = 0;
} else if (name.action == "set") {
name.xspeed = random(50);
name.yspeed = -random(30);
scale = random(25) + 5;
name._xscale = scale;
name._yscale = scale;
name.action = "fire";
name.neg = random(2);
if (name.neg == 1) {
name.xspeed = name.xspeed * -1;
}
}
}
d = 1;
while (d < 10) {
duplicateMovieClip ("fragment", "f" + d, -14000 + d);
d++;
}
Instance of Symbol 257 MovieClip "fragment" in Symbol 258 MovieClip Frame 3
onClipEvent (enterFrame) {
_parent.frag(this);
x2 = this.xspeed;
y2 = this.yspeed;
if (x < 0) {
this.head._yscale = -100;
} else if (x > 0) {
this.head._yscale = 100;
}
if (x2 > 0) {
baseangle = -90;
} else if (x2 < 0) {
baseangle = 90;
}
if (x2 > 0) {
angleperc = y2 / x2;
if (angleperc > 2) {
angleperc = 2;
} else if (angleperc < -2) {
angleperc = -2;
}
this.tail._rotation = (angleperc * 45) - 90;
} else if (x2 < 0) {
x2 = -x2;
angleperc = y2 / x2;
if (angleperc > 2) {
angleperc = 2;
} else if (angleperc < -2) {
angleperc = -2;
}
this.tail._rotation = (angleperc * -45) + 90;
}
}
onClipEvent (load) {
action = "set";
}
Instance of Symbol 267 MovieClip in Symbol 268 MovieClip Frame 7
onClipEvent (enterFrame) {
gotoAndPlay(_root.back);
}
Symbol 269 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 9
stop();
Instance of Symbol 269 MovieClip "cue1" in Symbol 272 MovieClip Frame 1
onClipEvent (enterFrame) {
q = 0;
if (_parent["qqq" + (_parent.cur_qqq + q)] != undefined) {
this.box1.gotoAndStop(_parent["qqq" + (_parent.cur_qqq + q)]);
this.box2.gotoAndStop(_parent["qqq" + ((_parent.cur_qqq + q) + 1)]);
} else {
this.box1.gotoAndStop("off");
this.box2.gotoAndStop("off");
}
if (_parent.match == true) {
this.nextFrame();
}
if (this._currentframe == this._totalframes) {
_root.cue.cur_qqq++;
_parent.match = false;
this.gotoAndStop(1);
}
}
Instance of Symbol 269 MovieClip "cue2" in Symbol 272 MovieClip Frame 1
onClipEvent (enterFrame) {
q = 1;
if (_parent["qqq" + (_parent.cur_qqq + q)] != undefined) {
this.box1.gotoAndStop(_parent["qqq" + (_parent.cur_qqq + q)]);
this.box2.gotoAndStop(_parent["qqq" + ((_parent.cur_qqq + q) + 1)]);
} else {
this.box1.gotoAndStop("off");
this.box2.gotoAndStop("off");
}
if (_parent.match == true) {
this.nextFrame();
} else {
gotoAndStop (1);
}
}
Instance of Symbol 269 MovieClip "cue3" in Symbol 272 MovieClip Frame 1
onClipEvent (enterFrame) {
q = 2;
if (_parent["qqq" + (_parent.cur_qqq + q)] != undefined) {
this.box1.gotoAndStop(_parent["qqq" + (_parent.cur_qqq + q)]);
this.box2.gotoAndStop(_parent["qqq" + ((_parent.cur_qqq + q) + 1)]);
} else {
this.box1.gotoAndStop("off");
this.box2.gotoAndStop("off");
}
if (_parent.match == true) {
this.nextFrame();
} else {
gotoAndStop (1);
}
}
Instance of Symbol 269 MovieClip "cue2" in Symbol 272 MovieClip Frame 1
onClipEvent (enterFrame) {
q = 3;
if (_parent["qqq" + (_parent.cur_qqq + q)] != undefined) {
this.box1.gotoAndStop(_parent["qqq" + (_parent.cur_qqq + q)]);
this.box2.gotoAndStop(_parent["qqq" + ((_parent.cur_qqq + q) + 1)]);
} else {
this.box1.gotoAndStop("off");
this.box2.gotoAndStop("off");
}
if (_parent.match == true) {
this.nextFrame();
} else {
gotoAndStop (1);
}
}
Instance of Symbol 269 MovieClip "cue3" in Symbol 272 MovieClip Frame 1
onClipEvent (enterFrame) {
q = 4;
if (_parent["qqq" + (_parent.cur_qqq + q)] != undefined) {
this.box1.gotoAndStop(_parent["qqq" + (_parent.cur_qqq + q)]);
this.box2.gotoAndStop(_parent["qqq" + ((_parent.cur_qqq + q) + 1)]);
} else {
this.box1.gotoAndStop("off");
this.box2.gotoAndStop("off");
}
if (_parent.match == true) {
this.nextFrame();
} else {
gotoAndStop (1);
}
}
Instance of Symbol 269 MovieClip "cue2" in Symbol 272 MovieClip Frame 1
onClipEvent (enterFrame) {
q = 5;
if (_parent["qqq" + (_parent.cur_qqq + q)] != undefined) {
this.box1.gotoAndStop(_parent["qqq" + (_parent.cur_qqq + q)]);
this.box2.gotoAndStop(_parent["qqq" + ((_parent.cur_qqq + q) + 1)]);
} else {
this.box1.gotoAndStop("off");
this.box2.gotoAndStop("off");
}
if (_parent.match == true) {
this.nextFrame();
} else {
gotoAndStop (1);
}
}
Instance of Symbol 269 MovieClip "cue3" in Symbol 272 MovieClip Frame 1
onClipEvent (enterFrame) {
q = 6;
if (_parent["qqq" + (_parent.cur_qqq + q)] != undefined) {
this.box1.gotoAndStop(_parent["qqq" + (_parent.cur_qqq + q)]);
this.box2.gotoAndStop(_parent["qqq" + ((_parent.cur_qqq + q) + 1)]);
} else {
this.box1.gotoAndStop("off");
this.box2.gotoAndStop("off");
}
if (_parent.match == true) {
this.nextFrame();
} else {
gotoAndStop (1);
}
}
Instance of Symbol 269 MovieClip "cue1" in Symbol 275 MovieClip Frame 1
onClipEvent (enterFrame) {
q = 0;
if (_parent["qqq" + (_parent.cur_qqq + q)] != undefined) {
this.box1.gotoAndStop(_parent["qqq" + (_parent.cur_qqq + q)]);
this.box2.gotoAndStop(_parent["qqq" + ((_parent.cur_qqq + q) + 1)]);
} else {
this.box1.gotoAndStop("off");
this.box2.gotoAndStop("off");
}
if (_parent.match == true) {
this.nextFrame();
}
if (this._currentframe == this._totalframes) {
_root.cue2.cur_qqq++;
_parent.match = false;
this.gotoAndStop(1);
}
}
Instance of Symbol 269 MovieClip "cue2" in Symbol 275 MovieClip Frame 1
onClipEvent (enterFrame) {
q = 1;
if (_parent["qqq" + (_parent.cur_qqq + q)] != undefined) {
this.box1.gotoAndStop(_parent["qqq" + (_parent.cur_qqq + q)]);
this.box2.gotoAndStop(_parent["qqq" + ((_parent.cur_qqq + q) + 1)]);
} else {
this.box1.gotoAndStop("off");
this.box2.gotoAndStop("off");
}
if (_parent.match == true) {
this.nextFrame();
} else {
gotoAndStop (1);
}
}
Instance of Symbol 269 MovieClip "cue3" in Symbol 275 MovieClip Frame 1
onClipEvent (enterFrame) {
q = 2;
if (_parent["qqq" + (_parent.cur_qqq + q)] != undefined) {
this.box1.gotoAndStop(_parent["qqq" + (_parent.cur_qqq + q)]);
this.box2.gotoAndStop(_parent["qqq" + ((_parent.cur_qqq + q) + 1)]);
} else {
this.box1.gotoAndStop("off");
this.box2.gotoAndStop("off");
}
if (_parent.match == true) {
this.nextFrame();
} else {
gotoAndStop (1);
}
}
Instance of Symbol 269 MovieClip "cue2" in Symbol 275 MovieClip Frame 1
onClipEvent (enterFrame) {
q = 3;
if (_parent["qqq" + (_parent.cur_qqq + q)] != undefined) {
this.box1.gotoAndStop(_parent["qqq" + (_parent.cur_qqq + q)]);
this.box2.gotoAndStop(_parent["qqq" + ((_parent.cur_qqq + q) + 1)]);
} else {
this.box1.gotoAndStop("off");
this.box2.gotoAndStop("off");
}
if (_parent.match == true) {
this.nextFrame();
} else {
gotoAndStop (1);
}
}
Instance of Symbol 269 MovieClip "cue3" in Symbol 275 MovieClip Frame 1
onClipEvent (enterFrame) {
q = 4;
if (_parent["qqq" + (_parent.cur_qqq + q)] != undefined) {
this.box1.gotoAndStop(_parent["qqq" + (_parent.cur_qqq + q)]);
this.box2.gotoAndStop(_parent["qqq" + ((_parent.cur_qqq + q) + 1)]);
} else {
this.box1.gotoAndStop("off");
this.box2.gotoAndStop("off");
}
if (_parent.match == true) {
this.nextFrame();
} else {
gotoAndStop (1);
}
}
Instance of Symbol 269 MovieClip "cue2" in Symbol 275 MovieClip Frame 1
onClipEvent (enterFrame) {
q = 5;
if (_parent["qqq" + (_parent.cur_qqq + q)] != undefined) {
this.box1.gotoAndStop(_parent["qqq" + (_parent.cur_qqq + q)]);
this.box2.gotoAndStop(_parent["qqq" + ((_parent.cur_qqq + q) + 1)]);
} else {
this.box1.gotoAndStop("off");
this.box2.gotoAndStop("off");
}
if (_parent.match == true) {
this.nextFrame();
} else {
gotoAndStop (1);
}
}
Instance of Symbol 269 MovieClip "cue3" in Symbol 275 MovieClip Frame 1
onClipEvent (enterFrame) {
q = 6;
if (_parent["qqq" + (_parent.cur_qqq + q)] != undefined) {
this.box1.gotoAndStop(_parent["qqq" + (_parent.cur_qqq + q)]);
this.box2.gotoAndStop(_parent["qqq" + ((_parent.cur_qqq + q) + 1)]);
} else {
this.box1.gotoAndStop("off");
this.box2.gotoAndStop("off");
}
if (_parent.match == true) {
this.nextFrame();
} else {
gotoAndStop (1);
}
}
Symbol 278 MovieClip Frame 1
stop();
Symbol 281 Button
on (release) {
_root.fader.dest = "setgame";
_root.fader.play();
}
Symbol 283 MovieClip Frame 31
stop();
Symbol 299 Button
on (release) {
_root.fader.dest = "setgame";
_root.fader.play();
}
Symbol 311 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 5
action = "grabme";
Symbol 312 MovieClip Frame 10
if (_parent.timer > 0) {
gotoAndPlay(_currentframe - 1);
_parent.timer--;
} else if ((_parent.timer <= 0) & (_parent.action != "drag")) {
play();
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 312 MovieClip Frame 14
action = "nograb";
Symbol 312 MovieClip Frame 19
_parent.action = "waitset";
stop();
Symbol 320 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 19
scoreit = (_root.cue2.cur_qqq - 1) + "/20";
Symbol 320 MovieClip Frame 65
gotoAndStop (1);
Symbol 320 MovieClip Frame 130
gotoAndStop (1);
Symbol 320 MovieClip Frame 152
if (_root.enemyfreeze == 0) {
play();
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 320 MovieClip Frame 164
gotoAndStop (1);
Symbol 326 MovieClip Frame 116
stop();
_root.gamestatus = "go";
Symbol 350 MovieClip Frame 1
stop();
_parent.elapsedtime = 0;
stopAllSounds();
common = new Sound(this);
common.attachSound("back1");
common.start(0, 50);
common.setVolume(100);
Symbol 350 MovieClip Frame 2
stopAllSounds();
mc1 = new Sound(this);
mc1.attachSound("freeze1");
mc1.start(0, 0);
mc1.setVolume(100);
dur = 24000;
starttime = getTimer();
cursong = 3;
Instance of Symbol 340 MovieClip in Symbol 350 MovieClip Frame 2
onClipEvent (load) {
_parent.elapsedtime = 0;
}
onClipEvent (enterFrame) {
tperc = _parent.elapsedtime / _parent.dur;
this._x = (70 * tperc) + 60;
counttime = getTimer();
_parent.elapsedtime = counttime - _parent.starttime;
if (_parent.elapsedtime > _parent.dur) {
_parent.gotoAndStop(1);
}
}
Symbol 350 MovieClip Frame 3
stopAllSounds();
mc2 = new Sound(this);
mc2.attachSound("freeze2");
mc2.start(0, 0);
mc2.setVolume(100);
dur = 19000;
starttime = getTimer();
cursong = 2;
Symbol 350 MovieClip Frame 4
stopAllSounds();
mc3 = new Sound(this);
mc3.attachSound("freeze3");
mc3.start(0, 0);
mc3.setVolume(100);
dur = 27000;
starttime = getTimer();
cursong = 2;
Symbol 352 MovieClip Frame 67
_root.playerfreeze = 0;
_root.robot.gotoAndStop("win" + _root.back);
Symbol 352 MovieClip Frame 68
if ((_root.robot._currentframe == 1) or (_root.robot._currentframe == 2)) {
_root.robot.gotoAndStop("win" + _root.back);
}
Symbol 352 MovieClip Frame 72
if ((_root.robot._currentframe == 1) or (_root.robot._currentframe == 2)) {
_root.robot.gotoAndStop("win" + _root.back);
}
Symbol 352 MovieClip Frame 97
stop();
Symbol 367 Button
on (release) {
_root.levelup();
if (_root.back == 1) {
_root.fader.dest = "setstage2";
} else if (_root.back == 2) {
_root.fader.dest = "setstage3";
} else if (_root.back == 3) {
_root.fader.dest = "setstage1";
}
_root.fader.play();
gotoAndStop (1);
}
Symbol 374 Button
on (release) {
_root.hsm.gotoAndStop(1);
_root.fader.play();
_root.fader.dest = "choose";
}
Symbol 382 MovieClip Frame 1
stop();
Symbol 382 MovieClip Frame 2
stop();
Symbol 383 Button
on (release) {
trace("clickedHS: " + clickedHS);
if ((_root.hsm._currentframe == 1) && (clickedHS == false)) {
clickedHS = true;
l_stUserName = playername;
l_iGameScore = _root.score;
this.pleaseWait_mc._visible = true;
_parent.pleaseWait_mc._visible = true;
_root.hsm._x = 380;
_root.playername = playername_txt.text;
NUSUN.getGameUserId();
} else {
playername = "";
}
}
Symbol 384 MovieClip Frame 1
clickedHS = false;
Symbol 384 MovieClip Frame 88
stop();
playername_txt.maxChars = 2;
pleaseWait_mc._visible = false;
dpoints = _root.player_deflections * 200;
hpoints = _root.player_hits * 500;
fpoints = _root.player_ringtones * 300;
total_points = (dpoints + hpoints) + fpoints;
_root.score = _root.score + total_points;
Symbol 385 MovieClip Frame 1
stop();
Symbol 385 MovieClip Frame 3
oldscore = _root.score;
bonus = 1000 * ((21 - _root.cue2.cur_qqq) - 1);
dpoints = _root.player_deflections * 200;
hpoints = _root.player_hits * 500;
fpoints = _root.player_ringtones * 300;
total_points = ((bonus + dpoints) + hpoints) + fpoints;
_root.score = _root.score + total_points;
Symbol 398 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 19
scoreit = (_root.cue.cur_qqq - 1) + "/20";
Symbol 398 MovieClip Frame 65
gotoAndStop (1);
Symbol 398 MovieClip Frame 130
gotoAndStop (1);
Symbol 398 MovieClip Frame 152
if (_root.playerfreeze == 0) {
play();
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 398 MovieClip Frame 164
gotoAndStop (1);
Symbol 405 MovieClip Frame 1
stop();
Symbol 408 Button
on (release) {
_root.fader.dest = "choose";
_root.fader.play();
}
Symbol 409 Button
on (release) {
_root.fader.dest = "instructions";
_root.fader.play();
}
Symbol 412 MovieClip Frame 1
stop();
Symbol 423 MovieClip Frame 1
stop();
_parent.elapsedtime = 0;
stopAllSounds();
roudy = new Sound(this);
roudy.attachSound("back2");
roudy.start(0, 50);
roudy.setVolume(100);
Symbol 423 MovieClip Frame 2
stopAllSounds();
aar1 = new Sound(this);
aar1.attachSound("freeze3");
aar1.start(0, 0);
aar1.setVolume(100);
dur = 27000;
starttime = getTimer();
cursong = 3;
Instance of Symbol 340 MovieClip in Symbol 423 MovieClip Frame 2
onClipEvent (load) {
_parent.elapsedtime = 0;
}
onClipEvent (enterFrame) {
tperc = _parent.elapsedtime / _parent.dur;
this._x = (70 * tperc) + 60;
counttime = getTimer();
_parent.elapsedtime = counttime - _parent.starttime;
if (_parent.elapsedtime > _parent.dur) {
_parent.gotoAndStop(1);
}
}
Symbol 423 MovieClip Frame 3
stopAllSounds();
arr2 = new Sound(this);
arr2.attachSound("freeze4");
arr2.start(0, 0);
arr2.setVolume(100);
dur = 30000;
starttime = getTimer();
cursong = 2;
Symbol 423 MovieClip Frame 4
stopAllSounds();
arr3 = new Sound(this);
arr3.attachSound("arr3");
arr3.start(0, 0);
arr3.setVolume(100);
dur = 28000;
starttime = getTimer();
cursong = 2;
Symbol 423 MovieClip Frame 5
stopAllSounds();
Symbol 440 MovieClip Frame 1
stop();
_parent.elapsedtime = 0;
stopAllSounds();
rap = new Sound(this);
rap.attachSound("back3");
rap.start(0, 50);
rap.setVolume(100);
Symbol 440 MovieClip Frame 2
stopAllSounds();
mj1 = new Sound(this);
mj1.attachSound("freeze6");
mj1.start(0, 0);
mj1.setVolume(100);
dur = 32000;
starttime = getTimer();
cursong = 3;
Instance of Symbol 340 MovieClip in Symbol 440 MovieClip Frame 2
onClipEvent (load) {
_parent.elapsedtime = 0;
}
onClipEvent (enterFrame) {
tperc = _parent.elapsedtime / _parent.dur;
this._x = (70 * tperc) + 60;
counttime = getTimer();
_parent.elapsedtime = counttime - _parent.starttime;
if (_parent.elapsedtime > _parent.dur) {
_parent.gotoAndStop(1);
}
}
Symbol 440 MovieClip Frame 3
stopAllSounds();
mj2 = new Sound(this);
mj2.attachSound("freeze5");
mj2.start(0, 0);
mj2.setVolume(100);
dur = 37000;
starttime = getTimer();
cursong = 2;
Symbol 440 MovieClip Frame 4
stopAllSounds();
mj3 = new Sound(this);
mj3.attachSound("freeze6");
mj3.start(0, 0);
mj3.setVolume(100);
dur = 37000;
starttime = getTimer();
cursong = 2;
Symbol 440 MovieClip Frame 5
stopAllSounds();