Frame 1
if (_root.load_bar._currentframe >= 99) {
gotoAndPlay (3);
} else {
play();
}
Instance of Symbol 104 MovieClip "load_bar" in Frame 1
onClipEvent (enterFrame) {
byteloaded = _root.getBytesLoaded();
bytetotal = _root.getBytesTotal();
loaded = int((byteloaded / bytetotal) * 100);
t = getTimer();
percent = ((((loaded + "% ( ") + int(byteloaded / 1000)) + " K / ") + int(bytetotal / 1000)) + " K )";
percent = ((percent + "\r\u4E0B\u8F7D\u901F\u5EA6\uFF1A") + (int((byteloaded / t) * 100) / 100)) + " K/s";
_root.load_bar.gotoAndStop(_root.load_bar.loaded);
timeloaded = int(t / 1000);
timeremain = int((timeloaded * (bytetotal - byteloaded)) / byteloaded);
timeremain = ((int(timeremain / 60) + "'") + int(timeremain % 60)) + "\"";
timeloaded = ((int(timeloaded / 60) + "'") + int(timeloaded % 60)) + "\"";
downloadtime = ((("\u5DF2\u7528\u65F6\u95F4\uFF1A" + timeloaded) + "\r") + "\u5269\u4F59\u65F6\u95F4\uFF1A") + timeremain;
_root.downloadtime = _root.load_bar.downloadtime;
}
Frame 2
gotoAndPlay (1);
Frame 4
stop();
fscommand ("showmenu", "false");
fscommand ("trapallkeys", "true");
Frame 7
function wallsoundbar() {
wallsound = new Sound();
wallsound.attachSound("wallsound");
wallsound.start();
}
function eatsoundbar() {
eatsound = new Sound();
eatsound.attachSound("eatsound");
eatsound.start();
}
function bansoundbar() {
bansound = new Sound();
bansound.attachSound("bansound");
bansound.start();
}
function clickbansoundbar() {
clickbansound = new Sound();
clickbansound.attachSound("clickbansound");
clickbansound.start();
}
_root.speed1 = 1.8;
_root.speed2 = 0.8;
_root.speed3 = 3;
_root.speed4 = 5;
_root.speed = _root.speed1;
_root.tmpspeed = 0;
_root.reboundcounts = 0;
_root.onescore = 50;
_root.score = 0;
_root.addcounts = 150;
_root.endcounts = 1000;
Frame 8
function levelini() {
var _local1 = _root;
if (level == 1) {
_local1.alleat = 2;
} else if (level == 2) {
_local1.alleat = 7;
} else if (level == 3) {
_local1.alleat = 6;
} else if (level == 4) {
_local1.alleat = 8;
} else if (level == 5) {
_local1.alleat = 6;
} else if (level == 6) {
_local1.alleat = 4;
} else if (level == 7) {
_local1.alleat = 2;
} else if (level == 8) {
_local1.alleat = 14;
} else if (level == 9) {
_local1.alleat = 2;
} else if (level == 10) {
_local1.alleat = 5;
}
_local1.eatcount = 0;
}
stop();
gotoAndStop (8);
_root.level = 1;
_root.dir = 0;
_root.levelini();
Instance of Symbol 208 MovieClip "scorebar" in Frame 8
onClipEvent (enterFrame) {
if ((cir < _root.score) and (cirswitch == 1)) {
cir = cir + 1;
_root.scoreend = _root.scoreend + 1;
} else {
cirswitch = 0;
}
}
onClipEvent (load) {
_root.scoreend = 0;
cir = 0;
cirswitch = 0;
}
Instance of Symbol 211 MovieClip "reboundbar" in Frame 8
onClipEvent (enterFrame) {
if (_root.reboundcounts >= _root.endcounts) {
_root.reboundbar.gotoAndStop(2);
_root.gotoAndStop("gameover");
}
}
Instance of Symbol 247 MovieClip in Frame 8
/* no clip actions */
Instance of Symbol 255 MovieClip "hidebar1" in Frame 8
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 265 MovieClip in Frame 8
onClipEvent (load) {
}
Instance of Symbol 290 MovieClip "accept" in Frame 8
/* no clip actions */
Instance of Symbol 298 MovieClip "sendbar" in Frame 8
onClipEvent (mouseDown) {
if (((this.hitTest(_root._xmouse, _root._ymouse) and (_root.ball._visible == false)) and (this._currentframe == 1)) and (_root.pauses == false)) {
_root.ball._visible = true;
_root.dir = 3;
this.gotoAndStop(2);
}
}
Instance of Symbol 302 MovieClip "ball" in Frame 8
onClipEvent (load) {
this._visible = false;
sss = this._height / 2;
}
onClipEvent (enterFrame) {
if (_root.dir == 1) {
pxx = this._x;
pyy = this._y - sss;
} else if (_root.dir == 2) {
pxx = this._x - sss;
pyy = this._y;
} else if (_root.dir == 3) {
pxx = this._x;
pyy = this._y + sss;
} else if (_root.dir == 4) {
pxx = this._x + sss;
pyy = this._y;
}
if (_root.wall.hitTest(pxx, pyy, true)) {
_root.wallsoundbar();
_root.reboundcounts = _root.reboundcounts + 1;
_root.dir = _root.dir + 2;
if (_root.dir >= 5) {
_root.dir = _root.dir - 4;
}
}
}
onClipEvent (enterFrame) {
if (_root.dir == 1) {
this._y = this._y - _root.speed;
} else if (_root.dir == 2) {
this._x = this._x - _root.speed;
} else if (_root.dir == 3) {
this._y = this._y + _root.speed;
} else if (_root.dir == 4) {
this._x = this._x + _root.speed;
}
}
Instance of Symbol 315 MovieClip "win" in Frame 8
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 318 MovieClip "pausebar" in Frame 8
onClipEvent (load) {
this._visible = false;
_root.pauses = false;
}
onClipEvent (enterFrame) {
if (_root.pauses == true) {
_root.speed = 0;
}
}
Frame 9
_root.level = 2;
_root.dir = 0;
_root.levelini();
Instance of Symbol 371 MovieClip "hidebar2" in Frame 9
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 265 MovieClip in Frame 9
onClipEvent (load) {
}
Instance of Symbol 298 MovieClip "sendbar" in Frame 9
onClipEvent (mouseDown) {
if (((this.hitTest(_root._xmouse, _root._ymouse) and (_root.ball._visible == false)) and (this._currentframe == 1)) and (_root.pauses == false)) {
_root.ball._visible = true;
this.gotoAndStop(2);
_root.dir = 3;
}
}
Instance of Symbol 271 MovieClip "ban3" in Frame 9
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 271 MovieClip "ban2" in Frame 9
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 271 MovieClip "ban5" in Frame 9
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 271 MovieClip "ban8" in Frame 9
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 302 MovieClip "ball" in Frame 9
onClipEvent (load) {
this._visible = false;
sss = this._height / 2;
}
onClipEvent (enterFrame) {
if (_root.dir == 1) {
pxx = this._x;
pyy = this._y - sss;
} else if (_root.dir == 2) {
pxx = this._x - sss;
pyy = this._y;
} else if (_root.dir == 3) {
pxx = this._x;
pyy = this._y + sss;
} else if (_root.dir == 4) {
pxx = this._x + sss;
pyy = this._y;
}
if (_root.wall.hitTest(pxx, pyy, true)) {
_root.wallsoundbar();
_root.reboundcounts = _root.reboundcounts + 1;
_root.dir = _root.dir + 2;
if (_root.dir >= 5) {
_root.dir = _root.dir - 4;
}
}
}
onClipEvent (enterFrame) {
if (_root.dir == 1) {
this._y = this._y - _root.speed;
} else if (_root.dir == 2) {
this._x = this._x - _root.speed;
} else if (_root.dir == 3) {
this._y = this._y + _root.speed;
} else if (_root.dir == 4) {
this._x = this._x + _root.speed;
}
}
Frame 10
_root.level = 3;
_root.dir = 0;
_root.levelini();
Instance of Symbol 265 MovieClip in Frame 10
onClipEvent (load) {
}
Instance of Symbol 271 MovieClip "ban6" in Frame 10
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 271 MovieClip "ban3" in Frame 10
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 271 MovieClip "ban2" in Frame 10
/* no clip actions */
Instance of Symbol 271 MovieClip "ban5" in Frame 10
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 271 MovieClip "ban8" in Frame 10
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 290 MovieClip "accept" in Frame 10
/* no clip actions */
Instance of Symbol 298 MovieClip "sendbar" in Frame 10
onClipEvent (mouseDown) {
if (((this.hitTest(_root._xmouse, _root._ymouse) and (_root.ball._visible == false)) and (this._currentframe == 1)) and (_root.pauses == false)) {
_root.ball._visible = true;
this.gotoAndStop(2);
_root.dir = 4;
}
}
Instance of Symbol 302 MovieClip "ball" in Frame 10
onClipEvent (load) {
this._visible = false;
sss = this._height / 2;
}
onClipEvent (enterFrame) {
if (_root.dir == 1) {
pxx = this._x;
pyy = this._y - sss;
} else if (_root.dir == 2) {
pxx = this._x - sss;
pyy = this._y;
} else if (_root.dir == 3) {
pxx = this._x;
pyy = this._y + sss;
} else if (_root.dir == 4) {
pxx = this._x + sss;
pyy = this._y;
}
if (_root.wall.hitTest(pxx, pyy, true)) {
_root.wallsoundbar();
_root.reboundcounts = _root.reboundcounts + 1;
_root.dir = _root.dir + 2;
if (_root.dir >= 5) {
_root.dir = _root.dir - 4;
}
}
}
onClipEvent (enterFrame) {
if (_root.dir == 1) {
this._y = this._y - _root.speed;
} else if (_root.dir == 2) {
this._x = this._x - _root.speed;
} else if (_root.dir == 3) {
this._y = this._y + _root.speed;
} else if (_root.dir == 4) {
this._x = this._x + _root.speed;
}
}
Frame 11
_root.level = 4;
_root.dir = 0;
_root.levelini();
Instance of Symbol 265 MovieClip in Frame 11
onClipEvent (load) {
}
Instance of Symbol 271 MovieClip "ban3" in Frame 11
/* no clip actions */
Instance of Symbol 271 MovieClip "ban2" in Frame 11
/* no clip actions */
Instance of Symbol 271 MovieClip "ban5" in Frame 11
/* no clip actions */
Instance of Symbol 271 MovieClip "ban8" in Frame 11
/* no clip actions */
Instance of Symbol 271 MovieClip "ban11" in Frame 11
onClipEvent (load) {
this.gotoAndStop(4);
}
Instance of Symbol 271 MovieClip "ban12" in Frame 11
onClipEvent (load) {
this.gotoAndStop(4);
}
Instance of Symbol 298 MovieClip "sendbar" in Frame 11
onClipEvent (mouseDown) {
if (((this.hitTest(_root._xmouse, _root._ymouse) and (_root.ball._visible == false)) and (this._currentframe == 1)) and (_root.pauses == false)) {
_root.ball._visible = true;
this.gotoAndStop(2);
_root.dir = 4;
}
}
Instance of Symbol 302 MovieClip "ball" in Frame 11
onClipEvent (load) {
this._visible = false;
sss = this._height / 2;
}
onClipEvent (enterFrame) {
if (_root.dir == 1) {
pxx = this._x;
pyy = this._y - sss;
} else if (_root.dir == 2) {
pxx = this._x - sss;
pyy = this._y;
} else if (_root.dir == 3) {
pxx = this._x;
pyy = this._y + sss;
} else if (_root.dir == 4) {
pxx = this._x + sss;
pyy = this._y;
}
if (_root.wall.hitTest(pxx, pyy, true)) {
_root.wallsoundbar();
_root.reboundcounts = _root.reboundcounts + 1;
_root.dir = _root.dir + 2;
if (_root.dir >= 5) {
_root.dir = _root.dir - 4;
}
}
}
onClipEvent (enterFrame) {
if (_root.dir == 1) {
this._y = this._y - _root.speed;
} else if (_root.dir == 2) {
this._x = this._x - _root.speed;
} else if (_root.dir == 3) {
this._y = this._y + _root.speed;
} else if (_root.dir == 4) {
this._x = this._x + _root.speed;
}
}
Frame 12
_root.level = 5;
_root.dir = 0;
_root.levelini();
Instance of Symbol 392 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hot.hitTest(_root.ball) and (freeze == 0)) {
freeze = 1;
i = 1;
while (i <= 15) {
_root["ban" add i].gotoAndStop(parseInt(_root["ban" add i]._currentframe) + 2);
i++;
}
}
}
onClipEvent (load) {
freeze = 0;
}
Instance of Symbol 265 MovieClip in Frame 12
onClipEvent (load) {
}
Instance of Symbol 271 MovieClip "ban6" in Frame 12
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 271 MovieClip "ban3" in Frame 12
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 271 MovieClip "ban2" in Frame 12
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 271 MovieClip "ban5" in Frame 12
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 271 MovieClip "ban8" in Frame 12
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 271 MovieClip "ban10" in Frame 12
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 271 MovieClip "ban11" in Frame 12
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 271 MovieClip "ban12" in Frame 12
/* no clip actions */
Instance of Symbol 290 MovieClip "accept" in Frame 12
/* no clip actions */
Instance of Symbol 298 MovieClip "sendbar" in Frame 12
onClipEvent (mouseDown) {
if (((this.hitTest(_root._xmouse, _root._ymouse) and (_root.ball._visible == false)) and (this._currentframe == 1)) and (_root.pauses == false)) {
_root.ball._visible = true;
this.gotoAndStop(2);
_root.dir = 4;
}
}
Instance of Symbol 271 MovieClip "ban13" in Frame 12
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 271 MovieClip "ban14" in Frame 12
/* no clip actions */
Instance of Symbol 271 MovieClip "ban15" in Frame 12
/* no clip actions */
Instance of Symbol 302 MovieClip "ball" in Frame 12
onClipEvent (load) {
this._visible = false;
sss = this._height / 2;
}
onClipEvent (enterFrame) {
if (_root.dir == 1) {
pxx = this._x;
pyy = this._y - sss;
} else if (_root.dir == 2) {
pxx = this._x - sss;
pyy = this._y;
} else if (_root.dir == 3) {
pxx = this._x;
pyy = this._y + sss;
} else if (_root.dir == 4) {
pxx = this._x + sss;
pyy = this._y;
}
if (_root.wall.hitTest(pxx, pyy, true)) {
_root.wallsoundbar();
_root.reboundcounts = _root.reboundcounts + 1;
_root.dir = _root.dir + 2;
if (_root.dir >= 5) {
_root.dir = _root.dir - 4;
}
}
}
onClipEvent (enterFrame) {
if (_root.dir == 1) {
this._y = this._y - _root.speed;
} else if (_root.dir == 2) {
this._x = this._x - _root.speed;
} else if (_root.dir == 3) {
this._y = this._y + _root.speed;
} else if (_root.dir == 4) {
this._x = this._x + _root.speed;
}
}
Frame 13
_root.level = 6;
_root.dir = 0;
_root.levelini();
Instance of Symbol 265 MovieClip in Frame 13
onClipEvent (load) {
}
Instance of Symbol 271 MovieClip "ban1" in Frame 13
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 271 MovieClip "ban6" in Frame 13
onClipEvent (load) {
dongdong = 999;
this.gotoAndPlay(4);
}
Instance of Symbol 271 MovieClip "ban7" in Frame 13
onClipEvent (load) {
dongdong = 999;
this.gotoAndPlay(4);
}
Instance of Symbol 271 MovieClip "ban5" in Frame 13
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 271 MovieClip "ban8" in Frame 13
onClipEvent (load) {
dongdong = 999;
this.gotoAndPlay(4);
}
Instance of Symbol 290 MovieClip "accept" in Frame 13
/* no clip actions */
Instance of Symbol 298 MovieClip "sendbar" in Frame 13
onClipEvent (mouseDown) {
if (((this.hitTest(_root._xmouse, _root._ymouse) and (_root.ball._visible == false)) and (this._currentframe == 1)) and (_root.pauses == false)) {
_root.ball._visible = true;
this.gotoAndStop(2);
_root.dir = 4;
}
}
Instance of Symbol 302 MovieClip "ball" in Frame 13
onClipEvent (load) {
this._visible = false;
sss = this._height / 2;
}
onClipEvent (enterFrame) {
if (_root.dir == 1) {
pxx = this._x;
pyy = this._y - sss;
} else if (_root.dir == 2) {
pxx = this._x - sss;
pyy = this._y;
} else if (_root.dir == 3) {
pxx = this._x;
pyy = this._y + sss;
} else if (_root.dir == 4) {
pxx = this._x + sss;
pyy = this._y;
}
if (_root.wall.hitTest(pxx, pyy, true)) {
_root.wallsoundbar();
_root.reboundcounts = _root.reboundcounts + 1;
_root.dir = _root.dir + 2;
if (_root.dir >= 5) {
_root.dir = _root.dir - 4;
}
}
}
onClipEvent (enterFrame) {
if (_root.dir == 1) {
this._y = this._y - _root.speed;
} else if (_root.dir == 2) {
this._x = this._x - _root.speed;
} else if (_root.dir == 3) {
this._y = this._y + _root.speed;
} else if (_root.dir == 4) {
this._x = this._x + _root.speed;
}
}
Frame 14
_root.level = 7;
_root.dir = 0;
_root.levelini();
Instance of Symbol 265 MovieClip in Frame 14
onClipEvent (load) {
}
Instance of Symbol 271 MovieClip "ban1" in Frame 14
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 271 MovieClip "ban2" in Frame 14
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 271 MovieClip "ban7" in Frame 14
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 271 MovieClip "ban4" in Frame 14
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 271 MovieClip "ban5" in Frame 14
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 271 MovieClip "ban8" in Frame 14
onClipEvent (load) {
this.gotoAndPlay(3);
}
Instance of Symbol 400 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hot.hitTest(_root.ball) and (pushbar == 0)) {
pushbar = 1;
i = 8;
while (i <= 9) {
if (_root["ban" add i]._currentframe == 3) {
_root["ban" add i].gotoAndStop(4);
} else if (_root["ban" add i]._currentframe == 4) {
_root["ban" add i].gotoAndStop(3);
}
i++;
}
}
if ((this.hot.hitTest(_root.ball) == false) and (pushbar == 1)) {
pushbar = 0;
}
}
onClipEvent (load) {
pushbar = 0;
}
Instance of Symbol 290 MovieClip "accept" in Frame 14
/* no clip actions */
Instance of Symbol 298 MovieClip "sendbar" in Frame 14
onClipEvent (mouseDown) {
if (((this.hitTest(_root._xmouse, _root._ymouse) and (_root.ball._visible == false)) and (this._currentframe == 1)) and (_root.pauses == false)) {
_root.ball._visible = true;
this.gotoAndStop(2);
_root.dir = 3;
}
}
Instance of Symbol 271 MovieClip "ban9" in Frame 14
onClipEvent (load) {
this.gotoAndPlay(4);
}
Instance of Symbol 302 MovieClip "ball" in Frame 14
onClipEvent (load) {
this._visible = false;
sss = this._height / 2;
}
onClipEvent (enterFrame) {
if (_root.dir == 1) {
pxx = this._x;
pyy = this._y - sss;
} else if (_root.dir == 2) {
pxx = this._x - sss;
pyy = this._y;
} else if (_root.dir == 3) {
pxx = this._x;
pyy = this._y + sss;
} else if (_root.dir == 4) {
pxx = this._x + sss;
pyy = this._y;
}
if (_root.wall.hitTest(pxx, pyy, true)) {
_root.wallsoundbar();
_root.reboundcounts = _root.reboundcounts + 1;
_root.dir = _root.dir + 2;
if (_root.dir >= 5) {
_root.dir = _root.dir - 4;
}
}
}
onClipEvent (enterFrame) {
if (_root.dir == 1) {
this._y = this._y - _root.speed;
} else if (_root.dir == 2) {
this._x = this._x - _root.speed;
} else if (_root.dir == 3) {
this._y = this._y + _root.speed;
} else if (_root.dir == 4) {
this._x = this._x + _root.speed;
}
}
Frame 15
_root.level = 8;
_root.dir = 0;
_root.levelini();
Instance of Symbol 265 MovieClip in Frame 15
onClipEvent (load) {
}
Instance of Symbol 271 MovieClip "ban1" in Frame 15
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 271 MovieClip "ban3" in Frame 15
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 271 MovieClip "ban2" in Frame 15
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 271 MovieClip "ban8" in Frame 15
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 400 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hot.hitTest(_root.ball) and (pushbar == 0)) {
pushbar = 1;
_root.wall.door.play();
}
if ((this.hot.hitTest(_root.ball) == false) and (pushbar == 1)) {
pushbar = 0;
}
}
onClipEvent (load) {
pushbar = 0;
}
Instance of Symbol 400 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hot.hitTest(_root.ball) and (pushbar == 0)) {
pushbar = 1;
_root.wall.door.play();
}
if ((this.hot.hitTest(_root.ball) == false) and (pushbar == 1)) {
pushbar = 0;
}
}
onClipEvent (load) {
pushbar = 0;
}
Instance of Symbol 400 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hot.hitTest(_root.ball) and (pushbar == 0)) {
pushbar = 1;
_root.wall.door.play();
}
if ((this.hot.hitTest(_root.ball) == false) and (pushbar == 1)) {
pushbar = 0;
}
}
onClipEvent (load) {
pushbar = 0;
}
Instance of Symbol 290 MovieClip "accept" in Frame 15
/* no clip actions */
Instance of Symbol 298 MovieClip "sendbar" in Frame 15
onClipEvent (mouseDown) {
if (((this.hitTest(_root._xmouse, _root._ymouse) and (_root.ball._visible == false)) and (this._currentframe == 1)) and (_root.pauses == false)) {
_root.ball._visible = true;
this.gotoAndStop(2);
_root.dir = 4;
}
}
Instance of Symbol 271 MovieClip "ban10" in Frame 15
/* no clip actions */
Instance of Symbol 271 MovieClip "ban11" in Frame 15
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 271 MovieClip "ban12" in Frame 15
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 302 MovieClip "ball" in Frame 15
onClipEvent (load) {
this._visible = false;
sss = this._height / 2;
}
onClipEvent (enterFrame) {
if (_root.dir == 1) {
pxx = this._x;
pyy = this._y - sss;
} else if (_root.dir == 2) {
pxx = this._x - sss;
pyy = this._y;
} else if (_root.dir == 3) {
pxx = this._x;
pyy = this._y + sss;
} else if (_root.dir == 4) {
pxx = this._x + sss;
pyy = this._y;
}
if (_root.wall.hitTest(pxx, pyy, true)) {
_root.wallsoundbar();
_root.reboundcounts = _root.reboundcounts + 1;
_root.dir = _root.dir + 2;
if (_root.dir >= 5) {
_root.dir = _root.dir - 4;
}
}
}
onClipEvent (enterFrame) {
if (_root.dir == 1) {
this._y = this._y - _root.speed;
} else if (_root.dir == 2) {
this._x = this._x - _root.speed;
} else if (_root.dir == 3) {
this._y = this._y + _root.speed;
} else if (_root.dir == 4) {
this._x = this._x + _root.speed;
}
}
Frame 16
_root.level = 9;
_root.dir = 0;
_root.levelini();
Instance of Symbol 400 MovieClip "switch2" in Frame 16
onClipEvent (enterFrame) {
if (this.hot.hitTest(_root.ball) and (pushbar == 0)) {
pushbar = 1;
if (_root.lamp2._currentframe == 1) {
_root.lamp2.gotoAndStop(2);
} else if (_root.lamp2._currentframe == 2) {
_root.lamp2.gotoAndStop(1);
}
}
if ((this.hitTest(_root.ball) == false) and (pushbar == 1)) {
pushbar = 0;
}
}
onClipEvent (load) {
pushbar = 0;
}
Instance of Symbol 400 MovieClip "switch3" in Frame 16
onClipEvent (enterFrame) {
if (this.hot.hitTest(_root.ball) and (pushbar == 0)) {
pushbar = 1;
if (_root.lamp3._currentframe == 1) {
_root.lamp3.gotoAndStop(2);
} else if (_root.lamp3._currentframe == 2) {
_root.lamp3.gotoAndStop(1);
}
}
if ((this.hitTest(_root.ball) == false) and (pushbar == 1)) {
pushbar = 0;
}
}
onClipEvent (load) {
pushbar = 0;
}
Instance of Symbol 400 MovieClip "switch4" in Frame 16
onClipEvent (enterFrame) {
if (this.hot.hitTest(_root.ball) and (pushbar == 0)) {
pushbar = 1;
if (_root.lamp4._currentframe == 1) {
_root.lamp4.gotoAndStop(2);
} else if (_root.lamp4._currentframe == 2) {
_root.lamp4.gotoAndStop(1);
}
}
if ((this.hitTest(_root.ball) == false) and (pushbar == 1)) {
pushbar = 0;
}
}
onClipEvent (load) {
pushbar = 0;
}
Instance of Symbol 400 MovieClip "switch1" in Frame 16
onClipEvent (enterFrame) {
if (this.hot.hitTest(_root.ball) and (pushbar == 0)) {
pushbar = 1;
if (_root.lamp1._currentframe == 1) {
_root.lamp1.gotoAndStop(2);
} else if (_root.lamp1._currentframe == 2) {
_root.lamp1.gotoAndStop(1);
}
}
if ((this.hitTest(_root.ball) == false) and (pushbar == 1)) {
pushbar = 0;
}
}
onClipEvent (load) {
pushbar = 0;
}
Instance of Symbol 265 MovieClip in Frame 16
onClipEvent (load) {
}
Instance of Symbol 271 MovieClip "ban6" in Frame 16
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 271 MovieClip "ban3" in Frame 16
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 271 MovieClip "ban7" in Frame 16
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 271 MovieClip "ban4" in Frame 16
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 271 MovieClip "ban8" in Frame 16
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 290 MovieClip "accept" in Frame 16
/* no clip actions */
Instance of Symbol 298 MovieClip "sendbar" in Frame 16
onClipEvent (mouseDown) {
if (((this.hitTest(_root._xmouse, _root._ymouse) and (_root.ball._visible == false)) and (this._currentframe == 1)) and (_root.pauses == false)) {
_root.ball._visible = true;
this.gotoAndStop(2);
_root.dir = 4;
}
}
Instance of Symbol 271 MovieClip "ban13" in Frame 16
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 271 MovieClip "ban14" in Frame 16
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 271 MovieClip "ban15" in Frame 16
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 302 MovieClip "ball" in Frame 16
onClipEvent (load) {
this._visible = false;
sss = this._height / 2;
}
onClipEvent (enterFrame) {
if (_root.dir == 1) {
pxx = this._x;
pyy = this._y - sss;
} else if (_root.dir == 2) {
pxx = this._x - sss;
pyy = this._y;
} else if (_root.dir == 3) {
pxx = this._x;
pyy = this._y + sss;
} else if (_root.dir == 4) {
pxx = this._x + sss;
pyy = this._y;
}
if (_root.wall.hitTest(pxx, pyy, true)) {
_root.wallsoundbar();
_root.reboundcounts = _root.reboundcounts + 1;
_root.dir = _root.dir + 2;
if (_root.dir >= 5) {
_root.dir = _root.dir - 4;
}
}
}
onClipEvent (enterFrame) {
if (_root.dir == 1) {
this._y = this._y - _root.speed;
} else if (_root.dir == 2) {
this._x = this._x - _root.speed;
} else if (_root.dir == 3) {
this._y = this._y + _root.speed;
} else if (_root.dir == 4) {
this._x = this._x + _root.speed;
}
}
Frame 17
_root.level = 10;
_root.dir = 0;
_root.levelini();
Instance of Symbol 371 MovieClip "hidebar2" in Frame 17
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 400 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hot.hitTest(_root.ball) and (pushbar == 0)) {
pushbar = 1;
i = 14;
while (i <= 18) {
if (_root["ban" add i]._currentframe == 3) {
_root["ban" add i].gotoAndStop(4);
} else if (_root["ban" add i]._currentframe == 4) {
_root["ban" add i].gotoAndStop(3);
}
i++;
}
}
if ((this.hot.hitTest(_root.ball) == false) and (pushbar == 1)) {
pushbar = 0;
}
}
onClipEvent (load) {
pushbar = 0;
}
Instance of Symbol 400 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hot.hitTest(_root.ball) and (pushbar == 0)) {
pushbar = 1;
i = 14;
while (i <= 18) {
if (_root["ban" add i]._currentframe == 3) {
_root["ban" add i].gotoAndStop(4);
} else if (_root["ban" add i]._currentframe == 4) {
_root["ban" add i].gotoAndStop(3);
}
i++;
}
}
if ((this.hot.hitTest(_root.ball) == false) and (pushbar == 1)) {
pushbar = 0;
}
}
onClipEvent (load) {
pushbar = 0;
}
Instance of Symbol 400 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hot.hitTest(_root.ball) and (pushbar == 0)) {
pushbar = 1;
i = 14;
while (i <= 18) {
if (_root["ban" add i]._currentframe == 3) {
_root["ban" add i].gotoAndStop(4);
} else if (_root["ban" add i]._currentframe == 4) {
_root["ban" add i].gotoAndStop(3);
}
i++;
}
}
if ((this.hot.hitTest(_root.ball) == false) and (pushbar == 1)) {
pushbar = 0;
}
}
onClipEvent (load) {
pushbar = 0;
}
Instance of Symbol 400 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hot.hitTest(_root.ball) and (pushbar == 0)) {
pushbar = 1;
i = 14;
while (i <= 18) {
if (_root["ban" add i]._currentframe == 3) {
_root["ban" add i].gotoAndStop(4);
} else if (_root["ban" add i]._currentframe == 4) {
_root["ban" add i].gotoAndStop(3);
}
i++;
}
}
if ((this.hot.hitTest(_root.ball) == false) and (pushbar == 1)) {
pushbar = 0;
}
}
onClipEvent (load) {
pushbar = 0;
}
Instance of Symbol 400 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hot.hitTest(_root.ball) and (pushbar == 0)) {
pushbar = 1;
i = 14;
while (i <= 18) {
if (_root["ban" add i]._currentframe == 3) {
_root["ban" add i].gotoAndStop(4);
} else if (_root["ban" add i]._currentframe == 4) {
_root["ban" add i].gotoAndStop(3);
}
i++;
}
}
if ((this.hot.hitTest(_root.ball) == false) and (pushbar == 1)) {
pushbar = 0;
}
}
onClipEvent (load) {
pushbar = 0;
}
Instance of Symbol 400 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hot.hitTest(_root.ball) and (pushbar == 0)) {
pushbar = 1;
i = 14;
while (i <= 18) {
if (_root["ban" add i]._currentframe == 3) {
_root["ban" add i].gotoAndStop(4);
} else if (_root["ban" add i]._currentframe == 4) {
_root["ban" add i].gotoAndStop(3);
}
i++;
}
}
if ((this.hot.hitTest(_root.ball) == false) and (pushbar == 1)) {
pushbar = 0;
}
}
onClipEvent (load) {
pushbar = 0;
}
Instance of Symbol 265 MovieClip in Frame 17
onClipEvent (load) {
}
Instance of Symbol 271 MovieClip "ban1" in Frame 17
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 271 MovieClip "ban7" in Frame 17
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 298 MovieClip "sendbar" in Frame 17
onClipEvent (mouseDown) {
if (((this.hitTest(_root._xmouse, _root._ymouse) and (_root.ball._visible == false)) and (this._currentframe == 1)) and (_root.pauses == false)) {
_root.ball._visible = true;
this.gotoAndStop(2);
_root.dir = 3;
}
}
Instance of Symbol 271 MovieClip "ban4" in Frame 17
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 271 MovieClip "ban9" in Frame 17
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 290 MovieClip "accept" in Frame 17
/* no clip actions */
Instance of Symbol 271 MovieClip "ban10" in Frame 17
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 271 MovieClip "ban11" in Frame 17
onClipEvent (load) {
this.gotoAndPlay(2);
}
Instance of Symbol 271 MovieClip "ban14" in Frame 17
onClipEvent (load) {
this.gotoAndPlay(4);
}
Instance of Symbol 271 MovieClip "ban15" in Frame 17
onClipEvent (load) {
this.gotoAndPlay(4);
}
Instance of Symbol 271 MovieClip "ban16" in Frame 17
onClipEvent (load) {
this.gotoAndPlay(4);
}
Instance of Symbol 271 MovieClip "ban17" in Frame 17
onClipEvent (load) {
this.gotoAndPlay(4);
}
Instance of Symbol 271 MovieClip "ban18" in Frame 17
onClipEvent (load) {
this.gotoAndPlay(4);
}
Instance of Symbol 302 MovieClip "ball" in Frame 17
onClipEvent (load) {
this._visible = false;
sss = this._height / 2;
}
onClipEvent (enterFrame) {
if (_root.dir == 1) {
pxx = this._x;
pyy = this._y - sss;
} else if (_root.dir == 2) {
pxx = this._x - sss;
pyy = this._y;
} else if (_root.dir == 3) {
pxx = this._x;
pyy = this._y + sss;
} else if (_root.dir == 4) {
pxx = this._x + sss;
pyy = this._y;
}
if (_root.wall.hitTest(pxx, pyy, true)) {
_root.wallsoundbar();
_root.reboundcounts = _root.reboundcounts + 1;
_root.dir = _root.dir + 2;
if (_root.dir >= 5) {
_root.dir = _root.dir - 4;
}
}
}
onClipEvent (enterFrame) {
if (_root.dir == 1) {
this._y = this._y - _root.speed;
} else if (_root.dir == 2) {
this._x = this._x - _root.speed;
} else if (_root.dir == 3) {
this._y = this._y + _root.speed;
} else if (_root.dir == 4) {
this._x = this._x + _root.speed;
}
}
Frame 22
stopAllSounds();
_root.gotoAndStop(_root.tmpframe);
Symbol 15 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 18 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 21 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 23 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 26 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "foregroundDisabled");
Symbol 29 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "check");
Symbol 30 MovieClip [fcb_states] Frame 1
stop();
Symbol 30 MovieClip [fcb_states] Frame 2
stop();
Symbol 30 MovieClip [fcb_states] Frame 3
stop();
Symbol 30 MovieClip [fcb_states] Frame 4
stop();
Symbol 30 MovieClip [fcb_states] Frame 5
stop();
Symbol 30 MovieClip [fcb_states] Frame 6
stop();
Symbol 33 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 33 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 36 MovieClip [FCheckBoxSymbol] Frame 1
#initclip 5
function FCheckBoxClass() {
this.init();
}
FCheckBoxClass.prototype = new FUIComponentClass();
Object.registerClass("FCheckBoxSymbol", FCheckBoxClass);
FCheckBoxClass.prototype.init = function () {
var _local1 = this;
super.setSize(_local1._width, _local1._height);
_local1.boundingBox_mc.unloadMovie();
_local1.attachMovie("fcb_hitArea", "fcb_hitArea_mc", 1);
_local1.attachMovie("fcb_states", "fcb_states_mc", 2);
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
_local1.setChangeHandler(_local1.changeHandler);
_local1._xscale = 100;
_local1._yscale = 100;
_local1.setSize(_local1.width, _local1.height);
if (_local1.initialValue == undefined) {
_local1.setCheckState(false);
} else {
_local1.setCheckState(_local1.initialValue);
}
if (_local1.label != undefined) {
_local1.setLabel(_local1.label);
}
_local1.ROLE_SYSTEM_CHECKBUTTON = 44;
_local1.STATE_SYSTEM_CHECKED = 16;
_local1.EVENT_OBJECT_STATECHANGE = 32778;
_local1.EVENT_OBJECT_NAMECHANGE = 32780;
_local1._accImpl.master = _local1;
_local1._accImpl.stub = false;
_local1._accImpl.get_accRole = _local1.get_accRole;
_local1._accImpl.get_accName = _local1.get_accName;
_local1._accImpl.get_accState = _local1.get_accState;
_local1._accImpl.get_accDefaultAction = _local1.get_accDefaultAction;
_local1._accImpl.accDoDefaultAction = _local1.accDoDefaultAction;
};
FCheckBoxClass.prototype.setLabelPlacement = function (pos) {
var _local1 = this;
var _local3 = pos;
_local1.setLabel(_local1.getLabel());
_local1.txtFormat(_local3);
var halfLabelH = (_local1.fLabel_mc._height / 2);
var halfFrameH = (_local1.fcb_states_mc._height / 2);
var vertCenter = (halfFrameH - halfLabelH);
var checkWidth = _local1.fcb_states_mc._width;
var frame = _local1.fcb_states_mc;
var label = _local1.fLabel_mc;
var _local2 = 0;
if (frame._width > _local1.width) {
_local2 = 0;
} else {
_local2 = _local1.width - frame._width;
}
_local1.fLabel_mc.setSize(_local2);
if ((_local3 == "right") || (_local3 == undefined)) {
_local1.labelPlacement = "right";
_local1.fcb_states_mc._x = 0;
_local1.fLabel_mc._x = checkWidth;
_local1.txtFormat("left");
} else if (_local3 == "left") {
_local1.labelPlacement = "left";
_local1.fLabel_mc._x = 0;
_local1.fcb_states_mc._x = _local1.width - checkWidth;
_local1.txtFormat("right");
}
_local1.fLabel_mc._y = vertCenter;
_local1.fcb_hitArea_mc._y = vertCenter;
};
FCheckBoxClass.prototype.txtFormat = function (pos) {
var _local1 = this;
var _local2 = _local1.textStyle;
var _local3 = _local1.styleTable;
_local2.align = ((_local3.textAlign.value == undefined) ? ((_local2.align = pos)) : undefined);
_local2.leftMargin = ((_local3.textLeftMargin.value == undefined) ? ((_local2.leftMargin = 0)) : undefined);
_local2.rightMargin = ((_local3.textRightMargin.value == undefined) ? ((_local2.rightMargin = 0)) : undefined);
if (_local1.flabel_mc._height > _local1.height) {
super.setSize(_local1.width, _local1.flabel_mc._height);
} else {
super.setSize(_local1.width, _local1.height);
}
_local1.fLabel_mc.labelField.setTextFormat(_local1.textStyle);
_local1.setEnabled(_local1.enable);
};
FCheckBoxClass.prototype.setHitArea = function (w, h) {
var _local2 = this;
var _local1 = _local2.fcb_hitArea_mc;
_local2.hitArea = _local1;
if (_local2.fcb_states_mc._width > w) {
_local1._width = _local2.fcb_states_mc._width;
} else {
_local1._width = w;
}
_local1._visible = false;
if (arguments.length > 1) {
_local1._height = h;
}
};
FCheckBoxClass.prototype.setSize = function (w) {
var _local1 = this;
_local1.setLabel(_local1.getLabel());
_local1.setLabelPlacement(_local1.labelPlacement);
if (_local1.fcb_states_mc._height < _local1.flabel_mc.labelField._height) {
super.setSize(w, _local1.flabel_mc.labelField._height);
}
_local1.setHitArea(_local1.width, _local1.height);
_local1.setLabelPlacement(_local1.labelPlacement);
};
FCheckBoxClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1._width + 6, _local1._height - 1);
};
FCheckBoxClass.prototype.onPress = function () {
var _local2 = this;
_local2.pressFocus();
_root.focusRect.removeMovieClip();
var _local1 = _local2.fcb_states_mc;
if (_local2.getValue()) {
_local1.gotoAndStop("checkedPress");
} else {
_local1.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.onRelease = function () {
var _local1 = this;
_local1.fcb_states_mc.gotoAndStop("up");
_local1.setValue(!_local1.checked);
};
FCheckBoxClass.prototype.onReleaseOutside = function () {
var _local1 = this.fcb_states_mc;
if (this.getValue()) {
_local1.gotoAndStop("checkedEnabled");
} else {
_local1.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOut = function () {
var _local1 = this.fcb_states_mc;
if (this.getValue()) {
_local1.gotoAndStop("checkedEnabled");
} else {
_local1.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOver = function () {
var _local1 = this.fcb_states_mc;
if (this.getValue()) {
_local1.gotoAndStop("checkedPress");
} else {
_local1.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.setValue = function (checkedValue) {
var _local1 = this;
var _local2 = checkedValue;
if (_local2 || (_local2 == undefined)) {
_local1.setCheckState(_local2);
} else if (_local2 == false) {
_local1.setCheckState(_local2);
}
_local1.executeCallBack();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_STATECHANGE, true);
}
};
FCheckBoxClass.prototype.setCheckState = function (checkedValue) {
var _local1 = this;
var _local3 = checkedValue;
var _local2 = _local1.fcb_states_mc;
if (_local1.enable) {
_local1.flabel_mc.setEnabled(true);
if (_local3 || (_local3 == undefined)) {
_local2.gotoAndStop("checkedEnabled");
_local1.enabled = true;
_local1.checked = true;
} else {
_local2.gotoAndStop("up");
_local1.enabled = true;
_local1.checked = false;
}
} else {
_local1.flabel_mc.setEnabled(false);
if (_local3 || (_local3 == undefined)) {
_local2.gotoAndStop("checkedDisabled");
_local1.enabled = false;
_local1.checked = true;
} else {
_local2.gotoAndStop("uncheckedDisabled");
_local1.enabled = false;
_local1.checked = false;
_local1.focusRect.removeMovieClip();
}
}
};
FCheckBoxClass.prototype.getValue = function () {
return(this.checked);
};
FCheckBoxClass.prototype.setEnabled = function (enable) {
var _local1 = this;
if ((enable == true) || (enable == undefined)) {
_local1.enable = true;
Super.setEnabled(true);
} else {
_local1.enable = false;
Super.setEnabled(false);
}
_local1.setCheckState(_local1.checked);
};
FCheckBoxClass.prototype.getEnabled = function () {
return(this.enable);
};
FCheckBoxClass.prototype.setLabel = function (label) {
var _local1 = this;
_local1.fLabel_mc.setLabel(label);
_local1.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_NAMECHANGE);
}
};
FCheckBoxClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FCheckBoxClass.prototype.setTextColor = function (color) {
this.fLabel_mc.labelField.textColor = color;
};
FCheckBoxClass.prototype.myOnKeyDown = function () {
var _local1 = this;
if (((Key.getCode() == 32) && (_local1.pressOnce == undefined)) && (_local1.enabled == true)) {
_local1.setValue(!_local1.getValue());
_local1.pressOnce = true;
}
};
FCheckBoxClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.pressOnce = undefined;
}
};
FCheckBoxClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_CHECKBUTTON);
};
FCheckBoxClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FCheckBoxClass.prototype.get_accState = function (childId) {
if (this.master.getValue()) {
return(this.master.STATE_SYSTEM_CHECKED);
}
return(0);
};
FCheckBoxClass.prototype.get_accDefaultAction = function (childId) {
if (this.master.getValue()) {
return("UnCheck");
}
return("Check");
};
FCheckBoxClass.prototype.accDoDefaultAction = function (childId) {
this.master.setValue(!this.master.getValue());
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 46 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 49 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 52 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 54 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 57 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(disabled_mc, "foregroundDisabled");
Symbol 60 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(dot_mc, "radioDot");
Symbol 61 MovieClip [frb_states] Frame 1
stop();
Symbol 61 MovieClip [frb_states] Frame 2
stop();
Symbol 61 MovieClip [frb_states] Frame 3
stop();
Symbol 61 MovieClip [frb_states] Frame 4
stop();
Symbol 61 MovieClip [frb_states] Frame 5
stop();
Symbol 64 MovieClip [FRadioButtonSymbol] Frame 1
#initclip 3
function FRadioButtonClass() {
this.init();
}
function FRadioButtonGroupClass() {
this.radioInstances = new Array();
}
FRadioButtonClass.prototype = new FUIComponentClass();
FRadioButtonGroupClass.prototype = new FUIComponentClass();
Object.registerClass("FRadioButtonSymbol", FRadioButtonClass);
FRadioButtonClass.prototype.init = function () {
var _local1 = this;
if (_local1.initialState == undefined) {
_local1.selected = false;
} else {
_local1.selected = _local1.initialState;
}
super.setSize(_local1._width, _local1._height);
_local1.boundingBox_mc.unloadMovie();
_local1.boundingBox_mc._width = 0;
_local1.boundingBox_mc._height = 0;
_local1.attachMovie("frb_hitArea", "frb_hitArea_mc", 1);
_local1.attachMovie("frb_states", "frb_states_mc", 2);
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
_local1._xscale = 100;
_local1._yscale = 100;
_local1.setSize(_local1.width, _local1.height);
_local1.setChangeHandler(_local1.changeHandler);
if (_local1.label != undefined) {
_local1.setLabel(_local1.label);
}
if (_local1.initialState == undefined) {
_local1.setValue(false);
} else {
_local1.setValue(_local1.initialState);
}
if (_local1.data == "") {
_local1.data = undefined;
} else {
_local1.setData(_local1.data);
}
_local1.addToRadioGroup();
_local1.ROLE_SYSTEM_RADIOBUTTON = 45;
_local1.STATE_SYSTEM_SELECTED = 16;
_local1.EVENT_OBJECT_STATECHANGE = 32778;
_local1.EVENT_OBJECT_NAMECHANGE = 32780;
_local1._accImpl.master = _local1;
_local1._accImpl.stub = false;
_local1._accImpl.get_accRole = _local1.get_accRole;
_local1._accImpl.get_accName = _local1.get_accName;
_local1._accImpl.get_accState = _local1.get_accState;
_local1._accImpl.get_accDefaultAction = _local1.get_accDefaultAction;
_local1._accImpl.accDoDefaultAction = _local1.accDoDefaultAction;
};
FRadioButtonClass.prototype.setHitArea = function (w, h) {
var _local2 = this;
var _local1 = _local2.frb_hitArea_mc;
_local2.hitArea = _local1;
if (_local2.frb_states_mc._width > w) {
_local1._width = _local2.frb_states_mc._width;
} else {
_local1._width = w;
}
_local1._visible = false;
if (arguments.length > 1) {
_local1._height = h;
}
};
FRadioButtonClass.prototype.txtFormat = function (pos) {
var _local1 = this;
var _local2 = _local1.textStyle;
var _local3 = _local1.styleTable;
_local2.align = ((_local3.textAlign.value == undefined) ? ((_local2.align = pos)) : undefined);
_local2.leftMargin = ((_local3.textLeftMargin.value == undefined) ? ((_local2.leftMargin = 0)) : undefined);
_local2.rightMargin = ((_local3.textRightMargin.value == undefined) ? ((_local2.rightMargin = 0)) : undefined);
if (_local1.flabel_mc._height > _local1.height) {
super.setSize(_local1.width, _local1.flabel_mc._height);
} else {
super.setSize(_local1.width, _local1.height);
}
_local1.setEnabled(_local1.enable);
};
FRadioButtonClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.setLabel(_local1.getLabel());
_local1.setLabelPlacement(_local1.labelPlacement);
if (_local1.frb_states_mc._height < _local1.flabel_mc.labelField._height) {
super.setSize(w, _local1.flabel_mc.labelField._height);
}
_local1.setHitArea(_local1.width, _local1.height);
_local1.setLabelPlacement(_local1.labelPlacement);
};
FRadioButtonClass.prototype.setLabelPlacement = function (pos) {
var _local1 = this;
_local1.setLabel(_local1.getLabel());
_local1.txtFormat(pos);
var halfLabelH = (_local1.fLabel_mc._height / 2);
var halfFrameH = (_local1.frb_states_mc._height / 2);
var vertCenter = (halfFrameH - halfLabelH);
var radioWidth = _local1.frb_states_mc._width;
var _local2 = _local1.frb_states_mc;
var label = _local1.fLabel_mc;
var _local3 = _local1.width - _local2._width;
if (_local2._width > _local1.width) {
_local3 = 0;
} else {
_local3 = _local1.width - _local2._width;
}
_local1.fLabel_mc.setSize(_local3);
if ((pos == "right") || (pos == undefined)) {
_local1.labelPlacement = "right";
_local1.frb_states_mc._x = 0;
_local1.fLabel_mc._x = radioWidth;
_local1.txtFormat("left");
} else if (pos == "left") {
_local1.labelPlacement = "left";
_local1.fLabel_mc._x = 0;
_local1.frb_states_mc._x = _local1.width - radioWidth;
_local1.txtFormat("right");
}
_local1.fLabel_mc._y = vertCenter;
_local1.frb_hitArea_mc._y = vertCenter;
_local1.setLabel(_local1.getLabel());
};
FRadioButtonClass.prototype.setData = function (dataValue) {
this.data = dataValue;
};
FRadioButtonClass.prototype.getData = function () {
return(this.data);
};
FRadioButtonClass.prototype.getState = function () {
return(this.selected);
};
FRadioButtonClass.prototype.getSize = function () {
return(this.width);
};
FRadioButtonClass.prototype.getGroupName = function () {
return(this.groupName);
};
FRadioButtonClass.prototype.setGroupName = function (groupName) {
var _local1 = this;
var _local2 = 0;
while (_local2 < _local1._parent[_local1.groupName].radioInstances.length) {
if (_local1._parent[_local1.groupName].radioInstances[_local2] == _local1) {
delete _local1._parent[_local1.groupName].radioInstances[_local2];
}
_local2++;
}
_local1.groupName = groupName;
_local1.addToRadioGroup();
};
FRadioButtonClass.prototype.addToRadioGroup = function () {
var _local1 = this;
if (_local1._parent[_local1.groupName] == undefined) {
_local1._parent[_local1.groupName] = new FRadioButtonGroupClass();
}
_local1._parent[_local1.groupName].addRadioInstance(_local1);
};
FRadioButtonClass.prototype.setValue = function (selected) {
var _local1 = this;
var _local2 = selected;
if (_local2 || (_local2 == undefined)) {
_local1.setState(true);
_local1.focusRect.removeMovieClip();
_local1.executeCallBack();
} else if (_local2 == false) {
_local1.setState(false);
}
};
FRadioButtonClass.prototype.setTabState = function (selected) {
var _local1 = this;
Selection.setFocus(_local1);
_local1.setState(selected);
_local1.drawFocusRect();
_local1.executeCallBack();
};
FRadioButtonClass.prototype.setState = function (selected) {
var _local1 = this;
var _local2 = selected;
if (_local2 || (_local2 == undefined)) {
_local1.tabEnabled = true;
for (var _local3 in _local1._parent) {
if ((_local1 != _local1._parent[_local3]) && (_local1._parent[_local3].groupName == _local1.groupName)) {
_local1._parent[_local3].setState(false);
_local1._parent[_local3].tabEnabled = false;
}
}
}
if (_local1.enable) {
_local1.flabel_mc.setEnabled(true);
if (_local2 || (_local2 == undefined)) {
_local1.frb_states_mc.gotoAndStop("selectedEnabled");
_local1.enabled = false;
_local1.selected = true;
_local1.tabEnabled = true;
_local1.tabFocused = true;
} else {
_local1.frb_states_mc.gotoAndStop("unselectedEnabled");
_local1.enabled = true;
_local1.selected = false;
_local1.tabEnabled = false;
var enabTrue = _local1._parent[_local1.groupName].getEnabled();
var noneSelect = (_local1._parent[_local1.groupName].getValue() == undefined);
if (enabTrue && (noneSelect)) {
_local1._parent[_local1.groupName].radioInstances[0].tabEnabled = true;
}
}
} else {
_local1.flabel_mc.setEnabled(false);
if (_local2 || (_local2 == undefined)) {
_local1.frb_states_mc.gotoAndStop("selectedDisabled");
_local1.enabled = false;
_local1.selected = true;
_local1.tabEnabled = false;
} else {
_local1.frb_states_mc.gotoAndStop("unselectedDisabled");
_local1.enabled = false;
_local1.selected = false;
_local1.tabEnabled = false;
}
}
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_STATECHANGE, true);
}
};
FRadioButtonClass.prototype.getValue = function () {
var _local1 = this;
if (_local1.selected) {
if ((_local1.data == "") || (_local1.data == undefined)) {
return(_local1.getLabel());
}
return(_local1.data);
}
return(undefined);
};
FRadioButtonClass.prototype.setEnabled = function (enable) {
var _local1 = this;
if ((enable == true) || (enable == undefined)) {
_local1.enable = true;
super.setEnabled(true);
} else {
_local1.enable = false;
super.setEnabled(false);
}
_local1.setState(_local1.selected);
var cgn = (_local1._parent[_local1.groupName].getEnabled() == undefined);
var _local3 = _local1._parent[_local1.groupName].radioInstances[0].getEnabled() == false;
if (cgn && (_local3)) {
var _local2 = 0;
while (_local2 < _local1._parent[_local1.groupName].radioInstances.length) {
if (_local1._parent[_local1.groupName].radioInstances[_local2].getEnabled() == true) {
_local1._parent[_local1.groupName].radioInstances[_local2].tabEnabled = true;
return;
}
_local2++;
}
}
};
FRadioButtonClass.prototype.getEnabled = function () {
return(this.enable);
};
FRadioButtonClass.prototype.setLabel = function (label) {
var _local1 = this;
_local1.fLabel_mc.setLabel(label);
_local1.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_NAMECHANGE);
}
};
FRadioButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.getLabel());
};
FRadioButtonClass.prototype.onPress = function () {
this.pressFocus();
this.frb_states_mc.gotoAndStop("press");
};
FRadioButtonClass.prototype.onRelease = function () {
var _local1 = this;
_local1.frb_states_mc.gotoAndStop("unselectedDisabled");
_local1.setValue(!_local1.selected);
};
FRadioButtonClass.prototype.onReleaseOutside = function () {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
};
FRadioButtonClass.prototype.onDragOut = function () {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
};
FRadioButtonClass.prototype.onDragOver = function () {
this.frb_states_mc.gotoAndStop("press");
};
FRadioButtonClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1._parent[_local1.groupName]);
};
FRadioButtonGroupClass.prototype.addRadioInstance = function (instance) {
this.radioInstances.push(instance);
this.radioInstances[0].tabEnabled = true;
};
FRadioButtonGroupClass.prototype.setEnabled = function (enableFlag) {
var _local2 = this;
var _local3 = enableFlag;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].setEnabled(_local3);
_local1++;
}
};
FRadioButtonGroupClass.prototype.getEnabled = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
if (_local2.radioInstances[_local1].getEnabled() != _local2.radioInstances[0].getEnabled()) {
return(undefined);
}
_local1++;
}
return(_local2.radioInstances[0].getEnabled());
return(undefined);
};
FRadioButtonGroupClass.prototype.setChangeHandler = function (changeHandler, obj) {
var _local2 = this;
var _local3 = changeHandler;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].setChangeHandler(_local3, obj);
_local1++;
}
};
FRadioButtonGroupClass.prototype.getValue = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
if (_local2.radioInstances[_local1].selected == true) {
if ((_local2.radioInstances[_local1].data == "") || (_local2.radioInstances[_local1].data == undefined)) {
return(_local2.radioInstances[_local1].getLabel());
}
return(_local2.radioInstances[_local1].data);
}
_local1++;
}
return(undefined);
};
FRadioButtonGroupClass.prototype.getData = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
if (_local2.radioInstances[_local1].selected) {
return(_local2.radioInstances[_local1].getData());
}
_local1++;
}
return(undefined);
};
FRadioButtonGroupClass.prototype.getInstance = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
if (_local2.radioInstances[_local1].selected == true) {
return(_local1);
}
_local1++;
}
return(undefined);
};
FRadioButtonGroupClass.prototype.setValue = function (dataValue) {
var _local1 = this;
var _local3 = dataValue;
var _local2 = 0;
while (_local2 < _local1.radioInstances.length) {
if (_local1.radioInstances[_local2].data == _local3) {
_local1.radioInstances[_local2].setValue(true);
return;
}
_local2++;
}
_local2 = 0;
while (_local2 < _local1.radioInstances.length) {
if (_local1.radioInstances[_local2].getLabel() == _local3) {
_local1.radioInstances[_local2].setValue(true);
}
_local2++;
}
};
FRadioButtonGroupClass.prototype.setSize = function (w) {
var _local2 = this;
var _local3 = w;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].setSize(_local3);
_local1++;
}
};
FRadioButtonGroupClass.prototype.getSize = function () {
var _local2 = this;
var _local3 = 0;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
if (_local2.radioInstances[_local1].width >= _local3) {
_local3 = _local2.radioInstances[_local1].width;
}
_local1++;
}
return(_local3);
};
FRadioButtonGroupClass.prototype.setGroupName = function (groupName) {
var _local2 = this;
var _local3 = groupName;
_local2.oldGroupName = _local2.radioInstances[0].groupName;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].groupName = _local3;
_local2.radioInstances[_local1].addToRadioGroup();
_local1++;
}
delete _local2._parent[_local2.oldGroupName];
};
FRadioButtonGroupClass.prototype.getGroupName = function () {
return(this.radioInstances[0].groupName);
};
FRadioButtonGroupClass.prototype.setLabelPlacement = function (pos) {
var _local2 = this;
var _local3 = pos;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].setLabelPlacement(_local3);
_local1++;
}
};
FRadioButtonGroupClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local2 = this;
var _local3 = value;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].setStyleProperty(propName, _local3, isGlobal);
_local1++;
}
};
FRadioButtonGroupClass.prototype.addListener = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].addListener();
_local1++;
}
};
FRadioButtonGroupClass.prototype.applyChanges = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].applyChanges();
_local1++;
}
};
FRadioButtonGroupClass.prototype.removeListener = function (component) {
var _local2 = this;
var _local3 = component;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].removeListener(_local3);
_local1++;
}
};
FRadioButtonClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1._width + 6, _local1._height - 3);
};
FRadioButtonClass.prototype.myOnKillFocus = function () {
var _local1 = this;
Key.removeListener(_local1.keyListener);
_local1.focused = false;
_local1.focusRect.removeMovieClip();
_local1._parent[_local1.groupName].foobar = 0;
};
FRadioButtonClass.prototype.myOnKeyDown = function () {
var _local1 = this;
if ((Key.getCode() == 32) && (_local1._parent[_local1.groupName].getValue() == undefined)) {
if (_local1._parent[_local1.groupName].radioInstances[0] == _local1) {
_local1.setTabState(true);
}
}
if ((Key.getCode() == 40) && (_local1.pressOnce == undefined)) {
_local1.foobar = _local1._parent[_local1.groupName].getInstance();
var _local2 = _local1.foobar;
while (_local2 < _local1._parent[_local1.groupName].radioInstances.length) {
var _local3 = _local2 + 1;
if (_local1._parent[_local1.groupName].radioInstances[_local3].getEnabled()) {
_local1._parent[_local1.groupName].radioInstances[_local3].setTabState(true);
return;
}
_local2++;
}
}
if ((Key.getCode() == 38) && (_local1.pressOnce == undefined)) {
_local1.foobar = _local1._parent[_local1.groupName].getInstance();
var _local2 = _local1.foobar;
while (_local2 >= 0) {
var _local3 = _local2 - 1;
if (_local1._parent[_local1.groupName].radioInstances[_local3].getEnabled()) {
_local1._parent[_local1.groupName].radioInstances[_local3].setTabState(true);
return;
}
_local2--;
}
}
};
FRadioButtonClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_RADIOBUTTON);
};
FRadioButtonClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FRadioButtonClass.prototype.get_accState = function (childId) {
if (this.master.getState()) {
return(this.master.STATE_SYSTEM_SELECTED);
}
return(0);
};
FRadioButtonClass.prototype.get_accDefaultAction = function (childId) {
if (this.master.getState()) {
return("UnCheck");
}
return("Check");
};
FRadioButtonClass.prototype.accDoDefaultAction = function (childId) {
this.master.setValue(!this.master.getValue());
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 68 MovieClip [FLabelSymbol] Frame 1
#initclip 1
_global.FLabelClass = function () {
var _local1 = this;
if (_local1.hostComponent == undefined) {
_local1.hostComponent = ((_local1._parent.controller == undefined) ? (_local1._parent) : (_local1._parent.controller));
}
if (_local1.customTextStyle == undefined) {
if (_local1.hostComponent.textStyle == undefined) {
_local1.hostComponent.textStyle = new TextFormat();
}
_local1.textStyle = _local1.hostComponent.textStyle;
_local1.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var _local1 = this;
var _local2 = _local1.hostComponent.styleTable.embedFonts.value;
if (_local2 != undefined) {
_local1.labelField.embedFonts = _local2;
}
_local1.labelField.setNewTextFormat(_local1.textStyle);
_local1.labelField.text = label;
_local1.labelField._height = _local1.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
var _local2 = this;
var _local3 = enable;
_local2.enable = _local3;
var _local1 = _local2.hostComponent.styleTable[(_local3 ? "textColor" : "textDisabled")].value;
if (_local1 == undefined) {
_local1 = (_local3 ? 0 : 8947848);
}
_local2.setColor(_local1);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 76 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 82 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 88 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame4, "shadow");
component.registerSkinElement(frame2, "darkshadow");
component.registerSkinElement(frame3, "highlight");
component.registerSkinElement(frame1, "highlight3D");
Symbol 94 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 95 MovieClip [fpb_states] Frame 1
stop();
Symbol 95 MovieClip [fpb_states] Frame 2
stop();
Symbol 95 MovieClip [fpb_states] Frame 3
stop();
Symbol 95 MovieClip [fpb_states] Frame 4
stop();
Symbol 96 MovieClip [FUIComponentSymbol] Frame 1
#initclip 2
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 99 MovieClip [FPushButtonSymbol] Frame 1
#initclip 4
function FPushButtonClass() {
this.init();
}
FPushButtonClass.prototype = new FUIComponentClass();
Object.registerClass("FPushButtonSymbol", FPushButtonClass);
FPushButtonClass.prototype.init = function () {
var _local1 = this;
super.setSize(_local1._width, _local1._height);
_local1.boundingBox_mc.unloadMovie();
_local1.attachMovie("fpb_states", "fpbState_mc", 1);
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 2);
_local1.attachMovie("fpb_hitArea", "fpb_hitArea_mc", 3);
super.init();
_local1.btnState = false;
_local1.setClickHandler(_local1.clickHandler);
_local1._xscale = 100;
_local1._yscale = 100;
_local1.setSize(_local1.width, _local1.height);
if (_local1.label != undefined) {
_local1.setLabel(_local1.label);
}
_local1.ROLE_SYSTEM_PUSHBUTTON = 43;
_local1.STATE_SYSTEM_PRESSED = 8;
_local1.EVENT_OBJECT_STATECHANGE = 32778;
_local1.EVENT_OBJECT_NAMECHANGE = 32780;
_local1._accImpl.master = _local1;
_local1._accImpl.stub = false;
_local1._accImpl.get_accRole = _local1.get_accRole;
_local1._accImpl.get_accName = _local1.get_accName;
_local1._accImpl.get_accState = _local1.get_accState;
_local1._accImpl.get_accDefaultAction = _local1.get_accDefaultAction;
_local1._accImpl.accDoDefaultAction = _local1.accDoDefaultAction;
};
FPushButtonClass.prototype.setHitArea = function (w, h) {
var _local1 = this.fpb_hitArea_mc;
this.hitArea = _local1;
_local1._visible = false;
_local1._width = w;
_local1._height = ((arguments.length > 1) ? (h) : (_local1._height));
};
FPushButtonClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = w;
var _local3 = h;
_local2 = ((_local2 < 6) ? 6 : (_local2));
if (arguments.length > 1) {
if (_local3 < 6) {
_local3 = 6;
}
}
super.setSize(_local2, _local3);
_local1.setLabel(_local1.getLabel());
_local1.arrangeLabel();
_local1.setHitArea(_local2, _local3);
_local1.boundingBox_mc._width = _local2;
_local1.boundingBox_mc._height = _local3;
_local1.drawFrame();
if (_local1.focused) {
super.myOnSetFocus();
}
_local1.initContentPos("fLabel_mc");
};
FPushButtonClass.prototype.arrangeLabel = function () {
var _local3 = this;
var _local1 = _local3.fLabel_mc;
var h = _local3.height;
var w = (_local3.width - 2);
var _local2 = 1;
_local3.fLabel_mc.setSize(w - (_local2 * 4));
_local1._x = _local2 * 3;
_local1._y = (h / 2) - (_local1._height / 2);
};
FPushButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FPushButtonClass.prototype.setLabel = function (label) {
var _local1 = this;
_local1.fLabel_mc.setLabel(label);
_local1.txtFormat();
_local1.arrangeLabel();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_NAMECHANGE);
}
};
FPushButtonClass.prototype.getEnabled = function () {
return(this.enabled);
};
FPushButtonClass.prototype.setEnabled = function (enable) {
var _local1 = this;
if (enable || (enable == undefined)) {
_local1.gotoFrame(1);
_local1.drawFrame();
_local1.flabel_mc.setEnabled(true);
_local1.enabled = true;
super.setEnabled(true);
} else {
_local1.gotoFrame(4);
_local1.drawFrame();
_local1.flabel_mc.setEnabled(false);
_local1.enabled = false;
super.setEnabled(false);
}
};
FPushButtonClass.prototype.txtFormat = function () {
var _local1 = this;
var _local2 = _local1.textStyle;
var _local3 = _local1.styleTable;
_local2.align = ((_local3.textAlign.value == undefined) ? ((_local2.align = "center")) : undefined);
_local2.leftMargin = ((_local3.textLeftMargin.value == undefined) ? ((_local2.leftMargin = 1)) : undefined);
_local2.rightMargin = ((_local3.textRightMargin.value == undefined) ? ((_local2.rightMargin = 1)) : undefined);
if (_local1.fLabel_mc._height > _local1.height) {
super.setSize(_local1.width, _local1.fLabel_mc._height);
} else {
super.setSize(_local1.width, _local1.height);
}
_local1.fLabel_mc.labelField.setTextFormat(_local1.textStyle);
_local1.setEnabled(_local1.enable);
};
FPushButtonClass.prototype.drawFrame = function () {
var _local3 = this;
var _local2 = 1;
var x1 = 0;
var y1 = 0;
var x2 = _local3.width;
var y2 = _local3.height;
var mc_array = ["up_mc", "over_mc", "down_mc", "disabled_mc"];
var frame = mc_array[_local3.fpbState_mc._currentframe - 1];
var mc = "frame";
var _local1 = 0;
while (_local1 < 6) {
x1 = x1 + ((_local1 % 2) * _local2);
y1 = y1 + ((_local1 % 2) * _local2);
x2 = x2 - (((_local1 + 1) % 2) * _local2);
y2 = y2 - (((_local1 + 1) % 2) * _local2);
var w = (Math.abs(x1 - x2) + (2 * _local2));
var h = (Math.abs(y1 - y2) + (2 * _local2));
_local3.fpbState_mc[frame][mc + _local1]._width = w;
_local3.fpbState_mc[frame][mc + _local1]._height = h;
_local3.fpbState_mc[frame][mc + _local1]._x = x1 - _local2;
_local3.fpbState_mc[frame][mc + _local1]._y = y1 - _local2;
_local1++;
}
};
FPushButtonClass.prototype.setClickHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((arguments.length < 2) ? (_local1._parent) : (obj));
_local1.clickHandler = chng;
};
FPushButtonClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.clickHandler](_local1);
};
FPushButtonClass.prototype.initContentPos = function (mc) {
var _local1 = this;
_local1.incrVal = 1;
_local1.initx = _local1[mc]._x - (_local1.getBtnState() * _local1.incrVal);
_local1.inity = _local1[mc]._y - (_local1.getBtnState() * _local1.incrVal);
_local1.togx = _local1.initx + _local1.incrVal;
_local1.togy = _local1.inity + _local1.incrVal;
};
FPushButtonClass.prototype.setBtnState = function (state) {
var _local1 = this;
_local1.btnState = state;
if (state) {
_local1.fLabel_mc._x = _local1.togx;
_local1.fLabel_mc._y = _local1.togy;
} else {
_local1.fLabel_mc._x = _local1.initx;
_local1.fLabel_mc._y = _local1.inity;
}
};
FPushButtonClass.prototype.getBtnState = function () {
return(this.btnState);
};
FPushButtonClass.prototype.myOnSetFocus = function () {
this.focused = true;
super.myOnSetFocus();
};
FPushButtonClass.prototype.onPress = function () {
var _local1 = this;
_local1.pressFocus();
_local1.fpbState_mc.gotoAndStop(3);
_local1.drawFrame();
_local1.setBtnState(true);
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRelease = function () {
var _local1 = this;
_local1.fpbState_mc.gotoAndStop(2);
_local1.drawFrame();
_local1.executeCallBack();
_local1.setBtnState(false);
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRollOver = function () {
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
};
FPushButtonClass.prototype.onRollOut = function () {
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onReleaseOutside = function () {
var _local1 = this;
_local1.setBtnState(false);
_local1.fpbState_mc.gotoAndStop(1);
_local1.drawFrame();
};
FPushButtonClass.prototype.onDragOut = function () {
var _local1 = this;
_local1.setBtnState(false);
_local1.fpbState_mc.gotoAndStop(1);
_local1.drawFrame();
};
FPushButtonClass.prototype.onDragOver = function () {
var _local1 = this;
_local1.setBtnState(true);
_local1.fpbState_mc.gotoAndStop(3);
_local1.drawFrame();
};
FPushButtonClass.prototype.myOnKeyDown = function () {
var _local1 = this;
if ((Key.getCode() == 32) && (_local1.pressOnce == undefined)) {
_local1.onPress();
_local1.pressOnce = 1;
}
};
FPushButtonClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.onRelease();
this.pressOnce = undefined;
}
};
FPushButtonClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_PUSHBUTTON);
};
FPushButtonClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FPushButtonClass.prototype.get_accState = function (childId) {
var _local1 = this;
if (_local1.pressOnce) {
return(_local1.master.STATE_SYSTEM_PRESSED);
}
return(_local1.master.STATE_SYSTEM_DEFAULT);
};
FPushButtonClass.prototype.get_accDefaultAction = function (childId) {
return("Press");
};
FPushButtonClass.prototype.accDoDefaultAction = function (childId) {
this.master.onPress();
this.master.onRelease();
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 119 MovieClip Frame 1
Symbol 119 MovieClip Frame 81
Symbol 119 MovieClip Frame 202
_root.bb1.play();
_root.bb2.play();
Symbol 119 MovieClip Frame 215
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 144
_root.versionbar.play();
_root.renren.renren1.play();
stop();
Symbol 135 Button
on (release) {
_root.cande = 1;
stopAllSounds();
_root.play();
}
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 92
stop();
Symbol 142 Button
on (release) {
_root.cande = 0;
stopAllSounds();
_root.play();
}
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 147
stop();
_root.ft.play();
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 30
stop();
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 62
gotoAndPlay (3);
Symbol 166 MovieClip Frame 1
stop();
if (_root.cande == 1) {
gotoAndStop (2);
}
Symbol 168 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 10
stop();
Symbol 176 MovieClip Frame 1
stop();
if (_root.cande == 1) {
gotoAndStop (2);
}
Symbol 183 MovieClip Frame 1
stop();
if (_root.cande == 1) {
gotoAndStop (2);
}
Symbol 189 MovieClip Frame 1
stop();
if (_root.cande == 1) {
gotoAndStop (2);
}
Symbol 193 MovieClip Frame 1
stop();
if (_root.cande == 1) {
gotoAndStop (2);
}
Symbol 201 MovieClip Frame 1
stop();
if (_root.cande == 1) {
gotoAndStop (2);
}
Symbol 204 Button
on (keyPress "q") {
fscommand ("showmenu", "true");
if ((_root.hidebar1._visible == true) or (_root.hidebar2._visible == true)) {
_root.hidebar1._visible = false;
_root.hidebar2._visible = false;
} else if ((_root.hidebar1._visible == false) or (_root.hidebar2._visible == false)) {
_root.hidebar1._visible = true;
_root.hidebar2._visible = true;
}
}
on (release) {
gotoAndStop (4);
}
on (keyPress "p") {
stopAllSounds();
if (_root.barbar._currentframe == 1) {
if (_root.pausebar._visible == false) {
_root.tmpspeed = _root.speed;
_root.pausebar._visible = true;
_root.pauses = true;
} else {
_root.pausebar._visible = false;
_root.pauses = false;
_root.speed = _root.tmpspeed;
}
}
}
Symbol 211 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 2
stop();
Symbol 214 MovieClip Frame 1
stop();
if (_root.cande == 1) {
gotoAndStop (2);
}
Symbol 217 Button
on (release) {
stopAllSounds();
_root.helpandabout = 2;
_root.barbar.gotoAndPlay(2);
if (_root.tmpspeed == 0) {
_root.tmpspeed = _root.speed;
}
_root.pausebar._visible = true;
_root.pauses = true;
}
Symbol 220 MovieClip Frame 1
stop();
if (_root.cande == 1) {
gotoAndStop (2);
}
Symbol 223 Button
on (release) {
stopAllSounds();
_root.helpandabout = 1;
_root.barbar.gotoAndPlay(2);
if (_root.tmpspeed == 0) {
_root.tmpspeed = _root.speed;
}
_root.pausebar._visible = true;
_root.pauses = true;
}
Symbol 226 MovieClip Frame 1
stop();
if (_root.cande == 1) {
gotoAndStop (2);
}
Symbol 230 Button
on (release) {
stopAllSounds();
gotoAndStop (4);
}
Symbol 236 Button
on (release) {
gotoAndStop (2);
_root.speed = _root.speed2;
_root.tmpspeed = _root.speed2;
}
Symbol 237 Button
on (release) {
gotoAndStop (1);
_root.speed = _root.speed1;
_root.tmpspeed = _root.speed1;
}
Symbol 238 Button
on (release) {
gotoAndStop (3);
_root.speed = _root.speed3;
_root.tmpspeed = _root.speed3;
}
Symbol 240 MovieClip Frame 1
stop();
Symbol 243 Button
on (press) {
startDrag (this, false, 120, this._y, 450, this._y);
}
on (release) {
stopDrag();
}
Symbol 246 MovieClip Frame 1
stop();
if (_root.cande == 1) {
gotoAndStop (2);
}
Symbol 250 Button
on (release) {
getURL ("http://www.hanfish.com", "_blank");
}
Symbol 254 Button
on (release) {
_root.nextFrame();
}
Instance of Symbol 260 MovieClip in Symbol 263 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 262 MovieClip in Symbol 263 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._parent._visible == true) {
if (this.hitTest(_root.ball)) {
this._parent._visible = false;
_root.eatsoundbar();
_root.eatcount = _root.eatcount + 1;
_root.score = _root.score + _root.onescore;
}
}
}
onClipEvent (load) {
this._visible = false;
}
Symbol 271 MovieClip Frame 1
stop();
Instance of Symbol 267 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (mouseDown) {
if (this._parent.hitTest(_root._xmouse, _root._ymouse) and (_root.pauses == false)) {
_root.clickbansoundbar();
this._parent.gotoAndStop(Math.abs(this._parent._currentFrame - 2) + 1);
}
}
Instance of Symbol 270 MovieClip "hot" in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.ball.hot) == true) && (bs == 0)) {
_root.reboundcounts = _root.reboundcounts + 1;
_root.ball._x = this._parent._x;
_root.ball._y = this._parent._y;
if ((this._parent._currentframe == 1) or (this._parent._currentframe == 3)) {
_root.dir = _root.dir + 1;
if (_root.dir == 5) {
_root.dir = 3;
} else if (_root.dir == 3) {
_root.dir = 1;
}
} else if ((this._parent._currentframe == 2) or (this._parent._currentframe == 4)) {
if (_root.dir == 3) {
_root.dir = 2;
} else if (_root.dir == 4) {
_root.dir = 1;
} else if (_root.dir == 2) {
_root.dir = 3;
} else if (_root.dir == 1) {
_root.dir = 4;
}
}
bs = 1;
if ((this._parent.dongdong == 999) and (this._parent._currentframe == 3)) {
_root.ban6.gotoAndStop(4);
_root.ban7.gotoAndStop(4);
_root.ban8.gotoAndStop(4);
} else if ((this._parent.dongdong == 999) and (this._parent._currentframe == 4)) {
_root.ban6.gotoAndStop(3);
_root.ban7.gotoAndStop(3);
_root.ban8.gotoAndStop(3);
}
_root.bansoundbar();
}
if ((this.hitTest(_root.ball.hot) == false) && (bs == 1)) {
bs = 0;
}
}
onClipEvent (load) {
this._visible = false;
bs = 0;
}
Symbol 271 MovieClip Frame 3
stop();
Symbol 285 MovieClip Frame 1
stop();
if (_root.cande == 1) {
gotoAndStop (2);
}
Symbol 290 MovieClip Frame 1
stop();
Instance of Symbol 281 MovieClip in Symbol 290 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((_root.eatcount == _root.alleat) and this.hitTest(_root.ball)) and (_root.win._visible == false)) {
this._parent.gotoAndStop(3);
_root.ball._visible = false;
_root.dir = 0;
_root.win.gotoAndPlay(2);
_root.win._visible = true;
}
}
onClipEvent (enterFrame) {
if ((_root.eatcount == _root.alleat) and (this._parent._currentframe == 1)) {
this._parent.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Symbol 290 MovieClip Frame 2
this.swapDepths(_root.sendbar);
stop();
Symbol 290 MovieClip Frame 3
stop();
_root.rehelp.gotoAndStop(1);
Symbol 295 MovieClip Frame 1
stop();
if (_root.cande == 1) {
gotoAndStop (2);
}
Symbol 298 MovieClip Frame 1
stop();
Symbol 298 MovieClip Frame 2
stop();
_root.rehelp.play();
Instance of Symbol 279 MovieClip in Symbol 298 MovieClip Frame 2
onClipEvent (mouseDown) {
if ((this.hitTest(_root._xmouse, _root._ymouse) and (_root.win._visible == false)) and (_root.pauses == false)) {
_root.score = _root.scoreend;
_root.tmpframe = _root._currentframe;
_root.rehelp.gotoAndStop(1);
_root.gotoAndStop("tmpframe");
}
}
Instance of Symbol 301 MovieClip "hot" in Symbol 302 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 307 MovieClip Frame 1
stop();
if (_root.cande == 1) {
gotoAndStop (2);
}
Symbol 309 Button
on (release) {
if (_root.pauses == false) {
_root.reboundcounts = 0;
this._parent._visible = false;
_root.nextFrame();
}
}
Symbol 312 MovieClip Frame 1
stop();
if (_root.cande == 1) {
gotoAndStop (2);
}
Symbol 315 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 2
play();
Symbol 315 MovieClip Frame 36
stop();
_root.scorebar.cirswitch = 1;
if ((_root.addcounts - _root.reboundcounts) > 0) {
_root.score = _root.score + (_root.addcounts - _root.reboundcounts);
}
Symbol 322 MovieClip Frame 15
stop();
Symbol 324 MovieClip Frame 15
stop();
Symbol 326 MovieClip Frame 15
stop();
Symbol 328 MovieClip Frame 15
stop();
Symbol 330 Button
on (release) {
_root.pausebar._visible = false;
_root.pauses = false;
_root.speed = _root.tmpspeed;
gotoAndStop (1);
}
Symbol 335 MovieClip Frame 106
stop();
Instance of Symbol 270 MovieClip "hot" in Symbol 340 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.ball) == true) && (bs == 0)) {
_root.reboundcounts = _root.reboundcounts + 1;
_root.ball._x = this._parent._x;
_root.ball._y = this._parent._y;
if ((this._parent._currentframe == 1) or (this._parent._currentframe == 3)) {
_root.dir = _root.dir + 1;
if (_root.dir == 5) {
_root.dir = 3;
} else if (_root.dir == 3) {
_root.dir = 1;
}
} else if ((this._parent._currentframe == 2) or (this._parent._currentframe == 4)) {
if (_root.dir == 3) {
_root.dir = 2;
} else if (_root.dir == 4) {
_root.dir = 1;
} else if (_root.dir == 2) {
_root.dir = 3;
} else if (_root.dir == 1) {
_root.dir = 4;
}
}
bs = 1;
if ((this._parent.dongdong == 999) and (this._parent._currentframe == 3)) {
_root.ban6.gotoAndStop(4);
_root.ban7.gotoAndStop(4);
_root.ban8.gotoAndStop(4);
} else if ((this._parent.dongdong == 999) and (this._parent._currentframe == 4)) {
_root.ban6.gotoAndStop(3);
_root.ban7.gotoAndStop(3);
_root.ban8.gotoAndStop(3);
}
_root.bansoundbar();
}
if ((this.hitTest(_root.ball) == false) && (bs == 1)) {
bs = 0;
}
}
onClipEvent (load) {
this._visible = false;
bs = 0;
}
Symbol 346 MovieClip Frame 1
stop();
if (_root.cande == 1) {
gotoAndStop (2);
}
Symbol 351 MovieClip Frame 1
stop();
if (_root.cande == 1) {
gotoAndStop (2);
}
Symbol 360 Button
on (release) {
getURL ("http://www.hanfish.com", "_blank");
}
Symbol 365 Button
on (release) {
getURL ("http://www.hanfish.com", "_blank");
}
Symbol 367 MovieClip Frame 1
stop();
Symbol 367 MovieClip Frame 2
gotoAndPlay (40);
Symbol 367 MovieClip Frame 59
if (_root.helpandabout == 1) {
gotoAndStop ("help");
} else if (_root.helpandabout == 2) {
gotoAndStop ("about");
}
Symbol 367 MovieClip Frame 60
Instance of Symbol 260 MovieClip in Symbol 367 MovieClip Frame 60
/* no clip actions */
Symbol 370 Button
on (release) {
_root.prevFrame();
}
Instance of Symbol 391 MovieClip "hot" in Symbol 392 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 391 MovieClip "hot" in Symbol 400 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 408 MovieClip Frame 1
stop();
Symbol 408 MovieClip Frame 5
stop();
Symbol 408 MovieClip Frame 10
stop();
gotoAndStop (1);
Instance of Symbol 408 MovieClip "door" in Symbol 411 MovieClip Frame 1
onClipEvent (enterFrame) {
jjj = 0;
i = 1;
while (i <= 4) {
if (_root["lamp" add i]._currentframe == 2) {
jjj = jjj + 1;
}
i++;
}
if ((jjj == 4) and (this._currentframe == 1)) {
this.play();
} else if ((jjj != 4) and (this._currentframe != 1)) {
this.play();
}
}
Symbol 414 MovieClip Frame 1
stop();
Symbol 414 MovieClip Frame 2
stop();
Symbol 429 MovieClip Frame 1
stop();
if (_root.cande == 1) {
gotoAndStop (2);
}
Symbol 432 MovieClip Frame 1
stop();
if (_root.cande == 1) {
gotoAndStop (2);
}
Symbol 440 MovieClip Frame 47
stop();
Symbol 456 MovieClip Frame 1
stop();
if (_root.cande == 1) {
gotoAndStop (2);
}
Symbol 457 Button
on (release) {
_root.gotoAndPlay("levelfrist");
}
Symbol 462 MovieClip Frame 1
stop();
if (_root.cande == 1) {
gotoAndStop (2);
}
Symbol 463 MovieClip Frame 60
stop();