Frame 1
if (false) {
}
Frame 3
function playAgain() {
_root.gameScore = 0;
_root.lvlScore = 0;
_root.bonus = false;
_root.bonus2 = false;
if (_root.gameCompleted) {
_root.gameCompleted = false;
_root.lvl = 0;
_root.gotoAndStop("lblgame");
} else {
str = "lvl" + _root.lvl;
_root.lvl--;
_root.gotoAndStop(str);
}
}
var cnt;
var arr;
var lvl = 0;
var bonusStart = false;
var bonus;
var bonus2;
var select;
var gameCompleted = false;
var gameScore = 0;
var lvlScore = 0;
var sndSteelHit = new Sound();
sndSteelHit.attachSound("sndSteelHit");
var sndRubberBounce = new Sound();
sndRubberBounce.attachSound("sndRubberBounce");
var sndBG = new Sound();
sndBG.attachSound("sndBG");
var sndGal = new Sound();
sndGal.attachSound("sndGal");
System.security.allowDomain("shockwave.com", "intranet.shockwave.com", "games2win.com", "gameblast.shockwave.com", "www.shockwave.com", "dev.shockwave.com", "stage.shockwave.com", "agstage.shockwave.com");
_level0.swHighScoreObject = new Object();
_level0.swHighScoreObject.showTab = "view";
_level0.swHighScoreObject.gameId = "heartbreaker";
_level0.swHighScoreObject.gameTitle = "Heart Breaker";
_level0.swHighScoreObject.screenWidth = 783;
_level0.swHighScoreObject.screenHeight = 450;
_level0.swHighScoreObject.scoreDescriptor = "points";
_level0.swHighScoreObject.numPlayers = 1;
_level0.swHighScoreObject.player1Score = 0;
_level0.swHighScoreObject.player2Score = 0;
_level0.swHighScoreObject.player3Score = 0;
_level0.swHighScoreObject.player4Score = 0;
_level0.HSHubURL = "http://www.shockwave.com/content/highscores/scorez-2002.swf";
Frame 6
stop();
Frame 7
this.onEnterFrame = function () {
percent = Math.round((this.getBytesLoaded() / this.getBytesTotal()) * 100);
loaderBar.gotoAndStop(percent);
if (percent >= 99) {
play();
delete this.onEnterFrame;
} else {
stop();
}
};
stop();
Frame 8
stop();
sndBG.start(0, 9999);
btnSkip.onRelease = function () {
_root.gotoAndStop("lblgame");
};
Instance of Symbol 119 MovieClip in Frame 8
on (release) {
this.gotoAndPlay(_currentframe + 1);
}
Frame 9
stop();
btnStory.onRelease = function () {
_root.gotoAndStop("story");
};
btnStart.onRelease = function () {
_root.select = false;
_root.gameCompleted = false;
_root.gameScore = 0;
_root.lvlScore = 0;
_root.lvl = 0;
_root.gotoAndStop("lvl1");
};
btnHow.onRelease = function () {
_root.gotoAndStop("instruction");
};
_root.gotoAndPlay("lblgame");
stop();
Frame 10
stop();
btnStart.onRelease = function () {
_root.select = false;
_root.gameCompleted = false;
_root.gameScore = 0;
_root.lvlScore = 0;
_root.lvl = 0;
_root.gotoAndStop("lvl1");
};
btnBack.onRelease = function () {
_root.gotoAndStop("lblgame");
};
Frame 11
stop();
btnStart.onRelease = function () {
_root.select = false;
_root.gameCompleted = false;
_root.gameScore = 0;
_root.lvlScore = 0;
_root.lvl = 0;
_root.gotoAndStop("lvl1");
};
btnBack.onRelease = function () {
_root.gotoAndStop("lblgame");
};
Frame 12
var g;
var vx;
var vy;
var xshift = 79.3;
var yshift = -9.7;
var dshift;
var pressed;
var increase;
var shoot;
var angle;
var stuck;
var radians;
var timer;
back.useHandCursor = false;
init = function () {
_root.cnt = 8;
_root.lvl = 1;
_root.bonus = false;
_root.arr = 4;
hearts.gotoAndStop(2);
_root.txtTarget.text = _root.cnt;
_root.txtHits.text = 0;
dshift = Math.sqrt((xshift * xshift) + (yshift * yshift));
v = 0;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
increase = true;
pressed = false;
shoot = false;
timer = setInterval(this, "bonusLvl", 15000);
_root.bonus2 = true;
};
bonusLvl = function () {
_root.bonus2 = false;
};
this.onEnterFrame = function () {
if (_root.lvl < 1) {
init();
}
arrMC.gotoAndStop(_root.arr + 1);
if (girl._x > 650) {
girl._x = -300;
}
girl._x++;
_root.txtLvlScore.text = _root.lvlScore;
if (pressed) {
if (increase) {
hand.meter.gotoAndStop(hand.meter._currentframe + 1);
if (hand.meter._currentframe >= 50) {
increase = false;
}
} else {
hand.meter.gotoAndStop(hand.meter._currentframe - 1);
if (hand.meter._currentframe <= 1) {
increase = true;
}
}
}
handRotation();
arrMotion();
};
lvlLost = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("gameOver");
};
lvlWon = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("lblScore");
};
back.onRelease = function () {
if (shoot || (!pressed)) {
return(undefined);
}
pressed = false;
v = hand.meter._currentframe;
angle = radians;
g = 0.7;
w = 0;
vx = v * Math.cos(angle);
vy = v * Math.sin(angle);
ball._x = hand._x + (dshift * Math.cos(angle));
ball._y = hand._y + (dshift * Math.sin(angle));
trace((hand._x + " fdg ") + hand._y);
trace((ball._x + " fdg ") + ball._y);
hand.arr._visible = false;
ball._rotation = hand._rotation;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
_root.arr--;
shoot = true;
};
back.onPress = function () {
if (shoot) {
return(undefined);
}
pressed = true;
hand.meter._visible = true;
};
handRotation = function () {
var _local3 = _xmouse - hand._x;
var _local2 = _ymouse - hand._y;
radians = Math.atan2(_local2, _local3);
var _local1 = (radians * 180) / Math.PI;
if (_local1 < -100) {
_local1 = -100;
}
if (_local1 > 90) {
_local1 = 90;
}
hand._rotation = _local1;
};
arrMotion = function () {
if (stuck) {
return(undefined);
}
rot = (Math.atan2(vy, vx) * 180) / Math.PI;
ball._rotation = rot;
ball._x = ball._x + vx;
ball._y = ball._y + vy;
vy = vy + g;
if (((ball._y > 500) || (ball._x < -50)) || (ball._x > 800)) {
trace("arrow x " + ball._x);
trace("arrow y " + ball._y);
if (_root.cnt <= 0) {
lvlWon();
} else if (_root.arr <= 0) {
lvlLost();
}
v = 0;
shoot = false;
hand.arr._visible = true;
}
};
stop();
Instance of Symbol 273 MovieClip "hand" in Frame 12
/* no clip actions */
Frame 13
stop();
btnNext.onRelease = function () {
str = "lvl" + (_root.lvl + 1);
_root.gotoAndStop(str);
};
this.onEnterFrame = function () {
_root.gameScore = _root.gameScore + _root.lvlScore;
_root.lvlScore = 0;
txtScore.text = _root.gameScore;
_root.txtHits._visible = true;
_root.txtTarget._visible = true;
_root.txtLvlScore._visible = true;
_root.hits._visible = true;
_root.score._visible = true;
_root.target._visible = true;
timerMC._visible = true;
arrMC._visible = true;
};
Frame 14
var g;
var vx;
var vy;
var xshift = 79.3;
var yshift = -9.7;
var dshift;
var pressed;
var increase;
var shoot;
var angle;
var stuck;
var radians;
var timer;
back.useHandCursor = false;
init = function () {
_root.cnt = 8;
_root.lvl = 2;
_root.bonus = false;
_root.arr = 3;
hearts.gotoAndStop(2);
_root.txtTarget.text = _root.cnt;
_root.txtHits.text = 0;
dshift = Math.sqrt((xshift * xshift) + (yshift * yshift));
hand.meter.gotoAndStop(1);
v = 0;
trace("meter.currentframe " + hand.meter._currentframe);
hand.meter._visible = false;
increase = true;
pressed = false;
shoot = false;
timer = setInterval(this, "bonusLvl", 15000);
_root.bonus2 = true;
};
bonusLvl = function () {
_root.bonus2 = false;
};
this.onEnterFrame = function () {
trace("meter.currentframe " + hand.meter._currentframe);
if (_root.lvl < 2) {
init();
}
arrMC.gotoAndStop(_root.arr + 1);
if (girl._x > 650) {
girl._x = -300;
}
girl._x++;
_root.txtLvlScore.text = _root.lvlScore;
if (pressed) {
if (increase) {
hand.meter.gotoAndStop(hand.meter._currentframe + 1);
if (hand.meter._currentframe >= 50) {
increase = false;
}
} else {
hand.meter.gotoAndStop(hand.meter._currentframe - 1);
if (hand.meter._currentframe <= 1) {
increase = true;
}
}
}
handRotation();
arrMotion();
};
lvlLost = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("gameOver");
};
lvlWon = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("lblScore");
};
back.onRelease = function () {
if (shoot || (!pressed)) {
return(undefined);
}
pressed = false;
v = hand.meter._currentframe;
angle = radians;
g = 0.7;
w = 0;
vx = v * Math.cos(angle);
vy = v * Math.sin(angle);
ball._x = hand._x + (dshift * Math.cos(angle));
ball._y = hand._y + (dshift * Math.sin(angle));
trace((hand._x + " fdg ") + hand._y);
trace((ball._x + " fdg ") + ball._y);
hand.arr._visible = false;
ball._rotation = hand._rotation;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
_root.arr--;
shoot = true;
};
back.onPress = function () {
if (shoot) {
return(undefined);
}
pressed = true;
hand.meter._visible = true;
};
handRotation = function () {
var _local3 = _xmouse - hand._x;
var _local2 = _ymouse - hand._y;
radians = Math.atan2(_local2, _local3);
var _local1 = (radians * 180) / Math.PI;
if (_local1 < -100) {
_local1 = -100;
}
if (_local1 > 90) {
_local1 = 90;
}
hand._rotation = _local1;
};
arrMotion = function () {
if (stuck) {
return(undefined);
}
rot = (Math.atan2(vy, vx) * 180) / Math.PI;
ball._rotation = rot;
ball._x = ball._x + vx;
ball._y = ball._y + vy;
vy = vy + g;
if (((ball._y > 500) || (ball._x < -50)) || (ball._x > 800)) {
if (_root.cnt <= 0) {
lvlWon();
} else if (_root.arr <= 0) {
lvlLost();
}
v = 0;
shoot = false;
hand.arr._visible = true;
}
};
stop();
Frame 15
var g;
var vx;
var vy;
var xshift = 79.3;
var yshift = -9.7;
var dshift;
var pressed;
var increase;
var shoot;
var angle;
var stuck;
var radians;
var timer;
back.useHandCursor = false;
init = function () {
_root.cnt = 5;
_root.lvl = 3;
_root.bonus = false;
_root.arr = 3;
hearts.gotoAndStop(2);
_root.txtTarget.text = _root.cnt;
_root.txtHits.text = 0;
dshift = Math.sqrt((xshift * xshift) + (yshift * yshift));
v = 0;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
increase = true;
pressed = false;
shoot = false;
timer = setInterval(this, "bonusLvl", 15000);
_root.bonus2 = true;
};
bonusLvl = function () {
_root.bonus2 = false;
};
this.onEnterFrame = function () {
if (_root.lvl < 3) {
init();
}
arrMC.gotoAndStop(_root.arr + 1);
if (girl._x > 650) {
girl._x = -300;
}
girl._x++;
_root.txtLvlScore.text = _root.lvlScore;
if (pressed) {
if (increase) {
hand.meter.gotoAndStop(hand.meter._currentframe + 1);
if (hand.meter._currentframe >= 50) {
increase = false;
}
} else {
hand.meter.gotoAndStop(hand.meter._currentframe - 1);
if (hand.meter._currentframe <= 1) {
increase = true;
}
}
}
handRotation();
arrMotion();
};
lvlLost = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("gameOver");
};
lvlWon = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
if (!_root.select) {
_root.bonus = true;
_root.bonus2 = true;
_root.gotoAndStop("bonus");
} else {
_root.gotoAndStop("lblScore");
}
};
back.onRelease = function () {
if (shoot || (!pressed)) {
return(undefined);
}
pressed = false;
v = hand.meter._currentframe;
angle = radians;
g = 0.7;
w = 0;
vx = v * Math.cos(angle);
vy = v * Math.sin(angle);
ball._x = hand._x + (dshift * Math.cos(angle));
ball._y = hand._y + (dshift * Math.sin(angle));
trace((hand._x + " fdg ") + hand._y);
trace((ball._x + " fdg ") + ball._y);
hand.arr._visible = false;
ball._rotation = hand._rotation;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
_root.arr--;
shoot = true;
};
back.onPress = function () {
if (shoot) {
return(undefined);
}
pressed = true;
hand.meter._visible = true;
};
handRotation = function () {
var _local3 = _xmouse - hand._x;
var _local2 = _ymouse - hand._y;
radians = Math.atan2(_local2, _local3);
var _local1 = (radians * 180) / Math.PI;
if (_local1 < -100) {
_local1 = -100;
}
if (_local1 > 90) {
_local1 = 90;
}
hand._rotation = _local1;
};
arrMotion = function () {
if (stuck) {
return(undefined);
}
rot = (Math.atan2(vy, vx) * 180) / Math.PI;
ball._rotation = rot;
ball._x = ball._x + vx;
ball._y = ball._y + vy;
vy = vy + g;
if (((ball._y > 500) || (ball._x < -50)) || (ball._x > 800)) {
trace("arrow x " + ball._x);
trace("arrow y " + ball._y);
if (_root.cnt <= 0) {
lvlWon();
} else if (_root.arr <= 0) {
lvlLost();
}
v = 0;
shoot = false;
hand.arr._visible = true;
}
};
stop();
Frame 16
var g;
var vx;
var vy;
var xshift = 79.3;
var yshift = -9.7;
var dshift;
var pressed;
var increase;
var shoot;
var angle;
var stuck;
var radians;
var timer;
back.useHandCursor = false;
init = function () {
_root.cnt = 20;
_root.lvl = 4;
_root.bonus = false;
_root.arr = 3;
hearts.gotoAndStop(2);
_root.txtTarget.text = _root.cnt;
_root.txtHits.text = 0;
dshift = Math.sqrt((xshift * xshift) + (yshift * yshift));
v = 0;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
increase = true;
pressed = false;
shoot = false;
timer = setInterval(this, "bonusLvl", 15000);
_root.bonus2 = true;
};
bonusLvl = function () {
_root.bonus2 = false;
};
this.onEnterFrame = function () {
if (_root.lvl < 4) {
init();
}
arrMC.gotoAndStop(_root.arr + 1);
if (girl._x > 650) {
girl._x = -300;
}
girl._x++;
_root.txtLvlScore.text = _root.lvlScore;
if (pressed) {
if (increase) {
hand.meter.gotoAndStop(hand.meter._currentframe + 1);
if (hand.meter._currentframe >= 50) {
increase = false;
}
} else {
hand.meter.gotoAndStop(hand.meter._currentframe - 1);
if (hand.meter._currentframe <= 1) {
increase = true;
}
}
}
handRotation();
arrMotion();
};
lvlLost = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("gameOver");
};
lvlWon = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("lblScore");
};
back.onRelease = function () {
if (shoot || (!pressed)) {
return(undefined);
}
pressed = false;
v = hand.meter._currentframe;
angle = radians;
g = 0.7;
w = 0;
vx = v * Math.cos(angle);
vy = v * Math.sin(angle);
ball._x = hand._x + (dshift * Math.cos(angle));
ball._y = hand._y + (dshift * Math.sin(angle));
trace((hand._x + " fdg ") + hand._y);
trace((ball._x + " fdg ") + ball._y);
hand.arr._visible = false;
ball._rotation = hand._rotation;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
_root.arr--;
shoot = true;
};
back.onPress = function () {
if (shoot) {
return(undefined);
}
pressed = true;
hand.meter._visible = true;
};
handRotation = function () {
var _local3 = _xmouse - hand._x;
var _local2 = _ymouse - hand._y;
radians = Math.atan2(_local2, _local3);
var _local1 = (radians * 180) / Math.PI;
if (_local1 < -100) {
_local1 = -100;
}
if (_local1 > 90) {
_local1 = 90;
}
hand._rotation = _local1;
};
arrMotion = function () {
if (stuck) {
return(undefined);
}
rot = (Math.atan2(vy, vx) * 180) / Math.PI;
ball._rotation = rot;
ball._x = ball._x + vx;
ball._y = ball._y + vy;
vy = vy + g;
if (((ball._y > 500) || (ball._x < -50)) || (ball._x > 800)) {
trace("arrow x " + ball._x);
trace("arrow y " + ball._y);
if (_root.cnt <= 0) {
lvlWon();
} else if (_root.arr <= 0) {
lvlLost();
}
v = 0;
shoot = false;
hand.arr._visible = true;
}
};
stop();
Frame 17
var g;
var vx;
var vy;
var xshift = 79.3;
var yshift = -9.7;
var dshift;
var pressed;
var increase;
var shoot;
var angle;
var stuck;
var radians;
var timer;
back.useHandCursor = false;
init = function () {
_root.cnt = 16;
_root.lvl = 5;
_root.bonus = false;
_root.arr = 4;
hearts.gotoAndStop(2);
_root.txtTarget.text = _root.cnt;
_root.txtHits.text = 0;
dshift = Math.sqrt((xshift * xshift) + (yshift * yshift));
v = 0;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
increase = true;
pressed = false;
shoot = false;
timer = setInterval(this, "bonusLvl", 15000);
_root.bonus2 = true;
};
bonusLvl = function () {
_root.bonus2 = false;
};
this.onEnterFrame = function () {
if (_root.lvl < 5) {
init();
}
arrMC.gotoAndStop(_root.arr + 1);
if (girl._x > 650) {
girl._x = -300;
}
girl._x++;
_root.txtLvlScore.text = _root.lvlScore;
if (pressed) {
if (increase) {
hand.meter.gotoAndStop(hand.meter._currentframe + 1);
if (hand.meter._currentframe >= 50) {
increase = false;
}
} else {
hand.meter.gotoAndStop(hand.meter._currentframe - 1);
if (hand.meter._currentframe <= 1) {
increase = true;
}
}
}
handRotation();
arrMotion();
};
lvlLost = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("gameOver");
};
lvlWon = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("lblScore");
};
back.onRelease = function () {
if (shoot || (!pressed)) {
return(undefined);
}
pressed = false;
v = hand.meter._currentframe;
angle = radians;
g = 0.7;
w = 0;
vx = v * Math.cos(angle);
vy = v * Math.sin(angle);
ball._x = hand._x + (dshift * Math.cos(angle));
ball._y = hand._y + (dshift * Math.sin(angle));
trace((hand._x + " fdg ") + hand._y);
trace((ball._x + " fdg ") + ball._y);
hand.arr._visible = false;
ball._rotation = hand._rotation;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
_root.arr--;
shoot = true;
};
back.onPress = function () {
if (shoot) {
return(undefined);
}
pressed = true;
hand.meter._visible = true;
};
handRotation = function () {
var _local3 = _xmouse - hand._x;
var _local2 = _ymouse - hand._y;
radians = Math.atan2(_local2, _local3);
var _local1 = (radians * 180) / Math.PI;
if (_local1 < -100) {
_local1 = -100;
}
if (_local1 > 90) {
_local1 = 90;
}
hand._rotation = _local1;
};
arrMotion = function () {
if (stuck) {
return(undefined);
}
rot = (Math.atan2(vy, vx) * 180) / Math.PI;
ball._rotation = rot;
ball._x = ball._x + vx;
ball._y = ball._y + vy;
vy = vy + g;
if (((ball._y > 500) || (ball._x < -50)) || (ball._x > 800)) {
if (_root.cnt <= 0) {
lvlWon();
} else if (_root.arr <= 0) {
lvlLost();
}
v = 0;
shoot = false;
hand.arr._visible = true;
}
};
stop();
Frame 18
var g;
var vx;
var vy;
var xshift = 79.3;
var yshift = -9.7;
var dshift;
var pressed;
var increase;
var shoot;
var angle;
var stuck;
var radians;
var timer;
back.useHandCursor = false;
init = function () {
_root.cnt = 13;
_root.lvl = 6;
_root.bonus = false;
_root.arr = 5;
hearts.gotoAndStop(2);
_root.txtTarget.text = _root.cnt;
_root.txtHits.text = 0;
dshift = Math.sqrt((xshift * xshift) + (yshift * yshift));
v = 0;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
increase = true;
pressed = false;
shoot = false;
timer = setInterval(this, "bonusLvl", 15000);
_root.bonus2 = true;
};
bonusLvl = function () {
_root.bonus2 = false;
};
this.onEnterFrame = function () {
if (_root.lvl < 6) {
init();
}
arrMC.gotoAndStop(_root.arr + 1);
if (girl._x > 650) {
girl._x = -300;
}
girl._x++;
_root.txtLvlScore.text = _root.lvlScore;
if (pressed) {
if (increase) {
hand.meter.gotoAndStop(hand.meter._currentframe + 1);
if (hand.meter._currentframe >= 50) {
increase = false;
}
} else {
hand.meter.gotoAndStop(hand.meter._currentframe - 1);
if (hand.meter._currentframe <= 1) {
increase = true;
}
}
}
handRotation();
arrMotion();
};
lvlLost = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("gameOver");
};
lvlWon = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
if (!_root.select) {
_root.bonus = true;
_root.bonus2 = true;
_root.gotoAndStop("bonus");
} else {
_root.gotoAndStop("lblScore");
}
};
back.onRelease = function () {
if (shoot || (!pressed)) {
return(undefined);
}
pressed = false;
v = hand.meter._currentframe;
angle = radians;
g = 0.7;
w = 0;
vx = v * Math.cos(angle);
vy = v * Math.sin(angle);
ball._x = hand._x + (dshift * Math.cos(angle));
ball._y = hand._y + (dshift * Math.sin(angle));
trace((hand._x + " fdg ") + hand._y);
trace((ball._x + " fdg ") + ball._y);
hand.arr._visible = false;
ball._rotation = hand._rotation;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
_root.arr--;
shoot = true;
};
back.onPress = function () {
if (shoot) {
return(undefined);
}
pressed = true;
hand.meter._visible = true;
};
handRotation = function () {
var _local3 = _xmouse - hand._x;
var _local2 = _ymouse - hand._y;
radians = Math.atan2(_local2, _local3);
var _local1 = (radians * 180) / Math.PI;
if (_local1 < -100) {
_local1 = -100;
}
if (_local1 > 90) {
_local1 = 90;
}
hand._rotation = _local1;
};
arrMotion = function () {
if (stuck) {
return(undefined);
}
rot = (Math.atan2(vy, vx) * 180) / Math.PI;
ball._rotation = rot;
ball._x = ball._x + vx;
ball._y = ball._y + vy;
vy = vy + g;
if (((ball._y > 500) || (ball._x < -50)) || (ball._x > 800)) {
trace("arrow x " + ball._x);
trace("arrow y " + ball._y);
if (_root.cnt <= 0) {
lvlWon();
} else if (_root.arr <= 0) {
lvlLost();
}
v = 0;
shoot = false;
hand.arr._visible = true;
}
};
stop();
Frame 19
var g;
var vx;
var vy;
var xshift = 79.3;
var yshift = -9.7;
var dshift;
var pressed;
var increase;
var shoot;
var angle;
var stuck;
var radians;
var timer;
back.useHandCursor = false;
init = function () {
_root.cnt = 14;
_root.lvl = 7;
_root.bonus = false;
_root.arr = 3;
hearts.gotoAndStop(2);
_root.txtTarget.text = _root.cnt;
_root.txtHits.text = 0;
dshift = Math.sqrt((xshift * xshift) + (yshift * yshift));
v = 0;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
increase = true;
pressed = false;
shoot = false;
timer = setInterval(this, "bonusLvl", 15000);
_root.bonus2 = true;
};
bonusLvl = function () {
_root.bonus2 = false;
};
this.onEnterFrame = function () {
if (_root.lvl < 7) {
init();
}
arrMC.gotoAndStop(_root.arr + 1);
if (girl._x > 650) {
girl._x = -300;
}
girl._x++;
_root.txtLvlScore.text = _root.lvlScore;
if (pressed) {
if (increase) {
hand.meter.gotoAndStop(hand.meter._currentframe + 1);
if (hand.meter._currentframe >= 50) {
increase = false;
}
} else {
hand.meter.gotoAndStop(hand.meter._currentframe - 1);
if (hand.meter._currentframe <= 1) {
increase = true;
}
}
}
handRotation();
arrMotion();
};
lvlLost = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("gameOver");
};
lvlWon = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("lblScore");
};
back.onRelease = function () {
if (shoot || (!pressed)) {
return(undefined);
}
pressed = false;
v = hand.meter._currentframe;
angle = radians;
g = 0.7;
w = 0;
vx = v * Math.cos(angle);
vy = v * Math.sin(angle);
ball._x = hand._x + (dshift * Math.cos(angle));
ball._y = hand._y + (dshift * Math.sin(angle));
trace((hand._x + " fdg ") + hand._y);
trace((ball._x + " fdg ") + ball._y);
hand.arr._visible = false;
ball._rotation = hand._rotation;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
_root.arr--;
shoot = true;
};
back.onPress = function () {
if (shoot) {
return(undefined);
}
pressed = true;
hand.meter._visible = true;
};
handRotation = function () {
var _local3 = _xmouse - hand._x;
var _local2 = _ymouse - hand._y;
radians = Math.atan2(_local2, _local3);
var _local1 = (radians * 180) / Math.PI;
if (_local1 < -100) {
_local1 = -100;
}
if (_local1 > 90) {
_local1 = 90;
}
hand._rotation = _local1;
};
arrMotion = function () {
if (stuck) {
return(undefined);
}
rot = (Math.atan2(vy, vx) * 180) / Math.PI;
ball._rotation = rot;
ball._x = ball._x + vx;
ball._y = ball._y + vy;
vy = vy + g;
if (((ball._y > 500) || (ball._x < -50)) || (ball._x > 800)) {
trace("arrow x " + ball._x);
trace("arrow y " + ball._y);
if (_root.cnt <= 0) {
lvlWon();
} else if (_root.arr <= 0) {
lvlLost();
}
v = 0;
shoot = false;
hand.arr._visible = true;
}
};
stop();
Frame 20
var g;
var vx;
var vy;
var xshift = 79.3;
var yshift = -9.7;
var dshift;
var pressed;
var increase;
var shoot;
var angle;
var stuck;
var radians;
var timer;
back.useHandCursor = false;
init = function () {
_root.cnt = 15;
_root.lvl = 8;
_root.bonus = false;
_root.arr = 6;
hearts.gotoAndStop(2);
_root.txtTarget.text = _root.cnt;
_root.txtHits.text = 0;
dshift = Math.sqrt((xshift * xshift) + (yshift * yshift));
v = 0;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
increase = true;
pressed = false;
shoot = false;
timer = setInterval(this, "bonusLvl", 15000);
_root.bonus2 = true;
};
bonusLvl = function () {
_root.bonus2 = false;
};
this.onEnterFrame = function () {
if (_root.lvl < 8) {
init();
}
arrMC.gotoAndStop(_root.arr + 1);
if (girl._x > 650) {
girl._x = -300;
}
girl._x++;
_root.txtLvlScore.text = _root.lvlScore;
if (pressed) {
if (increase) {
hand.meter.gotoAndStop(hand.meter._currentframe + 1);
if (hand.meter._currentframe >= 50) {
increase = false;
}
} else {
hand.meter.gotoAndStop(hand.meter._currentframe - 1);
if (hand.meter._currentframe <= 1) {
increase = true;
}
}
}
handRotation();
arrMotion();
};
lvlLost = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("gameOver");
};
lvlWon = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("lblScore");
};
back.onRelease = function () {
if (shoot || (!pressed)) {
return(undefined);
}
pressed = false;
v = hand.meter._currentframe;
angle = radians;
g = 0.7;
w = 0;
vx = v * Math.cos(angle);
vy = v * Math.sin(angle);
ball._x = hand._x + (dshift * Math.cos(angle));
ball._y = hand._y + (dshift * Math.sin(angle));
trace((hand._x + " fdg ") + hand._y);
trace((ball._x + " fdg ") + ball._y);
hand.arr._visible = false;
ball._rotation = hand._rotation;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
_root.arr--;
shoot = true;
};
back.onPress = function () {
if (shoot) {
return(undefined);
}
pressed = true;
hand.meter._visible = true;
};
handRotation = function () {
var _local3 = _xmouse - hand._x;
var _local2 = _ymouse - hand._y;
radians = Math.atan2(_local2, _local3);
var _local1 = (radians * 180) / Math.PI;
if (_local1 < -100) {
_local1 = -100;
}
if (_local1 > 90) {
_local1 = 90;
}
hand._rotation = _local1;
};
arrMotion = function () {
if (stuck) {
return(undefined);
}
rot = (Math.atan2(vy, vx) * 180) / Math.PI;
ball._rotation = rot;
ball._x = ball._x + vx;
ball._y = ball._y + vy;
vy = vy + g;
if (((ball._y > 500) || (ball._x < -50)) || (ball._x > 800)) {
trace("arrow x " + ball._x);
trace("arrow y " + ball._y);
if (_root.cnt <= 0) {
lvlWon();
} else if (_root.arr <= 0) {
lvlLost();
}
v = 0;
shoot = false;
hand.arr._visible = true;
}
};
stop();
Frame 21
var g;
var vx;
var vy;
var xshift = 79.3;
var yshift = -9.7;
var dshift;
var pressed;
var increase;
var shoot;
var angle;
var stuck;
var radians;
var timer;
back.useHandCursor = false;
init = function () {
_root.cnt = 20;
_root.lvl = 9;
_root.bonus = false;
_root.arr = 5;
hearts.gotoAndStop(2);
_root.txtTarget.text = _root.cnt;
_root.txtHits.text = 0;
dshift = Math.sqrt((xshift * xshift) + (yshift * yshift));
v = 0;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
increase = true;
pressed = false;
shoot = false;
timer = setInterval(this, "bonusLvl", 15000);
_root.bonus2 = true;
};
bonusLvl = function () {
_root.bonus2 = false;
};
this.onEnterFrame = function () {
if (_root.lvl < 9) {
init();
}
arrMC.gotoAndStop(_root.arr + 1);
if (girl._x > 650) {
girl._x = -300;
}
girl._x++;
if (girl2._x > 650) {
girl2._x = -300;
}
girl2._x++;
_root.txtLvlScore.text = _root.lvlScore;
if (pressed) {
if (increase) {
hand.meter.gotoAndStop(hand.meter._currentframe + 1);
if (hand.meter._currentframe >= 50) {
increase = false;
}
} else {
hand.meter.gotoAndStop(hand.meter._currentframe - 1);
if (hand.meter._currentframe <= 1) {
increase = true;
}
}
}
handRotation();
arrMotion();
};
lvlLost = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("gameOver");
};
lvlWon = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
if (!_root.select) {
_root.bonus = true;
_root.bonus2 = true;
_root.gotoAndStop("bonus");
} else {
_root.gotoAndStop("lblScore");
}
};
back.onRelease = function () {
if (shoot || (!pressed)) {
return(undefined);
}
pressed = false;
v = hand.meter._currentframe;
angle = radians;
g = 0.7;
w = 0;
vx = v * Math.cos(angle);
vy = v * Math.sin(angle);
ball._x = hand._x + (dshift * Math.cos(angle));
ball._y = hand._y + (dshift * Math.sin(angle));
trace((hand._x + " fdg ") + hand._y);
trace((ball._x + " fdg ") + ball._y);
hand.arr._visible = false;
ball._rotation = hand._rotation;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
_root.arr--;
shoot = true;
};
back.onPress = function () {
if (shoot) {
return(undefined);
}
pressed = true;
hand.meter._visible = true;
};
handRotation = function () {
var _local3 = _xmouse - hand._x;
var _local2 = _ymouse - hand._y;
radians = Math.atan2(_local2, _local3);
var _local1 = (radians * 180) / Math.PI;
if (_local1 < -100) {
_local1 = -100;
}
if (_local1 > 90) {
_local1 = 90;
}
hand._rotation = _local1;
};
arrMotion = function () {
if (stuck) {
return(undefined);
}
rot = (Math.atan2(vy, vx) * 180) / Math.PI;
ball._rotation = rot;
ball._x = ball._x + vx;
ball._y = ball._y + vy;
vy = vy + g;
if (((ball._y > 500) || (ball._x < -50)) || (ball._x > 800)) {
trace("arrow x " + ball._x);
trace("arrow y " + ball._y);
if (_root.cnt <= 0) {
lvlWon();
} else if (_root.arr <= 0) {
lvlLost();
}
v = 0;
shoot = false;
hand.arr._visible = true;
}
};
stop();
Frame 22
var g;
var vx;
var vy;
var xshift = 79.3;
var yshift = -9.7;
var dshift;
var pressed;
var increase;
var shoot;
var angle;
var stuck;
var radians;
var timer;
back.useHandCursor = false;
init = function () {
_root.cnt = 20;
_root.lvl = 10;
_root.bonus = false;
_root.arr = 6;
hearts.gotoAndStop(2);
_root.txtTarget.text = _root.cnt;
_root.txtHits.text = 0;
dshift = Math.sqrt((xshift * xshift) + (yshift * yshift));
v = 0;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
increase = true;
pressed = false;
shoot = false;
timer = setInterval(this, "bonusLvl", 15000);
_root.bonus2 = true;
};
bonusLvl = function () {
_root.bonus2 = false;
};
this.onEnterFrame = function () {
if (_root.lvl < 10) {
init();
}
arrMC.gotoAndStop(_root.arr + 1);
if (girl._x > 650) {
girl._x = -300;
}
girl._x++;
if (girl2._x > 650) {
girl2._x = -300;
}
girl2._x++;
_root.txtLvlScore.text = _root.lvlScore;
if (pressed) {
if (increase) {
hand.meter.gotoAndStop(hand.meter._currentframe + 1);
if (hand.meter._currentframe >= 50) {
increase = false;
}
} else {
hand.meter.gotoAndStop(hand.meter._currentframe - 1);
if (hand.meter._currentframe <= 1) {
increase = true;
}
}
}
handRotation();
arrMotion();
};
lvlLost = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("gameOver");
};
lvlWon = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("lblScore");
};
back.onRelease = function () {
if (shoot || (!pressed)) {
return(undefined);
}
pressed = false;
v = hand.meter._currentframe;
angle = radians;
g = 0.7;
w = 0;
vx = v * Math.cos(angle);
vy = v * Math.sin(angle);
ball._x = hand._x + (dshift * Math.cos(angle));
ball._y = hand._y + (dshift * Math.sin(angle));
trace((hand._x + " fdg ") + hand._y);
trace((ball._x + " fdg ") + ball._y);
hand.arr._visible = false;
ball._rotation = hand._rotation;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
_root.arr--;
shoot = true;
};
back.onPress = function () {
if (shoot) {
return(undefined);
}
pressed = true;
hand.meter._visible = true;
};
handRotation = function () {
var _local3 = _xmouse - hand._x;
var _local2 = _ymouse - hand._y;
radians = Math.atan2(_local2, _local3);
var _local1 = (radians * 180) / Math.PI;
if (_local1 < -100) {
_local1 = -100;
}
if (_local1 > 90) {
_local1 = 90;
}
hand._rotation = _local1;
};
arrMotion = function () {
if (stuck) {
return(undefined);
}
rot = (Math.atan2(vy, vx) * 180) / Math.PI;
ball._rotation = rot;
ball._x = ball._x + vx;
ball._y = ball._y + vy;
vy = vy + g;
if (((ball._y > 500) || (ball._x < -50)) || (ball._x > 800)) {
trace("arrow x " + ball._x);
trace("arrow y " + ball._y);
if (_root.cnt <= 0) {
lvlWon();
} else if (_root.arr <= 0) {
lvlLost();
}
v = 0;
shoot = false;
hand.arr._visible = true;
}
};
stop();
Frame 23
var g;
var vx;
var vy;
var xshift = 79.3;
var yshift = -9.7;
var dshift;
var pressed;
var increase;
var shoot;
var angle;
var stuck;
var radians;
var timer;
back.useHandCursor = false;
init = function () {
_root.cnt = 6;
_root.lvl = 11;
_root.bonus = false;
_root.arr = 1;
hearts.gotoAndStop(2);
_root.txtTarget.text = _root.cnt;
_root.txtHits.text = 0;
dshift = Math.sqrt((xshift * xshift) + (yshift * yshift));
v = 0;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
increase = true;
pressed = false;
shoot = false;
timer = setInterval(this, "bonusLvl", 15000);
_root.bonus2 = true;
};
bonusLvl = function () {
_root.bonus2 = false;
};
this.onEnterFrame = function () {
if (_root.lvl < 11) {
init();
}
arrMC.gotoAndStop(_root.arr + 1);
if (girl._x > 650) {
girl._x = -300;
}
girl._x++;
if (girl2._x > 650) {
girl2._x = -300;
}
girl2._x++;
_root.txtLvlScore.text = _root.lvlScore;
if (pressed) {
if (increase) {
hand.meter.gotoAndStop(hand.meter._currentframe + 1);
if (hand.meter._currentframe >= 50) {
increase = false;
}
} else {
hand.meter.gotoAndStop(hand.meter._currentframe - 1);
if (hand.meter._currentframe <= 1) {
increase = true;
}
}
}
handRotation();
arrMotion();
};
lvlLost = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("gameOver");
};
lvlWon = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("lblScore");
};
back.onRelease = function () {
if (shoot || (!pressed)) {
return(undefined);
}
pressed = false;
v = hand.meter._currentframe;
angle = radians;
g = 0.7;
w = 0;
vx = v * Math.cos(angle);
vy = v * Math.sin(angle);
ball._x = hand._x + (dshift * Math.cos(angle));
ball._y = hand._y + (dshift * Math.sin(angle));
trace((hand._x + " fdg ") + hand._y);
trace((ball._x + " fdg ") + ball._y);
hand.arr._visible = false;
ball._rotation = hand._rotation;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
_root.arr--;
shoot = true;
};
back.onPress = function () {
if (shoot) {
return(undefined);
}
pressed = true;
hand.meter._visible = true;
};
handRotation = function () {
var _local3 = _xmouse - hand._x;
var _local2 = _ymouse - hand._y;
radians = Math.atan2(_local2, _local3);
var _local1 = (radians * 180) / Math.PI;
if (_local1 < -100) {
_local1 = -100;
}
if (_local1 > 90) {
_local1 = 90;
}
hand._rotation = _local1;
};
arrMotion = function () {
if (stuck) {
return(undefined);
}
rot = (Math.atan2(vy, vx) * 180) / Math.PI;
ball._rotation = rot;
ball._x = ball._x + vx;
ball._y = ball._y + vy;
vy = vy + g;
if (((ball._y > 500) || (ball._x < -50)) || (ball._x > 800)) {
trace("arrow x " + ball._x);
trace("arrow y " + ball._y);
if (_root.cnt <= 0) {
lvlWon();
} else if (_root.arr <= 0) {
lvlLost();
}
v = 0;
shoot = false;
hand.arr._visible = true;
}
};
stop();
Frame 24
var g;
var vx;
var vy;
var xshift = 79.3;
var yshift = -9.7;
var dshift;
var pressed;
var increase;
var shoot;
var angle;
var stuck;
var radians;
var timer;
back.useHandCursor = false;
init = function () {
_root.cnt = 20;
_root.lvl = 12;
_root.bonus = false;
_root.arr = 3;
hearts.gotoAndStop(2);
_root.txtTarget.text = _root.cnt;
_root.txtHits.text = 0;
dshift = Math.sqrt((xshift * xshift) + (yshift * yshift));
v = 0;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
increase = true;
pressed = false;
shoot = false;
timer = setInterval(this, "bonusLvl", 15000);
_root.bonus2 = true;
};
bonusLvl = function () {
_root.bonus2 = false;
};
this.onEnterFrame = function () {
if (_root.lvl < 12) {
init();
}
arrMC.gotoAndStop(_root.arr + 1);
if (girl._x > 650) {
girl._x = -300;
}
girl._x++;
if (girl2._x > 650) {
girl2._x = -300;
}
girl2._x++;
_root.txtLvlScore.text = _root.lvlScore;
if (pressed) {
if (increase) {
hand.meter.gotoAndStop(hand.meter._currentframe + 1);
if (hand.meter._currentframe >= 50) {
increase = false;
}
} else {
hand.meter.gotoAndStop(hand.meter._currentframe - 1);
if (hand.meter._currentframe <= 1) {
increase = true;
}
}
}
handRotation();
arrMotion();
};
lvlLost = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("gameOver");
};
lvlWon = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
if (!_root.select) {
_root.bonus = true;
_root.bonus2 = true;
_root.gotoAndStop("bonus");
} else {
_root.gotoAndStop("lblScore");
}
};
back.onRelease = function () {
if (shoot || (!pressed)) {
return(undefined);
}
pressed = false;
v = hand.meter._currentframe;
angle = radians;
g = 0.7;
w = 0;
vx = v * Math.cos(angle);
vy = v * Math.sin(angle);
ball._x = hand._x + (dshift * Math.cos(angle));
ball._y = hand._y + (dshift * Math.sin(angle));
trace((hand._x + " fdg ") + hand._y);
trace((ball._x + " fdg ") + ball._y);
hand.arr._visible = false;
ball._rotation = hand._rotation;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
_root.arr--;
shoot = true;
};
back.onPress = function () {
if (shoot) {
return(undefined);
}
pressed = true;
hand.meter._visible = true;
};
handRotation = function () {
var _local3 = _xmouse - hand._x;
var _local2 = _ymouse - hand._y;
radians = Math.atan2(_local2, _local3);
var _local1 = (radians * 180) / Math.PI;
if (_local1 < -100) {
_local1 = -100;
}
if (_local1 > 90) {
_local1 = 90;
}
hand._rotation = _local1;
};
arrMotion = function () {
if (stuck) {
return(undefined);
}
rot = (Math.atan2(vy, vx) * 180) / Math.PI;
ball._rotation = rot;
ball._x = ball._x + vx;
ball._y = ball._y + vy;
vy = vy + g;
if (((ball._y > 500) || (ball._x < -50)) || (ball._x > 800)) {
trace("arrow x " + ball._x);
trace("arrow y " + ball._y);
if (_root.cnt <= 0) {
lvlWon();
} else if (_root.arr <= 0) {
lvlLost();
}
v = 0;
shoot = false;
hand.arr._visible = true;
}
};
stop();
Frame 25
var g;
var vx;
var vy;
var xshift = 79.3;
var yshift = -9.7;
var dshift;
var pressed;
var increase;
var shoot;
var angle;
var stuck;
var radians;
var timer;
back.useHandCursor = false;
init = function () {
_root.cnt = 10;
_root.lvl = 13;
_root.bonus = false;
_root.arr = 2;
hearts.gotoAndStop(2);
_root.txtTarget.text = _root.cnt;
_root.txtHits.text = 0;
dshift = Math.sqrt((xshift * xshift) + (yshift * yshift));
v = 0;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
increase = true;
pressed = false;
shoot = false;
timer = setInterval(this, "bonusLvl", 15000);
_root.bonus2 = true;
};
bonusLvl = function () {
_root.bonus2 = false;
};
this.onEnterFrame = function () {
if (_root.lvl < 13) {
init();
}
arrMC.gotoAndStop(_root.arr + 1);
if (girl._x > 650) {
girl._x = -300;
}
girl._x++;
if (girl2._x > 650) {
girl2._x = -300;
}
girl2._x++;
_root.txtLvlScore.text = _root.lvlScore;
if (pressed) {
if (increase) {
hand.meter.gotoAndStop(hand.meter._currentframe + 1);
if (hand.meter._currentframe >= 50) {
increase = false;
}
} else {
hand.meter.gotoAndStop(hand.meter._currentframe - 1);
if (hand.meter._currentframe <= 1) {
increase = true;
}
}
}
handRotation();
arrMotion();
};
lvlLost = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("gameOver");
};
lvlWon = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("lblScore");
};
back.onRelease = function () {
if (shoot || (!pressed)) {
return(undefined);
}
pressed = false;
v = hand.meter._currentframe;
angle = radians;
g = 0.7;
w = 0;
vx = v * Math.cos(angle);
vy = v * Math.sin(angle);
ball._x = hand._x + (dshift * Math.cos(angle));
ball._y = hand._y + (dshift * Math.sin(angle));
trace((hand._x + " fdg ") + hand._y);
trace((ball._x + " fdg ") + ball._y);
hand.arr._visible = false;
ball._rotation = hand._rotation;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
_root.arr--;
shoot = true;
};
back.onPress = function () {
if (shoot) {
return(undefined);
}
pressed = true;
hand.meter._visible = true;
};
handRotation = function () {
var _local3 = _xmouse - hand._x;
var _local2 = _ymouse - hand._y;
radians = Math.atan2(_local2, _local3);
var _local1 = (radians * 180) / Math.PI;
if (_local1 < -100) {
_local1 = -100;
}
if (_local1 > 90) {
_local1 = 90;
}
hand._rotation = _local1;
};
arrMotion = function () {
if (stuck) {
return(undefined);
}
rot = (Math.atan2(vy, vx) * 180) / Math.PI;
ball._rotation = rot;
ball._x = ball._x + vx;
ball._y = ball._y + vy;
vy = vy + g;
if (((ball._y > 500) || (ball._x < -50)) || (ball._x > 800)) {
trace("arrow x " + ball._x);
trace("arrow y " + ball._y);
if (_root.cnt <= 0) {
lvlWon();
} else if (_root.arr <= 0) {
lvlLost();
}
v = 0;
shoot = false;
hand.arr._visible = true;
}
};
stop();
Frame 26
var g;
var vx;
var vy;
var xshift = 79.3;
var yshift = -9.7;
var dshift;
var pressed;
var increase;
var shoot;
var angle;
var stuck;
var radians;
var timer;
back.useHandCursor = false;
init = function () {
_root.cnt = 15;
_root.lvl = 14;
_root.bonus = false;
_root.arr = 3;
hearts.gotoAndStop(2);
_root.txtTarget.text = _root.cnt;
_root.txtHits.text = 0;
dshift = Math.sqrt((xshift * xshift) + (yshift * yshift));
v = 0;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
increase = true;
pressed = false;
shoot = false;
timer = setInterval(this, "bonusLvl", 15000);
_root.bonus2 = true;
};
bonusLvl = function () {
_root.bonus2 = false;
};
this.onEnterFrame = function () {
if (_root.lvl < 14) {
init();
}
arrMC.gotoAndStop(_root.arr + 1);
if (girl._x > 650) {
girl._x = -300;
}
girl._x++;
if (girl2._x > 650) {
girl2._x = -300;
}
girl2._x++;
_root.txtLvlScore.text = _root.lvlScore;
if (pressed) {
if (increase) {
hand.meter.gotoAndStop(hand.meter._currentframe + 1);
if (hand.meter._currentframe >= 50) {
increase = false;
}
} else {
hand.meter.gotoAndStop(hand.meter._currentframe - 1);
if (hand.meter._currentframe <= 1) {
increase = true;
}
}
}
handRotation();
arrMotion();
};
lvlLost = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("gameOver");
};
lvlWon = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("lblScore");
};
back.onRelease = function () {
if (shoot || (!pressed)) {
return(undefined);
}
pressed = false;
v = hand.meter._currentframe;
angle = radians;
g = 0.7;
w = 0;
vx = v * Math.cos(angle);
vy = v * Math.sin(angle);
ball._x = hand._x + (dshift * Math.cos(angle));
ball._y = hand._y + (dshift * Math.sin(angle));
trace((hand._x + " fdg ") + hand._y);
trace((ball._x + " fdg ") + ball._y);
hand.arr._visible = false;
ball._rotation = hand._rotation;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
_root.arr--;
shoot = true;
};
back.onPress = function () {
if (shoot) {
return(undefined);
}
pressed = true;
hand.meter._visible = true;
};
handRotation = function () {
var _local3 = _xmouse - hand._x;
var _local2 = _ymouse - hand._y;
radians = Math.atan2(_local2, _local3);
var _local1 = (radians * 180) / Math.PI;
if (_local1 < -100) {
_local1 = -100;
}
if (_local1 > 90) {
_local1 = 90;
}
hand._rotation = _local1;
};
arrMotion = function () {
if (stuck) {
return(undefined);
}
rot = (Math.atan2(vy, vx) * 180) / Math.PI;
ball._rotation = rot;
ball._x = ball._x + vx;
ball._y = ball._y + vy;
vy = vy + g;
if (((ball._y > 500) || (ball._x < -50)) || (ball._x > 800)) {
trace("arrow x " + ball._x);
trace("arrow y " + ball._y);
if (_root.cnt <= 0) {
lvlWon();
} else if (_root.arr <= 0) {
lvlLost();
}
v = 0;
shoot = false;
hand.arr._visible = true;
}
};
stop();
Frame 27
var g;
var vx;
var vy;
var xshift = 79.3;
var yshift = -9.7;
var dshift;
var pressed;
var increase;
var shoot;
var angle;
var stuck;
var radians;
var timer;
back.useHandCursor = false;
init = function () {
_root.cnt = 10;
_root.lvl = 15;
_root.bonus = false;
_root.arr = 3;
hearts.gotoAndStop(2);
_root.txtTarget.text = _root.cnt;
_root.txtHits.text = 0;
dshift = Math.sqrt((xshift * xshift) + (yshift * yshift));
v = 0;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
increase = true;
pressed = false;
shoot = false;
timer = setInterval(this, "bonusLvl", 15000);
_root.bonus2 = true;
};
bonusLvl = function () {
_root.bonus2 = false;
};
this.onEnterFrame = function () {
if (_root.lvl < 15) {
init();
}
arrMC.gotoAndStop(_root.arr + 1);
if (girl._x > 650) {
girl._x = -300;
}
girl._x++;
if (girl2._x > 650) {
girl2._x = -300;
}
girl2._x++;
_root.txtLvlScore.text = _root.lvlScore;
if (pressed) {
if (increase) {
hand.meter.gotoAndStop(hand.meter._currentframe + 1);
if (hand.meter._currentframe >= 50) {
increase = false;
}
} else {
hand.meter.gotoAndStop(hand.meter._currentframe - 1);
if (hand.meter._currentframe <= 1) {
increase = true;
}
}
}
handRotation();
arrMotion();
};
lvlLost = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("gameOver");
};
lvlWon = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
if (!_root.select) {
_root.bonus = true;
_root.bonus2 = true;
_root.gotoAndStop("bonus");
} else {
_root.gotoAndStop("lblScore");
}
};
back.onRelease = function () {
if (shoot || (!pressed)) {
return(undefined);
}
pressed = false;
v = hand.meter._currentframe;
angle = radians;
g = 0.7;
w = 0;
vx = v * Math.cos(angle);
vy = v * Math.sin(angle);
ball._x = hand._x + (dshift * Math.cos(angle));
ball._y = hand._y + (dshift * Math.sin(angle));
trace((hand._x + " fdg ") + hand._y);
trace((ball._x + " fdg ") + ball._y);
hand.arr._visible = false;
ball._rotation = hand._rotation;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
_root.arr--;
shoot = true;
};
back.onPress = function () {
if (shoot) {
return(undefined);
}
pressed = true;
hand.meter._visible = true;
};
handRotation = function () {
var _local3 = _xmouse - hand._x;
var _local2 = _ymouse - hand._y;
radians = Math.atan2(_local2, _local3);
var _local1 = (radians * 180) / Math.PI;
if (_local1 < -100) {
_local1 = -100;
}
if (_local1 > 90) {
_local1 = 90;
}
hand._rotation = _local1;
};
arrMotion = function () {
if (stuck) {
return(undefined);
}
rot = (Math.atan2(vy, vx) * 180) / Math.PI;
ball._rotation = rot;
ball._x = ball._x + vx;
ball._y = ball._y + vy;
vy = vy + g;
if (((ball._y > 500) || (ball._x < -50)) || (ball._x > 800)) {
trace("arrow x " + ball._x);
trace("arrow y " + ball._y);
if (_root.cnt <= 0) {
lvlWon();
} else if (_root.arr <= 0) {
lvlLost();
}
v = 0;
shoot = false;
hand.arr._visible = true;
}
};
stop();
Frame 28
var g;
var vx;
var vy;
var xshift = 79.3;
var yshift = -9.7;
var dshift;
var pressed;
var increase;
var shoot;
var angle;
var stuck;
var radians;
var timer;
back.useHandCursor = false;
init = function () {
_root.cnt = 22;
_root.lvl = 16;
_root.bonus = false;
_root.arr = 4;
hearts.gotoAndStop(2);
_root.txtTarget.text = _root.cnt;
_root.txtHits.text = 0;
dshift = Math.sqrt((xshift * xshift) + (yshift * yshift));
v = 0;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
increase = true;
pressed = false;
shoot = false;
timer = setInterval(this, "bonusLvl", 15000);
_root.bonus2 = true;
};
bonusLvl = function () {
_root.bonus2 = false;
};
this.onEnterFrame = function () {
if (_root.lvl < 16) {
init();
}
arrMC.gotoAndStop(_root.arr + 1);
if (girl._x > 650) {
girl._x = -300;
}
girl._x++;
if (girl2._x > 650) {
girl2._x = -300;
}
girl2._x++;
_root.txtLvlScore.text = _root.lvlScore;
if (pressed) {
if (increase) {
hand.meter.gotoAndStop(hand.meter._currentframe + 1);
if (hand.meter._currentframe >= 50) {
increase = false;
}
} else {
hand.meter.gotoAndStop(hand.meter._currentframe - 1);
if (hand.meter._currentframe <= 1) {
increase = true;
}
}
}
handRotation();
arrMotion();
};
lvlLost = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("gameOver");
};
lvlWon = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("lblScore");
};
back.onRelease = function () {
if (shoot || (!pressed)) {
return(undefined);
}
pressed = false;
v = hand.meter._currentframe;
angle = radians;
g = 0.7;
w = 0;
vx = v * Math.cos(angle);
vy = v * Math.sin(angle);
ball._x = hand._x + (dshift * Math.cos(angle));
ball._y = hand._y + (dshift * Math.sin(angle));
trace((hand._x + " fdg ") + hand._y);
trace((ball._x + " fdg ") + ball._y);
hand.arr._visible = false;
ball._rotation = hand._rotation;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
_root.arr--;
shoot = true;
};
back.onPress = function () {
if (shoot) {
return(undefined);
}
pressed = true;
hand.meter._visible = true;
};
handRotation = function () {
var _local3 = _xmouse - hand._x;
var _local2 = _ymouse - hand._y;
radians = Math.atan2(_local2, _local3);
var _local1 = (radians * 180) / Math.PI;
if (_local1 < -100) {
_local1 = -100;
}
if (_local1 > 90) {
_local1 = 90;
}
hand._rotation = _local1;
};
arrMotion = function () {
if (stuck) {
return(undefined);
}
rot = (Math.atan2(vy, vx) * 180) / Math.PI;
ball._rotation = rot;
ball._x = ball._x + vx;
ball._y = ball._y + vy;
vy = vy + g;
if (((ball._y > 500) || (ball._x < -50)) || (ball._x > 800)) {
trace("arrow x " + ball._x);
trace("arrow y " + ball._y);
if (_root.cnt <= 0) {
lvlWon();
} else if (_root.arr <= 0) {
lvlLost();
}
v = 0;
shoot = false;
hand.arr._visible = true;
}
};
stop();
Frame 29
var g;
var vx;
var vy;
var xshift = 79.3;
var yshift = -9.7;
var dshift;
var pressed;
var increase;
var shoot;
var angle;
var stuck;
var radians;
var timer;
back.useHandCursor = false;
init = function () {
_root.cnt = 16;
_root.lvl = 17;
_root.bonus = false;
_root.arr = 3;
hearts.gotoAndStop(2);
_root.txtTarget.text = _root.cnt;
_root.txtHits.text = 0;
dshift = Math.sqrt((xshift * xshift) + (yshift * yshift));
v = 0;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
increase = true;
pressed = false;
shoot = false;
timer = setInterval(this, "bonusLvl", 15000);
_root.bonus2 = true;
};
bonusLvl = function () {
_root.bonus2 = false;
};
this.onEnterFrame = function () {
if (_root.lvl < 17) {
init();
}
arrMC.gotoAndStop(_root.arr + 1);
if (girl._x > 650) {
girl._x = -300;
}
girl._x++;
if (girl2._x > 650) {
girl2._x = -300;
}
girl2._x++;
_root.txtLvlScore.text = _root.lvlScore;
if (pressed) {
if (increase) {
hand.meter.gotoAndStop(hand.meter._currentframe + 1);
if (hand.meter._currentframe >= 50) {
increase = false;
}
} else {
hand.meter.gotoAndStop(hand.meter._currentframe - 1);
if (hand.meter._currentframe <= 1) {
increase = true;
}
}
}
handRotation();
arrMotion();
};
lvlLost = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("gameOver");
};
lvlWon = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("lblScore");
};
back.onRelease = function () {
if (shoot || (!pressed)) {
return(undefined);
}
pressed = false;
v = hand.meter._currentframe;
angle = radians;
g = 0.7;
w = 0;
vx = v * Math.cos(angle);
vy = v * Math.sin(angle);
ball._x = hand._x + (dshift * Math.cos(angle));
ball._y = hand._y + (dshift * Math.sin(angle));
trace((hand._x + " fdg ") + hand._y);
trace((ball._x + " fdg ") + ball._y);
hand.arr._visible = false;
ball._rotation = hand._rotation;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
_root.arr--;
shoot = true;
};
back.onPress = function () {
if (shoot) {
return(undefined);
}
pressed = true;
hand.meter._visible = true;
};
handRotation = function () {
var _local3 = _xmouse - hand._x;
var _local2 = _ymouse - hand._y;
radians = Math.atan2(_local2, _local3);
var _local1 = (radians * 180) / Math.PI;
if (_local1 < -100) {
_local1 = -100;
}
if (_local1 > 90) {
_local1 = 90;
}
hand._rotation = _local1;
};
arrMotion = function () {
if (stuck) {
return(undefined);
}
rot = (Math.atan2(vy, vx) * 180) / Math.PI;
ball._rotation = rot;
ball._x = ball._x + vx;
ball._y = ball._y + vy;
vy = vy + g;
if (((ball._y > 500) || (ball._x < -50)) || (ball._x > 800)) {
trace("arrow x " + ball._x);
trace("arrow y " + ball._y);
if (_root.cnt <= 0) {
lvlWon();
} else if (_root.arr <= 0) {
lvlLost();
}
v = 0;
shoot = false;
hand.arr._visible = true;
}
};
stop();
Frame 30
var g;
var vx;
var vy;
var xshift = 79.3;
var yshift = -9.7;
var dshift;
var pressed;
var increase;
var shoot;
var angle;
var stuck;
var radians;
var timer;
back.useHandCursor = false;
init = function () {
_root.cnt = 8;
_root.lvl = 18;
_root.bonus = false;
_root.arr = 5;
hearts.gotoAndStop(2);
_root.txtTarget.text = _root.cnt;
_root.txtHits.text = 0;
dshift = Math.sqrt((xshift * xshift) + (yshift * yshift));
v = 0;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
increase = true;
pressed = false;
shoot = false;
timer = setInterval(this, "bonusLvl", 15000);
_root.bonus2 = true;
};
bonusLvl = function () {
_root.bonus2 = false;
};
this.onEnterFrame = function () {
if (_root.lvl < 18) {
init();
}
arrMC.gotoAndStop(_root.arr + 1);
if (girl._x > 650) {
girl._x = -300;
}
girl._x++;
if (girl2._x > 650) {
girl2._x = -300;
}
girl2._x++;
_root.txtLvlScore.text = _root.lvlScore;
if (pressed) {
if (increase) {
hand.meter.gotoAndStop(hand.meter._currentframe + 1);
if (hand.meter._currentframe >= 50) {
increase = false;
}
} else {
hand.meter.gotoAndStop(hand.meter._currentframe - 1);
if (hand.meter._currentframe <= 1) {
increase = true;
}
}
}
handRotation();
arrMotion();
};
lvlLost = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("gameOver");
};
lvlWon = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
if (!_root.select) {
_root.bonus = true;
_root.bonus2 = true;
_root.gotoAndStop("bonus");
} else {
_root.gotoAndStop("lblScore");
}
};
back.onRelease = function () {
if (shoot || (!pressed)) {
return(undefined);
}
pressed = false;
v = hand.meter._currentframe;
angle = radians;
g = 0.7;
w = 0;
vx = v * Math.cos(angle);
vy = v * Math.sin(angle);
ball._x = hand._x + (dshift * Math.cos(angle));
ball._y = hand._y + (dshift * Math.sin(angle));
trace((hand._x + " fdg ") + hand._y);
trace((ball._x + " fdg ") + ball._y);
hand.arr._visible = false;
ball._rotation = hand._rotation;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
_root.arr--;
shoot = true;
};
back.onPress = function () {
if (shoot) {
return(undefined);
}
pressed = true;
hand.meter._visible = true;
};
handRotation = function () {
var _local3 = _xmouse - hand._x;
var _local2 = _ymouse - hand._y;
radians = Math.atan2(_local2, _local3);
var _local1 = (radians * 180) / Math.PI;
if (_local1 < -100) {
_local1 = -100;
}
if (_local1 > 90) {
_local1 = 90;
}
hand._rotation = _local1;
};
arrMotion = function () {
if (stuck) {
return(undefined);
}
rot = (Math.atan2(vy, vx) * 180) / Math.PI;
ball._rotation = rot;
ball._x = ball._x + vx;
ball._y = ball._y + vy;
vy = vy + g;
if (((ball._y > 500) || (ball._x < -50)) || (ball._x > 800)) {
trace("arrow x " + ball._x);
trace("arrow y " + ball._y);
if (_root.cnt <= 0) {
lvlWon();
} else if (_root.arr <= 0) {
lvlLost();
}
v = 0;
shoot = false;
hand.arr._visible = true;
}
};
stop();
Frame 31
var g;
var vx;
var vy;
var xshift = 79.3;
var yshift = -9.7;
var dshift;
var pressed;
var increase;
var shoot;
var angle;
var stuck;
var radians;
var timer;
back.useHandCursor = false;
init = function () {
_root.cnt = 4;
_root.lvl = 19;
_root.bonus = false;
_root.arr = 3;
hearts.gotoAndStop(2);
_root.txtTarget.text = _root.cnt;
_root.txtHits.text = 0;
dshift = Math.sqrt((xshift * xshift) + (yshift * yshift));
v = 0;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
increase = true;
pressed = false;
shoot = false;
timer = setInterval(this, "bonusLvl", 15000);
_root.bonus2 = true;
};
bonusLvl = function () {
_root.bonus2 = false;
};
this.onEnterFrame = function () {
if (_root.lvl < 19) {
init();
}
arrMC.gotoAndStop(_root.arr + 1);
if (girl._x > 650) {
girl._x = -300;
}
girl._x++;
if (girl2._x > 650) {
girl2._x = -300;
}
girl2._x++;
_root.txtLvlScore.text = _root.lvlScore;
if (pressed) {
if (increase) {
hand.meter.gotoAndStop(hand.meter._currentframe + 1);
if (hand.meter._currentframe >= 50) {
increase = false;
}
} else {
hand.meter.gotoAndStop(hand.meter._currentframe - 1);
if (hand.meter._currentframe <= 1) {
increase = true;
}
}
}
handRotation();
arrMotion();
};
lvlLost = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("gameOver");
};
lvlWon = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("lblScore");
};
back.onRelease = function () {
if (shoot || (!pressed)) {
return(undefined);
}
pressed = false;
v = hand.meter._currentframe;
angle = radians;
g = 0.7;
w = 0;
vx = v * Math.cos(angle);
vy = v * Math.sin(angle);
ball._x = hand._x + (dshift * Math.cos(angle));
ball._y = hand._y + (dshift * Math.sin(angle));
trace((hand._x + " fdg ") + hand._y);
trace((ball._x + " fdg ") + ball._y);
hand.arr._visible = false;
ball._rotation = hand._rotation;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
_root.arr--;
shoot = true;
};
back.onPress = function () {
if (shoot) {
return(undefined);
}
pressed = true;
hand.meter._visible = true;
};
handRotation = function () {
var _local3 = _xmouse - hand._x;
var _local2 = _ymouse - hand._y;
radians = Math.atan2(_local2, _local3);
var _local1 = (radians * 180) / Math.PI;
if (_local1 < -100) {
_local1 = -100;
}
if (_local1 > 90) {
_local1 = 90;
}
hand._rotation = _local1;
};
arrMotion = function () {
if (stuck) {
return(undefined);
}
rot = (Math.atan2(vy, vx) * 180) / Math.PI;
ball._rotation = rot;
ball._x = ball._x + vx;
ball._y = ball._y + vy;
vy = vy + g;
if (((ball._y > 500) || (ball._x < -50)) || (ball._x > 800)) {
trace("arrow x " + ball._x);
trace("arrow y " + ball._y);
if (_root.cnt <= 0) {
lvlWon();
} else if (_root.arr <= 0) {
lvlLost();
}
v = 0;
shoot = false;
hand.arr._visible = true;
}
};
stop();
Frame 32
var g;
var vx;
var vy;
var xshift = 79.3;
var yshift = -9.7;
var dshift;
var pressed;
var increase;
var shoot;
var angle;
var stuck;
var radians;
var timer;
back.useHandCursor = false;
init = function () {
_root.cnt = 20;
_root.lvl = 20;
_root.bonus = false;
_root.arr = 5;
hearts.gotoAndStop(2);
_root.txtTarget.text = _root.cnt;
_root.txtHits.text = 0;
dshift = Math.sqrt((xshift * xshift) + (yshift * yshift));
v = 0;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
increase = true;
shoot = false;
pressed = false;
timer = setInterval(this, "bonusLvl", 15000);
_root.bonus2 = true;
};
bonusLvl = function () {
_root.bonus2 = false;
};
this.onEnterFrame = function () {
if (_root.lvl < 20) {
init();
}
arrMC.gotoAndStop(_root.arr + 1);
if (girl._x > 650) {
girl._x = -300;
}
girl._x++;
if (girl2._x > 650) {
girl2._x = -300;
}
girl2._x++;
if (girl3._x > 650) {
girl3._x = -300;
}
girl3._x++;
_root.txtLvlScore.text = _root.lvlScore;
if (pressed) {
if (increase) {
hand.meter.gotoAndStop(hand.meter._currentframe + 1);
if (hand.meter._currentframe >= 50) {
increase = false;
}
} else {
hand.meter.gotoAndStop(hand.meter._currentframe - 1);
if (hand.meter._currentframe <= 1) {
increase = true;
}
}
}
handRotation();
arrMotion();
};
lvlLost = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gotoAndStop("gameOver");
};
lvlWon = function () {
clearInterval(timer);
ball._y = 1000;
v = 0;
_root.gameCompleted = true;
_root.gotoAndStop("gratification");
};
back.onRelease = function () {
if (shoot || (!pressed)) {
return(undefined);
}
pressed = false;
v = hand.meter._currentframe;
angle = radians;
g = 0.7;
w = 0;
vx = v * Math.cos(angle);
vy = v * Math.sin(angle);
ball._x = hand._x + (dshift * Math.cos(angle));
ball._y = hand._y + (dshift * Math.sin(angle));
trace((hand._x + " fdg ") + hand._y);
trace((ball._x + " fdg ") + ball._y);
hand.arr._visible = false;
ball._rotation = hand._rotation;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
_root.arr--;
shoot = true;
};
back.onPress = function () {
if (shoot) {
return(undefined);
}
pressed = true;
hand.meter._visible = true;
};
handRotation = function () {
var _local3 = _xmouse - hand._x;
var _local2 = _ymouse - hand._y;
radians = Math.atan2(_local2, _local3);
var _local1 = (radians * 180) / Math.PI;
if (_local1 < -100) {
_local1 = -100;
}
if (_local1 > 90) {
_local1 = 90;
}
hand._rotation = _local1;
};
arrMotion = function () {
if (stuck) {
return(undefined);
}
rot = (Math.atan2(vy, vx) * 180) / Math.PI;
ball._rotation = rot;
ball._x = ball._x + vx;
ball._y = ball._y + vy;
vy = vy + g;
if (((ball._y > 500) || (ball._x < -50)) || (ball._x > 800)) {
trace("arrow x " + ball._x);
trace("arrow y " + ball._y);
if (_root.cnt <= 0) {
lvlWon();
} else if (_root.arr <= 0) {
lvlLost();
}
v = 0;
shoot = false;
hand.arr._visible = true;
}
};
stop();
Frame 33
var g;
var vx;
var vy;
var xshift = 79.3;
var yshift = -9.7;
var dshift;
var pressed;
var increase;
var shoot;
var angle;
var stuck;
var time;
var radians;
var timer;
back.useHandCursor = false;
init = function () {
_root.bonus = false;
_root.bonus2 = false;
_root.arr = 10;
_root.cnt = 0;
_root.txtTarget.text = _root.cnt;
var _local4 = 0;
var _local3 = 25;
if (_root.lvl == 3) {
hearts.gotoAndStop(2);
} else if (_root.lvl == 6) {
hearts.gotoAndStop(3);
} else if (_root.lvl == 9) {
hearts.gotoAndStop(4);
} else if (_root.lvl == 12) {
hearts.gotoAndStop(5);
} else if (_root.lvl == 15) {
hearts.gotoAndStop(6);
} else if (_root.lvl == 18) {
hearts.gotoAndStop(7);
}
_root.txtHits._visible = true;
_root.txtTarget._visible = true;
_root.txtLvlScore._visible = true;
_root.hits._visible = true;
_root.score._visible = true;
_root.target._visible = true;
timerMC._visible = true;
arrMC._visible = true;
dshift = Math.sqrt((xshift * xshift) + (yshift * yshift));
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
increase = true;
pressed = false;
shoot = false;
time = 1;
timerID = setInterval(this, "timerFnc", 125);
};
timerFnc = function () {
time++;
timerMC.gotoAndStop(time);
if (time == 120) {
levelWon();
}
};
this.onEnterFrame = function () {
if (!_root.bonusStart) {
if (bonusAnimation._currentframe == 60) {
bonusAnimation.gotoAndPlay(1);
}
_root.txtHits.text = 0;
_root.txtTarget.text = 0;
_root.txtHits._visible = false;
_root.txtTarget._visible = false;
_root.txtLvlScore._visible = false;
_root.hits._visible = false;
_root.score._visible = false;
_root.target._visible = false;
timerMC._visible = false;
arrMC._visible = false;
return(undefined);
}
if (_root.bonus || (_root.bonus2)) {
init();
}
arrMC.gotoAndStop(_root.arr + 1);
_root.txtLvlScore.text = _root.lvlScore;
if (pressed) {
if (increase) {
hand.meter.gotoAndStop(hand.meter._currentframe + 1);
if (hand.meter._currentframe >= 50) {
increase = false;
}
} else {
hand.meter.gotoAndStop(hand.meter._currentframe - 1);
if (hand.meter._currentframe <= 1) {
increase = true;
}
}
}
handRotation();
arrMotion();
};
levelWon = function () {
clearInterval(timerID);
hand.meter.gotoAndStop(1);
_root.bonusStart = false;
ball._x = 5000;
ball._y = 5000;
if (_root.lvl == 20) {
_root.gotoAndStop("gratification");
} else {
_root.gotoAndStop("lblScore");
}
};
back.onRelease = function () {
if (!_root.bonusStart) {
return(undefined);
}
if (shoot || (!pressed)) {
return(undefined);
}
pressed = false;
v = hand.meter._currentframe;
angle = radians;
g = 0.7;
w = 0;
vx = v * Math.cos(angle);
vy = v * Math.sin(angle);
ball._x = hand._x + (dshift * Math.cos(angle));
ball._y = hand._y + (dshift * Math.sin(angle));
trace((hand._x + " fdg ") + hand._y);
trace((ball._x + " fdg ") + ball._y);
hand.arr._visible = false;
ball._rotation = hand._rotation;
hand.meter.gotoAndStop(1);
hand.meter._visible = false;
_root.arr--;
shoot = true;
};
back.onPress = function () {
if (!_root.bonusStart) {
return(undefined);
}
if (shoot) {
return(undefined);
}
pressed = true;
hand.meter._visible = true;
};
handRotation = function () {
var _local3 = _xmouse - hand._x;
var _local2 = _ymouse - hand._y;
radians = Math.atan2(_local2, _local3);
var _local1 = (radians * 180) / Math.PI;
if (_local1 < -100) {
_local1 = -100;
}
if (_local1 > 90) {
_local1 = 90;
}
hand._rotation = _local1;
};
arrMotion = function () {
if (stuck) {
return(undefined);
}
rot = (Math.atan2(vy, vx) * 180) / Math.PI;
ball._rotation = rot;
ball._x = ball._x + vx;
ball._y = ball._y + vy;
vy = vy + g;
if (((ball._y > 500) || (ball._x < -50)) || (ball._x > 800)) {
trace("arrow x " + ball._x);
trace("arrow y " + ball._y);
if (_root.arr <= 0) {
lvlLost();
}
v = 0;
shoot = false;
hand.arr._visible = true;
}
};
stop();
Frame 34
btnNext.onRelease = function () {
_root.txtHits._visible = true;
_root.txtTarget._visible = true;
_root.txtLvlScore._visible = true;
_root.hits._visible = true;
_root.score._visible = true;
_root.target._visible = true;
timerMC._visible = true;
arrMC._visible = true;
_root.gameCompleted = true;
_root.gotoAndStop("gameOver");
};
Frame 35
stop();
btnPlayAgain.onRelease = function () {
_root.gameScore = 0;
_root.lvlScore = 0;
_root.bonus = false;
_root.bonus2 = false;
if (_root.gameCompleted) {
_root.gameCompleted = false;
_root.lvl = 0;
_root.gotoAndStop("lblgame");
} else {
str = "lvl" + _root.lvl;
_root.lvl--;
_root.gotoAndStop(str);
}
};
if (_root.gameCompleted) {
_root.gameScore = _root.gameScore + _root.lvlScore;
}
_root.lvlScore = 0;
txtScore.text = _root.gameScore;
_root.txtHits._visible = true;
_root.txtTarget._visible = true;
_root.txtLvlScore._visible = true;
_root.hits._visible = true;
_root.score._visible = true;
_root.target._visible = true;
timerMC._visible = true;
arrMC._visible = true;
Instance of Symbol 419 MovieClip in Frame 35
onClipEvent (load) {
this.swapDepths(100033);
docount = false;
}
onClipEvent (enterFrame) {
if (docount) {
trycount++;
if ((_level2.getBytesTotal() == -1) && (trycount > 60)) {
docount = false;
trycount = 0;
}
}
}
Instance of Symbol 119 MovieClip in Frame 35
on (release) {
this.gotoAndPlay(_currentframe + 1);
}
Frame 36
btnCancel.onRelease = function () {
_root.gotoAndStop("lblgame");
};
Frame 37
btnPlayAgain.onRelease = function () {
str = "lvl" + _root.lvl;
_root.gotoAndStop(str);
};
Symbol 15 Button
on (release) {
_parent.gotoAndStop("lblloader");
}
Symbol 25 Button
on (release) {
getURL ("http://www.addictinggames.com", "_blank");
}
Symbol 72 MovieClip Frame 58
stop();
Symbol 73 MovieClip Frame 104
_parent.gotoAndStop("lblloader");
Symbol 112 MovieClip Frame 180
_root.mcSkip._visible = false;
Symbol 112 MovieClip Frame 216
_root.gotoAndStop("lblgame");
Symbol 119 MovieClip Frame 1
stop();
_root.allSounds.setVolume(100);
Symbol 119 MovieClip Frame 2
stop();
_root.allSounds.setVolume(0);
Symbol 124 Button
on (release) {
credit_mc.gotoAndPlay(2);
}
Symbol 125 Button
on (rollOver) {
bb.useHandCursor = false;
}
Symbol 130 Button
on (release) {
getURL ("http://www.addictinggames.com", "_blank");
}
Symbol 199 MovieClip Frame 97
stop();
Symbol 204 Button
on (release) {
_parent.gotoAndStop(1);
}
Symbol 205 MovieClip Frame 1
stop();
Instance of Symbol 135 MovieClip in Symbol 205 MovieClip Frame 39
on (release) {
getURL ("http://www.games2win.com/?utm_campaign=ag&utm_source=heart_breaker&medium=game", "_blank");
}
Symbol 205 MovieClip Frame 40
stop();
Instance of Symbol 199 MovieClip in Symbol 205 MovieClip Frame 40
on (release) {
getURL ("http://www.games2win.com/?utm_campaign=ag&utm_source=heart_breaker&medium=game", "_blank");
}
Symbol 206 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 18
stop();
G2W_CREDIT.gotoAndPlay(2);
Symbol 256 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 1
var timerID;
var ready;
this.onEnterFrame = function () {
if (this.ready == 1) {
return(undefined);
}
if (_root.ball.head.hitTest(girl)) {
this.ready = 1;
_root.lvlScore = _root.lvlScore + 1000;
_root.bonus = true;
_root.sndGal.start();
this.heart.gotoAndPlay(2);
this.timerID = setInterval(this, "delay", 500);
}
};
delay = function () {
clearInterval(this.timerID);
this.ready = 0;
};
Symbol 268 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 9
_root.ball._y = 500;
_root.stuck = false;
_root.ball.gotoAndStop(1);
trace("dsfa");
Symbol 272 MovieClip Frame 1
stop();
Symbol 272 MovieClip Frame 2
stop();
Symbol 278 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.ball.head.hitTest(heart)) {
var _local3;
_local3 = _root.txtHits.text;
_local3++;
_root.lvlScore = _root.lvlScore + 200;
_root.txtHits.text = _local3;
_root.cnt--;
this.gotoAndPlay(2);
delete this.onEnterFrame;
}
};
stop();
Symbol 278 MovieClip Frame 8
stop();
Symbol 282 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.ball.head.hitTest(heart)) {
var _local3;
_local3 = _root.txtHits.text;
_local3++;
_root.lvlScore = _root.lvlScore + 500;
_root.txtHits.text = _local3;
_root.cnt--;
this.gotoAndPlay(2);
delete this.onEnterFrame;
}
};
stop();
Symbol 282 MovieClip Frame 8
stop();
Symbol 283 MovieClip Frame 1
stop();
Symbol 298 MovieClip Frame 1
stop();
Symbol 327 MovieClip Frame 1
var timerID;
var ready;
this.onEnterFrame = function () {
if (this.ready == 1) {
return(undefined);
}
if (_root.ball.head.hitTest(girl)) {
this.ready = 1;
_root.lvlScore = _root.lvlScore + 1000;
_root.bonus = true;
_root.sndGal.start();
this.heart.gotoAndPlay(2);
this.timerID = setInterval(this, "delay", 500);
}
};
delay = function () {
clearInterval(this.timerID);
this.ready = 0;
};
Symbol 328 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 1
var timerID;
var ready;
this.onEnterFrame = function () {
if (this.ready == 1) {
return(undefined);
}
if (_root.ball.head.hitTest(girl)) {
this.ready = 1;
_root.lvlScore = _root.lvlScore + 1000;
_root.bonus = true;
_root.sndGal.start();
this.heart.gotoAndPlay(2);
this.timerID = setInterval(this, "delay", 500);
}
};
delay = function () {
clearInterval(this.timerID);
this.ready = 0;
};
Symbol 352 MovieClip Frame 1
var timerID;
var ready;
this.onEnterFrame = function () {
if (this.ready == 1) {
return(undefined);
}
if (_root.ball.head.hitTest(rubberBrick)) {
this.ready = 1;
trace("ready " + this.ready);
_root.sndRubberBounce.start();
_root.vy = _root.vy - (_root.vy / 5);
_root.vy = _root.vy * -1;
if (_root.vy < 0) {
_root.ball._y = _root.ball._y - 45;
} else {
_root.ball._y = _root.ball._y + 45;
}
this.timerID = setInterval(this, "delay", 100);
}
};
delay = function () {
clearInterval(this.timerID);
this.ready = 0;
};
Symbol 354 MovieClip Frame 1
stop();
Symbol 354 MovieClip Frame 2
stop();
Symbol 356 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_root.ball.head.hitTest(woodBrick)) {
if (_root.stuck) {
return(undefined);
}
_root.vx = 0;
_root.vy = 0;
_root.stuck = true;
_root.ball.gotoAndPlay("alpha");
this.gotoAndPlay(2);
}
};
Symbol 356 MovieClip Frame 11
stop();
Symbol 359 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.ball.head.hitTest(steelBrick)) {
if (_root.stuck) {
return(undefined);
}
_root.sndSteelHit.start();
_root.vx = 0;
_root.vy = 0;
_root.stuck = true;
_root.ball.gotoAndPlay("alpha");
}
};
Symbol 360 MovieClip Frame 1
stop();
Symbol 361 MovieClip Frame 1
var timerID;
var ready;
this.onEnterFrame = function () {
if (this.ready == 1) {
return(undefined);
}
if (_root.ball.head.hitTest(rubberBrick)) {
this.ready = 1;
trace("ready " + this.ready);
_root.sndRubberBounce.start();
_root.vx = _root.vx - (_root.vx / 5);
_root.vx = _root.vx * -1;
if (_root.vx < 0) {
_root.ball._x = _root.ball._x - 45;
} else {
_root.ball._x = _root.ball._x + 45;
}
this.timerID = setInterval(this, "delay", 100);
}
};
delay = function () {
clearInterval(this.timerID);
this.ready = 0;
};
Symbol 362 MovieClip Frame 1
stop();
Symbol 363 MovieClip Frame 1
stop();
Symbol 364 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 1
stop();
Symbol 366 MovieClip Frame 1
stop();
Symbol 367 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 1
stop();
Symbol 369 MovieClip Frame 1
stop();
Symbol 370 MovieClip Frame 1
stop();
Symbol 371 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 1
stop();
Symbol 373 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 1
stop();
Symbol 375 MovieClip Frame 1
stop();
Symbol 376 MovieClip Frame 1
stop();
Symbol 377 MovieClip Frame 1
stop();
Symbol 383 MovieClip Frame 1
stop();
Symbol 386 MovieClip Frame 60
_root.bonusStart = true;
stop();
Symbol 393 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 1
_root._trackClickThru(this);
Symbol 417 Button
on (release) {
_root.swHighScoreObject.showTab = "view";
docount = true;
loadMovieNum (_root.HSHubURL, 2);
}
Symbol 418 Button
on (release) {
_root.swHighScoreObject.showTab = "submit";
docount = true;
loadMovieNum (_root.HSHubURL, 2);
}
Symbol 419 MovieClip Frame 1
trace("SCORE : " + _root.score);
if (_root.score <= 10) {
_root.score = 10;
} else {
_root.score = _root.score;
}
_level0.swHighScoreObject.player1Score = _root.gameScore;
trace("_level0.swHighScoreObject.player1Score " + _level0.swHighScoreObject.player1Score);