Frame 1
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
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
tg = tgprel - 1;
if (tg <= 9) {
procent = "0" + tg;
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 9
if (Math.round(b1 / 1024) <= 100) {
gotoAndPlay ("loop2");
}
Frame 11
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
tg = tgPrel - 2;
if (tgPrel <= 9) {
procent = "0" + tg;
trace(procent);
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 14
if (b1 < b2) {
gotoAndPlay ("loop3");
}
Frame 15
procent = "--";
prel.gotoAndStop(100);
Frame 174
_root.sunet = true;
Frame 175
function SoundPlay(name, vol) {
var _local1 = _root;
var _local2 = vol;
_local2 = _local2 / 100;
if (snd_vol > 0) {
switch (name) {
case "START" :
if (_local1.sunet == true) {
SS1.start(0, 1);
SS1.setVolume(this.snd_vol * _local2);
}
break;
case "SHOOT" :
if (!((_local1.sunet == true) && (_local1.playMC._y >= 0))) {
break;
}
SS2.start(0, 1);
SS2.setVolume(this.snd_vol * _local2);
}
} else {
switch (name) {
case "start" :
if (_local1.sunet == true) {
SS1.setVolume(0);
}
return;
case "shot" :
if (!((_local1.sunet == true) && (_local1.playMC._y >= 0))) {
break;
}
SS2.setVolume(0);
}
}
}
var score = 0;
var snd_vol = 80;
var SS1 = new Sound();
SS1.attachSound("sndSTART");
var SS2 = new Sound();
SS2.attachSound("sndSHOOT");
this.stop();
Instance of Symbol 251 MovieClip "theMeniu" in Frame 175
//component parameters
onClipEvent (initialize) {
wxnume = "SpaceBugs";
wxaliniere = "Stanga-Sus";
wxculoare = 13158;
wxdownload = true;
wxpause = true;
wxsound = true;
}
Instance of Symbol 334 MovieClip "gameMegMC" in Frame 175
onClipEvent (load) {
this.swapDepths(50001);
_root.galagaMC.gameSetup();
}
Instance of Symbol 138 MovieClip [bugMC101] in Frame 175
onClipEvent (load) {
this.swapDepths(1);
}
Instance of Symbol 134 MovieClip [bugMC1] in Frame 175
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 127 MovieClip [bugMC2] in Frame 175
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 120 MovieClip [bugMC4] in Frame 175
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 115 MovieClip [bugMC3] in Frame 175
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 109 MovieClip [bugMC5] in Frame 175
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 336 MovieClip "DISPLAY" in Frame 175
onClipEvent (load) {
this.swapDepths(50000);
num = 0;
total = 0;
this.CLOVER.txt = (num + " / ") + total;
time = 0;
maxTime = 360;
ts = getTimer();
ball = false;
this.CLOCK.BALL.stop();
this.CLOCK.txt = maxTime;
this.CLOCK.BAR._rotation = 0;
score = 0;
this.scoretxt = score;
this._UP._visible = false;
this._DOWN._visible = false;
this._LEFT._visible = false;
this._RIGHT._visible = false;
}
onClipEvent (enterFrame) {
if (_parent.GameStart == true) {
this.CLOVER.txt = (num + " / ") + total;
if (num >= total) {
_parent.AS.GameOver();
}
te = getTimer();
time = int((te - ts) / 1000);
this.CLOCK.txt = maxTime - time;
this.CLOCK.BAR._rotation = (time / maxTime) * 360;
if ((time / maxTime) > 0.8) {
if (ball != true) {
ball = true;
this.CLOCK.BALL.play();
}
} else if (ball != false) {
ball = false;
this.CLOCK.BALL.gotoAndStop(1);
}
if (time >= maxTime) {
_parent.AS.GameOver();
}
this.scoretxt = score;
} else {
ts = getTimer();
if (ball != false) {
ball = false;
this.CLOCK.BALL.gotoAndStop(1);
}
}
}
Instance of Symbol 340 MovieClip "scoreBoxx" in Frame 175
onClipEvent (load) {
this.swapDepths(50001);
view = false;
}
onClipEvent (enterFrame) {
if (_root.gameLEVEL > 0) {
this.score = "SCORE : " + _root.gameSCORE;
this.level = "LEVEL : " + _root.gameLEVEL;
} else {
this.level = "";
this.score = "";
}
if (view == true) {
megn = ("frame : " + _root.gameFRAME) + newline;
if ((_root.gameFRAME % 10) == 0) {
meg = ("bugNo : " + _root.bugNo) + newline;
meg = ((meg + "bugNum : ") + _root.bugNum) + newline;
meg = ((meg + "bugMax : ") + _root.bugMax) + newline;
meg = meg + newline;
meg = ((meg + "bugShotNo : ") + _root.bugShotNo) + newline;
meg = ((meg + "bugShotNum : ") + _root.bugShotNum) + newline;
meg = ((meg + "bugShotMax : ") + _root.bugShotMax) + newline;
meg = meg + newline;
meg = ((meg + "playShotNum : ") + _root.playShotNum) + newline;
meg = ((meg + "playShotMax : ") + _root.playShotMax) + newline;
meg = meg + newline;
meg = ((meg + "bugLoopNum : ") + _root.bugLoopNum) + newline;
meg = ((meg + "bugLoopMax : ") + _root.bugLoopMax) + newline;
meg = meg + newline;
meg = ((meg + "bug0 : ") + _root.bug0.LIFE) + newline;
meg = ((((meg + "bug0 : ") + _root.bug0._x) + " , ") + _root.bug0._y) + newline;
meg = ((((meg + "bug0 : ") + _root.bug0.RS) + " , ") + _root.bug0.TXY.length) + newline;
}
_root.meg = megn + meg;
}
}
Frame 176
_root.DISPLAY.removeMovieClip();
_root.scoreBoxx.removeMovieClip();
removeMovieClip(_root.xxc1);
removeMovieClip(_root.xxc2);
removeMovieClip(_root.xxc3);
removeMovieClip(_root.xxc4);
Frame 177
_root.menu.removeMovieClip();
_root.gameid = "SpaceBugs";
_root.best = _root.gameSCORE;
_root.gameSCORE = 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 179
cale = "http://www.freeonlinegames.com/scoreboard/score.php?game=" + _root.gameid;
loadVariablesNum (cale, 0, "POST");
Frame 180
if (false) {
}
Frame 187
if (done != 1) {
gotoAndPlay ("loopLoad");
} else {
gotoAndPlay ("scoreTable");
}
Frame 191
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 192
stop();
if (_root.best > everscor[100]) {
scoreWind.gotoAndStop("submitScoreYes");
} else {
scoreWind.gotoAndStop("submitScoreNo");
}
if (_root.xdada == 1) {
scoreWind.gotoAndStop("topEver");
}
Symbol 1 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 14 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, "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 32 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 33 MovieClip [UpArrow] Frame 1
stop();
Symbol 33 MovieClip [UpArrow] Frame 2
stop();
Symbol 33 MovieClip [UpArrow] Frame 3
stop();
Symbol 39 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 48 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 53 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 54 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 62 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 70 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 78 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 79 MovieClip [DownArrow] Frame 1
stop();
Symbol 79 MovieClip [DownArrow] Frame 2
stop();
Symbol 79 MovieClip [DownArrow] Frame 3
stop();
Symbol 82 MovieClip [gameoverMc] Frame 25
this.stop();
Symbol 84 MovieClip Frame 1
this._visible = false;
this.stop();
Symbol 93 MovieClip [playMC1] Frame 1
trace("nava: " + this);
this.stop();
Symbol 93 MovieClip [playMC1] Frame 2
this.stop();
Symbol 93 MovieClip [playMC1] Frame 3
this.stop();
Symbol 93 MovieClip [playMC1] Frame 4
if (_root.sunet == true) {
bum1 = new Sound();
bum1.attachSound("bum1");
bum1.start(0, 1);
}
Symbol 93 MovieClip [playMC1] Frame 19
this._visible = false;
this.stop();
Symbol 98 MovieClip [shotMC2] Frame 12
this.stop();
Symbol 98 MovieClip [shotMC2] Frame 24
this.removeMovieClip();
Symbol 101 MovieClip [shotMC1] Frame 1
Symbol 101 MovieClip [shotMC1] Frame 10
this.gotoAndPlay(1);
Symbol 101 MovieClip [shotMC1] Frame 12
this._y = this._y + this.Speed;
this.Speed = 0;
this.MOVE = false;
Symbol 101 MovieClip [shotMC1] Frame 19
this.playShotHide();
Symbol 105 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 106 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
var _local1 = this;
if (_local1._height == 4) {
} else {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height == 1) {
} else {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 109 MovieClip [bugMC5] Frame 1
this.stop();
this.box._visible = false;
Symbol 109 MovieClip [bugMC5] Frame 2
if (_root.sunet == true) {
bum2 = new Sound();
bum2.attachSound("bum2");
bum2.start(0, 1);
}
Symbol 109 MovieClip [bugMC5] Frame 12
this.removeMovieClip();
Symbol 115 MovieClip [bugMC3] Frame 1
this.stop();
this.box._visible = false;
Symbol 115 MovieClip [bugMC3] Frame 2
this.stop();
Symbol 115 MovieClip [bugMC3] Frame 3
if (_root.sunet == true) {
bum2 = new Sound();
bum2.attachSound("bum2");
bum2.start(0, 1);
}
Symbol 115 MovieClip [bugMC3] Frame 12
this.removeMovieClip();
Symbol 120 MovieClip [bugMC4] Frame 1
this.stop();
this.box._visible = false;
Symbol 120 MovieClip [bugMC4] Frame 2
this.stop();
Symbol 120 MovieClip [bugMC4] Frame 3
if (_root.sunet == true) {
bum2 = new Sound();
bum2.attachSound("bum2");
bum2.start(0, 1);
}
Symbol 120 MovieClip [bugMC4] Frame 12
this.removeMovieClip();
Symbol 127 MovieClip [bugMC2] Frame 1
this.stop();
this.box._visible = false;
Symbol 127 MovieClip [bugMC2] Frame 2
this.stop();
Symbol 127 MovieClip [bugMC2] Frame 3
if (_root.sunet == true) {
bum2 = new Sound();
bum2.attachSound("bum2");
bum2.start(0, 1);
}
Symbol 127 MovieClip [bugMC2] Frame 12
this.removeMovieClip();
Symbol 134 MovieClip [bugMC1] Frame 1
this.stop();
this.box._visible = false;
Symbol 134 MovieClip [bugMC1] Frame 2
this.stop();
Symbol 134 MovieClip [bugMC1] Frame 3
if (_root.sunet == true) {
bum2 = new Sound();
bum2.attachSound("bum2");
bum2.start(0, 1);
}
Symbol 134 MovieClip [bugMC1] Frame 12
this.removeMovieClip();
Symbol 138 MovieClip [bugMC101] Frame 1
this.stop();
this.box._visible = false;
Symbol 138 MovieClip [bugMC101] Frame 2
if (_root.sunet == true) {
bum2 = new Sound();
bum2.attachSound("bum2");
bum2.start(0, 1);
}
Symbol 138 MovieClip [bugMC101] Frame 16
this.removeMovieClip();
Symbol 142 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?SpaceBugs", "_blank");
}
Symbol 148 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 50
stop();
_parent.play();
Symbol 196 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 28
gotoAndPlay ("loop");
Symbol 203 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wxnume;
getURL (targetul3, "_blank");
}
Symbol 204 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wxnume;
getURL (targetul2, "_blank");
}
Symbol 205 Button
on (release) {
_parent.mainMenuFunction();
}
Symbol 206 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wxnume) + ".exe";
getURL (targetul1);
}
Symbol 207 Button
on (release, keyPress "p") {
_parent.pauseFunction();
}
Symbol 208 Button
on (release, keyPress "s") {
_parent.soundFunction();
}
Symbol 222 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 222 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 222 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 222 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 222 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 222 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 222 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 222 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 227 Button
on (press) {
_parent.play();
}
Symbol 230 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 230 MovieClip Frame 2
tg._x = 147;
tg._y = 1.1;
Symbol 230 MovieClip Frame 3
tg._x = 147;
tg._y = -174.9;
Symbol 230 MovieClip Frame 4
tg._x = 1.5;
tg._y = -174.9;
Symbol 230 MovieClip Frame 5
tg._x = 147;
tg._y = -152.4;
Symbol 230 MovieClip Frame 6
tg._x = 147;
tg._y = -128.9;
Symbol 230 MovieClip Frame 7
tg._x = 147;
tg._y = -104.9;
Symbol 230 MovieClip Frame 8
tg._x = 1.5;
tg._y = -151.4;
Symbol 230 MovieClip Frame 9
tg._x = 1.5;
tg._y = -128.4;
Symbol 230 MovieClip Frame 10
tg._x = 1.5;
tg._y = -104.9;
Symbol 249 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 250 MovieClip Frame 1
stop();
if ((_parent.wxaliniere == "Stanga-Sus") || (_parent.wxaliniere == "Dreapta-Sus")) {
this.gotoAndStop(2);
}
Symbol 251 MovieClip Frame 1
function pauseFunction() {
var _local1 = _global;
trace(_local1.pauza);
if (_local1.pauza != true) {
_local1.pauza = true;
} else {
_local1.pauza = false;
}
}
function soundFunction() {
var _local1 = _root;
if (_local1.sunet == true) {
_local1.sunet = false;
} else {
_local1.sunet = true;
}
}
function mainMenuFunction() {
var _local1 = _root;
_global.pauza = false;
i = 1;
while (i <= 100) {
_local1["ps" + i].removeMovieClip();
i++;
}
_local1.galagaMC.mainMenu();
}
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 251 MovieClip Frame 10
stop();
Symbol 255 MovieClip Frame 1
#initclip 3
Color.prototype.setTintOffset = function (r, g, b, a) {
var _local1 = new Object();
_local1.rb = r;
_local1.gb = g;
_local1.bb = b;
_local1.aa = a;
this.setTransform(_local1);
};
MovieClip.prototype.setColor = function (r, g, b, a) {
var _local1 = new Color(this);
_local1.setTintOffset(r, g, b, a);
};
MovieClip.prototype.Limit = function (x, y, max) {
var _local1 = this;
if (_global.pauza != true) {
if ((Math.abs(_local1._x - x) < max) && (Math.abs(_local1._y - y) < max)) {
_local1._x = x;
_local1._y = y;
return(true);
}
return(false);
}
return(undefined);
};
MovieClip.prototype.rotateTo = function (targetX, targetY) {
var _local1 = this;
if (_global.pauza != true) {
var _local3 = targetX - _local1._x;
var _local2 = targetY - _local1._y;
_local1._rotation = (Math.atan2(_local2, _local3) * 180) / Math.PI;
}
};
MovieClip.prototype.Shot = function () {
var _local1 = this;
var _local2 = _root;
if (_global.pauza != true) {
duplicateMovieClip (_local2.bugShotMC1, "bs" + _local1.NUM, _local1.NUM + 300);
_local2["bs" + _local1.NUM]._x = _local1._x;
_local2["bs" + _local1.NUM]._y = _local1._y;
}
};
MovieClip.prototype.addXY = function (targetX, targetY, speed) {
var _local1 = this;
if (_global.pauza != true) {
if (!_local1.TXY) {
_local1.TXY = new Array();
}
_local1.TXY.push([targetX, targetY, speed]);
_local1.swapDepths(_local1.NUM + 200);
_local1.MOVE = true;
}
};
MovieClip.prototype.delXY = function () {
var _local1 = this;
if (_global.pauza != true) {
if (!_local1.TXY) {
_local1.TXY = new Array();
}
if (_local1.TXY.length > 0) {
i = 0;
while (i < (_local1.TXY.length - 1)) {
_local1.TXY[i] = _local1.TXY[i + 1];
i++;
}
if (TXY[0][0] < _local1._x) {
if (TXY[0][1] < _local1._y) {
_local1.RS = -5;
} else {
_local1.RS = -5;
}
} else if (TXY[0][1] < _local1._y) {
_local1.RS = 5;
} else {
_local1.RS = 5;
}
_local1.TXY.pop();
}
if (_local1.TXY.length < 1) {
_local1.swapDepths(_local1.NUM + 100);
_local1._rotation = -90;
_local1.MOVE = false;
}
}
};
MovieClip.prototype.moveXY2 = function () {
var _local1 = this;
if (_global.pauza != true) {
if (_local1.TXY.length > 0) {
if (_local1._y > 420) {
_local1._y = -20;
_local1.delXY();
return(false);
}
TX = _local1.TXY[0][0];
TY = _local1.TXY[0][1];
SP = _local1.TXY[0][2];
diffX = TX - _local1._x;
diffY = TY - _local1._y;
r2 = (Math.atan2(diffY, diffX) * 180) / Math.PI;
r = _local1._rotation;
if (Math.round(r - r2) < Math.round(_local1.RS)) {
_local1._rotation = r2;
} else {
_local1._rotation = _local1._rotation + _local1.RS;
}
t = (r * Math.PI) / 180;
a = SP * Math.cos(t);
b = SP * Math.sin(t);
if (_local1.Limit(TX, TY, SP)) {
_local1.delXY();
} else {
_local1._x = _local1._x + a;
_local1._y = _local1._y + b;
}
}
}
return(undefined);
};
MovieClip.prototype.moveXY = function () {
var _local1 = this;
if (_global.pauza != true) {
if (_local1.TXY.length > 0) {
TX = _local1.TXY[0][0];
TY = _local1.TXY[0][1];
SP = _local1.TXY[0][2];
if (_local1._y > 420) {
_local1._y = -20;
_local1.delXY();
return(false);
}
t = (_local1._rotation * Math.PI) / 180;
a = SP * Math.cos(t);
b = SP * Math.sin(t);
if (_local1.Limit(TX, TY, SP)) {
_local1._x = TX;
_local1._y = TY;
_local1.delXY();
} else {
_local1.rotateTo(TX, TY);
_local1._x = _local1._x + a;
_local1._y = _local1._y + b;
}
}
}
return(undefined);
};
MovieClip.prototype.moveXY3 = function () {
var _local1 = this;
if (_global.pauza != true) {
if (_local1.TXY.length > 0) {
TX = _local1.TXY[0][0];
TY = _local1.TXY[0][1];
SP = _local1.TXY[0][2];
if (_local1._y > 420) {
_local1._y = -20;
_local1.delXY();
return(false);
}
a = (TX - _local1._x) * 0.2;
if (Math.abs(a) > SP) {
if (a > 0) {
a = SP;
} else {
a = -SP;
}
}
b = (TY - _local1._y) * 0.2;
if (Math.abs(b) > SP) {
if (b > 0) {
b = SP;
} else {
b = -SP;
}
}
_local1.rotateTo(TX, TY);
SP = Math.floor(SP / 2);
if ((Math.abs(a) < SP) && (Math.abs(b) < SP)) {
_local1._x = TX;
_local1._y = TY;
_local1.delXY();
} else {
_local1._x = _local1._x + a;
_local1._y = _local1._y + b;
}
}
}
return(undefined);
};
MovieClip.prototype.smoothMove = function (targetX, targetY, speed) {
var _local1 = this;
if (_global.pauza != true) {
_local1._x = _local1._x + (speed * (targetX - _local1._x));
_local1._y = _local1._y + (speed * (targetY - _local1._y));
}
};
#endinitclip
this._visible = false;
Symbol 257 MovieClip Frame 1
_root.gameVISIBLE = false;
_root.gameSTART = false;
_root.gameLEVEL = 1;
_root.gameLINE = 0;
_root.gameSPEED = 4;
_root.gameFRAME = 0;
_root.gameSCORE = 0;
_root.wait = 0;
_root.bugNo = 0;
_root.bugNum = 0;
_root.bugMax = 0;
_root.bugDepths = 200;
_root.bugShotNo = 0;
_root.bugShotNum = 0;
_root.bugShotMax = 50;
_root.bugShotDepths = 1000;
_root.bugShotSpeed = 10;
_root.bugTempMove = 8;
_root.bugTempMax = 10;
_root.bugTempBouns = 8;
_root.playNum = 3;
_root.playMax = 3;
_root.playSpeed = 8;
_root.playDepths = 600;
_root.playCloneDepths = 700;
_root.playShotNo = 0;
_root.playShotNum = 0;
_root.playShotLimit = 5;
_root.playShotMax = 5;
_root.playShotDepths = 800;
_root.playShotCloneDepths = 900;
_root.playShotSpeed = 15;
_root.bugLoopNum = 0;
_root.bugLoopMax = 32;
_parent.viewX1 = 130;
_parent.viewY1 = 0;
_parent.viewX2 = 430;
_parent.viewY2 = 420;
this._visible = false;
this.stop();
function makePlayShotMC() {
var _local1 = _root;
var _local2 = this;
var _local3 = _parent;
i = 1;
while (i <= _local1.playShotMax) {
name = "psc" + i;
_local1.attachMovie("shotMC1", name, i + _local1.playShotCloneDepths);
cpMC = _local1[name];
cpMC.NUM = i;
cpMC._visible = false;
cpMC._xscale = (cpMC._yscale = 100);
cpMC._x = (_local3.viewX1 + ((i * cpMC._width) * 1.5)) + 5;
cpMC._y = _local3.viewY2 - 15;
cpMC.setColor(-50, -50, -50, 50);
cpMC.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if ((_local2.gameFRAME % 5) == 0) {
if (_local1.NUM <= _local2.playShotLimit) {
_local1._visible = true;
if (_local1.NUM <= (_local2.playShotLimit - _local2.playShotNum)) {
_local1.setColor(0, 0, 0, 100);
} else {
_local1.setColor(-50, -50, -50, 50);
}
} else {
_local1._visible = false;
}
}
};
name = "ps" + i;
_local1.attachMovie("shotMC1", name, i + _local1.playShotDepths);
cpMC = _local1[name];
cpMC._visible = false;
cpMC.HIT = false;
cpMC.MOVE = false;
cpMC.Speed = 0;
cpMC._xscale = (cpMC._yscale = 100);
cpMC._x = -100;
cpMC._y = -100;
cpMC.onEnterFrame = function () {
var _local1 = _root;
var _local2 = this;
if (_global.pauza != true) {
if (_local2.MOVE == true) {
_local2._y = _local2._y - _local2.Speed;
if (_local2._y < -10) {
_local2.playShotHide();
}
i = 0;
while (i < _local1.bugMAX) {
name = "bug" + i;
if (_local1[name]._visible == true) {
if (_local1[name].box.hitTest(_local2.box)) {
_local1[name].LIFE--;
if (_local1[name].LIFE < 1) {
_local1[name].swapDepths(_local1[name].NUM + 100);
_local1[name].gotoAndPlay("DIE");
_local1.gameSCORE = _local1.gameSCORE + 100;
} else {
_local1.gameSCORE = _local1.gameSCORE + 10;
}
_local2._x = _local1[name]._x;
_local2._y = _local1[name]._y;
_local2.gotoAndPlay("DIE");
}
}
i++;
}
}
}
};
cpMC.playShotHide = function () {
var _local1 = this;
_local1.HIT = false;
_local1.MOVE = false;
_local1.Speed = 0;
_local1._x = -100;
_local1._y = -100;
_local1._visible = false;
if (_root.playShotNum > 0) {
_root.playShotNum--;
}
};
i++;
}
}
function makePlayMC() {
var _local1 = _root;
var _local2 = this;
var _local3 = _parent;
_local1.gameVISIBLE = true;
i = 0;
while (i < _local1.playMAX) {
name = "playcloneMC" + i;
_local1.attachMovie("playMC1", name, i + _local1.playCloneDepths);
cpMC = _local1[name];
cpMC._visible = false;
cpMC._xscale = (cpMC._yscale = 40);
cpMC._x = (_local3.viewX2 - ((i * cpMC._width) * 1.2)) - 15;
cpMC._y = _local3.viewY2 - 15;
cpMC.NUM = i;
cpMC.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if ((_local2.gameFRAME % 5) == 0) {
if (_local1.NUM < _local2.playNum) {
_local1._visible = true;
if (_local2.playMC._currentframe < 4) {
_local1.gotoAndStop(_local2.playMC._currentframe);
} else {
_local1.gotoAndStop("ALIVE");
}
} else {
_local1._visible = false;
}
}
};
i++;
}
name = "playMC";
_local1.attachMovie("playMC1", name, i + _local1.playDepths);
cpMC = _local1[name];
cpMC.LIFE = 0;
cpMC._x = int((_local3.viewX2 - _local3.viewX1) / 2);
cpMC._y = _local3.viewY2 - 40;
cpMC._visible = false;
cpMC._xscale = (cpMC._yscale = 60);
cpMC.speedX = _local1.playSpeed;
cpMC.shotCHECK = true;
cpMC.shotKey = 0;
cpMC.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
var _local3 = _parent;
if (_global.pauza != true) {
if (_local1.LIFE > 0) {
if (_local1._x > _local2._xmouse) {
if (_local1._x < (_local2._xmouse + _local2.playSpeed)) {
_local1._x = _local2._xmouse;
} else if (_local1._x > (_local2._xmouse + (_local2.playSpeed * 2))) {
_local1._x = _local1._x - _local2.playSpeed;
_local1.gotoAndStop("LEFT");
} else {
_local1._x = _local1._x - (_local2.playSpeed / 2);
_local1.gotoAndStop("ALIVE");
}
if (_local1._x < (_local3.viewX1 + (_local1._width / 2))) {
_local1._x = _local3.viewX1 + (_local1._width / 2);
}
} else if (_local1._x < _local2._xmouse) {
if (_local1._x > (_local2._xmouse + _local2.playSpeed)) {
_local1._x = _local2._xmouse;
} else if (_local1._x < (_local2._xmouse - (_local2.playSpeed * 2))) {
_local1._x = _local1._x + _local2.playSpeed;
_local1.gotoAndStop("RIGHT");
} else {
_local1._x = _local1._x + (_local2.playSpeed / 2);
_local1.gotoAndStop("ALIVE");
}
if (_local1._x > (_local3.viewX2 - (_local1._width / 2))) {
_local1._x = _local3.viewX2 - (_local1._width / 2);
}
} else {
_local1.gotoAndStop("ALIVE");
}
}
}
};
cpMC.onMouseDown = function () {
var _local1 = this;
if (_global.pauza != true) {
if ((_local1._visible == true) && (_local1.LIFE > 0)) {
_local1.playShotShow();
}
}
};
cpMC.playShotShow = function () {
var _local1 = _parent;
var _local2 = _root;
if (_global.pauza != true) {
if (_local2.playShotNum < _local2.playShotLimit) {
_local1.SoundPlay("SHOOT", 100);
_local1.playShotNo++;
_local1.playShotNum++;
if (_local1.playShotNo > _local1.playShotMax) {
_local1.playShotNo = 1;
}
name = "ps" + _local1.playShotNo;
_local1[name]._x = this._x;
_local1[name]._y = this._y;
_local1[name]._visible = true;
_local1[name].Speed = _local2.playShotSpeed;
_local1[name].HIT = true;
_local1[name].MOVE = true;
}
}
};
}
function bugShot(mc) {
var _local1 = _root;
var _local2 = this;
if (_global.pauza != true) {
name = "bs" + _local1.bugShotNo;
_local1.attachMovie("shotMC2", name, _local1.bugShotNo + _local1.bugShotDepths);
_local1.bugShotNo++;
if (_local1.bugShotNo >= _local1.bugShotMax) {
_local1.bugShotNo = 0;
}
cpMC = _local1[name];
cpMC._x = mc._x;
cpMC._y = mc._y;
cpMC.LIFE = 100;
cpMC.speedY = 12;
cpMC.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if (_global.pauza != true) {
if (_local1.LIFE > 0) {
_local1._y = _local1._y + _local1.speedY;
if (_local1._y > _parent.viewY2) {
_local1.removeMovieClip();
}
if (_local2.playMC.box.hitTest(_local1.box)) {
_local2.playMC.LIFE = 0;
_local2.playMC.gotoAndPlay("DIE");
_local1.LIFE = 0;
_local1.gotoAndPlay("DIE");
}
}
}
};
}
}
function makeBugMC(num, mcType, life, x, y) {
var _local1 = this;
var _local2 = _root;
var _local3 = num;
if (_global.pauza != true) {
name = "bug" + _local3;
_local2.attachMovie("bugMC" + mcType, name, _local3 + _local2.bugDepths);
_local2.bugNum++;
cpMC = _local2[name];
cpMC.RS = 10;
cpMC.LIFE = life;
cpMC.NUM = _local3;
cpMC.START = false;
cpMC.MOVE = false;
cpMC.SHOT = 60 + random(60);
cpMC._x = (cpMC.TX = x);
cpMC._y = (cpMC.TY = y);
cpMC.SP = _local2.gameSPEED;
cpMC._xscale = (cpMC._yscale = 45);
cpMC._visible = false;
cpMC.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if (_local1.START) {
if (_local1.MOVE) {
_local1.moveXY();
if (_local1._y > 340) {
if (_local1.box.hitTest(_local2.playMC.box)) {
_local2.playMC.LIFE = 0;
_local2.playMC.gotoAndPlay("DIE");
_local2.gotoAndPlay("DIE");
}
} else if (_local1._y < -30) {
_local1.removeMovieClip();
}
}
if (_local1.SHOT > 0) {
_local1.SHOT--;
if (_local1.SHOT == 0) {
bugShot(_local1);
}
}
}
};
cpMC.onUnload = function () {
_root.bugNum--;
};
return(cpMC);
}
return(undefined);
}
function makeBugMCs() {
}
function bugShowBonus() {
var _local1 = _root;
num = _local1.bugTempBouns;
speed = 2;
if (_local1["bug" + num]) {
return(false);
}
if (_local1.bugMax < _local1.bugTempMax) {
_local1.bugMax = _local1.bugTempMax;
}
cpMC = this.makeBugMC(num, 5, 6, -100, -100);
cpMC._x = (cpMC.TX = 600);
cpMC._y = (cpMC.TY = 35);
cpMC._rotation = 180;
cpMC.addXY(-40, 35, speed);
cpMC.addXY(-40, -50, 20);
cpMC.START = true;
cpMC.MOVE = true;
cpMC._visible = true;
return(undefined);
}
function bugShow() {
var _local1 = _parent;
var _local2 = _root;
var _local3 = this;
if (_local2.gameLINE >= _local2.bugTYPE[_local2.gameLEVEL].length) {
return(false);
}
n = _local2.bugTYPE[_local2.gameLEVEL][_local2.gameLINE++];
if (_local2.bugMax < _local2.bugTempMax) {
_local2.bugMax = _local2.bugTempMax;
}
area = (_local2.gameLINE - 1) % 4;
centerX = _local1.viewX1 + int((_local1.viewX2 - _local1.viewX1) / 2);
centerY = _local1.viewY1 + int((_local1.viewY2 - _local1.viewY1) / 2);
i = 0;
while (i < 16) {
xx = int(i / 2);
yy = int(i % 2);
if (i >= _local2.bugTempMove) {
num = _local2.bugMax;
TX = (_local1.viewX1 + (int(_local2.bugAREA[_local2.bugLoopNum] % 8) * 30)) + 45;
TY = (_local1.viewY1 + ((3 - int(_local2.bugAREA[_local2.bugLoopNum] / 8)) * 30)) + 60;
_local2.bugMax++;
_local2.bugLoopNum++;
} else {
num = i;
TX = (_local1.viewX1 + random(200)) + 50;
TY = _local1.viewY1 - 50;
}
cpMC = _local3.makeBugMC(num, n, n + 1, -100, -100);
speed = _local2.gameSPEED + 4;
switch (area) {
case 0 :
x = (_local1.viewX1 - 20) - (xx * 25);
y = (_local1.viewY1 + 300) + (yy * 25);
cpMC._x = (cpMC.TX = x);
cpMC._y = (cpMC.TY = y);
cpMC.addXY(_local1.viewX2 - 100, y, speed);
j = 0;
while (j < 24) {
t = (((360 - j) * 15) * Math.PI) / 180;
a = (100 + (yy * 25)) * Math.cos(t);
b = (100 + (yy * 25)) * Math.sin(t);
if (yy > 0) {
s = speed * 1.3;
} else {
s = speed;
}
cpMC.addXY(centerX + a, centerY + b, s);
j++;
}
cpMC._rotation = 0;
break;
case 1 :
x = _local1.viewX2 + (xx * 25);
y = (_local1.viewY1 + 300) + (yy * 25);
cpMC._x = (cpMC.TX = x);
cpMC._y = (cpMC.TY = y);
cpMC.addXY(_local1.viewX1 + 100, y, speed);
j = 0;
while (j < 24) {
t = (((180 + j) * 15) * Math.PI) / 180;
a = (100 + (yy * 25)) * Math.cos(t);
b = (100 + (yy * 25)) * Math.sin(t);
if (yy > 0) {
s = speed * 1.3;
} else {
s = speed;
}
cpMC.addXY(centerX + a, centerY + b, s);
j++;
}
cpMC._rotation = 180;
break;
case 2 :
x = (_local1.viewX1 - 20) - (xx * 25);
y = (_local1.viewY1 + 100) - (yy * 25);
cpMC._x = (cpMC.TX = x);
cpMC._y = (cpMC.TY = y);
cpMC.addXY(_local1.viewX2 - 100, y, speed);
j = 0;
while (j < 36) {
t = (((360 + j) * 15) * Math.PI) / 180;
a = (100 + (yy * 25)) * Math.cos(t);
b = (100 + (yy * 25)) * Math.sin(t);
if (yy > 0) {
s = speed * 1.3;
} else {
s = speed;
}
cpMC.addXY(centerX + a, centerY + b, s);
j++;
}
cpMC._rotation = 0;
break;
case 3 :
x = _local1.viewX2 + (xx * 25);
y = (_local1.viewY1 + 100) - (yy * 25);
cpMC._x = (cpMC.TX = x);
cpMC._y = (cpMC.TY = y);
cpMC.addXY(_local1.viewX1 + 100, y, speed);
j = 0;
while (j < 36) {
t = (((180 - j) * 15) * Math.PI) / 180;
a = (100 + (yy * 25)) * Math.cos(t);
b = (100 + (yy * 25)) * Math.sin(t);
if (yy > 0) {
s = speed * 1.3;
} else {
s = speed;
}
cpMC.addXY(centerX + a, centerY + b, s);
j++;
}
cpMC._rotation = 180;
}
cpMC.addXY(TX, TY, speed);
cpMC.START = true;
cpMC.MOVE = true;
cpMC._visible = true;
i++;
}
return(undefined);
}
_root.bugAREA = Array();
_root.bugTYPE = Array();
_root.bugTYPE[1] = [1, 1, 1, 2];
_root.bugTYPE[2] = [1, 1, 2, 2];
_root.bugTYPE[3] = [1, 2, 2, 3];
_root.bugTYPE[4] = [1, 2, 3, 3];
_root.bugTYPE[5] = [2, 2, 3, 3];
_root.bugTYPE[6] = [2, 3, 3, 3];
_root.bugTYPE[7] = [3, 3, 3, 3];
_root.bugTYPE[8] = [2, 3, 3, 4];
_root.bugTYPE[9] = [3, 3, 3, 4];
_root.bugTYPE[10] = [3, 3, 4, 4];
_root.bugTYPE[11] = [3, 4, 4, 4];
_root.bugTYPE[12] = [4, 4, 4, 4];
function gameSetup() {
var _local1 = _root;
var _local2 = this;
_local1.gameLEVEL = 1;
_local1.gameSPEED = _local1.gameLEVEL + 4;
_local1.gameSCORE = 0;
_local1.gameSTART = false;
_local1.gameMegMC.gotoAndPlay("START");
_local1.gameMegMC._visible = true;
i = 0;
while (i < 32) {
_local1.bugAREA[i] = i;
i++;
}
_local2.gameClear();
if (_local1.gameVISIBLE == false) {
_local2.makePlayMC();
_local2.makePlayShotMC();
_local2.makeBugMCs();
_local2.makeBugShotMC();
}
_local1.gameSTART = false;
}
function gameStart() {
var _local1 = _root;
_local1.gameLEVEL = 1;
_local1.playNum = _local1.playMax;
_local1.playShotLimit = _local1.playShotMax;
_local1.playNum--;
_local1.playMC.LIFE = 10;
_local1.playMC._visible = true;
_local1.playMC.gotoAndPlay("ALIVE");
_parent.SoundPlay("START", 100);
}
function gameClear() {
var _local1 = _root;
i = 0;
while (i < _local1.bugMax) {
_local1["bug" + i].removeMovieClip();
i++;
}
i = 0;
while (i < _local1.bugShotMax) {
_local1["bs" + i].removeMovieClip();
i++;
}
_local1.bugNo = 0;
_local1.bugMax = 0;
_local1.bugShotNo = 0;
_local1.playShotNo = 0;
_local1.playShotNum = 0;
_local1.gameFRAME = 0;
_local1.gameLINE = 0;
_local1.bugLoopNum = 0;
}
function gameOver() {
var _local1 = _root;
this.gameClear();
_local1.gameSTART = false;
_local1.gameMegMC.gotoAndStop("GAMEOVER");
_local1.gameMegMC._visible = true;
_local1.DispatchGameData(_local1.gameSCORE);
}
function mainMenu() {
var _local1 = _root;
_local1.playMC._y = -500;
this.gameClear();
_local1.gameSTART = false;
_local1.gameMegMC._visible = true;
i = 0;
while (i <= 20) {
_local1["psc" + i]._y = 500;
i++;
}
_local1.scoreBoxx._y = -50;
_local1.theMeniu._y = -50;
_local1.DISPLAY._visible = false;
_local1.playcloneMC1._y = _local1.playcloneMC1._y + 500;
_local1.playcloneMC2._y = _local1.playcloneMC2._y + 500;
_local1.playcloneMC3._y = _local1.playcloneMC3._y + 500;
_local1.playcloneMC0._y = _local1.playcloneMC0._y + 500;
_local1.gameMegMC.gotoAndStop("START");
}
function gameNext() {
var _local1 = _root;
_local1.gameLEVEL++;
if (_local1.gameLEVEL >= _local1.bugTYPE.length) {
_local1.gameLEVEL = 0;
this.gameOver();
} else {
_local1.gameSPEED = _local1.gameLEVEL + 4;
this.gameClear();
_local1.gameMegMC.gotoAndPlay("LEVEL");
}
}
this.onEnterFrame = function () {
var _local1 = _root;
var _local2 = _parent;
var _local3 = this;
if (_local1.gameSTART == true) {
if ((_local1.gameFRAME % 10) == 0) {
if (_local1.bugLoopNum < _local1.bugLoopMax) {
if ((_local1.gameFRAME % 300) == 50) {
_local3.bugShow();
} else if ((_local1.gameFRAME % 150) == 0) {
_local3.bugShowBonus();
}
} else if ((_local1.gameFRAME % 280) == 0) {
_local3.bugShowBonus();
} else if ((_local1.bugNum <= 0) && (_local1.bugLoopNum >= 32)) {
_local3.gameNext();
} else if ((_local1.gameFRAME % 50) == 0) {
i = 0;
while (i < _local1.bugMax) {
if (_local1["bug" + i].MOVE == false) {
if (random(10) == 0) {
_local1["bug" + i].MOVE = true;
_local1["bug" + i].addXY(_local2.viewX1 + random(300), 500, _local1.gameSPEED);
_local1["bug" + i].addXY(_local1["bug" + i]._x, _local1["bug" + i]._y, _local1.gameSPEED);
} else if (random(5) == 3) {
_local1["bug" + i].SHOT = 20 + random(40);
}
}
i++;
}
}
if (_local1.playMC.LIFE <= 0) {
_local1.wait++;
if (_local1.wait > 3) {
_local1.wait = 0;
if (_local1.playNum > 0) {
_local1.playNum--;
_local1.playMC.LIFE = 10;
_local1.playMC._visible = true;
_local1.playMC.gotoAndPlay("ALIVE");
} else {
_local3.gameOver();
}
}
}
}
_local1.gameFRAME++;
}
};
Symbol 267 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?SpaceBugs", "_blank");
}
Symbol 273 Button
on (release) {
_root.gameSCORE = 0;
_root.playMC._y = 380;
_root.galagaMC.gameStart();
this.gotoAndPlay("LEVEL");
}
Symbol 279 Button
on (release) {
_parent.instructions._x = -522;
_parent.butoane._visible = true;
}
Symbol 284 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 291 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 291 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 291 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 292 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 299 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 299 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 299 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 300 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wynume;
getURL (targetul3, "_blank");
}
Symbol 301 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 301 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 301 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 306 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 307 MovieClip Frame 1
stop();
Symbol 310 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 311 MovieClip Frame 1
stop();
Symbol 312 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 319 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 319 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 319 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 320 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 321 MovieClip Frame 1
stop();
Symbol 322 MovieClip Frame 1
function instructionsFunction() {
_parent.instructions._x = -279;
_parent.butoane._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 322 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 322 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 322 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 322 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 322 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 324 Button
on (release) {
_root.xdada = 0;
_root.gotoAndPlay("submitScore");
}
Symbol 327 Button
on (release) {
_root.gameSCORE = 0;
_root.galagaMC.gameStart();
this.gotoAndPlay("LEVEL");
}
Symbol 334 MovieClip Frame 1
this.stop();
if (this._visible == true) {
i = 0;
while (i <= 20) {
_root["psc" + i]._y = 500;
i++;
}
_root.scoreBoxx._y = -50;
trace("aici");
_root.theMeniu._y = -50;
_root.DISPLAY._visible = false;
_root.playcloneMC1._y = _root.playcloneMC1._y + 500;
_root.playcloneMC2._y = _root.playcloneMC2._y + 500;
_root.playcloneMC3._y = _root.playcloneMC3._y + 500;
_root.playcloneMC0._y = _root.playcloneMC0._y + 500;
}
Instance of Symbol 322 MovieClip "butoane" in Symbol 334 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
wynume = "SpaceBugs";
wyculoare = 13158;
wyasezare = "Vertical";
wyaliniere = "Stanga";
wypozitie = "Jos";
wyinstructions = true;
}
Symbol 334 MovieClip Frame 9
_root.gameVISIBLE = false;
_root.scoreBoxx._y = 2;
_root.DISPLAY._visible = true;
_root.theMeniu._y = -50;
i = 0;
while (i <= 20) {
_root["psc" + i].removeMovieClip();
i++;
}
Instance of Symbol 322 MovieClip "butoane" in Symbol 334 MovieClip Frame 9
//component parameters
onClipEvent (initialize) {
wynume = "SpaceBugs";
wyculoare = 13158;
wyasezare = "Vertical";
wyaliniere = "Stanga";
wypozitie = "Jos";
wyinstructions = false;
}
Symbol 334 MovieClip Frame 20
_root.playcloneMC1._y = 400;
_root.playcloneMC2._y = 400;
_root.playcloneMC3._y = 400;
_root.playcloneMC0._y = 400;
_root.theMeniu._y = 220;
_root.scoreBoxx._y = 2;
this._visible = true;
_root.DISPLAY._visible = true;
this.level = _root.gameLEVEL;
_root.galagaMC.makePlayShotMC();
Symbol 334 MovieClip Frame 39
this._visible = false;
_root.gameSTART = true;
Symbol 340 MovieClip Frame 1
Symbol 345 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 352 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 657 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 106 MovieClip [FScrollBarSymbol] "scroll1" in Symbol 657 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
Symbol 663 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 679 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 685 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 689 MovieClip Frame 1
stop();
Symbol 689 MovieClip Frame 9
stop();
Symbol 689 MovieClip Frame 22
stop();
Symbol 689 MovieClip Frame 34
var my_date: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 689 MovieClip Frame 45
if (_root.updated != 1) {
gotoAndPlay ("loop");
} else {
_root.best = 0;
_root.score = 0;
_root.xdada = 1;
_root.gotoAndPlay("submitScore");
}