Combined Code
movieClip 19 mcDart {
frame 1 {
function main() {
if (step < 5) {
this._y -= 10;
++step;
} else {
this._y += 10;
this._xscale -= 8;
this._yscale -= 8;
++step;
}
gotoAndStop(step);
if (step > 10) {
play();
delete this.onEnterFrame;
}
}
stop();
x0 = this._x;
y0 = this._y;
scale = 100;
step = 0;
this.onEnterFrame = main;
}
frame 11 {
_parent.updateDarts();
}
frame 24 {
stop();
removeMovieClip(this);
}
}
frame 1 {
stop();
easyMode = false;
musicEnabled = true;
misses = 10;
onEnterFrame = function () {
if (_currentframe != 1) {
return undefined;
}
_bar.gotoAndStop(int(100 * getBytesLoaded() / getBytesTotal()));
if (getBytesLoaded() == getBytesTotal()) {
_fade.play();
}
};
}
// unknown tag 88 length 66
// unknown tag 88 length 63
movieClip 128 {
frame 100 {
stop();
}
}
movieClip 131 {
frame 1 {
useHandCursor = false;
onPress = function () {
trace('noButton');
};
}
}
movieClip 134 {
frame 1 {
stop();
}
frame 10 {
_parent.nextFrame();
}
}
frame 2 {
if (easyMode) {
_mode.gotoAndStop(1);
} else {
_mode.gotoAndStop(2);
}
galleryMode = false;
}
// unknown tag 88 length 64
button 143 {
on (press) {
_help.nextFrame();
}
}
button 145 {
on (press) {
gotoAndStop(3);
}
}
button 146 {
on (press) {
if (easyMode) {
easyMode = false;
_mode.gotoAndStop(2);
} else {
easyMode = true;
_mode.gotoAndStop(1);
}
}
}
// unknown tag 88 length 69
movieClip 152 {
frame 1 {
stop();
}
}
// unknown tag 88 length 69
movieClip 157 {
}
button 170 {
on (press) {
prevFrame();
}
}
movieClip 171 {
frame 1 {
stop();
}
}
movieClip 177 {
}
movieClip 181 {
}
movieClip 188 {
}
movieClip 191 {
}
movieClip 193 {
}
movieClip 208 {
frame 1 {
stop();
}
frame 15 {
stop();
}
}
button 210 {
on (press) {
if (_sight.zoning) {
if (throwing == false) {
throwing = true;
operate();
_sight.jumpout();
_textPanel2._throws.text = dartsCount;
n = String('mcDart' + dartsCount);
this.attachMovie('mcDart', n, this.getNextHighestDepth(), {'_x': staticX, '_y': staticY});
dart._xscale = 75;
dart._yscale = 75;
}
}
_sight.zoning = !_sight.zoning;
}
}
button 212 {
on (press) {
_parent.nextFrame();
}
}
movieClip 216 {
}
movieClip 218 {
frame 1 {
stop();
}
}
movieClip 222 {
}
movieClip 223 {
frame 1 {
stop();
}
}
movieClip 229 {
frame 1 {
stop();
}
}
movieClip 231 {
}
movieClip 233 {
frame 1 {
function jumpout() {
adj = 25 * leveladj;
if (angdir > 0) {
angdir = 0.1 * leveladj;
} else {
angdir = 0.1 * -leveladj;
}
if (rad < 0) {
rad = -maxrad;
} else {
rad = maxrad;
}
angdir *= -1;
}
function runanim() {
if (zoning) {
rad += adj / 1.6;
if (rad < -maxrad || rad > maxrad) {
adj *= -1;
rad += adj * 1;
}
} else {
ang += angdir;
}
y = Math.sin(ang) * rad;
x = Math.cos(ang) * rad;
this._x = x;
this._y = y;
}
this.onEnterFrame = runanim;
var leveladj = _parent.speed;
var ang = 0;
var maxrad = _parent.maxRadius;
var adj = 25 * leveladj;
var rad = maxrad;
var zoning = false;
var angdir = 0.1 * leveladj;
stop();
}
}
movieClip 238 {
}
movieClip 249 {
frame 1 {
stop();
gotoAndStop(_parent._parent._parent._currentframe);
}
}
movieClip 250 {
}
movieClip 251 {
frame 1 {
function checkSectors(cx, cy) {
quater = 0;
if (cx >= x0) {
quater = 1;
}
if (cx < x0) {
quater = 2;
}
a = Math.atan(x1 / y1) * 180 / Math.PI;
if (quater == 1) {
if (cy <= y0) {
if (a >= 0 and a < 45) {
activePart = 1;
}
if (a >= 45 and a < 90) {
activePart = 2;
}
} else {
if (a >= 45 and a < 90) {
activePart = 3;
}
if (a >= 0 and a < 45) {
activePart = 4;
}
}
} else {
if (cy >= y0) {
if (a >= 0 and a < 45) {
activePart = 5;
}
if (a >= 45 and a < 90) {
activePart = 6;
}
} else {
if (a >= 45 and a < 90) {
activePart = 7;
}
if (a >= 0 and a < 45) {
activePart = 8;
}
}
}
trace('part = ' + activePart);
}
function end() {
maskmc.play();
trace('end of round 1');
_bt._visible = false;
_sight._visible = false;
_borders._visible = false;
_nextBt._visible = true;
_centrum.gotoAndStop(3);
_textPanel._visible = false;
_textPanel2._visible = false;
}
function operate() {
++dartsCount;
staticX = _sight._x;
staticY = _sight._y;
x1 = Math.abs(Math.abs(staticX) - x0);
y1 = Math.abs(Math.abs(staticY) - y0);
a = Math.sqrt(x1 * x1 + y1 * y1);
if (a >= minRadius) {
checkSectors(staticX, staticY);
}
}
function checkMisses() {
if (_root.easyMode == false) {
trace('test' + _root.misses);
if (_root.misses > 0) {
--_root.misses;
_textPanel._misses.text = String(_root.misses);
trace('test' + _root.misses);
} else {
gameOver();
}
}
}
function updateDarts() {
if (activePart == 0) {
trace('center');
throwing = false;
if (dartsDone == parts) {
end();
} else {
checkMisses();
}
} else {
mc = eval('_p' + activePart);
if (mc._currentframe == 1) {
++dartsDone;
mc.nextFrame();
if (dartsDone == parts) {
_centrum.gotoAndStop(2);
}
} else {
--dartsDone;
mc.prevFrame();
_centrum.gotoAndStop(1);
checkMisses();
}
throwing = false;
activePart = 0;
}
}
function gameOver() {
trace('game over');
_bt._visible = false;
_sight._visible = false;
_borders._visible = false;
_centrum.gotoAndStop(3);
_textPanel._misses.text = '0';
i = 1;
while (i <= parts) {
(eval('_p' + i)).gotoAndStop(2);
++i;
}
_parent._gameOverPanel.play();
}
x0 = 0;
y0 = 0;
x1 = 0;
y1 = 0;
staticX = 0;
staticY = 0;
speed = 0.1;
dartsCount = 0;
throwing = false;
minRadius = 25;
maxRadius = 190;
parts = 8;
activePart = 0;
dartsDone = 0;
if (_root.easyMode) {
speed = 0.7;
_textPanel._visible = false;
} else {
speed = 0.85;
}
_textPanel._misses.text = _root.misses;
_nextBt._visible = false;
}
}
button 255 {
on (press) {
if (_root.musicEnabled) {
_root.musicEnabled = false;
gotoAndStop(2);
stopAllSounds();
} else {
_root.musicEnabled = true;
gotoAndStop(1);
_musicBox.gameMusic();
}
}
}
// unknown tag 88 length 61
movieClip 264 {
frame 1 {
function gameMusic() {
if (_root.musicEnabled) {
gotoAndStop(2);
}
}
if (!_root.musicEnabled) {
stop();
}
}
frame 2 {
gotoAndStop(1);
}
}
movieClip 267 {
frame 1 {
if (_root.musicEnabled) {
stop();
}
}
frame 2 {
stop();
}
}
button 281 {
on (press) {
stopAllSounds();
_root.misses = 10;
_root.gotoAndStop(2);
}
}
button 286 {
on (press) {
_root.misses = 10;
_parent._parent.gotoAndStop(_parent.part);
_parent.gotoAndStop(1);
}
}
button 288 {
on (press) {
trace('_root.easyMode:' + _root.easyMode);
if (_root.easyMode) {
_root.easyMode = false;
_mode.gotoAndStop(2);
trace(1);
} else {
_root.easyMode = true;
_mode.gotoAndStop(1);
trace(2);
}
}
}
movieClip 291 {
frame 1 {
stop();
}
}
movieClip 293 {
frame 1 {
if (_root.easyMode == false) {
_mode.gotoAndStop(2);
}
}
}
movieClip 294 {
frame 1 {
stop();
}
frame 5 {
part = _parent._currentframe;
_parent.gotoAndStop(7);
}
frame 23 {
stop();
}
}
movieClip 297 {
frame 23 {
gotoAndPlay(27);
}
}
button 298 {
on (press) {
if (_sight.zoning) {
if (throwing == false) {
throwing = true;
operate();
_sight.jumpout();
_textPanel2._throws.text = dartsCount;
n = String('mcDart' + dartsCount);
this.attachMovie('mcDart', n, this.getNextHighestDepth(), {'_x': staticX, '_y': staticY});
dart._xscale = 75;
dart._yscale = 75;
}
}
_sight.zoning = !_sight.zoning;
}
}
movieClip 302 {
frame 1 {
stop();
}
}
movieClip 303 {
frame 1 {
stop();
}
}
movieClip 308 {
frame 1 {
stop();
}
}
movieClip 310 {
}
movieClip 311 {
frame 1 {
function checkSectors(cx, cy) {
quater = 0;
if (cx >= x0) {
quater = 1;
}
if (cx < x0) {
quater = 2;
}
a = Math.atan(x1 / y1) * 180 / Math.PI;
if (quater == 1) {
if (cy <= y0) {
if (a >= 0 and a < 36) {
activePart = 1;
}
if (a >= 36 and a < 72) {
activePart = 2;
}
if (a >= 72 and a < 90) {
activePart = 3;
}
} else {
if (a >= 72 and a < 90) {
activePart = 3;
}
if (a >= 36 and a < 72) {
activePart = 4;
}
if (a >= 0 and a < 36) {
activePart = 5;
}
}
} else {
if (cy >= y0) {
if (a >= 0 and a < 36) {
activePart = 6;
}
if (a >= 36 and a < 72) {
activePart = 7;
}
if (a >= 72 and a < 90) {
activePart = 8;
}
} else {
if (a >= 72 and a < 90) {
activePart = 8;
}
if (a >= 36 and a < 72) {
activePart = 9;
}
if (a >= 0 and a < 36) {
activePart = 10;
}
}
}
trace('part = ' + activePart);
}
function end() {
maskmc.play();
trace('end of round 1');
_bt._visible = false;
_sight._visible = false;
_borders._visible = false;
_nextBt._visible = true;
_centrum.gotoAndStop(3);
_textPanel._visible = false;
_textPanel2._visible = false;
}
function operate() {
++dartsCount;
staticX = _sight._x;
staticY = _sight._y;
x1 = Math.abs(Math.abs(staticX) - x0);
y1 = Math.abs(Math.abs(staticY) - y0);
a = Math.sqrt(x1 * x1 + y1 * y1);
if (a >= minRadius) {
checkSectors(staticX, staticY);
}
}
function checkMisses() {
if (_root.easyMode == false) {
trace('test' + _root.misses);
if (_root.misses > 0) {
--_root.misses;
_textPanel._misses.text = String(_root.misses);
trace('test' + _root.misses);
} else {
gameOver();
}
}
}
function updateDarts() {
if (activePart == 0) {
trace('center');
throwing = false;
if (dartsDone == parts) {
end();
} else {
checkMisses();
}
} else {
mc = eval('_p' + activePart);
if (mc._currentframe == 1) {
++dartsDone;
mc.nextFrame();
if (dartsDone == parts) {
_centrum.gotoAndStop(2);
}
} else {
--dartsDone;
mc.prevFrame();
_centrum.gotoAndStop(1);
checkMisses();
}
throwing = false;
activePart = 0;
}
}
function gameOver() {
trace('game over');
_bt._visible = false;
_sight._visible = false;
_borders._visible = false;
_centrum.gotoAndStop(3);
_textPanel._misses.text = '0';
i = 1;
while (i <= parts) {
(eval('_p' + i)).gotoAndStop(2);
++i;
}
_parent._gameOverPanel.play();
}
x0 = 0;
y0 = 0;
x1 = 0;
y1 = 0;
staticX = 0;
staticY = 0;
speed = 0.1;
dartsCount = 0;
throwing = false;
minRadius = 22.5;
maxRadius = 190;
parts = 10;
activePart = 0;
dartsDone = 0;
if (_root.easyMode) {
speed = 0.75;
_textPanel._visible = false;
} else {
speed = 0.9;
}
_textPanel._misses.text = _root.misses;
_nextBt._visible = false;
}
}
movieClip 314 {
}
movieClip 317 {
frame 1 {
stop();
}
}
movieClip 318 {
frame 1 {
stop();
}
}
movieClip 320 {
}
movieClip 321 {
frame 1 {
function checkSectors(cx, cy) {
quater = 0;
if (cx >= x0) {
quater = 1;
}
if (cx < x0) {
quater = 2;
}
a = Math.atan(x1 / y1) * 180 / Math.PI;
if (quater == 1) {
if (cy <= y0) {
if (a >= 0 and a < 30) {
activePart = 1;
}
if (a >= 30 and a < 60) {
activePart = 2;
}
if (a >= 60 and a < 90) {
activePart = 3;
}
} else {
if (a >= 60 and a < 90) {
activePart = 4;
}
if (a >= 30 and a < 60) {
activePart = 5;
}
if (a >= 0 and a < 30) {
activePart = 6;
}
}
} else {
if (cy >= y0) {
if (a >= 0 and a < 30) {
activePart = 7;
}
if (a >= 30 and a < 60) {
activePart = 8;
}
if (a >= 60 and a < 90) {
activePart = 9;
}
} else {
if (a >= 60 and a < 90) {
activePart = 10;
}
if (a >= 30 and a < 60) {
activePart = 11;
}
if (a >= 0 and a < 30) {
activePart = 12;
}
}
}
trace('part = ' + activePart);
}
function end() {
maskmc.play();
trace('end of round 1');
_bt._visible = false;
_sight._visible = false;
_borders._visible = false;
_nextBt._visible = true;
_centrum.gotoAndStop(3);
_textPanel._visible = false;
_textPanel2._visible = false;
}
function operate() {
++dartsCount;
staticX = _sight._x;
staticY = _sight._y;
x1 = Math.abs(Math.abs(staticX) - x0);
y1 = Math.abs(Math.abs(staticY) - y0);
a = Math.sqrt(x1 * x1 + y1 * y1);
if (a >= minRadius) {
checkSectors(staticX, staticY);
}
}
function checkMisses() {
if (_root.easyMode == false) {
trace('test' + _root.misses);
if (_root.misses > 0) {
--_root.misses;
_textPanel._misses.text = String(_root.misses);
trace('test' + _root.misses);
} else {
gameOver();
}
}
}
function updateDarts() {
if (activePart == 0) {
trace('center');
throwing = false;
if (dartsDone == parts) {
end();
} else {
checkMisses();
}
} else {
mc = eval('_p' + activePart);
if (mc._currentframe == 1) {
++dartsDone;
mc.nextFrame();
if (dartsDone == parts) {
_centrum.gotoAndStop(2);
}
} else {
--dartsDone;
mc.prevFrame();
_centrum.gotoAndStop(1);
checkMisses();
}
throwing = false;
activePart = 0;
}
}
function gameOver() {
trace('game over');
_bt._visible = false;
_sight._visible = false;
_borders._visible = false;
_centrum.gotoAndStop(3);
_textPanel._misses.text = '0';
i = 1;
while (i <= parts) {
(eval('_p' + i)).gotoAndStop(2);
++i;
}
_parent._gameOverPanel.play();
}
x0 = 0;
y0 = 0;
x1 = 0;
y1 = 0;
staticX = 0;
staticY = 0;
speed = 0.1;
dartsCount = 0;
throwing = false;
minRadius = 22.5;
maxRadius = 190;
parts = 12;
activePart = 0;
dartsDone = 0;
if (_root.easyMode) {
speed = 0.8;
_textPanel._visible = false;
} else {
speed = 0.95;
}
_textPanel._misses.text = _root.misses;
_nextBt._visible = false;
}
}
movieClip 324 {
frame 314 {
gotoAndPlay(317);
}
}
movieClip 327 {
frame 1 {
stop();
}
}
movieClip 328 {
frame 1 {
stop();
}
}
movieClip 332 {
frame 1 {
stop();
}
}
movieClip 334 {
}
movieClip 335 {
frame 1 {
function checkSectors(cx, cy) {
quater = 0;
if (cx >= x0) {
quater = 1;
}
if (cx < x0) {
quater = 2;
}
a = Math.atan(x1 / y1) * 180 / Math.PI;
if (quater == 1) {
if (cy <= y0) {
if (a >= 0 and a < 22.5) {
activePart = 1;
}
if (a >= 22.5 and a < 45) {
activePart = 2;
}
if (a >= 45 and a < 67.5) {
activePart = 3;
}
if (a >= 67.5 and a < 90) {
activePart = 4;
}
} else {
if (a >= 67.5 and a < 90) {
activePart = 5;
}
if (a >= 45 and a < 67.5) {
activePart = 6;
}
if (a >= 22.5 and a < 45) {
activePart = 7;
}
if (a >= 0 and a < 22.5) {
activePart = 8;
}
}
} else {
if (cy >= y0) {
if (a >= 0 and a < 22.5) {
activePart = 9;
}
if (a >= 22.5 and a < 45) {
activePart = 10;
}
if (a >= 45 and a < 67.5) {
activePart = 11;
}
if (a >= 67.5 and a < 90) {
activePart = 12;
}
} else {
if (a >= 67.5 and a < 90) {
activePart = 13;
}
if (a >= 45 and a < 67.5) {
activePart = 14;
}
if (a >= 22.5 and a < 45) {
activePart = 15;
}
if (a >= 0 and a < 22.5) {
activePart = 16;
}
}
}
trace('part = ' + activePart);
}
function end() {
maskmc.play();
trace('end of round 1');
_bt._visible = false;
_sight._visible = false;
_borders._visible = false;
_nextBt._visible = true;
_centrum.gotoAndStop(3);
_textPanel._visible = false;
_textPanel2._visible = false;
}
function operate() {
++dartsCount;
staticX = _sight._x;
staticY = _sight._y;
x1 = Math.abs(Math.abs(staticX) - x0);
y1 = Math.abs(Math.abs(staticY) - y0);
a = Math.sqrt(x1 * x1 + y1 * y1);
if (a >= minRadius) {
checkSectors(staticX, staticY);
}
}
function checkMisses() {
if (_root.easyMode == false) {
trace('test' + _root.misses);
if (_root.misses > 0) {
--_root.misses;
_textPanel._misses.text = String(_root.misses);
trace('test' + _root.misses);
} else {
gameOver();
}
}
}
function updateDarts() {
if (activePart == 0) {
trace('center');
throwing = false;
if (dartsDone == parts) {
end();
} else {
checkMisses();
}
} else {
mc = eval('_p' + activePart);
if (mc._currentframe == 1) {
++dartsDone;
mc.nextFrame();
if (dartsDone == parts) {
_centrum.gotoAndStop(2);
}
} else {
--dartsDone;
mc.prevFrame();
_centrum.gotoAndStop(1);
checkMisses();
}
throwing = false;
activePart = 0;
}
}
function gameOver() {
trace('game over');
_bt._visible = false;
_sight._visible = false;
_borders._visible = false;
_centrum.gotoAndStop(3);
_textPanel._misses.text = '0';
i = 1;
while (i <= parts) {
(eval('_p' + i)).gotoAndStop(2);
++i;
}
_parent._gameOverPanel.play();
}
x0 = 0;
y0 = 0;
x1 = 0;
y1 = 0;
staticX = 0;
staticY = 0;
speed = 0.1;
dartsCount = 0;
throwing = false;
minRadius = 20;
maxRadius = 190;
parts = 16;
activePart = 0;
dartsDone = 0;
if (_root.easyMode) {
speed = 0.85;
_textPanel._visible = false;
} else {
speed = 1;
}
_textPanel._misses.text = _root.misses;
_nextBt._visible = false;
}
}
movieClip 338 {
frame 479 {
gotoAndPlay(483);
}
}
movieClip 341 {
frame 1 {
stop();
}
}
movieClip 342 {
frame 1 {
stop();
}
}
movieClip 344 {
}
movieClip 345 {
frame 1 {
function checkSectors(cx, cy) {
quater = 0;
if (cx >= x0) {
quater = 1;
}
if (cx < x0) {
quater = 2;
}
a = Math.atan(x1 / y1) * 180 / Math.PI;
trace('quater = ' + quater);
trace('angle = ' + a);
if (quater == 1) {
if (cy <= y0) {
if (a >= 0 and a < 20) {
activePart = 1;
}
if (a >= 20 and a < 40) {
activePart = 2;
}
if (a >= 40 and a < 60) {
activePart = 3;
}
if (a >= 60 and a < 80) {
activePart = 4;
}
if (a >= 80 and a < 90) {
activePart = 5;
}
} else {
if (a >= 80 and a < 90) {
activePart = 5;
}
if (a >= 60 and a < 80) {
activePart = 6;
}
if (a >= 40 and a < 60) {
activePart = 7;
}
if (a >= 20 and a < 40) {
activePart = 8;
}
if (a >= 0 and a < 20) {
activePart = 9;
}
}
} else {
if (cy >= y0) {
if (a >= 0 and a < 20) {
activePart = 10;
}
if (a >= 20 and a < 40) {
activePart = 11;
}
if (a >= 40 and a < 60) {
activePart = 12;
}
if (a >= 60 and a < 80) {
activePart = 13;
}
if (a >= 80 and a < 90) {
activePart = 14;
}
} else {
if (a >= 80 and a < 90) {
activePart = 14;
}
if (a >= 60 and a < 80) {
activePart = 15;
}
if (a >= 40 and a < 60) {
activePart = 16;
}
if (a >= 20 and a < 40) {
activePart = 17;
}
if (a >= 0 and a < 20) {
activePart = 18;
}
}
}
trace('part = ' + activePart);
}
function end() {
maskmc.play();
trace('end of round 1');
_bt._visible = false;
_sight._visible = false;
_borders._visible = false;
_nextBt._visible = true;
_centrum.gotoAndStop(3);
_textPanel._visible = false;
_textPanel2._visible = false;
}
function operate() {
++dartsCount;
staticX = _sight._x;
staticY = _sight._y;
x1 = Math.abs(Math.abs(staticX) - x0);
y1 = Math.abs(Math.abs(staticY) - y0);
a = Math.sqrt(x1 * x1 + y1 * y1);
if (a >= minRadius) {
checkSectors(staticX, staticY);
}
}
function checkMisses() {
if (_root.easyMode == false) {
trace('test' + _root.misses);
if (_root.misses > 0) {
--_root.misses;
_textPanel._misses.text = String(_root.misses);
trace('test' + _root.misses);
} else {
gameOver();
}
}
}
function updateDarts() {
if (activePart == 0) {
trace('center');
throwing = false;
if (dartsDone == parts) {
end();
} else {
checkMisses();
}
} else {
mc = eval('_p' + activePart);
if (mc._currentframe == 1) {
++dartsDone;
mc.nextFrame();
if (dartsDone == parts) {
_centrum.gotoAndStop(2);
}
} else {
--dartsDone;
mc.prevFrame();
_centrum.gotoAndStop(1);
checkMisses();
}
throwing = false;
activePart = 0;
}
}
function gameOver() {
trace('game over');
_bt._visible = false;
_sight._visible = false;
_borders._visible = false;
_centrum.gotoAndStop(3);
_textPanel._misses.text = '0';
i = 1;
while (i <= parts) {
(eval('_p' + i)).gotoAndStop(2);
++i;
}
_parent._gameOverPanel.play();
}
x0 = 0;
y0 = 0;
x1 = 0;
y1 = 0;
staticX = 0;
staticY = 0;
speed = 0.1;
dartsCount = 0;
throwing = false;
minRadius = 20;
maxRadius = 190;
parts = 18;
activePart = 0;
dartsDone = 0;
if (_root.easyMode) {
speed = 0.95;
_textPanel._visible = false;
} else {
speed = 1.1;
}
_textPanel._misses.text = _root.misses;
_nextBt._visible = false;
}
}
movieClip 348 {
}
button 349 {
on (press) {
_parent.gotoAndStop(8);
}
}
movieClip 352 {
frame 1 {
stop();
}
}
movieClip 353 {
frame 1 {
stop();
}
}
movieClip 357 {
frame 1 {
stop();
}
}
movieClip 359 {
}
movieClip 360 {
frame 1 {
function checkSectors(cx, cy) {
quater = 0;
if (cx >= x0) {
quater = 1;
}
if (cx < x0) {
quater = 2;
}
a = Math.atan(x1 / y1) * 180 / Math.PI;
trace('quater = ' + quater);
trace('angle = ' + a);
if (quater == 1) {
if (cy <= y0) {
if (a >= 0 and a < 18) {
activePart = 1;
}
if (a >= 18 and a < 36) {
activePart = 2;
}
if (a >= 36 and a < 54) {
activePart = 3;
}
if (a >= 54 and a < 72) {
activePart = 4;
}
if (a >= 72 and a <= 90) {
activePart = 5;
}
} else {
if (a >= 72 and a < 90) {
activePart = 6;
}
if (a >= 54 and a < 72) {
activePart = 7;
}
if (a >= 36 and a < 54) {
activePart = 8;
}
if (a >= 18 and a < 36) {
activePart = 9;
}
if (a >= 0 and a < 18) {
activePart = 10;
}
}
} else {
if (cy >= y0) {
if (a >= 0 and a < 18) {
activePart = 11;
}
if (a >= 18 and a < 36) {
activePart = 12;
}
if (a >= 36 and a < 54) {
activePart = 13;
}
if (a >= 54 and a < 72) {
activePart = 14;
}
if (a >= 72 and a <= 90) {
activePart = 15;
}
} else {
if (a >= 72 and a < 90) {
activePart = 16;
}
if (a >= 54 and a < 72) {
activePart = 17;
}
if (a >= 36 and a < 54) {
activePart = 18;
}
if (a >= 18 and a < 36) {
activePart = 19;
}
if (a >= 0 and a < 18) {
activePart = 20;
}
}
}
trace('part = ' + activePart);
}
function end() {
maskmc.play();
trace('end of round 1');
_bt._visible = false;
_sight._visible = false;
_borders._visible = false;
_nextBt._visible = true;
_centrum.gotoAndStop(3);
_textPanel._visible = false;
_textPanel2._visible = false;
}
function operate() {
++dartsCount;
staticX = _sight._x;
staticY = _sight._y;
x1 = Math.abs(Math.abs(staticX) - x0);
y1 = Math.abs(Math.abs(staticY) - y0);
a = Math.sqrt(x1 * x1 + y1 * y1);
if (a >= minRadius) {
checkSectors(staticX, staticY);
}
}
function checkMisses() {
if (_root.easyMode == false) {
trace('test' + _root.misses);
if (_root.misses > 0) {
--_root.misses;
_textPanel._misses.text = String(_root.misses);
trace('test' + _root.misses);
} else {
gameOver();
}
}
}
function updateDarts() {
if (activePart == 0) {
trace('center');
throwing = false;
if (dartsDone == parts) {
end();
} else {
checkMisses();
}
} else {
mc = eval('_p' + activePart);
if (mc._currentframe == 1) {
++dartsDone;
mc.nextFrame();
if (dartsDone == parts) {
_centrum.gotoAndStop(2);
}
} else {
--dartsDone;
mc.prevFrame();
_centrum.gotoAndStop(1);
checkMisses();
}
throwing = false;
activePart = 0;
}
}
function gameOver() {
trace('game over');
_bt._visible = false;
_sight._visible = false;
_borders._visible = false;
_centrum.gotoAndStop(3);
_textPanel._misses.text = '0';
i = 1;
while (i <= parts) {
(eval('_p' + i)).gotoAndStop(2);
++i;
}
_parent._gameOverPanel.play();
}
x0 = 0;
y0 = 0;
x1 = 0;
y1 = 0;
staticX = 0;
staticY = 0;
speed = 0.1;
dartsCount = 0;
throwing = false;
minRadius = 17.5;
maxRadius = 190;
parts = 20;
activePart = 0;
dartsDone = 0;
if (_root.easyMode) {
speed = 1.05;
_textPanel._visible = false;
} else {
speed = 1.2;
}
_textPanel._misses.text = _root.misses;
_nextBt._visible = false;
}
}
movieClip 368 {
frame 15 {
stop();
}
}
// unknown tag 88 length 65
// unknown tag 88 length 60
button 379 {
on (press) {
if (this._currentframe > 1) {
this.prevFrame();
}
}
}
button 384 {
on (press) {
if (this._currentframe < 6) {
this.nextFrame();
}
}
}
movieClip 386 {
frame 1 {
stop();
}
frame 6 {
_adsBt._visible = true;
}
}
movieClip 391 {
frame 1 {
stop();
}
}
movieClip 396 {
frame 1 {
stop();
}
}
button 398 {
on (rollOver) {
mc1.gotoAndStop(2);
}
on (rollOut) {
mc1.gotoAndStop(1);
}
on (releaseOutside) {
mc1.gotoAndStop(1);
}
on (press) {
getURL('http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=939775-0000&PA=2012352&BAN=0', '_blank');
}
}
button 399 {
on (rollOver) {
mc2.gotoAndStop(2);
}
on (rollOut) {
mc2.gotoAndStop(1);
}
on (releaseOutside) {
mc2.gotoAndStop(1);
}
on (press) {
getURL('http://affiliates.lifeselector.com/track/MTU1MS4zLjMuMy4wLjAuMC4wLjA', '_blank');
}
}
movieClip 401 {
}
movieClip 402 {
frame 1 {
stop();
}
frame 8 {
_gallery._adsBt._visible = false;
}
}