Frame 1
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
prel.gotoAndStop(tgPrel);
if (b1 >= b2) {
gotoAndPlay ("intro");
}
Frame 4
if (Math.round(b1 / 1024) <= 35) {
gotoAndPlay ("loop1");
}
Frame 5
_root.b1 = _root.getBytesLoaded();
_root.b2 = _root.getBytesTotal();
_root.tgPrel = 1 + Math.round((b1 * 100) / b2);
_root.tg = _root.tgPrel - 2;
trace("_root.tg: " + _root.tg);
if (_root.tg <= 9) {
_root.procent = "0" + _root.tg;
} else {
_root.procent = _root.tg;
}
_root.prel.gotoAndStop(_root.tgPrel);
Frame 9
if (Math.round(b1 / 1024) <= 100) {
gotoAndPlay ("loop2");
}
Frame 11
_root.b1 = _root.getBytesLoaded();
_root.b2 = _root.getBytesTotal();
_root.tgPrel = 1 + Math.round((b1 * 100) / b2);
_root.tg = _root.tgPrel - 2;
trace("_root.TG: " + tgPrel);
if (_root.tgPrel <= 9) {
_root.procent = "0" + tg;
trace(_root.procent);
} else {
_root.procent = tg;
}
_root.prel.gotoAndStop(_root.tgPrel);
Frame 14
if (b1 < b2) {
gotoAndPlay ("loop3");
}
Frame 15
_root.procent = "--";
prel.gotoAndStop(100);
Frame 166
_root.locatie = _url;
if (_root.locatie.indexOf("www.freeonlinegames.com", 0) != -1) {
_root.play();
} else {
_root.gotoAndPlay("loop1");
}
Frame 174
_root.sunet = true;
_root.plici = new Sound();
_root.plici.attachSound("plici");
_root.locatie = _url;
if (_root.locatie.indexOf("www.freeonlinegames.com", 0) != -1) {
_root.play();
} else {
_root.gotoAndPlay("loop1");
}
Frame 175
h = 0;
while (h <= 1000) {
_root["golf1" + h]._visible = false;
_root["golf2" + h]._visible = false;
_root["golf3" + h]._visible = false;
_root["golf" + h]._visible = false;
h++;
}
_root.pauza = false;
_root.sunet = true;
_root.scorT = 0;
stopAllSounds();
stop();
Instance of Symbol 197 MovieClip in Frame 175
//component parameters
onClipEvent (construct) {
wynume = "GolfRun";
wyculoare = 2186769 /* 0x215E11 */;
wyasezare = "Vertical";
wyaliniere = "Stanga";
wypozitie = "Jos";
wyinstructions = true;
}
Frame 176
stop();
Frame 177
stop();
Frame 178
function setGame() {
if (_root.pauza == false) {
Item = false;
eval ("arrow" + (Number(_currentframe) - frame))._alpha = 0;
eval ("hole" + (Number(_currentframe) - frame))._alpha = 0;
eval ("golf" + (Number(_currentframe) - frame)).swapDepths(30000);
eval ("ring" + (Number(_currentframe) - frame))._alpha = 100;
Press = true;
eval ("golf" + (Number(_currentframe) - frame)).onPress = function () {
if (Press) {
Press = false;
getXY = true;
sx = eval ("golf" + (Number(_currentframe) - frame))._x;
sy = eval ("golf" + (Number(_currentframe) - frame))._y;
}
};
}
}
function hitgetBounds() {
if (_root.pauza == false) {
hit0Bounds = hit0.getBounds(_root);
hit1Bounds = hit1.getBounds(_root);
hit2Bounds = hit2.getBounds(_root);
hit3Bounds = hit3.getBounds(_root);
hit4Bounds = hit4.getBounds(_root);
hit5Bounds = hit5.getBounds(_root);
}
}
backSound = new Sound();
backSound.attachSound("mciBackground1.WAV");
if (_root.sunet == true) {
backSound.start(0, 999);
}
hitSound = new Sound();
hitSound.attachSound("sound8.wav");
releaseSound = new Sound();
releaseSound.attachSound("sound13.wav");
releaseSound.setVolume(50);
ringSound = new Sound();
ringSound.attachSound("RING.wav");
winSound = new Sound();
winSound.attachSound("HOLE.WAV");
dropSound = new Sound();
dropSound.attachSound("sound2.wav");
frame = 177;
_root.pauza = false;
_root.sunet = true;
_root.pau._visible = false;
_root.nivel = 1;
_root.nivelL = 10;
count = 0;
countL = 100;
onEnterFrame = function () {
if (_root.pauza == false) {
if (getXY) {
attachMovie("line", "line", 1);
line._x = eval ("golf" + (Number(_currentframe) - frame))._x;
line._y = eval ("golf" + (Number(_currentframe) - frame))._y;
nx = _xmouse;
ny = _ymouse;
x = nx - sx;
y = ny - sy;
r = (Math.atan2(y, x) * 180) / Math.PI;
line._rotation = (Math.atan2(y, x) * 180) / Math.PI;
attachMovie("mask", "mask", 2);
mask._x = eval ("golf" + (Number(_currentframe) - frame))._x;
mask._y = eval ("golf" + (Number(_currentframe) - frame))._y;
mask._rotation = (Math.atan2(y, x) * 180) / Math.PI;
line.setMask(mask);
arg = (r / 180) * Math.PI;
acc = 1 - (Math.abs(r - 90) / 100);
if (Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2))) < 64) {
xinc = ((-Math.cos(arg)) * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))) / 2.5;
yinc = ((-Math.sin(arg)) * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))) / 2.5;
} else {
xinc = ((-Math.cos(arg)) * 64) / 2.5;
yinc = ((-Math.sin(arg)) * 64) / 2.5;
}
mask._xscale = (mask._yscale = 100 + (5 * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))));
Release = true;
}
}
};
onMouseUp = function () {
if (_root.pauza == false) {
getXY = false;
if (Release) {
if (_root.pauza == false) {
if (_root.sunet == true) {
releaseSound.start(0, 1);
}
mask.removeMovieClip();
line.removeMovieClip();
Release = false;
if (r > 0) {
count++;
countL--;
if (_root.count >= 100) {
_root.gotoAndStop("OVER");
}
eval ("golf" + (Number(_currentframe) - frame)).onEnterFrame = function () {
if (_root.pauza == false) {
yinc = yinc + acc;
eval ("golf" + (Number(_currentframe) - frame))._x = eval ("golf" + (Number(_currentframe) - frame))._x + xinc;
eval ("golf" + (Number(_currentframe) - frame))._y = eval ("golf" + (Number(_currentframe) - frame))._y + yinc;
if (yinc > 0) {
dir = "down";
} else {
dir = "up";
}
}
this.xmin = this.getBounds(_root).xMin;
this.xmax = this.getBounds(_root).xMax;
this.ymin = this.getBounds(_root).yMin;
this.ymax = this.getBounds(_root).yMax;
if (dir == "down") {
if (((this.ymax > hit0Bounds.yMin) && (this.xmax > (hit0Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit0Bounds.xMax - (this._width / 2)))) {
this._y = hit0Bounds.yMin - (this._height / 2);
Press = true;
if (_root.sunet == true) {
hitSound.start(0, 1);
}
delete this.onEnterFrame;
}
if (((this.ymax > hit1Bounds.yMin) && (this.xmax > (hit1Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit1Bounds.xMax - (this._width / 2)))) {
this._y = hit1Bounds.yMin - (this._height / 2);
Press = true;
if (_root.sunet == true) {
hitSound.start(0, 1);
}
delete this.onEnterFrame;
}
if (((this.ymax > hit4Bounds.yMin) && (this.xmax > (hit4Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit4Bounds.xMax - (this._width / 2)))) {
this._y = hit4Bounds.yMin - (this._height / 2);
Press = true;
if (_root.sunet == true) {
hitSound.start(0, 1);
}
delete this.onEnterFrame;
}
if (((this.ymax > hit5Bounds.yMin) && (this.xmax > (hit5Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit5Bounds.xMax - (this._width / 2)))) {
this._y = hit5Bounds.yMin - (this._height / 2);
Press = true;
if (_root.sunet == true) {
hitSound.start(0, 1);
}
delete this.onEnterFrame;
}
}
if (this.ymax > hit1Bounds.yMin) {
if (this.hitTest(hit1)) {
if ((this.xmax - (this._width / 2)) < hit1Bounds.xMin) {
this._x = (hit1._x - (hit1._width / 2)) - (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit1Bounds.xMax) {
this._x = (hit1._x + (hit1._width / 2)) + (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit4Bounds.yMin) {
if (this.hitTest(hit4)) {
if ((this.xmax - (this._width / 2)) < hit4Bounds.xMin) {
this._x = (hit4._x - (hit4._width / 2)) - (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit4Bounds.xMax) {
this._x = (hit4._x + (hit4._width / 2)) + (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit5Bounds.yMin) {
if (this.hitTest(hit5)) {
if ((this.xmax - (this._width / 2)) < hit5Bounds.xMin) {
this._x = (hit5._x - (hit5._width / 2)) - (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit5Bounds.xMax) {
this._x = (hit5._x + (hit5._width / 2)) + (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
}
}
if (this.xmax > hit3Bounds.xMin) {
this._x = hit3Bounds.xMin - (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
if (this.xmin < hit2Bounds.xMax) {
this._x = hit2Bounds.xMax + (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
if (this.hitTest(eval ("ring" + (Number(_currentframe) - frame)))) {
eval ("ring" + (Number(_currentframe) - frame)).play();
if (eval ("ring" + (Number(_currentframe) - frame))._alpha == 100) {
if (_root.sunet == true) {
ringSound.start(0, 1);
}
}
eval ("ring" + (Number(_currentframe) - frame)).onEnterFrame = function () {
this._alpha = this._alpha - 5;
eval ("arrow" + (Number(_currentframe) - frame))._alpha = 100;
eval ("hole" + (Number(_currentframe) - frame))._alpha = 100;
Item = true;
if (this._alpha <= 0) {
delete this.onEnterFrame;
}
};
}
if (Item && (this.hitTest(eval ("hole" + (Number(_currentframe) - frame))))) {
_root.scorT = _root.scorT + 100;
if (_root.sunet == true) {
winSound.start(0, 1);
}
eval ("golf" + (Number(_currentframe) - frame)).removeMovieClip();
_root.nextFrame();
}
if (((this._y > 400) || (this._x < 0)) || (this._x > 600)) {
eval ("golf" + (Number(_currentframe) - frame))._x = sx;
eval ("golf" + (Number(_currentframe) - frame))._y = sy;
if (_root.sunet == true) {
dropSound.start(0, 1);
}
Press = true;
count++;
countL--;
delete this.onEnterFrame;
}
};
} else if (_root.pauza == false) {
Press = true;
}
}
}
}
};
setGame();
hitgetBounds();
stop();
Instance of Symbol 338 MovieClip "theMeniu" in Frame 178
//component parameters
onClipEvent (construct) {
wxnume = "GolfRun";
wxaliniere = "Dreapta-Sus";
wxculoare = 5669450 /* 0x56824A */;
wxdownload = true;
wxpause = true;
wxsound = true;
}
Frame 179
_root.nivel = 2;
_root.nivelL = 9;
stop();
setGame();
hitgetBounds();
Frame 180
_root.nivel = 3;
_root.nivelL = 8;
stop();
setGame();
hitgetBounds();
Frame 181
_root.nivel = 4;
_root.nivelL = 7;
stop();
setGame();
hitgetBounds();
Frame 182
_root.nivel = 5;
_root.nivelL = 6;
stop();
setGame();
hitgetBounds();
Frame 183
_root.nivel = 6;
_root.nivelL = 5;
stop();
setGame();
hitgetBounds();
Frame 184
_root.nivel = 7;
_root.nivelL = 4;
stop();
setGame();
hitgetBounds();
Frame 185
_root.nivel = 8;
_root.nivelL = 3;
stop();
setGame();
hitgetBounds();
Frame 186
_root.nivel = 9;
_root.nivelL = 2;
stop();
setGame();
hitgetBounds();
Frame 187
_root.nivel = 10;
_root.nivelL = 1;
stop();
setGame();
hitgetBounds();
Frame 188
_root.nivel = 11;
_root.nivelL = 0;
stop();
setGame();
hitgetBounds();
Frame 189
_root.scorF = ((_root.scorT + _root.nivel) + 99) - count;
h = 0;
while (h <= 1000) {
_root["golf1" + h]._visible = false;
_root["golf2" + h]._visible = false;
_root["golf3" + h]._visible = false;
_root["golf" + h]._visible = false;
h++;
}
stop();
Instance of Symbol 197 MovieClip in Frame 189
//component parameters
onClipEvent (construct) {
wynume = "GolfRun";
wyculoare = 2186769 /* 0x215E11 */;
wyasezare = "Vertical";
wyaliniere = "Centru";
wypozitie = "Jos";
wyinstructions = false;
}
Frame 190
h = 0;
while (h <= 1000) {
_root["golf1" + h]._visible = false;
_root["golf2" + h]._visible = false;
_root["golf3" + h]._visible = false;
_root["golf" + h]._visible = false;
h++;
}
_root.scorF = ((_root.scorT + _root.nivel) + 99) - count;
stop();
Frame 191
function setGame() {
if (_root.pauza == false) {
Item = false;
eval ("arrow" + (Number(_currentframe) - frame))._alpha = 0;
eval ("hole" + (Number(_currentframe) - frame))._alpha = 0;
eval ("golf" + (Number(_currentframe) - frame)).swapDepths(30000);
eval ("ring" + (Number(_currentframe) - frame))._alpha = 100;
Press = true;
eval ("golf" + (Number(_currentframe) - frame)).onPress = function () {
if (Press) {
Press = false;
getXY = true;
sx = eval ("golf" + (Number(_currentframe) - frame))._x;
sy = eval ("golf" + (Number(_currentframe) - frame))._y;
}
};
}
}
function hitgetBounds() {
if (_root.pauza == false) {
hit0Bounds = hit0.getBounds(_root);
hit1Bounds = hit1.getBounds(_root);
hit2Bounds = hit2.getBounds(_root);
hit3Bounds = hit3.getBounds(_root);
hit4Bounds = hit4.getBounds(_root);
hit5Bounds = hit5.getBounds(_root);
hit6Bounds = hit6.getBounds(_root);
}
}
backSound = new Sound();
backSound.attachSound("mciBackground2.WAV");
if (_root.sunet == true) {
backSound.start(0, 999);
}
hitSound = new Sound();
hitSound.attachSound("sound8.wav");
releaseSound = new Sound();
releaseSound.attachSound("sound13.wav");
releaseSound.setVolume(50);
ringSound = new Sound();
ringSound.attachSound("RING.wav");
winSound = new Sound();
winSound.attachSound("HOLE.WAV");
dropSound = new Sound();
dropSound.attachSound("sound2.wav");
frame = 179;
_root.pauza = false;
_root.sunet = true;
_root.pau._visible = false;
_root.nivel = 1;
_root.nivelL = 9;
_root.scorT = (_root.nivel + 99) - count;
count = 0;
countL = 100;
onEnterFrame = function () {
if (_root.pauza == false) {
if (getXY) {
attachMovie("line", "line", 1);
line._x = eval ("golf" + (Number(_currentframe) - frame))._x;
line._y = eval ("golf" + (Number(_currentframe) - frame))._y;
nx = _xmouse;
ny = _ymouse;
x = nx - sx;
y = ny - sy;
r = (Math.atan2(y, x) * 180) / Math.PI;
line._rotation = (Math.atan2(y, x) * 180) / Math.PI;
attachMovie("mask", "mask", 2);
mask._x = eval ("golf" + (Number(_currentframe) - frame))._x;
mask._y = eval ("golf" + (Number(_currentframe) - frame))._y;
mask._rotation = (Math.atan2(y, x) * 180) / Math.PI;
line.setMask(mask);
arg = (r / 180) * Math.PI;
acc = 1 - (Math.abs(r - 90) / 100);
if (Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2))) < 64) {
xinc = ((-Math.cos(arg)) * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))) / 2.5;
yinc = ((-Math.sin(arg)) * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))) / 2.5;
} else {
xinc = ((-Math.cos(arg)) * 64) / 2.5;
yinc = ((-Math.sin(arg)) * 64) / 2.5;
}
mask._xscale = (mask._yscale = 100 + (5 * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))));
Release = true;
}
}
};
onMouseUp = function () {
if (_root.pauza == false) {
getXY = false;
if (Release) {
if (_root.sunet == true) {
releaseSound.start(0, 1);
}
mask.removeMovieClip();
line.removeMovieClip();
Release = false;
hitS = true;
if (r > 0) {
count++;
countL--;
if (_root.count >= 100) {
_root.gotoAndStop("OVER2");
}
eval ("golf" + (Number(_currentframe) - frame)).onEnterFrame = function () {
if (_root.pauza == false) {
yinc = yinc + acc;
eval ("golf" + (Number(_currentframe) - frame))._x = eval ("golf" + (Number(_currentframe) - frame))._x + xinc;
eval ("golf" + (Number(_currentframe) - frame))._y = eval ("golf" + (Number(_currentframe) - frame))._y + yinc;
if (yinc > 0) {
dir = "down";
} else {
dir = "up";
}
}
this.xmin = this.getBounds(_root).xMin;
this.xmax = this.getBounds(_root).xMax;
this.ymin = this.getBounds(_root).yMin;
this.ymax = this.getBounds(_root).yMax;
if (dir == "down") {
if (((this.ymax > hit0Bounds.yMin) && (this.xmax > (hit0Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit0Bounds.xMax - (this._width / 2)))) {
this._y = hit0Bounds.yMin - (this._height / 2);
Press = true;
if (_root.sunet == true) {
hitSound.start(0, 1);
}
delete this.onEnterFrame;
}
if (((this.ymax > hit1Bounds.yMin) && (this.xmax > (hit1Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit1Bounds.xMax - (this._width / 2)))) {
if (hit1.ice) {
this._y = hit1Bounds.yMin - (this._height / 2);
if (hitS) {
if (_root.sunet == true) {
hitSound.start(0, 1);
}
hitS = false;
}
if (xinc > 0) {
xinc = xinc - 1;
}
if (xinc < 0) {
xinc = xinc + 1;
}
this._x = this._x + xinc;
if ((xinc < 1) && (xinc > -1)) {
Press = true;
delete this.onEnterFrame;
}
} else {
this._y = hit1Bounds.yMin - (this._height / 2);
Press = true;
if (_root.sunet == true) {
hitSound.start(0, 1);
}
delete this.onEnterFrame;
}
}
if (((this.ymax > hit4Bounds.yMin) && (this.xmax > (hit4Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit4Bounds.xMax - (this._width / 2)))) {
if (hit4.ice) {
this._y = hit4Bounds.yMin - (this._height / 2);
if (hitS) {
if (_root.sunet == true) {
hitSound.start(0, 1);
}
hitS = false;
}
if (xinc > 0) {
xinc = xinc - 1;
}
if (xinc < 0) {
xinc = xinc + 1;
}
this._x = this._x + xinc;
if ((xinc < 1) && (xinc > -1)) {
Press = true;
delete this.onEnterFrame;
}
} else {
this._y = hit4Bounds.yMin - (this._height / 2);
Press = true;
if (_root.sunet == true) {
hitSound.start(0, 1);
}
delete this.onEnterFrame;
}
}
if (((this.ymax > hit5Bounds.yMin) && (this.xmax > (hit5Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit5Bounds.xMax - (this._width / 2)))) {
if (hit5.ice) {
this._y = hit5Bounds.yMin - (this._height / 2);
if (hitS) {
if (_root.sunet == true) {
hitSound.start(0, 1);
}
hitS = false;
}
if (xinc > 0) {
xinc = xinc - 1;
}
if (xinc < 0) {
xinc = xinc + 1;
}
this._x = this._x + xinc;
if ((xinc < 1) && (xinc > -1)) {
Press = true;
delete this.onEnterFrame;
}
} else {
this._y = hit5Bounds.yMin - (this._height / 2);
Press = true;
if (_root.sunet == true) {
hitSound.start(0, 1);
}
delete this.onEnterFrame;
}
}
if (((this.ymax > hit6Bounds.yMin) && (this.xmax > (hit6Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit6Bounds.xMax - (this._width / 2)))) {
if (hit6.ice) {
this._y = hit6Bounds.yMin - (this._height / 2);
if (hitS) {
if (_root.sunet == true) {
hitSound.start(0, 1);
}
hitS = false;
}
if (xinc > 0) {
xinc = xinc - 1;
}
if (xinc < 0) {
xinc = xinc + 1;
}
this._x = this._x + xinc;
if ((xinc < 1) && (xinc > -1)) {
Press = true;
delete this.onEnterFrame;
}
} else {
this._y = hit6Bounds.yMin - (this._height / 2);
Press = true;
if (_root.sunet == true) {
hitSound.start(0, 1);
}
delete this.onEnterFrame;
}
}
}
if (this.ymax > hit1Bounds.yMin) {
if (this.hitTest(hit1)) {
if ((this.xmax - (this._width / 2)) < hit1Bounds.xMin) {
this._x = (hit1._x - (hit1._width / 2)) - (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit1Bounds.xMax) {
this._x = (hit1._x + (hit1._width / 2)) + (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit4Bounds.yMin) {
if (this.hitTest(hit4)) {
if ((this.xmax - (this._width / 2)) < hit4Bounds.xMin) {
this._x = (hit4._x - (hit4._width / 2)) - (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit4Bounds.xMax) {
this._x = (hit4._x + (hit4._width / 2)) + (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit5Bounds.yMin) {
if (this.hitTest(hit5)) {
if ((this.xmax - (this._width / 2)) < hit5Bounds.xMin) {
this._x = (hit5._x - (hit5._width / 2)) - (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit5Bounds.xMax) {
this._x = (hit5._x + (hit5._width / 2)) + (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit6Bounds.yMin) {
if (this.hitTest(hit6)) {
if ((this.xmax - (this._width / 2)) < hit6Bounds.xMin) {
this._x = (hit6._x - (hit6._width / 2)) - (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit6Bounds.xMax) {
this._x = (hit6._x + (hit6._width / 2)) + (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
}
}
if (this.xmax > hit3Bounds.xMin) {
this._x = hit3Bounds.xMin - (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
if (this.xmin < hit2Bounds.xMax) {
this._x = hit2Bounds.xMax + (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
if (this.hitTest(eval ("ring" + (Number(_currentframe) - frame)))) {
eval ("ring" + (Number(_currentframe) - frame)).play();
if (eval ("ring" + (Number(_currentframe) - frame))._alpha == 100) {
if (_root.sunet == true) {
ringSound.start(0, 1);
}
}
eval ("ring" + (Number(_currentframe) - frame)).onEnterFrame = function () {
this._alpha = this._alpha - 5;
eval ("arrow" + (Number(_currentframe) - frame))._alpha = 100;
eval ("hole" + (Number(_currentframe) - frame))._alpha = 100;
Item = true;
if (this._alpha <= 0) {
delete this.onEnterFrame;
}
};
}
if (Item && (this.hitTest(eval ("hole" + (Number(_currentframe) - frame))))) {
_root.scorT = _root.scorT + 100;
if (_root.sunet == true) {
winSound.start(0, 1);
}
eval ("golf" + (Number(_currentframe) - frame)).removeMovieClip();
_root.nextFrame();
}
if (((this._y > 400) || (this._x < 0)) || (this._x > 600)) {
eval ("golf" + (Number(_currentframe) - frame))._x = sx;
eval ("golf" + (Number(_currentframe) - frame))._y = sy;
if (_root.sunet == true) {
dropSound.start(0, 1);
}
Press = true;
count++;
countL--;
delete this.onEnterFrame;
}
};
} else {
Press = true;
}
}
}
};
setGame();
hitgetBounds();
stop();
Instance of Symbol 338 MovieClip "theMeniu" in Frame 191
//component parameters
onClipEvent (construct) {
wxnume = "GolfRun";
wxaliniere = "Dreapta-Sus";
wxculoare = 2441033 /* 0x253F49 */;
wxdownload = true;
wxpause = true;
wxsound = true;
}
Frame 192
_root.nivel = 2;
_root.nivelL = 8;
stop();
setGame();
hitgetBounds();
Frame 193
_root.nivel = 3;
_root.nivelL = 7;
stop();
setGame();
hitgetBounds();
Frame 194
_root.nivel = 4;
_root.nivelL = 6;
stop();
setGame();
hitgetBounds();
Frame 195
_root.nivel = 5;
_root.nivelL = 5;
stop();
setGame();
hitgetBounds();
Frame 196
_root.nivel = 6;
_root.nivelL = 4;
stop();
setGame();
hitgetBounds();
Frame 197
_root.nivel = 7;
_root.nivelL = 3;
stop();
setGame();
hitgetBounds();
Frame 198
_root.nivel = 8;
_root.nivelL = 2;
stop();
setGame();
hitgetBounds();
Frame 199
_root.nivel = 9;
_root.nivelL = 1;
stop();
setGame();
hitgetBounds();
Frame 200
_root.nivel = 10;
_root.nivelL = 0;
stop();
setGame();
hitgetBounds();
Frame 201
_root.scorF = ((_root.scorT + _root.nivel) + 100) - count;
h = 0;
while (h <= 1000) {
_root["golf1" + h]._visible = false;
_root["golf2" + h]._visible = false;
_root["golf3" + h]._visible = false;
_root["golf" + h]._visible = false;
h++;
}
stop();
Instance of Symbol 197 MovieClip in Frame 201
//component parameters
onClipEvent (construct) {
wynume = "GolfRun";
wyculoare = 2186769 /* 0x215E11 */;
wyasezare = "Vertical";
wyaliniere = "Centru";
wypozitie = "Jos";
wyinstructions = false;
}
Frame 202
h = 0;
while (h <= 1000) {
_root["golf1" + h]._visible = false;
_root["golf2" + h]._visible = false;
_root["golf3" + h]._visible = false;
_root["golf" + h]._visible = false;
h++;
}
_root.scorF = ((_root.scorT + _root.nivel) + 100) - count;
stop();
Frame 203
function setGame() {
if (_root.pauza == false) {
Item = false;
eval ("arrow" + (Number(_currentframe) - frame))._alpha = 0;
eval ("hole" + (Number(_currentframe) - frame))._alpha = 0;
eval ("golf" + (Number(_currentframe) - frame)).swapDepths(30000);
eval ("ring" + (Number(_currentframe) - frame))._alpha = 100;
Press = true;
eval ("golf" + (Number(_currentframe) - frame)).onPress = function () {
if (Press) {
Press = false;
getXY = true;
sx = eval ("golf" + (Number(_currentframe) - frame))._x;
sy = eval ("golf" + (Number(_currentframe) - frame))._y;
}
};
}
}
function hitgetBounds() {
if (_root.pauza == false) {
hit0Bounds = hit0.getBounds(_root);
hit1Bounds = hit1.getBounds(_root);
hit2Bounds = hit2.getBounds(_root);
hit3Bounds = hit3.getBounds(_root);
hit4Bounds = hit4.getBounds(_root);
hit5Bounds = hit5.getBounds(_root);
hit6Bounds = hit6.getBounds(_root);
hit7Bounds = hit7.getBounds(_root);
}
}
backSound = new Sound();
backSound.attachSound("sound7.mp3");
if (_root.sunet == true) {
backSound.start(0, 999);
}
hitSound = new Sound();
hitSound.attachSound("sound8.wav");
releaseSound = new Sound();
releaseSound.attachSound("sound13.wav");
releaseSound.setVolume(50);
ringSound = new Sound();
ringSound.attachSound("RING.wav");
winSound = new Sound();
winSound.attachSound("HOLE.WAV");
dropSound = new Sound();
dropSound.attachSound("sound2.wav");
frame = 180;
_root.pauza = false;
_root.sunet = true;
_root.pau._visible = false;
_root.nivel = 1;
_root.nivelL = 9;
_root.scorT = (_root.nivel + 99) - count;
count = 0;
countL = 100;
onEnterFrame = function () {
if (_root.pauza == false) {
if (getXY) {
attachMovie("line", "line", 1);
line._x = eval ("golf" + (Number(_currentframe) - frame))._x;
line._y = eval ("golf" + (Number(_currentframe) - frame))._y;
nx = _xmouse;
ny = _ymouse;
x = nx - sx;
y = ny - sy;
r = (Math.atan2(y, x) * 180) / Math.PI;
line._rotation = (Math.atan2(y, x) * 180) / Math.PI;
attachMovie("mask", "mask", 2);
mask._x = eval ("golf" + (Number(_currentframe) - frame))._x;
mask._y = eval ("golf" + (Number(_currentframe) - frame))._y;
mask._rotation = (Math.atan2(y, x) * 180) / Math.PI;
line.setMask(mask);
arg = (r / 180) * Math.PI;
acc = (1 - (Math.abs(r - 90) / 100)) * 0.6;
if (Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2))) < 64) {
xinc = ((-Math.cos(arg)) * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))) / 2.5;
yinc = ((-Math.sin(arg)) * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))) / 2.5;
} else {
xinc = ((-Math.cos(arg)) * 64) / 2.5;
yinc = ((-Math.sin(arg)) * 64) / 2.5;
}
mask._xscale = (mask._yscale = 100 + (5 * Math.abs(Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)))));
Release = true;
}
}
};
onMouseUp = function () {
if (_root.pauza == false) {
getXY = false;
if (Release) {
if (_root.sunet == true) {
releaseSound.start(0, 1);
}
mask.removeMovieClip();
line.removeMovieClip();
Release = false;
if (r > 0) {
count++;
countL--;
if (_root.count >= 100) {
_root.gotoAndStop("OVER3");
}
eval ("golf" + (Number(_currentframe) - frame)).onEnterFrame = function () {
if (_root.pauza == false) {
yinc = yinc + acc;
eval ("golf" + (Number(_currentframe) - frame))._x = eval ("golf" + (Number(_currentframe) - frame))._x + xinc;
eval ("golf" + (Number(_currentframe) - frame))._y = eval ("golf" + (Number(_currentframe) - frame))._y + yinc;
if (yinc > 0) {
dir = "down";
} else {
dir = "up";
}
}
this.xmin = this.getBounds(_root).xMin;
this.xmax = this.getBounds(_root).xMax;
this.ymin = this.getBounds(_root).yMin;
this.ymax = this.getBounds(_root).yMax;
if (dir == "down") {
if (((this.ymax > hit0Bounds.yMin) && (this.xmax > (hit0Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit0Bounds.xMax - (this._width / 2)))) {
this._y = hit0Bounds.yMin - (this._height / 2);
Press = true;
if (_root.sunet == true) {
hitSound.start(0, 1);
}
delete this.onEnterFrame;
}
if (((this.ymax > hit1Bounds.yMin) && (this.xmax > (hit1Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit1Bounds.xMax - (this._width / 2)))) {
if (this.ymin < hit1Bounds.yMax) {
this._y = hit1Bounds.yMin - (this._height / 2);
Press = true;
if (_root.sunet == true) {
hitSound.start(0, 1);
}
delete this.onEnterFrame;
}
}
if (((this.ymax > hit4Bounds.yMin) && (this.xmax > (hit4Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit4Bounds.xMax - (this._width / 2)))) {
if (this.ymin < hit4Bounds.yMax) {
this._y = hit4Bounds.yMin - (this._height / 2);
Press = true;
if (_root.sunet == true) {
hitSound.start(0, 1);
}
delete this.onEnterFrame;
}
}
if (((this.ymax > hit5Bounds.yMin) && (this.xmax > (hit5Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit5Bounds.xMax - (this._width / 2)))) {
if (this.ymin < hit5Bounds.yMax) {
this._y = hit5Bounds.yMin - (this._height / 2);
Press = true;
if (_root.sunet == true) {
hitSound.start(0, 1);
}
delete this.onEnterFrame;
}
}
if (((this.ymax > hit6Bounds.yMin) && (this.xmax > (hit6Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit6Bounds.xMax - (this._width / 2)))) {
if (this.ymin < hit6Bounds.yMax) {
this._y = hit6Bounds.yMin - (this._height / 2);
Press = true;
if (_root.sunet == true) {
hitSound.start(0, 1);
}
delete this.onEnterFrame;
}
}
if (((this.ymax > hit7Bounds.yMin) && (this.xmax > (hit7Bounds.xMin + (this._width / 2)))) && (this.xmin < (hit7Bounds.xMax - (this._width / 2)))) {
if (this.ymin < hit7Bounds.yMax) {
this._y = hit7Bounds.yMin - (this._height / 2);
Press = true;
if (_root.sunet == true) {
hitSound.start(0, 1);
}
delete this.onEnterFrame;
}
}
}
if (dir == "up") {
if (hit1Bounds.yMin < this.ymax) {
if (this.hitTest(hit1) && ((this.ymin + (this._width / 2)) > hit1Bounds.yMax)) {
this._y = (hit1._y + (hit1._height / 2)) + (this._height / 2);
yinc = -yinc;
if (_root.sunet == true) {
hitSound.start(0, 1);
}
}
}
if (hit4Bounds.yMin < this.ymax) {
if (this.hitTest(hit4) && ((this.ymin + (this._width / 2)) > hit4Bounds.yMax)) {
this._y = (hit4._y + (hit4._height / 2)) + (this._height / 2);
yinc = -yinc;
if (_root.sunet == true) {
hitSound.start(0, 1);
}
}
}
if (hit5Bounds.yMin < this.ymax) {
if (this.hitTest(hit5) && ((this.ymin + (this._width / 2)) > hit5Bounds.yMax)) {
this._y = (hit5._y + (hit5._height / 2)) + (this._height / 2);
yinc = -yinc;
if (_root.sunet == true) {
hitSound.start(0, 1);
}
}
}
if (hit6Bounds.yMin < this.ymax) {
if (this.hitTest(hit6) && ((this.ymin + (this._width / 2)) > hit6Bounds.yMax)) {
this._y = (hit6._y + (hit6._height / 2)) + (this._height / 2);
yinc = -yinc;
if (_root.sunet == true) {
hitSound.start(0, 1);
}
}
}
if (hit7Bounds.yMin < this.ymax) {
if (this.hitTest(hit7) && ((this.ymin + (this._width / 2)) > hit7Bounds.yMax)) {
this._y = (hit7._y + (hit7._height / 2)) + (this._height / 2);
yinc = -yinc;
if (_root.sunet == true) {
hitSound.start(0, 1);
}
}
}
}
if (this.ymax > hit1Bounds.yMin) {
if (this.hitTest(hit1)) {
if ((this.xmax - (this._width / 2)) < hit1Bounds.xMin) {
this._x = (hit1._x - (hit1._width / 2)) - (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit1Bounds.xMax) {
this._x = (hit1._x + (hit1._width / 2)) + (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit4Bounds.yMin) {
if (this.hitTest(hit4)) {
if ((this.xmax - (this._width / 2)) < hit4Bounds.xMin) {
this._x = (hit4._x - (hit4._width / 2)) - (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit4Bounds.xMax) {
this._x = (hit4._x + (hit4._width / 2)) + (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit5Bounds.yMin) {
if (this.hitTest(hit5)) {
if ((this.xmax - (this._width / 2)) < hit5Bounds.xMin) {
this._x = (hit5._x - (hit5._width / 2)) - (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit5Bounds.xMax) {
this._x = (hit5._x + (hit5._width / 2)) + (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit6Bounds.yMin) {
if (this.hitTest(hit6)) {
if ((this.xmax - (this._width / 2)) < hit6Bounds.xMin) {
this._x = (hit6._x - (hit6._width / 2)) - (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit6Bounds.xMax) {
this._x = (hit6._x + (hit6._width / 2)) + (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
}
}
if (this.ymax > hit7Bounds.yMin) {
if (this.hitTest(hit7)) {
if ((this.xmax - (this._width / 2)) < hit7Bounds.xMin) {
this._x = (hit7._x - (hit7._width / 2)) - (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
if ((this.xmin + (this._width / 2)) > hit7Bounds.xMax) {
this._x = (hit7._x + (hit7._width / 2)) + (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
}
}
if (this.xmax > hit3Bounds.xMin) {
this._x = hit3Bounds.xMin - (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
if (this.xmin < hit2Bounds.xMax) {
this._x = hit2Bounds.xMax + (this._width / 2);
if (_root.sunet == true) {
hitSound.start(0, 1);
}
xinc = (-xinc) * 0.8;
}
if (this.hitTest(eval ("ring" + (Number(_currentframe) - frame)))) {
eval ("ring" + (Number(_currentframe) - frame)).play();
if (eval ("ring" + (Number(_currentframe) - frame))._alpha == 100) {
if (_root.sunet == true) {
ringSound.start(0, 1);
}
}
eval ("ring" + (Number(_currentframe) - frame)).onEnterFrame = function () {
this._alpha = this._alpha - 5;
eval ("arrow" + (Number(_currentframe) - frame))._alpha = 100;
eval ("hole" + (Number(_currentframe) - frame))._alpha = 100;
Item = true;
if (this._alpha <= 0) {
delete this.onEnterFrame;
}
};
}
if (Item && (this.hitTest(eval ("hole" + (Number(_currentframe) - frame))))) {
_root.scorT = _root.scorT + 100;
if (_root.sunet == true) {
winSound.start(0, 1);
}
eval ("golf" + (Number(_currentframe) - frame)).removeMovieClip();
_root.nextFrame();
}
if (((this._y > 400) || (this._x < 0)) || (this._x > 600)) {
eval ("golf" + (Number(_currentframe) - frame))._x = sx;
eval ("golf" + (Number(_currentframe) - frame))._y = sy;
if (_root.sunet == true) {
dropSound.start(0, 1);
}
Press = true;
count++;
countL--;
delete this.onEnterFrame;
}
};
} else {
Press = true;
}
}
}
};
setGame();
hitgetBounds();
stop();
Instance of Symbol 338 MovieClip "theMeniu" in Frame 203
//component parameters
onClipEvent (construct) {
wxnume = "GolfRun";
wxaliniere = "Dreapta-Sus";
wxculoare = 5669450 /* 0x56824A */;
wxdownload = true;
wxpause = true;
wxsound = true;
}
Frame 204
_root.nivel = 2;
_root.nivelL = 8;
stop();
setGame();
hitgetBounds();
Frame 205
_root.nivel = 3;
_root.nivelL = 7;
stop();
setGame();
hitgetBounds();
Frame 206
_root.nivel = 4;
_root.nivelL = 6;
stop();
setGame();
hitgetBounds();
Frame 207
_root.nivel = 5;
_root.nivelL = 5;
stop();
setGame();
hitgetBounds();
Frame 208
_root.nivel = 6;
_root.nivelL = 4;
stop();
setGame();
hitgetBounds();
Frame 209
_root.nivel = 7;
_root.nivelL = 3;
stop();
setGame();
hitgetBounds();
Frame 210
_root.nivel = 8;
_root.nivelL = 2;
stop();
setGame();
hitgetBounds();
Frame 211
_root.nivel = 9;
_root.nivelL = 1;
stop();
setGame();
hitgetBounds();
Frame 212
_root.nivel = 10;
_root.nivelL = 0;
stop();
setGame();
hitgetBounds();
Frame 213
_root.scorF = ((_root.scorT + _root.nivel) + 100) - count;
h = 0;
while (h <= 1000) {
_root["golf1" + h]._visible = false;
_root["golf2" + h]._visible = false;
_root["golf3" + h]._visible = false;
_root["golf" + h]._visible = false;
h++;
}
stop();
Instance of Symbol 197 MovieClip in Frame 213
//component parameters
onClipEvent (construct) {
wynume = "GolfRun";
wyculoare = 2186769 /* 0x215E11 */;
wyasezare = "Vertical";
wyaliniere = "Centru";
wypozitie = "Jos";
wyinstructions = false;
}
Frame 214
h = 0;
while (h <= 1000) {
_root["golf1" + h]._visible = false;
_root["golf2" + h]._visible = false;
_root["golf3" + h]._visible = false;
_root["golf" + h]._visible = false;
h++;
}
_root.scorF = ((_root.scorT + _root.nivel) + 100) - count;
stop();
Frame 215
trace(_root.scorF);
removeMovieClip(_root.xxc1);
removeMovieClip(_root.xxc2);
removeMovieClip(_root.xxc3);
removeMovieClip(_root.xxc4);
h = 0;
while (h <= 1000) {
_root["golf1" + h]._visible = false;
_root["golf2" + h]._visible = false;
_root["golf3" + h]._visible = false;
_root["golf" + h]._visible = false;
h++;
}
stopAllSounds();
Frame 216
_root.menu.removeMovieClip();
_root.gameid = "GolfRun";
_root.best = _root.scorF;
_root.scorF = 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 218
cale = "http://www.freeonlinegames.com/scoreboard/score.php?game=" + _root.gameid;
loadVariablesNum (cale, 0, "POST");
Frame 219
if (false) {
}
Frame 226
if (done != 1) {
gotoAndPlay ("loopLoad");
} else {
gotoAndPlay ("scoreTable");
}
Frame 230
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 231
stop();
if (_root.best > everscor[100]) {
scoreWind.gotoAndStop("submitScoreYes");
} else {
scoreWind.gotoAndStop("submitScoreNo");
}
if (_root.xdada == 1) {
scoreWind.gotoAndStop("topEver");
}
Symbol 14 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local3 in this.styleFormat_prm) {
this.setStyleProperty(_local3, this.styleFormat_prm[_local3]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var _local2 in this.methodTable) {
this[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local4 = this.styleTable.focusRectInner.value;
var _local5 = this.styleTable.focusRectOuter.value;
if (_local4 == undefined) {
_local4 = 16777215 /* 0xFFFFFF */;
}
if (_local5 == undefined) {
_local5 = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, _local5);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, _local4);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var _local17 = parseInt(value);
if (!isNaN(_local17)) {
value = _local17;
}
var _local16 = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!_local16)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var _local18 = propName.subString(4, propName.length);
this.textStyle[_local18] = value;
this.invalidate("setSize");
} else {
for (var _local15 in this.styleTable[propName].coloredMCs) {
var _local4 = new Color(this.styleTable[propName].coloredMCs[_local15]);
if (this.styleTable[propName].value == undefined) {
var _local5 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local4.setTransform(_local5);
} else {
_local4.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = _local16;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var _local4 = new Color(skinMCRef);
_local4.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var _local3 in arguments[0]) {
this[_local3] = arguments[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local3 = 0;
while (_local3 < arguments.length) {
var _local4 = arguments[_local3];
this.listeners[arguments[_local3]] = _local4;
for (var _local5 in this) {
if (this.isAStyle(_local5)) {
_local4.updateStyleProperty(this, _local5.toString());
}
}
_local3++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
if (component.styleTable[_local4].useGlobal == this.isGlobal) {
component.styleTable[_local4].useGlobal = true;
var _local3 = (this.isGlobal ? undefined : (globalStyleFormat[_local4]));
component.setStyleProperty(_local4, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local6 = 0;
for (var _local5 in this.listeners) {
var _local3 = this.listeners[_local5];
if (arguments.length > 0) {
var _local4 = 0;
while (_local4 < arguments.length) {
if (this.isAStyle(arguments[_local4])) {
_local3.updateStyleProperty(this, arguments[_local4]);
}
_local4++;
}
} else {
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
_local3.updateStyleProperty(this, _local4.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 27 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 36 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 45 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 46 MovieClip [UpArrow] Frame 1
stop();
Symbol 46 MovieClip [UpArrow] Frame 2
stop();
Symbol 46 MovieClip [UpArrow] Frame 3
stop();
Symbol 52 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 61 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 66 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 67 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 75 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 83 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "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 91 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 92 MovieClip [DownArrow] Frame 1
stop();
Symbol 92 MovieClip [DownArrow] Frame 2
stop();
Symbol 92 MovieClip [DownArrow] Frame 3
stop();
Symbol 101 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 102 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
_local2 = Math.min(_local2, this.maxPos);
this.setScrollPosition(Math.max(_local2, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local3 = this.enable;
if (enabledFlag && (!_local3)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (_local3)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local3 = this.smallScroll;
if (inc != "one") {
_local3 = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var _local2 = this.getScrollPosition() + (mode * _local3);
if (_local2 > this.maxPos) {
_local2 = this.maxPos;
} else if (_local2 < this.minPos) {
_local2 = this.minPos;
}
this.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var _local2 = this.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (this._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var _local3 = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxhscroll));
} else {
var _local3 = this.textField.scroll;
var _local2 = this.textField.bottomScroll - this.textField.scroll;
this.setScrollProperties(_local2, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 104 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?GolfRun", "_blank");
}
Symbol 108 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 50
stop();
_parent.play();
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 28
gotoAndPlay ("loop");
Symbol 156 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 164 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 164 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 164 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 165 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 172 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 172 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 172 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 173 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wynume;
getURL (targetul3, "_blank");
}
Symbol 176 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 176 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 176 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 181 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 182 MovieClip Frame 1
stop();
Symbol 185 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 186 MovieClip Frame 1
stop();
Symbol 187 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 194 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 194 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 194 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 195 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 196 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 1
function instructionsFunction() {
_root.gotoAndStop("Rules");
}
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 197 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 197 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 197 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 197 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 197 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 203 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?GolfRun", "_blank");
}
Symbol 209 Button
on (release) {
gotoAndStop (176);
}
Symbol 218 Button
on (release) {
gotoAndStop (175);
}
Symbol 222 MovieClip Frame 10
stop();
Symbol 223 Button
on (release) {
gotoAndStop (178);
}
Symbol 225 MovieClip Frame 10
stop();
Symbol 226 Button
on (release) {
gotoAndStop (191);
}
Symbol 228 MovieClip Frame 10
stop();
Symbol 229 Button
on (release) {
gotoAndStop (203);
}
Symbol 235 Button
on (release) {
gotoAndStop (175);
}
Symbol 238 Button
on (release) {
_root.gotoAndStop("Select");
}
Symbol 256 MovieClip Frame 1
stop();
Symbol 256 MovieClip Frame 10
gotoAndPlay (2);
Symbol 293 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wxnume;
getURL (targetul3, "_blank");
}
Symbol 294 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wxnume;
getURL (targetul2, "_blank");
}
Symbol 295 Button
on (release) {
_parent.mainMenuFunction();
}
Symbol 296 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wxnume) + ".exe";
getURL (targetul1);
}
Symbol 297 Button
on (release, keyPress "p") {
_parent.pauseFunction();
}
Symbol 298 Button
on (release, keyPress "s") {
_parent.soundFunction();
}
Symbol 309 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 309 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 309 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 309 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 309 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 309 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 309 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 309 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 314 Button
on (press) {
_parent.play();
}
Symbol 317 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 317 MovieClip Frame 2
tg._x = 147;
tg._y = 1.1;
Symbol 317 MovieClip Frame 3
tg._x = 147;
tg._y = -174.9;
Symbol 317 MovieClip Frame 4
tg._x = 1.5;
tg._y = -174.9;
Symbol 317 MovieClip Frame 5
tg._x = 147;
tg._y = -152.4;
Symbol 317 MovieClip Frame 6
tg._x = 147;
tg._y = -128.9;
Symbol 317 MovieClip Frame 7
tg._x = 147;
tg._y = -104.9;
Symbol 317 MovieClip Frame 8
tg._x = 1.5;
tg._y = -151.4;
Symbol 317 MovieClip Frame 9
tg._x = 1.5;
tg._y = -128.4;
Symbol 317 MovieClip Frame 10
tg._x = 1.5;
tg._y = -104.9;
Symbol 336 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 337 MovieClip Frame 1
stop();
if ((_parent.wxaliniere == "Stanga-Sus") || (_parent.wxaliniere == "Dreapta-Sus")) {
this.gotoAndStop(2);
}
Symbol 338 MovieClip Frame 1
function pauseFunction() {
if (_root.pauza == false) {
_root.theMeniu.gotoAndStop("deskis");
_root.pauza = true;
_root.pau._visible = 1;
h = 0;
while (h <= 1000) {
_root["golf1" + h]._visible = false;
_root["golf2" + h]._visible = false;
_root["golf3" + h]._visible = false;
_root["golf" + h]._visible = false;
h++;
}
} else {
_root.theMeniu.gotoAndStop("inkis");
_root.pauza = false;
_root.pau._visible = 0;
h = 0;
while (h <= 1000) {
_root["golf1" + h]._visible = true;
_root["golf2" + h]._visible = true;
_root["golf3" + h]._visible = true;
_root["golf" + h]._visible = true;
h++;
}
}
}
function soundFunction() {
if (_root.sunet == true) {
_root.sunet = false;
_root.backSound.stop();
} else {
_root.sunet = true;
_root.backSound.start(0, 999);
}
trace("sunet: " + _root.sunet);
}
function mainMenuFunction() {
_root.gotoAndStop("coperta");
}
stop();
wxnguides._alpha = 0;
my_color = new Color(my_mc);
my_color.setRGB(wxculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wxnmenu.tg);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3 = new Color(wxnfer);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
Symbol 338 MovieClip Frame 10
stop();
Symbol 338 MovieClip Frame 20
gotoAndStop (1);
Symbol 349 Button
on (release) {
_root.gotoAndPlay("coperta");
}
Symbol 352 Button
on (release) {
_root.xdada = 0;
_root.gotoAndPlay("submitScore");
}
Symbol 372 MovieClip Frame 1
ice = true;
Symbol 387 MovieClip Frame 1
ice = true;
Symbol 389 MovieClip Frame 1
ice = true;
Symbol 399 MovieClip Frame 1
ice = true;
Symbol 409 MovieClip Frame 1
ice = true;
Symbol 415 MovieClip Frame 1
ice = true;
Symbol 421 MovieClip Frame 1
ice = true;
Symbol 426 MovieClip Frame 1
ice = true;
Symbol 436 MovieClip Frame 1
ice = true;
Symbol 438 MovieClip Frame 1
ice = true;
Symbol 444 MovieClip Frame 1
ice = true;
Symbol 550 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 557 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 862 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 102 MovieClip [FScrollBarSymbol] "scroll1" in Symbol 862 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
horizontal = false;
}
Symbol 868 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 884 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 890 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 894 MovieClip Frame 1
stop();
Symbol 894 MovieClip Frame 9
stop();
Symbol 894 MovieClip Frame 22
stop();
Symbol 894 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 894 MovieClip Frame 45
if (_root.updated != 1) {
gotoAndPlay ("loop");
} else {
_root.best = 0;
_root.score = 0;
_root.xdada = 1;
_root.gotoAndPlay("submitScore");
}