Frame 3
function spawnJib(jibType, xToBe, yToBe) {
jibCounter++;
if (jibCounter > 20) {
jibCounter = 1;
}
var newName = ("jib_" + jibCounter);
duplicateMovieClip (jib_master, newName, jibCounter);
eval (newName).xToBe = xToBe;
eval (newName).yToBe = yToBe;
eval (newName).gotoAndPlay("prepToSpawn");
eval (newName).jibType = jibType;
}
function evaluateSwing(xToBe, yToBe) {
carmelita.faceomatic.breeze();
var temp = "";
var nakedCount = 0;
var nakedString = "";
i = 0;
while (i < 8) {
temp = movieList[i];
if (eval (temp).hitTest(xToBe, yToBe, true)) {
eval (temp).evaluateHit(xToBe, yToBe);
}
if (eval (temp).naked) {
nakedCount++;
}
i++;
}
if (nakedCount == 8) {
gotoAndPlay (5);
}
}
jibCounter = 0;
gamePhase = 1;
movieList = new Array(8);
movieList[0] = "carmelita.leftHand";
movieList[1] = "carmelita.rightHand";
movieList[2] = "carmelita.leftJacket";
movieList[3] = "carmelita.rightJacket";
movieList[4] = "carmelita.tits";
movieList[5] = "carmelita.rightLeg";
movieList[6] = "carmelita.leftLeg";
movieList[7] = "carmelita.pants";
Instance of Symbol 51 MovieClip "carmelita" in Frame 3
/* no clip actions */
Frame 4
stop();
Frame 6
stop();
Symbol 5 MovieClip Frame 2
stop();
Symbol 5 MovieClip Frame 10
stop();
Symbol 5 MovieClip Frame 20
stop();
Symbol 5 MovieClip Frame 29
stop();
Symbol 5 MovieClip Frame 37
stop();
Symbol 14 MovieClip Frame 1
function updateExpressions() {
currentExpression++;
if (currentExpression > 8) {
currentExpression = 8;
}
gotoAndPlay((currentExpression * 2) + 1);
}
currentExpression = 0;
Symbol 14 MovieClip Frame 2
stop();
Symbol 14 MovieClip Frame 4
stop();
Symbol 14 MovieClip Frame 6
stop();
Symbol 14 MovieClip Frame 7
_parent.eyes.gotoAndPlay("lookDown");
Symbol 14 MovieClip Frame 8
stop();
Symbol 14 MovieClip Frame 9
_parent.eyes.gotoAndPlay("lookUp");
Symbol 14 MovieClip Frame 10
stop();
Symbol 14 MovieClip Frame 11
_parent.eyes.gotoAndPlay("lookLeft");
Symbol 14 MovieClip Frame 12
stop();
Symbol 14 MovieClip Frame 14
stop();
Symbol 14 MovieClip Frame 16
stop();
Symbol 14 MovieClip Frame 18
stop();
Symbol 15 MovieClip Frame 1
function breeze() {
hair1.gotoAndPlay("breeze");
hair2.gotoAndPlay("breeze");
hair3.gotoAndPlay("breeze");
hair4.gotoAndPlay("breeze");
hair5.gotoAndPlay("breeze");
}
Symbol 15 MovieClip Frame 2
stop();
Symbol 18 MovieClip Frame 1
function evaluateHit(xToBe, yToBe) {
if (!(phase === 1)) {
} else {
hp--;
if (hp <= 0) {
phase = 2;
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent.coverupLeft.gotoAndPlay("naked");
naked = true;
gotoAndPlay (5);
} else {
_parent._parent.spawnJib("tan1", xToBe, yToBe);
}
}
}
phase = 0;
hp = 0;
naked = false;
Symbol 18 MovieClip Frame 2
stop();
Symbol 18 MovieClip Frame 4
stop();
Symbol 18 MovieClip Frame 6
stop();
Symbol 20 MovieClip Frame 1
function evaluateHit(xToBe, yToBe) {
if (!(phase === 1)) {
} else {
hp--;
if (hp <= 0) {
phase = 2;
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent.coverupRight.gotoAndPlay("naked");
naked = true;
gotoAndPlay (3);
} else {
_parent._parent.spawnJib("tan1", xToBe, yToBe);
}
}
}
phase = 0;
hp = 0;
naked = false;
Symbol 20 MovieClip Frame 2
stop();
Symbol 20 MovieClip Frame 4
stop();
Symbol 26 MovieClip Frame 2
stop();
Symbol 26 MovieClip Frame 10
stop();
Symbol 28 MovieClip Frame 2
stop();
Symbol 28 MovieClip Frame 10
stop();
Symbol 29 MovieClip Frame 1
function evaluateHit(xToBe, yToBe) {
switch (phase) {
case 1 :
hp--;
if (hp <= 0) {
phase = 2;
hp = 5;
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
gotoAndPlay (3);
} else {
_parent._parent.spawnJib("blue1", xToBe, yToBe);
}
return;
case 2 :
hp--;
if (hp <= 0) {
phase = 3;
hp = 5;
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent.faceomatic.expressions.updateExpressions();
gotoAndPlay (5);
} else {
_parent._parent.spawnJib("blue2", xToBe, yToBe);
}
return;
case 3 :
hp--;
if (hp <= 0) {
phase = 4;
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent.faceomatic.expressions.updateExpressions();
naked = true;
gotoAndPlay (7);
} else {
_parent._parent.spawnJib("blue2", xToBe, yToBe);
_parent._parent.spawnJib("blue1", xToBe, yToBe);
}
return;
case 4 :
if (bouncyLeft.hitTest(xToBe, yToBe, true)) {
bouncyLeft.gotoAndPlay("bounce");
} else {
bouncyRight.gotoAndPlay("bounce");
}
}
}
phase = 0;
hp = 0;
naked = false;
Symbol 29 MovieClip Frame 2
stop();
Symbol 29 MovieClip Frame 4
stop();
Symbol 29 MovieClip Frame 6
stop();
Symbol 29 MovieClip Frame 8
stop();
Symbol 33 MovieClip Frame 1
function evaluateHit(xToBe, yToBe) {
switch (phase) {
case 1 :
hp--;
if (hp <= 0) {
phase = 2;
hp = 5;
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
gotoAndPlay (3);
} else {
_parent._parent.spawnJib("blue1", xToBe, yToBe);
}
return;
case 2 :
hp--;
if (hp <= 0) {
phase = 3;
hp = 5;
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
gotoAndPlay (5);
} else {
_parent._parent.spawnJib("blue2", xToBe, yToBe);
}
return;
case 3 :
hp--;
if (hp <= 0) {
phase = 4;
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent.faceomatic.expressions.updateExpressions();
_parent.leftLeg.phase = 1;
_parent.leftLeg.hp = 5;
_parent.leftLeg.gotoAndPlay("phase1");
_parent.rightLeg.phase = 1;
_parent.rightLeg.hp = 5;
_parent.rightLeg.gotoAndPlay("phase1");
naked = true;
gotoAndPlay (7);
} else {
_parent._parent.spawnJib("blue2", xToBe, yToBe);
_parent._parent.spawnJib("blue1", xToBe, yToBe);
}
}
}
phase = 0;
hp = 0;
naked = false;
Symbol 33 MovieClip Frame 2
stop();
Symbol 33 MovieClip Frame 4
stop();
Symbol 33 MovieClip Frame 6
stop();
Symbol 33 MovieClip Frame 8
stop();
Symbol 36 MovieClip Frame 1
function evaluateHit(xToBe, yToBe) {
switch (phase) {
case 1 :
hp--;
if (hp <= 0) {
phase = 2;
hp = 5;
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent.faceomatic.expressions.updateExpressions();
gotoAndPlay (5);
} else {
_parent._parent.spawnJib("blue1", xToBe, yToBe);
}
return;
case 2 :
hp--;
if (hp <= 0) {
phase = 3;
hp = 5;
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent.faceomatic.expressions.updateExpressions();
naked = true;
gotoAndPlay (7);
} else {
_parent._parent.spawnJib("blue2", xToBe, yToBe);
}
}
}
phase = 0;
hp = 0;
naked = false;
Symbol 36 MovieClip Frame 2
stop();
Symbol 36 MovieClip Frame 4
stop();
Symbol 36 MovieClip Frame 6
stop();
Symbol 36 MovieClip Frame 8
stop();
Symbol 39 MovieClip Frame 1
function evaluateHit(xToBe, yToBe) {
switch (phase) {
case 1 :
hp--;
if (hp <= 0) {
phase = 2;
hp = 5;
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent.faceomatic.expressions.updateExpressions();
gotoAndPlay (5);
} else {
_parent._parent.spawnJib("blue1", xToBe, yToBe);
}
return;
case 2 :
hp--;
if (hp <= 0) {
phase = 3;
hp = 5;
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent._parent.spawnJib("coin", xToBe, yToBe);
_parent.faceomatic.expressions.updateExpressions();
naked = true;
gotoAndPlay (7);
} else {
_parent._parent.spawnJib("blue2", xToBe, yToBe);
}
}
}
phase = 0;
hp = 0;
naked = false;
Symbol 39 MovieClip Frame 2
stop();
Symbol 39 MovieClip Frame 4
stop();
Symbol 39 MovieClip Frame 6
stop();
Symbol 39 MovieClip Frame 8
stop();
Symbol 41 MovieClip Frame 2
stop();
Symbol 41 MovieClip Frame 4
stop();
Symbol 43 MovieClip Frame 2
stop();
Symbol 43 MovieClip Frame 4
stop();
Symbol 46 MovieClip Frame 1
function evaluateHit(xToBe, yToBe) {
if (phase == 1) {
phase = 2;
_parent._parent.spawnJib("cuffs", xToBe, yToBe);
gotoAndPlay (3);
_parent.faceomatic.expressions.updateExpressions();
naked = true;
if (_parent.leftHand.phase >= 2) {
_parent.tits.phase = 1;
_parent.tits.hp = 5;
_parent.pants.phase = 1;
_parent.pants.hp = 5;
_parent.leftJacket.phase = 1;
_parent.leftJacket.hp = 5;
_parent.rightJacket.phase = 1;
_parent.rightJacket.hp = 5;
}
}
}
phase = 1;
naked = false;
Symbol 46 MovieClip Frame 2
stop();
Symbol 46 MovieClip Frame 4
stop();
Symbol 49 MovieClip Frame 1
function evaluateHit(xToBe, yToBe) {
if (phase == 1) {
phase = 2;
_parent._parent.spawnJib("gun", xToBe, yToBe);
gotoAndPlay (3);
_parent.gotoAndPlay("empty");
_parent.leftJacket.gotoAndPlay("phase1");
_parent.faceomatic.expressions.updateExpressions();
naked = true;
if (_parent.rightHand.phase >= 2) {
_parent.tits.phase = 1;
_parent.tits.hp = 5;
_parent.pants.phase = 1;
_parent.pants.hp = 5;
_parent.leftJacket.phase = 1;
_parent.leftJacket.hp = 5;
_parent.rightJacket.phase = 1;
_parent.rightJacket.hp = 5;
}
}
}
phase = 1;
naked = false;
Symbol 49 MovieClip Frame 2
stop();
Symbol 49 MovieClip Frame 4
stop();
Symbol 51 MovieClip Frame 2
stop();
Symbol 51 MovieClip Frame 4
stop();
Symbol 56 MovieClip Frame 2
stop();
Symbol 56 MovieClip Frame 8
_parent.evaluateSwing(this._x, this._y);
Symbol 56 MovieClip Frame 13
this._x = -100;
this._y = -100;
this._rotation = 0;
gotoAndPlay (1);
Symbol 58 Button
on (release) {
gaff._rotation = (Math.random() * 60) - 30;
gaff._x = _xmouse;
gaff._y = _ymouse;
gaff.gotoAndPlay("swing");
}
Symbol 59 Button
on (release) {
carmelita.faceomatic.breeze();
carmelita.leftHand.gotoAndPlay("empty");
carmelita.gotoAndPlay("empty");
carmelita.leftJacket.gotoAndPlay("empty");
spawnJib("gun");
}
Symbol 70 MovieClip Frame 11
gotoAndPlay (1);
Symbol 71 MovieClip Frame 2
stop();
Symbol 71 MovieClip Frame 4
stop();
Symbol 71 MovieClip Frame 6
stop();
Symbol 71 MovieClip Frame 8
stop();
Symbol 71 MovieClip Frame 10
stop();
Symbol 71 MovieClip Frame 12
stop();
Symbol 71 MovieClip Frame 14
stop();
Symbol 71 MovieClip Frame 16
stop();
Symbol 72 MovieClip Frame 1
function updateJib() {
potentialX = this._x + xSpeed;
potentialY = this._y + ySpeed;
if (((potentialX > 800) || (potentialX < -100)) || (potentialY > 600)) {
this.removeMovieClip();
} else {
this._x = potentialX;
this._y = potentialY;
ySpeed = ySpeed + gravity;
gotoAndPlay (3);
}
}
function resetJib() {
xSpeed = 0;
ySpeed = 0;
this._x = -100;
this._y = -100;
gotoAndPlay (1);
}
gravity = 5;
Symbol 72 MovieClip Frame 2
stop();
Symbol 72 MovieClip Frame 4
updateJib();
Symbol 72 MovieClip Frame 6
jib_container.gotoAndPlay(jibType);
if (jibType != "coin") {
jib_container._rotation = Math.random() * 360;
}
this._x = xToBe;
this._y = yToBe;
xSpeed = (Math.random() * 40) - 20;
ySpeed = (Math.random() * -20) - 20;
Symbol 72 MovieClip Frame 7
gotoAndPlay (3);
Symbol 75 Button
on (release) {
gotoAndPlay (1);
}