Section 1
//10_183 (3dsniper_fla.10_183)
package 3dsniper_fla {
import flash.display.*;
public dynamic class 10_183 extends MovieClip {
public var point_mc:MovieClip;
public function 10_183(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 3dsniper_fla
Section 2
//FGNHCGN_165 (3dsniper_fla.FGNHCGN_165)
package 3dsniper_fla {
import flash.display.*;
public dynamic class FGNHCGN_165 extends MovieClip {
public function FGNHCGN_165(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 3dsniper_fla
Section 3
//GFHFH_75 (3dsniper_fla.GFHFH_75)
package 3dsniper_fla {
import flash.display.*;
public dynamic class GFHFH_75 extends MovieClip {
public function GFHFH_75(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 3dsniper_fla
Section 4
//Health_179 (3dsniper_fla.Health_179)
package 3dsniper_fla {
import flash.display.*;
public dynamic class Health_179 extends MovieClip {
public function Health_179(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 3dsniper_fla
Section 5
//Loader_2 (3dsniper_fla.Loader_2)
package 3dsniper_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Loader_2 extends MovieClip {
public var present_txt:TextField;
public function Loader_2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 3dsniper_fla
Section 6
//MainTimeline (3dsniper_fla.MainTimeline)
package 3dsniper_fla {
import flash.events.*;
import fl.transitions.easing.*;
import fl.transitions.*;
import flash.utils.*;
import flash.media.*;
import sniper.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var gun_mc:MovieClip;
public var time_txt:TextField;
public var sound:Boolean;
public var soundchannel:SoundChannel;
public var field2_btn:SimpleButton;
public var char2_mc:MovieClip;
public var loaderbar_mc:MovieClip;
public var overp:overpage;
public var warsound:war;
public var jump:uint;
public var char5_mc:MovieClip;
public var soundtransform:SoundTransform;
public var score_txt:TextField;
public var l1:level1;
public var l2:level2;
public var gun:gunsound;
public var finaltime:String;
public var health_mc:MovieClip;
public var wellp:welldonpage;
public var frontp:frontpage;
public var cm:ContextMenu;
public var tween:Tween;
public var char3_mc:MovieClip;
public var play_mc:MovieClip;
public var score:Number;
public var field1_btn:SimpleButton;
public var char6_mc:MovieClip;
public var hitting_mc:MovieClip;
public var frontsound:front;
public var flightsound:flight;
public var lenny:ContextMenuItem;
public var flightchannel:SoundChannel;
public var point_mc:MovieClip;
public var logo_mc:MovieClip;
public var my:mysound;
public var gameover_mc:MovieClip;
public var levelup_mc:MovieClip;
public var char1_mc:MovieClip;
public var more_mc:MovieClip;
public var sound_mc:MovieClip;
public var time:timer;
public var well:welldon;
public var char4_mc:MovieClip;
public var real_mc:MovieClip;
public var chlife:Number;
public var instp:instpage;
public var char7_mc:MovieClip;
public var logotext_btn:SimpleButton;
public var start_btn:SimpleButton;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8);
}
public function repetpg(_arg1:Event){
soundchannel.soundTransform = soundtransform;
soundchannel = frontsound.play();
soundchannel.addEventListener(Event.SOUND_COMPLETE, repetpg);
}
public function gofrontpage(_arg1:MouseEvent){
logo_mc.removeEventListener(MouseEvent.CLICK, gorealgames);
start_btn.removeEventListener(MouseEvent.CLICK, gofrontpage);
this.gotoAndStop("loader");
}
public function gofield1(_arg1:MouseEvent){
field1_btn.removeEventListener(MouseEvent.CLICK, gofield1);
field2_btn.removeEventListener(MouseEvent.CLICK, gofield2);
gotoAndStop("level1");
}
public function gofield2(_arg1:MouseEvent){
field1_btn.removeEventListener(MouseEvent.CLICK, gofield1);
field2_btn.removeEventListener(MouseEvent.CLICK, gofield2);
gotoAndStop("level2");
}
function frame1(){
sound = true;
logo_mc.buttonMode = true;
stop();
start_btn.alpha = 0;
loaderbar_mc.addEventListener(Event.ENTER_FRAME, PL_LOADING);
lenny = new ContextMenuItem("Powered by www.myrealgames.com");
lenny.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, cmi_menuItemSelect);
cm = new ContextMenu();
cm.customItems.push(lenny);
cm.hideBuiltInItems();
loaderbar_mc.parent.contextMenu = cm;
logo_mc.addEventListener(MouseEvent.CLICK, gorealgames);
}
function frame2(){
time = new timer(this);
stop();
soundtransform = new SoundTransform();
more_mc.buttonMode = true;
play_mc.buttonMode = true;
frontp = new frontpage(this);
sound_mc.buttonMode = true;
score = 0;
chlife = 100;
frontsound = new front();
flightsound = new flight();
warsound = new war();
gun = new gunsound();
well = new welldon();
my = new mysound();
soundtransform.volume = 0.2;
soundchannel = new SoundChannel();
flightchannel = new SoundChannel();
soundchannel.stop();
flightchannel.stop();
if (sound){
soundchannel = frontsound.play();
soundchannel.soundTransform = soundtransform;
soundchannel.addEventListener(Event.SOUND_COMPLETE, repetpg);
flightchannel = flightsound.play();
flightchannel.addEventListener(Event.SOUND_COMPLETE, repetflight);
};
}
function frame3(){
stop();
flightchannel.stop();
soundchannel.stop();
l1 = new level1(this);
time.starttimer();
}
function frame5(){
stop();
flightchannel.stop();
instp = new instpage(this);
sound_mc.buttonMode = true;
}
function frame6(){
stop();
flightchannel.stop();
soundchannel.stop();
overp = new overpage(this);
play_mc.buttonMode = true;
more_mc.buttonMode = true;
score_txt.text = (score + "");
time_txt.text = finaltime;
}
function frame4(){
stop();
flightchannel.stop();
soundchannel.stop();
l2 = new level2(this);
time.starttimer();
}
function frame7(){
stop();
flightchannel.stop();
soundchannel.stop();
wellp = new welldonpage(this);
play_mc.buttonMode = true;
more_mc.buttonMode = true;
}
function frame8(){
field1_btn.addEventListener(MouseEvent.CLICK, gofield1);
field2_btn.addEventListener(MouseEvent.CLICK, gofield2);
}
public function repetflight(_arg1:Event){
flightchannel = flightsound.play();
flightchannel.addEventListener(Event.SOUND_COMPLETE, repetflight);
}
public function cmi_menuItemSelect(_arg1:ContextMenuEvent):void{
navigateToURL(new URLRequest(" http://www.myrealgames.com/?utm_source=3DSniper&utm_medium=flash_moregames"), "_blank");
}
public function PL_LOADING(_arg1:Event):void{
var _local2:Number = Math.round(((this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal) * 100));
loaderbar_mc.gotoAndStop(_local2);
loaderbar_mc.present_txt.text = (_local2 + "%");
if (_local2 > 99){
loaderbar_mc.removeEventListener(Event.ENTER_FRAME, PL_LOADING);
tween = new Tween(start_btn, "alpha", Strong.easeInOut, 0, 1, 1, true);
tween = new Tween(loaderbar_mc, "alpha", Strong.easeInOut, 1, 0, 1, true);
start_btn.addEventListener(MouseEvent.CLICK, gofrontpage);
};
}
public function gorealgames(_arg1:MouseEvent){
navigateToURL(new URLRequest(" http://www.myrealgames.com/?utm_source=3DSniper&utm_medium=flash_moregames"), "_blank");
}
}
}//package 3dsniper_fla
Section 7
//Symbol11_209 (3dsniper_fla.Symbol11_209)
package 3dsniper_fla {
import flash.display.*;
public dynamic class Symbol11_209 extends MovieClip {
public function Symbol11_209(){
addFrameScript(0, frame1, 7, frame8);
}
function frame8(){
stop();
}
function frame1(){
stop();
}
}
}//package 3dsniper_fla
Section 8
//Symbol15_168 (3dsniper_fla.Symbol15_168)
package 3dsniper_fla {
import flash.display.*;
public dynamic class Symbol15_168 extends MovieClip {
public function Symbol15_168(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package 3dsniper_fla
Section 9
//Symbol23_185 (3dsniper_fla.Symbol23_185)
package 3dsniper_fla {
import flash.display.*;
public dynamic class Symbol23_185 extends MovieClip {
public function Symbol23_185(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 3dsniper_fla
Section 10
//Symbol25_137 (3dsniper_fla.Symbol25_137)
package 3dsniper_fla {
import flash.display.*;
public dynamic class Symbol25_137 extends MovieClip {
public function Symbol25_137(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 3dsniper_fla
Section 11
//Symbol25copy3_157 (3dsniper_fla.Symbol25copy3_157)
package 3dsniper_fla {
import flash.display.*;
public dynamic class Symbol25copy3_157 extends MovieClip {
public function Symbol25copy3_157(){
addFrameScript(40, frame41);
}
function frame41(){
stop();
}
}
}//package 3dsniper_fla
Section 12
//Symbol26_124 (3dsniper_fla.Symbol26_124)
package 3dsniper_fla {
import flash.display.*;
public dynamic class Symbol26_124 extends MovieClip {
public function Symbol26_124(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 3dsniper_fla
Section 13
//Symbol26copy3_133 (3dsniper_fla.Symbol26copy3_133)
package 3dsniper_fla {
import flash.display.*;
public dynamic class Symbol26copy3_133 extends MovieClip {
public function Symbol26copy3_133(){
addFrameScript(40, frame41);
}
function frame41(){
stop();
}
}
}//package 3dsniper_fla
Section 14
//Symbol70copy3_164 (3dsniper_fla.Symbol70copy3_164)
package 3dsniper_fla {
import flash.display.*;
public dynamic class Symbol70copy3_164 extends MovieClip {
public var char_mc:MovieClip;
public function Symbol70copy3_164(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 3dsniper_fla
Section 15
//Symbol71_136 (3dsniper_fla.Symbol71_136)
package 3dsniper_fla {
import flash.display.*;
public dynamic class Symbol71_136 extends MovieClip {
public var char_mc:MovieClip;
public function Symbol71_136(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 3dsniper_fla
Section 16
//Symbol72_204 (3dsniper_fla.Symbol72_204)
package 3dsniper_fla {
import flash.display.*;
public dynamic class Symbol72_204 extends MovieClip {
public var char_mc:MovieClip;
public function Symbol72_204(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 3dsniper_fla
Section 17
//Symbol72copy2_203 (3dsniper_fla.Symbol72copy2_203)
package 3dsniper_fla {
import flash.display.*;
public dynamic class Symbol72copy2_203 extends MovieClip {
public var char_mc:MovieClip;
public function Symbol72copy2_203(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 3dsniper_fla
Section 18
//Symbol73_205 (3dsniper_fla.Symbol73_205)
package 3dsniper_fla {
import flash.display.*;
public dynamic class Symbol73_205 extends MovieClip {
public var char_mc:MovieClip;
public function Symbol73_205(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 3dsniper_fla
Section 19
//Symbol73copy3_123 (3dsniper_fla.Symbol73copy3_123)
package 3dsniper_fla {
import flash.display.*;
public dynamic class Symbol73copy3_123 extends MovieClip {
public var char_mc:MovieClip;
public function Symbol73copy3_123(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 3dsniper_fla
Section 20
//Symbol73copy5_161 (3dsniper_fla.Symbol73copy5_161)
package 3dsniper_fla {
import flash.display.*;
public dynamic class Symbol73copy5_161 extends MovieClip {
public var char_mc:MovieClip;
public function Symbol73copy5_161(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 3dsniper_fla
Section 21
//Symbol73copy6_163 (3dsniper_fla.Symbol73copy6_163)
package 3dsniper_fla {
import flash.display.*;
public dynamic class Symbol73copy6_163 extends MovieClip {
public var char_mc:MovieClip;
public function Symbol73copy6_163(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 3dsniper_fla
Section 22
//Symbol8_172 (3dsniper_fla.Symbol8_172)
package 3dsniper_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol8_172 extends MovieClip {
public var level_mc:MovieClip;
public var score_txt:TextField;
public var ok_mc:MovieClip;
public function Symbol8_172(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 3dsniper_fla
Section 23
//Elastic (fl.transitions.easing.Elastic)
package fl.transitions.easing {
public class Elastic {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * 0.3);
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / (2 * Math.PI)) * Math.asin((_arg3 / _arg5)));
};
return (((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6))) + _arg3) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * 0.3);
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / (2 * Math.PI)) * Math.asin((_arg3 / _arg5)));
};
--_arg1;
return ((-(((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6)))) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * (0.3 * 1.5));
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / (2 * Math.PI)) * Math.asin((_arg3 / _arg5)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6)))) + _arg2));
};
--_arg1;
return ((((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6))) * 0.5) + _arg3) + _arg2));
}
}
}//package fl.transitions.easing
Section 24
//Strong (fl.transitions.easing.Strong)
package fl.transitions.easing {
public class Strong {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
}
}//package fl.transitions.easing
Section 25
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
public class Tween extends EventDispatcher {
private var _position:Number;// = NAN
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var isPlaying:Boolean;// = false
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var begin:Number;// = NAN
private var _finish:Number;// = NAN
public var change:Number;// = NAN
public var looping:Boolean;// = false
private var _intervalID:uint;// = 0
public var func:Function;
private var _timer:Timer;// = null
private var _startTime:Number;// = NAN
public var prop:String;// = ""
private var _duration:Number;// = NAN
public var obj:Object;// = null
public var useSeconds:Boolean;// = false
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
this.func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function get duration():Number{
return (this._duration);
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function get FPS():Number{
return (this._fps);
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function get time():Number{
return (this._time);
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
}
}//package fl.transitions
Section 26
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var position:Number;// = NAN
public var time:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_LOOP:String = "motionLoop";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_RESUME:String = "motionResume";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 27
//frontpage (sniper.frontpage)
package sniper {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.net.*;
public class frontpage extends Sprite {
var Mystage:Object;
public function frontpage(_arg1:Object){
Mystage = _arg1;
Mystage.play_mc.addEventListener(MouseEvent.CLICK, playgame);
Mystage.more_mc.addEventListener(MouseEvent.CLICK, moregame);
Mystage.sound_mc.addEventListener(MouseEvent.CLICK, soundfun);
Mystage.real_mc.addEventListener(MouseEvent.CLICK, downlink);
if (Mystage.sound){
Mystage.sound_mc.gotoAndStop(1);
} else {
Mystage.sound_mc.gotoAndStop(2);
};
}
private function soundfun(_arg1:MouseEvent){
if (Mystage.sound_mc.currentFrame == 1){
SoundMixer.soundTransform = new SoundTransform(0);
Mystage.sound_mc.gotoAndStop(2);
Mystage.sound = false;
} else {
Mystage.sound = true;
Mystage.sound_mc.gotoAndStop(1);
SoundMixer.soundTransform = new SoundTransform(1);
};
}
private function playgame(_arg1:MouseEvent){
Mystage.real_mc.removeEventListener(MouseEvent.CLICK, downlink);
Mystage.sound_mc.removeEventListener(MouseEvent.CLICK, soundfun);
Mystage.play_mc.removeEventListener(MouseEvent.CLICK, playgame);
Mystage.more_mc.removeEventListener(MouseEvent.CLICK, moregame);
Mystage.gotoAndStop("inst");
}
private function moregame(_arg1:MouseEvent){
navigateToURL(new URLRequest(" http://www.myrealgames.com/?utm_source=3DSniper&utm_medium=flash_moregames"), "_blank");
}
private function repetpg(_arg1:Event){
Mystage.soundchannel = Mystage.frontsound.play();
Mystage.soundchannel.addEventListener(Event.SOUND_COMPLETE, repetpg);
}
private function downlink(_arg1:MouseEvent){
navigateToURL(new URLRequest(" http://www.myrealgames.com/?utm_source=3DSniper&utm_medium=flash_moregames"), "_blank");
}
}
}//package sniper
Section 28
//instpage (sniper.instpage)
package sniper {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.net.*;
public class instpage extends Sprite {
var Mystage:Object;
public function instpage(_arg1:Object){
Mystage = _arg1;
Mystage.logo_mc.addEventListener(MouseEvent.CLICK, gorealgame);
Mystage.sound_mc.addEventListener(MouseEvent.CLICK, soundfun);
Mystage.play_mc.addEventListener(MouseEvent.CLICK, playgame);
if (Mystage.sound){
Mystage.sound_mc.gotoAndStop(1);
} else {
Mystage.sound_mc.gotoAndStop(2);
};
}
private function soundfun(_arg1:MouseEvent){
if (Mystage.sound_mc.currentFrame == 1){
SoundMixer.soundTransform = new SoundTransform(0);
Mystage.sound_mc.gotoAndStop(2);
Mystage.sound = false;
} else {
Mystage.sound = true;
Mystage.sound_mc.gotoAndStop(1);
SoundMixer.soundTransform = new SoundTransform(1);
};
}
private function playgame(_arg1:MouseEvent){
Mystage.logo_mc.removeEventListener(MouseEvent.CLICK, gorealgame);
Mystage.sound_mc.removeEventListener(MouseEvent.CLICK, soundfun);
Mystage.play_mc.removeEventListener(MouseEvent.CLICK, playgame);
Mystage.gotoAndStop("field");
}
private function gorealgame(_arg1:MouseEvent){
navigateToURL(new URLRequest(" http://www.myrealgames.com/?utm_source=3DSniper&utm_medium=flash_moregames"), "_blank");
}
private function repetpg(_arg1:Event){
Mystage.soundchannel = Mystage.frontsound.play();
Mystage.soundchannel.addEventListener(Event.SOUND_COMPLETE, repetpg);
}
}
}//package sniper
Section 29
//level1 (sniper.level1)
package sniper {
import flash.events.*;
import fl.transitions.easing.*;
import fl.transitions.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.ui.*;
import flash.net.*;
public class level1 extends Sprite {
var chararray:Array;
var interval:uint;
var page:String;
var intervaltime:Number;// = 1500
var up:uint;
var incinterval:uint;
var i:Number;// = 0
var tween:Tween;
var Mystage:Object;
var chcound:Number;// = 90
public var life:Number;// = 100
public function level1(_arg1:Object){
chararray = new Array("char3_mc", "char5_mc", "char2_mc", "char1_mc", "char6_mc", "char4_mc");
super();
Mystage = _arg1;
Mystage.score_txt.text = Mystage.score;
life = Mystage.chlife;
Mouse.hide();
i = 1;
while (i <= 6) {
Mystage[(("char" + i) + "_mc")].val = i;
Mystage[(("char" + i) + "_mc")].life = 1;
i++;
};
Mystage.point_mc.startDrag(true);
Mystage.gun_mc.addEventListener(Event.ENTER_FRAME, rotategun);
Mystage.addEventListener(MouseEvent.CLICK, gunaction);
Mystage.soundchannel = Mystage.warsound.play();
Mystage.soundchannel.addEventListener(Event.SOUND_COMPLETE, repetpg);
if (Mystage.sound){
Mystage.sound_mc.gotoAndStop(1);
} else {
Mystage.sound_mc.gotoAndStop(2);
};
incinterval = setInterval(increment, 20000);
chardisplay();
}
private function char6event(_arg1:Event){
if (Mystage.char6_mc.currentFrame == 40){
life = (life - 0.5);
if (Mystage.hitting_mc.currentFrame == 1){
Mystage.flightchannel = Mystage.my.play();
Mystage.hitting_mc.gotoAndPlay(2);
};
if (Mystage.char6_mc.wait > 0){
Mystage.char6_mc.wait--;
Mystage.char6_mc.stop();
life = (life - 0.5);
if (Mystage.char6_mc.char_mc.currentFrame == 1){
Mystage.char6_mc.char_mc.gotoAndStop(3);
};
} else {
Mystage.char6_mc.play();
Mystage.char6_mc.char_mc.gotoAndStop(3);
};
} else {
if (Mystage.char6_mc.currentFrame > 119){
Mystage.char6_mc.removeEventListener(Event.ENTER_FRAME, char6event);
};
};
if (Mystage.char6_mc.char_mc.currentFrame == 2){
Mystage.char6_mc.removeEventListener(Event.ENTER_FRAME, char6event);
};
}
private function playwell(_arg1:Event){
Mystage.soundchannel = Mystage.well.play();
Mystage.soundchannel.addEventListener(Event.SOUND_COMPLETE, playwell);
}
private function char4event(_arg1:Event){
if (Mystage.char4_mc.currentFrame == 40){
life = (life - 0.5);
if (Mystage.hitting_mc.currentFrame == 1){
Mystage.flightchannel = Mystage.my.play();
Mystage.hitting_mc.gotoAndPlay(2);
};
if (Mystage.char4_mc.wait > 0){
Mystage.char4_mc.wait--;
Mystage.char4_mc.stop();
life = (life - 0.5);
if (Mystage.char4_mc.char_mc.currentFrame == 1){
Mystage.char4_mc.char_mc.gotoAndStop(3);
};
} else {
Mystage.char4_mc.play();
Mystage.char4_mc.char_mc.gotoAndStop(1);
};
} else {
if (Mystage.char4_mc.currentFrame > 119){
Mystage.char4_mc.removeEventListener(Event.ENTER_FRAME, char4event);
};
};
if (Mystage.char4_mc.char_mc.currentFrame == 2){
Mystage.char4_mc.removeEventListener(Event.ENTER_FRAME, char4event);
};
}
private function rotategun(_arg1:Event){
Mystage.health_mc.gotoAndStop(Math.round(life));
if (life <= 1){
removeall();
};
if (Mystage.point_mc.y > 291){
Mystage.gun_mc.y = (((Mystage.point_mc.y - 291) / 2) + 684);
} else {
Mystage.gun_mc.y = 684;
};
if (((((Mystage.logotext_btn.hitTestObject(Mystage.point_mc)) || (Mystage.sound_mc.hitTestObject(Mystage.point_mc)))) || (Mystage.more_mc.hitTestObject(Mystage.point_mc)))){
Mystage.point_mc.gotoAndStop(2);
} else {
Mystage.point_mc.gotoAndStop(1);
};
Mystage.gun_mc.rotation = (90 + ((Math.atan2((Mystage.mouseY - Mystage.gun_mc.y), (Mystage.mouseX - Mystage.gun_mc.x)) * 180) / Math.PI));
}
private function soundfn(){
if (Mystage.sound_mc.currentFrame == 1){
SoundMixer.soundTransform = new SoundTransform(0);
Mystage.sound_mc.gotoAndStop(2);
Mystage.sound = false;
} else {
Mystage.sound = true;
Mystage.sound_mc.gotoAndStop(1);
SoundMixer.soundTransform = new SoundTransform(1);
};
}
private function openrealgame(){
navigateToURL(new URLRequest(" http://www.myrealgames.com/?utm_source=3DSniper&utm_medium=flash_moregames"), "_blank");
}
private function char3event(_arg1:Event){
if (Mystage.char3_mc.currentFrame == 40){
life = (life - 0.5);
if (Mystage.hitting_mc.currentFrame == 1){
Mystage.flightchannel = Mystage.my.play();
Mystage.hitting_mc.gotoAndPlay(2);
};
if (Mystage.char3_mc.wait > 0){
Mystage.char3_mc.wait--;
Mystage.char3_mc.stop();
life = (life - 0.5);
if (Mystage.char3_mc.char_mc.currentFrame == 1){
Mystage.char3_mc.char_mc.gotoAndStop(3);
};
} else {
Mystage.char3_mc.play();
Mystage.char3_mc.char_mc.gotoAndStop(1);
};
} else {
if (Mystage.char3_mc.currentFrame > 119){
Mystage.char3_mc.removeEventListener(Event.ENTER_FRAME, char3event);
};
};
if (Mystage.char3_mc.char_mc.currentFrame == 2){
Mystage.char3_mc.removeEventListener(Event.ENTER_FRAME, char3event);
};
}
private function char1event(_arg1:Event){
if (Mystage.char1_mc.currentFrame == 40){
life = (life - 0.5);
if (Mystage.hitting_mc.currentFrame == 1){
Mystage.flightchannel = Mystage.my.play();
Mystage.hitting_mc.gotoAndPlay(2);
};
if (Mystage.char1_mc.wait > 0){
Mystage.char1_mc.wait--;
Mystage.char1_mc.stop();
life = (life - 0.5);
if (Mystage.char1_mc.char_mc.currentFrame == 1){
Mystage.char1_mc.char_mc.gotoAndStop(3);
};
} else {
Mystage.char1_mc.char_mc.gotoAndStop(1);
Mystage.char1_mc.play();
};
} else {
if (Mystage.char1_mc.currentFrame > 119){
Mystage.char1_mc.removeEventListener(Event.ENTER_FRAME, char1event);
};
};
if (Mystage.char1_mc.char_mc.currentFrame == 2){
Mystage.char1_mc.removeEventListener(Event.ENTER_FRAME, char1event);
};
}
private function char5event(_arg1:Event){
if (Mystage.char5_mc.currentFrame == 40){
life = (life - 0.5);
if (Mystage.hitting_mc.currentFrame == 1){
Mystage.flightchannel = Mystage.my.play();
Mystage.hitting_mc.gotoAndPlay(2);
};
if (Mystage.char5_mc.wait > 0){
Mystage.char5_mc.wait--;
Mystage.char5_mc.stop();
life = (life - 0.5);
if (Mystage.char5_mc.char_mc.currentFrame == 1){
Mystage.char5_mc.char_mc.gotoAndStop(3);
};
} else {
Mystage.char5_mc.play();
Mystage.char5_mc.char_mc.gotoAndStop(1);
};
} else {
if (Mystage.char5_mc.currentFrame > 119){
Mystage.char5_mc.removeEventListener(Event.ENTER_FRAME, char5event);
};
};
if (Mystage.char5_mc.char_mc.currentFrame == 2){
Mystage.char5_mc.removeEventListener(Event.ENTER_FRAME, char5event);
};
}
private function repetpg(_arg1:Event){
Mystage.soundchannel = Mystage.warsound.play();
Mystage.soundchannel.addEventListener(Event.SOUND_COMPLETE, repetpg);
}
function levelup(){
clearInterval(up);
Mystage.time.stoptimer();
Mystage.soundchannel.stop();
Mystage.gotoAndStop(page);
}
private function chardisplay(){
clearInterval(interval);
var _local1:Number = Math.round((Math.random() * 1));
var _local2:String = chararray[_local1];
chararray.splice(_local1, 1);
chararray.push(_local2);
Mystage[_local2].char_mc.gotoAndStop(1);
Mystage[_local2].gotoAndPlay(2);
Mystage[_local2].wait = 50;
Mystage[_local2].life = 1;
if (Mystage[_local2].val == 1){
Mystage.char1_mc.addEventListener(Event.ENTER_FRAME, char1event);
} else {
if (Mystage[_local2].val == 2){
Mystage.char2_mc.addEventListener(Event.ENTER_FRAME, char2event);
} else {
if (Mystage[_local2].val == 3){
Mystage.char3_mc.addEventListener(Event.ENTER_FRAME, char3event);
} else {
if (Mystage[_local2].val == 4){
Mystage.char4_mc.addEventListener(Event.ENTER_FRAME, char4event);
} else {
if (Mystage[_local2].val == 5){
Mystage.char5_mc.addEventListener(Event.ENTER_FRAME, char5event);
} else {
if (Mystage[_local2].val == 6){
Mystage.char6_mc.addEventListener(Event.ENTER_FRAME, char6event);
};
};
};
};
};
};
if (chcound > 0){
interval = setInterval(chardisplay, intervaltime);
};
}
private function golevel2(_arg1:MouseEvent){
Mystage.levelup_mc.ok_mc.removeEventListener(MouseEvent.CLICK, golevel2);
tween = new Tween(Mystage.levelup_mc, "y", Elastic.easeInOut, 300, -100, 2, true);
up = setInterval(levelup, 2000);
}
private function increment(){
intervaltime = (intervaltime - 100);
}
private function removeall(){
stopDrag();
Mouse.show();
clearInterval(incinterval);
clearInterval(interval);
Mystage.soundchannel.stop();
Mystage.soundchannel = Mystage.well.play();
Mystage.soundchannel.addEventListener(Event.SOUND_COMPLETE, playwell);
Mystage.gun_mc.removeEventListener(Event.ENTER_FRAME, rotategun);
Mystage.removeEventListener(MouseEvent.CLICK, gunaction);
Mystage.char6_mc.removeEventListener(Event.ENTER_FRAME, char6event);
Mystage.char5_mc.removeEventListener(Event.ENTER_FRAME, char5event);
Mystage.char4_mc.removeEventListener(Event.ENTER_FRAME, char4event);
Mystage.char3_mc.removeEventListener(Event.ENTER_FRAME, char3event);
Mystage.char2_mc.removeEventListener(Event.ENTER_FRAME, char2event);
Mystage.char1_mc.removeEventListener(Event.ENTER_FRAME, char1event);
if (chcound <= 1){
tween = new Tween(Mystage.levelup_mc, "y", Elastic.easeInOut, -100, 300, 2, true);
Mystage.levelup_mc.score_txt.text = Mystage.score;
Mystage.levelup_mc.ok_mc.addEventListener(MouseEvent.CLICK, golevel2);
page = "level2";
} else {
tween = new Tween(Mystage.gameover_mc, "x", Elastic.easeInOut, -100, 450, 2, true);
page = "over";
up = setInterval(levelup, 2000);
};
}
private function gunaction(_arg1:MouseEvent){
if (Mystage.sound_mc.hitTestObject(Mystage.point_mc)){
soundfn();
} else {
if (((Mystage.more_mc.hitTestObject(Mystage.point_mc)) || (Mystage.logotext_btn.hitTestObject(Mystage.point_mc)))){
openrealgame();
} else {
Mystage.gun_mc.gotoAndPlay(2);
Mystage.flightchannel = Mystage.gun.play();
i = 1;
while (i <= 6) {
if (((((((Mystage[(("char" + i) + "_mc")].hitTestObject(Mystage.point_mc.point_mc)) && ((Mystage[(("char" + i) + "_mc")].currentFrame > 10)))) && ((Mystage[(("char" + i) + "_mc")].currentFrame < 100)))) && (!((Mystage[(("char" + i) + "_mc")].char_mc.currentFrame == 2))))){
Mystage[(("char" + i) + "_mc")].stop();
Mystage[(("char" + i) + "_mc")].life--;
if (Mystage[(("char" + i) + "_mc")].life <= 0){
Mystage[(("char" + i) + "_mc")].char_mc.gotoAndStop(2);
};
Mystage.score = (Mystage.score + 50);
Mystage.score_txt.text = Mystage.score;
break;
};
i++;
};
};
};
}
private function char2event(_arg1:Event){
if (Mystage.char2_mc.currentFrame == 40){
life = (life - 0.5);
if (Mystage.hitting_mc.currentFrame == 1){
Mystage.flightchannel = Mystage.my.play();
Mystage.hitting_mc.gotoAndPlay(2);
};
if (Mystage.char2_mc.wait > 0){
Mystage.char2_mc.wait--;
Mystage.char2_mc.stop();
life = (life - 0.5);
if (Mystage.char2_mc.char_mc.currentFrame == 1){
Mystage.char2_mc.char_mc.gotoAndStop(3);
};
} else {
Mystage.char2_mc.play();
Mystage.char2_mc.char_mc.gotoAndStop(1);
};
} else {
if (Mystage.char2_mc.currentFrame > 119){
Mystage.char2_mc.removeEventListener(Event.ENTER_FRAME, char2event);
};
};
if (Mystage.char2_mc.char_mc.currentFrame == 2){
Mystage.char2_mc.removeEventListener(Event.ENTER_FRAME, char2event);
};
}
}
}//package sniper
Section 30
//level2 (sniper.level2)
package sniper {
import flash.events.*;
import fl.transitions.easing.*;
import fl.transitions.*;
import flash.utils.*;
import flash.media.*;
import flash.display.*;
import flash.ui.*;
import flash.net.*;
public class level2 extends Sprite {
var chararray:Array;
var interval:uint;
var page:String;
var intervaltime:Number;// = 1500
var up:uint;
var incinterval:uint;
var i:Number;// = 0
var tween:Tween;
var Mystage:Object;
var chcound:Number;// = 30
var life:Number;// = 100
public function level2(_arg1:Object){
chararray = new Array("char3_mc", "char5_mc", "char2_mc", "char1_mc", "char6_mc", "char4_mc", "char7_mc");
super();
Mystage = _arg1;
Mystage.levelup_mc.gotoAndStop(2);
life = Mystage.chlife;
Mystage.score_txt.text = Mystage.score;
Mouse.hide();
i = 1;
while (i <= 7) {
Mystage[(("char" + i) + "_mc")].val = i;
Mystage[(("char" + i) + "_mc")].life = 1;
i++;
};
Mystage.point_mc.startDrag(true);
Mystage.gun_mc.addEventListener(Event.ENTER_FRAME, rotategun);
Mystage.addEventListener(MouseEvent.CLICK, gunaction);
Mystage.soundchannel = Mystage.warsound.play();
Mystage.soundchannel.addEventListener(Event.SOUND_COMPLETE, repetpg);
if (Mystage.sound){
Mystage.sound_mc.gotoAndStop(1);
} else {
Mystage.sound_mc.gotoAndStop(2);
};
chardisplay();
}
private function char6event(_arg1:Event){
if (Mystage.char6_mc.currentFrame == 40){
life = (life - 0.5);
if (Mystage.hitting_mc.currentFrame == 1){
Mystage.flightchannel = Mystage.my.play();
Mystage.hitting_mc.gotoAndPlay(2);
};
if (Mystage.char6_mc.wait > 0){
Mystage.char6_mc.wait--;
Mystage.char6_mc.stop();
life = (life - 0.5);
if (Mystage.char6_mc.char_mc.currentFrame == 1){
Mystage.char6_mc.char_mc.gotoAndStop(3);
};
} else {
Mystage.char6_mc.play();
Mystage.char6_mc.char_mc.gotoAndStop(3);
};
} else {
if (Mystage.char6_mc.currentFrame > 119){
Mystage.char6_mc.removeEventListener(Event.ENTER_FRAME, char6event);
};
};
if (Mystage.char6_mc.char_mc.currentFrame == 2){
Mystage.char6_mc.removeEventListener(Event.ENTER_FRAME, char6event);
};
}
private function playwell(_arg1:Event){
Mystage.soundchannel = Mystage.well.play();
Mystage.soundchannel.addEventListener(Event.SOUND_COMPLETE, playwell);
}
private function char4event(_arg1:Event){
if (Mystage.char4_mc.currentFrame == 40){
life = (life - 0.5);
if (Mystage.hitting_mc.currentFrame == 1){
Mystage.flightchannel = Mystage.my.play();
Mystage.hitting_mc.gotoAndPlay(2);
};
if (Mystage.char4_mc.wait > 0){
Mystage.char4_mc.wait--;
Mystage.char4_mc.stop();
life = (life - 0.5);
if (Mystage.char4_mc.char_mc.currentFrame == 1){
Mystage.char4_mc.char_mc.gotoAndStop(3);
};
} else {
Mystage.char4_mc.play();
Mystage.char4_mc.char_mc.gotoAndStop(1);
};
} else {
if (Mystage.char4_mc.currentFrame > 119){
Mystage.char4_mc.removeEventListener(Event.ENTER_FRAME, char4event);
};
};
if (Mystage.char4_mc.char_mc.currentFrame == 2){
Mystage.char4_mc.removeEventListener(Event.ENTER_FRAME, char4event);
};
}
private function rotategun(_arg1:Event){
Mystage.health_mc.gotoAndStop(Math.round(life));
if (life <= 1){
removeall();
};
if (Mystage.point_mc.y > 291){
Mystage.gun_mc.y = (((Mystage.point_mc.y - 291) / 2) + 684);
} else {
Mystage.gun_mc.y = 684;
};
if (((((Mystage.logotext_btn.hitTestObject(Mystage.point_mc)) || (Mystage.sound_mc.hitTestObject(Mystage.point_mc)))) || (Mystage.more_mc.hitTestObject(Mystage.point_mc)))){
Mystage.point_mc.gotoAndStop(2);
} else {
Mystage.point_mc.gotoAndStop(1);
};
Mystage.gun_mc.rotation = (90 + ((Math.atan2((Mystage.mouseY - Mystage.gun_mc.y), (Mystage.mouseX - Mystage.gun_mc.x)) * 180) / Math.PI));
}
private function soundfn(){
if (Mystage.sound_mc.currentFrame == 1){
SoundMixer.soundTransform = new SoundTransform(0);
Mystage.sound_mc.gotoAndStop(2);
Mystage.sound = false;
} else {
Mystage.sound = true;
Mystage.sound_mc.gotoAndStop(1);
SoundMixer.soundTransform = new SoundTransform(1);
};
}
private function openrealgame(){
navigateToURL(new URLRequest(" http://www.myrealgames.com/?utm_source=3DSniper&utm_medium=flash_moregames"), "_blank");
}
private function char3event(_arg1:Event){
if (Mystage.char3_mc.currentFrame == 40){
life = (life - 0.5);
if (Mystage.hitting_mc.currentFrame == 1){
Mystage.flightchannel = Mystage.my.play();
Mystage.hitting_mc.gotoAndPlay(2);
};
if (Mystage.char3_mc.wait > 0){
Mystage.char3_mc.wait--;
Mystage.char3_mc.stop();
life = (life - 0.5);
if (Mystage.char3_mc.char_mc.currentFrame == 1){
Mystage.char3_mc.char_mc.gotoAndStop(3);
};
} else {
Mystage.char3_mc.play();
Mystage.char3_mc.char_mc.gotoAndStop(1);
};
} else {
if (Mystage.char3_mc.currentFrame > 119){
Mystage.char3_mc.removeEventListener(Event.ENTER_FRAME, char3event);
};
};
if (Mystage.char3_mc.char_mc.currentFrame == 2){
Mystage.char3_mc.removeEventListener(Event.ENTER_FRAME, char3event);
};
}
private function char1event(_arg1:Event){
if (Mystage.char1_mc.currentFrame == 60){
if (Mystage.char1_mc.wait > 0){
Mystage.char1_mc.wait--;
Mystage.char1_mc.stop();
life = (life - 0.5);
if (Mystage.hitting_mc.currentFrame == 1){
Mystage.flightchannel = Mystage.my.play();
Mystage.hitting_mc.gotoAndPlay(2);
};
if (Mystage.char1_mc.char_mc.currentFrame == 1){
Mystage.char1_mc.char_mc.gotoAndStop(3);
};
} else {
Mystage.char1_mc.char_mc.gotoAndStop(1);
Mystage.char1_mc.play();
};
} else {
if (Mystage.char1_mc.currentFrame > 119){
Mystage.char1_mc.removeEventListener(Event.ENTER_FRAME, char1event);
};
};
if (Mystage.char1_mc.char_mc.currentFrame == 2){
Mystage.char1_mc.removeEventListener(Event.ENTER_FRAME, char1event);
};
}
private function char7event(_arg1:Event){
if (Mystage.char7_mc.currentFrame == 40){
life = (life - 0.5);
if (Mystage.hitting_mc.currentFrame == 1){
Mystage.flightchannel = Mystage.my.play();
Mystage.hitting_mc.gotoAndPlay(2);
};
if (Mystage.char7_mc.wait > 0){
Mystage.char7_mc.wait--;
Mystage.char7_mc.stop();
life = (life - 0.5);
if (Mystage.char7_mc.char_mc.currentFrame == 1){
Mystage.char7_mc.char_mc.gotoAndStop(3);
};
} else {
Mystage.char7_mc.play();
Mystage.char7_mc.char_mc.gotoAndStop(3);
};
} else {
if (Mystage.char7_mc.currentFrame > 119){
Mystage.char7_mc.removeEventListener(Event.ENTER_FRAME, char7event);
};
};
if (Mystage.char7_mc.char_mc.currentFrame == 2){
Mystage.char7_mc.removeEventListener(Event.ENTER_FRAME, char7event);
};
}
private function char5event(_arg1:Event){
if (Mystage.char5_mc.currentFrame == 40){
life = (life - 0.5);
if (Mystage.hitting_mc.currentFrame == 1){
Mystage.flightchannel = Mystage.my.play();
Mystage.hitting_mc.gotoAndPlay(2);
};
if (Mystage.char5_mc.wait > 0){
Mystage.char5_mc.wait--;
Mystage.char5_mc.stop();
life = (life - 0.5);
if (Mystage.char5_mc.char_mc.currentFrame == 1){
Mystage.char5_mc.char_mc.gotoAndStop(3);
};
} else {
Mystage.char5_mc.play();
Mystage.char5_mc.char_mc.gotoAndStop(1);
};
} else {
if (Mystage.char5_mc.currentFrame > 119){
Mystage.char5_mc.removeEventListener(Event.ENTER_FRAME, char5event);
};
};
if (Mystage.char5_mc.char_mc.currentFrame == 2){
Mystage.char5_mc.removeEventListener(Event.ENTER_FRAME, char5event);
};
}
private function repetpg(_arg1:Event){
Mystage.soundchannel = Mystage.warsound.play();
Mystage.soundchannel.addEventListener(Event.SOUND_COMPLETE, repetpg);
}
function levelup(){
clearInterval(up);
Mystage.time.stoptimer();
Mystage.soundchannel.stop();
Mystage.gotoAndStop(page);
}
private function chardisplay(){
clearInterval(interval);
var _local1:Number = Math.round((Math.random() * 1));
var _local2:String = chararray[_local1];
chararray.splice(_local1, 1);
chararray.push(_local2);
Mystage[_local2].char_mc.gotoAndStop(1);
Mystage[_local2].gotoAndPlay(2);
Mystage[_local2].wait = 100;
Mystage[_local2].life = 1;
if (Mystage[_local2].val == 1){
Mystage.char1_mc.addEventListener(Event.ENTER_FRAME, char1event);
} else {
if (Mystage[_local2].val == 2){
Mystage.char2_mc.addEventListener(Event.ENTER_FRAME, char2event);
} else {
if (Mystage[_local2].val == 3){
Mystage.char3_mc.addEventListener(Event.ENTER_FRAME, char3event);
} else {
if (Mystage[_local2].val == 4){
Mystage.char4_mc.addEventListener(Event.ENTER_FRAME, char4event);
} else {
if (Mystage[_local2].val == 5){
Mystage.char5_mc.addEventListener(Event.ENTER_FRAME, char5event);
} else {
if (Mystage[_local2].val == 6){
Mystage.char6_mc.addEventListener(Event.ENTER_FRAME, char6event);
} else {
if (Mystage[_local2].val == 7){
Mystage.char7_mc.addEventListener(Event.ENTER_FRAME, char7event);
};
};
};
};
};
};
};
if (chcound > 0){
interval = setInterval(chardisplay, intervaltime);
};
}
private function golevel2(_arg1:MouseEvent){
Mystage.levelup_mc.ok_mc.removeEventListener(MouseEvent.CLICK, golevel2);
tween = new Tween(Mystage.levelup_mc, "y", Elastic.easeInOut, 300, -100, 2, true);
up = setInterval(levelup, 2000);
}
private function increment(){
intervaltime = (intervaltime - 100);
}
private function removeall(){
stopDrag();
Mouse.show();
clearInterval(incinterval);
clearInterval(interval);
Mystage.soundchannel = Mystage.well.play();
Mystage.gun_mc.removeEventListener(Event.ENTER_FRAME, rotategun);
Mystage.removeEventListener(MouseEvent.CLICK, gunaction);
Mystage.char7_mc.removeEventListener(Event.ENTER_FRAME, char7event);
Mystage.char6_mc.removeEventListener(Event.ENTER_FRAME, char6event);
Mystage.char5_mc.removeEventListener(Event.ENTER_FRAME, char5event);
Mystage.char4_mc.removeEventListener(Event.ENTER_FRAME, char4event);
Mystage.char3_mc.removeEventListener(Event.ENTER_FRAME, char3event);
Mystage.char2_mc.removeEventListener(Event.ENTER_FRAME, char2event);
Mystage.char1_mc.removeEventListener(Event.ENTER_FRAME, char1event);
if (chcound <= 1){
Mystage.levelup_mc.score_txt.text = Mystage.score;
tween = new Tween(Mystage.levelup_mc, "y", Elastic.easeInOut, -100, 300, 2, true);
Mystage.levelup_mc.ok_mc.addEventListener(MouseEvent.CLICK, golevel2);
page = "welldon";
} else {
tween = new Tween(Mystage.gameover_mc, "x", Elastic.easeInOut, -100, 450, 2, true);
page = "over";
up = setInterval(levelup, 2000);
};
}
private function gunaction(_arg1:MouseEvent){
if (Mystage.sound_mc.hitTestObject(Mystage.point_mc)){
soundfn();
} else {
if (((Mystage.more_mc.hitTestObject(Mystage.point_mc)) || (Mystage.logotext_btn.hitTestObject(Mystage.point_mc)))){
openrealgame();
} else {
Mystage.flightchannel = Mystage.gun.play();
Mystage.gun_mc.gotoAndPlay(2);
i = 1;
while (i <= 7) {
if (((((((Mystage[(("char" + i) + "_mc")].hitTestObject(Mystage.point_mc.point_mc)) && ((Mystage[(("char" + i) + "_mc")].currentFrame > 10)))) && ((Mystage[(("char" + i) + "_mc")].currentFrame < 100)))) && (!((Mystage[(("char" + i) + "_mc")].char_mc.currentFrame == 2))))){
Mystage[(("char" + i) + "_mc")].stop();
Mystage[(("char" + i) + "_mc")].life--;
if (Mystage[(("char" + i) + "_mc")].life <= 0){
Mystage[(("char" + i) + "_mc")].char_mc.gotoAndStop(2);
};
Mystage.score = (Mystage.score + 50);
Mystage.score_txt.text = Mystage.score;
break;
};
i++;
};
};
};
}
private function char2event(_arg1:Event){
if (Mystage.char2_mc.currentFrame == 60){
if (Mystage.char2_mc.wait > 0){
Mystage.char2_mc.wait--;
Mystage.char2_mc.stop();
life = (life - 0.5);
if (Mystage.hitting_mc.currentFrame == 1){
Mystage.flightchannel = Mystage.my.play();
Mystage.hitting_mc.gotoAndPlay(2);
};
if (Mystage.char2_mc.char_mc.currentFrame == 1){
Mystage.char2_mc.char_mc.gotoAndStop(3);
};
} else {
Mystage.char2_mc.play();
Mystage.char2_mc.char_mc.gotoAndStop(1);
};
} else {
if (Mystage.char2_mc.currentFrame > 119){
Mystage.char2_mc.removeEventListener(Event.ENTER_FRAME, char2event);
};
};
if (Mystage.char2_mc.char_mc.currentFrame == 2){
Mystage.char2_mc.removeEventListener(Event.ENTER_FRAME, char2event);
};
}
}
}//package sniper
Section 31
//overpage (sniper.overpage)
package sniper {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class overpage extends Sprite {
var Mystage:Object;
public function overpage(_arg1:Object){
Mystage = _arg1;
Mystage.soundchannel.stop();
Mystage.play_mc.addEventListener(MouseEvent.CLICK, playgame);
Mystage.more_mc.addEventListener(MouseEvent.CLICK, moregame);
Mystage.soundchannel = Mystage.well.play();
Mystage.soundchannel.addEventListener(Event.SOUND_COMPLETE, playwell);
}
private function playwell(_arg1:Event){
Mystage.soundchannel = Mystage.well.play();
Mystage.soundchannel.addEventListener(Event.SOUND_COMPLETE, playwell);
}
private function playgame(_arg1:MouseEvent){
Mystage.play_mc.removeEventListener(MouseEvent.CLICK, playgame);
Mystage.more_mc.removeEventListener(MouseEvent.CLICK, moregame);
Mystage.soundchannel.stop();
Mystage.soundchannel.removeEventListener(Event.SOUND_COMPLETE, playwell);
Mystage.gotoAndStop("loader");
}
private function moregame(_arg1:MouseEvent){
navigateToURL(new URLRequest(" http://www.myrealgames.com/?utm_source=3DSniper&utm_medium=flash_moregames"), "_blank");
}
}
}//package sniper
Section 32
//timer (sniper.timer)
package sniper {
import flash.utils.*;
import flash.display.*;
public class timer extends Sprite {
var mintxt:String;
var time:uint;
var sec:Number;// = 0
var min:Number;// = 0
var Obj:Object;
var sectxt:String;
public function timer(_arg1:Object){
Obj = _arg1;
}
private function stime(){
sec++;
if (sec > 59){
sec = 0;
min++;
};
if (sec < 10){
sectxt = ("0" + sec);
} else {
sectxt = (sec + "");
};
if (min < 10){
mintxt = ("0" + min);
} else {
mintxt = (min + "");
};
Obj.time_txt.text = ((mintxt + " : ") + sectxt);
Obj.finaltime = ((mintxt + " : ") + sectxt);
}
public function starttimer(){
stime();
time = setInterval(stime, 1000);
}
public function stoptimer(){
clearInterval(time);
}
}
}//package sniper
Section 33
//welldonpage (sniper.welldonpage)
package sniper {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class welldonpage extends Sprite {
var Mystage:Object;
public function welldonpage(_arg1:Object){
Mystage = _arg1;
Mystage.soundchannel.stop();
Mystage.play_mc.addEventListener(MouseEvent.CLICK, playgame);
Mystage.more_mc.addEventListener(MouseEvent.CLICK, moregame);
Mystage.soundchannel = Mystage.well.play();
Mystage.soundchannel.addEventListener(Event.SOUND_COMPLETE, playwellsound);
}
private function playwellsound(_arg1:Event){
Mystage.soundchannel = Mystage.well.play();
Mystage.soundchannel.addEventListener(Event.SOUND_COMPLETE, playwellsound);
}
private function playgame(_arg1:MouseEvent){
Mystage.play_mc.removeEventListener(MouseEvent.CLICK, playgame);
Mystage.more_mc.removeEventListener(MouseEvent.CLICK, moregame);
Mystage.soundchannel.stop();
Mystage.soundchannel.removeEventListener(Event.SOUND_COMPLETE, playwellsound);
Mystage.gotoAndStop("loader");
}
private function moregame(_arg1:MouseEvent){
navigateToURL(new URLRequest(" http://www.myrealgames.com/?utm_source=3DSniper&utm_medium=flash_moregames"), "_blank");
}
}
}//package sniper
Section 34
//flight (flight)
package {
import flash.media.*;
public dynamic class flight extends Sound {
}
}//package
Section 35
//front (front)
package {
import flash.media.*;
public dynamic class front extends Sound {
}
}//package
Section 36
//gunsound (gunsound)
package {
import flash.media.*;
public dynamic class gunsound extends Sound {
}
}//package
Section 37
//mysound (mysound)
package {
import flash.media.*;
public dynamic class mysound extends Sound {
}
}//package
Section 38
//war (war)
package {
import flash.media.*;
public dynamic class war extends Sound {
}
}//package
Section 39
//welldon (welldon)
package {
import flash.media.*;
public dynamic class welldon extends Sound {
}
}//package