Section 1
//basezoom_25 (sniper8_fla.basezoom_25)
package sniper8_fla {
import flash.display.*;
public dynamic class basezoom_25 extends MovieClip {
public var elfmc:MovieClip;
public var housesandbase:MovieClip;
public var housesonly:MovieClip;
}
}//package sniper8_fla
Section 2
//breath_21 (sniper8_fla.breath_21)
package sniper8_fla {
import flash.display.*;
public dynamic class breath_21 extends MovieClip {
public var bar:MovieClip;
}
}//package sniper8_fla
Section 3
//credits_23 (sniper8_fla.credits_23)
package sniper8_fla {
import flash.display.*;
public dynamic class credits_23 extends MovieClip {
public var ugobtn2:SimpleButton;
public var djbtn:SimpleButton;
public var ugobtn:SimpleButton;
public var returnbtn:SimpleButton;
public var prankardbtn:SimpleButton;
}
}//package sniper8_fla
Section 4
//downanimation_56 (sniper8_fla.downanimation_56)
package sniper8_fla {
import flash.display.*;
public dynamic class downanimation_56 extends MovieClip {
public var head:MovieClip;
}
}//package sniper8_fla
Section 5
//elfmc_27 (sniper8_fla.elfmc_27)
package sniper8_fla {
import flash.display.*;
public dynamic class elfmc_27 extends MovieClip {
public var elfhit:MovieClip;
}
}//package sniper8_fla
Section 6
//gameover_43 (sniper8_fla.gameover_43)
package sniper8_fla {
import flash.display.*;
public dynamic class gameover_43 extends MovieClip {
public var replaybtn:SimpleButton;
public var menubtn:SimpleButton;
public function gameover_43(){
addFrameScript(0, frame1, 92, frame93);
}
function frame93(){
stop();
}
function frame1(){
stop();
}
}
}//package sniper8_fla
Section 7
//houseandbase_26 (sniper8_fla.houseandbase_26)
package sniper8_fla {
import flash.display.*;
public dynamic class houseandbase_26 extends MovieClip {
public function houseandbase_26(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package sniper8_fla
Section 8
//housesonly_29 (sniper8_fla.housesonly_29)
package sniper8_fla {
import flash.display.*;
public dynamic class housesonly_29 extends MovieClip {
public function housesonly_29(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package sniper8_fla
Section 9
//HUD_46 (sniper8_fla.HUD_46)
package sniper8_fla {
import flash.display.*;
import flash.text.*;
public dynamic class HUD_46 extends MovieClip {
public var remain:TextField;
public var killed:TextField;
public var reload:MovieClip;
public var score:TextField;
public var santalives:MovieClip;
}
}//package sniper8_fla
Section 10
//instructions_18 (sniper8_fla.instructions_18)
package sniper8_fla {
import flash.display.*;
public dynamic class instructions_18 extends MovieClip {
public var scope:MovieClip;
public var breath:MovieClip;
public var startbtn:SimpleButton;
}
}//package sniper8_fla
Section 11
//intro_5 (sniper8_fla.intro_5)
package sniper8_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.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class intro_5 extends MovieClip {
public var sponsor:MovieClip;
public var preloader:MovieClip;
public function intro_5(){
addFrameScript(23, frame24, 128, frame129, 138, frame139);
}
function frame24(){
sponsor.clicktagbtn.addEventListener("click", sponsorclicker);
}
function frame129(){
sponsor.clicktagbtn.removeEventListener("click", sponsorclicker);
}
function frame139(){
stop();
}
public function sponsorclicker(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://secure-us.imrworldwide.com/cgi-bin/b?cg=ugoplayer_flash_games&ci=us-ugclicks&tu=http://www.ugoplayer.com");
navigateToURL(_local2, "_blank");
}
}
}//package sniper8_fla
Section 12
//LOGO_13 (sniper8_fla.LOGO_13)
package sniper8_fla {
import flash.display.*;
public dynamic class LOGO_13 extends MovieClip {
public var crosshair:MovieClip;
}
}//package sniper8_fla
Section 13
//main_24 (sniper8_fla.main_24)
package sniper8_fla {
import flash.display.*;
public dynamic class main_24 extends MovieClip {
public var highscorepagebtn:SimpleButton;
public var moregamesbtn:SimpleButton;
public var sumobtn:SimpleButton;
public var creditsbtn:SimpleButton;
public var instructionsbtn:SimpleButton;
}
}//package sniper8_fla
Section 14
//MainTimeline (sniper8_fla.MainTimeline)
package sniper8_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.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var stageclear:MovieClip;
public var shakeX:Number;
public var shakeY:Number;
public var crosshair:MovieClip;
public var basezoom:MovieClip;
public var varSpace:Boolean;
public var clicked:Boolean;
public var varCtrl:Boolean;
public var shakeLeft:Boolean;
public var missedShot:Boolean;
public var santaholder:MovieClip;
public var shakeUp:Boolean;
public var breath:int;
public var level2position:Array;
public var intro:MovieClip;
public var preloader:MovieClip;
public var shakeMax:Number;
public var killed:int;
public var score:int;
public var menubtn:SimpleButton;
public var varClick:Boolean;
public var endmoregamesbtn:SimpleButton;
public var newBeating:beating;
public var newFireSound:fireSound;
public var enemynumber:int;
public var HUD:MovieClip;
public var beatingChannel;
public var lives:int;
public var waitEnemyVar;
public var replaybtn:SimpleButton;
public var titles:MovieClip;
public var sniperMode:String;
public var zoomScale:int;
public var timer:int;
public var level1position:Array;
public var arrowmc:MovieClip;
public var newBreathIn:breathIn;
public var MenuBeatChannel:SoundChannel;
public var namebox:TextField;
public var level3position:Array;
public var newMenuBeat:menuBeat;
public var startMC:MovieClip;
public var waitReload;
public var level:int;
public var newEvilLaugh:evilLaugh;
public var shakeAcc:Number;
public var newSlowBeatGame:slowBeatGame;
public var submitholder:MovieClip;
public var gameoverMC:MovieClip;
public var newSlowBeatChannel:SoundChannel;
public var scorebox:TextField;
public var sentscore:Boolean;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
public function sendscore():void{
var _local1:URLRequest;
var _local2:URLRequest;
var _local3:URLVariables;
var _local4:Number;
var _local5:String;
_local1 = new URLRequest("http://rankz.armorbot.com/snipersanta/");
_local2 = new URLRequest("http://rankz.armorbot.com/submit/as3_v0.php");
_local2.method = URLRequestMethod.POST;
_local3 = new URLVariables();
_local3.flashkey = "RFdzVE5jTm0=";
_local3.SU0249 = "MjA4MGolZSVhJW4lcw==";
_local3.bmFtZTE = namebox.text;
_local4 = score;
_local5 = (_local4 + "Z");
_local3.c2NvcmUx = _local5.split("0").join("U");
_local3.c2NvcmUx = _local3.c2NvcmUx.split("").join("A");
_local3.c2NvcmUx = _local3.c2NvcmUx.split("AU").join("Y");
_local3.c2NvcmUx = _local3.c2NvcmUx.split("A1").join("B");
_local3.c2NvcmUx = _local3.c2NvcmUx.split(".").join("N");
_local2.data = _local3;
sendToURL(_local2);
navigateToURL(_local1, "_blank");
}
public function prankardclicker(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.prankard.com");
navigateToURL(_local2, "_blank");
}
public function moregamesclicker(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://secure-us.imrworldwide.com/cgi-bin/b?cg=ugoplayer_flash_games&ci=us-ugclicks&tu=http://www.ugoplayer.com");
navigateToURL(_local2, "_blank");
}
public function sumoclicker(_arg1:MouseEvent):void{
removeTitles();
MenuBeatChannel.stop();
newSlowBeatChannel = newSlowBeatGame.play(0, 999999);
gotoAndStop(4);
}
public function clickDown(_arg1:MouseEvent){
var _local2:int;
var _local3:MovieClip;
var _local4:MovieClip;
if (waitReload > 75){
waitReload = 0;
newFireSound.play();
_local2 = 0;
while (_local2 < santaholder.basezoom.elfmc.elfhit.numChildren) {
if (santaholder.basezoom.elfmc.elfhit.getChildAt(_local2).hitTestPoint(santaholder.scope.x, santaholder.scope.y, true)){
if (santaholder.basezoom.elfmc.elfhit.getChildAt(_local2).head.hitTestPoint(santaholder.scope.x, santaholder.scope.y, true)){
_local3 = new dyingheadmc();
santaholder.basezoom.elfmc.addChild(_local3);
_local3.x = santaholder.basezoom.elfmc.elfhit.getChildAt(_local2).x;
_local3.y = santaholder.basezoom.elfmc.elfhit.getChildAt(_local2).y;
_local3.scaleY = santaholder.basezoom.elfmc.elfhit.getChildAt(_local2).scaleY;
_local3.scaleX = santaholder.basezoom.elfmc.elfhit.getChildAt(_local2).scaleX;
_local3.addEventListener("enterFrame", removeAfterPlay);
bodyshot();
} else {
_local4 = new dyingbodymc();
santaholder.basezoom.elfmc.addChild(_local4);
_local4.x = santaholder.basezoom.elfmc.elfhit.getChildAt(_local2).x;
_local4.y = santaholder.basezoom.elfmc.elfhit.getChildAt(_local2).y;
_local4.scaleY = santaholder.basezoom.elfmc.elfhit.getChildAt(_local2).scaleY;
_local4.scaleX = santaholder.basezoom.elfmc.elfhit.getChildAt(_local2).scaleX;
_local4.addEventListener("enterFrame", removeAfterPlay);
headshot();
};
santaholder.basezoom.elfmc.elfhit.getChildAt(_local2).removeEventListener("enterFrame", enemyMove);
santaholder.basezoom.elfmc.elfhit.removeChildAt(_local2);
_local2 = santaholder.basezoom.elfmc.elfhit.numChildren;
} else {
missed();
};
_local2++;
};
};
}
public function myEnterFrame(_arg1:Event):void{
timer++;
HUD.score.text = String(score);
HUD.remain.text = String(((enemynumber - killed) + (lives - 3)));
HUD.killed.text = killed;
HUD.santalives.gotoAndStop((lives + 1));
waitReload++;
if (waitReload < 70){
HUD.reload.visible = true;
HUD.reload.bar.scaleX = (waitReload / 70);
} else {
HUD.reload.visible = false;
};
santaholder.santa.rotation = ((mouseX - 225) / 30);
santaholder.santa.gun.rotation = ((santaholder.santa.rotation * 4) - 16);
santaholder.santa.x = (((mouseX - 225) / 10) + 250);
santaholder.santa.head.y = (0 - ((mouseY - 200) / 50));
santaholder.santa.head.rotation = (0 + ((mouseX - 275) / 30));
if (((varSpace) && ((breath > 0)))){
shakeX = 0;
shakeY = 0;
breath--;
if (breath == 0){
breath = -10;
};
} else {
if (breath < 100){
breath++;
};
};
if (breath > -1){
santaholder.breath.bar.scaleY = (breath / 100);
};
crosshair.x = mouseX;
crosshair.y = mouseY;
crosshair.scaleX = (crosshair.scaleY = ((mouseY / 200) + 0.5));
if (varCtrl == true){
if (sniperMode == "normal"){
santaholder.play();
sniperMode = "zoom";
};
} else {
if (sniperMode == "zoom"){
santaholder.play();
sniperMode = "normal";
};
};
santaholder.basezoom.scaleX = zoomScale;
santaholder.basezoom.scaleY = zoomScale;
santaholder.basezoom.x = (275 - ((mouseX + shakeX) * zoomScale));
santaholder.basezoom.y = (200 - ((mouseY + shakeY) * zoomScale));
}
public function creditsclicker(_arg1:MouseEvent):void{
titles.gotoAndPlay("tocredits");
}
public function removeButtons():void{
gameoverMC.replaybtn.removeEventListener("click", replayclicker);
gameoverMC.menubtn.removeEventListener("click", menuclicker);
}
public function gameoverWait(_arg1:Event):void{
if (gameoverMC.totalFrames == gameoverMC.currentFrame){
level = 1;
stage.addEventListener("enterFrame", myEnterFrame);
stage.addEventListener("keyDown", checkKeys);
stage.addEventListener("keyUp", keyUps);
stage.addEventListener("enterFrame", sniperShake);
stage.addEventListener("mouseDown", clickDown);
enemynumber = ((level * 5) + 5);
killed = 0;
missedShot = false;
breath = 100;
lives = 3;
timer = 0;
startMC.play();
gameoverMC.gotoAndStop(1);
(sniperMode == "normal");
santaholder.gotoAndStop(1);
stage.addEventListener("enterFrame", gameStart);
stage.removeEventListener("enterFrame", gameWait);
};
}
function frame2(){
stop();
this.addEventListener(Event.ENTER_FRAME, enterFrameIntro);
newMenuBeat = new menuBeat();
MenuBeatChannel = newMenuBeat.play(0, 999999);
newSlowBeatGame = new slowBeatGame();
}
function frame4(){
stage.addEventListener("enterFrame", myEnterFrame);
stage.addEventListener("keyDown", checkKeys);
stage.addEventListener("keyUp", keyUps);
stage.addEventListener("enterFrame", sniperShake);
stage.addEventListener("enterFrame", gameStart);
stage.addEventListener("mouseDown", clickDown);
startMC.play();
newFireSound = new fireSound();
newBeating = new beating();
beatingChannel = newBeating.play(0, 9999999);
newBreathIn = new breathIn();
newEvilLaugh = new evilLaugh();
stop();
Mouse.hide();
varCtrl = false;
varSpace = false;
varClick = false;
clicked = false;
zoomScale = 6;
shakeX = 0;
shakeY = 0;
shakeUp = false;
shakeLeft = false;
shakeAcc = 0.5;
shakeMax = 5;
sniperMode = "normal";
breath = 100;
score = 0;
level = 1;
lives = 3;
enemynumber = ((level * 5) + 5);
killed = 0;
waitReload = 70;
waitEnemyVar = 0;
missedShot = false;
timer = 0;
level1position = new Array("177,110,163", "342,401,124", "407,362,46", "157,208,75");
level2position = new Array("386,439,192", "325,281,126", "448,409,90", "467,501,68", "358,329,40", "189,220,57", "178,150,41", "144,111,74", "86,136,155", "386,439,192", "325,281,126", "448,409,90", "467,501,68", "358,329,40", "189,220,57", "178,150,41", "144,111,74", "86,136,155");
level3position = new Array("437,473,151", "505,531,136", "444,423,107", "507,486,92", "447,428,79", "409,390,88", "312,340,152", "340,318,107", "307,288,71", "266,223,174", "231,252,93", "222,203,71", "180,203,109", "138,160,93", "100,129,132", "29,71,198");
}
public function keyUps(_arg1:KeyboardEvent){
if (_arg1.keyCode == 17){
varCtrl = false;
};
if (_arg1.keyCode == 65){
varCtrl = false;
};
if (_arg1.keyCode == 32){
beatingChannel = newBeating.play(0, 9999999);
varSpace = false;
};
if (_arg1.keyCode == 68){
beatingChannel = newBeating.play(0, 9999999);
varSpace = false;
};
}
function frame3(){
stop();
titles.main.sumobtn.addEventListener("click", sumoclicker);
titles.main.instructionsbtn.addEventListener("click", instructionsclicker);
titles.main.moregamesbtn.addEventListener("click", moregamesclicker);
titles.main.highscorepagebtn.addEventListener("click", highscorepageclicker);
titles.main.creditsbtn.addEventListener("click", creditsclicker);
titles.credits.returnbtn.addEventListener("click", returnclicker);
titles.credits.prankardbtn.addEventListener("click", prankardclicker);
titles.credits.djbtn.addEventListener("click", djclicker);
titles.credits.ugobtn.addEventListener("click", moregamesclicker);
titles.credits.ugobtn2.addEventListener("click", moregamesclicker);
titles.instructions.startbtn.addEventListener("click", startclicker);
}
public function replayclicker(_arg1:MouseEvent):void{
removeButtons();
gameoverMC.play();
stage.addEventListener("enterFrame", gameoverWait);
}
function frame5(){
scorebox.text = (score + "");
sentscore = false;
Mouse.show();
menubtn.addEventListener("click", menuclicker2);
replaybtn.addEventListener("click", replayclicker2);
endmoregamesbtn.addEventListener("click", moregamesclicker);
submitholder.submit.submitbtn.addEventListener("click", submitclicker);
}
public function addSniperEnemy(_arg1:Number, _arg2:Number, _arg3:Number):void{
var _local4:*;
_local4 = new SniperEnemy(_arg1, _arg2, _arg3);
santaholder.basezoom.elfmc.elfhit.addChild(_local4);
_local4.addEventListener("enterFrame", enemyMove);
arrowmc.x = (_arg1 + ((_arg2 - _arg1) / 2));
arrowmc.y = _arg3;
if (level < 2){
_local4.scaleX = (_local4.scaleY = (0.36746 + (_local4.y * 0.0014375)));
} else {
if (level < 3){
_local4.scaleX = (_local4.scaleY = (0.331 + (_local4.y * 0.0013)));
} else {
_local4.scaleX = (_local4.scaleY = (-0.118756 + (_local4.y * 0.0032594)));
};
};
if (_local4.speed > 0){
_local4.scaleX = -(_local4.scaleX);
};
}
function frame1(){
stop();
this.addEventListener("enterFrame", load_bar);
}
public function gameWait(_arg1:Event):void{
if (stageclear.totalFrames == stageclear.currentFrame){
if (level < 3){
level++;
stage.addEventListener("enterFrame", myEnterFrame);
stage.addEventListener("keyDown", checkKeys);
stage.addEventListener("keyUp", keyUps);
stage.addEventListener("enterFrame", sniperShake);
stage.addEventListener("mouseDown", clickDown);
enemynumber = ((level * 5) + 5);
killed = 0;
missedShot = false;
breath = 100;
timer = 0;
startMC.play();
stageclear.gotoAndStop(1);
stage.addEventListener("enterFrame", gameStart);
stage.removeEventListener("enterFrame", gameWait);
} else {
stage.removeEventListener("enterFrame", gameWait);
gotoAndStop("highscore");
};
};
}
public function highscorepageclicker(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://rankz.armorbot.com/snipersanta/");
navigateToURL(_local2, "_blank");
}
public function addRandomSniperEnemy(_arg1:Array):void{
var _local2:int;
var _local3:String;
var _local4:Array;
if (lives <= 0){
stage.removeEventListener("mouseDown", clickDown);
stage.removeEventListener("enterFrame", myEnterFrame);
stage.removeEventListener("keyDown", checkKeys);
stage.removeEventListener("keyUp", keyUps);
stage.removeEventListener("enterFrame", sniperShake);
gameoverMC.replaybtn.addEventListener("click", replayclicker);
gameoverMC.menubtn.addEventListener("click", menuclicker);
Mouse.show();
gameoverMC.play();
} else {
if (((enemynumber - killed) + (lives - 3)) > 0){
_local2 = Math.floor((Math.random() * _arg1.length));
_local3 = _arg1[_local2];
_local4 = _local3.split(",");
addSniperEnemy(_local4[0], _local4[1], _local4[2]);
} else {
arrowmc.x = (arrowmc.y = -1000);
finishGame();
};
};
}
public function addLevelSniperEnemy():void{
if (level == 1){
addRandomSniperEnemy(level1position);
} else {
if (level == 2){
addRandomSniperEnemy(level2position);
} else {
addRandomSniperEnemy(level3position);
};
};
}
public function missed():void{
score = (score - (3 * level));
missedShot = true;
if (score < 0){
score = 0;
};
}
public function removeTitles():void{
titles.main.sumobtn.removeEventListener("click", sumoclicker);
titles.main.instructionsbtn.removeEventListener("click", instructionsclicker);
titles.main.moregamesbtn.removeEventListener("click", moregamesclicker);
titles.main.creditsbtn.removeEventListener("click", creditsclicker);
titles.main.highscorepagebtn.removeEventListener("click", highscorepageclicker);
titles.credits.returnbtn.removeEventListener("click", returnclicker);
titles.instructions.startbtn.removeEventListener("click", startclicker);
titles.credits.prankardbtn.removeEventListener("click", prankardclicker);
titles.credits.djbtn.removeEventListener("click", djclicker);
titles.credits.ugobtn.removeEventListener("click", moregamesclicker);
titles.credits.ugobtn2.removeEventListener("click", moregamesclicker);
}
public function headshot():void{
addEventListener("enterFrame", waitEnemy);
score = (score + (15 * level));
killed++;
}
public function djclicker(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://freesound.iua.upf.edu/");
navigateToURL(_local2, "_blank");
}
public function instructionsclicker(_arg1:MouseEvent):void{
titles.gotoAndPlay("toinstructions");
}
public function returnclicker(_arg1:MouseEvent):void{
titles.gotoAndPlay("fromcredits");
}
public function waitEnemy(_arg1:Event):void{
waitEnemyVar++;
arrowmc.x = (arrowmc.y = -1000);
if (waitEnemyVar > ((level / 3) * 60)){
addLevelSniperEnemy();
waitEnemyVar = 0;
removeEventListener("enterFrame", waitEnemy);
};
}
public function checkKeys(_arg1:KeyboardEvent){
if (_arg1.keyCode == 17){
varCtrl = true;
};
if (_arg1.keyCode == 65){
varCtrl = true;
};
if (_arg1.keyCode == 32){
beatingChannel.stop();
if (!varSpace){
newBreathIn.play();
};
varSpace = true;
};
if (_arg1.keyCode == 65){
beatingChannel.stop();
if (!varSpace){
newBreathIn.play();
};
varSpace = true;
};
}
public function menuclicker2(_arg1:MouseEvent):void{
removeEndTitles();
gotoAndStop(3);
}
public function finishGame():void{
stageclear.play();
if (((!(missedShot)) && ((lives > 2)))){
stageclear.bonus.visible = true;
score = (score + 25);
} else {
stageclear.bonus.visible = false;
};
score = (score + int(((3900 - timer) / 56)));
stageclear.score.scoretxt.text = String(score);
stageclear.timebonus.timertxt.text = String(int((Math.abs((timer - 3900)) / 56)));
stage.removeEventListener("enterFrame", myEnterFrame);
stage.removeEventListener("keyDown", checkKeys);
stage.removeEventListener("keyUp", keyUps);
stage.removeEventListener("enterFrame", sniperShake);
stage.removeEventListener("mouseDown", clickDown);
stage.addEventListener("enterFrame", gameWait);
}
public function submitclicker(_arg1:MouseEvent):void{
if (namebox.text !== "name here"){
if (sentscore == false){
sendscore();
submitholder.play();
sentscore = true;
};
};
}
public function dying(_arg1:Event):void{
trace(_arg1.target.dying.totalFrames);
if (_arg1.target.dying.currentFrame == _arg1.target.dying.totalFrames){
};
}
public function removeAfterPlay(_arg1:Event):void{
if (_arg1.target.currentFrame == _arg1.target.totalFrames){
_arg1.target.parent.removeChild(_arg1.target);
_arg1.target.removeEventListener("enterFrame", removeAfterPlay);
};
}
public function load_bar(_arg1:Event){
preloader.lbar.scaleX = (preloader.lbar.scaleY = (this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal));
if (this.loaderInfo.bytesLoaded == this.loaderInfo.bytesTotal){
gotoAndStop(2);
this.removeEventListener("enterFrame", load_bar);
};
}
public function sniperShake(_arg1:Event):void{
if (shakeUp){
if (shakeY < (shakeMax * 2)){
shakeY = (shakeY + shakeAcc);
} else {
shakeUp = false;
};
} else {
if (shakeY > (-(shakeMax) * 2)){
shakeY = (shakeY - shakeAcc);
} else {
shakeUp = true;
};
};
if (shakeLeft){
if (shakeX < shakeMax){
shakeX = (shakeX + shakeAcc);
} else {
shakeLeft = false;
};
} else {
if (shakeX > -(shakeMax)){
shakeX = (shakeX - shakeAcc);
} else {
shakeLeft = true;
};
};
}
public function enemyMove(_arg1:Event):void{
var _local2:MovieClip;
var _local3:MovieClip;
_arg1.target.x = (_arg1.target.x + _arg1.target.speed);
if (_arg1.target.speed > 0){
if (_arg1.target.x > Math.round(_arg1.target.endPos)){
_local2 = new downmc();
santaholder.basezoom.elfmc.addChild(_local2);
_local2.x = _arg1.target.x;
_local2.y = _arg1.target.y;
_local2.scaleX = (_local2.scaleY = _arg1.target.scaleY);
_local2.addEventListener("enterFrame", removeAfterPlay);
_arg1.target.removeEventListener("enterFrame", enemyMove);
_arg1.target.parent.removeChild(_arg1.target);
addEventListener("enterFrame", waitEnemy);
newEvilLaugh.play();
lives--;
};
} else {
if (_arg1.target.x < Math.round(_arg1.target.endPos)){
_local3 = new downmc();
santaholder.basezoom.elfmc.addChild(_local3);
_local3.x = _arg1.target.x;
_local3.y = _arg1.target.y;
_local3.scaleX = (_local3.scaleY = _arg1.target.scaleY);
_local3.addEventListener("enterFrame", removeAfterPlay);
_arg1.target.removeEventListener("enterFrame", enemyMove);
_arg1.target.parent.removeChild(_arg1.target);
addEventListener("enterFrame", waitEnemy);
newEvilLaugh.play();
lives--;
};
};
}
public function replayclicker2(_arg1:MouseEvent):void{
Mouse.hide();
removeEndTitles();
gotoAndStop(4);
}
public function gameStart(_arg1:Event):void{
basezoom.housesonly.gotoAndStop(level);
basezoom.housesandbase.gotoAndStop(level);
santaholder.basezoom.housesonly.gotoAndStop(level);
santaholder.basezoom.housesandbase.gotoAndStop(level);
if (startMC.totalFrames == startMC.currentFrame){
startMC.gotoAndStop(1);
addLevelSniperEnemy();
stage.removeEventListener("enterFrame", gameStart);
};
}
public function startclicker(_arg1:MouseEvent):void{
removeTitles();
MenuBeatChannel.stop();
newSlowBeatChannel = newSlowBeatGame.play(0, 999999);
gotoAndStop(4);
}
public function removeEndTitles():void{
menubtn.removeEventListener("click", menuclicker2);
replaybtn.removeEventListener("click", replayclicker2);
submitholder.submit.submitbtn.removeEventListener("click", submitclicker);
endmoregamesbtn.removeEventListener("click", moregamesclicker);
}
public function bodyshot():void{
addEventListener("enterFrame", waitEnemy);
score = (score + (10 * level));
killed++;
}
public function enterFrameIntro(_arg1:Event):void{
if (intro.currentFrame == intro.totalFrames){
this.removeEventListener(Event.ENTER_FRAME, enterFrameIntro);
nextFrame();
};
}
public function menuclicker(_arg1:MouseEvent):void{
removeButtons();
gotoAndStop(3);
MenuBeatChannel = newMenuBeat.play(0, 999999);
newSlowBeatChannel.stop();
}
}
}//package sniper8_fla
Section 15
//preloader_2 (sniper8_fla.preloader_2)
package sniper8_fla {
import flash.display.*;
public dynamic class preloader_2 extends MovieClip {
public var lbar:MovieClip;
public var preloader:MovieClip;
}
}//package sniper8_fla
Section 16
//reloadtxt_49 (sniper8_fla.reloadtxt_49)
package sniper8_fla {
import flash.display.*;
public dynamic class reloadtxt_49 extends MovieClip {
public var bar:MovieClip;
}
}//package sniper8_fla
Section 17
//santa_35 (sniper8_fla.santa_35)
package sniper8_fla {
import flash.display.*;
public dynamic class santa_35 extends MovieClip {
public var gun:MovieClip;
public var head:MovieClip;
}
}//package sniper8_fla
Section 18
//SantaZoom_32 (sniper8_fla.SantaZoom_32)
package sniper8_fla {
import flash.display.*;
public dynamic class SantaZoom_32 extends MovieClip {
public var basezoom:MovieClip;
public var scope:MovieClip;
public var masker:MovieClip;
public var santa:MovieClip;
public var breath:MovieClip;
public function SantaZoom_32(){
addFrameScript(0, frame1, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
}
}//package sniper8_fla
Section 19
//score_40 (sniper8_fla.score_40)
package sniper8_fla {
import flash.display.*;
import flash.text.*;
public dynamic class score_40 extends MovieClip {
public var scoretxt:TextField;
}
}//package sniper8_fla
Section 20
//soundholder_10 (sniper8_fla.soundholder_10)
package sniper8_fla {
import flash.display.*;
public dynamic class soundholder_10 extends MovieClip {
public function soundholder_10(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package sniper8_fla
Section 21
//Sponsor_6 (sniper8_fla.Sponsor_6)
package sniper8_fla {
import flash.display.*;
import flash.net.*;
public dynamic class Sponsor_6 extends MovieClip {
public var clicktagbtn:SimpleButton;
public function Sponsor_6(){
addFrameScript(0, frame1);
}
function frame1(){
nielsen("game_intro");
}
public function nielsen(_arg1){
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:URLRequest;
var _local6:Loader;
_local2 = "us-ugo";
_local3 = "ugoplayer_flashgames";
_local4 = escape(_arg1);
_local5 = new URLRequest(((((((("http://secure-us.imrworldwide.com/cgi-bin/m?ci=" + _local2) + "&cg=") + _local3) + "&si=") + _local4) + "&rnd=") + Math.ceil((Math.random() * 100000000))));
_local6 = new Loader();
_local6.load(_local5);
addChild(_local6);
}
}
}//package sniper8_fla
Section 22
//stageclear_39 (sniper8_fla.stageclear_39)
package sniper8_fla {
import flash.display.*;
public dynamic class stageclear_39 extends MovieClip {
public var bonus:MovieClip;
public var timebonus:MovieClip;
public var score:MovieClip;
public function stageclear_39(){
addFrameScript(0, frame1, 190, frame191);
}
function frame1(){
stop();
}
function frame191(){
stop();
}
}
}//package sniper8_fla
Section 23
//submit_53 (sniper8_fla.submit_53)
package sniper8_fla {
import flash.display.*;
public dynamic class submit_53 extends MovieClip {
public var submitbtn:SimpleButton;
}
}//package sniper8_fla
Section 24
//submitholder_52 (sniper8_fla.submitholder_52)
package sniper8_fla {
import flash.display.*;
public dynamic class submitholder_52 extends MovieClip {
public var submit:MovieClip;
public function submitholder_52(){
addFrameScript(0, frame1, 19, frame20);
}
function frame1(){
stop();
}
function frame20(){
stop();
}
}
}//package sniper8_fla
Section 25
//timebonus_41 (sniper8_fla.timebonus_41)
package sniper8_fla {
import flash.display.*;
import flash.text.*;
public dynamic class timebonus_41 extends MovieClip {
public var timertxt:TextField;
}
}//package sniper8_fla
Section 26
//titles_11 (sniper8_fla.titles_11)
package sniper8_fla {
import flash.display.*;
public dynamic class titles_11 extends MovieClip {
public var credits:MovieClip;
public var instructions:MovieClip;
public var main:MovieClip;
public function titles_11(){
addFrameScript(0, frame1, 14, frame15, 29, frame30, 44, frame45);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
function frame30(){
gotoAndStop(1);
}
function frame45(){
stop();
}
}
}//package sniper8_fla
Section 27
//txt_7 (sniper8_fla.txt_7)
package sniper8_fla {
import flash.display.*;
public dynamic class txt_7 extends MovieClip {
public function txt_7(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package sniper8_fla
Section 28
//beating (beating)
package {
import flash.media.*;
public dynamic class beating extends Sound {
}
}//package
Section 29
//breathIn (breathIn)
package {
import flash.media.*;
public dynamic class breathIn extends Sound {
}
}//package
Section 30
//downmc (downmc)
package {
import flash.display.*;
public dynamic class downmc extends MovieClip {
}
}//package
Section 31
//dyingbodymc (dyingbodymc)
package {
import flash.display.*;
public dynamic class dyingbodymc extends MovieClip {
public var head:MovieClip;
}
}//package
Section 32
//dyingheadmc (dyingheadmc)
package {
import flash.display.*;
public dynamic class dyingheadmc extends MovieClip {
}
}//package
Section 33
//enemy2 (enemy2)
package {
import flash.display.*;
public dynamic class enemy2 extends MovieClip {
}
}//package
Section 34
//evilLaugh (evilLaugh)
package {
import flash.media.*;
public dynamic class evilLaugh extends Sound {
}
}//package
Section 35
//fireSound (fireSound)
package {
import flash.media.*;
public dynamic class fireSound extends Sound {
}
}//package
Section 36
//menuBeat (menuBeat)
package {
import flash.media.*;
public dynamic class menuBeat extends Sound {
}
}//package
Section 37
//slowBeatGame (slowBeatGame)
package {
import flash.media.*;
public dynamic class slowBeatGame extends Sound {
}
}//package
Section 38
//SniperEnemy (SniperEnemy)
package {
import flash.display.*;
public class SniperEnemy extends MovieClip {
public var speed:Number;
public var endPos:Number;
public var startPos:Number;
public var upPos:Number;
public var head:MovieClip;
public function SniperEnemy(_arg1:Number, _arg2:Number, _arg3:Number):void{
x = (startPos = _arg1);
y = (upPos = _arg3);
endPos = _arg2;
speed = ((endPos - startPos) / 120);
}
}
}//package