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 175
stop();
Instance of Symbol 172 MovieClip in Frame 175
//component parameters
onClipEvent (initialize) {
wynume = "LuckyBalls";
wyculoare = 610462 /* 0x09509E */;
wyasezare = "Vertical";
wyaliniere = "Stanga";
wypozitie = "Jos";
wyinstructions = true;
}
Frame 177
this.stop();
onEnterFrame = function () {
var _local1 = _root;
if (_local1.scoreMC.TXT) {
_local1.theScore = _local1.scoreMC.TXT;
}
};
Instance of Symbol 270 MovieClip "BACK" in Frame 177
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (keyDown) {
if (Key.isDown(16) && (Key.isDown(32))) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 280 MovieClip "BUGMASTER" in Frame 177
onClipEvent (enterFrame) {
this.getFrame();
}
onClipEvent (keyDown) {
this.checkKey();
}
Instance of Symbol 334 MovieClip [TMP83li2de3hb] in Frame 177
//component parameters
onClipEvent (initialize) {
gameVolume = 100;
gameoverName = "gameover";
nextName = "nextMC";
ballRadius = 30;
ballName = "ball";
centerName = "centerMC";
boxName = "scorebox";
scoreName = "scoreMC";
centerX = 190;
centerY = 190;
radius = 180;
}
Instance of Symbol 407 MovieClip in Frame 177
//component parameters
onClipEvent (initialize) {
wxnume = "LuckyBalls";
wxaliniere = "Dreapta-Jos";
wxculoare = 13260;
wxdownload = true;
wxpause = true;
wxsound = true;
}
Frame 187
removeMovieClip(_root.xxc1);
removeMovieClip(_root.xxc2);
removeMovieClip(_root.xxc3);
removeMovieClip(_root.xxc4);
stopAllSounds();
Frame 188
_root.menu.removeMovieClip();
_root.gameid = "LuckyBalls";
_root.best = _root.theScore;
_root.theScore = 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 190
cale = "http://www.freeonlinegames.com/scoreboard/score.php?game=" + _root.gameid;
loadVariablesNum (cale, 0, "POST");
Frame 191
if (false) {
}
Frame 198
if (done != 1) {
gotoAndPlay ("loopLoad");
} else {
gotoAndPlay ("scoreTable");
}
Frame 202
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 203
stop();
if (_root.best > everscor[100]) {
scoreWind.gotoAndStop("submitScoreYes");
} else {
scoreWind.gotoAndStop("submitScoreNo");
}
if (_root.xdada == 1) {
scoreWind.gotoAndStop("topEver");
}
Symbol 6 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 19 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 28 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 37 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 38 MovieClip [UpArrow] Frame 1
stop();
Symbol 38 MovieClip [UpArrow] Frame 2
stop();
Symbol 38 MovieClip [UpArrow] Frame 3
stop();
Symbol 44 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 53 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 58 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 59 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 67 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 75 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 83 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 84 MovieClip [DownArrow] Frame 1
stop();
Symbol 84 MovieClip [DownArrow] Frame 2
stop();
Symbol 84 MovieClip [DownArrow] Frame 3
stop();
Symbol 93 MovieClip [ball2] Frame 1
this.stop();
Symbol 109 MovieClip [ball] Frame 1
this.stop();
Symbol 111 MovieClip [scorebox] Frame 1
this.speed = 3;
this.onEnterFrame = function () {
var _local1 = this;
_local1._y = _local1._y - _local1.speed;
if (_local1.speed >= 1) {
_local1.speed = _local1.speed * 0.9;
} else {
_local1.removeMovieClip();
}
};
this.stop();
Symbol 123 Button
on (release) {
_root.xdada = 0;
_root.gotoAndPlay("submitScore");
}
Symbol 127 Button
on (release) {
_root.gotoAndPlay("coperta");
}
Symbol 132 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 139 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 139 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 139 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 140 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 147 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 147 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 147 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 148 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wynume;
getURL (targetul3, "_blank");
}
Symbol 151 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 151 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 151 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 156 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 157 MovieClip Frame 1
stop();
Symbol 160 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 161 MovieClip Frame 1
stop();
Symbol 162 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 169 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 169 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 169 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 170 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 171 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 1
function instructionsFunction() {
_root.gigi._x = 320;
_root.gigi.gotoAndPlay(2);
}
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 172 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 172 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 172 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 172 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 172 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 178 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?LuckyBalls", "_blank");
}
Instance of Symbol 172 MovieClip in Symbol 179 MovieClip [gameover] Frame 1
//component parameters
onClipEvent (initialize) {
wynume = "LuckyBalls";
wyculoare = 6192639 /* 0x5E7DFF */;
wyasezare = "Vertical";
wyaliniere = "Centru";
wypozitie = "Sus";
wyinstructions = false;
}
Symbol 179 MovieClip [gameover] Frame 15
this.stop();
Symbol 181 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 182 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 184 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?LuckyBalls", "_blank");
}
Symbol 188 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 1
stop();
Symbol 209 MovieClip Frame 50
stop();
_parent.play();
Symbol 232 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 28
gotoAndPlay ("loop");
Symbol 240 MovieClip Frame 15
stop();
Symbol 243 Button
on (release) {
_root.gigi.gotoAndPlay(22);
}
Symbol 246 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 21
stop();
Symbol 252 Button
on (release) {
_root.play();
}
Symbol 258 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?LuckyBalls", "_blank");
}
Symbol 270 MovieClip Frame 1
this.stop();
Symbol 270 MovieClip Frame 2
this.stop();
Symbol 280 MovieClip Frame 1
this.stop();
function getFrame(MC) {
var _local1 = this;
f++;
te = getTimer();
t = te - ts;
if (t >= 1000) {
if (_local1._currentframe == 1) {
_local1.frametxt = "";
} else {
_local1.frametxt = f;
}
f = 0;
ts = te;
}
}
function checkKey() {
var _local2 = this;
var _local1 = Key.getAscii();
if (Key.isDown(16) && ((_local1 == 86) || (_local1 == 118))) {
if (_local2._currentframe == 1) {
_local2.gotoAndStop(2);
} else {
_local2.gotoAndStop(1);
}
}
}
f = 0;
ts = getTimer();
Symbol 284 Button
on (release) {
getURL ("http://www.game24.co.kr", "_blank", "GET");
}
Symbol 291 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?LuckyBalls", "_blank");
}
Symbol 302 MovieClip Frame 1
this.f = 0;
this.rnd = random(80) + 20;
this.stop();
this.onEnterFrame = function () {
var _local1 = this;
_local1.f++;
if (_local1.f >= _local1.rnd) {
_local1.gotoAndPlay(2);
}
};
Symbol 302 MovieClip Frame 3
this.gotoAndStop(1);
Symbol 309 Button
on (release) {
_parent.AS.soundOnOff();
}
Symbol 312 MovieClip Frame 1
this.stop();
Symbol 312 MovieClip Frame 6
this.stop();
Symbol 313 Button
on (release) {
_parent.AS.pauseOnOff();
trace(_parent);
}
Symbol 316 MovieClip Frame 1
this.stop();
Symbol 316 MovieClip Frame 6
this.stop();
Symbol 317 Button
on (release) {
_parent.AS.helpOnOff();
}
Symbol 320 MovieClip Frame 1
this.stop();
Symbol 320 MovieClip Frame 6
this.stop();
Symbol 326 Button
on (release) {
_parent.AS.GameStart();
}
Symbol 328 MovieClip Frame 1
this.stop();
Symbol 328 MovieClip Frame 6
this.stop();
Symbol 334 MovieClip [TMP83li2de3hb] Frame 1
function BallXY(MC) {
var _local1 = MC;
var _local3 = this;
d = _local3.radius - ((_local1.r / 360) * 50);
var _local2 = (_local1.r * Math.PI) / 180;
_local1._x = (d * Math.cos(_local2)) + _local3.centerX;
_local1._y = (d * Math.sin(_local2)) + _local3.centerY;
if (_local1.r > _local3.maxRotation) {
_local1.removeMovieClip();
}
}
function distanceMC(MC1, MC2) {
var _local3 = MC2;
if ((MC1 != undefined) && (_local3 != undefined)) {
var _local2 = MC1._x - _local3._x;
var _local1 = MC1._y - _local3._y;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
}
return(1000);
}
function rotationMC(MC) {
var _local3 = MC._x - centerX;
var _local2 = MC._y - centerY;
var _local1 = (Math.atan2(_local2, _local3) * 180) / Math.PI;
if (_local1 < 0) {
return(360 + _local1);
}
return(_local1);
}
function rotationXY(x1, y1, x2, y2) {
var _local3 = x1 - x2;
var _local2 = y1 - y2;
var _local1 = (Math.atan2(_local2, _local3) * 180) / Math.PI;
if (_local1 < 0) {
return(360 + _local1);
}
return(_local1);
}
function MouseLine() {
var _local1 = this;
var _local2 = _local1.rotationXY(_parent._xmouse, _parent._ymouse, _local1.lineMC._x, _local1.lineMC._y);
_local1.lineMC._rotation = _local2;
if (_local2 < 0) {
_local2 = _local2 + 360;
}
_local1.lineMC.BOX._x = (_local1.radius - ((_local2 / 360) * 50)) + (_local1.ballRadius / 2);
}
function unSet() {
var _local2 = this;
_local2.gameplay = false;
if (_parent.GAMEOVER != undefined) {
_parent.GAMEOVER.removeMovieClip();
}
var _local1 = _local2.prevMC;
while (true) {
if (_local1.prevMC == undefined) {
_local1.removeMovieClip();
break;
}
_local1 = _local1.prevMC;
_local1.nextMC.removeMovieClip();
}
_local2.prevMC = undefined;
_local2.centerMC.removeMovieClip();
_local2.centerTmp.removeMovieClip();
_local2.screwTmp.removeMovieClip();
_local2.centerMC = undefined;
_local2.centerTmp = undefined;
_local2.screwTmp = undefined;
stopAllSounds();
}
function GameStart() {
this.Setup();
}
function Setup() {
var _local1 = this;
_local1.unSet();
var _local3 = 0;
var _local2 = 0;
while (_local2 < 20000) {
d = _local1.radius - ((_local3 / 360) * _local1.maxDistance);
_local3 = _local3 + ((Math.atan2(1, d) * 180) / Math.PI);
var t = ((_local3 * Math.PI) / 180);
var x = (Math.round(((d * Math.cos(t)) + _local1.centerX) * 10) / 10);
var y = (Math.round(((d * Math.sin(t)) + _local1.centerY) * 10) / 10);
_local1.circleXY[_local2] = [x, y];
if (_local3 > _local1.maxRotation) {
break;
}
_local2++;
}
_local1.centerTmp = _local1.gameMC.attachMovie(_local1.ballName, "centerTmp", _local1.Depths);
_local1.centerTmp._x = _local1.gameMC[_local1.centerName]._x;
_local1.centerTmp._y = _local1.gameMC[_local1.centerName]._y;
_local1.centerTmp.gotoAndStop(_local1.AddBallFrame());
_local1.screwTmp = _local1.gameMC.attachMovie(_local1.ballName, "screwTmp", _local1.Depths + 1);
_local1.screwTmp._x = _local1.gameMC[_local1.nextName]._x;
_local1.screwTmp._y = _local1.gameMC[_local1.nextName]._y;
_local1.screwTmp.gotoAndStop(_local1.AddBallFrame());
_local1.lineMC._x = _local1.centerX;
_local1.lineMC._y = _local1.centerY;
_local1.lineMC.swapDepths((_local1.Depths + _local1.Bmax) + 2);
_local1.slotMC.tx = _local1.slotMC._x;
_local1.slotMC.ty = _local1.slotMC._y;
_local1.slotMC.swapDepths((_local1.Depths + _local1.Bmax) + 3);
_local1.gameMC.HELP.swapDepths((_local1.Depths + _local1.Bmax) + 4);
_local1.gameMC.PAUSE.swapDepths((_local1.Depths + _local1.Bmax) + 5);
_local1.shoot = false;
_local1.shootMove = 0;
_local1.Bnum = 1;
_local1.comboNum = 0;
_local1.maxCombo = 0;
_local1.TotalScore = 0;
_local1.CountBall = 0;
_local1.displayScore();
_local1.gameplay = true;
_local1.soundPlay("title", 1);
_local1.startMC.gotoAndStop("OFF");
_local1.startTime = getTimer();
if (_local1._visible == true) {
_local1._visible = false;
}
}
function GameOver() {
var _local1 = this;
_local1.gameplay = false;
var _local2 = _parent.attachMovie(_local1.gameoverName, "GAMEOVER", _local1.Depths + 20001);
_local2._x = _local1.centerX;
_local2._y = _local1.centerY;
_local2._visible = true;
_local1.soundPlay("title", 1);
_local1.startMC.gotoAndStop("ON");
var t = Math.round((getTimer() - _local1.startTime) / 1000);
var _local3 = _local1.maxCombo;
if (_local3 > 0) {
_local3--;
}
var info = (((((((("Ball: " + _local1.CountBall) + ", Combo: ") + _local3) + ", Time: ") + Math.floor(t / 60)) + "' ") + (t % 60)) + "\"");
_local1.sendRankScore(_local1.TotalScore, info);
}
function AddBallFrame() {
var _local2 = this;
var frames = 0;
if (random(lightningRand) == 0) {
frames = lightningFrame;
} else {
var _local3 = _local2.ballMaxCount;
var _local1 = 0;
while (_local1 < _local2.ballMaxArr.length) {
if (_local2.ballMaxArr[_local1] > _local2.CountBall) {
_local3 = _local1 + _local2.ballMaxMin;
break;
}
_local1++;
}
if (_local3 > _local2.ballMaxCount) {
_local3 = _local2.ballMaxCount;
}
frames = random(_local3) + 1;
_local2.ballMaxNum = _local3;
}
return(frames);
}
function AddBall(mv) {
var _local2 = this;
var _local1 = _local2.gameMC.attachMovie(_local2.ballName, "B" + _local2.Bnum, (_local2.Bnum + _local2.Depths) + 2);
_local1.Bnum = _local2.Bnum;
_local2.Bnum++;
if (_local2.Bnum >= _local2.Bmax) {
_local2.Bnum = 1;
}
_local1.num = -10;
_local1.mv = mv;
_local1.prevMC = undefined;
_local1.nextMC = undefined;
if (mv == 0) {
_local1._x = _local2.centerX;
_local1._y = _local2.centerY;
} else {
_local1._x = _parent.AS.circleXY[_local1.num][0];
_local1._y = _parent.AS.circleXY[_local1.num][1];
}
_local1.gotoAndStop(_local2.AddBallFrame());
return(_local1);
}
function AddCenterBall() {
var _local1 = this;
var _local2 = _local1.AddBall(0);
_local2.swapDepths((_local1.Depths + _local1.Bmax) + 1);
_local1.centerMC = _local2;
_local1.shoot = false;
_local2.gotoAndStop(_local1.centerTmp._currentframe);
_local1.centerTmp.gotoAndStop(_local1.AddBallFrame());
}
function AddScrewBall() {
var _local1 = this;
var _local2 = _local1.AddBall(1);
if (_local1.prevMC != undefined) {
_local2.prevMC = _local1.prevMC;
_local1.prevMC.nextMC = _local2;
}
_local1.prevMC = _local2;
_local2.gotoAndStop(_local1.screwTmp._currentframe);
_local1.screwTmp.gotoAndStop(_local1.AddBallFrame());
}
function displayScore() {
_parent.scoreMC.TXT = this.TotalScore;
}
function deleteBall(tMC, score) {
var _local1 = tMC;
var _local2 = this;
if (_local1 != undefined) {
if (_local1.prevMC != undefined) {
_local1.prevMC.nextMC = _local1.nextMC;
}
if (_local1.nextMC != undefined) {
_local1.nextMC.prevMC = _local1.prevMC;
} else {
_local2.prevMC = _local1.prevMC;
_local1.prevMC.nextMC = undefined;
}
if (score > 0) {
_local2.CountBall++;
var _local3 = _local2.gameMC.attachMovie(_local2.boxName, "box" + _local1.Bnum, (_local2.Depths + _local1.Bnum) + 5000);
_local3._x = _local1._x;
_local3._y = _local1._y;
_local3.TXT = score;
_local2.TotalScore = _local2.TotalScore + score;
_local2.displayScore();
}
_local1.removeMovieClip();
}
}
function insertBall(tMC) {
var _local1 = this;
var _local2 = tMC;
if (_local2 != undefined) {
var _local3 = _local1.rotationMC(_local2);
if (_local3 < _local1.shootRotation) {
_local1.centerMC.num = _local2.num + _local1.ballRadius;
_local1.centerMC.prevMC = _local2.prevMC;
_local1.centerMC.nextMC = _local2;
if (_local2.prevMC != undefined) {
_local2.prevMC.nextMC = _local1.centerMC;
}
_local2.prevMC = _local1.centerMC;
} else {
_local1.centerMC.num = _local2.num - _local1.ballRadius;
_local1.centerMC.prevMC = _local2;
_local1.centerMC.nextMC = _local2.nextMC;
if (_local2.nextMC != undefined) {
_local2.nextMC.prevMC = _local1.centerMC;
} else {
_local1.prevMC = _local1.centerMC;
}
_local2.nextMC = _local1.centerMC;
}
_local1.centerMC.swapDepths(_local1.centerMC.Bnum + _local1.Depths);
}
}
function getSameBall(cMC, ops) {
var _local3 = 1;
var c = cMC._currentframe;
var _local1 = cMC;
while (_local1.prevMC != undefined) {
if (_local1.prevMC._currentframe == c) {
if ((ops == 1) || ((_local1.prevMC.num - _local1.num) <= this.ballRadius)) {
_local1 = _local1.prevMC;
_local3++;
} else {
break;
}
} else {
break;
}
}
var _local2 = cMC.nextMC;
while (_local2 != undefined) {
if (_local2._currentframe == c) {
if ((ops == 1) || ((_local2.prevMC.num - _local2.num) <= this.ballRadius)) {
_local2 = _local2.nextMC;
_local3++;
} else {
break;
}
} else {
break;
}
}
if (_local3 >= 3) {
return(_local1);
}
return(undefined);
}
function sameDeleteBall(tMC) {
var _local2 = tMC;
var _local3 = this;
if (_local2.prevMC != undefined) {
_local2.prevMC.mv = 0;
}
if (_local3.comboMC == undefined) {
_local3.comboNum = 1;
} else {
_local3.comboNum++;
if (_local3.comboNum > _local3.maxCombo) {
_local3.maxCombo = _local3.comboNum;
}
}
var score = (_local3.comboNum * _local3.comboNum);
if (score < 2) {
score = 2;
}
var c = _local2._currentframe;
while (_local2 != undefined) {
if (_local2._currentframe == c) {
var _local1 = _local2;
_local2 = _local2.nextMC;
if ((_local1.num - _local1.nextMC.num) <= _local3.ballRadius) {
_local3.deleteBall(_local1, score);
} else {
_local3.deleteBall(_local1, score);
break;
}
} else {
break;
}
}
_local3.soundPlay("explore", 1);
}
function colorDeleteBall(Fnum) {
var _local3 = this;
var _local2 = _local3.prevMC;
while (true) {
if (_local2 == undefined) {
return;
}
var _local1 = _local2;
_local2 = _local2.prevMC;
if (_local1._currentframe == Fnum) {
_local3.deleteBall(_local1, 1);
_local1.mv = 0;
}
}
}
function moveHitBall() {
var _local1 = this;
if (_local1.prevMC != undefined) {
var _local3;
var _local2 = _local1.prevMC;
while (true) {
var d = _local1.distanceMC(_local1.centerMC, _local2);
if (d <= _local1.ballRadius) {
if ((_local3 != undefined) && (d < _local1.distanceMC(_local1.centerMC, _local3))) {
_local3 = _local2;
} else {
_local3 = _local2;
}
}
if (_local2.prevMC == undefined) {
break;
}
_local2 = _local2.prevMC;
}
if (_local3 != undefined) {
_local1.insertBall(_local3);
if ((_local1.centerMC._currentframe == _local1.lightningFrame) && (_local3._currentframe == _local1.lightningFrame)) {
_local1.deleteBall(_local1.centerMC, 0);
_local1.deleteBall(_local3, 0);
_local1.soundPlay("bomb", 1);
} else if (_local1.centerMC._currentframe == _local1.lightningFrame) {
_local1.deleteBall(_local1.centerMC, 0);
_local1.colorDeleteBall(_local3._currentframe);
_local1.soundPlay("bomb", 1);
} else if (_local3._currentframe == _local1.lightningFrame) {
_local1.deleteBall(_local3, 0);
_local1.colorDeleteBall(_local1.centerMC._currentframe);
_local1.soundPlay("bomb", 1);
} else {
_local1.comboNum = 1;
var leftMC = _local1.getSameBall(_local1.centerMC, 0);
if (leftMC != undefined) {
var cMC = leftMC.prevMC;
_local1.sameDeleteBall(leftMC);
if (cMC != undefined) {
_local1.getComboBall(cMC);
}
}
}
_local1.centerMC = undefined;
_local3 = undefined;
}
}
}
function moveCenterBall() {
var _local1 = this;
_local1.shootMove = _local1.shootMove + _local1.shootSpeed;
var _local2 = (_local1.shootRotation * Math.PI) / 180;
_local1.centerMC._x = (_local1.shootMove * Math.cos(_local2)) + _local1.centerX;
_local1.centerMC._y = (_local1.shootMove * Math.sin(_local2)) + _local1.centerY;
var _local3 = _local1.radius - ((_local1.shootRotation / 360) * 50);
if (_local1.shootMove > _local3) {
_local1.centerMC.removeMovieClip();
_local1.centerMC = undefined;
} else {
_local1.moveHitBall();
}
}
function moveScrewBall() {
var _local2 = this;
var _local1 = _local2.prevMC;
if (_local1.num < _local2.ballRadius) {
_local1.num++;
}
while (true) {
if (_local1.prevMC != undefined) {
if ((_local1.prevMC.num - _local1.num) <= _local2.ballRadius) {
_local1.prevMC.num = _local1.num + _local2.ballRadius;
}
}
if (_local1.num >= _local2.circleXY.length) {
_local2.GameOver();
return;
}
if (_local1.num < 0) {
_local1._x = _local2.circleXY[0][0];
_local1._y = _local2.circleXY[0][1] + (_local1.num * 7);
_local2.slotMC._y = _local2.slotMC.ty + _local1.num;
} else {
_local1._x = _local2.circleXY[_local1.num][0];
_local1._y = _local2.circleXY[_local1.num][1];
}
if (_local1.prevMC == undefined) {
return;
}
_local1 = _local1.prevMC;
}
}
function getComboBall(cMC) {
var _local1 = cMC;
var _local2 = this;
if ((_local1 != undefined) && (_local1.nextMC != undefined)) {
if (_local1._currentframe == _local1.nextMC._currentframe) {
if (_local2.getSameBall(_local1, 1) != undefined) {
_local2.comboMC = _local1;
_local2.soundPlay("combo", 1);
}
}
}
}
function moveComboBall() {
var _local2 = this;
if ((_local2.comboMC != undefined) && (_local2.comboMC.nextMC != undefined)) {
var _local3 = (_local2.comboMC.num - _local2.comboMC.nextMC.num) - _local2.ballRadius;
if (_local3 > _local2.backSpeed) {
_local3 = _local2.backSpeed;
}
var _local1 = _local2.comboMC;
while (true) {
_local1.num = _local1.num - _local3;
_local1._x = _local2.circleXY[_local1.num][0];
_local1._y = _local2.circleXY[_local1.num][1];
if (_local1.prevMC == undefined) {
break;
}
_local1 = _local1.prevMC;
}
if (_local3 <= 0) {
var leftMC = _local2.getSameBall(_local2.comboMC, 0);
if (leftMC != undefined) {
var cMC = leftMC.prevMC;
_local2.sameDeleteBall(leftMC);
if (cMC != undefined) {
_local2.getComboBall(cMC);
}
} else {
_local2.comboMC = undefined;
}
}
} else {
_local2.comboMC = undefined;
}
}
System.useCodepage = true;
this._name = "AS";
var gameMC = _parent.GAME;
var startMC = _parent.STARTBUTTON;
var f = 0;
var Bnum = 1;
var Bmax = 10000;
var Depths = 100;
var circleXY = [];
var centerTmp = undefined;
var screwTmp = undefined;
var centerMC = undefined;
var shoot = false;
var shootRotation = 0;
var shootMove = 0;
var shootSpeed = 15;
var backSpeed = 8;
var lineMC = this.gameMC.LINEMC;
var slotMC = this.gameMC.SLOTMC;
var prevMC = undefined;
var comboMC = undefined;
var comboNum = 0;
var maxCombo = 0;
var gameplay = false;
var TotalScore = 0;
var ballMaxNum = ((ballMaxMin = 4));
var ballMaxCount = 9;
var ballMaxArr = [30, 500, 1000, 2000, 3000, 5000, 10000, 30000, 50000];
var lightningFrame = 10;
var lightningRand = 180;
var CountBall = 0;
var maxRotation = 920;
var maxDistance = 45;
var HitAreaX1 = 10;
var HitAreaY1 = 10;
var HitAreaX2 = 410;
var HitAreaX2 = 410;
var startTime = 0;
var test = false;
this.onEnterFrame = function () {
var _local1 = this;
var area = false;
if ((_local1.pauseOn == false) && (_local1.gameplay == true)) {
if (_local1.comboMC == undefined) {
_local1.f = _local1.f + 1;
if (_local1.f >= _local1.ballRadius) {
_local1.f = 0;
_local1.AddScrewBall();
}
_local1.MouseLine();
if (_local1.prevMC != undefined) {
_local1.moveScrewBall();
}
if (_local1.shoot == true) {
_local1.moveCenterBall();
}
if (_local1.centerMC == undefined) {
_local1.AddCenterBall();
}
var _local3 = _parent._xmouse;
var _local2 = _parent._ymouse;
if ((((_local3 >= _local1.HitAreaX1) && (_local3 <= _local1.HitAreaX2)) && (_local2 >= _local1.HitAreaY1)) && (_local2 <= _local1.HitAreaX2)) {
area = true;
}
} else {
_local1.moveComboBall();
}
}
if (area) {
_local1.lineMC.gotoAndStop(2);
} else {
_local1.lineMC.gotoAndStop(1);
}
if (_local1.test) {
_parent.TXT = (((("ball: " + _local1.CountBall) + ", combo: ") + _local1.maxCombo) + ", Kind: ") + _local1.ballMaxNum;
}
};
this.onMouseDown = function () {
var _local1 = this;
if (((((_local1.pauseOn == false) && (_local1.helpOn == false)) && (_local1.gameplay == true)) && (_local1.centerMC != undefined)) && (_local1.shoot == false)) {
var _local3 = _parent._xmouse;
var _local2 = _parent._ymouse;
if ((((_local3 >= _local1.HitAreaX1) && (_local3 <= _local1.HitAreaX2)) && (_local2 >= _local1.HitAreaY1)) && (_local2 <= _local1.HitAreaX2)) {
_local1.shootRotation = _local1.rotationXY(_local3, _local2, _local1.centerX, _local1.centerY);
_local1.shoot = true;
_local1.shootMove = 0;
_local1.soundPlay("shoot", 1);
}
}
};
this.onUnload = function () {
var _local1 = this;
_local1.unSet();
_local1.lineMC.removeMovieClip();
_local1.slotMC.removeMovieClip();
};
this.stop();
function helpOnOff() {
var _local1 = this;
if (_local1.helpOn == true) {
_local1.gameMC.HELP._visible = false;
_local1.helpMC.gotoAndStop("OFF");
_local1.helpOn = false;
} else {
_local1.gameMC.HELP._visible = true;
_local1.helpMC.gotoAndStop("ON");
_local1.helpOn = true;
}
}
function soundOnOff() {
var _local1 = this;
if (_local1.soundOn == true) {
_local1.soundMC.gotoAndStop("OFF");
_local1.soundOn = false;
stopAllSounds();
} else {
_local1.soundMC.gotoAndStop("ON");
_local1.soundOn = true;
}
}
function pauseOnOff() {
var _local1 = this;
if (_local1.pauseOn == true) {
_local1.gameMC.PAUSE._visible = false;
_local1.pauseMC.gotoAndStop("OFF");
_local1.pauseOn = false;
} else {
_local1.gameMC.PAUSE._visible = true;
_local1.pauseMC.gotoAndStop("ON");
_local1.pauseOn = true;
}
}
function soundPlay(name, loop) {
var _local1 = this;
if ((_local1.soundOn == true) && (_local1.gameVolume > 0)) {
_local1.soundObj[name].start(0, loop);
_local1.soundObj[name].setVolume(_local1.gameVolume);
}
}
function sendRankScore(score, score_play) {
var _local1 = _parent;
if (_local1.dbconnect == "yes") {
sendObj = new LoadVars();
loadObj = new LoadVars();
sendObj.gametype = _local1.gametype;
sendObj.userid = _local1.userid;
sendObj.score = int(score) + 969696;
sendObj.score_play = score_play;
sendObj.sendAndLoad((_local1.dir + "game_record.") + _local1.scripttype, loadObj, "POST");
loadObj.onLoad = function () {
};
}
}
var helpOn = false;
var helpMC = _parent.helpMC;
this.helpMC.gotoAndStop("OFF");
this.gameMC.HELP._visible = false;
var soundOn = true;
var soundMC = _parent.soundMC;
this.soundMC.gotoAndStop("ON");
var pauseOn = false;
var pauseMC = _parent.pauseMC;
this.pauseMC.gotoAndStop("OFF");
this.gameMC.PAUSE._visible = false;
var soundName = ["title", "shoot", "explore", "combo", "bomb"];
var soundObj = Array();
if (this.gameVolume < 0) {
this.gameVolume = 0;
}
if (this.gameVolume > 1000) {
this.gameVolume = 1000;
}
var i = 0;
while (i <= soundName.length) {
soundObj[soundName[i]] = new Sound();
soundObj[soundName[i]].attachSound(soundName[i]);
i++;
}
Symbol 339 MovieClip Frame 1
this.stop();
Symbol 350 Button
on (release) {
_parent._parent.AS.helpOnOff();
}
Symbol 360 MovieClip Frame 1
Symbol 362 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wxnume;
getURL (targetul3, "_blank");
}
Symbol 363 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wxnume;
getURL (targetul2, "_blank");
}
Symbol 364 Button
on (release) {
_parent.mainMenuFunction();
}
Symbol 365 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wxnume) + ".exe";
getURL (targetul1);
}
Symbol 366 Button
on (release, keyPress "p") {
_parent.pauseFunction();
}
Symbol 367 Button
on (release, keyPress "s") {
_parent.soundFunction();
}
Symbol 378 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 378 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 378 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 378 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 378 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 378 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 378 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 378 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 383 Button
on (press) {
_parent.play();
}
Symbol 386 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 386 MovieClip Frame 2
tg._x = 147;
tg._y = 1.1;
Symbol 386 MovieClip Frame 3
tg._x = 147;
tg._y = -174.9;
Symbol 386 MovieClip Frame 4
tg._x = 1.5;
tg._y = -174.9;
Symbol 386 MovieClip Frame 5
tg._x = 147;
tg._y = -152.4;
Symbol 386 MovieClip Frame 6
tg._x = 147;
tg._y = -128.9;
Symbol 386 MovieClip Frame 7
tg._x = 147;
tg._y = -104.9;
Symbol 386 MovieClip Frame 8
tg._x = 1.5;
tg._y = -151.4;
Symbol 386 MovieClip Frame 9
tg._x = 1.5;
tg._y = -128.4;
Symbol 386 MovieClip Frame 10
tg._x = 1.5;
tg._y = -104.9;
Symbol 405 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 406 MovieClip Frame 1
stop();
if ((_parent.wxaliniere == "Stanga-Sus") || (_parent.wxaliniere == "Dreapta-Sus")) {
this.gotoAndStop(2);
}
Symbol 407 MovieClip Frame 1
function pauseFunction() {
_root.AS.pauseOnOff();
}
function soundFunction() {
_root.AS.soundOnOff();
}
function mainMenuFunction() {
_root.gotoAndPlay("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 407 MovieClip Frame 10
stop();
Symbol 412 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 419 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 724 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 182 MovieClip [FScrollBarSymbol] "scroll1" in Symbol 724 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
Symbol 730 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 746 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 752 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 756 MovieClip Frame 1
stop();
Symbol 756 MovieClip Frame 9
stop();
Symbol 756 MovieClip Frame 22
stop();
Symbol 756 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 756 MovieClip Frame 45
if (_root.updated != 1) {
gotoAndPlay ("loop");
} else {
_root.best = 0;
_root.score = 0;
_root.xdada = 1;
_root.gotoAndPlay("submitScore");
}