Frame 1
play();
stopAllSounds();
Frame 2
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes / 1000);
totalkbytes = Math.ceil(totalbytes / 1000);
loadedmbytes = Math.ceil(loadedbytes / 1500);
totalmbytes = Math.ceil(totalbytes / 1500);
percent = Number((loadedmbytes / totalmbytes) * 100);
frame = int(loadedbytes / (totalbytes / 100));
tellTarget (_root.loader) {
gotoAndStop(_root.frame);
};
if (loadedbytes == totalbytes) {
gotoAndPlay (4);
}
Frame 3
gotoAndPlay (1);
Frame 4
play();
Frame 6
function smartOrientMovie(x0, y0, xk, yk, movie) {
var _local4 = movie._width;
var _local2 = xk - x0;
var _local1 = yk - y0;
var _local6 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
var _local7 = _local6 / _local4;
var _local5 = (Math.atan2(_local1, _local2) * 180) / Math.PI;
movie._x = x0;
movie._y = y0;
movie._xscale = _local7 * 100;
movie._rotation = _local5;
}
function getRotatedPoint(x0, y0, x, y, angle) {
var _local1 = new Object();
var _local4 = x - x0;
var _local3 = y - y0;
var _local2 = Math.sin(angle);
var _local5 = Math.cos(angle);
_local1.x = ((_local4 * _local5) - (_local3 * _local2)) + x0;
_local1.y = ((_local4 * _local2) + (_local3 * _local5)) + y0;
return(_local1);
}
sndFire = new Sound(this);
sndFire.attachSound("snd.fire");
sndDestroy = new Sound(this);
sndDestroy.attachSound("snd.destroy");
sndCityDie = new Sound(this);
sndCityDie.attachSound("snd.citydie");
Level = 0;
GameScore = 0;
gametablo._visible = false;
isPlayMusic = true;
stop();
Frame 7
function CSmartMovie(depth, movieName) {
if (depth == undefined) {
return(undefined);
}
this.x = 0;
this.y = 0;
this.angle = 0;
this.depth = depth;
this.scaleX = 1;
this.scaleY = 1;
this.movieNumInSequence = -1;
this.movieSequence = new Array();
this.isPlay = false;
this.movie = null;
this.lastMovieName = "";
this.angleSin = 0;
this.angleCos = 1;
this.isLooped = true;
this.isKillAtEnd = false;
if (movieName != undefined) {
this.addImage(movieName);
}
CSmartMovie.prototype.smartMovieList.push(this);
}
function CUfo() {
super(1001);
CUfo.prototype.ufos.push(this);
this.addImage("UFO");
this.addImage("UFOdied");
this.centerX = 260;
this.centerY = 0;
this.begX = (this.centerX + (Math.random() * 300)) - 150;
this.begY = this.centerY + (Math.random() * 200);
this.endX = (this.centerX + (Math.random() * 400)) - 200;
this.endY = 250;
this.angle = Math.random();
if (this.begX > this.endX) {
this.angle = -this.angle;
}
this.stepKol = 300;
this.isBomber = false;
this.speedX = ((this.endX - this.begX) / this.stepKol) / 2;
this.speedY = ((this.endY - this.begY) / this.stepKol) / 2;
this.setScale(0.03);
this.scaleSpeed = 0.37 / this.stepKol;
this.x = this.begX;
this.y = this.begY;
var _local3 = 0;
while (_local3 < CUfo.prototype.ufos.length) {
CUfo.prototype.ufos[_local3].setDepth(1000 - _local3);
_local3++;
}
this.play();
}
CSmartMovie.prototype.smartMovieList = new Array();
CSmartMovie.prototype.baseMovieClip = null;
CSmartMovie.prototype.setBaseMovieClip = function (baseMovieClip) {
var _local2 = 0;
while (_local2 < CSmartMovie.prototype.smartMovieList.length) {
var _local1 = CSmartMovie.prototype.smartMovieList[_local2];
if (_local1.movie != null) {
_local1.clearStage();
_local1.update();
}
_local2++;
}
};
CSmartMovie.prototype.dispose = function () {
this.clearImages();
CSmartMovie.prototype.findAndRemove(CSmartMovie.prototype.smartMovieList, this);
};
CSmartMovie.prototype.findAndRemove = function (list, elem) {
var _local1 = 0;
while (_local1 < list.length) {
if (list[_local1] == elem) {
list.splice(_local1, 1);
break;
}
_local1++;
}
};
CSmartMovie.prototype.setDepth = function (depth) {
if (this.movie == null) {
this.clearStage();
this.depth = depth;
this.update();
} else {
var _local2 = this.movie._currentframe;
this.clearStage();
this.depth = depth;
this.update();
this.movie.gotoAndStop(_local2);
if (this.isPlay) {
this.movie.play();
}
}
};
CSmartMovie.prototype.setScaleX = function (kx) {
this.scaleX = kx;
this.update();
};
CSmartMovie.prototype.setScaleY = function (ky) {
this.scaleY = ky;
this.update();
};
CSmartMovie.prototype.setScale = function (k) {
this.scaleX = k;
this.scaleY = k;
this.update();
};
CSmartMovie.prototype.play = function () {
this.isPlay = true;
if (this.movie != null) {
this.movie.play();
}
};
CSmartMovie.prototype.stop = function () {
this.isPlay = false;
if (this.movie != null) {
this.movie.stop();
}
};
CSmartMovie.prototype.nextImage = function () {
if (this.movieSequence.length > 0) {
this.movieNumInSequence++;
if (this.movieNumInSequence >= this.movieSequence.length) {
if (this.isLooped == true) {
this.movieNumInSequence = 0;
} else if (this.isKillAtEnd) {
this.dispose();
} else {
this.movieNumInSequence = this.movieSequence.length - 1;
}
}
}
};
CSmartMovie.prototype.update = function () {
if (this.movieSequence.length > 0) {
if (this.movieNumInSequence == -1) {
this.movieNumInSequence = 0;
}
if (this.movieNumInSequence >= this.movieSequence.length) {
this.movieNumInSequence = this.movieSequence.length - 1;
}
if (this.lastMovieName != this.movieSequence[this.movieNumInSequence]) {
this.lastMovieName = this.movieSequence[this.movieNumInSequence];
if (CSmartMovie.prototype.baseMovieClip == null) {
this.movie = attachMovie(this.lastMovieName, (this.lastMovieName + "_") + this.depth, this.depth);
} else {
this.movie = CSmartMovie.prototype.baseMovieClip.attachMovie(this.lastMovieName, (this.lastMovieName + "_") + this.depth, this.depth);
}
}
this.movie._x = this.x;
this.movie._y = this.y;
this.movie._rotation = (this.angle * 180) / Math.PI;
this.movie._xscale = this.scaleX * 100;
this.movie._yscale = this.scaleY * 100;
if (this.isPlay) {
this.movie.play();
} else {
this.movie.stop();
}
} else {
this.clearStage();
}
};
CSmartMovie.prototype.setPos = function (x, y) {
this.x = x;
this.y = y;
if (this.movie != null) {
this.movie._x = x;
this.movie._y = y;
}
};
CSmartMovie.prototype.relPos = function (dx, dy) {
this.x = this.x + dx;
this.y = this.y + dy;
if (this.movie != null) {
this.movie._x = this.x;
this.movie._y = this.y;
}
};
CSmartMovie.prototype.setAngle = function (a) {
this.angle = a;
this.angleSin = Math.sin(this.angle);
this.angleCos = Math.cos(this.angle);
if (this.movie != null) {
this.movie._rotation = (this.angle * 180) / Math.PI;
}
};
CSmartMovie.prototype.relAngle = function (a) {
this.setAngle(this.angle + a);
};
CSmartMovie.prototype.getDist2 = function (smartMovie) {
var _local3 = smartMovie.x - this.x;
var _local2 = smartMovie.y - this.y;
return((_local3 * _local3) + (_local2 * _local2));
};
CSmartMovie.prototype.getDist = function (smartMovie) {
var _local3 = smartMovie.x - this.x;
var _local2 = smartMovie.y - this.y;
return(Math.sqrt((_local3 * _local3) + (_local2 * _local2)));
};
CSmartMovie.prototype.addImage = function (movieName, isCallUpdate) {
if (isCallUpdate == undefined) {
isCallUpdate = false;
}
this.movieSequence.push(movieName);
if (this.movieNumInSequence == -1) {
this.movieNumInSequence = 0;
if (isCallUpdate) {
this.update();
}
}
};
CSmartMovie.prototype.clearImages = function () {
this.movieNumInSequence = -1;
this.movieSequence.splice(0);
this.clearStage();
};
CSmartMovie.prototype.clearStage = function () {
if (this.movie != null) {
this.movie.removeMovieClip();
this.movie = null;
this.lastMovieName = "";
}
};
CUfo.prototype.__proto__ = new CSmartMovie();
CUfo.prototype.ufos = new Array();
CUfo.prototype.dispose = function () {
super.dispose();
CSmartMovie.prototype.findAndRemove(CUfo.prototype.ufos, this);
};
CUfo.prototype.onEnterFrame = function () {
if (this.movieNumInSequence == 1) {
if (this.movie == null) {
this.update();
}
if (this.movie._currentframe == this.movie._totalframes) {
this.dispose();
return(0);
}
return(1);
}
this.x = this.x + this.speedX;
this.y = this.y + this.speedY;
this.speedX = this.speedX * 1.05;
this.speedY = this.speedY * 1.05;
if (this.angle < 0) {
this.angle = this.angle + 0.005;
}
if (this.angle > 0) {
this.angle = this.angle - 0.005;
}
this.scaleSpeed = this.scaleSpeed + 5E-5;
if (this.y >= this.endY) {
if (this.speedX < 0) {
this.x = this.x - 20;
this.relAngle(0.05);
} else {
this.x = this.x + 20;
this.relAngle(-0.05);
}
this.setScale(this.scaleX + this.scaleSpeed);
} else {
this.setScale(this.scaleX + this.scaleSpeed);
}
if (Math.abs(this.x - this.centerX) > 300) {
this.dispose();
return(0);
}
if (((this.scaleX > 0.5) || ((this.scaleX > 0.2) && (Math.random() < 0.2))) && (!this.isBomber)) {
this.isBomber = true;
this.update();
return(2);
}
this.update();
return(1);
};
EarthShield = 100;
Mouse.hide();
userMouseCursor = BaseMovieClip.attachMovie("Target", "Target", 10000);
userMouseCursor._x = _xmouse;
userMouseCursor._y = _ymouse;
gametablo._visible = true;
isPaused = false;
GameEndType = 0;
TimeOnEndBeforeJump = 10;
Level++;
CSmartMovie.prototype.baseMovieClip = BaseMovieClip;
LevelTime = 1440;
bombsList = new Array();
curBombDepth = 2000;
Laser = null;
Instance of Symbol 102 MovieClip "BaseMovieClip" in Frame 7
onClipEvent (enterFrame) {
if (_parent.Laser != null) {
if (_parent.Laser._currentframe == _parent.Laser._totalframes) {
removeMovieClip(Laser);
}
}
if (_parent.isPaused) {
return(undefined);
}
if (_parent.GameEndType == 0) {
_parent.Time = Math.round(_parent.LevelTime / 24);
_parent.LevelTime--;
if (_parent.LevelTime == 0) {
_parent.GameEndType = 1;
return(undefined);
}
if (_parent.LevelTime > 100) {
if (Math.random() < (0.02 * Math.sqrt(_parent.Level))) {
new _parent.CUfo();
}
}
var i = 0;
while (i < _parent.CUfo.prototype.ufos.length) {
var ufo = _parent.CUfo.prototype.ufos[i];
var r = ufo.onEnterFrame();
if (r == 0) {
delete ufo;
i--;
} else if (r == 2) {
var p = (new _parent.CSmartMovie(_parent.curBombDepth++, "Bomb"));
p.setScaleX(3 * ufo.scaleX);
p.setScaleY(3 * ufo.scaleY);
p.setPos(ufo.x, ufo.y + 40);
p.play();
_parent.bombsList.push(p);
_parent.sndCityDie.start();
}
i++;
}
var i = 0;
while (i < _parent.bombsList.length) {
var b = _parent.bombsList[i];
if (b.movie._currentframe == b.movie._totalframes) {
b.dispose();
_parent.bombsList.splice(i, 1);
delete b;
i--;
_parent.EarthShield = _parent.EarthShield - 10;
if (_parent.EarthShield < 0) {
_parent.EarthShield = 0;
}
if (_parent.EarthShield == 0) {
_parent.GameEndType = -1;
}
}
i++;
}
} else {
_parent.TimeOnEndBeforeJump--;
if (_parent.TimeOnEndBeforeJump == 0) {
if (_parent.GameEndType == 1) {
_parent.gotoAndStop("UserWin");
} else if (_parent.GameEndType == -1) {
_parent.gotoAndStop("UserLose");
}
}
}
gametablo.scores = _parent.GameScore;
}
onClipEvent (mouseDown) {
if (_parent.isPaused) {
return(undefined);
}
if (_parent.Pushka.MC._currentframe != 1) {
return(undefined);
}
_parent.Pushka.MC.play();
_parent.sndFire.start();
_parent.Laser = this.attachMovie("Bullet", "Laser", 9998);
var p = _parent.getRotatedPoint(_parent.Pushka._x, _parent.Pushka._y, _parent.Pushka._x, _parent.Pushka._y - 90, (_parent.Pushka._rotation * Math.PI) / 180);
_parent.smartOrientMovie(p.x, p.y, _parent.userMouseCursor._x, _parent.userMouseCursor._y, _parent.Laser);
if (((_parent.Laser._rotation + 90) < _parent.Pushka._rotation) || (_parent.userMouseCursor._y < _parent.Pushka._y)) {
_parent.Laser._rotation = _parent.Pushka._rotation - 90;
} else if (((_parent.Laser._rotation + 90) < _parent.Pushka._rotation) || (_parent.userMouseCursor._y < _parent.Pushka._y)) {
_parent.Laser._rotation = _parent.Pushka._rotation - 90;
}
var i = 0;
while (i < _parent.CUfo.prototype.ufos.length) {
var ufo = _parent.CUfo.prototype.ufos[i];
var p = {x:_parent.userMouseCursor._x, y:_parent.userMouseCursor._y};
localToGlobal(p);
if ((ufo.movieNumInSequence != 1) && (ufo.movie.hitTest(p.x, p.y, false))) {
ufo.nextImage();
ufo.update();
_parent.GameScore = _parent.GameScore + 50;
_parent.sndDestroy.start();
break;
}
i++;
}
}
onClipEvent (mouseMove) {
_parent.userMouseCursor._x = _xmouse;
_parent.userMouseCursor._y = _ymouse;
var dx = (_parent.userMouseCursor._x - _parent.Pushka._x);
var dy = (_parent.userMouseCursor._y - _parent.Pushka._y);
var a = (Math.atan2(-dy, dx) - (Math.PI/2));
if (a < -0.872664625997165) {
a = -0.872664625997165;
Mouse.show();
} else if (a > 0.872664625997165) {
a = 0.872664625997165;
Mouse.show();
} else if (_parent.userMouseCursor._visible) {
Mouse.hide();
}
var d = Math.sqrt((dx * dx) + (dy * dy));
var p = _parent.getRotatedPoint(_parent.Pushka._x, _parent.Pushka._y, _parent.Pushka._x, _parent.Pushka._y - d, -a);
_parent.userMouseCursor._x = p.x;
_parent.userMouseCursor._y = p.y;
_parent.Pushka._rotation = ((-a) * 180) / Math.PI;
}
onClipEvent (unload) {
Mouse.show();
}
Instance of Symbol 105 MovieClip "Pushka" in Frame 7
onClipEvent (load) {
MC.stop();
}
onClipEvent (enterFrame) {
if (MC._currentframe == MC._totalframes) {
MC.gotoAndStop(1);
}
}
Instance of Symbol 110 MovieClip "PauseOnOff" in Frame 7
on (press) {
_parent.isPaused = !_parent.isPaused;
if (_parent.isPaused) {
if (_parent.isPlayMusic) {
_parent.MusicOnOff.music.stop();
}
nextFrame();
var i = 0;
while (i < _parent.CSmartMovie.prototype.smartMovieList.length) {
var p = _parent.CSmartMovie.prototype.smartMovieList[i];
if (p.isPlay && (p.movie != null)) {
p.movie.stop();
}
i++;
}
} else {
if (_parent.isPlayMusic) {
_parent.MusicOnOff.music.start(0, 200000);
}
prevFrame();
var i = 0;
while (i < _parent.CSmartMovie.prototype.smartMovieList.length) {
var p = _parent.CSmartMovie.prototype.smartMovieList[i];
if (p.isPlay && (p.movie != null)) {
p.movie.play();
}
i++;
}
}
}
on (rollOver) {
if (_parent.userMouseCursor != undefined) {
Mouse.show();
_parent.userMouseCursor._visible = false;
}
}
on (rollOut) {
if (_parent.userMouseCursor != undefined) {
Mouse.hide();
_parent.userMouseCursor._visible = true;
}
}
Instance of Symbol 114 MovieClip "MusicOnOff" in Frame 7
onClipEvent (load) {
music = new Sound(_parent);
music.attachSound("snd.music");
if (_parent.isPlayMusic) {
music.start(0, 200000);
} else {
nextFrame();
}
}
onClipEvent (unload) {
if (_parent.isPlayMusic) {
music.stop();
}
}
on (press) {
_parent.isPlayMusic = !_parent.isPlayMusic;
if (_parent.isPlayMusic) {
if (!_parent.isPaused) {
music.start(0, 200000);
}
prevFrame();
} else {
music.stop();
nextFrame();
}
}
on (rollOver) {
if (_parent.userMouseCursor != undefined) {
Mouse.show();
_parent.userMouseCursor._visible = false;
}
}
on (rollOut) {
if (_parent.userMouseCursor != undefined) {
Mouse.hide();
_parent.userMouseCursor._visible = true;
}
}
Frame 9
function sendscores() {
_root.myscore = GameScore;
var _local3 = new LoadVars();
_local3.onLoad = function (success) {
if (success) {
gotoAndStop ("Origin");
} else {
_root.status_mess = "No response from server";
}
};
var _local2 = new LoadVars();
_local2.action = "submit";
_local2.pname = _root.pname;
_local2.pscore = _root.myscore;
_local2.sendAndLoad("http://www.gamezarena.com/action/games/defense/defense_scores.php", _local3, "POST");
}
thisaction = sendscores();
Frame 11
function getscores() {
var result_lv = new LoadVars();
result_lv.onLoad = function (success) {
if (success) {
score1.text = result_lv.fiftyscores;
score2.text = result_lv.hundredscores;
} else {
_root.status_mess = "No response from server";
}
};
var _local2 = new LoadVars();
_local2.action = "get";
_local2.sendAndLoad("http://www.gamezarena.com/action/games/defense/defense_scores.php", result_lv, "POST");
}
thisaction = getscores();
Instance of Symbol 65 MovieClip [FScrollBarSymbol] in Frame 11
//component parameters
onClipEvent (construct) {
_targetInstanceName = "score1";
horizontal = false;
}
Instance of Symbol 65 MovieClip [FScrollBarSymbol] in Frame 11
//component parameters
onClipEvent (construct) {
_targetInstanceName = "score2";
horizontal = false;
}
Symbol 5 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local3 in this.styleFormat_prm) {
this.setStyleProperty(_local3, this.styleFormat_prm[_local3]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var _local2 in this.methodTable) {
this[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local4 = this.styleTable.focusRectInner.value;
var _local5 = this.styleTable.focusRectOuter.value;
if (_local4 == undefined) {
_local4 = 16777215 /* 0xFFFFFF */;
}
if (_local5 == undefined) {
_local5 = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, _local5);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, _local4);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var _local17 = parseInt(value);
if (!isNaN(_local17)) {
value = _local17;
}
var _local16 = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!_local16)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var _local18 = propName.subString(4, propName.length);
this.textStyle[_local18] = value;
this.invalidate("setSize");
} else {
for (var _local15 in this.styleTable[propName].coloredMCs) {
var _local4 = new Color(this.styleTable[propName].coloredMCs[_local15]);
if (this.styleTable[propName].value == undefined) {
var _local5 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local4.setTransform(_local5);
} else {
_local4.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = _local16;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var _local4 = new Color(skinMCRef);
_local4.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var _local3 in arguments[0]) {
this[_local3] = arguments[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local3 = 0;
while (_local3 < arguments.length) {
var _local4 = arguments[_local3];
this.listeners[arguments[_local3]] = _local4;
for (var _local5 in this) {
if (this.isAStyle(_local5)) {
_local4.updateStyleProperty(this, _local5.toString());
}
}
_local3++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
if (component.styleTable[_local4].useGlobal == this.isGlobal) {
component.styleTable[_local4].useGlobal = true;
var _local3 = (this.isGlobal ? undefined : (globalStyleFormat[_local4]));
component.setStyleProperty(_local4, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local6 = 0;
for (var _local5 in this.listeners) {
var _local3 = this.listeners[_local5];
if (arguments.length > 0) {
var _local4 = 0;
while (_local4 < arguments.length) {
if (this.isAStyle(arguments[_local4])) {
_local3.updateStyleProperty(this, arguments[_local4]);
}
_local4++;
}
} else {
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
_local3.updateStyleProperty(this, _local4.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 7 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 9 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 11 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 12 MovieClip [UpArrow] Frame 1
stop();
Symbol 12 MovieClip [UpArrow] Frame 2
stop();
Symbol 12 MovieClip [UpArrow] Frame 3
stop();
Symbol 14 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 16 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 17 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 18 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 20 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 22 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 23 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 24 MovieClip [DownArrow] Frame 1
stop();
Symbol 24 MovieClip [DownArrow] Frame 2
stop();
Symbol 24 MovieClip [DownArrow] Frame 3
stop();
Symbol 50 MovieClip Frame 18
stop();
Symbol 64 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 65 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
_local2 = Math.min(_local2, this.maxPos);
this.setScrollPosition(Math.max(_local2, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local3 = this.enable;
if (enabledFlag && (!_local3)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (_local3)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local3 = this.smallScroll;
if (inc != "one") {
_local3 = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var _local2 = this.getScrollPosition() + (mode * _local3);
if (_local2 > this.maxPos) {
_local2 = this.maxPos;
} else if (_local2 < this.minPos) {
_local2 = this.minPos;
}
this.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var _local2 = this.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (this._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var _local3 = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxhscroll));
} else {
var _local3 = this.textField.scroll;
var _local2 = this.textField.bottomScroll - this.textField.scroll;
this.setScrollProperties(_local2, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 68 MovieClip Frame 1
stop();
Symbol 85 Button
on (release) {
if ((_root.pname == "") || (_root.pname == undefined)) {
} else {
gotoAndStop ("Game");
}
}
Symbol 88 Button
on (release) {
if ((_root.pname == "") || (_root.pname == undefined)) {
} else {
gotoAndStop ("Rules");
}
}
Symbol 91 Button
on (release) {
if ((_root.pname == "") || (_root.pname == undefined)) {
} else {
gotoAndStop ("Scores");
}
}
Symbol 101 Button
on (release) {
getURL ("http://www.gamezarena.com", "_blank");
}
Symbol 108 Button
on (release) {
_parent.IsPaused = !_parent.IsPaused;
}
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 2
stop();
Symbol 113 Button
on (release) {
_parent.sonic = !_parent.sonic;
if (!_parent.c.pause) {
_parent.snd.stop("fon");
}
play();
}
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
stop();
Symbol 125 Button
on (release) {
gotoAndStop ("Game");
}
Symbol 132 Button
on (release) {
gotoAndStop ("Origin");
}
Symbol 133 Button
on (release) {
gotoAndStop ("Game");
}
Symbol 137 Button
on (release) {
gotoAndStop ("Origin");
}