Section 1
//MainTimeline (RedHeadRevolver_fla.MainTimeline)
package RedHeadRevolver_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var soundChannel:SoundChannel;
public var gunShot_snd:SND_gunShot;
public var _introPart:int;
public var _targetType:Array;
public var explode_snd:SND_explode;
public var position1_mc:MovieClip;
public var target0_mc:MovieClip;
public var _lives:int;
public var pointer1_mc:MovieClip;
public var position4_mc:MovieClip;
public var target3_mc:MovieClip;
public var _targetHealth:Array;
public var pointer4_mc:MovieClip;
public var bellHit_snd:SND_bellHit;
public var score_txt:TextField;
public var percent:Number;
public var intro_mc:MovieClip;
public var _targetRotation:Array;
public var _accuracy:Number;
public var _finalScore:int;
public var endGameScreen_mc:MovieClip;
public var bounds_mc:MovieClip;
public var _multiplier:Array;
public var hitBottle_snd:SND_hitBottle;
public var position2_mc:MovieClip;
public var slowDown_snd:SND_slowDown;
public var hitCan_snd:SND_hitCan;
public var target1_mc:MovieClip;
public var cock_snd:SND_cock;
public var pointer2_mc:MovieClip;
public var bonusStar_mc:MovieClip;
public var _round:int;
public var _newGameSpeed:int;
public var target4_mc:MovieClip;
public var _score:int;
public var _hitCount:int;
public var SlowMotion_mc:MovieClip;
public var _focusX:Number;
public var _focusY:Number;
public var livesHat_mc:MovieClip;
public var ammo_mc:MovieClip;
public var _starTimer:int;
public var _ammo:int;
public var position0_mc:MovieClip;
public var gunShotSlow_snd:SND_gunShotSlow;
public var dawn_mc:MovieClip;
public var _multiplierCount:int;
public var _targetState:Array;
public var pointer0_mc:MovieClip;
public var _targetSpeedX:Array;
public var _targetSpeedY:Array;
public var position3_mc:MovieClip;
public var lives_mc:MovieClip;
public var _starRotation:int;
public var crosshair_mc:MovieClip;
public var target2_mc:MovieClip;
public var pointer3_mc:MovieClip;
public var _starState:Boolean;
public var round_mc:MovieClip;
public var explode_Slow_snd:SND_explode_Slow;
public var beep_snd:SND_beep;
public var _i:int;
public var _missCount:int;
public var shot_mc:MovieClip;
public var _gameSpeed:Number;
public var _stage:int;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2);
}
public function targets(_arg1:Event):void{
_multiplierCount = ((((_multiplier[0] + _multiplier[1]) + _multiplier[2]) + _multiplier[3]) + _multiplier[4]);
if (_multiplierCount < 1){
_multiplierCount = 1;
};
_i = 0;
while (_i < _targetType.length) {
if (_targetState[_i] == 2){
getChildByName((("target" + _i) + "_mc")).x = (getChildByName((("target" + _i) + "_mc")).x - (_targetSpeedX[_i] * _gameSpeed));
getChildByName((("target" + _i) + "_mc")).y = (getChildByName((("target" + _i) + "_mc")).y - (_targetSpeedY[_i] * _gameSpeed));
getChildByName((("target" + _i) + "_mc")).rotation = (getChildByName((("target" + _i) + "_mc")).rotation + ((_targetSpeedX[_i] * _gameSpeed) * 2));
_multiplier[_i] = 1;
};
if (_targetState[_i] == 3){
getChildByName((("target" + _i) + "_mc")).y = (getChildByName((("target" + _i) + "_mc")).y - (1 * _gameSpeed));
getChildByName((("target" + _i) + "_mc")).scaleX = (getChildByName((("target" + _i) + "_mc")).scaleX + (0.02 * _gameSpeed));
getChildByName((("target" + _i) + "_mc")).scaleY = (getChildByName((("target" + _i) + "_mc")).scaleY + (0.01 * _gameSpeed));
MovieClip(getChildByName((("target" + _i) + "_mc"))).alpha = (MovieClip(getChildByName((("target" + _i) + "_mc"))).alpha - (0.02 * _gameSpeed));
_multiplier[_i] = 0;
};
if (MovieClip(getChildByName((("target" + _i) + "_mc"))).alpha <= 0){
_targetState[_i] = 4;
_multiplier[_i] = 0;
};
if (getChildByName((("target" + _i) + "_mc")).x < 0){
_targetSpeedX[_i] = (-1 * Math.abs(_targetSpeedX[_i]));
};
if (getChildByName((("target" + _i) + "_mc")).x > bounds_mc.width){
_targetSpeedX[_i] = Math.abs(_targetSpeedX[_i]);
};
if (getChildByName((("target" + _i) + "_mc")).y > (bounds_mc.height + getChildByName((("target" + _i) + "_mc")).height)){
_targetState[_i] = 5;
_multiplier[_i] = 0;
if (_lives > 0){
_lives--;
lives_mc.lives_txt.text = _lives.toString();
_targetState[_i] = 4;
};
getChildByName((("target" + _i) + "_mc")).x = (bounds_mc.width * 2);
getChildByName((("target" + _i) + "_mc")).y = 0;
};
if ((((_targetHealth[_i] > 0)) && ((getChildByName((("target" + _i) + "_mc")).y < 0)))){
MovieClip(getChildByName((("pointer" + _i) + "_mc"))).visible = true;
getChildByName((("pointer" + _i) + "_mc")).y = 0;
getChildByName((("pointer" + _i) + "_mc")).x = getChildByName((("target" + _i) + "_mc")).x;
} else {
MovieClip(getChildByName((("pointer" + _i) + "_mc"))).visible = false;
};
_targetSpeedY[_i] = (_targetSpeedY[_i] - (((0.1 * bounds_mc.scaleY) * _gameSpeed) * 0.25));
_i++;
};
if (_starState == true){
bonusStar_mc.x = (bonusStar_mc.x - ((bonusStar_mc.x - (bounds_mc.width / 2)) / 8));
bonusStar_mc.y = (bonusStar_mc.y - ((bonusStar_mc.y - (bounds_mc.height / 2)) / 8));
bonusStar_mc.rotation = (bonusStar_mc.rotation - _starRotation);
if (_starRotation > 0){
_starRotation--;
} else {
_newGameSpeed = 1;
};
if (_gameSpeed > _newGameSpeed){
_gameSpeed = (_gameSpeed - 0.1);
};
if (SlowMotion_mc.alpha < 1){
SlowMotion_mc.alpha = (SlowMotion_mc.alpha + 0.02);
};
_starTimer--;
if (_starTimer <= 0){
_starState = false;
};
};
if (_starTimer <= 0){
if (SlowMotion_mc.alpha > 0){
SlowMotion_mc.alpha = (SlowMotion_mc.alpha - 0.02);
};
if (SlowMotion_mc.alpha <= 0){
SlowMotion_mc.visible = false;
};
if (bonusStar_mc.alpha > 0){
bonusStar_mc.alpha = (bonusStar_mc.alpha - 0.04);
};
_newGameSpeed = 4;
if (_gameSpeed < _newGameSpeed){
_gameSpeed = (_gameSpeed + 0.1);
};
};
}
public function keyPressedDown(_arg1:KeyboardEvent):void{
var _local2:uint = _arg1.keyCode;
if (_ammo < 6){
if (_local2 == 82){
_ammo = 6;
ammo_mc.gotoAndStop(1);
cock_snd.play();
};
};
}
public function moneyBagOver(_arg1:MouseEvent):void{
endGameScreen_mc.bagAnimation_mc.play();
}
public function shoot(_arg1:MouseEvent):void{
if (_ammo > 0){
_ammo--;
ammo_mc.play();
if (_gameSpeed >= 4){
gunShot_snd.play();
} else {
gunShotSlow_snd.play();
};
_missCount++;
shot_mc.x = ((crosshair_mc.x + ((Math.random() * _focusX) * 2)) - _focusX);
shot_mc.y = ((crosshair_mc.y + ((Math.random() * _focusY) * 2)) - _focusY);
if (_focusX <= 3){
shot_mc.x = crosshair_mc.x;
shot_mc.y = crosshair_mc.y;
};
if (_focusX < 20){
_focusX = (_focusX + 10);
crosshair_mc.gotoAndStop(_focusX);
};
if (intro_mc.landscape_mc.details_mc.hitTestPoint(shot_mc.x, shot_mc.y, true)){
shot_mc.scaleX = (shot_mc.scaleY = 0.2);
shot_mc.alpha = 1.2;
shot_mc.rotation = (Math.random() * 360);
};
_i = 0;
while (_i < _targetType.length) {
if ((((((((_targetState[_i] == 1)) || ((_targetState[_i] == 3)))) || ((_targetState[_i] == 4)))) || ((_targetState[_i] == 5)))){
_multiplier[_i] = 0;
};
if (MovieClip(getChildByName((("target" + _i) + "_mc"))).hitTestPoint(shot_mc.x, shot_mc.y, false)){
if ((((_targetState[_i] == 1)) || ((_targetState[_i] == 2)))){
_hitCount++;
shot_mc.scaleX = (shot_mc.scaleY = 1);
shot_mc.alpha = 1.2;
shot_mc.rotation = (Math.random() * 360);
_targetSpeedY[_i] = (2 * bounds_mc.scaleY);
_targetSpeedX[_i] = ((shot_mc.x - getChildByName((("target" + _i) + "_mc")).x) / 10);
if (_targetHealth[_i] > 1){
if ((((_targetType[_i] == 1)) || ((_targetType[_i] == 2)))){
hitBottle_snd.play();
};
if (_targetType[_i] == 3){
hitCan_snd.play();
};
if (_targetType[_i] == 4){
hitCan_snd.play();
bellHit_snd.play();
};
if (_targetType[_i] == 5){
bellHit_snd.play();
beep_snd.play();
};
var _local2 = _targetHealth;
var _local3 = _i;
var _local4 = (_local2[_local3] - 1);
_local2[_local3] = _local4;
addChild(MovieClip(getChildByName((("target" + _i) + "_mc"))));
addChild(shot_mc);
addChild(crosshair_mc);
addChild(round_mc);
addChild(score_txt);
addChild(ammo_mc);
addChild(livesHat_mc);
addChild(lives_mc);
MovieClip(getChildByName((("target" + _i) + "_mc"))).type1.gotoAndStop(_targetHealth[_i]);
MovieClip(getChildByName((("target" + _i) + "_mc"))).type2.gotoAndStop(_targetHealth[_i]);
MovieClip(getChildByName((("target" + _i) + "_mc"))).type3.gotoAndStop(_targetHealth[_i]);
MovieClip(getChildByName((("target" + _i) + "_mc"))).type4.gotoAndStop(_targetHealth[_i]);
MovieClip(getChildByName((("target" + _i) + "_mc"))).type5.gotoAndStop(_targetHealth[_i]);
_score = (_score + (Math.pow(2, _multiplierCount) * 50));
score_txt.text = (_score.toString() + "$");
};
if (_targetHealth[_i] == 1){
if (_gameSpeed >= 4){
explode_snd.play();
} else {
explode_Slow_snd.play();
};
if (_targetType[_i] == 2){
slowDown_snd.play();
bonusStar_mc.alpha = 1;
bonusStar_mc.rotation = getChildByName((("target" + _i) + "_mc")).rotation;
bonusStar_mc.x = getChildByName((("target" + _i) + "_mc")).x;
bonusStar_mc.y = getChildByName((("target" + _i) + "_mc")).y;
SlowMotion_mc.x = (bounds_mc.width / 2);
SlowMotion_mc.y = (bounds_mc.height / 2);
SlowMotion_mc.visible = true;
SlowMotion_mc.alpha = 0;
_starRotation = 45;
_newGameSpeed = 4;
_starTimer = 320;
_starState = true;
};
_multiplier[_i] = 0;
_targetHealth[_i] = 0;
_targetState[_i] = 3;
_score = (_score + (Math.pow(2, _multiplierCount) * 150));
score_txt.text = (_score.toString() + "$");
} else {
_targetState[_i] = 2;
};
};
};
_i++;
};
} else {
cock_snd.play();
};
}
public function loadProgress(_arg1:ProgressEvent):void{
percent = ((_arg1.bytesLoaded / _arg1.bytesTotal) * 100);
}
public function gameStage(_arg1:Event):void{
if (_stage == 1){
removeEventListener(Event.ENTER_FRAME, rounds);
removeEventListener(Event.ENTER_FRAME, aiming);
stage.removeEventListener(MouseEvent.MOUSE_UP, shoot);
removeEventListener(Event.ENTER_FRAME, targets);
endGameScreen_mc.bagAnimation_mc.moneyBag_mc.removeEventListener(MouseEvent.MOUSE_OVER, moneyBagOver);
endGameScreen_mc.bagAnimation_mc.moneyBag_mc.removeEventListener(MouseEvent.MOUSE_UP, takeMoneyBag);
endGameScreen_mc.bagAnimation_mc.moneyBag_mc.buttonMode = false;
endGameScreen_mc.reward_txt.text = (_finalScore.toString() + "$");
endGameScreen_mc.bagAnimation_mc.moneyBag_mc.gotoAndStop(Math.round((_finalScore / 1000)));
endGameScreen_mc.reset_mc.visible = false;
lives_mc.visible = false;
livesHat_mc.visible = false;
ammo_mc.visible = false;
crosshair_mc.visible = false;
shot_mc.visible = false;
SlowMotion_mc.visible = false;
dawn_mc.visible = false;
Mouse.show();
lives_mc.lives_txt.selectable = false;
score_txt.selectable = false;
round_mc.round_txt.selectable = false;
score_txt.text = "";
round_mc.round_txt.text = "";
roundSetup(_round);
if (_introPart == 1){
intro_mc.gotoAndStop(1);
intro_mc.revolver_mc.thumb_mc.gotoAndStop(1);
_introPart = 2;
};
if ((((_introPart == 2)) || ((_introPart == 4)))){
intro_mc.play();
};
if ((((_introPart == 2)) && ((intro_mc.currentFrame == 152)))){
intro_mc.stop();
intro_mc.introBottle_mc.buttonMode = true;
intro_mc.introBottle_mc.addEventListener(MouseEvent.MOUSE_UP, introProgress);
};
if (_introPart == 3){
intro_mc.revolver_mc.thumb_mc.play();
intro_mc.revolver_mc.cylinder_mc.play();
intro_mc.introBottle_mc.buttonMode = false;
};
if ((((_introPart == 3)) && ((intro_mc.revolver_mc.thumb_mc.currentFrame == 14)))){
intro_mc.revolver_mc.thumb_mc.stop();
_introPart = 4;
};
if ((((_introPart == 4)) && ((intro_mc.currentFrame == 228)))){
intro_mc.stop();
_stage = 2;
_round = 1;
roundSetup(_round);
};
};
if (_stage == 2){
addEventListener(Event.ENTER_FRAME, rounds);
addEventListener(Event.ENTER_FRAME, aiming);
stage.addEventListener(MouseEvent.MOUSE_UP, shoot);
addEventListener(Event.ENTER_FRAME, targets);
ammo_mc.addEventListener(MouseEvent.CLICK, reload);
lives_mc.visible = true;
livesHat_mc.visible = true;
ammo_mc.visible = true;
crosshair_mc.visible = true;
shot_mc.visible = true;
};
if (_stage == 3){
Mouse.show();
removeEventListener(Event.ENTER_FRAME, targets);
_accuracy = Math.round(((_hitCount / _missCount) * 100));
_accuracy = (_accuracy / 100);
if (_accuracy > 1){
_accuracy = 1;
};
lives_mc.visible = false;
livesHat_mc.visible = false;
ammo_mc.visible = false;
crosshair_mc.visible = false;
shot_mc.visible = false;
if ((((_score * _accuracy) - _finalScore) / 10) > 1){
beep_snd.play();
endGameScreen_mc.CASH_mc.visible = true;
endGameScreen_mc.ACCURACY_mc.visible = true;
endGameScreen_mc.REWARD_mc.visible = true;
_finalScore = (_finalScore + (((_score * _accuracy) - _finalScore) / 10));
endGameScreen_mc.reward_txt.text = (_finalScore.toString() + "$");
endGameScreen_mc.bagAnimation_mc.moneyBag_mc.gotoAndStop(Math.round((_finalScore / 1000)));
} else {
endGameScreen_mc.bagAnimation_mc.moneyBag_mc.addEventListener(MouseEvent.MOUSE_OVER, moneyBagOver);
endGameScreen_mc.bagAnimation_mc.moneyBag_mc.addEventListener(MouseEvent.MOUSE_UP, takeMoneyBag);
_finalScore = (_score * _accuracy);
endGameScreen_mc.reward_txt.text = (_finalScore.toString() + "$");
endGameScreen_mc.bagAnimation_mc.moneyBag_mc.gotoAndStop(Math.round((_finalScore / 1000)));
endGameScreen_mc.bagAnimation_mc.moneyBag_mc.buttonMode = true;
_stage = 4;
};
};
}
function frame1(){
stop();
loaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
addEventListener(Event.ENTER_FRAME, animation);
}
function frame2(){
_stage = 1;
_introPart = 1;
_round = 0;
_focusX = 20;
_focusY = 20;
_targetType = new Array(0, 0, 0, 0, 0);
_targetState = new Array(1, 1, 1, 1, 1);
_targetSpeedX = new Array(0, 0, 0, 0, 0);
_targetSpeedY = new Array(0, 0, 0, 0, 0);
_targetRotation = new Array(0, 0, 0, 0, 0);
_targetHealth = new Array(0, 0, 0, 0, 0);
_score = 0;
_multiplier = new Array(0, 0, 0, 0, 0);
_multiplierCount = 0;
_finalScore = 0;
_hitCount = 0;
_missCount = 0;
_accuracy = 0;
_starRotation = 45;
_newGameSpeed = 4;
_starTimer = 320;
_starState = false;
_gameSpeed = 4;
_ammo = 6;
_lives = 5;
hitBottle_snd = new SND_hitBottle();
beep_snd = new SND_beep();
gunShot_snd = new SND_gunShot();
gunShotSlow_snd = new SND_gunShotSlow();
hitCan_snd = new SND_hitCan();
bellHit_snd = new SND_bellHit();
explode_snd = new SND_explode();
explode_Slow_snd = new SND_explode_Slow();
slowDown_snd = new SND_slowDown();
cock_snd = new SND_cock();
endGameScreen_mc.cash_txt.selectable = false;
endGameScreen_mc.accuracy_txt.selectable = false;
endGameScreen_mc.reward_txt.selectable = false;
score_txt.selectable = false;
round_mc.round_txt.selectable = false;
lives_mc.lives_txt.selectable = false;
bounds_mc.visible = false;
_i = 0;
while (_i < _targetType.length) {
MovieClip(getChildByName((("position" + _i) + "_mc"))).visible = false;
getChildByName((("target" + _i) + "_mc")).scaleX = (getChildByName((("target" + _i) + "_mc")).scaleY = bounds_mc.scaleX);
getChildByName((("pointer" + _i) + "_mc")).scaleX = (getChildByName((("pointer" + _i) + "_mc")).scaleY = bounds_mc.scaleX);
shot_mc.scaleX = (shot_mc.scaleY = bounds_mc.scaleX);
crosshair_mc.scaleX = (crosshair_mc.scaleY = bounds_mc.scaleX);
shot_mc.scaleX = (shot_mc.scaleY = bounds_mc.scaleX);
bonusStar_mc.scaleX = (bonusStar_mc.scaleY = bounds_mc.scaleX);
_i++;
};
addEventListener(Event.ENTER_FRAME, gameStage);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressedDown);
}
public function aiming(_arg1:Event):void{
Mouse.hide();
crosshair_mc.x = (crosshair_mc.x + ((mouseX - crosshair_mc.x) / 1.1));
crosshair_mc.y = (crosshair_mc.y + ((mouseY - crosshair_mc.y) / 1.1));
if (_focusX > 1){
_focusX--;
crosshair_mc.gotoAndStop(_focusX);
};
if (shot_mc.alpha > 0){
shot_mc.alpha = (shot_mc.alpha - ((0.2 * _gameSpeed) / 4));
shot_mc.scaleX = (shot_mc.scaleY = (shot_mc.scaleY + ((0.2 * _gameSpeed) / 4)));
};
if (_ammo <= 0){
if (ammo_mc.currentFrame < 25){
ammo_mc.nextFrame();
};
};
}
public function animation(_arg1:Event):void{
if (dawn_mc.currentFrame < Math.round(percent)){
dawn_mc.nextFrame();
};
if (dawn_mc.currentFrame >= 100){
loaderInfo.removeEventListener(ProgressEvent.PROGRESS, loadProgress);
removeEventListener(Event.ENTER_FRAME, animation);
gotoAndStop(2);
};
}
public function reload(_arg1:MouseEvent):void{
_ammo = 6;
ammo_mc.gotoAndStop(1);
cock_snd.play();
}
public function rounds(_arg1:Event):void{
if ((((((((((_targetState[0] == 4)) && ((_targetState[1] == 4)))) && ((_targetState[2] == 4)))) && ((_targetState[3] == 4)))) && ((_targetState[4] == 4)))){
_round++;
roundSetup(_round);
};
if (_lives <= 0){
_round = 999;
roundSetup(_round);
};
if (round_mc.alpha > 0){
round_mc.alpha = (round_mc.alpha - 0.05);
};
}
public function introProgress(_arg1:MouseEvent):void{
_introPart = 3;
intro_mc.introBottle_mc.removeEventListener(MouseEvent.MOUSE_UP, introProgress);
cock_snd.play();
}
public function takeMoneyBag(_arg1:MouseEvent):void{
endGameScreen_mc.reset_mc.buttonMode = true;
endGameScreen_mc.reset_mc.addEventListener(MouseEvent.MOUSE_UP, resetGame);
endGameScreen_mc.reset_mc.visible = true;
endGameScreen_mc.CASH_mc.visible = false;
endGameScreen_mc.ACCURACY_mc.visible = false;
endGameScreen_mc.REWARD_mc.visible = false;
endGameScreen_mc.cash_txt.text = "";
endGameScreen_mc.accuracy_txt.text = "";
}
public function resetGame(_arg1:MouseEvent):void{
_stage = 1;
_introPart = 1;
_targetType.length = 5;
_round = 0;
_focusX = 20;
_focusY = 20;
_targetType = new Array(0, 0, 0, 0, 0);
_targetState = new Array(1, 1, 1, 1, 1);
_targetSpeedX = new Array(0, 0, 0, 0, 0);
_targetSpeedY = new Array(0, 0, 0, 0, 0);
_targetRotation = new Array(0, 0, 0, 0, 0);
_targetHealth = new Array(5, 5, 5, 5, 5);
_score = 0;
_multiplierCount = 0;
_finalScore = 0;
_hitCount = 0;
_missCount = 0;
_starRotation = 0;
_newGameSpeed = 0;
_starTimer = 0;
_ammo = 6;
_lives = 3;
_gameSpeed = 4;
_starState = false;
bonusStar_mc.alpha = 0;
_i = 0;
while (_i < _targetType.length) {
getChildByName((("target" + _i) + "_mc")).x = (bounds_mc.width * 2);
getChildByName((("target" + _i) + "_mc")).y = (bounds_mc.height / 2);
_multiplier[_i] = 0;
_i++;
};
}
public function roundSetup(_arg1:int):void{
switch (_arg1){
case 0:
endGameScreen_mc.x = (bounds_mc.width * 2);
endGameScreen_mc.y = (bounds_mc.height * 2);
endGameScreen_mc.visible = false;
lives_mc.lives_txt.text = _lives.toString();
Mouse.show();
break;
case 1:
_targetType = new Array("0", "0", "1", "0", "0");
break;
case 2:
_targetType = new Array("0", "0", "1", "1", "0");
break;
case 3:
_targetType = new Array("0", "1", "2", "1", "0");
break;
case 4:
_targetType = new Array("3", "0", "1", "1", "1");
break;
case 5:
_targetType = new Array("1", "3", "1", "1", "3");
break;
case 6:
_targetType = new Array("3", "1", "3", "2", "3");
break;
case 7:
_targetType = new Array("1", "3", "1", "3", "4");
break;
case 8:
_targetType = new Array("4", "3", "3", "4", "3");
break;
case 9:
_targetType = new Array("0", "0", "5", "0", "0");
break;
case 10:
_targetType = new Array("5", "5", "2", "5", "5");
break;
case 11:
_targetType = new Array("1", "2", "3", "4", "5");
break;
default:
removeEventListener(Event.ENTER_FRAME, aiming);
stage.removeEventListener(MouseEvent.MOUSE_UP, shoot);
removeEventListener(Event.ENTER_FRAME, rounds);
endGameScreen_mc.cash_txt.text = score_txt.text;
endGameScreen_mc.accuracy_txt.text = (Math.round(((_hitCount / _missCount) * 100)).toString() + "%");
endGameScreen_mc.x = (bounds_mc.width / 2);
endGameScreen_mc.y = (bounds_mc.height / 2);
addChild(endGameScreen_mc);
endGameScreen_mc.visible = true;
_stage = 3;
};
if (_arg1 != 0){
_i = 0;
while (_i < _targetType.length) {
if (_targetType[_i] == 0){
_targetState[_i] = 4;
getChildByName((("target" + _i) + "_mc")).x = (bounds_mc.width * 2);
} else {
_targetState[_i] = 1;
_targetSpeedX[_i] = 0;
_targetSpeedY[_i] = 0;
_targetRotation[_i] = 0;
if (_targetType[_i] == 1){
_targetHealth[_i] = 4;
};
if (_targetType[_i] == 2){
_targetHealth[_i] = 5;
};
if (_targetType[_i] == 3){
_targetHealth[_i] = 5;
};
if (_targetType[_i] == 4){
_targetHealth[_i] = 6;
};
if (_targetType[_i] == 5){
_targetHealth[_i] = 7;
};
getChildByName((("target" + _i) + "_mc")).x = getChildByName((("position" + _i) + "_mc")).x;
getChildByName((("target" + _i) + "_mc")).y = getChildByName((("position" + _i) + "_mc")).y;
getChildByName((("target" + _i) + "_mc")).scaleX = (getChildByName((("target" + _i) + "_mc")).scaleY = bounds_mc.scaleX);
getChildByName((("target" + _i) + "_mc")).rotation = 0;
MovieClip(getChildByName((("target" + _i) + "_mc"))).gotoAndStop(_targetType[_i]);
MovieClip(getChildByName((("target" + _i) + "_mc"))).type1.gotoAndStop(_targetHealth[_i]);
MovieClip(getChildByName((("target" + _i) + "_mc"))).type2.gotoAndStop(_targetHealth[_i]);
MovieClip(getChildByName((("target" + _i) + "_mc"))).type3.gotoAndStop(_targetHealth[_i]);
MovieClip(getChildByName((("target" + _i) + "_mc"))).type4.gotoAndStop(_targetHealth[_i]);
MovieClip(getChildByName((("target" + _i) + "_mc"))).type5.gotoAndStop(_targetHealth[_i]);
MovieClip(getChildByName((("target" + _i) + "_mc"))).alpha = 1;
MovieClip(getChildByName((("target" + _i) + "_mc"))).type1.alpha = 0;
MovieClip(getChildByName((("target" + _i) + "_mc"))).type2.alpha = 0;
MovieClip(getChildByName((("target" + _i) + "_mc"))).type3.alpha = 0;
MovieClip(getChildByName((("target" + _i) + "_mc"))).type4.alpha = 0;
MovieClip(getChildByName((("target" + _i) + "_mc"))).type5.alpha = 0;
MovieClip(getChildByName((("target" + _i) + "_mc"))).getChildByName(("type" + _targetType[_i])).alpha = 1;
};
_i++;
};
round_mc.round_txt.text = ("ROUND" + _arg1.toString());
round_mc.alpha = 1.6;
};
}
}
}//package RedHeadRevolver_fla
Section 2
//MC_ammo_48 (RedHeadRevolver_fla.MC_ammo_48)
package RedHeadRevolver_fla {
import flash.display.*;
public dynamic class MC_ammo_48 extends MovieClip {
public var bullet_1:MovieClip;
public var bullet_2:MovieClip;
public var bullet_3:MovieClip;
public var bullet_4:MovieClip;
public var bullet_5:MovieClip;
public var bullet_6:MovieClip;
public function MC_ammo_48(){
addFrameScript(0, frame1, 4, frame5, 8, frame9, 12, frame13, 16, frame17, 20, frame21, 24, frame25);
}
function frame1(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame17(){
stop();
}
function frame21(){
stop();
}
function frame13(){
stop();
}
function frame25(){
stop();
}
}
}//package RedHeadRevolver_fla
Section 3
//MC_bagAnimation_58 (RedHeadRevolver_fla.MC_bagAnimation_58)
package RedHeadRevolver_fla {
import flash.display.*;
public dynamic class MC_bagAnimation_58 extends MovieClip {
public var moneyBag_mc:MovieClip;
public function MC_bagAnimation_58(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package RedHeadRevolver_fla
Section 4
//MC_cylinder_12 (RedHeadRevolver_fla.MC_cylinder_12)
package RedHeadRevolver_fla {
import flash.display.*;
public dynamic class MC_cylinder_12 extends MovieClip {
public function MC_cylinder_12(){
addFrameScript(179, frame180);
}
function frame180(){
stop();
}
}
}//package RedHeadRevolver_fla
Section 5
//MC_intro_packed_4 (RedHeadRevolver_fla.MC_intro_packed_4)
package RedHeadRevolver_fla {
import flash.display.*;
public dynamic class MC_intro_packed_4 extends MovieClip {
public var revolver_mc:MovieClip;
public var introBottle_mc:MovieClip;
public var mc_wagongirl:MovieClip;
public var ikNode_0:MovieClip;
public var ikNode_1:MovieClip;
public var ikNode_2:MovieClip;
public var ikNode_3:MovieClip;
public var ikNode_4:MovieClip;
public var landscape_mc:MovieClip;
public var gunslinger_mc:MovieClip;
public function MC_intro_packed_4(){
addFrameScript(152, frame153);
}
function frame153(){
stop();
}
}
}//package RedHeadRevolver_fla
Section 6
//MC_preloaderPacked_1 (RedHeadRevolver_fla.MC_preloaderPacked_1)
package RedHeadRevolver_fla {
import flash.display.*;
public dynamic class MC_preloaderPacked_1 extends MovieClip {
public function MC_preloaderPacked_1(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package RedHeadRevolver_fla
Section 7
//MC_emptyShell (MC_emptyShell)
package {
import flash.display.*;
public dynamic class MC_emptyShell extends MovieClip {
}
}//package
Section 8
//SND_beep (SND_beep)
package {
import flash.media.*;
public dynamic class SND_beep extends Sound {
}
}//package
Section 9
//SND_bellHit (SND_bellHit)
package {
import flash.media.*;
public dynamic class SND_bellHit extends Sound {
}
}//package
Section 10
//SND_cock (SND_cock)
package {
import flash.media.*;
public dynamic class SND_cock extends Sound {
}
}//package
Section 11
//SND_explode (SND_explode)
package {
import flash.media.*;
public dynamic class SND_explode extends Sound {
}
}//package
Section 12
//SND_explode_Slow (SND_explode_Slow)
package {
import flash.media.*;
public dynamic class SND_explode_Slow extends Sound {
}
}//package
Section 13
//SND_gunCock (SND_gunCock)
package {
import flash.media.*;
public dynamic class SND_gunCock extends Sound {
}
}//package
Section 14
//SND_gunShot (SND_gunShot)
package {
import flash.media.*;
public dynamic class SND_gunShot extends Sound {
}
}//package
Section 15
//SND_gunShotSlow (SND_gunShotSlow)
package {
import flash.media.*;
public dynamic class SND_gunShotSlow extends Sound {
}
}//package
Section 16
//SND_hitBottle (SND_hitBottle)
package {
import flash.media.*;
public dynamic class SND_hitBottle extends Sound {
}
}//package
Section 17
//SND_hitCan (SND_hitCan)
package {
import flash.media.*;
public dynamic class SND_hitCan extends Sound {
}
}//package
Section 18
//SND_moneyBag (SND_moneyBag)
package {
import flash.media.*;
public dynamic class SND_moneyBag extends Sound {
}
}//package
Section 19
//SND_slowDown (SND_slowDown)
package {
import flash.media.*;
public dynamic class SND_slowDown extends Sound {
}
}//package