Frame 1
stop();
Instance of Symbol 14 MovieClip in Frame 1
//component parameters
onClipEvent (construct) {
h = 300;
w = 600;
max = 20;
}
Frame 2
startDrag ("cursor", true);
Mouse.hide();
play();
Frame 1532
stop();
Symbol 4 MovieClip [FRockToSymbol] Frame 1
#initclip 4
function RockToClass() {
if ((this.x_param != undefined) && (this.y_param != undefined)) {
this.initXY();
this.initMovement();
}
}
RockToClass.prototype = new MoveMassRockToClass();
RockToClass.prototype.initXY = function () {
this.rockToX = this.x_param;
this.rockToY = this.y_param;
};
RockToClass.prototype.initMovement = function () {
this.pict._visible = false;
this.myClip = this._parent[this._targetInstanceName];
this.bounceFactor = this.rockFactor_param || 0.3;
this.snapDist = this.snapDist_param || 1;
this.dX = (this.rockToX - this.myClip._x) * this.bounceFactor;
this.dY = (this.rockToY - this.myClip._y) * this.bounceFactor;
this.x_param = this.x_param + this.dX;
this.y_param = this.y_param + this.dY;
super.init();
this.bounceReady = false;
this.onEnterFrame = this.updateMove;
};
RockToClass.prototype.startMovement = function (x, y) {
this.rockToX = (this.x_param = x);
this.rockToY = (this.y_param = y);
this.initMovement();
};
RockToClass.prototype.updateMove = function () {
if (!this.movementReady()) {
if ((!this.startBlurReady) && (this.blur_param)) {
this.startBlur();
} else {
this.update();
}
} else if ((!this.endBlurReady) && (this.blur_param)) {
this.endBlur();
} else if ((!this.shakeReady) && (this.shake_param)) {
this.startShake();
} else {
delete this.onEnterFrame;
this.cleanupShake();
this._parent[this.callBack_param]();
}
};
RockToClass.prototype.update = function () {
if (!this.bounceReady) {
super.update();
if (super.movementReady()) {
this.deblur();
this.dX = (this.rockToX - this.myClip._x) * this.bounceFactor;
this.dY = (this.rockToY - this.myClip._y) * this.bounceFactor;
this.targetX = this.rockToX + this.dX;
this.targetY = this.rockToY + this.dY;
this.startX = this.myClip._x;
this.startY = this.myClip._y;
this.distX = this.targetX - this.startX;
this.distY = this.targetY - this.startY;
this.step = 0;
this.moveMassReady = false;
this.checkBounceReady();
}
}
};
RockToClass.prototype.movementReady = function () {
return(this.bounceReady);
};
RockToClass.prototype.checkBounceReady = function () {
if ((Math.abs(this.dX) < this.snapDist) && (Math.abs(this.dY) < this.snapDist)) {
this.bounceReady = true;
this.myClip._x = this.rockToX;
this.myClip._y = this.rockToY;
}
};
Object.registerClass("FRockToSymbol", RockToClass);
#endinitclip
Symbol 5 MovieClip [FAbstractMovementSymbol] Frame 1
#initclip 1
function AbstractMovementClass() {
this.init();
}
AbstractMovementClass.prototype = new MovieClip();
AbstractMovementClass.prototype.init = function () {
this.startBlurReady = false;
this.blurStep = 100 / (this.maxBlur_param + 1);
this.dX = this.targetX - this.myClip._x;
this.dY = this.targetY - this.myClip._y;
this.distance = Math.sqrt(Math.pow(this.dX, 2) + Math.pow(this.dY, 2));
this.xShake = (this.shakeDist_param * this.dX) / this.distance;
this.yShake = (this.shakeDist_param * this.dY) / this.distance;
};
AbstractMovementClass.prototype.setTargetInstance = function (v) {
this._targetInstanceName = v;
};
AbstractMovementClass.prototype.setCallbackFunction = function (v) {
this.callBack_param = v;
};
AbstractMovementClass.prototype.setSnapDistance = function (v) {
this.snapDist_param = v;
};
AbstractMovementClass.prototype.setBlur = function (maxB, link, dist, regPnt, xReg, yReg) {
if (maxBlur == false) {
this.blur_param = false;
} else {
this.blur_param = true;
this.maxBlur_param = maxB;
this.linkage_param = link;
this.blurDist_param = dist || 10;
if (regPnt == null) {
regPnt = "center";
}
switch (regPnt.toLowerCase()) {
case "topleft" :
this.regPoint_param = 0;
break;
case "center" :
this.regPoint_param = 1;
break;
case "custom" :
this.regPoint_param = 2;
break;
default :
trace("MMovement, function setBlur: this is not a appropriate registration point.");
}
this.xRegPoint_param = xReg || 0;
this.yRegPoint_param = yReg || 0;
}
};
AbstractMovementClass.prototype.setShake = function (maxS, dist) {
if (maxS == false) {
this.shake_param = false;
} else {
this.shake_param = true;
this.maxShake_param = maxS;
this.shakeDist_param = dist;
}
};
AbstractMovementClass.prototype.startBlur = function () {
this.i = 1;
this.endBlurReady = false;
this.onEnterFrame = this.blur;
};
AbstractMovementClass.prototype.endBlur = function () {
this.startBlurReady = false;
this.onEnterFrame = this.deblur;
};
AbstractMovementClass.prototype.blur = function () {
if (this.i <= this.maxBlur_param) {
var _local2 = this.i * this.blurDist_param;
var _local4 = 0;
var _local3 = 0;
if (this.regPoint_param == 0) {
_local4 = ((-0.5 * _local2) / 100) * this.myClip._width;
_local3 = ((-0.5 * _local2) / 100) * this.myClip._height;
} else if (this.regPoint_param == 2) {
var _local7 = this.xRegPoint_param / (this.myClip._width * 0.5);
var _local6 = this.yRegPoint_param / (this.myClip._height * 0.5);
_local4 = (((-0.5 * _local7) * _local2) / 100) * this.myClip._width;
_local3 = (((-0.5 * _local6) * _local2) / 100) * this.myClip._height;
}
var _local5 = {objRef:this.myClip, _alpha:100 - (this.i * this.blurStep), _xscale:100 + _local2, _yscale:100 + _local2};
this.myClip.attachMovie(this.linkage_param, "myClip" + this.i, this.i, _local5);
this.myClip["myClip" + this.i]._x = this.myClip["myClip" + this.i]._x + _local4;
this.myClip["myClip" + this.i]._y = this.myClip["myClip" + this.i]._y + _local3;
this.i++;
this.j = this.i;
} else {
this.startBlurReady = true;
this.onEnterFrame = this.updateMove;
}
};
AbstractMovementClass.prototype.deblur = function () {
if (this.j >= 1) {
this.myClip["myClip" + this.j].removeMovieClip();
this.j--;
} else {
this.endBlurReady = true;
this.onEnterFrame = this.updateMove;
}
};
AbstractMovementClass.prototype.startShake = function () {
this.shakeCount = 1;
this.onEnterFrame = this.doShake;
};
AbstractMovementClass.prototype.doShake = function () {
if (this.shakeCount <= (this.maxShake_param * 2)) {
if ((this.shakeCount % 2) == 1) {
this.myClip._x = this.myClip._x - this.xShake;
this.myClip._y = this.myClip._y - this.yShake;
} else {
this.myClip._x = this.myClip._x + this.xShake;
this.myClip._y = this.myClip._y + this.yShake;
}
this.shakeCount++;
} else {
this.shakeReady = true;
this.myClip._x = this.targetX;
this.myClip._y = this.targetY;
this.onEnterFrame = this.updateMove;
}
};
AbstractMovementClass.prototype.cleanupShake = function () {
this.shakeReady = false;
};
Object.registerClass("FAbstractMovementSymbol", AbstractMovementClass);
#endinitclip
Symbol 6 MovieClip [FMoveMassSymbol] Frame 1
#initclip 2
function MoveMassClass() {
this.init();
}
MoveMassClass.prototype = new AbstractMovementClass();
MoveMassClass.prototype.init = function () {
super.init();
if (this._parent[this._targetInstanceName] != undefined) {
this.myClip = this._parent[this._targetInstanceName];
}
this.targetX = this.x_param;
this.targetY = this.y_param;
this.startX = this.myClip._x;
this.startY = this.myClip._y;
this.distX = this.targetX - this.startX;
this.distY = this.targetY - this.startY;
this.maxSteps = this.maxSteps_param || 6;
this.step = 0;
this.moveMassReady = false;
};
AbstractMovementClass.prototype.setMaxFrameSteps = function (v) {
this.maxSteps_param = v;
};
MoveMassClass.prototype.update = function () {
if (!this.moveMassReady) {
this.calcPosition();
}
};
MoveMassClass.prototype.movementReady = function () {
return(this.moveMassReady);
};
MoveMassClass.prototype.calcPosition = function () {
if (this.step < this.maxSteps) {
this.step++;
var _local5 = Math.PI * (this.step / this.maxSteps);
var _local2 = 0.5 * (Math.sin(_local5 - (Math.PI/2)) + 1);
var _local4 = this.distX * _local2;
var _local3 = this.distY * _local2;
this.myClip._x = this.startX + _local4;
this.myClip._y = this.startY + _local3;
} else {
this.moveMassReady = true;
}
};
Object.registerClass("FMoveMassSymbol", MoveMassClass);
#endinitclip
Symbol 7 MovieClip [FMoveMassRockToSymbol] Frame 1
#initclip 3
function MoveMassRockToClass() {
if ((this.x_param != undefined) && (this.y_param != undefined)) {
this.initXY();
this.initMovement();
}
}
MoveMassRockToClass.prototype = new MoveMassClass();
MoveMassRockToClass.prototype.initXY = function () {
this.targetX = this.x_param;
this.targetY = this.y_param;
};
MoveMassRockToClass.prototype.initMovement = function () {
super.init();
this.boundingBox_mc._visible = false;
this.SSText._visible = false;
this.myClip = this._parent[this._targetInstanceName];
};
AbstractMovementClass.prototype.setRockFactor = function (v) {
this.rockFactor_param = v;
};
MoveMassRockToClass.prototype.startMovement = function (x, y) {
this.targetX = (this.x_param = x);
this.targetY = (this.y_param = y);
this.initMovement();
};
MoveMassRockToClass.prototype.movementReady = function () {
return(this.moveMassReady);
};
Object.registerClass("FMoveMassRockToSymbol", MoveMassRockToClass);
#endinitclip
Symbol 12 MovieClip Frame 1
stop();
Symbol 12 MovieClip Frame 2
stop();
Symbol 12 MovieClip Frame 3
stop();
Symbol 14 MovieClip Frame 1
i = 0;
while (i < max) {
if (i) {
duplicateMovieClip ("l0", "l" + i, i);
}
this["l" + i]._x = w + 1;
i++;
}
stop();
Instance of Symbol 13 MovieClip "l0" in Symbol 14 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._x <= _parent.w) {
this._x = this._x + speed;
} else {
_x = 0;
_y = random(_parent.h);
speed = random(10) + 2;
_xscale = (50 + (speed * 4));
_yscale = (50 + (speed * 4));
this.gotoAndPlay(int(random(this._totalFrames + 1)));
this.l.gotoAndStop(int(random(4)));
}
}
Symbol 36 MovieClip Frame 40
stop();
Symbol 51 Button
on (release) {
_root.play();
}
Symbol 52 Button
on (release) {
_root.play();
}
Symbol 53 MovieClip Frame 1
function onEnterFrame() {
if (!loaded) {
var _local3 = _root.getBytesLoaded() / _root.getBytesTotal();
if (_local3 >= 1) {
play();
bar._x = initX;
loaded = true;
} else {
bar._x = initX + ((_local3 - 1) * bar._width);
}
}
var _local4 = getTimer() - time;
timeAccum = timeAccum + _local4;
while (timeAccum >= FRAME_TIME) {
var _local2 = 0;
while (_local2 < timeClips.length) {
if (timeClips[_local2]._currentframe < timeClips[_local2]._totalframes) {
timeClips[_local2].nextFrame();
} else {
timeClips[_local2].gotoAndStop(1);
}
_local2++;
}
if (loaded && (_currentframe < _totalframes)) {
nextFrame();
}
timeAccum = timeAccum - FRAME_TIME;
}
time = time + _local4;
}
stop();
_root.stop();
var initX = bar._x;
var time = getTimer();
var FRAME_TIME = 33.3333333333333;
var timeAccum = 0;
var loaded = false;
timeClips = [bargfx, tank.mc0, tank.mc1, tank.mc2, tank.mc3, tank.mc4, tank.mc4.mc0, tank.mc4.mc1, tank.mc4.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc0.mc2, tank.mc4.mc0.mc0.mc0.mc3, tank.mc4.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc2, tank.mc5.mc0];
var i = 0;
while (i < timeClips.length) {
timeClips[i].stop();
i++;
}
Symbol 53 MovieClip Frame 51
Symbol 85 MovieClip Frame 26
stop();
Symbol 179 Button
on (release) {
gotoAndPlay (3);
}