Frame 1
b1ww = _root.getBytesLoaded();
b2ww = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1ww * 100) / b2ww);
prel.gotoAndStop(tgPrel);
if (b1ww >= b2ww) {
gotoAndPlay ("intro");
}
Frame 4
if (Math.round(b1ww / 1024) <= 35) {
gotoAndPlay ("loop1");
}
Frame 5
b1ww = _root.getBytesLoaded();
b2ww = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1ww * 100) / b2ww);
tg = tgprel - 1;
if (tg <= 9) {
procent = "0" + tg;
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 9
if (Math.round(b1ww / 1024) <= 325) {
gotoAndPlay ("loop2");
}
Frame 11
b1ww = _root.getBytesLoaded();
b2ww = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1ww * 100) / b2ww);
tg = tgprel - 2;
if (tgprel <= 9) {
procent = "0" + tg;
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 14
if (b1ww < b2ww) {
gotoAndPlay ("loop3");
}
Frame 15
procent = "--";
prel.gotoAndStop(100);
Frame 20
if (false) {
}
Frame 21
if (false) {
}
Frame 22
if (false) {
}
Frame 23
if (false) {
}
Frame 24
if (false) {
}
Frame 222
fscommand ("showmenu", false);
_root.best = 0;
_root.sunet = 1;
Frame 223
stop();
_root.paused = 0;
son = new Sound();
son.attachSound("shot1");
son2 = new Sound();
son2.attachSound("shot2");
son3 = new Sound();
son3.attachSound("shot3");
Instance of Symbol 225 MovieClip in Frame 223
//component parameters
onClipEvent (initialize) {
wynume = "MiniPool2";
wyculoare = 6724044 /* 0x6699CC */;
wyasezare = "Vertical";
wyaliniere = "Stanga";
wypozitie = "Jos";
wyinstructions = true;
}
Frame 224
this.onMouseDown = function () {
var _local1 = _root;
if (_local1.b10.moving == false) {
gigi = 0;
_local1.power.onEnterFrame = function () {
gigi++;
if (gigi <= 40) {
gogu = gigi;
} else {
gogu = 80 - gigi;
}
if (gigi == 79) {
gigi = 0;
}
_root.power.gotoAndStop(gogu);
_root.tak.rod.gotoAndStop(gogu);
};
}
};
this.onMouseUp = function () {
var _local1 = _root;
_local1.power.stop();
delete _local1.power.onEnterFrame;
_local1.tak.rod.gotoAndStop(1);
};
bestTXT.text = _root.best;
_root.score = 0;
scoreTXT.text = _root.score;
i = 0;
while (i <= 9) {
_root["b" + i].timpIni = getTimer() + 120000;
i++;
}
_root.b4.timpIni = getTimer() + 60000;
Instance of Symbol 233 MovieClip "power" in Frame 224
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 311 MovieClip in Frame 224
//component parameters
onClipEvent (initialize) {
wxnume = "MiniPool2";
wxaliniere = "Dreapta-Jos";
wxculoare = 6724044 /* 0x6699CC */;
wxdownload = true;
wxpause = true;
wxsound = true;
}
Frame 225
stop();
ballsIn = 0;
Instance of Symbol 318 MovieClip "controller" in Frame 225
onClipEvent (load) {
function getDistanceSquare(clip, clip2) {
var _local2 = clip._x - clip2._x;
var _local1 = clip._y - clip2._y;
return((_local2 * _local2) + (_local1 * _local1));
}
ballsArray = [];
var n = 0;
while (n < 11) {
ballsArray[n] = _root["b" + n];
n++;
}
holesArray = [];
var n = 1;
while (n < 7) {
holesArray[n - 1] = _root["h" + n];
n++;
}
var k = 0;
while (k < ballsArray.length) {
ballsArray[k].dx = 0;
ballsArray[k].dy = 0;
ballsArray[k].moving = false;
ballsArray[k].disabled = false;
k++;
}
diameter = _root.b10._width;
diameterSquare = diameter * diameter;
bgLeft = 48 + (diameter / 2);
bgRight = 515 - (diameter / 2);
bgTop = 55 + (diameter / 2);
bgBottom = 345 - (diameter / 2);
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (fsec > 70) {
return(undefined);
}
var k = 0;
while (k < ballsArray.length) {
clip = ballsArray[k];
if (clip.moving == false) {
} else if (clip.disabled) {
} else if (clip.bounced) {
} else {
var m = 0;
while (m < ballsArray.length) {
clip2 = ballsArray[m];
if ((m <= k) && (clip2.moving)) {
} else if (clip2.disabled) {
} else {
xoff = clip2._x - clip._x;
yoff = clip2._y - clip._y;
if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) {
} else {
clip.moving = true;
clip2.moving = true;
_root.bouncer.bounce(clip, clip2);
}
}
m++;
}
var m = 0;
while (m < holesArray.length) {
clip2 = holesArray[m];
xoff = clip2._x - clip._x;
yoff = clip2._y - clip._y;
if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) {
} else {
fireN++;
duplicateMovieClip (_root.fire, "fire" + fireN, fireN);
_root["fire" + fireN].ball = clip;
_root["fire" + fireN].hole = clip2;
}
m++;
}
}
k++;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
t1 = getTimer();
fsec = t1 - t2;
t2 = t1;
var p = 0;
while (p < ballsArray.length) {
clip3 = ballsArray[p];
if (clip3.disabled) {
} else if (clip3.moving == false) {
} else {
clip3.dx = clip3.dx - clip3.frictionX;
clip3.dy = clip3.dy - clip3.frictionY;
clip3._x = clip3._x + clip3.dx;
clip3._y = clip3._y + clip3.dy;
dx = clip3.dx;
dy = clip3.dy;
if (clip3._x < bgLeft) {
clip3.dx = Math.abs(dx);
clip3.frictionX = Math.abs(clip3.frictionX);
} else if (clip3._x > bgRight) {
clip3.dx = -Math.abs(dx);
clip3.frictionX = -Math.abs(clip3.frictionX);
}
if (clip3._y < bgTop) {
clip3.dy = Math.abs(dy);
clip3.frictionY = Math.abs(clip3.frictionY);
} else if (clip3._y > bgBottom) {
clip3.dy = -Math.abs(dy);
clip3.frictionY = -Math.abs(clip3.frictionY);
}
if (((dx * dx) + (dy * dy)) < 0.003) {
clip3.dx = 0;
clip3.dy = 0;
clip3.frictionX = 0;
clip3.frictionY = 0;
clip3.moving = false;
}
}
p++;
}
}
}
Instance of Symbol 319 MovieClip "bouncer" in Frame 225
onClipEvent (load) {
function bounce(clip, clip2) {
var _local1 = clip;
var _local2 = clip2;
var angle = Math.atan2(_local1._y - _local2._y, _local1._x - _local2._x);
this._rotation = (angle * 180) / Math.PI;
var _local3 = {x:_local2.dx * 10, y:_local2.dy * 10};
this.globalToLocal(_local3);
var subVector2 = {x:_local3.x, y:0};
this.localToGlobal(subVector2);
var pt = {x:_local1.dx * 10, y:_local1.dy * 10};
this.globalToLocal(pt);
var subVector = {x:pt.x, y:0};
this.localToGlobal(subVector);
if ((_local3.x <= 0) && (pt.x >= 0)) {
} else {
var xSub = ((subVector2.x - subVector.x) / 10);
var ySub = ((subVector2.y - subVector.y) / 10);
_local1.dx = _local1.dx + xSub;
_local1.dy = _local1.dy + ySub;
_local2.dx = _local2.dx - xSub;
_local2.dy = _local2.dy - ySub;
var ang = Math.atan2(_local1.dy, _local1.dx);
_local1.frictionX = Math.cos(ang) / 20;
_local1.frictionY = Math.sin(ang) / 20;
var ang2 = Math.atan2(_local2.dy, _local2.dx);
_local2.frictionX = Math.cos(ang2) / 20;
_local2.frictionY = Math.sin(ang2) / 20;
}
}
}
Instance of Symbol 318 MovieClip "fire" in Frame 225
onClipEvent (load) {
function startGoHole(clip, clip2) {
ball.disabled = true;
animate = true;
framesNeed = int(_root.b10._width / Math.sqrt((ball.dx * ball.dx) + (ball.dy * ball.dy)));
dx = (hole._x - ball._x) / framesNeed;
dy = (hole._y - ball._y) / framesNeed;
count = 0;
}
function conclude() {
var _local2 = _root;
animate = false;
ball.moving = false;
ball._y = -300;
if (ball == _local2.b10) {
hole.gotoAndPlay(20);
} else {
_local2.ballsIn++;
_local2.score = _local2.score + ball.timpul;
_local2.scoreTXT.text = _local2.score;
if (_local2.score > _local2.best) {
_local2.best = _local2.score;
}
if (ball == _local2.b4) {
hole.gotoAndPlay(38);
} else {
hole.play();
}
ball._visible = false;
var balolInHole = -1;
var _local1 = 0;
while (_local1 < ballsArray.length) {
if (ballsArray[_local1] == ball) {
ballInHole = _local1;
break;
}
_local1++;
}
if (_local2.ballsIn >= 11) {
_local2.play();
}
if (ballInHole > -1) {
ballsArray.splice(ballInHole, 1);
}
}
removeMovieClip(this);
}
startGoHole();
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (!animate) {
return(undefined);
}
ball._x = ball._x + dx;
ball._y = ball._y + dy;
count++;
if (count >= framesNeed) {
conclude();
}
}
}
Instance of Symbol 323 MovieClip "tak" in Frame 225
onClipEvent (load) {
function conclude() {
var _local1 = _root;
if (_local1.sunet == 1) {
_local1.son.start(0, 1);
}
animate = false;
rod._x = -(30 + (_local1.b10._width / 2));
_rotation = 0;
count = 0;
_y = -100;
}
ballsArray = _root.controller.ballsArray;
orgX = _root.b10._x;
orgY = _root.b10._y;
animate = false;
conclude();
}
onClipEvent (mouseDown) {
if (_global.stai != 1) {
if (_root.paused == 0) {
if (_root.kkril == 1) {
_root.kkril = 0;
_root.b10._x = 110;
_root.b10._y = 190;
}
if (_root.b10.disabled) {
_root.b10.disabled = false;
_root.b10._x = orgX;
_root.b10._y = orgY;
OK = false;
while (!OK) {
hit = false;
var h = 0;
while (h < (ballsArray.length - 1)) {
tempClip = ballsArray[h];
if ((Math.abs(tempClip._x - _root.b10._x) < _root.b10._width) && (Math.abs(tempClip._y - _root.b10._y) < _root.b10._width)) {
hit = true;
break;
}
h++;
}
if (hit) {
_root.b10._x = _root.b10._x + 5;
} else {
OK = true;
}
}
_root.b10.dx = 0;
_root.b10.dy = 0;
_root.b10.moving = false;
return(undefined);
}
if (_root.b10.moving) {
return(undefined);
}
_x = _root.b10._x;
_y = _root.b10._y;
dragging = true;
angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
_rotation = ((angle * 180) / Math.PI);
_root.drawz._x = _root.b10._x;
_root.drawz._y = _root.b10._y;
_root.drawz._rotation = _rotation;
}
}
}
onClipEvent (mouseMove) {
if (_root.paused == 0) {
if (dragging) {
angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
_rotation = ((angle * 180) / Math.PI);
_root.drawz._x = _root.b10._x;
_root.drawz._y = _root.b10._y;
_root.drawz._rotation = _rotation;
}
}
}
onClipEvent (mouseUp) {
if (_global.stai != 1) {
if (_root.paused == 0) {
if (dragging) {
_root.drawz._x = -10000;
dragging = false;
animate = true;
count = 0;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (!animate) {
return(undefined);
}
count++;
if (count > 12) {
conclude();
}
if (count == 6) {
_root.b10.dx = (10 * Math.cos(angle)) * (_root.power._currentframe / 20);
_root.b10.dy = (10 * Math.sin(angle)) * (_root.power._currentframe / 20);
_root.b10.frictionX = _root.b10.dx / 200;
_root.b10.frictionY = _root.b10.dy / 200;
_root.b10.moving = true;
}
if (count < 6) {
rod._x = rod._x + 5;
} else {
rod._x = rod._x - 5;
}
}
}
Frame 226
stop();
stop();
Frame 227
i = 0;
while (i <= 9) {
_root["b" + i].timpIni = getTimer() + 100000;
i++;
}
_root.b4.timpIni = getTimer() + 50000;
Frame 228
stop();
ballsIn = 0;
Instance of Symbol 318 MovieClip "controller" in Frame 228
onClipEvent (load) {
function getDistanceSquare(clip, clip2) {
var _local2 = clip._x - clip2._x;
var _local1 = clip._y - clip2._y;
return((_local2 * _local2) + (_local1 * _local1));
}
ballsArray = [];
var n = 0;
while (n < 11) {
ballsArray[n] = _root["b" + n];
n++;
}
holesArray = [];
var n = 1;
while (n < 7) {
holesArray[n - 1] = _root["h" + n];
n++;
}
var k = 0;
while (k < ballsArray.length) {
ballsArray[k].dx = 0;
ballsArray[k].dy = 0;
ballsArray[k].moving = false;
ballsArray[k].disabled = false;
k++;
}
diameter = _root.b10._width;
diameterSquare = diameter * diameter;
bgLeft = 48 + (diameter / 2);
bgRight = 515 - (diameter / 2);
bgTop = 55 + (diameter / 2);
bgBottom = 345 - (diameter / 2);
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (fsec > 70) {
return(undefined);
}
var k = 0;
while (k < ballsArray.length) {
clip = ballsArray[k];
if (clip.moving == false) {
} else if (clip.disabled) {
} else if (clip.bounced) {
} else {
var m = 0;
while (m < ballsArray.length) {
clip2 = ballsArray[m];
if ((m <= k) && (clip2.moving)) {
} else if (clip2.disabled) {
} else {
xoff = clip2._x - clip._x;
yoff = clip2._y - clip._y;
if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) {
} else {
clip.moving = true;
clip2.moving = true;
_root.bouncer.bounce(clip, clip2);
}
}
m++;
}
var m = 0;
while (m < holesArray.length) {
clip2 = holesArray[m];
xoff = clip2._x - clip._x;
yoff = clip2._y - clip._y;
if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) {
} else {
fireN++;
duplicateMovieClip (_root.fire, "fire" + fireN, fireN);
_root["fire" + fireN].ball = clip;
_root["fire" + fireN].hole = clip2;
}
m++;
}
}
k++;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
t1 = getTimer();
fsec = t1 - t2;
t2 = t1;
var p = 0;
while (p < ballsArray.length) {
clip3 = ballsArray[p];
if (clip3.disabled) {
} else if (clip3.moving == false) {
} else {
clip3.dx = clip3.dx - clip3.frictionX;
clip3.dy = clip3.dy - clip3.frictionY;
clip3._x = clip3._x + clip3.dx;
clip3._y = clip3._y + clip3.dy;
dx = clip3.dx;
dy = clip3.dy;
if (clip3._x < bgLeft) {
clip3.dx = Math.abs(dx);
clip3.frictionX = Math.abs(clip3.frictionX);
} else if (clip3._x > bgRight) {
clip3.dx = -Math.abs(dx);
clip3.frictionX = -Math.abs(clip3.frictionX);
}
if (clip3._y < bgTop) {
clip3.dy = Math.abs(dy);
clip3.frictionY = Math.abs(clip3.frictionY);
} else if (clip3._y > bgBottom) {
clip3.dy = -Math.abs(dy);
clip3.frictionY = -Math.abs(clip3.frictionY);
}
if (((dx * dx) + (dy * dy)) < 0.003) {
clip3.dx = 0;
clip3.dy = 0;
clip3.frictionX = 0;
clip3.frictionY = 0;
clip3.moving = false;
}
}
p++;
}
}
}
Instance of Symbol 319 MovieClip "bouncer" in Frame 228
onClipEvent (load) {
function bounce(clip, clip2) {
var _local1 = clip;
var _local2 = clip2;
var angle = Math.atan2(_local1._y - _local2._y, _local1._x - _local2._x);
this._rotation = (angle * 180) / Math.PI;
var _local3 = {x:_local2.dx * 10, y:_local2.dy * 10};
this.globalToLocal(_local3);
var subVector2 = {x:_local3.x, y:0};
this.localToGlobal(subVector2);
var pt = {x:_local1.dx * 10, y:_local1.dy * 10};
this.globalToLocal(pt);
var subVector = {x:pt.x, y:0};
this.localToGlobal(subVector);
if ((_local3.x <= 0) && (pt.x >= 0)) {
} else {
var xSub = ((subVector2.x - subVector.x) / 10);
var ySub = ((subVector2.y - subVector.y) / 10);
_local1.dx = _local1.dx + xSub;
_local1.dy = _local1.dy + ySub;
_local2.dx = _local2.dx - xSub;
_local2.dy = _local2.dy - ySub;
var ang = Math.atan2(_local1.dy, _local1.dx);
_local1.frictionX = Math.cos(ang) / 20;
_local1.frictionY = Math.sin(ang) / 20;
var ang2 = Math.atan2(_local2.dy, _local2.dx);
_local2.frictionX = Math.cos(ang2) / 20;
_local2.frictionY = Math.sin(ang2) / 20;
}
}
}
Instance of Symbol 318 MovieClip "fire" in Frame 228
onClipEvent (load) {
function startGoHole(clip, clip2) {
ball.disabled = true;
animate = true;
framesNeed = int(_root.b10._width / Math.sqrt((ball.dx * ball.dx) + (ball.dy * ball.dy)));
dx = (hole._x - ball._x) / framesNeed;
dy = (hole._y - ball._y) / framesNeed;
count = 0;
}
function conclude() {
var _local2 = _root;
animate = false;
ball.moving = false;
ball._y = -300;
if (ball == _local2.b10) {
hole.gotoAndPlay(20);
} else {
_local2.ballsIn++;
_local2.score = _local2.score + ball.timpul;
_local2.scoreTXT.text = _local2.score;
if (_local2.score > _local2.best) {
_local2.best = _local2.score;
}
if (ball == _local2.b4) {
hole.gotoAndPlay(38);
} else {
hole.play();
}
ball._visible = false;
var balolInHole = -1;
var _local1 = 0;
while (_local1 < ballsArray.length) {
if (ballsArray[_local1] == ball) {
ballInHole = _local1;
break;
}
_local1++;
}
if (_local2.ballsIn >= 11) {
_local2.play();
}
if (ballInHole > -1) {
ballsArray.splice(ballInHole, 1);
}
}
removeMovieClip(this);
}
startGoHole();
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (!animate) {
return(undefined);
}
ball._x = ball._x + dx;
ball._y = ball._y + dy;
count++;
if (count >= framesNeed) {
conclude();
}
}
}
Instance of Symbol 323 MovieClip "tak" in Frame 228
onClipEvent (load) {
function conclude() {
var _local1 = _root;
if (_local1.sunet == 1) {
_local1.son.start(0, 1);
}
animate = false;
rod._x = -(30 + (_local1.b10._width / 2));
_rotation = 0;
count = 0;
_y = -100;
}
ballsArray = _root.controller.ballsArray;
orgX = _root.b10._x;
orgY = _root.b10._y;
animate = false;
conclude();
}
onClipEvent (mouseDown) {
if (_global.stai != 1) {
if (_root.paused == 0) {
if (_root.kkril == 1) {
_root.kkril = 0;
_root.b10._x = 110;
_root.b10._y = 190;
}
if (_root.b10.disabled) {
_root.b10.disabled = false;
_root.b10._x = orgX;
_root.b10._y = orgY;
OK = false;
while (!OK) {
hit = false;
var h = 0;
while (h < (ballsArray.length - 1)) {
tempClip = ballsArray[h];
if ((Math.abs(tempClip._x - _root.b10._x) < _root.b10._width) && (Math.abs(tempClip._y - _root.b10._y) < _root.b10._width)) {
hit = true;
break;
}
h++;
}
if (hit) {
_root.b10._x = _root.b10._x + 5;
} else {
OK = true;
}
}
_root.b10.dx = 0;
_root.b10.dy = 0;
_root.b10.moving = false;
return(undefined);
}
if (_root.b10.moving) {
return(undefined);
}
_x = _root.b10._x;
_y = _root.b10._y;
dragging = true;
angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
_rotation = ((angle * 180) / Math.PI);
_root.drawz._x = _root.b10._x;
_root.drawz._y = _root.b10._y;
_root.drawz._rotation = _rotation;
}
}
}
onClipEvent (mouseMove) {
if (_root.paused == 0) {
if (dragging) {
angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
_rotation = ((angle * 180) / Math.PI);
_root.drawz._x = _root.b10._x;
_root.drawz._y = _root.b10._y;
_root.drawz._rotation = _rotation;
}
}
}
onClipEvent (mouseUp) {
if (_global.stai != 1) {
if (_root.paused == 0) {
if (dragging) {
_root.drawz._x = -10000;
dragging = false;
animate = true;
count = 0;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (!animate) {
return(undefined);
}
count++;
if (count > 12) {
conclude();
}
if (count == 6) {
_root.b10.dx = (10 * Math.cos(angle)) * (_root.power._currentframe / 20);
_root.b10.dy = (10 * Math.sin(angle)) * (_root.power._currentframe / 20);
_root.b10.frictionX = _root.b10.dx / 200;
_root.b10.frictionY = _root.b10.dy / 200;
_root.b10.moving = true;
}
if (count < 6) {
rod._x = rod._x + 5;
} else {
rod._x = rod._x - 5;
}
}
}
Frame 229
stop();
stop();
Frame 230
i = 0;
while (i <= 9) {
_root["b" + i].timpIni = getTimer() + 90000;
i++;
}
_root.b4.timpIni = getTimer() + 50000;
Frame 231
stop();
ballsIn = 0;
Instance of Symbol 318 MovieClip "controller" in Frame 231
onClipEvent (load) {
function getDistanceSquare(clip, clip2) {
var _local2 = clip._x - clip2._x;
var _local1 = clip._y - clip2._y;
return((_local2 * _local2) + (_local1 * _local1));
}
ballsArray = [];
var n = 0;
while (n < 11) {
ballsArray[n] = _root["b" + n];
n++;
}
holesArray = [];
var n = 1;
while (n < 7) {
holesArray[n - 1] = _root["h" + n];
n++;
}
var k = 0;
while (k < ballsArray.length) {
ballsArray[k].dx = 0;
ballsArray[k].dy = 0;
ballsArray[k].moving = false;
ballsArray[k].disabled = false;
k++;
}
diameter = _root.b10._width;
diameterSquare = diameter * diameter;
bgLeft = 48 + (diameter / 2);
bgRight = 515 - (diameter / 2);
bgTop = 55 + (diameter / 2);
bgBottom = 345 - (diameter / 2);
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (fsec > 70) {
return(undefined);
}
var k = 0;
while (k < ballsArray.length) {
clip = ballsArray[k];
if (clip.moving == false) {
} else if (clip.disabled) {
} else if (clip.bounced) {
} else {
var m = 0;
while (m < ballsArray.length) {
clip2 = ballsArray[m];
if ((m <= k) && (clip2.moving)) {
} else if (clip2.disabled) {
} else {
xoff = clip2._x - clip._x;
yoff = clip2._y - clip._y;
if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) {
} else {
clip.moving = true;
clip2.moving = true;
_root.bouncer.bounce(clip, clip2);
}
}
m++;
}
var m = 0;
while (m < holesArray.length) {
clip2 = holesArray[m];
xoff = clip2._x - clip._x;
yoff = clip2._y - clip._y;
if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) {
} else {
fireN++;
duplicateMovieClip (_root.fire, "fire" + fireN, fireN);
_root["fire" + fireN].ball = clip;
_root["fire" + fireN].hole = clip2;
}
m++;
}
}
k++;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
t1 = getTimer();
fsec = t1 - t2;
t2 = t1;
var p = 0;
while (p < ballsArray.length) {
clip3 = ballsArray[p];
if (clip3.disabled) {
} else if (clip3.moving == false) {
} else {
clip3.dx = clip3.dx - clip3.frictionX;
clip3.dy = clip3.dy - clip3.frictionY;
clip3._x = clip3._x + clip3.dx;
clip3._y = clip3._y + clip3.dy;
dx = clip3.dx;
dy = clip3.dy;
if (clip3._x < bgLeft) {
clip3.dx = Math.abs(dx);
clip3.frictionX = Math.abs(clip3.frictionX);
} else if (clip3._x > bgRight) {
clip3.dx = -Math.abs(dx);
clip3.frictionX = -Math.abs(clip3.frictionX);
}
if (clip3._y < bgTop) {
clip3.dy = Math.abs(dy);
clip3.frictionY = Math.abs(clip3.frictionY);
} else if (clip3._y > bgBottom) {
clip3.dy = -Math.abs(dy);
clip3.frictionY = -Math.abs(clip3.frictionY);
}
if (((dx * dx) + (dy * dy)) < 0.003) {
clip3.dx = 0;
clip3.dy = 0;
clip3.frictionX = 0;
clip3.frictionY = 0;
clip3.moving = false;
}
}
p++;
}
}
}
Instance of Symbol 319 MovieClip "bouncer" in Frame 231
onClipEvent (load) {
function bounce(clip, clip2) {
var _local1 = clip;
var _local2 = clip2;
var angle = Math.atan2(_local1._y - _local2._y, _local1._x - _local2._x);
this._rotation = (angle * 180) / Math.PI;
var _local3 = {x:_local2.dx * 10, y:_local2.dy * 10};
this.globalToLocal(_local3);
var subVector2 = {x:_local3.x, y:0};
this.localToGlobal(subVector2);
var pt = {x:_local1.dx * 10, y:_local1.dy * 10};
this.globalToLocal(pt);
var subVector = {x:pt.x, y:0};
this.localToGlobal(subVector);
if ((_local3.x <= 0) && (pt.x >= 0)) {
} else {
var xSub = ((subVector2.x - subVector.x) / 10);
var ySub = ((subVector2.y - subVector.y) / 10);
_local1.dx = _local1.dx + xSub;
_local1.dy = _local1.dy + ySub;
_local2.dx = _local2.dx - xSub;
_local2.dy = _local2.dy - ySub;
var ang = Math.atan2(_local1.dy, _local1.dx);
_local1.frictionX = Math.cos(ang) / 20;
_local1.frictionY = Math.sin(ang) / 20;
var ang2 = Math.atan2(_local2.dy, _local2.dx);
_local2.frictionX = Math.cos(ang2) / 20;
_local2.frictionY = Math.sin(ang2) / 20;
}
}
}
Instance of Symbol 318 MovieClip "fire" in Frame 231
onClipEvent (load) {
function startGoHole(clip, clip2) {
ball.disabled = true;
animate = true;
framesNeed = int(_root.b10._width / Math.sqrt((ball.dx * ball.dx) + (ball.dy * ball.dy)));
dx = (hole._x - ball._x) / framesNeed;
dy = (hole._y - ball._y) / framesNeed;
count = 0;
}
function conclude() {
var _local2 = _root;
animate = false;
ball.moving = false;
ball._y = -300;
if (ball == _local2.b10) {
hole.gotoAndPlay(20);
} else {
_local2.ballsIn++;
_local2.score = _local2.score + ball.timpul;
_local2.scoreTXT.text = _local2.score;
if (_local2.score > _local2.best) {
_local2.best = _local2.score;
}
if (ball == _local2.b4) {
hole.gotoAndPlay(38);
} else {
hole.play();
}
ball._visible = false;
var balolInHole = -1;
var _local1 = 0;
while (_local1 < ballsArray.length) {
if (ballsArray[_local1] == ball) {
ballInHole = _local1;
break;
}
_local1++;
}
if (_local2.ballsIn >= 11) {
_local2.play();
}
if (ballInHole > -1) {
ballsArray.splice(ballInHole, 1);
}
}
removeMovieClip(this);
}
startGoHole();
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (!animate) {
return(undefined);
}
ball._x = ball._x + dx;
ball._y = ball._y + dy;
count++;
if (count >= framesNeed) {
conclude();
}
}
}
Instance of Symbol 323 MovieClip "tak" in Frame 231
onClipEvent (load) {
function conclude() {
var _local1 = _root;
if (_local1.sunet == 1) {
_local1.son.start(0, 1);
}
animate = false;
rod._x = -(30 + (_local1.b10._width / 2));
_rotation = 0;
count = 0;
_y = -100;
}
ballsArray = _root.controller.ballsArray;
orgX = _root.b10._x;
orgY = _root.b10._y;
animate = false;
conclude();
}
onClipEvent (mouseDown) {
if (_global.stai != 1) {
if (_root.paused == 0) {
if (_root.kkril == 1) {
_root.kkril = 0;
_root.b10._x = 110;
_root.b10._y = 190;
}
if (_root.b10.disabled) {
_root.b10.disabled = false;
_root.b10._x = orgX;
_root.b10._y = orgY;
OK = false;
while (!OK) {
hit = false;
var h = 0;
while (h < (ballsArray.length - 1)) {
tempClip = ballsArray[h];
if ((Math.abs(tempClip._x - _root.b10._x) < _root.b10._width) && (Math.abs(tempClip._y - _root.b10._y) < _root.b10._width)) {
hit = true;
break;
}
h++;
}
if (hit) {
_root.b10._x = _root.b10._x + 5;
} else {
OK = true;
}
}
_root.b10.dx = 0;
_root.b10.dy = 0;
_root.b10.moving = false;
return(undefined);
}
if (_root.b10.moving) {
return(undefined);
}
_x = _root.b10._x;
_y = _root.b10._y;
dragging = true;
angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
_rotation = ((angle * 180) / Math.PI);
_root.drawz._x = _root.b10._x;
_root.drawz._y = _root.b10._y;
_root.drawz._rotation = _rotation;
}
}
}
onClipEvent (mouseMove) {
if (_root.paused == 0) {
if (dragging) {
angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
_rotation = ((angle * 180) / Math.PI);
_root.drawz._x = _root.b10._x;
_root.drawz._y = _root.b10._y;
_root.drawz._rotation = _rotation;
}
}
}
onClipEvent (mouseUp) {
if (_global.stai != 1) {
if (_root.paused == 0) {
if (dragging) {
_root.drawz._x = -10000;
dragging = false;
animate = true;
count = 0;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (!animate) {
return(undefined);
}
count++;
if (count > 12) {
conclude();
}
if (count == 6) {
_root.b10.dx = (10 * Math.cos(angle)) * (_root.power._currentframe / 20);
_root.b10.dy = (10 * Math.sin(angle)) * (_root.power._currentframe / 20);
_root.b10.frictionX = _root.b10.dx / 200;
_root.b10.frictionY = _root.b10.dy / 200;
_root.b10.moving = true;
}
if (count < 6) {
rod._x = rod._x + 5;
} else {
rod._x = rod._x - 5;
}
}
}
Frame 232
stop();
stop();
Frame 233
i = 0;
while (i <= 9) {
_root["b" + i].timpIni = getTimer() + 80000;
i++;
}
_root.b4.timpIni = getTimer() + 40000;
Frame 234
stop();
ballsIn = 0;
Instance of Symbol 318 MovieClip "controller" in Frame 234
onClipEvent (load) {
function getDistanceSquare(clip, clip2) {
var _local2 = clip._x - clip2._x;
var _local1 = clip._y - clip2._y;
return((_local2 * _local2) + (_local1 * _local1));
}
ballsArray = [];
var n = 0;
while (n < 11) {
ballsArray[n] = _root["b" + n];
n++;
}
holesArray = [];
var n = 1;
while (n < 7) {
holesArray[n - 1] = _root["h" + n];
n++;
}
var k = 0;
while (k < ballsArray.length) {
ballsArray[k].dx = 0;
ballsArray[k].dy = 0;
ballsArray[k].moving = false;
ballsArray[k].disabled = false;
k++;
}
diameter = _root.b10._width;
diameterSquare = diameter * diameter;
bgLeft = 48 + (diameter / 2);
bgRight = 515 - (diameter / 2);
bgTop = 55 + (diameter / 2);
bgBottom = 345 - (diameter / 2);
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (fsec > 70) {
return(undefined);
}
var k = 0;
while (k < ballsArray.length) {
clip = ballsArray[k];
if (clip.moving == false) {
} else if (clip.disabled) {
} else if (clip.bounced) {
} else {
var m = 0;
while (m < ballsArray.length) {
clip2 = ballsArray[m];
if ((m <= k) && (clip2.moving)) {
} else if (clip2.disabled) {
} else {
xoff = clip2._x - clip._x;
yoff = clip2._y - clip._y;
if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) {
} else {
clip.moving = true;
clip2.moving = true;
_root.bouncer.bounce(clip, clip2);
}
}
m++;
}
var m = 0;
while (m < holesArray.length) {
clip2 = holesArray[m];
xoff = clip2._x - clip._x;
yoff = clip2._y - clip._y;
if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) {
} else {
fireN++;
duplicateMovieClip (_root.fire, "fire" + fireN, fireN);
_root["fire" + fireN].ball = clip;
_root["fire" + fireN].hole = clip2;
}
m++;
}
}
k++;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
t1 = getTimer();
fsec = t1 - t2;
t2 = t1;
var p = 0;
while (p < ballsArray.length) {
clip3 = ballsArray[p];
if (clip3.disabled) {
} else if (clip3.moving == false) {
} else {
clip3.dx = clip3.dx - clip3.frictionX;
clip3.dy = clip3.dy - clip3.frictionY;
clip3._x = clip3._x + clip3.dx;
clip3._y = clip3._y + clip3.dy;
dx = clip3.dx;
dy = clip3.dy;
if (clip3._x < bgLeft) {
clip3.dx = Math.abs(dx);
clip3.frictionX = Math.abs(clip3.frictionX);
} else if (clip3._x > bgRight) {
clip3.dx = -Math.abs(dx);
clip3.frictionX = -Math.abs(clip3.frictionX);
}
if (clip3._y < bgTop) {
clip3.dy = Math.abs(dy);
clip3.frictionY = Math.abs(clip3.frictionY);
} else if (clip3._y > bgBottom) {
clip3.dy = -Math.abs(dy);
clip3.frictionY = -Math.abs(clip3.frictionY);
}
if (((dx * dx) + (dy * dy)) < 0.003) {
clip3.dx = 0;
clip3.dy = 0;
clip3.frictionX = 0;
clip3.frictionY = 0;
clip3.moving = false;
}
}
p++;
}
}
}
Instance of Symbol 319 MovieClip "bouncer" in Frame 234
onClipEvent (load) {
function bounce(clip, clip2) {
var _local1 = clip;
var _local2 = clip2;
var angle = Math.atan2(_local1._y - _local2._y, _local1._x - _local2._x);
this._rotation = (angle * 180) / Math.PI;
var _local3 = {x:_local2.dx * 10, y:_local2.dy * 10};
this.globalToLocal(_local3);
var subVector2 = {x:_local3.x, y:0};
this.localToGlobal(subVector2);
var pt = {x:_local1.dx * 10, y:_local1.dy * 10};
this.globalToLocal(pt);
var subVector = {x:pt.x, y:0};
this.localToGlobal(subVector);
if ((_local3.x <= 0) && (pt.x >= 0)) {
} else {
var xSub = ((subVector2.x - subVector.x) / 10);
var ySub = ((subVector2.y - subVector.y) / 10);
_local1.dx = _local1.dx + xSub;
_local1.dy = _local1.dy + ySub;
_local2.dx = _local2.dx - xSub;
_local2.dy = _local2.dy - ySub;
var ang = Math.atan2(_local1.dy, _local1.dx);
_local1.frictionX = Math.cos(ang) / 20;
_local1.frictionY = Math.sin(ang) / 20;
var ang2 = Math.atan2(_local2.dy, _local2.dx);
_local2.frictionX = Math.cos(ang2) / 20;
_local2.frictionY = Math.sin(ang2) / 20;
}
}
}
Instance of Symbol 318 MovieClip "fire" in Frame 234
onClipEvent (load) {
function startGoHole(clip, clip2) {
ball.disabled = true;
animate = true;
framesNeed = int(_root.b10._width / Math.sqrt((ball.dx * ball.dx) + (ball.dy * ball.dy)));
dx = (hole._x - ball._x) / framesNeed;
dy = (hole._y - ball._y) / framesNeed;
count = 0;
}
function conclude() {
var _local2 = _root;
animate = false;
ball.moving = false;
ball._y = -300;
if (ball == _local2.b10) {
hole.gotoAndPlay(20);
} else {
_local2.ballsIn++;
_local2.score = _local2.score + ball.timpul;
_local2.scoreTXT.text = _local2.score;
if (_local2.score > _local2.best) {
_local2.best = _local2.score;
}
if (ball == _local2.b4) {
hole.gotoAndPlay(38);
} else {
hole.play();
}
ball._visible = false;
var balolInHole = -1;
var _local1 = 0;
while (_local1 < ballsArray.length) {
if (ballsArray[_local1] == ball) {
ballInHole = _local1;
break;
}
_local1++;
}
if (_local2.ballsIn >= 11) {
_local2.play();
}
if (ballInHole > -1) {
ballsArray.splice(ballInHole, 1);
}
}
removeMovieClip(this);
}
startGoHole();
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (!animate) {
return(undefined);
}
ball._x = ball._x + dx;
ball._y = ball._y + dy;
count++;
if (count >= framesNeed) {
conclude();
}
}
}
Instance of Symbol 323 MovieClip "tak" in Frame 234
onClipEvent (load) {
function conclude() {
var _local1 = _root;
if (_local1.sunet == 1) {
_local1.son.start(0, 1);
}
animate = false;
rod._x = -(30 + (_local1.b10._width / 2));
_rotation = 0;
count = 0;
_y = -100;
}
ballsArray = _root.controller.ballsArray;
orgX = _root.b10._x;
orgY = _root.b10._y;
animate = false;
conclude();
}
onClipEvent (mouseDown) {
if (_global.stai != 1) {
if (_root.paused == 0) {
if (_root.kkril == 1) {
_root.kkril = 0;
_root.b10._x = 110;
_root.b10._y = 190;
}
if (_root.b10.disabled) {
_root.b10.disabled = false;
_root.b10._x = orgX;
_root.b10._y = orgY;
OK = false;
while (!OK) {
hit = false;
var h = 0;
while (h < (ballsArray.length - 1)) {
tempClip = ballsArray[h];
if ((Math.abs(tempClip._x - _root.b10._x) < _root.b10._width) && (Math.abs(tempClip._y - _root.b10._y) < _root.b10._width)) {
hit = true;
break;
}
h++;
}
if (hit) {
_root.b10._x = _root.b10._x + 5;
} else {
OK = true;
}
}
_root.b10.dx = 0;
_root.b10.dy = 0;
_root.b10.moving = false;
return(undefined);
}
if (_root.b10.moving) {
return(undefined);
}
_x = _root.b10._x;
_y = _root.b10._y;
dragging = true;
angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
_rotation = ((angle * 180) / Math.PI);
_root.drawz._x = _root.b10._x;
_root.drawz._y = _root.b10._y;
_root.drawz._rotation = _rotation;
}
}
}
onClipEvent (mouseMove) {
if (_root.paused == 0) {
if (dragging) {
angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
_rotation = ((angle * 180) / Math.PI);
_root.drawz._x = _root.b10._x;
_root.drawz._y = _root.b10._y;
_root.drawz._rotation = _rotation;
}
}
}
onClipEvent (mouseUp) {
if (_root.paused == 0) {
if (dragging) {
_root.drawz._x = -10000;
dragging = false;
animate = true;
count = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (!animate) {
return(undefined);
}
count++;
if (count > 12) {
conclude();
}
if (count == 6) {
_root.b10.dx = (10 * Math.cos(angle)) * (_root.power._currentframe / 20);
_root.b10.dy = (10 * Math.sin(angle)) * (_root.power._currentframe / 20);
_root.b10.frictionX = _root.b10.dx / 200;
_root.b10.frictionY = _root.b10.dy / 200;
_root.b10.moving = true;
}
if (count < 6) {
rod._x = rod._x + 5;
} else {
rod._x = rod._x - 5;
}
}
}
Frame 235
stop();
stop();
Frame 236
i = 0;
while (i <= 8) {
_root["b" + i].timpIni = getTimer() + 70000;
i++;
}
_root.b9.timpIni = getTimer() + 40000;
Frame 237
stop();
ballsIn = 0;
Instance of Symbol 318 MovieClip "controller" in Frame 237
onClipEvent (load) {
function getDistanceSquare(clip, clip2) {
var _local2 = clip._x - clip2._x;
var _local1 = clip._y - clip2._y;
return((_local2 * _local2) + (_local1 * _local1));
}
ballsArray = [];
var n = 0;
while (n < 11) {
ballsArray[n] = _root["b" + n];
n++;
}
holesArray = [];
var n = 1;
while (n < 7) {
holesArray[n - 1] = _root["h" + n];
n++;
}
var k = 0;
while (k < ballsArray.length) {
ballsArray[k].dx = 0;
ballsArray[k].dy = 0;
ballsArray[k].moving = false;
ballsArray[k].disabled = false;
k++;
}
diameter = _root.b10._width;
diameterSquare = diameter * diameter;
bgLeft = 48 + (diameter / 2);
bgRight = 515 - (diameter / 2);
bgTop = 55 + (diameter / 2);
bgBottom = 345 - (diameter / 2);
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (fsec > 70) {
return(undefined);
}
var k = 0;
while (k < ballsArray.length) {
clip = ballsArray[k];
if (clip.moving == false) {
} else if (clip.disabled) {
} else if (clip.bounced) {
} else {
var m = 0;
while (m < ballsArray.length) {
clip2 = ballsArray[m];
if ((m <= k) && (clip2.moving)) {
} else if (clip2.disabled) {
} else {
xoff = clip2._x - clip._x;
yoff = clip2._y - clip._y;
if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) {
} else {
clip.moving = true;
clip2.moving = true;
_root.bouncer.bounce(clip, clip2);
}
}
m++;
}
var m = 0;
while (m < holesArray.length) {
clip2 = holesArray[m];
xoff = clip2._x - clip._x;
yoff = clip2._y - clip._y;
if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) {
} else {
fireN++;
duplicateMovieClip (_root.fire, "fire" + fireN, fireN);
_root["fire" + fireN].ball = clip;
_root["fire" + fireN].hole = clip2;
}
m++;
}
}
k++;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
t1 = getTimer();
fsec = t1 - t2;
t2 = t1;
var p = 0;
while (p < ballsArray.length) {
clip3 = ballsArray[p];
if (clip3.disabled) {
} else if (clip3.moving == false) {
} else {
clip3.dx = clip3.dx - clip3.frictionX;
clip3.dy = clip3.dy - clip3.frictionY;
clip3._x = clip3._x + clip3.dx;
clip3._y = clip3._y + clip3.dy;
dx = clip3.dx;
dy = clip3.dy;
if (clip3._x < bgLeft) {
clip3.dx = Math.abs(dx);
clip3.frictionX = Math.abs(clip3.frictionX);
} else if (clip3._x > bgRight) {
clip3.dx = -Math.abs(dx);
clip3.frictionX = -Math.abs(clip3.frictionX);
}
if (clip3._y < bgTop) {
clip3.dy = Math.abs(dy);
clip3.frictionY = Math.abs(clip3.frictionY);
} else if (clip3._y > bgBottom) {
clip3.dy = -Math.abs(dy);
clip3.frictionY = -Math.abs(clip3.frictionY);
}
if (((dx * dx) + (dy * dy)) < 0.003) {
clip3.dx = 0;
clip3.dy = 0;
clip3.frictionX = 0;
clip3.frictionY = 0;
clip3.moving = false;
}
}
p++;
}
}
}
Instance of Symbol 319 MovieClip "bouncer" in Frame 237
onClipEvent (load) {
function bounce(clip, clip2) {
var _local1 = clip;
var _local2 = clip2;
var angle = Math.atan2(_local1._y - _local2._y, _local1._x - _local2._x);
this._rotation = (angle * 180) / Math.PI;
var _local3 = {x:_local2.dx * 10, y:_local2.dy * 10};
this.globalToLocal(_local3);
var subVector2 = {x:_local3.x, y:0};
this.localToGlobal(subVector2);
var pt = {x:_local1.dx * 10, y:_local1.dy * 10};
this.globalToLocal(pt);
var subVector = {x:pt.x, y:0};
this.localToGlobal(subVector);
if ((_local3.x <= 0) && (pt.x >= 0)) {
} else {
var xSub = ((subVector2.x - subVector.x) / 10);
var ySub = ((subVector2.y - subVector.y) / 10);
_local1.dx = _local1.dx + xSub;
_local1.dy = _local1.dy + ySub;
_local2.dx = _local2.dx - xSub;
_local2.dy = _local2.dy - ySub;
var ang = Math.atan2(_local1.dy, _local1.dx);
_local1.frictionX = Math.cos(ang) / 20;
_local1.frictionY = Math.sin(ang) / 20;
var ang2 = Math.atan2(_local2.dy, _local2.dx);
_local2.frictionX = Math.cos(ang2) / 20;
_local2.frictionY = Math.sin(ang2) / 20;
}
}
}
Instance of Symbol 318 MovieClip "fire" in Frame 237
onClipEvent (load) {
function startGoHole(clip, clip2) {
ball.disabled = true;
animate = true;
framesNeed = int(_root.b10._width / Math.sqrt((ball.dx * ball.dx) + (ball.dy * ball.dy)));
dx = (hole._x - ball._x) / framesNeed;
dy = (hole._y - ball._y) / framesNeed;
count = 0;
}
function conclude() {
var _local2 = _root;
animate = false;
ball.moving = false;
ball._y = -300;
if (ball == _local2.b10) {
hole.gotoAndPlay(20);
} else {
_local2.ballsIn++;
_local2.score = _local2.score + ball.timpul;
_local2.scoreTXT.text = _local2.score;
if (_local2.score > _local2.best) {
_local2.best = _local2.score;
}
if (ball == _local2.b9) {
hole.gotoAndPlay(38);
} else {
hole.play();
}
ball._visible = false;
var balolInHole = -1;
var _local1 = 0;
while (_local1 < ballsArray.length) {
if (ballsArray[_local1] == ball) {
ballInHole = _local1;
break;
}
_local1++;
}
if (_local2.ballsIn >= 11) {
_local2.play();
}
if (ballInHole > -1) {
ballsArray.splice(ballInHole, 1);
}
}
removeMovieClip(this);
}
startGoHole();
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (!animate) {
return(undefined);
}
ball._x = ball._x + dx;
ball._y = ball._y + dy;
count++;
if (count >= framesNeed) {
conclude();
}
}
}
Instance of Symbol 323 MovieClip "tak" in Frame 237
onClipEvent (load) {
function conclude() {
var _local1 = _root;
if (_local1.sunet == 1) {
_local1.son.start(0, 1);
}
animate = false;
rod._x = -(30 + (_local1.b10._width / 2));
_rotation = 0;
count = 0;
_y = -100;
}
ballsArray = _root.controller.ballsArray;
orgX = _root.b10._x;
orgY = _root.b10._y;
animate = false;
conclude();
}
onClipEvent (mouseDown) {
if (_global.stai != 1) {
if (_root.paused == 0) {
if (_root.kkril == 1) {
_root.kkril = 0;
_root.b10._x = 110;
_root.b10._y = 190;
}
if (_root.b10.disabled) {
_root.b10.disabled = false;
_root.b10._x = orgX;
_root.b10._y = orgY;
OK = false;
while (!OK) {
hit = false;
var h = 0;
while (h < (ballsArray.length - 1)) {
tempClip = ballsArray[h];
if ((Math.abs(tempClip._x - _root.b10._x) < _root.b10._width) && (Math.abs(tempClip._y - _root.b10._y) < _root.b10._width)) {
hit = true;
break;
}
h++;
}
if (hit) {
_root.b10._x = _root.b10._x + 5;
} else {
OK = true;
}
}
_root.b10.dx = 0;
_root.b10.dy = 0;
_root.b10.moving = false;
return(undefined);
}
if (_root.b10.moving) {
return(undefined);
}
_x = _root.b10._x;
_y = _root.b10._y;
dragging = true;
angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
_rotation = ((angle * 180) / Math.PI);
_root.drawz._x = _root.b10._x;
_root.drawz._y = _root.b10._y;
_root.drawz._rotation = _rotation;
}
}
}
onClipEvent (mouseMove) {
if (_root.paused == 0) {
if (dragging) {
angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
_rotation = ((angle * 180) / Math.PI);
_root.drawz._x = _root.b10._x;
_root.drawz._y = _root.b10._y;
_root.drawz._rotation = _rotation;
}
}
}
onClipEvent (mouseUp) {
if (_global.stai != 1) {
if (_root.paused == 0) {
if (dragging) {
_root.drawz._x = -10000;
dragging = false;
animate = true;
count = 0;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (!animate) {
return(undefined);
}
count++;
if (count > 12) {
conclude();
}
if (count == 6) {
_root.b10.dx = (10 * Math.cos(angle)) * (_root.power._currentframe / 20);
_root.b10.dy = (10 * Math.sin(angle)) * (_root.power._currentframe / 20);
_root.b10.frictionX = _root.b10.dx / 200;
_root.b10.frictionY = _root.b10.dy / 200;
_root.b10.moving = true;
}
if (count < 6) {
rod._x = rod._x + 5;
} else {
rod._x = rod._x - 5;
}
}
}
Frame 238
stop();
stop();
Frame 239
i = 0;
while (i <= 8) {
_root["b" + i].timpIni = (getTimer() + 40000) + ((8 - i) * 10000);
i++;
}
_root.b9.timpIni = getTimer() + 30000;
Frame 240
stop();
ballsIn = 0;
Instance of Symbol 318 MovieClip "controller" in Frame 240
onClipEvent (load) {
function getDistanceSquare(clip, clip2) {
var _local2 = clip._x - clip2._x;
var _local1 = clip._y - clip2._y;
return((_local2 * _local2) + (_local1 * _local1));
}
ballsArray = [];
var n = 0;
while (n < 11) {
ballsArray[n] = _root["b" + n];
n++;
}
holesArray = [];
var n = 1;
while (n < 7) {
holesArray[n - 1] = _root["h" + n];
n++;
}
var k = 0;
while (k < ballsArray.length) {
ballsArray[k].dx = 0;
ballsArray[k].dy = 0;
ballsArray[k].moving = false;
ballsArray[k].disabled = false;
k++;
}
diameter = _root.b10._width;
diameterSquare = diameter * diameter;
bgLeft = 48 + (diameter / 2);
bgRight = 515 - (diameter / 2);
bgTop = 55 + (diameter / 2);
bgBottom = 345 - (diameter / 2);
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (fsec > 70) {
return(undefined);
}
var k = 0;
while (k < ballsArray.length) {
clip = ballsArray[k];
if (clip.moving == false) {
} else if (clip.disabled) {
} else if (clip.bounced) {
} else {
var m = 0;
while (m < ballsArray.length) {
clip2 = ballsArray[m];
if ((m <= k) && (clip2.moving)) {
} else if (clip2.disabled) {
} else {
xoff = clip2._x - clip._x;
yoff = clip2._y - clip._y;
if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) {
} else {
clip.moving = true;
clip2.moving = true;
_root.bouncer.bounce(clip, clip2);
}
}
m++;
}
var m = 0;
while (m < holesArray.length) {
clip2 = holesArray[m];
xoff = clip2._x - clip._x;
yoff = clip2._y - clip._y;
if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) {
} else {
fireN++;
duplicateMovieClip (_root.fire, "fire" + fireN, fireN);
_root["fire" + fireN].ball = clip;
_root["fire" + fireN].hole = clip2;
}
m++;
}
}
k++;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
t1 = getTimer();
fsec = t1 - t2;
t2 = t1;
var p = 0;
while (p < ballsArray.length) {
clip3 = ballsArray[p];
if (clip3.disabled) {
} else if (clip3.moving == false) {
} else {
clip3.dx = clip3.dx - clip3.frictionX;
clip3.dy = clip3.dy - clip3.frictionY;
clip3._x = clip3._x + clip3.dx;
clip3._y = clip3._y + clip3.dy;
dx = clip3.dx;
dy = clip3.dy;
if (clip3._x < bgLeft) {
clip3.dx = Math.abs(dx);
clip3.frictionX = Math.abs(clip3.frictionX);
} else if (clip3._x > bgRight) {
clip3.dx = -Math.abs(dx);
clip3.frictionX = -Math.abs(clip3.frictionX);
}
if (clip3._y < bgTop) {
clip3.dy = Math.abs(dy);
clip3.frictionY = Math.abs(clip3.frictionY);
} else if (clip3._y > bgBottom) {
clip3.dy = -Math.abs(dy);
clip3.frictionY = -Math.abs(clip3.frictionY);
}
if (((dx * dx) + (dy * dy)) < 0.003) {
clip3.dx = 0;
clip3.dy = 0;
clip3.frictionX = 0;
clip3.frictionY = 0;
clip3.moving = false;
}
}
p++;
}
}
}
Instance of Symbol 319 MovieClip "bouncer" in Frame 240
onClipEvent (load) {
function bounce(clip, clip2) {
var _local1 = clip;
var _local2 = clip2;
var angle = Math.atan2(_local1._y - _local2._y, _local1._x - _local2._x);
this._rotation = (angle * 180) / Math.PI;
var _local3 = {x:_local2.dx * 10, y:_local2.dy * 10};
this.globalToLocal(_local3);
var subVector2 = {x:_local3.x, y:0};
this.localToGlobal(subVector2);
var pt = {x:_local1.dx * 10, y:_local1.dy * 10};
this.globalToLocal(pt);
var subVector = {x:pt.x, y:0};
this.localToGlobal(subVector);
if ((_local3.x <= 0) && (pt.x >= 0)) {
} else {
var xSub = ((subVector2.x - subVector.x) / 10);
var ySub = ((subVector2.y - subVector.y) / 10);
_local1.dx = _local1.dx + xSub;
_local1.dy = _local1.dy + ySub;
_local2.dx = _local2.dx - xSub;
_local2.dy = _local2.dy - ySub;
var ang = Math.atan2(_local1.dy, _local1.dx);
_local1.frictionX = Math.cos(ang) / 20;
_local1.frictionY = Math.sin(ang) / 20;
var ang2 = Math.atan2(_local2.dy, _local2.dx);
_local2.frictionX = Math.cos(ang2) / 20;
_local2.frictionY = Math.sin(ang2) / 20;
}
}
}
Instance of Symbol 318 MovieClip "fire" in Frame 240
onClipEvent (load) {
function startGoHole(clip, clip2) {
ball.disabled = true;
animate = true;
framesNeed = int(_root.b10._width / Math.sqrt((ball.dx * ball.dx) + (ball.dy * ball.dy)));
dx = (hole._x - ball._x) / framesNeed;
dy = (hole._y - ball._y) / framesNeed;
count = 0;
}
function conclude() {
var _local2 = _root;
animate = false;
ball.moving = false;
ball._y = -300;
if (ball == _local2.b10) {
hole.gotoAndPlay(20);
} else {
_local2.ballsIn++;
_local2.score = _local2.score + ball.timpul;
_local2.scoreTXT.text = _local2.score;
if (_local2.score > _local2.best) {
_local2.best = _local2.score;
}
if (ball == _local2.b9) {
hole.gotoAndPlay(38);
} else {
hole.play();
}
ball._visible = false;
var balolInHole = -1;
var _local1 = 0;
while (_local1 < ballsArray.length) {
if (ballsArray[_local1] == ball) {
ballInHole = _local1;
break;
}
_local1++;
}
if (_local2.ballsIn >= 11) {
_local2.play();
}
if (ballInHole > -1) {
ballsArray.splice(ballInHole, 1);
}
}
removeMovieClip(this);
}
startGoHole();
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (!animate) {
return(undefined);
}
ball._x = ball._x + dx;
ball._y = ball._y + dy;
count++;
if (count >= framesNeed) {
conclude();
}
}
}
Instance of Symbol 323 MovieClip "tak" in Frame 240
onClipEvent (load) {
function conclude() {
var _local1 = _root;
if (_local1.sunet == 1) {
_local1.son.start(0, 1);
}
animate = false;
rod._x = -(30 + (_local1.b10._width / 2));
_rotation = 0;
count = 0;
_y = -100;
}
ballsArray = _root.controller.ballsArray;
orgX = _root.b10._x;
orgY = _root.b10._y;
animate = false;
conclude();
}
onClipEvent (mouseDown) {
if (_global.stai != 1) {
if (_root.paused == 0) {
if (_root.kkril == 1) {
_root.kkril = 0;
_root.b10._x = 110;
_root.b10._y = 190;
}
if (_root.b10.disabled) {
_root.b10.disabled = false;
_root.b10._x = orgX;
_root.b10._y = orgY;
OK = false;
while (!OK) {
hit = false;
var h = 0;
while (h < (ballsArray.length - 1)) {
tempClip = ballsArray[h];
if ((Math.abs(tempClip._x - _root.b10._x) < _root.b10._width) && (Math.abs(tempClip._y - _root.b10._y) < _root.b10._width)) {
hit = true;
break;
}
h++;
}
if (hit) {
_root.b10._x = _root.b10._x + 5;
} else {
OK = true;
}
}
_root.b10.dx = 0;
_root.b10.dy = 0;
_root.b10.moving = false;
return(undefined);
}
if (_root.b10.moving) {
return(undefined);
}
_x = _root.b10._x;
_y = _root.b10._y;
dragging = true;
angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
_rotation = ((angle * 180) / Math.PI);
_root.drawz._x = _root.b10._x;
_root.drawz._y = _root.b10._y;
_root.drawz._rotation = _rotation;
}
}
}
onClipEvent (mouseMove) {
if (_root.paused == 0) {
if (dragging) {
angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
_rotation = ((angle * 180) / Math.PI);
_root.drawz._x = _root.b10._x;
_root.drawz._y = _root.b10._y;
_root.drawz._rotation = _rotation;
}
}
}
onClipEvent (mouseUp) {
if (_global.stai != 1) {
if (_root.paused == 0) {
if (dragging) {
_root.drawz._x = -10000;
dragging = false;
animate = true;
count = 0;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (!animate) {
return(undefined);
}
count++;
if (count > 12) {
conclude();
}
if (count == 6) {
_root.b10.dx = (10 * Math.cos(angle)) * (_root.power._currentframe / 20);
_root.b10.dy = (10 * Math.sin(angle)) * (_root.power._currentframe / 20);
_root.b10.frictionX = _root.b10.dx / 200;
_root.b10.frictionY = _root.b10.dy / 200;
_root.b10.moving = true;
}
if (count < 6) {
rod._x = rod._x + 5;
} else {
rod._x = rod._x - 5;
}
}
}
Frame 241
stop();
stop();
Frame 242
i = 0;
while (i <= 5) {
_root["b" + i].timpIni = getTimer() + 30000;
i++;
}
i = 6;
while (i <= 8) {
_root["b" + i].timpIni = getTimer() + 40000;
i++;
}
_root.b9.timpIni = getTimer() + 50000;
Frame 243
stop();
ballsIn = 0;
Instance of Symbol 318 MovieClip "controller" in Frame 243
onClipEvent (load) {
function getDistanceSquare(clip, clip2) {
var _local2 = clip._x - clip2._x;
var _local1 = clip._y - clip2._y;
return((_local2 * _local2) + (_local1 * _local1));
}
ballsArray = [];
var n = 0;
while (n < 11) {
ballsArray[n] = _root["b" + n];
n++;
}
holesArray = [];
var n = 1;
while (n < 7) {
holesArray[n - 1] = _root["h" + n];
n++;
}
var k = 0;
while (k < ballsArray.length) {
ballsArray[k].dx = 0;
ballsArray[k].dy = 0;
ballsArray[k].moving = false;
ballsArray[k].disabled = false;
k++;
}
diameter = _root.b10._width;
diameterSquare = diameter * diameter;
bgLeft = 48 + (diameter / 2);
bgRight = 515 - (diameter / 2);
bgTop = 55 + (diameter / 2);
bgBottom = 345 - (diameter / 2);
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (fsec > 70) {
return(undefined);
}
var k = 0;
while (k < ballsArray.length) {
clip = ballsArray[k];
if (clip.moving == false) {
} else if (clip.disabled) {
} else if (clip.bounced) {
} else {
var m = 0;
while (m < ballsArray.length) {
clip2 = ballsArray[m];
if ((m <= k) && (clip2.moving)) {
} else if (clip2.disabled) {
} else {
xoff = clip2._x - clip._x;
yoff = clip2._y - clip._y;
if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) {
} else {
clip.moving = true;
clip2.moving = true;
_root.bouncer.bounce(clip, clip2);
}
}
m++;
}
var m = 0;
while (m < holesArray.length) {
clip2 = holesArray[m];
xoff = clip2._x - clip._x;
yoff = clip2._y - clip._y;
if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) {
} else {
fireN++;
duplicateMovieClip (_root.fire, "fire" + fireN, fireN);
_root["fire" + fireN].ball = clip;
_root["fire" + fireN].hole = clip2;
}
m++;
}
}
k++;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
t1 = getTimer();
fsec = t1 - t2;
t2 = t1;
var p = 0;
while (p < ballsArray.length) {
clip3 = ballsArray[p];
if (clip3.disabled) {
} else if (clip3.moving == false) {
} else {
clip3.dx = clip3.dx - clip3.frictionX;
clip3.dy = clip3.dy - clip3.frictionY;
clip3._x = clip3._x + clip3.dx;
clip3._y = clip3._y + clip3.dy;
dx = clip3.dx;
dy = clip3.dy;
if (clip3._x < bgLeft) {
clip3.dx = Math.abs(dx);
clip3.frictionX = Math.abs(clip3.frictionX);
} else if (clip3._x > bgRight) {
clip3.dx = -Math.abs(dx);
clip3.frictionX = -Math.abs(clip3.frictionX);
}
if (clip3._y < bgTop) {
clip3.dy = Math.abs(dy);
clip3.frictionY = Math.abs(clip3.frictionY);
} else if (clip3._y > bgBottom) {
clip3.dy = -Math.abs(dy);
clip3.frictionY = -Math.abs(clip3.frictionY);
}
if (((dx * dx) + (dy * dy)) < 0.003) {
clip3.dx = 0;
clip3.dy = 0;
clip3.frictionX = 0;
clip3.frictionY = 0;
clip3.moving = false;
}
}
p++;
}
}
}
Instance of Symbol 319 MovieClip "bouncer" in Frame 243
onClipEvent (load) {
function bounce(clip, clip2) {
var _local1 = clip;
var _local2 = clip2;
var angle = Math.atan2(_local1._y - _local2._y, _local1._x - _local2._x);
this._rotation = (angle * 180) / Math.PI;
var _local3 = {x:_local2.dx * 10, y:_local2.dy * 10};
this.globalToLocal(_local3);
var subVector2 = {x:_local3.x, y:0};
this.localToGlobal(subVector2);
var pt = {x:_local1.dx * 10, y:_local1.dy * 10};
this.globalToLocal(pt);
var subVector = {x:pt.x, y:0};
this.localToGlobal(subVector);
if ((_local3.x <= 0) && (pt.x >= 0)) {
} else {
var xSub = ((subVector2.x - subVector.x) / 10);
var ySub = ((subVector2.y - subVector.y) / 10);
_local1.dx = _local1.dx + xSub;
_local1.dy = _local1.dy + ySub;
_local2.dx = _local2.dx - xSub;
_local2.dy = _local2.dy - ySub;
var ang = Math.atan2(_local1.dy, _local1.dx);
_local1.frictionX = Math.cos(ang) / 20;
_local1.frictionY = Math.sin(ang) / 20;
var ang2 = Math.atan2(_local2.dy, _local2.dx);
_local2.frictionX = Math.cos(ang2) / 20;
_local2.frictionY = Math.sin(ang2) / 20;
}
}
}
Instance of Symbol 318 MovieClip "fire" in Frame 243
onClipEvent (load) {
function startGoHole(clip, clip2) {
ball.disabled = true;
animate = true;
framesNeed = int(_root.b10._width / Math.sqrt((ball.dx * ball.dx) + (ball.dy * ball.dy)));
dx = (hole._x - ball._x) / framesNeed;
dy = (hole._y - ball._y) / framesNeed;
count = 0;
}
function conclude() {
var _local2 = _root;
animate = false;
ball.moving = false;
ball._y = -300;
if (ball == _local2.b10) {
hole.gotoAndPlay(20);
} else {
_local2.ballsIn++;
_local2.score = _local2.score + ball.timpul;
_local2.scoreTXT.text = _local2.score;
if (_local2.score > _local2.best) {
_local2.best = _local2.score;
}
if (ball == _local2.b9) {
hole.gotoAndPlay(38);
} else {
hole.play();
}
ball._visible = false;
var balolInHole = -1;
var _local1 = 0;
while (_local1 < ballsArray.length) {
if (ballsArray[_local1] == ball) {
ballInHole = _local1;
break;
}
_local1++;
}
if (_local2.ballsIn >= 11) {
_local2.play();
}
if (ballInHole > -1) {
ballsArray.splice(ballInHole, 1);
}
}
removeMovieClip(this);
}
startGoHole();
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (!animate) {
return(undefined);
}
ball._x = ball._x + dx;
ball._y = ball._y + dy;
count++;
if (count >= framesNeed) {
conclude();
}
}
}
Instance of Symbol 323 MovieClip "tak" in Frame 243
onClipEvent (load) {
function conclude() {
var _local1 = _root;
if (_local1.sunet == 1) {
_local1.son.start(0, 1);
}
animate = false;
rod._x = -(30 + (_local1.b10._width / 2));
_rotation = 0;
count = 0;
_y = -100;
}
ballsArray = _root.controller.ballsArray;
orgX = _root.b10._x;
orgY = _root.b10._y;
animate = false;
conclude();
}
onClipEvent (mouseDown) {
if (_global.stai != 1) {
if (_root.paused == 0) {
if (_root.kkril == 1) {
_root.kkril = 0;
_root.b10._x = 110;
_root.b10._y = 190;
}
if (_root.b10.disabled) {
_root.b10.disabled = false;
_root.b10._x = orgX;
_root.b10._y = orgY;
OK = false;
while (!OK) {
hit = false;
var h = 0;
while (h < (ballsArray.length - 1)) {
tempClip = ballsArray[h];
if ((Math.abs(tempClip._x - _root.b10._x) < _root.b10._width) && (Math.abs(tempClip._y - _root.b10._y) < _root.b10._width)) {
hit = true;
break;
}
h++;
}
if (hit) {
_root.b10._x = _root.b10._x + 5;
} else {
OK = true;
}
}
_root.b10.dx = 0;
_root.b10.dy = 0;
_root.b10.moving = false;
return(undefined);
}
if (_root.b10.moving) {
return(undefined);
}
_x = _root.b10._x;
_y = _root.b10._y;
dragging = true;
angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
_rotation = ((angle * 180) / Math.PI);
_root.drawz._x = _root.b10._x;
_root.drawz._y = _root.b10._y;
_root.drawz._rotation = _rotation;
}
}
}
onClipEvent (mouseMove) {
if (_root.paused == 0) {
if (dragging) {
angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
_rotation = ((angle * 180) / Math.PI);
_root.drawz._x = _root.b10._x;
_root.drawz._y = _root.b10._y;
_root.drawz._rotation = _rotation;
}
}
}
onClipEvent (mouseUp) {
if (_global.stai != 1) {
if (_root.paused == 0) {
if (dragging) {
_root.drawz._x = -10000;
dragging = false;
animate = true;
count = 0;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (!animate) {
return(undefined);
}
count++;
if (count > 12) {
conclude();
}
if (count == 6) {
_root.b10.dx = (10 * Math.cos(angle)) * (_root.power._currentframe / 20);
_root.b10.dy = (10 * Math.sin(angle)) * (_root.power._currentframe / 20);
_root.b10.frictionX = _root.b10.dx / 200;
_root.b10.frictionY = _root.b10.dy / 200;
_root.b10.moving = true;
}
if (count < 6) {
rod._x = rod._x + 5;
} else {
rod._x = rod._x - 5;
}
}
}
Frame 244
stop();
stop();
Frame 245
i = 0;
while (i <= 9) {
_root["b" + i].timpIni = (getTimer() + 20000) + ((9 - i) * 10000);
i++;
}
Frame 246
stop();
ballsIn = 0;
Instance of Symbol 318 MovieClip "controller" in Frame 246
onClipEvent (load) {
function getDistanceSquare(clip, clip2) {
var _local2 = clip._x - clip2._x;
var _local1 = clip._y - clip2._y;
return((_local2 * _local2) + (_local1 * _local1));
}
ballsArray = [];
var n = 0;
while (n < 11) {
ballsArray[n] = _root["b" + n];
n++;
}
holesArray = [];
var n = 1;
while (n < 7) {
holesArray[n - 1] = _root["h" + n];
n++;
}
var k = 0;
while (k < ballsArray.length) {
ballsArray[k].dx = 0;
ballsArray[k].dy = 0;
ballsArray[k].moving = false;
ballsArray[k].disabled = false;
k++;
}
diameter = _root.b10._width;
diameterSquare = diameter * diameter;
bgLeft = 48 + (diameter / 2);
bgRight = 515 - (diameter / 2);
bgTop = 55 + (diameter / 2);
bgBottom = 345 - (diameter / 2);
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (fsec > 70) {
return(undefined);
}
var k = 0;
while (k < ballsArray.length) {
clip = ballsArray[k];
if (clip.moving == false) {
} else if (clip.disabled) {
} else if (clip.bounced) {
} else {
var m = 0;
while (m < ballsArray.length) {
clip2 = ballsArray[m];
if ((m <= k) && (clip2.moving)) {
} else if (clip2.disabled) {
} else {
xoff = clip2._x - clip._x;
yoff = clip2._y - clip._y;
if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) {
} else {
clip.moving = true;
clip2.moving = true;
_root.bouncer.bounce(clip, clip2);
}
}
m++;
}
var m = 0;
while (m < holesArray.length) {
clip2 = holesArray[m];
xoff = clip2._x - clip._x;
yoff = clip2._y - clip._y;
if (((xoff * xoff) + (yoff * yoff)) > diameterSquare) {
} else {
fireN++;
duplicateMovieClip (_root.fire, "fire" + fireN, fireN);
_root["fire" + fireN].ball = clip;
_root["fire" + fireN].hole = clip2;
}
m++;
}
}
k++;
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
t1 = getTimer();
fsec = t1 - t2;
t2 = t1;
var p = 0;
while (p < ballsArray.length) {
clip3 = ballsArray[p];
if (clip3.disabled) {
} else if (clip3.moving == false) {
} else {
clip3.dx = clip3.dx - clip3.frictionX;
clip3.dy = clip3.dy - clip3.frictionY;
clip3._x = clip3._x + clip3.dx;
clip3._y = clip3._y + clip3.dy;
dx = clip3.dx;
dy = clip3.dy;
if (clip3._x < bgLeft) {
clip3.dx = Math.abs(dx);
clip3.frictionX = Math.abs(clip3.frictionX);
} else if (clip3._x > bgRight) {
clip3.dx = -Math.abs(dx);
clip3.frictionX = -Math.abs(clip3.frictionX);
}
if (clip3._y < bgTop) {
clip3.dy = Math.abs(dy);
clip3.frictionY = Math.abs(clip3.frictionY);
} else if (clip3._y > bgBottom) {
clip3.dy = -Math.abs(dy);
clip3.frictionY = -Math.abs(clip3.frictionY);
}
if (((dx * dx) + (dy * dy)) < 0.003) {
clip3.dx = 0;
clip3.dy = 0;
clip3.frictionX = 0;
clip3.frictionY = 0;
clip3.moving = false;
}
}
p++;
}
}
}
Instance of Symbol 319 MovieClip "bouncer" in Frame 246
onClipEvent (load) {
function bounce(clip, clip2) {
var _local1 = clip;
var _local2 = clip2;
var angle = Math.atan2(_local1._y - _local2._y, _local1._x - _local2._x);
this._rotation = (angle * 180) / Math.PI;
var _local3 = {x:_local2.dx * 10, y:_local2.dy * 10};
this.globalToLocal(_local3);
var subVector2 = {x:_local3.x, y:0};
this.localToGlobal(subVector2);
var pt = {x:_local1.dx * 10, y:_local1.dy * 10};
this.globalToLocal(pt);
var subVector = {x:pt.x, y:0};
this.localToGlobal(subVector);
if ((_local3.x <= 0) && (pt.x >= 0)) {
} else {
var xSub = ((subVector2.x - subVector.x) / 10);
var ySub = ((subVector2.y - subVector.y) / 10);
_local1.dx = _local1.dx + xSub;
_local1.dy = _local1.dy + ySub;
_local2.dx = _local2.dx - xSub;
_local2.dy = _local2.dy - ySub;
var ang = Math.atan2(_local1.dy, _local1.dx);
_local1.frictionX = Math.cos(ang) / 20;
_local1.frictionY = Math.sin(ang) / 20;
var ang2 = Math.atan2(_local2.dy, _local2.dx);
_local2.frictionX = Math.cos(ang2) / 20;
_local2.frictionY = Math.sin(ang2) / 20;
}
}
}
Instance of Symbol 318 MovieClip "fire" in Frame 246
onClipEvent (load) {
function startGoHole(clip, clip2) {
ball.disabled = true;
animate = true;
framesNeed = int(_root.b10._width / Math.sqrt((ball.dx * ball.dx) + (ball.dy * ball.dy)));
dx = (hole._x - ball._x) / framesNeed;
dy = (hole._y - ball._y) / framesNeed;
count = 0;
}
function conclude() {
var _local2 = _root;
animate = false;
ball.moving = false;
ball._y = -300;
if (ball == _local2.b10) {
hole.gotoAndPlay(20);
} else {
_local2.ballsIn++;
_local2.score = _local2.score + ball.timpul;
_local2.scoreTXT.text = _local2.score;
if (_local2.score > _local2.best) {
_local2.best = _local2.score;
}
if (ball == _local2.b9) {
hole.gotoAndPlay(38);
} else {
hole.play();
}
ball._visible = false;
var balolInHole = -1;
var _local1 = 0;
while (_local1 < ballsArray.length) {
if (ballsArray[_local1] == ball) {
ballInHole = _local1;
break;
}
_local1++;
}
if (_local2.ballsIn >= 11) {
_local2.play();
}
if (ballInHole > -1) {
ballsArray.splice(ballInHole, 1);
}
}
removeMovieClip(this);
}
startGoHole();
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (!animate) {
return(undefined);
}
ball._x = ball._x + dx;
ball._y = ball._y + dy;
count++;
if (count >= framesNeed) {
conclude();
}
}
}
Instance of Symbol 323 MovieClip "tak" in Frame 246
onClipEvent (load) {
function conclude() {
var _local1 = _root;
if (_local1.sunet == 1) {
_local1.son.start(0, 1);
}
animate = false;
rod._x = -(30 + (_local1.b10._width / 2));
_rotation = 0;
count = 0;
_y = -100;
}
ballsArray = _root.controller.ballsArray;
orgX = _root.b10._x;
orgY = _root.b10._y;
animate = false;
conclude();
}
onClipEvent (mouseDown) {
if (_global.stai != 1) {
if (_root.paused == 0) {
if (_root.kkril == 1) {
_root.kkril = 0;
_root.b10._x = 110;
_root.b10._y = 190;
}
if (_root.b10.disabled) {
_root.b10.disabled = false;
_root.b10._x = orgX;
_root.b10._y = orgY;
OK = false;
while (!OK) {
hit = false;
var h = 0;
while (h < (ballsArray.length - 1)) {
tempClip = ballsArray[h];
if ((Math.abs(tempClip._x - _root.b10._x) < _root.b10._width) && (Math.abs(tempClip._y - _root.b10._y) < _root.b10._width)) {
hit = true;
break;
}
h++;
}
if (hit) {
_root.b10._x = _root.b10._x + 5;
} else {
OK = true;
}
}
_root.b10.dx = 0;
_root.b10.dy = 0;
_root.b10.moving = false;
return(undefined);
}
if (_root.b10.moving) {
return(undefined);
}
_x = _root.b10._x;
_y = _root.b10._y;
dragging = true;
angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
_rotation = ((angle * 180) / Math.PI);
_root.drawz._x = _root.b10._x;
_root.drawz._y = _root.b10._y;
_root.drawz._rotation = _rotation;
}
}
}
onClipEvent (mouseMove) {
if (_root.paused == 0) {
if (dragging) {
angle = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
_rotation = ((angle * 180) / Math.PI);
_root.drawz._x = _root.b10._x;
_root.drawz._y = _root.b10._y;
_root.drawz._rotation = _rotation;
}
}
}
onClipEvent (mouseUp) {
if (_global.stai != 1) {
if (_root.paused == 0) {
if (dragging) {
_root.drawz._x = -10000;
dragging = false;
animate = true;
count = 0;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (!animate) {
return(undefined);
}
count++;
if (count > 12) {
conclude();
}
if (count == 6) {
_root.b10.dx = (10 * Math.cos(angle)) * (_root.power._currentframe / 20);
_root.b10.dy = (10 * Math.sin(angle)) * (_root.power._currentframe / 20);
_root.b10.frictionX = _root.b10.dx / 200;
_root.b10.frictionY = _root.b10.dy / 200;
_root.b10.moving = true;
}
if (count < 6) {
rod._x = rod._x + 5;
} else {
rod._x = rod._x - 5;
}
}
}
Frame 247
stop();
fScore.text = _root.score;
stop();
Frame 248
stop();
_root.drawz._y = -200;
fScore.text = _root.score;
Frame 258
if (false) {
}
Frame 259
_root.menu.removeMovieClip();
_root.gameid = "MiniPool2";
_root.best = _root.score;
_root.score = 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 261
cale = "http://www.freeonlinegames.com/scoreboard/score.php?game=" + _root.gameid;
loadVariablesNum (cale, 0, "POST");
Frame 262
if (false) {
}
Frame 269
if (done != 1) {
gotoAndPlay ("loopLoad");
} else {
gotoAndPlay ("scoreTable");
}
Frame 273
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 274
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 81 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 82 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 85 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?MiniPool2", "_blank");
}
Symbol 89 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 50
stop();
_parent.play();
Symbol 135 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 28
gotoAndPlay ("loop");
Symbol 147 MovieClip [hitter] Frame 1
this.onMouseUp = function () {
startAnimate = true;
};
dp = 2;
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
if (startAnimate) {
pos2 = int(pos / 6) + 1;
_local1.rod._x = _local1.rod._x + _local1.dx;
count++;
if (count == 8) {
_local2.startBall(_rotation, pos2);
_local1.dx = 0;
return;
}
if (count > 16) {
_local1.removeMovieClip();
}
} else {
_local1._rotation = 57.2957795130823 * Math.atan2(_local2._ymouse - _y, _local2._xmouse - _x);
pos = pos + dp;
((pos > 60) ? ((dp = -2)) : null);
((pos < 1) ? ((dp = 2)) : null);
rod._x = -20 - pos;
_local1.dx = pos / 8;
}
};
Symbol 149 MovieClip Frame 1
stop();
Symbol 154 Button
on (release) {
_root.gotoAndPlay("submitScore");
}
Symbol 157 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?MiniPool2", "_blank");
}
Symbol 160 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?MiniPool2", "_blank");
}
Symbol 171 Button
on (release) {
_root.startGame._x = 415.9;
_root.instructions._x = -266;
}
Symbol 176 Button
on (release) {
_root.gotoAndPlay("l1");
}
Symbol 179 Button
on (release, keyPress "s") {
if (_root.sunet == 0) {
_root.sunet = 1;
} else {
_root.sunet = 0;
}
}
Symbol 182 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 190 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 190 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 190 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 191 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 194 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2);
}
Symbol 199 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 199 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 199 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 200 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wynume;
getURL (targetul3, "_blank");
}
Symbol 203 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wynume;
getURL (targetul3);
}
Symbol 204 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 204 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 204 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 209 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 210 MovieClip Frame 1
stop();
Symbol 213 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2);
}
Symbol 214 MovieClip Frame 1
stop();
Symbol 215 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 222 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 222 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 222 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 223 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 224 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 1
function instructionsFunction() {
var _local1 = _root;
_local1.startGame._x = -300;
_local1.instructions._x = 355.9;
_local1.instructions._y = 157.5;
}
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 225 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 225 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 225 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 225 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 225 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 233 MovieClip Frame 1
if (kxx == null) {
this.stop();
kxx = 1;
}
Symbol 243 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 2
if (_root.sunet == 1) {
_root.son3.start(0.7, 1);
}
Symbol 243 MovieClip Frame 12
gotoAndStop (1);
Symbol 243 MovieClip Frame 20
if (_root.sunet == 1) {
_root.kkril = 1;
_root.son3.start(0.7, 1);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.scoreTXT.text = _root.score;
}
}
Symbol 243 MovieClip Frame 30
gotoAndStop (1);
Symbol 243 MovieClip Frame 38
if (_root.sunet == 1) {
_root.son2.start(5, 1);
}
Symbol 243 MovieClip Frame 48
gotoAndStop (1);
Symbol 246 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.paused == 0) {
timpul = Math.round((timpIni - getTimer()) / 1000);
timpTXT = Math.round(timpul / 10);
timp.text = timpTXT;
if ((timp.text == "0") && (this._visible == 1)) {
_root.gotoAndStop("gameOver");
}
}
};
Symbol 248 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.paused == 0) {
timpul = Math.round((timpIni - getTimer()) / 1000);
timpTXT = Math.round(timpul / 10);
timp.text = timpTXT;
if ((timp.text == "0") && (this._visible == 1)) {
_root.gotoAndStop("gameOver");
}
}
};
Symbol 255 Button
on (press) {
_global.stai = 1;
_parent.play();
}
on (release, keyPress "r") {
_global.stai = 0;
_root.drawz._y = -200;
_root.gotoAndStop("firstpage");
}
Symbol 256 Button
on (press) {
_global.stai = 1;
_parent.play();
}
on (release, keyPress "s") {
_global.stai = 0;
if (_root.sunet == 0) {
_root.sunet = 1;
} else {
_root.sunet = 0;
}
}
Symbol 258 Button
on (press) {
_global.stai = 1;
_parent.play();
}
on (release, keyPress "p") {
_global.stai = 0;
if (_root.paused == 0) {
oldTimp = getTimer();
_root.paused = 1;
} else {
timpInter = getTimer() - oldTimp;
i = 0;
while (i <= 9) {
_root["b" + i].timpIni = _root["b" + i].timpIni + timpInter;
i++;
}
_root.paused = 0;
}
}
Symbol 260 Button
on (press) {
_global.stai = 1;
}
on (release) {
_global.stai = 0;
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wxnume;
getURL (targetul3, "_blank");
}
Symbol 261 Button
on (press) {
_global.stai = 1;
}
on (release) {
_global.stai = 0;
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wxnume;
getURL (targetul2, "_blank");
}
Symbol 262 Button
on (press) {
_global.stai = 1;
}
on (release) {
_global.stai = 0;
_parent.mainMenuFunction();
}
Symbol 263 Button
on (press) {
_global.stai = 1;
}
on (release) {
_global.stai = 0;
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wxnume) + ".exe";
getURL (targetul1);
}
Symbol 264 Button
on (press) {
_global.stai = 1;
}
on (release) {
_global.stai = 0;
_parent.pauseFunction();
}
Symbol 265 Button
on (press) {
_global.stai = 1;
}
on (release) {
_global.stai = 0;
_parent.soundFunction();
}
Symbol 276 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wxnume;
getURL (targetul3, "_blank");
}
Symbol 277 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wxnume;
getURL (targetul2, "_blank");
}
Symbol 278 Button
on (release) {
_parent.mainMenuFunction();
}
Symbol 279 Button
on (release, keyPress "p") {
_parent.pauseFunction();
}
Symbol 280 Button
on (release, keyPress "p") {
_parent.soundFunction();
}
Symbol 281 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wxnume) + ".exe";
getURL (targetul1);
}
Symbol 282 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 282 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 282 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 282 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 282 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 282 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 282 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 282 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 287 Button
on (press) {
_global.stai = 1;
_parent.play();
}
on (release) {
_global.stai = 0;
}
Symbol 290 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 290 MovieClip Frame 2
tg._x = 147;
tg._y = 1.1;
Symbol 290 MovieClip Frame 3
tg._x = 147;
tg._y = -174.9;
Symbol 290 MovieClip Frame 4
tg._x = 1.5;
tg._y = -174.9;
Symbol 290 MovieClip Frame 5
tg._x = 147;
tg._y = -152.4;
Symbol 290 MovieClip Frame 6
tg._x = 147;
tg._y = -128.9;
Symbol 290 MovieClip Frame 7
tg._x = 147;
tg._y = -104.9;
Symbol 290 MovieClip Frame 8
tg._x = 1.5;
tg._y = -151.4;
Symbol 290 MovieClip Frame 9
tg._x = 1.5;
tg._y = -128.4;
Symbol 290 MovieClip Frame 10
tg._x = 1.5;
tg._y = -104.9;
Symbol 309 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 310 MovieClip Frame 1
stop();
if ((_parent.wxaliniere == "Stanga-Sus") || (_parent.wxaliniere == "Dreapta-Sus")) {
this.gotoAndStop(2);
}
Symbol 311 MovieClip Frame 1
function pauseFunction() {
var _local1 = _root;
if (_local1.paused == 0) {
oldTimp = getTimer();
_local1.paused = 1;
} else {
timpInter = getTimer() - oldTimp;
i = 0;
while (i <= 9) {
_local1["b" + i].timpIni = _local1["b" + i].timpIni + timpInter;
i++;
}
_local1.paused = 0;
}
}
function soundFunction() {
var _local1 = _root;
if (_local1.sunet == 0) {
_local1.sunet = 1;
} else {
_local1.sunet = 0;
}
}
function mainMenuFunction() {
_root.drawz._y = -200;
_root.gotoAndStop("firstpage");
}
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 311 MovieClip Frame 10
stop();
Symbol 314 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?MicroTanks", "_blank");
}
Symbol 316 Button
on (press) {
_global.stai = 1;
_parent.play();
}
on (release) {
_global.stai = 0;
getURL ("http://www.freeonlinegames.com/?MiniPool2", "_blank");
}
Symbol 322 MovieClip Frame 1
stop();
Symbol 328 Button
on (release) {
_root.play();
}
Symbol 356 Button
on (release) {
_root.gotoAndStop("firstpage");
}
Symbol 357 MovieClip Frame 13
stop();
Instance of Symbol 225 MovieClip in Symbol 357 MovieClip Frame 13
//component parameters
onClipEvent (initialize) {
wynume = "MiniPool2";
wyculoare = 6724044 /* 0x6699CC */;
wyasezare = "Vertical";
wyaliniere = "Stanga";
wypozitie = "Jos";
wyinstructions = false;
}
Symbol 362 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?MiniPool2", "_blank");
}
Symbol 367 Button
on (release) {
_root.gotoAndPlay("submitScore");
}
Symbol 378 MovieClip Frame 1
_root.drawz._y = -200;
Symbol 378 MovieClip Frame 13
stop();
Instance of Symbol 225 MovieClip in Symbol 378 MovieClip Frame 13
//component parameters
onClipEvent (initialize) {
wynume = "MiniPool2";
wyculoare = 6724044 /* 0x6699CC */;
wyasezare = "Vertical";
wyaliniere = "Stanga";
wypozitie = "Sus";
wyinstructions = false;
}
Symbol 384 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 391 Button
on (release) {
_root.gotoAndPlay("coperta");
}
Symbol 696 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 82 MovieClip [FScrollBarSymbol] "scroll1" in Symbol 696 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
Symbol 702 Button
on (release) {
_root.gotoAndPlay("coperta");
}
Symbol 707 Button
on (release) {
gotoAndStop ("topMonth");
}
Symbol 710 Button
on (release) {
gotoAndStop ("topEver");
}
Symbol 726 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 732 Button
on (release) {
_root.gotoAndPlay("coperta");
}
Symbol 736 MovieClip Frame 1
stop();
Symbol 736 MovieClip Frame 9
stop();
Symbol 736 MovieClip Frame 22
!!!ERROR
Symbol 736 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 736 MovieClip Frame 45
if (_root.updated != 1) {
gotoAndPlay ("loop");
} else {
_root.best = 0;
_root.score = 0;
_root.xdada = 1;
_root.gotoAndPlay("submitScore");
}