Frame 1
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
prel.gotoAndStop(tgPrel);
if (b1 >= b2) {
gotoAndPlay ("intro");
}
Frame 4
if (Math.round(b1 / 1024) <= 35) {
gotoAndPlay ("loop1");
}
Frame 5
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
tg = tgprel - 1;
if (tg <= 9) {
procent = "0" + tg;
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 9
if (Math.round(b1 / 1024) <= 325) {
gotoAndPlay ("loop2");
}
Frame 11
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
tg = tgprel - 2;
if (tgprel <= 9) {
procent = "0" + tg;
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 14
if (b1 < b2) {
gotoAndPlay ("loop3");
}
Frame 15
procent = "--";
prel.gotoAndStop(100);
Frame 207
function clicked(name) {
if (name == "tournament") {
_root.gotoAndStop("select");
} else if (name == "password") {
_root.gotoAndStop("password");
}
}
fscommand ("showmenu", false);
_root.instruct._visible = false;
soundToggle = true;
_root.stop();
tries = 0;
maxTries = 2;
maxLevel = 8;
level = 0;
codes = ["", "G0N3", "M1ND", "G4M3", "L1T3", "L45T", "FR33", "F15T", "M33T", "", "", ""];
movieClip.prototype.changeColor = function (r, g, b) {
myColor = new Color(this);
if (((r == 11) && (g == 11)) && (b == 11)) {
_alpha = 0;
} else {
_alpha = 100;
}
colorTransform = {ra:100, rb:r, ga:100, gb:g, ba:100, bb:b, aa:100, ab:0};
myColor.setTransform(colorTransform);
};
Instance of Symbol 139 MovieClip in Frame 207
//component parameters
onClipEvent (initialize) {
wynume = "airhockey";
wyculoare = 13209;
wyasezare = "Vertical";
wyaliniere = "Stanga";
wypozitie = "Sus";
wyinstructions = false;
}
Frame 208
function clicked(num) {
_parent.selection1 = num;
gotoAndPlay ("transition");
}
_root.stop();
Frame 209
function verify() {
var _local1 = -1;
match = false;
while (_local1 < codes.length) {
if (pass == codes[_local1]) {
match = true;
which = _local1;
}
}
if (match == true) {
_root.level = which - 1;
opened = which;
_root.gotoAndStop("select");
} else {
wrong.gotoandstop(2);
}
_local1 = _local1++;
}
selection.setFocus("pass");
Frame 210
_root.stop();
if (!continuing) {
level++;
if (maxLevel < level) {
trans._visible = false;
_root.gotoAndStop("youWin");
}
} else {
continuing = false;
}
Instance of Symbol 241 MovieClip "trans" in Frame 210
onClipEvent (load) {
you.chars.gotoAndStop(_parent.selection1);
computer.chars.gotoAndStop(_parent.level);
}
Frame 211
theNum = level + 1;
thePass = codes[theNum];
if (level == maxLevel) {
this.gotoAndStop("youWin");
}
Frame 212
_root.pause_flag = false;
sound_flag = false;
_root.stop();
selection2 = level;
name1 = this["char" + selection1][0];
name2 = this["char" + selection2][0];
Instance of Symbol 253 MovieClip in Frame 212
onClipEvent (enterFrame) {
lf = nf;
nf = getTimer();
fps = math.round(1 / ((nf - lf) / 1000));
}
Instance of Symbol 347 MovieClip in Frame 212
//component parameters
onClipEvent (initialize) {
wxnume = "airhockey";
wxaliniere = "Dreapta-Jos";
wxculoare = 13209;
wxdownload = true;
wxpause = true;
wxsound = true;
}
Instance of Symbol 139 MovieClip in Frame 214
//component parameters
onClipEvent (initialize) {
wynume = "airhockey";
wyculoare = 13209;
wyasezare = "Vertical";
wyaliniere = "Stanga";
wypozitie = "Sus";
wyinstructions = false;
}
Frame 217
triesLeft = maxTries - tries;
continuing = true;
Frame 218
_root.stop();
Instance of Symbol 139 MovieClip in Frame 218
//component parameters
onClipEvent (initialize) {
wynume = "airhockey";
wyculoare = 13209;
wyasezare = "Vertical";
wyaliniere = "Stanga";
wypozitie = "Sus";
wyinstructions = false;
}
Symbol 4 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?airhockey", "_blank");
}
Symbol 9 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 50
stop();
_parent.play();
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 28
gotoAndPlay ("loop");
Symbol 77 Button
on (release) {
clicked("password");
}
Symbol 80 Button
on (release) {
if (_root.instruct._visible == false) {
_root.instruct._visible = true;
}
}
Symbol 83 Button
on (release) {
clicked("tournament");
}
Symbol 88 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?airhockey", "_blank");
}
Symbol 91 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?airhockey", "_blank");
}
Symbol 94 Button
on (release) {
getURL ("http://www.freeonlinegames.com/downloads/airhockey.exe");
}
Symbol 97 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 104 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 104 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 104 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 105 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 108 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2);
}
Symbol 113 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 113 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 113 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 114 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wynume;
getURL (targetul3, "_blank");
}
Symbol 117 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wynume;
getURL (targetul3);
}
Symbol 118 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 118 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 118 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 123 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 124 MovieClip Frame 1
stop();
Symbol 127 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2);
}
Symbol 128 MovieClip Frame 1
stop();
Symbol 129 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 136 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 136 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 136 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 137 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 138 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 1
function instructionsFunction() {
}
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 139 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 139 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 139 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 139 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 139 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 144 Button
on (release) {
if (_root.instruct._visible == true) {
_root.instruct._visible = false;
}
}
Symbol 151 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?airhockey", "_blank");
}
Symbol 162 Button
on (rollOver) {
over(5);
}
on (rollOut, dragOut, releaseOutside) {
out(5);
}
on (release) {
clicked(5);
}
Symbol 167 Button
on (rollOver) {
over(8);
}
on (rollOut, dragOut, releaseOutside) {
out(8);
}
on (release) {
clicked(8);
}
Symbol 173 Button
on (rollOver) {
over(1);
}
on (rollOut, dragOut, releaseOutside) {
out(1);
}
on (release) {
clicked(1);
}
Symbol 178 Button
on (rollOver) {
over(2);
}
on (rollOut, dragOut, releaseOutside) {
out(2);
}
on (release) {
clicked(2);
}
Symbol 183 Button
on (rollOver) {
over(6);
}
on (rollOut, dragOut, releaseOutside) {
out(6);
}
on (release) {
clicked(6);
}
Symbol 188 Button
on (rollOver) {
over(3);
}
on (rollOut, dragOut, releaseOutside) {
out(3);
}
on (release) {
clicked(3);
}
Symbol 193 Button
on (rollOver) {
over(4);
}
on (rollOut, dragOut, releaseOutside) {
out(4);
}
on (release) {
clicked(4);
}
Symbol 198 Button
on (rollOver) {
over(7);
}
on (rollOut, dragOut, releaseOutside) {
out(7);
}
on (release) {
clicked(7);
}
Symbol 202 Button
on (rollOver) {
over(9);
}
on (rollOut, dragOut, releaseOutside) {
out(9);
}
on (release) {
clicked(9);
}
Symbol 204 MovieClip Frame 1
function over(num) {
var _local1 = num;
var _local2 = _parent;
if ((_root.opened >= _local1) || (_local1 < 10)) {
_local2.over(_local1);
_local2.main.bigChar.gotoAndStop(_local1);
} else {
_local2.main.bigChar.gotoAndStop(_local1 + 4);
_local2.over(1000000);
}
this["char" + _local1].play();
}
function out(num) {
this["char" + num].gotoAndStop(1);
}
function clicked(num) {
var _local1 = num;
if ((_root.opened >= _local1) || (_local1 < 10)) {
_parent.clicked(_local1);
}
}
stop();
Symbol 205 MovieClip Frame 1
function clicked(num) {
_parent.selection1 = num;
_parent.gotoAndPlay("transition");
}
stop();
Symbol 209 Button
on (release, keyPress "<Enter>") {
verify();
}
Symbol 215 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 2
stop();
Symbol 219 Button
on (release) {
_root.gotoAndStop("splash");
}
Symbol 230 MovieClip Frame 1
stop();
myNum = Number(_name.substr(1));
this.gotoAndStop(myNum);
if ((myNum > 8) && (_root.opened < myNum)) {
this.gotoAndStop(myNum + 4);
}
this.onEnterFrame = function () {
var _local1 = this;
if (_local1._currentframe == _root.selection1) {
_local1.gotoAndStop(_local1._currentframe + 1);
}
};
Symbol 231 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 1
stop();
if (_parent.num < _root.level) {
this.gotoAndStop(2);
} else if (_parent.num == _root.level) {
this.gotoAndStop(3);
}
Symbol 237 MovieClip Frame 1
num = Number(_name.substr(3));
stop();
Symbol 238 MovieClip Frame 1
stop();
myNum = Number(_name.substr(1));
this.gotoAndStop(myNum);
if ((myNum > 8) && (_root.opened < myNum)) {
this.gotoAndStop(myNum + 4);
}
Symbol 239 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 50
_root.gotoAndStop("main");
Symbol 248 Button
on (release) {
_root.gotoAndStop("transition");
}
Symbol 258 MovieClip Frame 1
stop();
Symbol 258 MovieClip Frame 2
stop();
Symbol 262 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 2
stop();
Symbol 265 Button
on (release) {
_root.gotoAndStop("splash");
}
Symbol 268 MovieClip Frame 1
if (_root.soundToggle) {
play();
} else {
stop();
}
Symbol 268 MovieClip Frame 2
stop();
Symbol 271 MovieClip Frame 1
stop();
Symbol 274 MovieClip Frame 1
stop();
Symbol 274 MovieClip Frame 11
gotoAndStop (1);
Symbol 276 MovieClip Frame 1
_parent.me = "00";
stop();
Symbol 276 MovieClip Frame 2
_parent.me = "01";
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 2
_parent.me = "02";
stop();
Symbol 278 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 2
_parent.me = "03";
stop();
Symbol 279 MovieClip Frame 1
_parent.me = "00";
stop();
Symbol 279 MovieClip Frame 2
_parent.me = "04";
stop();
Symbol 282 MovieClip Frame 1
_parent.me = "00";
stop();
Symbol 282 MovieClip Frame 2
_parent.me = "05";
stop();
Symbol 283 MovieClip Frame 1
_parent.me = "00";
stop();
Symbol 283 MovieClip Frame 2
_parent.me = "06";
stop();
Symbol 284 MovieClip Frame 1
_parent.me = "00";
stop();
Symbol 284 MovieClip Frame 2
_parent.me = "07";
stop();
Symbol 286 MovieClip Frame 1
_parent.me = "00";
stop();
Symbol 286 MovieClip Frame 2
_parent.me = "01";
stop();
Symbol 287 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 2
_parent.me = "02";
stop();
Symbol 288 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 2
_parent.me = "03";
stop();
Symbol 289 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 2
_parent.me = "04";
stop();
Symbol 291 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 2
_parent.me = "05";
stop();
Symbol 292 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 2
_parent.me = "06";
stop();
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 2
_parent.me = "07";
stop();
Symbol 300 MovieClip Frame 1
function draw_line(mc, x1, y1, x2, y2) {
var _local1 = mc;
var _local2 = this;
_local2[_local1]._x = x1;
_local2[_local1]._y = y1;
_local2[_local1]._xscale = x2 - x1;
_local2[_local1]._yscale = y2 - y1;
_local2[_local1]._visible = 0;
}
function draw_table(points, angle, d, xctr, yctr, dimx, dimz) {
var per;
var rx;
var ry;
var _local3;
var sa;
var ca;
var sb;
var cb;
var trans;
var _local2 = new Array();
trans = 0.017453;
sa = Math.sin(angle * trans);
ca = Math.cos(angle * trans);
_local2[0] = new Array();
_local2[1] = new Array();
_local2[2] = new Array();
_local2[3] = new Array();
var _local1 = 0;
while (_local1 < 4) {
rx = points[_local1][0];
_local3 = points[_local1][2];
ry = (-points[_local1][2]) * sa;
_local3 = _local3 * ca;
per = d / (_local3 + d);
_local2[_local1][0] = 275 + (per * rx);
_local2[_local1][1] = 100 - (per * ry);
_local1++;
}
draw_line("line0", _local2[0][0], _local2[0][1], _local2[1][0], _local2[1][1]);
draw_line("line1", _local2[1][0], _local2[1][1], _local2[2][0], _local2[2][1]);
draw_line("line2", _local2[2][0], _local2[2][1], _local2[3][0], _local2[3][1]);
draw_line("line3", _local2[3][0], _local2[3][1], _local2[0][0], _local2[0][1]);
draw_line("cross_line", 275 - dimx, 100, 275 + dimx, 100);
this.circle._x = 275;
this.circle._y = 100;
this.circle._xscale = 40;
this.circle._yscale = 40 * sa;
}
function draw_puck(mc, points, angle, d, xctr, yctr, size) {
var _local1 = this;
var _local2 = mc;
var _local3;
var xp;
var yp;
var rx;
var ry;
var rz;
var sa;
var ca;
var sb;
var cb;
var trans;
var j;
j = check_movie(_local2);
trans = 0.017453;
sa = Math.sin(angle * trans);
ca = Math.cos(angle * trans);
rx = points[j][0];
rz = points[j][2];
ry = (-points[j][2]) * sa;
rz = rz * ca;
_local3 = d / (rz + d);
xp = 275 + (_local3 * rx);
yp = 100 - (_local3 * ry);
_local1[_local2]._x = xp;
_local1[_local2]._y = yp;
_local1[_local2]._xscale = size * _local3;
_local1[_local2]._yscale = -(((size * _local3) * sa) - (((yp - 100) / 20) * ca));
if (_local2 == "puck") {
_local1[_local2]._visible = 0;
_local1.puck2._x = xp;
_local1.puck2._y = yp;
_local1.puck2._xScale = _local1[_local2]._xScale;
_local1.puck2._yScale = _local1[_local2]._yScale;
}
_local1[_local2].swapDepths(1000 - rz);
}
function keep_inbounds(mc, points, dimx, dimz, size, vel) {
var _local2 = size;
var _local3 = points;
var _local1;
_local1 = check_movie(mc);
if (dimx < (_local3[_local1][0] + (_local2 / 2))) {
_local3[_local1][0] = dimx - (_local2 / 2);
}
if ((_local3[_local1][0] - (_local2 / 2)) < (-dimx)) {
_local3[_local1][0] = (-dimx) + (_local2 / 2);
}
if (_local1 == 5) {
if ((_local3[_local1][2] + (_local2 / 2)) > 0) {
_local3[_local1][2] = (-_local2) / 2;
}
if ((_local3[_local1][2] - (_local2 / 2)) < (-dimz)) {
_local3[_local1][2] = (-dimz) + (_local2 / 2);
}
} else if (_local1 == 6) {
if (dimz < (_local3[_local1][2] + (_local2 / 2))) {
_local3[_local1][2] = dimz - (_local2 / 2);
}
if ((_local3[_local1][2] - (_local2 / 2)) < 0) {
_local3[_local1][2] = _local2 / 2;
}
}
}
function check_movie(mc) {
var _local1 = mc;
if (_local1 == "puck") {
return(4);
}
if (_local1 == "player1") {
return(5);
}
if (_local1 == "player2") {
return(6);
}
return(undefined);
}
function collision(mc1, mc2, m1, m2, points, vel, ox, oz, vpx, vpz) {
var _local1 = points;
var _local2 = vel;
var j;
var k;
var vx1;
var vz1;
var vx2;
var vz2;
var deltax;
var deltaz;
var _local3;
var vel1;
var vel2;
var angle1;
var angle2;
var vxr1;
var vyr1;
var vxr2;
var vyr2;
var nvx1;
var nvy1;
var nvx2;
var nvy2;
var oldx;
var oldy;
j = check_movie(mc1);
k = check_movie(mc2);
vx1 = _local1[j][0] - ox;
vz1 = _local1[j][2] - oz;
vx2 = _local2[0];
vz2 = _local2[1];
px1 = _local2[0];
pz1 = _local2[1];
deltax = _local1[k][0] - _local1[j][0];
deltaz = _local1[k][2] - _local1[j][2];
_local3 = Math.atan2(deltaz, deltax);
vel1 = Math.sqrt((vx1 * vx1) + (vz1 * vz1));
vel2 = Math.sqrt((vx2 * vx2) + (vz2 * vz2));
angle1 = Math.atan2(vz1, vx1);
angle2 = Math.atan2(vz2, vx2);
vxr1 = vel1 * Math.cos(angle1 - _local3);
vyr1 = vel1 * Math.sin(angle1 - _local3);
vxr2 = vel2 * Math.cos(angle2 - _local3);
vyr2 = vel2 * Math.sin(angle2 - _local3);
nvx1 = (((m1 - m2) * vxr1) + ((m2 + m2) * vxr2)) / (m1 + m2);
nvy1 = vyr1;
nvx2 = (((m1 + m1) * vxr1) + ((m2 - m1) * vxr2)) / (m1 + m2);
nvy2 = vyr2;
if ((nvx2 - nvx1) < 0) {
return(undefined);
}
oldx = _local1[k][0];
oldy = _local1[k][2];
_local2[0] = (Math.cos(_local3) * nvx2) + (Math.cos(_local3 + 1.570796) * nvy2);
_local2[1] = (Math.sin(_local3) * nvx2) + (Math.sin(_local3 + 1.570796) * nvy2);
this.check_vel(_local2);
_local1[j][0] = ox;
_local1[j][2] = oz;
_local1[k][0] = oldx + (2 * _local2[0]);
_local1[k][2] = oldy + (2 * _local2[1]);
px2 = _local2[0];
pz2 = _local2[1];
momentumChange = math.sqrt(((px2 - px1) * (px2 - px1)) + ((pz2 - pz1) * (pz2 - pz1)));
maxMom = 20;
momFactor = momentumChange / maxMom;
if (momFactor < 0.1) {
momFactor = 0.1;
} else if (momFactor > 1) {
momFactor = 1;
}
if (_root.soundToggle) {
numSounds++;
soundName = "sound" + numSounds;
duplicateMovieClip ("sounds", soundName, numSounds);
removeMovieClip(this["sound" + (numSounds - 5)]);
maxVol = 100;
panFactor = main.puckX / 80;
if (pan < -30) {
pan = -30;
} else if (pan > 30) {
pan = 30;
}
this[soundName].smack = new Sound(this[soundName]);
volume = maxVol * momFactor;
this[soundName].smack.attachSound("hit");
this[soundName].smack.setVolume(volume);
this[soundName].smack.setPan(100 * panFactor);
this[soundName].smack.start();
if (numSounds > 2500) {
numSounds = 2750;
}
}
return(undefined);
}
function check_vel(vel) {
var _local2 = vel;
var _local1 = 15;
if (_local1 < _local2[0]) {
_local2[0] = _local1;
} else if (_local2[0] < (-_local1)) {
_local2[0] = -_local1;
}
if (_local1 < _local2[1]) {
_local2[1] = _local1;
} else if (_local2[1] < (-_local1)) {
_local2[1] = -_local1;
}
}
numSounds = 2750;
stop();
this.circle.duplicateMovieClip("center_circle", 0);
this.line.duplicateMovieClip("cross_line", 1);
var j = 0;
while (j < 4) {
this.line.duplicateMovieClip("line" + j, j + 2);
j++;
}
this.circle.duplicateMovieClip("puck", 6);
this.puck.gotoAndStop(2);
this.circle.duplicateMovieClip("player1", 7);
this.player1.gotoAndStop(3);
this.circle.duplicateMovieClip("player2", 8);
this.player2.gotoAndstop(3);
Instance of Symbol 258 MovieClip "pauza" in Symbol 300 MovieClip Frame 1
on (release) {
if (_root.pause_flag == false) {
_root.pause_flag = true;
this.gotoAndStop(2);
} else {
_root.pause_flag = false;
this.gotoAndStop(1);
}
_parent.main.togglePause();
}
Instance of Symbol 262 MovieClip "sunet" in Symbol 300 MovieClip Frame 1
on (release) {
if (_root.sound_flag == false) {
_root.sound_flag = true;
this.gotoAndStop(2);
} else {
_root.sound_flag = false;
this.gotoAndStop(1);
}
_root.soundToggle = (_root.soundToggle ? false : true);
stopAllSounds();
}
Instance of Symbol 268 MovieClip "main" in Symbol 300 MovieClip Frame 1
onClipEvent (load) {
function buildBoard(whichLevel) {
var _local1 = whichLevel;
var _local2 = this;
var _local3 = _parent;
colorPath1 = _local3.table.tt;
colorPath2 = _local3.table.bg;
colorPath3 = _local3.puck2.puck;
colorPath4 = _local3.table.border;
colorPath1.changeColor(_local2["tableColor" + _local1][0], _local2["tableColor" + _local1][1], _local2["tableColor" + _local1][2]);
colorPath2.changeColor(_local2["bgColor" + _local1][0], _local2["bgColor" + _local1][1], _local2["bgColor" + _local1][2]);
colorPath3.changeColor(_local2["puckColor" + _local1][1], _local2["puckColor" + _local1][2], _local2["puckColor" + _local1][3]);
colorPath4.changeColor(_local2["borderColor" + _local1][0], _local2["borderColor" + _local1][1], _local2["borderColor" + _local1][2]);
}
function initialize() {
buildBoard(level);
norm = level / 10;
horizontalMagic = 1 + (norm * 0.5);
shotPower = 1 + (norm * 3);
if (level == 1) {
k = 0.1;
kk = 0.05;
} else if (level == 2) {
k = 0.12;
kk = 0.08;
} else if (level == 3) {
k = 0.15;
kk = 0.08;
} else if (level == 4) {
k = 0.17;
kk = 0.09;
} else if (level == 5) {
k = 0.2;
kk = 0.1;
} else if (level == 6) {
k = 0.201;
kk = 0.101;
} else if (level == 7) {
k = 0.202;
kk = 0.102;
} else if (level == 8) {
k = 0.204;
kk = 0.104;
} else if (level == 9) {
k = 0.204;
kk = 0.104;
} else if (level == 10) {
k = 0.21;
kk = 0.12;
}
numSounds = 4000;
ballInPlay = true;
collisionDetect = true;
_parent.puck2._visible = true;
xctr = 350;
yctr = 140;
trans = 0.017453;
D = 450;
angle = -50;
sa = Math.sin(angle * trans);
ca = Math.cos(angle * trans);
dimx = 163;
dimz = 235;
dimx = dimx * 0.9;
dimz = dimz * 0.9;
loss = 0.015;
fine_tune = 10;
mass_puck = 1;
mass_player = 5;
size = 30;
size_squared = size * size;
num_points = 7;
points = new Array();
points[0] = new Array(dimx, 0, dimz);
points[1] = new Array(dimx, 0, -dimz);
points[2] = new Array(-dimx, 0, -dimz);
points[3] = new Array(-dimx, 0, dimz);
theSide = random(3);
if (theSide == 0) {
points[4] = new Array((-dimx) + size, 0, -1);
} else if (theSide == 2) {
points[4] = new Array(0, 0, -1);
} else {
points[4] = new Array(dimx - size, 0, -1);
}
points[5] = new Array(0, 0, (-dimz) / 2);
points[6] = new Array(0, 0, dimz / 2);
_parent.draw_table(points, angle, D, xctr, yctr, dimx, dimz);
if (serveMode == "begin") {
vel = new Array((-random(3)) - 1, random(3) - random(3));
} else if (serveMode == "computer") {
vel = new Array(-3, -3);
} else if (serveMode == "you") {
vel = new Array(-3, 3);
}
}
function score(who) {
var _local1 = _parent;
var _local2 = who;
serveMode = _local2;
if (_root.soundToggle) {
_local1.soundFX.gotoAndPlay("score");
}
delay = 0;
collisionDetect = false;
if (_local2 == "computer") {
_local1.computerScore++;
_local1.opponent["s" + _local1.computerScore].gotoAndStop(2);
} else if (_local2 == "you") {
_local1.yourScore++;
_local1.you["s" + _local1.yourScore].gotoAndStop(2);
}
if ((_local1.yourScore == maxScore) || (_local1.computerScore == maxScore)) {
if (_local1.computerScore == maxScore) {
gameOver();
} else {
youWin();
}
}
}
function gameOver() {
var _local1 = _root;
_local1.tries++;
if (_local1.maxTries < _local1.tries) {
whereToGo = "gameOver";
} else {
whereToGo = "continue";
}
_parent.opponent.run = _parent.opponent.party;
collisionDetect = false;
endofgame = true;
}
function youWin() {
collisionDetect = false;
endofgame = true;
whereToGo = "givecode";
_parent.you.run = _parent.you.party;
}
function togglePause() {
paused = ((paused == true) ? false : true);
}
function wallSound(svel, which) {
var _local1 = _parent;
if (_root.soundToggle) {
maxVel = 15;
momFactor = math.abs(svel / maxVel);
if (momFactor < 0.1) {
momFactor = 0.1;
} else if (momFactor > 1) {
momFactor = 1;
}
numSounds++;
soundName = "sound" + numSounds;
duplicateMovieClip (_local1.sounds, soundName, numSounds);
removeMovieClip(_local1["sound" + (numSounds - 5)]);
maxVol = 100;
if (which == "left") {
pan = -30;
} else if (which == "right") {
pan = 30;
} else {
pan = 0;
}
_local1[soundName].smack = new Sound(_local1[soundName]);
volume = maxVol * momFactor;
_local1[soundName].smack.attachSound("wall");
_local1[soundName].smack.setVolume(volume);
_local1[soundName].smack.setPan(pan);
_local1[soundName].smack.start();
if (numSounds > 4500) {
numSounds = 4000;
}
}
}
function wallDetection() {
puckX = points[4][0];
puckZ = points[4][2];
if ((dimx < (puckX + (size / 2))) && (collisionDetect)) {
vel[0] = vel[0] * -1;
points[4][0] = dimx - (size / 2);
wallSound(vel[0], "right");
}
if (((puckX - (size / 2)) < (-dimx)) && (collisionDetect)) {
vel[0] = vel[0] * -1;
points[4][0] = (-dimx) + (size / 2);
wallSound(vel[0], "left");
}
fudgeFactor = 10;
if (((dimz - fudgeFactor) < (puckZ + (size / 2))) && (collisionDetect)) {
vel[1] = vel[1] * -1;
points[4][2] = (dimz - (size / 2)) - fudgeFactor;
if (((((-dimX) / 3) < puckX) && (puckX < (dimX / 3))) && (collisionDetect)) {
score("you");
} else {
wallSound(vel[1]);
}
}
if ((puckZ - (size / 2)) < (-dimz)) {
vel[1] = vel[1] * -1;
points[4][2] = (-dimz) + (size / 2);
if (((((-dimX) / 3) < puckX) && (puckX < (dimX / 3))) && (collisionDetect)) {
score("computer");
} else {
wallSound(vel[1]);
}
}
}
function puckPlayer1Detection() {
var _local2 = _parent;
pvx = vel[0] / fine_tune;
pvz = vel[1] / fine_tune;
pvx2 = (nx1 - ox1) / fine_tune;
pvz2 = (nz1 - oz1) / fine_tune;
px2 = ox1;
pz2 = oz1;
collided = false;
var _local1 = 0;
while (_local1 < fine_tune) {
px = px + pvx;
pz = pz + pvz;
px2 = px2 + pvx2;
pz2 = pz2 + pvz2;
deltax = px - px2;
deltaz = pz - pz2;
distance_squared = (deltax * deltax) + (deltaz * deltaz);
if ((distance_squared < size_squared) && (collisionDetect)) {
collided = true;
points[4][0] = px;
points[4][2] = pz;
points[5][2] = pz2;
points[5][0] = px2;
_local2.collision("player1", "puck", mass_player, mass_puck, points, vel, ox1, oz1, nx1 - ox1, nz1 - oz1);
return;
}
_local1++;
}
}
level = _root.level;
paused = false;
maxDelay = 24;
maxScore = 7;
endDelay = 48;
serveMode = "begin";
tableColor1 = [44, 99, 211];
bgColor1 = [26, 9, 149];
borderColor1 = [22, 77, 191];
puckColor1 = [242, 184, 13];
tableColor2 = [135, 209, 220];
bgColor2 = [30, 137, 164];
borderColor2 = [115, 189, 200];
puckColor2 = [227, 91, 91];
tableColor3 = [193, 28, 19];
bgColor3 = [194, 116, 22];
borderColor3 = [173, 8, 0];
puckColor3 = [255, 204, 0];
tableColor4 = [204, 0, 0];
bgColor4 = [133, 12, 12];
borderColor4 = [184, 0, 0];
puckColor4 = [255, 102, 0];
tableColor5 = [208, 125, 26];
bgColor5 = [79, 139, 61];
borderColor5 = [188, 105, 6];
puckColor5 = [204, 255, 0];
tableColor6 = [204, 102, 204];
bgColor6 = [100, 36, 128];
borderColor6 = [184, 82, 184];
puckColor6 = [255, 153, 204];
tableColor7 = [51, 153, 255];
bgColor7 = [6, 115, 193];
borderColor7 = [31, 133, 235];
puckColor7 = [205, 234, 68];
tableColor8 = [138, 74, 103];
bgColor8 = [109, 90, 122];
borderColor8 = [118, 54, 83];
puckColor8 = [70, 142, 79];
tableColor9 = [200, 139, 0];
bgColor9 = [94, 73, 51];
borderColor9 = [180, 119, 0];
puckColor9 = [78, 71, 65];
tableColor10 = [102, 75, 116];
bgColor10 = [78, 71, 65];
borderColor10 = [82, 55, 96];
puckColor10 = [11, 11, 11];
tableColor11 = [102, 102, 102];
bgColor11 = [0, 0, 0];
borderColor11 = [82, 82, 82];
puckColor11 = [153, 0, 0];
tableColor12 = [0, 135, 0];
bgColor12 = [98, 134, 47];
borderColor12 = [0, 115, 0];
puckColor12 = [255, 255, 255];
initialize();
collisionDetect = false;
}
onClipEvent (enterFrame) {
if (paused == false) {
if (ballInPlay) {
if (overlap == "yes") {
overlap = "no";
vel[1] = -10;
points[4][2] = points[4][2] - 30;
}
points[4][0] = points[4][0] + vel[0];
points[4][2] = points[4][2] + vel[1];
ox1 = points[5][0];
oz1 = points[5][2];
ox2 = points[6][0];
oz2 = points[6][2];
yOffset = (math.abs((yctr + 31.5) - _parent._ymouse) / 210) * 60;
yFactor = math.abs(yctr - _parent._ymouse) / 210;
xFactor = (xctr - _parent._xmouse) / (150 + (57 * yfactor));
_parent.offset = xfactor;
maxXshift = 70;
minXshift = 17;
xShiftDiff = maxXshift - minXshift;
currentXshift = (1 - yFactor) * xShiftDiff;
xOffset = currentXshift * xFactor;
points[5][2] = (((yctr - _parent._ymouse) * 1.25) + yOffset) - 60;
points[5][0] = (((_parent._xmouse - xctr) / 1.5) - xOffset) + 65;
if (points[5][2] > 0) {
points[5][2] = 0;
} else if (points[5][2] < -195) {
points[5][2] = -195;
}
if (points[5][0] > 130) {
points[5][0] = 130;
} else if (points[5][0] < -130) {
points[5][0] = -130;
}
nz1 = points[5][2];
nx1 = points[5][0];
_parent.keep_inbounds("player1", points, dimx, dimz, size);
px = points[4][0] - vel[0];
pz = points[4][2] - vel[1];
puckPlayer1Detection();
if (collisionDetect) {
if (points[4][2] < 0) {
points[6][0] = points[6][0] + ((points[4][0] - points[6][0]) * k);
points[6][2] = points[6][2] + (((dimz / 2) - points[6][2]) * k);
} else if (points[6][2] < points[4][2]) {
if ((points[4][0] > 50) || (points[4][0] < -50)) {
points[6][0] = points[6][0] + (((points[4][0] / 10) - points[6][0]) * k);
points[6][2] = points[6][2] + (((dimz - size) - points[6][2]) * k);
}
if ((points[4][0] < 50) && (points[4][0] > -50)) {
points[6][0] = points[6][0] + (((-points[4][0]) - points[6][0]) * k);
points[6][2] = points[6][2] + (((dimz / 2) - points[6][2]) * k);
}
} else {
points[6][0] = points[6][0] + ((((points[4][0] + (points[4][0] * k)) - points[6][0]) * kk) * horizontalMagic);
points[6][2] = points[6][2] + (((points[4][2] - points[6][2]) * kk) * shotPower);
}
if (((((points[4][2] > 0) && (Math.floor(vel[0]) < 2)) && (Math.floor(vel[0]) > -2)) && (Math.floor(vel[1]) < 2)) && (Math.floor(vel[1]) > -2)) {
points[6][0] = points[6][0] + ((points[4][0] - points[6][0]) * kk);
points[6][2] = points[6][2] + (((points[4][2] + 20) - points[6][2]) * kk);
}
}
px = points[4][0] - vel[0];
pz = points[4][2] - vel[1];
pvx = vel[0] / fine_tune;
pvz = vel[1] / fine_tune;
var j = 0;
while (j < fine_tune) {
px = px + pvx;
pz = pz + pvz;
deltax = px - points[6][0];
deltaz = pz - points[6][2];
distance_squared = (deltax * deltax) + (deltaz * deltaz);
if ((distance_squared < size_squared) && (collisionDetect)) {
points[4][0] = px;
points[4][2] = pz;
_parent.collision("player2", "puck", mass_player, mass_puck, points, vel, ox2, oz2, nx1 - ox1, nz1 - oz1);
_parent.collision("player2", "puck", mass_player, mass_puck, points, vel, ox2, oz2, nx1 - ox1, nz1 - oz1);
break;
}
j++;
}
vel[0] = vel[0] - (vel[0] * loss);
vel[1] = vel[1] - (vel[1] * loss);
if (collisionDetect == false) {
points[4][0] = 0;
points[4][2] = 0;
}
wallDetection();
_parent.check_vel(vel);
_parent.draw_puck("puck", points, angle, D, xctr, yctr, size);
_parent.draw_puck("player1", points, angle, D, xctr, yctr, size);
_parent.draw_puck("player2", points, angle, D, xctr, yctr, size);
}
if (collisionDetect == false) {
_parent.puck2._visible = false;
delay++;
if ((delay == maxDelay) && (endofgame != true)) {
initialize();
}
if ((delay == endDelay) && (endofgame)) {
_parent._parent.gotoAndStop(whereToGo);
}
}
}
}
Instance of Symbol 271 MovieClip "circle" in Symbol 300 MovieClip Frame 1
onClipEvent (load) {
delay = 0;
}
onClipEvent (enterFrame) {
if (_name == "player2") {
if (_parent.puck.hitTest(this)) {
delay++;
if (delay >= 6) {
_parent.main.overLap = "yes";
delay = 0;
}
} else {
delay = 0;
}
}
}
Instance of Symbol 285 MovieClip "you" in Symbol 300 MovieClip Frame 1
onClipEvent (load) {
function party() {
which = random(2);
if (which == 0) {
run = party1;
} else {
run == party2;
}
}
function party1() {
var _local2 = this;
delay++;
if (delay == 5) {
delay = 0;
lights.unshift(lights.pop());
var _local1 = -1;
while (_local1++ , _local1 < 7) {
name = "s" + (_local1 + 1);
_local2[name].gotoAndStop(lights[_local1] + 1);
}
}
}
function party2() {
if (go) {
go = false;
s++;
this["s" + s].gotoAndStop(((this["s" + s]._currentFrame == 1) ? 2 : 1));
if (s == 7) {
s = 0;
}
} else {
go = true;
}
}
this.chars.gotoAndStop(_parent._parent.selection1);
run = null;
start = 0;
delay = 0;
lights = [1, 0, 0, 0, 0, 0, 0];
}
onClipEvent (enterFrame) {
run();
}
Instance of Symbol 294 MovieClip "opponent" in Symbol 300 MovieClip Frame 1
onClipEvent (load) {
function party() {
which = random(2);
if (which == 0) {
run = party1;
} else {
run == party2;
}
}
function party1() {
var _local2 = this;
delay++;
if (delay == 5) {
delay = 0;
lights.unshift(lights.pop());
var _local1 = -1;
while (_local1++ , _local1 < 7) {
name = "s" + (_local1 + 1);
_local2[name].gotoAndStop(lights[_local1] + 1);
}
}
}
function party2() {
if (go) {
go = false;
s++;
this["s" + s].gotoAndStop(((this["s" + s]._currentFrame == 1) ? 2 : 1));
if (s == 7) {
s = 0;
}
} else {
go = true;
}
}
this.chars.gotoAndStop(_parent._parent.selection2);
run = null;
start = 0;
delay = 0;
lights = [1, 0, 0, 0, 0, 0, 0];
}
onClipEvent (enterFrame) {
run();
}
Instance of Symbol 299 MovieClip "puck2" in Symbol 300 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(1000);
}
Symbol 302 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wxnume;
getURL (targetul3, "_blank");
}
Symbol 303 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wxnume;
getURL (targetul2, "_blank");
}
Symbol 304 Button
on (release) {
_parent.mainMenuFunction();
}
Symbol 305 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wxnume) + ".exe";
getURL (targetul1);
}
Symbol 306 Button
on (release, keyPress "p") {
_parent.pauseFunction();
}
Symbol 307 Button
on (release, keyPress "s") {
_parent.soundFunction();
}
Symbol 317 Button
on (release, keyPress "p") {
_parent.soundFunction();
}
Symbol 318 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 318 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 318 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 318 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 318 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 318 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 318 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 318 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 323 Button
on (press) {
_parent.play();
}
Symbol 326 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 326 MovieClip Frame 2
tg._x = 147;
tg._y = 1.1;
Symbol 326 MovieClip Frame 3
tg._x = 147;
tg._y = -174.9;
Symbol 326 MovieClip Frame 4
tg._x = 1.5;
tg._y = -174.9;
Symbol 326 MovieClip Frame 5
tg._x = 147;
tg._y = -152.4;
Symbol 326 MovieClip Frame 6
tg._x = 147;
tg._y = -128.9;
Symbol 326 MovieClip Frame 7
tg._x = 147;
tg._y = -104.9;
Symbol 326 MovieClip Frame 8
tg._x = 1.5;
tg._y = -151.4;
Symbol 326 MovieClip Frame 9
tg._x = 1.5;
tg._y = -128.4;
Symbol 326 MovieClip Frame 10
tg._x = 1.5;
tg._y = -104.9;
Symbol 345 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 346 MovieClip Frame 1
stop();
if ((_parent.wxaliniere == "Stanga-Sus") || (_parent.wxaliniere == "Dreapta-Sus")) {
this.gotoAndStop(2);
}
Symbol 347 MovieClip Frame 1
function pauseFunction() {
var _local1 = _root;
if (_local1.pause_flag == false) {
_local1.pause_flag = true;
_local1.buttons.pauza.gotoAndStop(2);
} else {
_local1.pause_flag = false;
_local1.buttons.pauza.gotoAndStop(1);
}
_local1.buttons.main.togglePause();
}
function soundFunction() {
var _local1 = _root;
if (_local1.sound_flag == false) {
_local1.sound_flag = true;
} else {
_local1.sound_flag = false;
}
_local1.soundToggle = (_local1.soundToggle ? false : true);
stopAllSounds();
}
function mainMenuFunction() {
_root.gotoAndStop("unu");
}
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 347 MovieClip Frame 10
stop();
Symbol 352 Button
on (release) {
this.gotoAndStop("splash");
}
Symbol 357 Button
on (release) {
continuing = false;
_root.gotoAndStop("splash");
}
Symbol 360 Button
on (release) {
_root.gotoAndStop("transition");
}