[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 1 (13 B)
this.stop();
Instance of Symbol 43 MovieClip in Frame 1 (72 B)
//component parameters
onClipEvent (initialize) {
nextframe = "GAME";
}
Frame 2 (13 B)
this.stop();
Instance of Symbol 55 MovieClip "BACK" in Frame 2 (220 B)
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (keyDown) {
if (Key.isDown(16) && (Key.isDown(32))) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 62 MovieClip "BUGMASTER" in Frame 2 (90 B)
onClipEvent (enterFrame) {
this.getFrame();
}
onClipEvent (keyDown) {
this.checkKey();
}
Instance of Symbol 97 MovieClip in Frame 2 (278 B)
//component parameters
onClipEvent (initialize) {
centerX = 190;
centerY = 190;
radius = 180;
ballRadius = 30;
ballName = "ball";
centerName = "centerMC";
nextName = "nextMC";
boxName = "scorebox";
scoreName = "scoreMC";
gameoverName = "gameover";
gameVolume = 100;
}
Symbol 14 MovieClip [ball2] Frame 1 (13 B)
this.stop();
Symbol 30 MovieClip [ball] Frame 1 (13 B)
this.stop();
Symbol 32 MovieClip [scorebox] Frame 1 (250 B)
this.speed = 3;
this.onEnterFrame = function () {
var _local1 = this;
_local1._y = _local1._y - _local1.speed;
if (_local1.speed >= 1) {
_local1.speed = _local1.speed * 0.9;
} else {
_local1.removeMovieClip();
}
};
this.stop();
Symbol 34 MovieClip [gameover] Frame 15 (13 B)
this.stop();
Symbol 43 MovieClip Frame 1 (773 B)
function display_one(num) {
var _local3 = num;
var _local1 = this.attachMovie("loadingone", "one" + _local3, -_local3);
_local1._rotation = (15 * _local3) - 90;
var _local2 = (_local1._rotation * Math.PI) / 180;
_local1._x = 125 * Math.cos(_local2);
_local1._y = 125 * Math.sin(_local2);
}
this.per = 0;
this.num = 0;
this.f = 0;
this.onEnterFrame = function () {
var _local1 = this;
if (_local1.per >= 100) {
_local1.f++;
if (_local1.f == 10) {
_parent.gotoAndPlay(_local1.nextframe);
}
} else {
_local1.per = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
_local1.BAR._xscale = _local1.per;
_local1.TXT = _local1.per + "% Load";
}
_local1.B2._rotation = _local1.B2._rotation + 4;
};
this.stop();
Symbol 55 MovieClip Frame 1 (13 B)
this.stop();
Symbol 55 MovieClip Frame 2 (13 B)
this.stop();
Symbol 62 MovieClip Frame 1 (553 B)
this.stop();
function getFrame(MC) {
var _local1 = this;
f++;
te = getTimer();
t = te - ts;
if (t >= 1000) {
if (_local1._currentframe == 1) {
_local1.frametxt = "";
} else {
_local1.frametxt = f;
}
f = 0;
ts = te;
}
}
function checkKey() {
var _local2 = this;
var _local1 = Key.getAscii();
if (Key.isDown(16) && ((_local1 == 86) || (_local1 == 118))) {
if (_local2._currentframe == 1) {
_local2.gotoAndStop(2);
} else {
_local2.gotoAndStop(1);
}
}
}
f = 0;
ts = getTimer();
Symbol 66 Button (69 B)
on (release) {
getURL ("http://www.swfchan.com", "_blank", "GET");
}
Symbol 75 MovieClip Frame 1 (200 B)
this.f = 0;
this.rnd = random(80) + 20;
this.stop();
this.onEnterFrame = function () {
var _local1 = this;
_local1.f++;
if (_local1.f >= _local1.rnd) {
_local1.gotoAndPlay(2);
}
};
Symbol 75 MovieClip Frame 3 (21 B)
this.gotoAndStop(1);
Symbol 82 Button (42 B)
on (release) {
_parent.AS.soundOnOff();
}
Symbol 85 MovieClip Frame 1 (13 B)
this.stop();
Symbol 85 MovieClip Frame 6 (13 B)
this.stop();
Symbol 86 Button (42 B)
on (release) {
_parent.AS.pauseOnOff();
}
Symbol 89 MovieClip Frame 1 (13 B)
this.stop();
Symbol 89 MovieClip Frame 6 (13 B)
this.stop();
Symbol 90 Button (41 B)
on (release) {
_parent.AS.helpOnOff();
}
Symbol 93 MovieClip Frame 1 (13 B)
this.stop();
Symbol 93 MovieClip Frame 6 (13 B)
this.stop();
Symbol 97 MovieClip Frame 1 (19.3 KiB) ● ● ●
function BallXY(MC) {
var _local1 = MC;
var _local3 = this;
d = _local3.radius - ((_local1.r / 360) * 50);
var _local2 = (_local1.r * Math.PI) / 180;
_local1._x = (d * Math.cos(_local2)) + _local3.centerX;
_local1._y = (d * Math.sin(_local2)) + _local3.centerY;
if (_local1.r > _local3.maxRotation) {
_local1.removeMovieClip();
}
}
function distanceMC(MC1, MC2) {
var _local3 = MC2;
if ((MC1 != undefined) && (_local3 != undefined)) {
var _local2 = MC1._x - _local3._x;
var _local1 = MC1._y - _local3._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
}
return(1000);
}
function rotationMC(MC) {
var _local3 = MC._x - centerX;
var _local2 = MC._y - centerY;
var _local1 = (Math.atan2(_local2, _local3) * 180) / Math.PI;
if (_local1 < 0) {
return(360 + _local1);
}
return(_local1);
}
function rotationXY(x1, y1, x2, y2) {
var _local3 = x1 - x2;
var _local2 = y1 - y2;
var _local1 = (Math.atan2(_local2, _local3) * 180) / Math.PI;
if (_local1 < 0) {
return(360 + _local1);
}
return(_local1);
}
function MouseLine() {
var _local1 = this;
var _local2 = _local1.rotationXY(_parent._xmouse, _parent._ymouse, _local1.lineMC._x, _local1.lineMC._y);
_local1.lineMC._rotation = _local2;
if (_local2 < 0) {
_local2 = _local2 + 360;
}
_local1.lineMC.BOX._x = (_local1.radius - ((_local2 / 360) * 50)) + (_local1.ballRadius / 2);
}
function unSet() {
var _local2 = this;
_local2.gameplay = false;
if (_parent.GAMEOVER != undefined) {
_parent.GAMEOVER.removeMovieClip();
}
var _local1 = _local2.prevMC;
while (true) {
if (_local1.prevMC == undefined) {
_local1.removeMovieClip();
break;
}
_local1 = _local1.prevMC;
_local1.nextMC.removeMovieClip();
}
_local2.prevMC = undefined;
_local2.centerMC.removeMovieClip();
_local2.centerTmp.removeMovieClip();
_local2.screwTmp.removeMovieClip();
_local2.centerMC = undefined;
_local2.centerTmp = undefined;
_local2.screwTmp = undefined;
stopAllSounds();
}
function GameStart() {
this.Setup();
}
function Setup() {
var _local1 = this;
_local1.unSet();
var _local3 = 0;
var _local2 = 0;
while (_local2 < 20000) {
d = _local1.radius - ((_local3 / 360) * _local1.maxDistance);
_local3 = _local3 + ((Math.atan2(1, d) * 180) / Math.PI);
var t = ((_local3 * Math.PI) / 180);
var x = (Math.round(((d * Math.cos(t)) + _local1.centerX) * 10) / 10);
var y = (Math.round(((d * Math.sin(t)) + _local1.centerY) * 10) / 10);
_local1.circleXY[_local2] = [x, y];
if (_local3 > _local1.maxRotation) {
break;
}
_local2++;
}
_local1.centerTmp = _local1.gameMC.attachMovie(_local1.ballName, "centerTmp", _local1.Depths);
_local1.centerTmp._x = _local1.gameMC[_local1.centerName]._x;
_local1.centerTmp._y = _local1.gameMC[_local1.centerName]._y;
_local1.centerTmp.gotoAndStop(_local1.AddBallFrame());
_local1.screwTmp = _local1.gameMC.attachMovie(_local1.ballName, "screwTmp", _local1.Depths + 1);
_local1.screwTmp._x = _local1.gameMC[_local1.nextName]._x;
_local1.screwTmp._y = _local1.gameMC[_local1.nextName]._y;
_local1.screwTmp.gotoAndStop(_local1.AddBallFrame());
_local1.lineMC._x = _local1.centerX;
_local1.lineMC._y = _local1.centerY;
_local1.lineMC.swapDepths((_local1.Depths + _local1.Bmax) + 2);
_local1.slotMC.tx = _local1.slotMC._x;
_local1.slotMC.ty = _local1.slotMC._y;
_local1.slotMC.swapDepths((_local1.Depths + _local1.Bmax) + 3);
_local1.gameMC.HELP.swapDepths((_local1.Depths + _local1.Bmax) + 4);
_local1.gameMC.PAUSE.swapDepths((_local1.Depths + _local1.Bmax) + 5);
_local1.shoot = false;
_local1.shootMove = 0;
_local1.Bnum = 1;
_local1.comboNum = 0;
_local1.maxCombo = 0;
_local1.TotalScore = 0;
_local1.CountBall = 0;
_local1.displayScore();
_local1.gameplay = true;
_local1.soundPlay("title", 1);
_local1.startMC.gotoAndStop("OFF");
_local1.startTime = getTimer();
if (_local1._visible == true) {
_local1._visible = false;
}
}
function GameOver() {
var _local1 = this;
_local1.gameplay = false;
var _local2 = _parent.attachMovie(_local1.gameoverName, "GAMEOVER", _local1.Depths + 20001);
_local2._x = _local1.centerX;
_local2._y = _local1.centerY;
_local2._visible = true;
_local1.soundPlay("title", 1);
_local1.startMC.gotoAndStop("ON");
var t = Math.round((getTimer() - _local1.startTime) / 1000);
var _local3 = _local1.maxCombo;
if (_local3 > 0) {
_local3--;
}
var info = (((((((("Ball: " + _local1.CountBall) + ", Combo: ") + _local3) + ", Time: ") + Math.floor(t / 60)) + "' ") + (t % 60)) + "\"");
_local1.sendRankScore(_local1.TotalScore, info);
}
function AddBallFrame() {
var _local2 = this;
var frames = 0;
if (random(lightningRand) == 0) {
frames = lightningFrame;
} else {
var _local3 = _local2.ballMaxCount;
var _local1 = 0;
while (_local1 < _local2.ballMaxArr.length) {
if (_local2.ballMaxArr[_local1] > _local2.CountBall) {
_local3 = _local1 + _local2.ballMaxMin;
break;
}
_local1++;
}
if (_local3 > _local2.ballMaxCount) {
_local3 = _local2.ballMaxCount;
}
frames = random(_local3) + 1;
_local2.ballMaxNum = _local3;
}
return(frames);
}
function AddBall(mv) {
var _local2 = this;
var _local1 = _local2.gameMC.attachMovie(_local2.ballName, "B" + _local2.Bnum, (_local2.Bnum + _local2.Depths) + 2);
_local1.Bnum = _local2.Bnum;
_local2.Bnum++;
if (_local2.Bnum >= _local2.Bmax) {
_local2.Bnum = 1;
}
_local1.num = -10;
_local1.mv = mv;
_local1.prevMC = undefined;
_local1.nextMC = undefined;
if (mv == 0) {
_local1._x = _local2.centerX;
_local1._y = _local2.centerY;
} else {
_local1._x = _parent.AS.circleXY[_local1.num][0];
_local1._y = _parent.AS.circleXY[_local1.num][1];
}
_local1.gotoAndStop(_local2.AddBallFrame());
return(_local1);
}
function AddCenterBall() {
var _local1 = this;
var _local2 = _local1.AddBall(0);
_local2.swapDepths((_local1.Depths + _local1.Bmax) + 1);
_local1.centerMC = _local2;
_local1.shoot = false;
_local2.gotoAndStop(_local1.centerTmp._currentframe);
_local1.centerTmp.gotoAndStop(_local1.AddBallFrame());
}
function AddScrewBall() {
var _local1 = this;
var _local2 = _local1.AddBall(1);
if (_local1.prevMC != undefined) {
_local2.prevMC = _local1.prevMC;
_local1.prevMC.nextMC = _local2;
}
_local1.prevMC = _local2;
_local2.gotoAndStop(_local1.screwTmp._currentframe);
_local1.screwTmp.gotoAndStop(_local1.AddBallFrame());
}
function displayScore() {
_parent.scoreMC.TXT = this.TotalScore;
}
function deleteBall(tMC, score) {
var _local1 = tMC;
var _local2 = this;
if (_local1 != undefined) {
if (_local1.prevMC != undefined) {
_local1.prevMC.nextMC = _local1.nextMC;
}
if (_local1.nextMC != undefined) {
_local1.nextMC.prevMC = _local1.prevMC;
} else {
_local2.prevMC = _local1.prevMC;
_local1.prevMC.nextMC = undefined;
}
if (score > 0) {
_local2.CountBall++;
var _local3 = _local2.gameMC.attachMovie(_local2.boxName, "box" + _local1.Bnum, (_local2.Depths + _local1.Bnum) + 5000);
_local3._x = _local1._x;
_local3._y = _local1._y;
_local3.TXT = score;
_local2.TotalScore = _local2.TotalScore + score;
_local2.displayScore();
}
_local1.removeMovieClip();
}
}
function insertBall(tMC) {
var _local1 = this;
var _local2 = tMC;
if (_local2 != undefined) {
var _local3 = _local1.rotationMC(_local2);
if (_local3 < _local1.shootRotation) {
_local1.centerMC.num = _local2.num + _local1.ballRadius;
_local1.centerMC.prevMC = _local2.prevMC;
_local1.centerMC.nextMC = _local2;
if (_local2.prevMC != undefined) {
_local2.prevMC.nextMC = _local1.centerMC;
}
_local2.prevMC = _local1.centerMC;
} else {
_local1.centerMC.num = _local2.num - _local1.ballRadius;
_local1.centerMC.prevMC = _local2;
_local1.centerMC.nextMC = _local2.nextMC;
if (_local2.nextMC != undefined) {
_local2.nextMC.prevMC = _local1.centerMC;
} else {
_local1.prevMC = _local1.centerMC;
}
_local2.nextMC = _local1.centerMC;
}
_local1.centerMC.swapDepths(_local1.centerMC.Bnum + _local1.Depths);
}
}
function getSameBall(cMC, ops) {
var _local3 = 1;
var c = cMC._currentframe;
var _local1 = cMC;
while (_local1.prevMC != undefined) {
if (_local1.prevMC._currentframe == c) {
if ((ops == 1) || ((_local1.prevMC.num - _local1.num) <= this.ballRadius)) {
_local1 = _local1.prevMC;
_local3++;
} else {
break;
}
} else {
break;
}
}
var _local2 = cMC.nextMC;
while (_local2 != undefined) {
if (_local2._currentframe == c) {
if ((ops == 1) || ((_local2.prevMC.num - _local2.num) <= this.ballRadius)) {
_local2 = _local2.nextMC;
_local3++;
} else {
break;
}
} else {
break;
}
}
if (_local3 >= 3) {
return(_local1);
}
return(undefined);
}
function sameDeleteBall(tMC) {
var _local2 = tMC;
var _local3 = this;
if (_local2.prevMC != undefined) {
_local2.prevMC.mv = 0;
}
if (_local3.comboMC == undefined) {
_local3.comboNum = 1;
} else {
_local3.comboNum++;
if (_local3.comboNum > _local3.maxCombo) {
_local3.maxCombo = _local3.comboNum;
}
}
var score = (_local3.comboNum * _local3.comboNum);
if (score < 2) {
score = 2;
}
var c = _local2._currentframe;
while (_local2 != undefined) {
if (_local2._currentframe == c) {
var _local1 = _local2;
_local2 = _local2.nextMC;
if ((_local1.num - _local1.nextMC.num) <= _local3.ballRadius) {
_local3.deleteBall(_local1, score);
} else {
_local3.deleteBall(_local1, score);
break;
}
} else {
break;
}
}
_local3.soundPlay("explore", 1);
}
function colorDeleteBall(Fnum) {
var _local3 = this;
var _local2 = _local3.prevMC;
while (true) {
if (_local2 == undefined) {
return;
}
var _local1 = _local2;
_local2 = _local2.prevMC;
if (_local1._currentframe == Fnum) {
_local3.deleteBall(_local1, 1);
_local1.mv = 0;
}
}
}
function moveHitBall() {
var _local1 = this;
if (_local1.prevMC != undefined) {
var _local3;
var _local2 = _local1.prevMC;
while (true) {
var d = _local1.distanceMC(_local1.centerMC, _local2);
if (d <= _local1.ballRadius) {
if ((_local3 != undefined) && (d < _local1.distanceMC(_local1.centerMC, _local3))) {
_local3 = _local2;
} else {
_local3 = _local2;
}
}
if (_local2.prevMC == undefined) {
break;
}
_local2 = _local2.prevMC;
}
if (_local3 != undefined) {
_local1.insertBall(_local3);
if ((_local1.centerMC._currentframe == _local1.lightningFrame) && (_local3._currentframe == _local1.lightningFrame)) {
_local1.deleteBall(_local1.centerMC, 0);
_local1.deleteBall(_local3, 0);
_local1.soundPlay("bomb", 1);
} else if (_local1.centerMC._currentframe == _local1.lightningFrame) {
_local1.deleteBall(_local1.centerMC, 0);
_local1.colorDeleteBall(_local3._currentframe);
_local1.soundPlay("bomb", 1);
} else if (_local3._currentframe == _local1.lightningFrame) {
_local1.deleteBall(_local3, 0);
_local1.colorDeleteBall(_local1.centerMC._currentframe);
_local1.soundPlay("bomb", 1);
} else {
_local1.comboNum = 1;
var leftMC = _local1.getSameBall(_local1.centerMC, 0);
if (leftMC != undefined) {
var cMC = leftMC.prevMC;
_local1.sameDeleteBall(leftMC);
if (cMC != undefined) {
_local1.getComboBall(cMC);
}
}
}
_local1.centerMC = undefined;
_local3 = undefined;
}
}
}
function moveCenterBall() {
var _local1 = this;
_local1.shootMove = _local1.shootMove + _local1.shootSpeed;
var _local2 = (_local1.shootRotation * Math.PI) / 180;
_local1.centerMC._x = (_local1.shootMove * Math.cos(_local2)) + _local1.centerX;
_local1.centerMC._y = (_local1.shootMove * Math.sin(_local2)) + _local1.centerY;
var _local3 = _local1.radius - ((_local1.shootRotation / 360) * 50);
if (_local1.shootMove > _local3) {
_local1.centerMC.removeMovieClip();
_local1.centerMC = undefined;
} else {
_local1.moveHitBall();
}
}
function moveScrewBall() {
var _local2 = this;
var _local1 = _local2.prevMC;
if (_local1.num < _local2.ballRadius) {
_local1.num++;
}
while (true) {
if (_local1.prevMC != undefined) {
if ((_local1.prevMC.num - _local1.num) <= _local2.ballRadius) {
_local1.prevMC.num = _local1.num + _local2.ballRadius;
}
}
if (_local1.num >= _local2.circleXY.length) {
_local2.GameOver();
return;
}
if (_local1.num < 0) {
_local1._x = _local2.circleXY[0][0];
_local1._y = _local2.circleXY[0][1] + (_local1.num * 7);
_local2.slotMC._y = _local2.slotMC.ty + _local1.num;
} else {
_local1._x = _local2.circleXY[_local1.num][0];
_local1._y = _local2.circleXY[_local1.num][1];
}
if (_local1.prevMC == undefined) {
return;
}
_local1 = _local1.prevMC;
}
}
function getComboBall(cMC) {
var _local1 = cMC;
var _local2 = this;
if ((_local1 != undefined) && (_local1.nextMC != undefined)) {
if (_local1._currentframe == _local1.nextMC._currentframe) {
if (_local2.getSameBall(_local1, 1) != undefined) {
_local2.comboMC = _local1;
_local2.soundPlay("combo", 1);
}
}
}
}
function moveComboBall() {
var _local2 = this;
if ((_local2.comboMC != undefined) && (_local2.comboMC.nextMC != undefined)) {
var _local3 = (_local2.comboMC.num - _local2.comboMC.nextMC.num) - _local2.ballRadius;
if (_local3 > _local2.backSpeed) {
_local3 = _local2.backSpeed;
}
var _local1 = _local2.comboMC;
while (true) {
_local1.num = _local1.num - _local3;
_local1._x = _local2.circleXY[_local1.num][0];
_local1._y = _local2.circleXY[_local1.num][1];
if (_local1.prevMC == undefined) {
break;
}
_local1 = _local1.prevMC;
}
if (_local3 <= 0) {
var leftMC = _local2.getSameBall(_local2.comboMC, 0);
if (leftMC != undefined) {
var cMC = leftMC.prevMC;
_local2.sameDeleteBall(leftMC);
if (cMC != undefined) {
_local2.getComboBall(cMC);
}
} else {
_local2.comboMC = undefined;
}
}
} else {
_local2.comboMC = undefined;
}
}
System.useCodepage = true;
this._name = "AS";
var gameMC = _parent.GAME;
var startMC = _parent.STARTBUTTON;
var f = 0;
var Bnum = 1;
var Bmax = 10000;
var Depths = 100;
var circleXY = [];
var centerTmp = undefined;
var screwTmp = undefined;
var centerMC = undefined;
var shoot = false;
var shootRotation = 0;
var shootMove = 0;
var shootSpeed = 15;
var backSpeed = 8;
var lineMC = this.gameMC.LINEMC;
var slotMC = this.gameMC.SLOTMC;
var prevMC = undefined;
var comboMC = undefined;
var comboNum = 0;
var maxCombo = 0;
var gameplay = false;
var TotalScore = 0;
var ballMaxNum = ((ballMaxMin = 4));
var ballMaxCount = 9;
var ballMaxArr = [30, 500, 1000, 2000, 3000, 5000, 10000, 30000, 50000];
var lightningFrame = 10;
var lightningRand = 180;
var CountBall = 0;
var maxRotation = 920;
var maxDistance = 45;
var HitAreaX1 = 10;
var HitAreaY1 = 10;
var HitAreaX2 = 410;
var HitAreaX2 = 410;
var startTime = 0;
var test = false;
this.onEnterFrame = function () {
var _local1 = this;
var area = false;
if ((_local1.pauseOn == false) && (_local1.gameplay == true)) {
if (_local1.comboMC == undefined) {
_local1.f = _local1.f + 1;
if (_local1.f >= _local1.ballRadius) {
_local1.f = 0;
_local1.AddScrewBall();
}
_local1.MouseLine();
if (_local1.prevMC != undefined) {
_local1.moveScrewBall();
}
if (_local1.shoot == true) {
_local1.moveCenterBall();
}
if (_local1.centerMC == undefined) {
_local1.AddCenterBall();
}
var _local3 = _parent._xmouse;
var _local2 = _parent._ymouse;
if ((((_local3 >= _local1.HitAreaX1) && (_local3 <= _local1.HitAreaX2)) && (_local2 >= _local1.HitAreaY1)) && (_local2 <= _local1.HitAreaX2)) {
area = true;
}
} else {
_local1.moveComboBall();
}
}
if (area) {
_local1.lineMC.gotoAndStop(2);
} else {
_local1.lineMC.gotoAndStop(1);
}
if (_local1.test) {
_parent.TXT = (((("ball: " + _local1.CountBall) + ", combo: ") + _local1.maxCombo) + ", Kind: ") + _local1.ballMaxNum;
}
};
this.onMouseDown = function () {
var _local1 = this;
if (((((_local1.pauseOn == false) && (_local1.helpOn == false)) && (_local1.gameplay == true)) && (_local1.centerMC != undefined)) && (_local1.shoot == false)) {
var _local3 = _parent._xmouse;
var _local2 = _parent._ymouse;
if ((((_local3 >= _local1.HitAreaX1) && (_local3 <= _local1.HitAreaX2)) && (_local2 >= _local1.HitAreaY1)) && (_local2 <= _local1.HitAreaX2)) {
_local1.shootRotation = _local1.rotationXY(_local3, _local2, _local1.centerX, _local1.centerY);
_local1.shoot = true;
_local1.shootMove = 0;
_local1.soundPlay("shoot", 1);
}
}
};
this.onUnload = function () {
var _local1 = this;
_local1.unSet();
_local1.lineMC.removeMovieClip();
_local1.slotMC.removeMovieClip();
};
this.stop();
function helpOnOff() {
var _local1 = this;
if (_local1.helpOn == true) {
_local1.gameMC.HELP._visible = false;
_local1.helpMC.gotoAndStop("OFF");
_local1.helpOn = false;
} else {
_local1.gameMC.HELP._visible = true;
_local1.helpMC.gotoAndStop("ON");
_local1.helpOn = true;
}
}
function soundOnOff() {
var _local1 = this;
if (_local1.soundOn == true) {
_local1.soundMC.gotoAndStop("OFF");
_local1.soundOn = false;
stopAllSounds();
} else {
_local1.soundMC.gotoAndStop("ON");
_local1.soundOn = true;
}
}
function pauseOnOff() {
var _local1 = this;
if (_local1.pauseOn == true) {
_local1.gameMC.PAUSE._visible = false;
_local1.pauseMC.gotoAndStop("OFF");
_local1.pauseOn = false;
} else {
_local1.gameMC.PAUSE._visible = true;
_local1.pauseMC.gotoAndStop("ON");
_local1.pauseOn = true;
}
}
function soundPlay(name, loop) {
var _local1 = this;
if ((_local1.soundOn == true) && (_local1.gameVolume > 0)) {
_local1.soundObj[name].start(0, loop);
_local1.soundObj[name].setVolume(_local1.gameVolume);
}
}
function sendRankScore(score, score_play) {
var _local1 = _parent;
if (_local1.dbconnect == "yes") {
sendObj = new LoadVars();
loadObj = new LoadVars();
sendObj.gametype = _local1.gametype;
sendObj.userid = _local1.userid;
sendObj.score = int(score) + 969696;
sendObj.score_play = score_play;
sendObj.sendAndLoad((_local1.dir + "game_record.") + _local1.scripttype, loadObj, "POST");
loadObj.onLoad = function () {
};
}
}
var helpOn = false;
var helpMC = _parent.helpMC;
this.helpMC.gotoAndStop("OFF");
this.gameMC.HELP._visible = false;
var soundOn = true;
var soundMC = _parent.soundMC;
this.soundMC.gotoAndStop("ON");
var pauseOn = false;
var pauseMC = _parent.pauseMC;
this.pauseMC.gotoAndStop("OFF");
this.gameMC.PAUSE._visible = false;
var soundName = ["title", "shoot", "explore", "combo", "bomb"];
var soundObj = Array();
if (this.gameVolume < 0) {
this.gameVolume = 0;
}
if (this.gameVolume > 1000) {
this.gameVolume = 1000;
}
var i = 0;
while (i <= soundName.length) {
soundObj[soundName[i]] = new Sound();
soundObj[soundName[i]].attachSound(soundName[i]);
i++;
}
Symbol 103 Button (41 B)
on (release) {
_parent.AS.GameStart();
}
Symbol 105 MovieClip Frame 1 (13 B)
this.stop();
Symbol 105 MovieClip Frame 6 (13 B)
this.stop();
Symbol 110 MovieClip Frame 1 (13 B)
this.stop();
Symbol 122 Button (49 B)
on (release) {
_parent._parent.AS.helpOnOff();
}