Frame 1
_fglv = new LoadVars();
_fglv.gid = 80;
_fglv.url = _root._url;
_fglv.sendAndLoad("http://www.freegamesforyourwebsite.com/stats.php", _fglv, "POST");
delete _fglv;
var gameID = 211;
var gameName = "tower_defence";
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
prel.gotoAndStop(tgPrel);
if (b1 >= b2) {
gotoAndPlay ("intro");
}
Frame 4
if (Math.round(b1 / 1024) <= 35) {
gotoAndPlay ("loop1");
}
Frame 5
_root.b1 = _root.getBytesLoaded();
_root.b2 = _root.getBytesTotal();
_root.tgPrel = 1 + Math.round((b1 * 100) / b2);
_root.tg = _root.tgPrel - 2;
trace("_root.tg: " + _root.tg);
if (_root.tg <= 9) {
_root.procent = "0" + _root.tg;
} else {
_root.procent = _root.tg;
}
_root.prel.gotoAndStop(_root.tgPrel);
Frame 9
if (Math.round(b1 / 1024) <= 100) {
gotoAndPlay ("loop2");
}
Frame 11
_root.b1 = _root.getBytesLoaded();
_root.b2 = _root.getBytesTotal();
_root.tgPrel = 1 + Math.round((b1 * 100) / b2);
_root.tg = _root.tgPrel - 2;
trace("_root.TG: " + tgPrel);
if (_root.tgPrel <= 9) {
_root.procent = "0" + tg;
trace(_root.procent);
} else {
_root.procent = tg;
}
_root.prel.gotoAndStop(_root.tgPrel);
Frame 14
if (b1 < b2) {
gotoAndPlay ("loop3");
}
Frame 15
_root.procent = "--";
prel.gotoAndStop(100);
Frame 166
Frame 174
_root.sunet = true;
Frame 176
_root.pauza = false;
_root.sunet = true;
stop();
trace(_root._currentframe);
_root.inst._visible = false;
_root.opt._visible = false;
_root.lvl._visible = false;
Instance of Symbol 220 MovieClip in Frame 176
onClipEvent (enterFrame) {
this._x = this._x - 0.2;
if (this._x < -150) {
this._x = 800;
}
}
Instance of Symbol 222 MovieClip in Frame 176
onClipEvent (enterFrame) {
this._x = this._x - 0.3;
if (this._x < -150) {
this._x = 800;
}
}
Instance of Symbol 224 MovieClip in Frame 176
onClipEvent (enterFrame) {
this._x = this._x - 0.2;
if (this._x < -150) {
this._x = 800;
}
}
Instance of Symbol 226 MovieClip in Frame 176
onClipEvent (enterFrame) {
this._x = this._x - 0.5;
if (this._x < -150) {
this._x = 800;
}
}
Instance of Symbol 220 MovieClip in Frame 176
onClipEvent (enterFrame) {
this._x = this._x - 1;
if (this._x < -150) {
this._x = 800;
}
}
Instance of Symbol 289 MovieClip in Frame 176
onClipEvent (load) {
hit = false;
}
on (rollOver) {
hit = true;
this.gotoAndPlay("loop");
}
on (rollOut) {
hit = false;
}
on (release) {
_root.gotoAndStop("game");
}
Instance of Symbol 291 MovieClip in Frame 176
onClipEvent (load) {
hit = false;
}
on (rollOver) {
hit = true;
this.gotoAndPlay("loop");
}
on (rollOut) {
hit = false;
}
on (release) {
_root.inst._visible = false;
_root.opt._visible = false;
_root.lvl._visible = false;
_root.inst._visible = true;
}
Instance of Symbol 293 MovieClip in Frame 176
onClipEvent (load) {
hit = false;
}
on (rollOver) {
hit = true;
this.gotoAndPlay("loop");
}
on (rollOut) {
hit = false;
}
on (release) {
_root.inst._visible = false;
_root.opt._visible = false;
_root.lvl._visible = false;
_root.opt._visible = true;
}
Instance of Symbol 353 MovieClip "butoane" in Frame 176
//component parameters
onClipEvent (construct) {
wynume = "TowerDefence";
wyculoare = 3952424 /* 0x3C4F28 */;
wyasezare = "Vertical";
wyaliniere = "Stanga";
wypozitie = "Jos";
wyinstructions = true;
}
Frame 177
_root.message.text = ("You survived for " + _root.dimer) + " Seconds!";
_root.scoretxt = "Score: " + _root.score;
Instance of Symbol 353 MovieClip in Frame 177
//component parameters
onClipEvent (construct) {
wynume = "TowerDefence";
wyculoare = 3816005 /* 0x3A3A45 */;
wyasezare = "Vertical";
wyaliniere = "Centru";
wypozitie = "Sus";
wyinstructions = false;
}
Frame 178
pCount = 0;
_root.interval = 60;
_root.attached = false;
_root.scol._visible = false;
_root.darksky._visible = false;
Instance of Symbol 220 MovieClip in Frame 178
onClipEvent (enterFrame) {
this._x = this._x - 0.2;
if (this._x < -150) {
this._x = 800;
}
}
Instance of Symbol 222 MovieClip in Frame 178
onClipEvent (enterFrame) {
this._x = this._x - 0.3;
if (this._x < -150) {
this._x = 800;
}
}
Instance of Symbol 224 MovieClip in Frame 178
onClipEvent (enterFrame) {
this._x = this._x - 0.2;
if (this._x < -150) {
this._x = 800;
}
}
Instance of Symbol 226 MovieClip in Frame 178
onClipEvent (enterFrame) {
this._x = this._x - 0.5;
if (this._x < -150) {
this._x = 800;
}
}
Instance of Symbol 220 MovieClip in Frame 178
onClipEvent (enterFrame) {
this._x = this._x - 1;
if (this._x < -150) {
this._x = 800;
}
}
Instance of Symbol 380 MovieClip "princess" in Frame 178
onClipEvent (enterFrame) {
this._y = _root.castle._y - 210;
}
Instance of Symbol 220 MovieClip in Frame 178
onClipEvent (enterFrame) {
this._x = this._x - 0.2;
if (this._x < -150) {
this._x = 800;
}
}
Instance of Symbol 222 MovieClip in Frame 178
onClipEvent (enterFrame) {
this._x = this._x - 0.3;
if (this._x < -150) {
this._x = 800;
}
}
Instance of Symbol 224 MovieClip in Frame 178
onClipEvent (enterFrame) {
this._x = this._x - 0.2;
if (this._x < -150) {
this._x = 800;
}
}
Instance of Symbol 226 MovieClip in Frame 178
onClipEvent (enterFrame) {
this._x = this._x - 0.5;
if (this._x < -150) {
this._x = 800;
}
}
Instance of Symbol 220 MovieClip in Frame 178
onClipEvent (enterFrame) {
this._x = this._x - 1;
if (this._x < -150) {
this._x = 800;
}
}
Instance of Symbol 230 MovieClip "castle" in Frame 178
onClipEvent (load) {
vcamshake = 3;
castleshake = 3;
drop9 = false;
drop8 = false;
drop7 = false;
drop6 = false;
drop5 = false;
drop4 = false;
drop3 = false;
drop2 = false;
drop1 = false;
drop0 = false;
}
onClipEvent (enterFrame) {
if ((_root.hbar._xscale <= 90) && (drop9 == false)) {
this._y = 403;
cshake = 10;
drop9 = true;
}
if ((_root.hbar._xscale <= 80) && (drop8 == false)) {
this._y = 417;
cshake = 10;
drop8 = true;
}
if ((_root.hbar._xscale <= 70) && (drop7 == false)) {
this._y = 431;
cshake = 10;
drop7 = true;
}
if ((_root.hbar._xscale <= 60) && (drop6 == false)) {
this._y = 445;
cshake = 10;
drop6 = true;
}
if ((_root.hbar._xscale <= 50) && (drop5 == false)) {
this._y = 459;
cshake = 10;
drop5 = true;
}
if ((_root.hbar._xscale <= 40) && (drop4 == false)) {
this._y = 473;
cshake = 10;
drop4 = true;
}
if ((_root.hbar._xscale <= 30) && (drop3 == false)) {
this._y = 487;
cshake = 10;
drop3 = true;
}
if ((_root.hbar._xscale <= 20) && (drop2 == false)) {
this._y = 501;
cshake = 10;
drop2 = true;
}
if ((_root.hbar._xscale <= 10) && (drop1 == false)) {
this._y = 515;
cshake = 10;
drop1 = true;
}
if ((_root.hbar._xscale <= 1) && (drop0 == false)) {
this._y = 529;
drop9 = true;
}
if (cshake > 0) {
cshake = cshake - 1;
castleshake = -castleshake;
_root.castle._x = 318 + castleshake;
var my_sound = new Sound();
my_sound.attachSound("tcollapse");
if (_root.sunet == true) {
my_sound.start();
}
}
if (shake > 0) {
shake = shake - 1;
vcamshake = -vcamshake;
_root._x = vcamshake;
} else {
_root._x = 0;
}
}
Instance of Symbol 466 MovieClip in Frame 178
onClipEvent (enterFrame) {
_root.interval = 60 - (_root.counter.count / 20);
}
Instance of Symbol 468 MovieClip "s2" in Frame 178
onClipEvent (load) {
parentid = 1;
hSpeed = 0;
vSpeed = 0;
bounce = 0;
angletoparent = 0;
heightdiff = 0;
widthdiff = 0;
oldx = this._x;
oldy = this._y;
newx = this._x;
newy = this._y;
gravity = 5;
fraction = 0;
distance = 50;
this._visible = false;
}
onClipEvent (enterFrame) {
hSpeed = newx - oldx;
vSpeed = (newy - oldy) + gravity;
this._x = this._x + (hSpeed / 1.2);
this._y = this._y + (vSpeed / 1.2);
heightdiff = _root._ymouse - this._y;
widthdiff = _root._xmouse - this._x;
fraction = heightdiff / widthdiff;
angletoparent = Math.atan(fraction);
angletoparent = angletoparent * 57.295779513;
angletoparent = angletoparent * 0.0174532925;
if (this._x > _root._xmouse) {
this._y = _root._ymouse + (Math.sin(angletoparent) * distance);
this._x = _root._xmouse + (Math.cos(angletoparent) * distance);
this._rotation = angletoparent * 57.295779513;
} else {
this._y = _root._ymouse + (Math.sin(angletoparent) * (-distance));
this._x = _root._xmouse + (Math.cos(angletoparent) * (-distance));
this._rotation = (angletoparent * 57.295779513) + 180;
}
oldx = newx;
oldy = newy;
newx = this._x;
newy = this._y;
}
Instance of Symbol 478 MovieClip "L01" in Frame 178
onClipEvent (enterFrame) {
if ((active == true) && (count == 0)) {
gotoAndPlay (175);
}
}
Instance of Symbol 480 MovieClip "fist" in Frame 178
onClipEvent (enterFrame) {
if (attached == true) {
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_root._ymouse >= 380) {
this._y = 380;
}
yspeed = this._y - oldy;
if ((_root._ymouse >= 380) && (yspeed > 10)) {
_root.castle.shake = 5;
count = count - 1;
_root.newSplode = _root.attachMovie("dust", "dust" + _root.pCount, _root.pCount++);
_root.newSplode._x = this._x;
_root.newSplode._y = 400;
}
if (count <= 0) {
attached = false;
this._x = -1000;
this._y = -1000;
Mouse.show();
}
this._alpha = count * 30;
oldy = this._y;
if (yspeed > 20) {
yspeed = 20;
}
this._rotation = -yspeed;
}
}
Instance of Symbol 483 MovieClip in Frame 178
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer = timer - 1;
if (timer <= 0) {
_root.newEnemy01 = _root.attachMovie("enemy", "enemy" + _root.pCount, _root.pCount++);
_root.newEnemy01._x = this._x;
_root.newEnemy01._y = this._y;
timer = _root.interval;
}
}
Instance of Symbol 483 MovieClip in Frame 178
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer = timer - 1;
if (timer <= 0) {
_root.newEnemy01 = _root.attachMovie("enemy", "enemy" + _root.pCount, _root.pCount++);
_root.newEnemy01._x = this._x;
_root.newEnemy01._y = this._y;
timer = _root.interval;
}
}
Instance of Symbol 487 MovieClip in Frame 178
onClipEvent (enterFrame) {
grey._xscale = grey._xscale - 0.2;
if (grey._xscale <= 0) {
grey._xscale = 0;
}
onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (grey._xscale == 0)) {
Mouse.hide();
_root.fist.attached = true;
_root.fist.count = 5;
_root.fist._alpha = 100;
grey._xscale = 100;
}
};
}
Instance of Symbol 489 MovieClip in Frame 178
onClipEvent (enterFrame) {
grey._xscale = grey._xscale - 0.2;
if (grey._xscale <= 0) {
grey._xscale = 0;
}
onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (grey._xscale == 0)) {
_root.L01.active = true;
_root.L01.count = 0;
grey._xscale = 100;
}
};
}
Instance of Symbol 491 MovieClip in Frame 178
onClipEvent (enterFrame) {
grey._xscale = grey._xscale - 0.2;
if (grey._xscale <= 0) {
grey._xscale = 0;
}
onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (grey._xscale == 0)) {
_root.m1.meteor._x = 180;
_root.m1.meteor._y = 40;
_root.m1.meteor._visible = true;
_root.m2.meteor._x = 360;
_root.m2.meteor._y = 40;
_root.m2.meteor._visible = true;
_root.m3.meteor._x = 540;
_root.m3.meteor._y = 40;
_root.m3.meteor._visible = true;
_root.m1.meteor.active = true;
_root.m2.meteor.active = true;
_root.m3.meteor.active = true;
_root.newSplode = _root.attachMovie("splode", "splode" + _root.pCount, _root.pCount++);
_root.newSplode._x = 180;
_root.newSplode._y = 80;
_root.newSplode = _root.attachMovie("splode", "splode" + _root.pCount, _root.pCount++);
_root.newSplode._x = 360;
_root.newSplode._y = 80;
_root.newSplode = _root.attachMovie("splode", "splode" + _root.pCount, _root.pCount++);
_root.newSplode._x = 540;
_root.newSplode._y = 80;
grey._xscale = 100;
}
};
}
Instance of Symbol 494 MovieClip "hbar" in Frame 178
onClipEvent (enterFrame) {
if (this._xscale <= 0) {
this._xscale = 0;
}
}
Instance of Symbol 496 MovieClip in Frame 178
onClipEvent (load) {
timer = random(150);
}
onClipEvent (enterFrame) {
timer = timer - 1;
if (timer <= 0) {
_root.newEnemy03 = _root.attachMovie("enemy03", "enemy03" + _root.pCount, _root.pCount++);
_root.newEnemy03._x = this._x;
_root.newEnemy03._y = 380;
timer = _root.interval * (random(10) + 50);
}
}
Instance of Symbol 496 MovieClip in Frame 178
onClipEvent (load) {
timer = random(150);
}
onClipEvent (enterFrame) {
timer = timer - 1;
if (timer <= 0) {
_root.newEnemy03 = _root.attachMovie("enemy03", "enemy03" + _root.pCount, _root.pCount++);
_root.newEnemy03._x = this._x;
_root.newEnemy03._y = 380;
timer = _root.interval * (random(10) + 50);
}
}
Instance of Symbol 498 MovieClip in Frame 178
onClipEvent (load) {
timer = random(100);
}
onClipEvent (enterFrame) {
timer = timer - 1;
if (timer <= 0) {
_root.newEnemy04 = _root.attachMovie("enemy04", "enemy04" + _root.pCount, _root.pCount++);
_root.newEnemy04._x = this._x;
_root.newEnemy04._y = 360;
timer = _root.interval * (random(20) + 30);
}
}
Instance of Symbol 498 MovieClip in Frame 178
onClipEvent (load) {
timer = random(100);
}
onClipEvent (enterFrame) {
timer = timer - 1;
if (timer <= 0) {
_root.newEnemy04 = _root.attachMovie("enemy04", "enemy04" + _root.pCount, _root.pCount++);
_root.newEnemy04._x = this._x;
_root.newEnemy04._y = 360;
timer = _root.interval * (random(20) + 30);
}
}
Instance of Symbol 500 MovieClip in Frame 178
onClipEvent (load) {
_root.E02.active = true;
}
onClipEvent (enterFrame) {
timer = timer - 1;
if (timer <= 0) {
_root.E02.active = true;
timer = _root.interval * (random(15) + 3);
}
}
Instance of Symbol 504 MovieClip "paused" in Frame 178
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 507 MovieClip "counter" in Frame 178
onClipEvent (load) {
seconds = 0;
count = 0;
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
seconds = seconds - 1;
if ((seconds <= 0) && (_root.hbar._xscale > 0)) {
seconds = 30;
count = count + 1;
counter.text = [count];
_root.dimer = counter.text;
}
if (_root.hbar._xscale <= 0) {
_parent.clear();
_root.zcore = Number((_root.counter.count * 100) + random(20));
_root.score = _root.zcore;
_root.gotoAndStop("gameoverr");
}
}
}
Instance of Symbol 556 MovieClip in Frame 178
//component parameters
onClipEvent (construct) {
wxnume = "TowerDefence";
wxaliniere = "Dreapta-Sus";
wxculoare = 4215342 /* 0x40522E */;
wxdownload = true;
wxpause = true;
wxsound = true;
}
Frame 179
removeMovieClip(_root.xxc1);
removeMovieClip(_root.xxc2);
removeMovieClip(_root.xxc3);
removeMovieClip(_root.xxc4);
Frame 180
_root.menu.removeMovieClip();
_root.best = _root.zcore;
_root.zcore = 0;
_root.updated = 0;
_root.done = 0;
done = 0;
i = 1;
while (i <= 100) {
_root["score" + i] = null;
_root["name" + i] = null;
_root["escore" + i] = null;
_root["ename" + i] = null;
i++;
}
Frame 181
function updateScoreboard(sNum) {
xmlPlayer = new XML();
xmlPlayer.ignoreWhite = true;
xmlPlayer.onLoad = function (success) {
if (success) {
_root["mcScoreboard" + sNum].mcLoading._visible = false;
myPlayer = xmlPlayer.firstChild.childNodes;
ctr2 = 0;
while (ctr2 < myPlayer.length) {
thisPlayer = _root["mcScoreboard" + sNum].sboard.mcScoreHolder.mcScore.duplicateMovieClip("mcScore" + ctr2, ctr2);
thisPlayer._y = ctr2 * thisPlayer._height;
thisPlayer._visible = true;
if ((ctr2 % 2) > 0) {
thisPlayer.gotoAndStop(2);
}
thisPlayer.txtNumber.text = (ctr2 + 1) + ")";
thisPlayer.txtNickname.text = myPlayer[ctr2].attributes.player;
thisPlayer.txtScore.text = myPlayer[ctr2].attributes.score;
ctr2++;
}
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.item = myPlayer.length;
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.speedy = 0;
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.desty = 0;
_root["mcScoreboard" + sNum].sboard.mcScoreHolder.onEnterFrame = function () {
if ((this.desty < 0) && (this._parent.dir == "up")) {
trace("up");
this.desty = this.desty + 10;
if (this.desty > 0) {
this.desty = 0;
}
}
trace((this._parent.mcBlock._height + " - ") + (this.mcScore._height * this.item));
if ((this.desty > (this._parent.mcBlock._height - (this.mcScore._height * this.item))) && (this._parent.dir == "down")) {
trace("down");
this.desty = this.desty - 10;
if (this.desty < (this._parent.mcBlock._height - (this.mcScore._height * this.item))) {
this.desty = this._parent.mcBlock._height - (this.mcScore._height * this.item);
}
}
this.speedy = (this.desty - this._y) + (this.speedy * 0.4);
this._y = this._y + this.speedy;
};
}
if (sNum == 1) {
updateScoreboard(2);
}
};
if (sNum == 1) {
xmlPlayer.load((("http://www.freeonlinegames.com/scoreboard/getTopPlayer.php?id=" + _root.gameID) + "&rand=") + random(999999));
} else if (sNum == 2) {
xmlPlayer.load(((("http://www.freeonlinegames.com/scoreboard/getTopPlayer.php?id=" + _root.gameID) + "&rand=") + random(999999)) + "&filt=1");
}
}
stop();
mcScoreboard1.sboard.dir = "stop";
mcScoreboard2.sboard.dir = "stop";
mcScoreboard1.sboard.mcScoreHolder.mcScore._visible = false;
mcScoreboard2.sboard.mcScoreHolder.mcScore._visible = false;
updateScoreboard(1);
Frame 182
cale = "http://www.freeonlinegames.com/scoreboard/score.php?game=" + _root.gameid;
loadVariablesNum (cale, 0, "POST");
Frame 190
if (done != 1) {
gotoAndPlay ("loopLoad");
} else {
gotoAndPlay ("scoreTable");
}
Frame 194
monthnume = new Array();
monthscor = new Array();
i = 1;
while (i <= 100) {
monthnume[i] = _root["name" + i];
monthscor[i] = Number(_root["score" + i].slice(0, _root["score" + i].length - 1));
i++;
}
evernume = new Array();
everscor = new Array();
i = 1;
while (i <= 100) {
evernume[i] = _root["ename" + i];
everscor[i] = Number(_root["escore" + i].slice(0, _root["escore" + i].length - 1));
i++;
}
Frame 195
stop();
if (_root.best > everscor[100]) {
scoreWind.gotoAndStop("submitScoreYes");
} else {
scoreWind.gotoAndStop("submitScoreNo");
}
if (_root.xdada == 1) {
scoreWind.gotoAndStop("topEver");
}
Symbol 8 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 21 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 30 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 39 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 40 MovieClip [UpArrow] Frame 1
stop();
Symbol 40 MovieClip [UpArrow] Frame 2
stop();
Symbol 40 MovieClip [UpArrow] Frame 3
stop();
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 55 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 60 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 61 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 69 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 77 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 85 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 86 MovieClip [DownArrow] Frame 1
stop();
Symbol 86 MovieClip [DownArrow] Frame 2
stop();
Symbol 86 MovieClip [DownArrow] Frame 3
stop();
Instance of Symbol 96 MovieClip in Symbol 97 MovieClip [enemy03] Frame 1
onClipEvent (load) {
var my_sound = new Sound();
my_sound.attachSound("kamikaze");
if (_root.sunet == true) {
my_sound.start();
}
my_sound.setVolume(60);
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (_parent._x < _root.castle._x) {
_parent._xscale = 100;
_parent._x = _parent._x + 5;
}
if (_parent._x > _root.castle._x) {
_parent._xscale = -100;
_parent._x = _parent._x - 5;
}
if (_parent.hitTest(_root.castle.ccol) == true) {
_root.newSplode = _root.attachMovie("splode", "splode" + _root.pCount, _root.pCount++);
_root.newSplode._x = _parent._x;
_root.newSplode._y = 400;
_root.castle.shake = 8;
_root.hbar._xscale = _root.hbar._xscale - 10;
_parent.removeMovieClip();
}
if (_parent.hitTest(_root.scol) == true) {
_parent.removeMovieClip();
}
onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.newSplode = _root.attachMovie("splode", "splode" + _root.pCount, _root.pCount++);
_root.newSplode._x = _parent._x;
_root.newSplode._y = 400;
_root.castle.shake = 8;
my_sound.stop();
_parent.removeMovieClip();
}
};
}
}
Symbol 113 MovieClip [splode] Frame 1
_root.scol._x = this._x;
_root.scol._y = this._y;
var my_sound = new Sound();
my_sound.attachSound("explosion");
if (_root.sunet == true) {
my_sound.start();
}
Symbol 113 MovieClip [splode] Frame 3
_root.scol._x = -5000;
Symbol 113 MovieClip [splode] Frame 31
this.removeMovieClip();
Instance of Symbol 115 MovieClip in Symbol 116 MovieClip [smoke2] Frame 1
onClipEvent (enterFrame) {
_parent._y = _parent._y - _parent.speed;
_parent.speed = _parent.speed / 1.05;
_parent._xscale = _parent._xscale + 8;
_parent._yscale = _parent._yscale + 8;
if (_parent._xscale >= 130) {
small = true;
}
if (small == true) {
_parent._xscale = _parent._xscale - 10;
_parent._yscale = _parent._yscale - 10;
}
if (_parent._xscale <= 5) {
_parent.removeMovieClip();
}
}
Instance of Symbol 118 MovieClip in Symbol 119 MovieClip [smoke1] Frame 1
onClipEvent (enterFrame) {
_parent._y = _parent._y - _parent.speed;
_parent.speed = _parent.speed / 1.05;
_parent._xscale = _parent._xscale + 8;
_parent._yscale = _parent._yscale + 8;
if (_parent._xscale >= 130) {
small = true;
}
if (small == true) {
_parent._xscale = _parent._xscale - 10;
_parent._yscale = _parent._yscale - 10;
}
if (_parent._xscale <= 5) {
_parent.removeMovieClip();
}
}
Instance of Symbol 121 MovieClip in Symbol 122 MovieClip [firetrail2] Frame 1
onClipEvent (enterFrame) {
_parent._y = _parent._y - _parent.speed;
_parent.speed = _parent.speed / 1.05;
_parent._xscale = _parent._xscale - 3;
_parent._yscale = _parent._yscale - 3;
if (_parent._xscale <= 5) {
_parent.removeMovieClip();
}
}
Instance of Symbol 124 MovieClip in Symbol 125 MovieClip [firetrail1] Frame 1
onClipEvent (enterFrame) {
_parent._y = _parent._y - _parent.speed;
_parent.speed = _parent.speed / 1.05;
_parent._xscale = _parent._xscale - 3;
_parent._yscale = _parent._yscale - 3;
if (_parent._xscale <= 5) {
_parent.removeMovieClip();
}
}
Instance of Symbol 127 MovieClip in Symbol 128 MovieClip [ember2] Frame 1
onClipEvent (enterFrame) {
_parent._y = _parent._y - _parent.speed;
_parent._x = _parent._x + (random(_parent.speed) + 1);
this._rotation = this._rotation - 25;
_parent.speed = _parent.speed / 1.05;
_parent._xscale = _parent._xscale - 3;
_parent._yscale = _parent._yscale - 3;
if (_parent._xscale <= 25) {
_parent.removeMovieClip();
}
}
Instance of Symbol 130 MovieClip in Symbol 131 MovieClip [ember1] Frame 1
onClipEvent (enterFrame) {
_parent._y = _parent._y - _parent.speed;
_parent._x = _parent._x - (random(_parent.speed) + 1);
this._rotation = this._rotation + 25;
_parent.speed = _parent.speed / 1.05;
_parent._xscale = _parent._xscale - 3;
_parent._yscale = _parent._yscale - 3;
if (_parent._xscale <= 25) {
_parent.removeMovieClip();
}
}
Symbol 153 MovieClip Frame 5
if (_root.pauza == false) {
_root.hbar._xscale = _root.hbar._xscale - 1;
var my_sound = new Sound();
my_sound.attachSound("attack");
if (_root.sunet == true) {
my_sound.start();
}
}
Symbol 153 MovieClip Frame 19
if (_root.pauza == false) {
_root.hbar._xscale = _root.hbar._xscale - 1;
var my_sound = new Sound();
my_sound.attachSound("attack");
if (_root.sunet == true) {
my_sound.start();
}
}
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 2
Instance of Symbol 158 MovieClip "E01" in Symbol 159 MovieClip [enemy] Frame 1
onClipEvent (load) {
function main() {
if (_parent.hitTest(_root.scol) == true) {
splodecheck = true;
yspeed = -30;
if (_parent._x > _root.scol._x) {
xspeed = 30;
} else {
xspeed = -30;
}
} else {
if (splodecheck == true) {
splode();
} else {
checkmouse();
if (awake == false) {
physics();
} else {
ai();
}
}
if ((_parent.hitTest(_root.E02.col) == true) && (_root.E02.E02.awake == true)) {
_root.E02.throws = true;
over = false;
_root.attached = false;
_parent.removeMovieClip();
}
if (_parent._x > 750) {
_parent.removeMovieClip();
}
if (_parent._x < -100) {
_parent.removeMovieClip();
}
if (this.hitTest(_root.scol) == true) {
this._yspeed = -10;
}
}
}
function ai() {
if (_parent._x < (_root.castle._x - 55)) {
_parent._x = _parent._x + speed;
this._xscale = 100;
gotoAndStop (2);
}
if (_parent._x > (_root.castle._x + 55)) {
_parent._x = _parent._x - speed;
this._xscale = -100;
gotoAndStop (2);
}
if ((_parent._x <= (_root.castle._x + 55)) && (_parent._x >= (_root.castle._x - 55))) {
gotoAndStop (3);
if (_root.hbar._xscale <= 0) {
gotoAndStop (1);
}
}
}
function checkmouse() {
onMouseUp = function () {
over = false;
_root.attached = false;
};
onMouseDown = function () {
if (_parent.hitTest(_root._xmouse, _root._ymouse, true) && (_root.attached == false)) {
over = true;
awake = false;
_root.attached = true;
gotoAndStop (5);
}
};
}
function physics() {
oldx = _parent._x;
oldy = _parent._y;
onMouseUp = function () {
over = false;
_root.attached = false;
gotoAndStop (4);
var _local2 = new Sound();
_local2.attachSound("throwd");
if (_root.sunet == true) {
_local2.start();
}
};
onMouseDown = function () {
if (_parent.hitTest(_root._xmouse, _root._ymouse, true) && (_root.attached == false)) {
over = true;
_root.attached = true;
}
};
if (over == true) {
_parent._x = _root._xmouse - ((_root._xmouse - _root.s2._x) / 2);
_parent._y = _root._ymouse - ((_root._ymouse - _root.s2._y) / 2);
oldrot = _parent._rotation;
_parent._rotation = _root.s2._rotation - 90;
rotspeed = _parent._rotation - oldrot;
} else {
_parent._x = _parent._x + xspeed;
_parent._y = _parent._y + yspeed;
this._rotation = this._rotation + rotspeed;
}
xspeed = _parent._x - oldx;
yspeed = _parent._y - oldy;
yspeed = yspeed + gravity;
if (_parent._y > groundheight) {
_parent._y = groundheight;
yspeed = (-yspeed) / 4;
if (yspeed < -10) {
yspeed = -10;
var _local4 = new Sound();
_local4.attachSound("hitground");
_local4.start();
}
xspeed = xspeed / 2;
}
if ((_parent.hitTest(_root.castle.ccol) == true) && (over == false)) {
if (_parent._y < (_root.castle._y - 220)) {
if (_parent._x < _root.princess._x) {
yspeed = -10;
xspeed = -20;
_root.princess._xscale = 100;
_root.princess.gotoAndPlay(5);
} else {
yspeed = -10;
xspeed = 20;
_root.princess._xscale = -100;
_root.princess.gotoAndPlay(5);
}
} else {
xspeed = (-xspeed) / 4;
if (_parent._x > _root.castle._x) {
_parent._x = _root.castle._x + 60;
if (xspeed > 5) {
xspeed = 5;
}
}
if (_parent._x < _root.castle._x) {
_parent._x = _root.castle._x - 60;
if (xspeed < -5) {
xspeed = -5;
}
}
}
}
if (((_parent._y >= (groundheight - 3)) && (over == false)) && (yspeed > -5)) {
awake = true;
this._rotation = 0;
_parent._rotation = 0;
}
}
function splode() {
gotoAndStop (4);
_parent._y = _parent._y + yspeed;
_parent._x = _parent._x + xspeed;
yspeed = yspeed + 2;
if (((_parent._y >= (groundheight - 3)) && (over == false)) && (yspeed > -5)) {
awake = true;
this._rotation = 0;
_parent._rotation = 0;
splodecheck = false;
}
}
xspeed = 0;
yspeed = 0;
groundheight = random(10) + 355;
slowness = 1;
gravity = 2;
awake = false;
over = false;
speed = 1.5;
splodecheck = false;
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (_root._currentframe != 178) {
_parent.removeMovieClip();
}
main();
}
}
Instance of Symbol 155 MovieClip in Symbol 160 MovieClip [throw] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x + (20 * _parent.dir);
_parent._y = _parent._y + _parent.yspeed;
_parent._rotation = _parent._rotation + (_parent.dir * 25);
if (_parent.hitTest(_root.castle) == true) {
_root.hbar._xscale = _root.hbar._xscale - 3;
_parent.removeMovieClip();
}
}
Symbol 172 MovieClip Frame 1
_root.scol._x = _parent._x;
_root.scol._y = _parent._y;
var my_sound = new Sound();
my_sound.attachSound("explosion");
if (_root.sunet == true) {
my_sound.start();
}
Symbol 172 MovieClip Frame 3
_root.scol._x = -5000;
Symbol 172 MovieClip Frame 31
_parent.removeMovieClip();
Symbol 185 MovieClip Frame 1
_root.scol._x = _parent._x;
_root.scol._y = _parent._y;
var my_sound = new Sound();
my_sound.attachSound("explosion");
if (_root.sunet == true) {
my_sound.start();
}
Symbol 185 MovieClip Frame 3
_root.scol._x = -5000;
Symbol 185 MovieClip Frame 31
_parent.removeMovieClip();
Instance of Symbol 191 MovieClip in Symbol 192 MovieClip [enemy04] Frame 1
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (_parent._x < _root.castle._x) {
_parent._xscale = 100;
_parent._x = _parent._x + 4;
}
if (_parent._x > _root.castle._x) {
_parent._xscale = -100;
_parent._x = _parent._x - 4;
}
onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
mousehit = true;
}
};
if (_parent.hitTest(_root.scol) == true) {
_parent.removeMovieClip();
}
if (((_parent._x < (_root.castle._x + 200)) && (_parent._x > (_root.castle._x - 200))) || (mousehit == true)) {
_root.newEnemy = _root.attachMovie("enemy", "enemy" + _root.pCount, _root.pCount++);
_root.newEnemy._x = _parent._x;
_root.newEnemy._y = _parent._y;
_root.newBoulder = _root.attachMovie("boulder", "boulder" + _root.pCount, _root.pCount++);
_root.newBoulder._x = _parent._x;
_root.newBoulder._y = _parent._y;
_parent.removeMovieClip();
}
}
}
Instance of Symbol 194 MovieClip in Symbol 195 MovieClip [boulder] Frame 1
onClipEvent (enterFrame) {
if (_parent._x < _root.castle._x) {
_parent._rotation = _parent._rotation + 15;
_parent._x = _parent._x + 5;
}
if (_parent._x > _root.castle._x) {
_parent._rotation = _parent._rotation - 15;
_parent._x = _parent._x - 5;
}
if (_parent.hitTest(_root.castle.ccol) == true) {
_root.newSplode = _root.attachMovie("dust", "dust" + _root.pCount, _root.pCount++);
_root.newSplode._x = _parent._x;
_root.newSplode._y = 400;
_root.castle.shake = 8;
_root.hbar._xscale = _root.hbar._xscale - 10;
_parent.removeMovieClip();
}
if (_parent.hitTest(_root.scol) == true) {
_parent.removeMovieClip();
}
onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.newSplode = _root.attachMovie("dust", "dust" + _root.pCount, _root.pCount++);
_root.newSplode._x = _parent._x;
_root.newSplode._y = 400;
_root.castle.shake = 8;
_parent.removeMovieClip();
}
};
}
Symbol 197 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 198 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 213 MovieClip Frame 3
if (_parent._parent.throws == true) {
gotoAndPlay (5);
} else {
gotoAndPlay (1);
}
Symbol 213 MovieClip Frame 13
_parent._parent.throws = false;
_root.newThrown = _root.attachMovie("throw", "throw" + _root.pCount, _root.pCount++);
_root.newThrown._x = _parent._parent._x;
_root.newThrown._y = _parent._parent._y;
if (_parent._parent._x < _root.castle._x) {
_root.newThrown.dir = 1;
_root.newThrown._x = _root.newThrown._x + 50;
} else {
_root.newThrown.dir = -1;
_root.newThrown._x = _root.newThrown._x - 50;
}
Symbol 214 MovieClip Frame 1
stop();
Instance of Symbol 214 MovieClip "E02" in Symbol 217 MovieClip [enemy02] Frame 1
onClipEvent (load) {
function main() {
if (_parent.hitTest(_root.scol) == true) {
_parent._x = -500;
}
checkmouse();
if (awake == false) {
physics();
}
if (_parent.throws == true) {
throwage();
}
if (_parent._x > 750) {
_parent.active = false;
}
if (_parent._x < -300) {
_parent.active = false;
}
}
function checkmouse() {
onMouseUp = function () {
over = false;
_root.attached = false;
};
onMouseDown = function () {
if (_parent.hitTest(_root._xmouse, _root._ymouse, true) && (_root.attached == false)) {
over = true;
awake = false;
_root.attached = true;
}
};
}
function physics() {
oldx = _parent._x;
oldy = _parent._y;
onMouseUp = function () {
over = false;
_root.attached = false;
};
onMouseDown = function () {
if (_parent.hitTest(_root._xmouse, _root._ymouse, true) && (_root.attached == false)) {
over = true;
_root.attached = true;
}
};
if (over == true) {
_parent._x = _parent._x + ((_root._xmouse - _parent._x) / slowness);
_parent._y = _parent._y + ((_root._ymouse - _parent._y) / slowness);
oldrot = _parent._rotation;
_parent._rotation = _root.s2._rotation - 90;
rotspeed = _parent._rotation - oldrot;
} else {
_parent._x = _parent._x + xspeed;
_parent._y = _parent._y + yspeed;
this._rotation = this._rotation + rotspeed;
}
xspeed = _parent._x - oldx;
yspeed = _parent._y - oldy;
yspeed = yspeed + gravity;
if (_parent._y > groundheight) {
_parent._y = groundheight;
yspeed = (-yspeed) / 4;
if (yspeed < -10) {
yspeed = -10;
}
xspeed = xspeed / 2;
}
if ((_parent.hitTest(_root.castle.ccol) == true) && (over == false)) {
if (_parent._y < (_root.castle._y - 220)) {
yspeed = -yspeed;
if (yspeed < -10) {
yspeed = -10;
}
} else {
xspeed = (-xspeed) / 4;
if (_parent._x > _root.castle._x) {
_parent._x = _root.castle._x + 60;
if (xspeed > 5) {
xspeed = 5;
}
}
if (_parent._x < _root.castle._x) {
_parent._x = _root.castle._x - 60;
if (xspeed < -5) {
xspeed = -5;
}
}
}
}
if (((_parent._y >= (groundheight - 3)) && (over == false)) && (yspeed > -5)) {
awake = true;
this._rotation = 0;
_parent._rotation = 0;
}
}
function throwage() {
gotoAndStop (2);
}
xspeed = 0;
yspeed = 0;
groundheight = random(10) + 335;
slowness = 50;
gravity = 2;
awake = false;
over = false;
speed = 2;
_parent.col._visible = false;
}
onClipEvent (enterFrame) {
if (_root.pauza == false) {
if (_parent.active == true) {
main();
if (_parent._x > (_root.castle._x + 150)) {
_parent._x = _parent._x - 3;
gotoAndStop (1);
_parent._xscale = -100;
} else if (_parent._x < (_root.castle._x - 150)) {
_parent._x = _parent._x + 3;
gotoAndStop (1);
_parent._xscale = 100;
} else {
gotoAndStop (2);
}
}
}
}
Instance of Symbol 228 MovieClip "ccol" in Symbol 230 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 220 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 0.2;
if (this._x < -150) {
this._x = 800;
}
}
Instance of Symbol 222 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 0.3;
if (this._x < -150) {
this._x = 800;
}
}
Instance of Symbol 224 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 0.2;
if (this._x < -150) {
this._x = 800;
}
}
Instance of Symbol 226 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 0.5;
if (this._x < -150) {
this._x = 800;
}
}
Instance of Symbol 220 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 1;
if (this._x < -150) {
this._x = 800;
}
}
Symbol 234 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=80&area=loader", "_blank");
}
Symbol 238 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 1
stop();
Symbol 258 MovieClip Frame 50
stop();
_parent.play();
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 28
gotoAndPlay ("loop");
Symbol 289 MovieClip Frame 9
stop();
Symbol 289 MovieClip Frame 15
if (hit) {
gotoAndPlay ("aftersnd");
} else {
gotoAndPlay ("trans");
}
Symbol 289 MovieClip Frame 30
gotoAndPlay ("idle");
Symbol 291 MovieClip Frame 9
stop();
Symbol 291 MovieClip Frame 15
if (hit) {
gotoAndPlay ("aftersnd");
} else {
gotoAndPlay ("trans");
}
Symbol 291 MovieClip Frame 30
gotoAndPlay ("idle");
Symbol 293 MovieClip Frame 9
stop();
Symbol 293 MovieClip Frame 15
if (hit) {
gotoAndPlay ("aftersnd");
} else {
gotoAndPlay ("trans");
}
Symbol 293 MovieClip Frame 30
gotoAndPlay ("idle");
Symbol 296 Button
on (release) {
_root.inst._visible = false;
_root.opt._visible = false;
_root.lvl._visible = false;
_root.opt._visible = true;
}
Symbol 300 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 305 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=80&area=gameover", "_blank");
}
Symbol 312 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 312 MovieClip Frame 2
wxculoarea2 = new Color(but2);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 312 MovieClip Frame 3
wxculoarea2 = new Color(but2);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 317 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 320 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 325 MovieClip Frame 1
stop();
Symbol 328 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 329 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 330 MovieClip Frame 1
stop();
Symbol 331 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=80&area=menu", "_blank");
}
Symbol 334 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 334 MovieClip Frame 2
wxculoarea2 = new Color(but3);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 334 MovieClip Frame 3
wxculoarea2 = new Color(but3);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 335 Button
on (release) {
_root.gotoAndPlay("submitScore");
}
Symbol 342 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 342 MovieClip Frame 2
wxculoarea2 = new Color(but1);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 342 MovieClip Frame 3
wxculoarea2 = new Color(but1);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 343 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 350 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 350 MovieClip Frame 2
wxculoarea2 = new Color(but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 350 MovieClip Frame 3
wxculoarea2 = new Color(but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 351 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 352 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 1
function instructionsFunction() {
_root.inst._visible = false;
_root.opt._visible = false;
_root.lvl._visible = false;
_root.inst._visible = true;
_root.logo._visible = false;
_root.go._visible = false;
_root.butoane._visible = false;
_root.playy._visible = false;
}
stop();
if ((wyasezare == "Orizontal") && (wyinstructions == false)) {
this.gotoAndStop(2);
}
if (((wyasezare == "Vertical") && (wyinstructions == true)) && (wypozitie == "Sus")) {
this.gotoAndStop(3);
}
if (((wyasezare == "Vertical") && (wyinstructions == true)) && (wypozitie == "Jos")) {
this.gotoAndStop(4);
}
if (((wyasezare == "Orizontal") && (wyinstructions == true)) && (wypozitie == "Sus")) {
this.gotoAndStop(5);
}
if (((wyasezare == "Orizontal") && (wyinstructions == true)) && (wypozitie == "Jos")) {
this.gotoAndStop(6);
}
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 353 MovieClip Frame 2
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 353 MovieClip Frame 3
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 353 MovieClip Frame 4
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 353 MovieClip Frame 5
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 353 MovieClip Frame 6
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 360 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 364 Button
on (release) {
_root.inst._visible = false;
_root.opt._visible = false;
_root.lvl._visible = false;
_root.opt._visible = true;
}
Symbol 369 Button
on (release) {
_root.inst._visible = false;
_root.opt._visible = false;
_root.lvl._visible = false;
_root.inst._visible = false;
_root.logo._visible = true;
_root.go._visible = true;
_root.butoane._visible = true;
_root.playy._visible = true;
}
Symbol 380 MovieClip Frame 1
stop();
Symbol 390 Button
on (release) {
gotoAndStop (2);
}
Symbol 396 Button
on (release) {
gotoAndStop (3);
}
Symbol 405 Button
on (release) {
gotoAndStop (1);
}
Symbol 413 MovieClip Frame 1
stop();
Instance of Symbol 380 MovieClip in Symbol 413 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hbar._xscale <= 90) {
this._y = 196;
}
if (_root.hbar._xscale <= 80) {
this._y = 210;
}
if (_root.hbar._xscale <= 70) {
this._y = 224;
}
if (_root.hbar._xscale <= 60) {
this._y = 238;
}
if (_root.hbar._xscale <= 50) {
this._y = 252;
}
if (_root.hbar._xscale <= 40) {
this._y = 266;
}
if (_root.hbar._xscale <= 30) {
this._y = 280;
}
if (_root.hbar._xscale <= 20) {
this._y = 294;
}
if (_root.hbar._xscale <= 10) {
this._y = 308;
}
if (_root.hbar._xscale <= 1) {
this._y = 322;
}
}
Symbol 413 MovieClip Frame 2
stop();
Symbol 413 MovieClip Frame 3
stop();
Symbol 417 Button
on (release) {
_root.inst._visible = false;
_root.opt._visible = false;
_root.lvl._visible = false;
_root.opt._visible = false;
}
Symbol 420 Button
on (release) {
_root._quality = "HIGH";
}
Symbol 423 Button
on (release) {
_root._quality = "MEDIUM";
}
Symbol 425 Button
on (release) {
_root._quality = "LOW";
}
Symbol 427 Button
on (release) {
gotoAndStop (3);
}
Symbol 436 Button
on (release) {
gotoAndStop (1);
}
Symbol 443 Button
on (release) {
gotoAndStop (2);
}
Symbol 444 MovieClip Frame 1
stop();
Symbol 444 MovieClip Frame 2
stop();
Symbol 444 MovieClip Frame 3
stop();
Symbol 446 MovieClip Frame 1
stop();
Symbol 453 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 457 Button
on (release) {
_root.xdada = 0;
var myVar = new LoadVars();
myVar.onLoad = function () {
getURL ("http://www.freeonlinegames.com/scoreboard.php?", "_blank");
};
myVar.score = _root.score;
myVar.score2 = _root.earl223(String(_root.score));
myVar.gamer = _root.gameID;
myVar.id = random(9999999);
myVar.toString();
myVar.sendAndLoad("http://www0.freeonlinegames.com/scoreboard/score_c.php", myVar, "POST");
}
Instance of Symbol 471 MovieClip "b" in Symbol 474 MovieClip Frame 1
onClipEvent (load) {
this._x = 0;
this._y = 0;
}
Instance of Symbol 471 MovieClip "m" in Symbol 474 MovieClip Frame 1
onClipEvent (load) {
this._x = 0;
this._y = 0;
}
Instance of Symbol 473 MovieClip "meteor" in Symbol 474 MovieClip Frame 1
onClipEvent (enterFrame) {
speed = 5;
if (over == true) {
oldy = this._y;
oldx = this._x;
select = true;
endX = _root._xmouse;
endY = _root._ymouse;
this._x = this._x + ((endX - this._x) / speed);
this._y = this._y + ((endY - this._y) / speed);
yspeed = this._y - oldy;
xspeed = this._x - oldx;
}
onMouseUp = function () {
over = false;
_root.attached = false;
};
onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (_root.attached == false)) {
over = true;
_root.attached = true;
}
};
if (select == true) {
yspeed = yspeed + 2;
if (over == false) {
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
}
if ((this._y >= 350) && (active == true)) {
_root.newSplode = _parent.attachMovie("splode", "splode" + _root.pCount, _root.pCount++);
_root.newSplode._x = this._x;
_root.newSplode._y = 400;
this._visible = false;
active = false;
over = false;
_root.attached = false;
select = false;
this._y = -5000;
_root.castle.shake = 8;
}
if (select == true) {
_root.newSmoke1 = _root.m1.b.attachMovie("smoke1", "smoke1" + _root.pCount, _root.pCount++);
_root.newSmoke1._x = (this._x + random(32)) - 16;
_root.newSmoke1._y = (this._y + random(32)) - 16;
_root.newSmoke1.speed = 5;
_root.newSmoke2 = _root.m1.b.attachMovie("smoke2", "smoke2" + _root.pCount, _root.pCount++);
_root.newSmoke2._x = (this._x + random(32)) - 16;
_root.newSmoke2._y = (this._y + random(32)) - 16;
_root.newSmoke2.speed = 5;
_root.newFire1 = _root.m1.m.attachMovie("firetrail1", "firetrail1" + _root.pCount, _root.pCount++);
_root.newFire1._x = (this._x + random(28)) - 14;
_root.newFire1._y = (this._y + random(28)) - 14;
_root.newFire1.speed = 5;
_root.newFire2 = _root.m1.m.attachMovie("firetrail2", "firetrail2" + _root.pCount, _root.pCount++);
_root.newFire2._x = (this._x + random(28)) - 14;
_root.newFire2._y = (this._y + random(28)) - 14;
_root.newFire2.speed = 5;
}
}
Instance of Symbol 471 MovieClip "b" in Symbol 475 MovieClip Frame 1
onClipEvent (load) {
this._x = 0;
this._y = 0;
}
Instance of Symbol 471 MovieClip "m" in Symbol 475 MovieClip Frame 1
onClipEvent (load) {
this._x = 0;
this._y = 0;
}
Instance of Symbol 473 MovieClip "meteor" in Symbol 475 MovieClip Frame 1
onClipEvent (enterFrame) {
speed = 5;
if (over == true) {
oldy = this._y;
oldx = this._x;
select = true;
endX = _root._xmouse;
endY = _root._ymouse;
this._x = this._x + ((endX - this._x) / speed);
this._y = this._y + ((endY - this._y) / speed);
yspeed = this._y - oldy;
xspeed = this._x - oldx;
}
onMouseUp = function () {
over = false;
_root.attached = false;
};
onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (_root.attached == false)) {
over = true;
_root.attached = true;
}
};
if (select == true) {
yspeed = yspeed + 2;
if (over == false) {
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
}
if ((this._y >= 350) && (active == true)) {
_root.newSplode = _parent.attachMovie("splode", "splode" + _root.pCount, _root.pCount++);
_root.newSplode._x = this._x;
_root.newSplode._y = 400;
this._visible = false;
active = false;
over = false;
_root.attached = false;
select = false;
this._y = -5000;
_root.castle.shake = 8;
}
if (select == true) {
_root.newSmoke1 = _root.m2.b.attachMovie("smoke1", "smoke1" + _root.pCount, _root.pCount++);
_root.newSmoke1._x = (this._x + random(32)) - 16;
_root.newSmoke1._y = (this._y + random(32)) - 16;
_root.newSmoke1.speed = 5;
_root.newSmoke2 = _root.m2.b.attachMovie("smoke2", "smoke2" + _root.pCount, _root.pCount++);
_root.newSmoke2._x = (this._x + random(32)) - 16;
_root.newSmoke2._y = (this._y + random(32)) - 16;
_root.newSmoke2.speed = 5;
_root.newFire1 = _root.m2.m.attachMovie("firetrail1", "firetrail1" + _root.pCount, _root.pCount++);
_root.newFire1._x = (this._x + random(28)) - 14;
_root.newFire1._y = (this._y + random(28)) - 14;
_root.newFire1.speed = 5;
_root.newFire2 = _root.m2.m.attachMovie("firetrail2", "firetrail2" + _root.pCount, _root.pCount++);
_root.newFire2._x = (this._x + random(28)) - 14;
_root.newFire2._y = (this._y + random(28)) - 14;
_root.newFire2.speed = 5;
}
}
Instance of Symbol 471 MovieClip "b" in Symbol 476 MovieClip Frame 1
onClipEvent (load) {
this._x = 0;
this._y = 0;
}
Instance of Symbol 471 MovieClip "m" in Symbol 476 MovieClip Frame 1
onClipEvent (load) {
this._x = 0;
this._y = 0;
}
Instance of Symbol 473 MovieClip "meteor" in Symbol 476 MovieClip Frame 1
onClipEvent (enterFrame) {
speed = 5;
if (over == true) {
oldy = this._y;
oldx = this._x;
select = true;
endX = _root._xmouse;
endY = _root._ymouse;
this._x = this._x + ((endX - this._x) / speed);
this._y = this._y + ((endY - this._y) / speed);
yspeed = this._y - oldy;
xspeed = this._x - oldx;
}
onMouseUp = function () {
over = false;
_root.attached = false;
};
onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (_root.attached == false)) {
over = true;
_root.attached = true;
}
};
if (select == true) {
yspeed = yspeed + 2;
if (over == false) {
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
}
if ((this._y >= 350) && (active == true)) {
_root.newSplode = _parent.attachMovie("splode", "splode" + _root.pCount, _root.pCount++);
_root.newSplode._x = this._x;
_root.newSplode._y = 400;
this._visible = false;
active = false;
over = false;
_root.attached = false;
select = false;
this._y = -5000;
_root.castle.shake = 8;
}
if (select == true) {
_root.newSmoke1 = _root.m3.b.attachMovie("smoke1", "smoke1" + _root.pCount, _root.pCount++);
_root.newSmoke1._x = (this._x + random(32)) - 16;
_root.newSmoke1._y = (this._y + random(32)) - 16;
_root.newSmoke1.speed = 5;
_root.newSmoke2 = _root.m3.b.attachMovie("smoke2", "smoke2" + _root.pCount, _root.pCount++);
_root.newSmoke2._x = (this._x + random(32)) - 16;
_root.newSmoke2._y = (this._y + random(32)) - 16;
_root.newSmoke2.speed = 5;
_root.newFire1 = _root.m3.m.attachMovie("firetrail1", "firetrail1" + _root.pCount, _root.pCount++);
_root.newFire1._x = (this._x + random(28)) - 14;
_root.newFire1._y = (this._y + random(28)) - 14;
_root.newFire1.speed = 5;
_root.newFire2 = _root.m3.m.attachMovie("firetrail2", "firetrail2" + _root.pCount, _root.pCount++);
_root.newFire2._x = (this._x + random(28)) - 14;
_root.newFire2._y = (this._y + random(28)) - 14;
_root.newFire2.speed = 5;
}
}
Symbol 478 MovieClip Frame 1
if (active == true) {
count = count + 1;
this._x = random(500) + 75;
_root.darksky._visible = true;
_root.darksky._alpha = 100;
_root.castle.shake = 15;
_root.newSplode = _parent.attachMovie("elec", "elec" + _root.pCount, _root.pCount++);
_root.newSplode._x = this._x;
_root.newSplode._y = 400;
var my_sound = new Sound();
my_sound.attachSound("thunder");
if (_root.sunet == true) {
my_sound.start();
}
} else {
stop();
}
Symbol 478 MovieClip Frame 16
_root.darksky._alpha = 50;
Symbol 478 MovieClip Frame 18
_root.darksky._visible = false;
if (count >= 3) {
active = false;
this._x = 5000;
}
Symbol 509 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=80&area=paused", "_blank");
}
Symbol 510 Button
on (release) {
_parent.mainMenuFunction();
}
Symbol 511 Button
on (release, keyPress "p") {
_parent.pauseFunction();
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=80&area=paused", "_blank");
}
Symbol 512 Button
on (release, keyPress "s") {
_parent.soundFunction();
}
Symbol 521 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wxnume;
getURL (targetul3, "_blank");
}
Symbol 522 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wxnume;
getURL (targetul2, "_blank");
}
Symbol 523 Button
on (release, keyPress "p") {
_parent.pauseFunction();
}
Symbol 524 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wxnume) + ".exe";
getURL (targetul1);
}
Symbol 527 MovieClip Frame 1
stop();
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
_parent.wxbutno = 6;
if (((_parent.wxdownload == false) && (_parent.wxpause == true)) && (_parent.wxsound == true)) {
this.gotoAndStop(2);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == false)) && (_parent.wxsound == true)) {
this.gotoAndStop(3);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == true)) && (_parent.wxsound == false)) {
this.gotoAndStop(4);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == false)) && (_parent.wxsound == true)) {
this.gotoAndStop(5);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == true)) && (_parent.wxsound == false)) {
this.gotoAndStop(6);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == false)) && (_parent.wxsound == false)) {
this.gotoAndStop(7);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == false)) && (_parent.wxsound == false)) {
this.gotoAndStop(8);
_parent.wxbutno = 3;
}
Symbol 527 MovieClip Frame 2
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 527 MovieClip Frame 3
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 527 MovieClip Frame 4
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 527 MovieClip Frame 5
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 527 MovieClip Frame 6
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 527 MovieClip Frame 7
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 527 MovieClip Frame 8
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 532 Button
on (press) {
_parent.play();
}
Symbol 535 MovieClip Frame 1
stop();
if (_parent.wxaliniere == "Dreapta-Jos") {
this.gotoAndStop(2);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 6)) {
this.gotoAndStop(3);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 5)) {
this.gotoAndStop(5);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 4)) {
this.gotoAndStop(6);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 3)) {
this.gotoAndStop(7);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 6)) {
this.gotoAndStop(4);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 5)) {
this.gotoAndStop(8);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 4)) {
this.gotoAndStop(9);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 3)) {
this.gotoAndStop(10);
}
Symbol 535 MovieClip Frame 2
tg._x = 147;
tg._y = 1.1;
Symbol 535 MovieClip Frame 3
tg._x = 147;
tg._y = -174.9;
Symbol 535 MovieClip Frame 4
tg._x = 1.5;
tg._y = -174.9;
Symbol 535 MovieClip Frame 5
tg._x = 147;
tg._y = -152.4;
Symbol 535 MovieClip Frame 6
tg._x = 147;
tg._y = -128.9;
Symbol 535 MovieClip Frame 7
tg._x = 147;
tg._y = -104.9;
Symbol 535 MovieClip Frame 8
tg._x = 1.5;
tg._y = -151.4;
Symbol 535 MovieClip Frame 9
tg._x = 1.5;
tg._y = -128.4;
Symbol 535 MovieClip Frame 10
tg._x = 1.5;
tg._y = -104.9;
Symbol 554 MovieClip Frame 1
stop();
this.onRollOver = function () {
if (_parent._parent._currentframe <= 10) {
_parent._parent.gotoAndPlay(11);
}
};
if (_parent._parent.wxbutno == 5) {
this.gotoAndStop(2);
}
if (_parent._parent.wxbutno == 4) {
this.gotoAndStop(3);
}
if (_parent._parent.wxbutno == 3) {
this.gotoAndStop(4);
}
Symbol 555 MovieClip Frame 1
stop();
if ((_parent.wxaliniere == "Stanga-Sus") || (_parent.wxaliniere == "Dreapta-Sus")) {
this.gotoAndStop(2);
}
Symbol 556 MovieClip Frame 1
function pauseFunction() {
if (_root.pauza == false) {
_root.paused._visible = true;
_root.pauza = true;
} else {
_root.paused._visible = false;
_root.pauza = false;
}
}
function soundFunction() {
if (_root.sunet == true) {
_root.sunet = false;
} else {
_root.sunet = true;
}
}
function mainMenuFunction() {
i = 0;
while (i <= 4) {
j = 0;
while (j <= 100) {
_root[("enemy" + i) + j].removeMovieClip();
_root["boulder" + j].removeMovieClip();
j++;
}
i++;
}
_root.gotoAndStop("coperta");
}
stop();
wxnguides._alpha = 0;
my_color = new Color(my_mc);
my_color.setRGB(wxculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wxnmenu.tg);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3 = new Color(wxnfer);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
Symbol 556 MovieClip Frame 10
stop();
Symbol 567 MovieClip Frame 1
stop();
Symbol 567 MovieClip Frame 2
stop();
Symbol 578 Button
on (press) {
sboard.dir = "up";
}
on (release) {
sboard.dir = "stop";
}
Symbol 579 Button
on (press) {
sboard.dir = "down";
}
on (release) {
sboard.dir = "stop";
}
Symbol 590 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 595 MovieClip Frame 1
scroll1.setScrollProperties(130, 0, 220);
this.chHand1 = function () {
scoresScroll._y = -(scroll1.getScrollPosition() * 2);
};
scroll1.setChangeHandler("chHand1");
i = 1;
while (i <= 30) {
scoresScroll["n" + i].text = _root.monthnume[i];
scoresScroll["s" + i].text = _root.monthscor[i];
i++;
}
Symbol 602 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 907 MovieClip Frame 1
scroll1.setScrollProperties(130, 0, 915);
this.chHand1 = function () {
scoresScroll._y = -(scroll1.getScrollPosition() * 2);
};
scroll1.setChangeHandler("chHand1");
q = 1;
while (q <= 100) {
scoresScroll["n" + q].text = _root.evernume[q];
scoresScroll["s" + q].text = _root.everscor[q];
q++;
}
Instance of Symbol 198 MovieClip [FScrollBarSymbol] "scroll1" in Symbol 907 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
horizontal = false;
}
Symbol 923 Button
on (release) {
i = 1;
while (i <= 100) {
if (_root.best > _root.monthscor[i]) {
k = 100;
while (k >= (i + 1)) {
_root.monthscor[k] = _root.monthscor[k - 1];
_root.monthnume[k] = _root.monthnume[k - 1];
k--;
}
_root.monthscor[i] = _root.best;
_root.monthnume[i] = _root.nickname;
i = 31;
}
i++;
}
i = 1;
while (i <= 100) {
if (_root.best > _root.everscor[i]) {
k = 100;
while (k >= (i + 1)) {
_root.everscor[k] = _root.everscor[k - 1];
_root.evernume[k] = _root.evernume[k - 1];
k--;
}
_root.everscor[i] = _root.best;
_root.evernume[i] = _root.nickname;
i = 31;
}
i++;
}
gotoAndPlay ("submit");
}
Symbol 929 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 933 MovieClip Frame 1
stop();
Symbol 933 MovieClip Frame 9
stop();
Symbol 933 MovieClip Frame 22
stop();
Symbol 933 MovieClip Frame 34
var my_date = new Date();
codul = Math.round(my_date.getTime() / 1000) * _root.best;
cale = (((((("http://www.freeonlinegames.com/scoreboard/update.php?game=" + _root.gameid) + "&name=") + _root.nickname) + "&score=") + _root.best) + "&code=") + codul;
loadVariablesNum (cale, 0, "GET");
gotoAndPlay ("loop");
Symbol 933 MovieClip Frame 45
if (_root.updated != 1) {
gotoAndPlay ("loop");
} else {
_root.best = 0;
_root.score = 0;
_root.xdada = 1;
_root.gotoAndPlay("submitScore");
}