Section 1
//Elastic (fl.motion.easing.Elastic)
package fl.motion.easing {
public class Elastic {
public function Elastic(){
super();
}
public static function easeOut(t:Number, b:Number, c:Number, d:Number, a:Number=0, p:Number=0):Number{
var s:Number;
if (t == 0){
return (b);
};
t = (t / d);
if (t == 1){
return ((b + c));
};
if (!p){
p = (d * 0.3);
};
if (((!(a)) || ((a < Math.abs(c))))){
a = c;
s = (p / 4);
} else {
s = ((p / (2 * Math.PI)) * Math.asin((c / a)));
};
return (((((a * Math.pow(2, (-10 * t))) * Math.sin(((((t * d) - s) * (2 * Math.PI)) / p))) + c) + b));
}
public static function easeIn(t:Number, b:Number, c:Number, d:Number, a:Number=0, p:Number=0):Number{
var s:Number;
if (t == 0){
return (b);
};
t = (t / d);
if (t == 1){
return ((b + c));
};
if (!p){
p = (d * 0.3);
};
if (((!(a)) || ((a < Math.abs(c))))){
a = c;
s = (p / 4);
} else {
s = ((p / (2 * Math.PI)) * Math.asin((c / a)));
};
--t;
return ((-(((a * Math.pow(2, (10 * t))) * Math.sin(((((t * d) - s) * (2 * Math.PI)) / p)))) + b));
}
public static function easeInOut(t:Number, b:Number, c:Number, d:Number, a:Number=0, p:Number=0):Number{
var s:Number;
if (t == 0){
return (b);
};
t = (t / (d / 2));
if (t == 2){
return ((b + c));
};
if (!p){
p = (d * (0.3 * 1.5));
};
if (((!(a)) || ((a < Math.abs(c))))){
a = c;
s = (p / 4);
} else {
s = ((p / (2 * Math.PI)) * Math.asin((c / a)));
};
if (t < 1){
--t;
return (((-0.5 * ((a * Math.pow(2, (10 * t))) * Math.sin(((((t * d) - s) * (2 * Math.PI)) / p)))) + b));
};
--t;
return ((((((a * Math.pow(2, (-10 * t))) * Math.sin(((((t * d) - s) * (2 * Math.PI)) / p))) * 0.5) + c) + b));
}
}
}//package fl.motion.easing
Section 2
//TweenLite (gs.TweenLite)
package gs {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.utils.*;
public class TweenLite {
public var delay:Number;
protected var _endTarget:Object;
private var _sound:SoundTransform;
public var target:Object;
public var duration:Number;
public var startTime:uint;
public var extraTweens:Object;
protected var _color:ColorTransform;
protected var _active:Boolean;
protected var _endColor:ColorTransform;
public var vars:Object;
public var tweens:Object;
public var initTime:uint;
private static var _sprite:Sprite = new Sprite();
private static var _timer:Timer = new Timer(2000);
protected static var _all:Dictionary = new Dictionary();
public static var killDelayedCallsTo:Function = killTweensOf;
public static var version:Number = 5.87;
private static var _listening:Boolean;
public function TweenLite($target:Object, $duration:Number, $vars:Object){
super();
if ($target == null){
return;
};
if (((((!(($vars.overwrite == false))) && (!(($target == null))))) || ((_all[$target] == undefined)))){
delete _all[$target];
_all[$target] = new Dictionary();
};
_all[$target][this] = this;
this.vars = $vars;
this.duration = $duration;
this.delay = (($vars.delay) || (0));
if ($duration == 0){
this.duration = 0.001;
if (this.delay == 0){
this.vars.runBackwards = true;
};
};
this.target = (_endTarget = $target);
if (!(this.vars.ease is Function)){
this.vars.ease = easeOut;
};
if (this.vars.easeParams != null){
this.vars.proxiedEase = this.vars.ease;
this.vars.ease = easeProxy;
};
if (this.vars.mcColor != null){
this.vars.tint = this.vars.mcColor;
};
if (!isNaN(Number(this.vars.autoAlpha))){
this.vars.alpha = Number(this.vars.autoAlpha);
};
this.tweens = {};
this.extraTweens = {};
this.initTime = getTimer();
if (this.vars.runBackwards == true){
initTweenVals();
};
_active = false;
if (((($duration == 0)) && ((this.delay == 0)))){
complete(true);
} else {
if (!_listening){
_sprite.addEventListener(Event.ENTER_FRAME, executeAll);
_timer.addEventListener("timer", killGarbage);
_timer.start();
_listening = true;
};
};
}
public function set endTarget($t:Object):void{
if ((((this.duration == 0.001)) && ((this.delay <= 0)))){
removeTween(this);
} else {
delete _all[_endTarget][this];
_endTarget = $t;
if (_all[$t] == undefined){
_all[$t] = new Dictionary();
};
_all[$t][this] = this;
};
}
public function get colorProxy():Number{
return (0);
}
public function get endTarget():Object{
return (_endTarget);
}
public function get active():Boolean{
if (_active){
return (true);
};
if (((getTimer() - this.initTime) / 1000) > this.delay){
_active = true;
this.startTime = (this.initTime + (this.delay * 1000));
if (this.vars.runBackwards != true){
initTweenVals();
} else {
if (typeof(this.vars.autoAlpha) == "number"){
this.target.visible = true;
};
};
if (this.vars.onStart != null){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
return (true);
//unresolved jump
};
return (false);
}
public function initTweenVals():void{
var ndl:Number;
var p:String;
var valChange:Number;
var endArray:Array;
var i:int;
var colorTween:TweenLite;
var volTween:TweenLite;
var tp:Object;
ndl = (this.delay - ((getTimer() - this.initTime) / 1000));
if ((this.target is Array)){
endArray = ((this.vars.endArray) || ([]));
i = 0;
while (i < endArray.length) {
if (((!((this.target[i] == endArray[i]))) && (!((this.target[i] == undefined))))){
this.tweens[i.toString()] = {o:this.target, s:this.target[i], c:(endArray[i] - this.target[i])};
};
i++;
};
} else {
for (p in this.vars) {
if ((((((((((((((((((((((((((((p == "delay")) || ((p == "ease")))) || ((p == "overwrite")))) || ((p == "onComplete")))) || ((p == "onCompleteParams")))) || ((p == "runBackwards")))) || ((p == "onUpdate")))) || ((p == "onUpdateParams")))) || ((p == "autoAlpha")))) || ((p == "onStart")))) || ((p == "onStartParams")))) || ((p == "easeParams")))) || ((p == "mcColor")))) || ((p == "type")))){
} else {
if ((((p == "tint")) && ((this.target is DisplayObject)))){
_color = this.target.transform.colorTransform;
_endColor = new ColorTransform();
if (this.vars.alpha != undefined){
_endColor.alphaMultiplier = this.vars.alpha;
delete this.vars.alpha;
delete this.tweens.alpha;
} else {
_endColor.alphaMultiplier = this.target.alpha;
};
if (((!((this.vars[p] == null))) && (!((this.vars[p] == ""))))){
_endColor.color = this.vars[p];
};
colorTween = new TweenLite(this, this.duration, {colorProxy:1, delay:ndl, overwrite:false, ease:this.vars.ease, runBackwards:this.vars.runBackwards});
colorTween.endTarget = this.target;
} else {
if ((((p == "volume")) && ((this.target is MovieClip)))){
_sound = this.target.soundTransform;
volTween = new TweenLite(this, this.duration, {volumeProxy:this.vars[p], ease:easeOut, delay:ndl, overwrite:false, runBackwards:this.vars.runBackwards});
volTween.endTarget = this.target;
} else {
if (this.target.hasOwnProperty(p)){
if (typeof(this.vars[p]) == "number"){
valChange = (this.vars[p] - this.target[p]);
} else {
valChange = Number(this.vars[p]);
};
this.tweens[p] = {o:this.target, s:this.target[p], c:valChange};
} else {
this.extraTweens[p] = {o:this.target, s:0, c:0, v:this.vars[p]};
};
};
};
};
};
};
if (this.vars.runBackwards == true){
for (p in this.tweens) {
tp = this.tweens[p];
tp.s = (tp.s + tp.c);
tp.c = (tp.c * -1);
tp.o[p] = tp.s;
};
if (this.vars.onUpdate != null){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
};
if (typeof(this.vars.autoAlpha) == "number"){
this.target.visible = !((((this.vars.runBackwards == true)) && ((this.target.alpha == 0))));
};
}
public function render($t:uint):void{
var time:Number;
var factor:Number;
var tp:Object;
var p:String;
time = (($t - this.startTime) / 1000);
if (time > this.duration){
time = this.duration;
};
factor = this.vars.ease(time, 0, 1, this.duration);
for (p in this.tweens) {
tp = this.tweens[p];
tp.o[p] = (tp.s + (factor * tp.c));
};
if (this.vars.onUpdate != null){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (time == this.duration){
complete(true);
};
}
public function set colorProxy($n:Number):void{
var r:Number;
r = (1 - $n);
this.target.transform.colorTransform = new ColorTransform(((_color.redMultiplier * r) + (_endColor.redMultiplier * $n)), ((_color.greenMultiplier * r) + (_endColor.greenMultiplier * $n)), ((_color.blueMultiplier * r) + (_endColor.blueMultiplier * $n)), ((_color.alphaMultiplier * r) + (_endColor.alphaMultiplier * $n)), ((_color.redOffset * r) + (_endColor.redOffset * $n)), ((_color.greenOffset * r) + (_endColor.greenOffset * $n)), ((_color.blueOffset * r) + (_endColor.blueOffset * $n)), ((_color.alphaOffset * r) + (_endColor.alphaOffset * $n)));
}
public function get volumeProxy():Number{
return (_sound.volume);
}
public function set volumeProxy($n:Number):void{
_sound.volume = $n;
this.target.soundTransform = _sound;
}
protected function easeProxy($t:Number, $b:Number, $c:Number, $d:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
public function complete($skipRender:Boolean=false):void{
if (!$skipRender){
this.startTime = 0;
render((this.duration * 1000));
return;
};
if ((((typeof(this.vars.autoAlpha) == "number")) && ((this.target.alpha == 0)))){
this.target.visible = false;
};
if (this.vars.onComplete != null){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
};
removeTween(this);
}
public static function delayedCall($delay:Number, $onComplete:Function, $onCompleteParams:Array=null):TweenLite{
return (new TweenLite($onComplete, 0, {delay:$delay, onComplete:$onComplete, onCompleteParams:$onCompleteParams, overwrite:false}));
}
public static function from($target:Object, $duration:Number, $vars:Object):TweenLite{
$vars.runBackwards = true;
return (new TweenLite($target, $duration, $vars));
}
public static function removeTween($t:TweenLite=null):void{
if (((!(($t == null))) && (!((_all[$t.endTarget] == undefined))))){
delete _all[$t.endTarget][$t];
};
}
protected static function easeOut($t:Number, $b:Number, $c:Number, $d:Number):Number{
$t = ($t / $d);
return ((((-($c) * $t) * ($t - 2)) + $b));
}
public static function killGarbage($e:TimerEvent):void{
var a:Object;
var tg_cnt:uint;
var found:Boolean;
var p:Object;
var twp:Object;
var tw:Object;
a = _all;
tg_cnt = 0;
for (p in a) {
found = false;
for (twp in a[p]) {
found = true;
break;
};
if (!found){
delete a[p];
} else {
tg_cnt++;
};
};
if (tg_cnt == 0){
_sprite.removeEventListener(Event.ENTER_FRAME, executeAll);
_timer.removeEventListener("timer", killGarbage);
_timer.stop();
_listening = false;
};
}
public static function executeAll($e:Event):void{
var a:Object;
var t:uint;
var p:Object;
var tw:Object;
a = _all;
t = getTimer();
for (p in a) {
for (tw in a[p]) {
if (((!((a[p][tw] == undefined))) && (a[p][tw].active))){
a[p][tw].render(t);
if (a[p] == undefined){
break;
};
};
};
};
}
public static function to($target:Object, $duration:Number, $vars:Object):TweenLite{
return (new TweenLite($target, $duration, $vars));
}
public static function killTweensOf($tg:Object=null, $complete:Boolean=false):void{
var o:Object;
var tw:*;
if (((!(($tg == null))) && (!((_all[$tg] == undefined))))){
if ($complete){
o = _all[$tg];
for (tw in o) {
o[tw].complete(false);
};
};
delete _all[$tg];
};
}
}
}//package gs
Section 3
//Armor (shootemup.Armor)
package shootemup {
import flash.events.*;
import flash.display.*;
import fl.motion.easing.*;
public class Armor extends Enemy {
private var bodyComponant:Array;
private var life:int;
private var type:int;
private var UziOn:Boolean;// = false
private var destoyed:Boolean;// = false
private var pointByComponant:Number;// = 12
public function Armor():void{
destoyed = false;
UziOn = false;
pointByComponant = 12;
super();
initEnemy();
}
public function setSpeedY(aSpeedY:int):void{
speedY = aSpeedY;
}
override public function setTargetOver(event:Event){
switch (event.target){
case this.bodyComponant[0]:
dispatchShootIsPossible();
UziOn = true;
break;
default:
UziOn = false;
};
}
override public function initShapes():void{
this.bodyComponant = [this.mcArmor.oeil];
this.bodyComponant[0].gotoAndStop("nrml");
}
override public function initLife():void{
setLife(3);
}
override public function attack():void{
if (!this.attackMode){
if (!this.destoyed){
this.playFatalitySound(id);
this.parent.setHerosIsDead(true);
this.attackMode = true;
this.mcArmor.gotoAndPlay("attackArmor");
};
};
}
override public function initPosition():void{
this.x = (initialPosition + (this.parent.currentEnemiesCount * betweenTwoEnemies));
this.y = 145;
}
public function dispatchShootIsPossible(){
parent.shootIsPossible();
}
public function setLife(aLife:int):void{
life = aLife;
}
public function getSpeed():int{
return (speed);
}
override public function shootHim(event:Event){
if (!this.parent.herosIsDead){
if (((((!(this.parent.inReload)) && (!(this.destoyed)))) && (!(this.attackMode)))){
this.parent.addNbShoot();
this.inShoot = true;
if (this.life >= 0){
if (this.bodyComponant[0] == event.target){
addToScore(pointByComponant);
this.life--;
this.x = (this.x + 10);
this.mcArmor.gotoAndPlay("hitArmor");
this.mcArmor.oeil.nextFrame();
speed = (speed + 0.3);
} else {
this.mcArmor.gotoAndPlay("hitArmorRic");
speed = (speed + 0.5);
};
testIsDead();
} else {
addToScore(pointByComponant);
this.destoyed = true;
this.mcArmor.gotoAndPlay("dieArmor");
};
};
};
}
override public function endAttack():void{
this.attackMode = false;
this.destoyed = true;
this.AttackToDestroyed();
}
public function setSpeed(aSpeed:int):void{
speed = aSpeed;
}
override public function initSpeed():void{
setSpeed(2);
setSpeedY(0);
}
public function getId():int{
return (id);
}
override public function endFatality():void{
this.mcArmor.gotoAndStop("dispar");
this.attackMode = false;
if (!this.destoyed){
this.destoyed = true;
this.fatalityToDestroyed();
};
}
public function setId(aId:int):void{
id = aId;
}
override public function initMovieClip():void{
this.gotoAndPlay("typeArmor");
}
public function getLife():int{
return (life);
}
override function enterFrame(e:Event){
if (((!(attackMode)) && (!(destoyed)))){
if (!this.parent.herosIsDead){
if (this.x > (this.parent.heroPosition + 50)){
this.x = (this.x - (1 * speed));
} else {
this.attack();
};
};
};
if (((!(destoyed)) && (!(this.parent.inGame)))){
this.attackMode = false;
this.destoyed = true;
this.AttackToDestroyed();
};
}
override public function shootMitraille(mc:MovieClip){
if (!this.parent.herosIsDead){
if (((((this.parent.inShoot) && (!(this.destoyed)))) && (!(this.parent.inReload)))){
if (this.parent.mcHeros.currentWeapon == 3){
this.parent.addNbShoot();
this.parent.addNbZoneShoot();
if (this.life > 1){
if (UziOn){
this.life--;
addToScore(pointByComponant);
this.x = (this.x + 10);
this.mcArmor.gotoAndPlay("hitArmor");
this.mcArmor.oeil.nextFrame();
this.mcEclatsUzi.gotoAndPlay("tirUzi");
speed = (speed + 0.5);
} else {
this.mcArmor.gotoAndPlay("hitArmorRic");
speed = (speed + 0.2);
};
} else {
this.destoyed = true;
this.mcArmor.gotoAndPlay("dieArmor");
};
};
};
};
}
public function zombiDeath():void{
addToScore(pointByComponant);
this.destoyed = true;
this.mcArmor.gotoAndPlay("dieArmor");
}
override public function initEnemyId():void{
setId(4);
}
public function testIsDead():void{
var testLife:Number;
testLife = (this.life - 1);
if (testLife < 0){
zombiDeath();
};
}
public function getSpeedY():int{
return (speedY);
}
}
}//package shootemup
Section 4
//Bat (shootemup.Bat)
package shootemup {
import gs.*;
import flash.events.*;
import flash.display.*;
import fl.motion.easing.*;
public class Bat extends Enemy {
private var bodyComponant:Array;
private var life:int;
private var type:int;
private var destoyed:Boolean;// = false
public function Bat():void{
destoyed = false;
super();
initEnemy();
}
public function setSpeedY(aSpeedY:int):void{
speedY = aSpeedY;
}
override public function setTargetOver(event:Event){
dispatchShootIsPossible();
}
public function tweenToBottom(parameter1_num:Number, parameter2_mc:MovieClip):void{
if (((!(destoyed)) && (!(this.attackMode)))){
TweenLite.to(parameter2_mc, parameter1_num, {y:50, ease:Elastic.easeOut, onComplete:tweenToTOp, onCompleteParams:[(1 + Math.floor((Math.random() * 3))), this]});
} else {
TweenLite.to(this, 0.25, {y:145});
};
}
override public function initShapes():void{
}
override public function initLife():void{
setLife(2);
}
override public function attack():void{
if (!this.attackMode){
if (!this.destoyed){
this.parent.setHerosIsDead(false);
this.playFatalitySound(id);
this.attackMode = true;
this.tweenToBottom(0.25, this);
this.bat.gotoAndPlay("attack");
};
};
}
override public function initPosition():void{
this.x = (initialPosition + (this.parent.currentEnemiesCount * betweenTwoEnemies));
this.y = 145;
}
public function dispatchShootIsPossible(){
parent.shootIsPossible();
}
public function setLife(aLife:int):void{
life = aLife;
}
public function getSpeed():int{
return (speed);
}
override public function moveY():void{
this.tweenToBottom(3, this);
}
override public function shootHim(event:Event){
if (!this.parent.herosIsDead){
if (((!(this.parent.inReload)) && (!(this.destoyed)))){
this.parent.addNbShoot();
addToScore((15 + speed));
playHitSound(2);
this.destoyed = true;
this.bat.gotoAndPlay("dieBat");
};
};
}
override public function endAttack():void{
this.attackMode = false;
if (!this.destoyed){
this.destoyed = true;
this.AttackToDestroyed();
};
}
public function setSpeed(aSpeed:int):void{
speed = aSpeed;
}
override public function initSpeed():void{
var n:Number;
var m:Number;
n = (Math.floor((Math.random() * 5)) + 2);
m = (Math.floor((Math.random() * 2)) + 2);
setSpeed(n);
setSpeedY(m);
}
public function getId():int{
return (id);
}
override public function endFatality():void{
this.bat.gotoAndStop("dispar");
this.attackMode = false;
if (!this.destoyed){
this.destoyed = true;
this.fatalityToDestroyed();
};
}
public function setId(aId:int):void{
id = aId;
}
public function tweenToTOp(parameter1_num:Number, parameter2_mc:MovieClip):void{
if (((!(destoyed)) && (!(this.attackMode)))){
TweenLite.to(parameter2_mc, parameter1_num, {y:-50, ease:Elastic.easeOut, onComplete:tweenToBottom, onCompleteParams:[(1 + Math.floor((Math.random() * 2))), this]});
} else {
TweenLite.to(parameter2_mc, 0.25, {y:145});
};
}
override public function initMovieClip():void{
this.gotoAndPlay("typeBat");
}
public function getLife():int{
return (life);
}
override function enterFrame(e:Event){
if (((!(attackMode)) && (!(destoyed)))){
if (!this.parent.herosIsDead){
if (this.x > (this.parent.heroPosition + 50)){
this.x = (this.x - (1 * speed));
} else {
this.attack();
};
};
};
if (((!(destoyed)) && (!(this.parent.inGame)))){
this.attackMode = false;
this.destoyed = true;
this.AttackToDestroyed();
};
}
override public function shootMitraille(mc:MovieClip){
if (!this.parent.herosIsDead){
if (((((this.parent.inShoot) && (!(this.destoyed)))) && (!(this.parent.inReload)))){
if (this.parent.mcHeros.currentWeapon == 3){
this.destoyed = true;
this.parent.addNbShoot();
this.parent.addNbZoneShoot();
addToScore((15 + speed));
playHitSound(2);
this.bat.gotoAndPlay("dieBat");
};
};
};
}
override public function initEnemyId():void{
setId(0);
}
public function getSpeedY():int{
return (speedY);
}
}
}//package shootemup
Section 5
//BigBear (shootemup.BigBear)
package shootemup {
import flash.events.*;
import fl.motion.easing.*;
public class BigBear extends Enemy {
private var keyFrameForParBall:Array;
public var headDestroyed:Boolean;// = false
private var bodyComponant:Array;
public var bodyDestroyed:Boolean;// = false
private var bodyComponantRef:Array;
private var life:int;
private var elmtDestroyed:Array;
public var armDestroyed:Boolean;// = false
private var type:int;
private var lifeComponant0:Number;// = 3
private var lifeComponant1:Number;// = 3
private var lifeComponant2:Number;// = 3
private var keyFrameForComponants:Array;
private var hitBoxComponant:Array;
private var destoyed:Boolean;// = false
private var pointByComponant:Number;// = 12
public function BigBear():void{
destoyed = false;
armDestroyed = false;
bodyDestroyed = false;
headDestroyed = false;
pointByComponant = 12;
lifeComponant0 = 3;
lifeComponant1 = 3;
lifeComponant2 = 3;
keyFrameForComponants = ["xpld3", "xpld2", "xpld1", "nrml"];
keyFrameForParBall = ["xplod3", "xplod2", "xplod1", "nrml"];
super();
stop();
initEnemy();
}
public function setSpeedY(aSpeedY:int):void{
speedY = aSpeedY;
}
override public function setTargetOver(event:Event){
switch (event.target){
case this.hitBoxComponant[0]:
if (!bodyDestroyed){
dispatchShootIsPossible();
};
break;
case this.hitBoxComponant[1]:
if (!bodyDestroyed){
dispatchShootIsPossible();
};
break;
case this.hitBoxComponant[2]:
if (!bodyDestroyed){
dispatchShootIsPossible();
};
break;
case this.hitBoxComponant[3]:
if (!armDestroyed){
dispatchShootIsPossible();
};
break;
case this.hitBoxComponant[4]:
if (!armDestroyed){
dispatchShootIsPossible();
};
break;
case this.hitBoxComponant[5]:
if (!armDestroyed){
dispatchShootIsPossible();
};
break;
case this.hitBoxComponant[6]:
if (!headDestroyed){
dispatchShootIsPossible();
};
break;
case this.hitBoxComponant[7]:
if (!headDestroyed){
dispatchShootIsPossible();
};
break;
case this.hitBoxComponant[8]:
if (!headDestroyed){
dispatchShootIsPossible();
};
break;
default:
break;
};
}
override public function initShapes():void{
this.bodyComponant = [this.bigBear.mcBigBear_corps, this.bigBear.mcBigBear_brasG, this.bigBear.mcBigBear_tete];
this.bodyComponantRef = ["0", "1", "2"];
this.elmtDestroyed = [bodyDestroyed, armDestroyed, headDestroyed];
this.hitBoxComponant = [this.bodyComponant[0].elmt1, this.bodyComponant[0].elmt2, this.bodyComponant[0].elmt3, this.bodyComponant[1].elmt1, this.bodyComponant[1].elmt2, this.bodyComponant[1].elmt3, this.bodyComponant[2].elmt1, this.bodyComponant[2].elmt2, this.bodyComponant[2].elmt3];
}
override public function initLife():void{
setLife(9);
}
override public function attack():void{
if (!this.attackMode){
if (!this.destoyed){
this.playFatalitySound(id);
this.parent.setHerosIsDead(true);
this.attackMode = true;
this.bigBear.gotoAndPlay("attackBigBear");
};
};
}
override public function initPosition():void{
this.x = 400;
this.y = 145;
trace("initPosition();");
}
public function dispatchShootIsPossible(){
parent.shootIsPossible();
}
public function setLife(aLife:int):void{
life = aLife;
}
public function getSpeed():int{
return (speed);
}
override public function shootHim(event:Event){
var f:Number;
var ssElmt:Number;
var spliced:Array;
if (!this.parent.herosIsDead){
if (((!(this.parent.inReload)) && (!(this.destoyed)))){
this.parent.addNbShoot();
this.inShoot = true;
if (this.life >= 0){
this.bigBear.gotoAndPlay("hitBigBear");
f = 4;
ssElmt = 12;
switch (event.target){
case this.hitBoxComponant[0]:
f = 0;
ssElmt = 0;
break;
case this.hitBoxComponant[1]:
f = 0;
ssElmt = 1;
break;
case this.hitBoxComponant[2]:
f = 0;
ssElmt = 2;
break;
case this.hitBoxComponant[3]:
f = 1;
ssElmt = 3;
break;
case this.hitBoxComponant[4]:
f = 1;
ssElmt = 4;
break;
case this.hitBoxComponant[5]:
f = 1;
ssElmt = 5;
break;
case this.hitBoxComponant[6]:
f = 2;
ssElmt = 6;
break;
case this.hitBoxComponant[7]:
f = 2;
ssElmt = 7;
break;
case this.hitBoxComponant[8]:
f = 2;
ssElmt = 8;
break;
default:
f = 4;
break;
};
if (f != 4){
if (this[("lifeComponant" + f)] >= 0){
var _local5 = this;
var _local6 = ("lifeComponant" + f);
var _local7 = (_local5[_local6] - 1);
_local5[_local6] = _local7;
};
if (!elmtDestroyed[f]){
if (this[("lifeComponant" + f)] == 0){
elmtDestroyed[f] = true;
};
this.life--;
addToScore(pointByComponant);
playHitSound(1);
};
if (ssElmt != 12){
this.hitBoxComponant[ssElmt].gotoAndPlay("xplod");
};
if (this[("lifeComponant" + f)] == 0){
spliced = this.bodyComponantRef.splice(f, 1);
};
} else {
trace("else >> num :", f);
};
testIsDead(event);
} else {
playFatalitySound(7);
addToScore((pointByComponant * 2));
event.target.gotoAndStop("xplod");
this.destoyed = true;
this.bigBear.gotoAndPlay("dieBigBear");
};
};
};
}
override public function endAttack():void{
this.attackMode = false;
this.destoyed = true;
this.AttackToDestroyed();
}
public function setSpeed(aSpeed:int):void{
speed = aSpeed;
}
override public function initSpeed():void{
setSpeed(1.5);
setSpeedY(0);
}
public function getId():int{
return (id);
}
override public function endFatality():void{
this.bigBear.gotoAndStop("dispar");
this.attackMode = false;
if (!this.destoyed){
this.destoyed = true;
this.fatalityToDestroyed();
};
}
public function setId(aId:int):void{
id = aId;
}
override public function initMovieClip():void{
this.gotoAndPlay("typeBigBear");
}
public function amorceAttack():void{
if (!this.attackMode){
if (!this.destoyed){
this.attackMode = true;
};
};
}
public function getLife():int{
return (life);
}
override function enterFrame(e:Event){
if (((!(attackMode)) && (!(destoyed)))){
if (!this.parent.herosIsDead){
if (this.x > (this.parent.heroPosition + 50)){
this.x = (this.x - (1 * speed));
} else {
this.attack();
};
};
};
if (((!(destoyed)) && (!(this.parent.inGame)))){
this.attackMode = false;
this.destoyed = true;
this.AttackToDestroyed();
};
}
override public function initEnemyId():void{
setId(6);
trace("setId(6);");
}
public function zombiDeath(event:Event):void{
addToScore((pointByComponant * 2));
playFatalitySound(7);
event.target.gotoAndStop("xPlod3");
this.destoyed = true;
this.bigBear.gotoAndPlay("dieBigBear");
}
public function testIsDead(event:Event):void{
var testLife:Number;
testLife = (this.life - 1);
if (testLife < 0){
zombiDeath(event);
};
}
public function getSpeedY():int{
return (speedY);
}
}
}//package shootemup
Section 6
//displayScore (shootemup.displayScore)
package shootemup {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
public class displayScore extends MovieClip {
public var txtScore:TextField;
public var mcBlood:MovieClip;
private var score:Number;
public function displayScore():void{
super();
updateDisplayScore();
}
public function updateDisplayScore():void{
parentScore = this.parent.getScore();
currentParentLevelScore = this.parent.getCurrentLevelScore();
this.score = (parentScore + currentParentLevelScore);
this.txtScore.text = (this.score + " pts");
}
public function upScore():void{
lunchBlood();
}
public function lunchBlood():void{
this.mcBlood.gotoAndPlay("blood");
}
}
}//package shootemup
Section 7
//Enemy (shootemup.Enemy)
package shootemup {
import flash.events.*;
import flash.display.*;
import fl.motion.easing.*;
public class Enemy extends MovieClip {
protected var attackMode:Boolean;// = false
public var vampire:MovieClip;
public var tutoPuppet:MovieClip;
public var bat:MovieClip;
private var speed:int;
public var isShootZone:Boolean;// = false
public var betweenTwoEnemies:Number;// = 100
public var initialPosition:Number;// = 700
public var zombieLittle:MovieClip;
private var tabEnRefTest:Array;
protected var over:Boolean;// = false
public var bigBear:MovieClip;
private var mouseDown:Boolean;// = false
private var speedY:int;
public var zombieFat:MovieClip;
public var id:int;
public var lycan:MovieClip;
private var currentPositionUzi:Number;// = 0
public var mcArmor:MovieClip;
private var destoyed:Boolean;// = false
public var mcEclatsUzi:MovieClip;
public var zombieNuts:MovieClip;
private var delayUzi:Number;// = 4
protected var inShoot:Boolean;// = false
public function Enemy():void{
destoyed = false;
attackMode = false;
inShoot = false;
over = false;
isShootZone = false;
delayUzi = 4;
currentPositionUzi = 0;
mouseDown = false;
betweenTwoEnemies = 100;
initialPosition = 700;
tabEnRefTest = ["Bat", "ZombieFat", "ZombieLittle", "Lycan", "Armor", "Vampire", "BigBear", "ZombieNuts"];
addFrameScript(0, frame1, 10, frame11, 22, frame23, 29, frame30, 38, frame39, 39, frame40, 49, frame50, 60, frame61, 78, frame79, 79, frame80, 94, frame95, 106, frame107);
super();
this.initEnemisEvents();
}
public function setTargetOver(event:Event){
trace("event", event.target.name);
}
public function isDestroyed():void{
this.parent.enemyDie();
this.parent.removeChild(this);
}
public function initShapes():void{
}
function initEnemisEvents(){
this.addEventListener(Event.ENTER_FRAME, enterFrame, false, 0, true);
this.addEventListener(MouseEvent.MOUSE_DOWN, listenShoot, false, 0, true);
this.addEventListener(MouseEvent.MOUSE_UP, listenUnShoot, false, 0, true);
this.addEventListener(MouseEvent.MOUSE_OVER, setTargetOver, false, 0, true);
this.addEventListener(MouseEvent.ROLL_OVER, dragOver, false, 0, true);
this.addEventListener(MouseEvent.ROLL_OUT, dragOut, false, 0, true);
}
public function dragOver(event:Event){
if (!over){
this.addEventListener(Event.ENTER_FRAME, uzi, false, 0, true);
};
this.over = true;
}
public function initLife():void{
}
public function attack():void{
this.attackMode = true;
}
public function initEnemy():void{
this.initEnemyId();
this.initSpeed();
this.initLife();
this.moveY();
this.initMovieClip();
}
public function initPosition():void{
}
public function fatalityToDestroyed():void{
this.parent.fatalityAttack(id);
this.parent.removeChild(this);
}
public function AttackToDestroyed():void{
this.parent.enemyAttack(id);
this.parent.removeChild(this);
}
function frame11(){
this.initShapes();
stop();
}
private function uzi(event:Event):void{
if (this.currentPositionUzi <= 0){
shootMitraille(event.target);
this.currentPositionUzi = 4;
};
this.currentPositionUzi--;
}
function frame23(){
this.initShapes();
stop();
}
function frame1(){
stop();
}
function frame30(){
this.initShapes();
stop();
}
public function playHitSound(soundNum:Number):void{
this.parent.playHitSound(soundNum);
}
private function listenShoot(event:Event):void{
if (!parent.inShootOrNot()){
this.mouseDown = true;
this.parent.listenDown(isShootZone);
shootHim(event);
};
}
function frame39(){
this.initShapes();
stop();
}
public function unShootHim(event:Event){
this.inShoot = false;
}
public function moveY():void{
}
function frame40(){
this.initShapes();
}
public function endHit():void{
this.inShoot = false;
}
function frame50(){
stop();
}
function frame61(){
this.initShapes();
stop();
}
public function shootHim(event:Event){
}
public function addToScore(addScore:Number){
this.parent.addToScore(addScore);
}
public function endAttack():void{
this.attackMode = false;
if (!this.destoyed){
this.destoyed = true;
this.AttackToDestroyed();
};
}
public function initSpeed():void{
}
function frame79(){
this.initShapes();
stop();
}
public function reInitIfNeed():void{
}
public function endFatality():void{
this.attackMode = false;
if (!this.destoyed){
this.destoyed = true;
this.fatalityToDestroyed();
};
}
public function playFatalitySound(idEnemy:Number):void{
this.parent.playFatalitySound(idEnemy);
}
public function setDestroy(){
this.destoyed = true;
}
function frame80(){
this.initShapes();
trace("initShape...");
}
private function listenUnShoot(event:Event):void{
this.mouseDown = false;
this.parent.listenUp();
unShootHim(event);
}
function frame95(){
stop();
}
function frame107(){
this.initShapes();
stop();
}
public function initMovieClip():void{
}
function enterFrame(e:Event){
}
public function dragOut(event:Event){
if (over){
this.removeEventListener(Event.ENTER_FRAME, uzi);
};
this.over = false;
parent.shootNotPossible();
}
public function shootMitraille(mc:MovieClip){
}
public function initEnemyId():void{
}
}
}//package shootemup
Section 8
//FinalScorePanel (shootemup.FinalScorePanel)
package shootemup {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
public class FinalScorePanel extends MovieClip {
private var nbMedals:Number;// = 6
public var mcWinMedal:MovieClip;
private var varTotalScore:Number;// = 0
private var bonusLastLevel:Number;// = 500
private var arrayPurcentLevel:Array;
public var txtAccuracy:TextField;
public var btStartPanel:SimpleButton;
private var varCurrentScore:Number;// = 0
public var mcMiniMedals:MovieClip;
private var varCurrentLevelScore:Number;// = 0
public function FinalScorePanel():void{
nbMedals = 6;
varCurrentScore = 0;
varCurrentLevelScore = 0;
varTotalScore = 0;
bonusLastLevel = 500;
super();
updateScore();
initializeMedals();
}
private function initializeMedals(){
var i:int;
var checkAMA:Array;
var AMANum:Number;
var checkAMAT:Array;
var AMATNum:Number;
var a:int;
this.btStartPanel.addEventListener(MouseEvent.CLICK, replayToStartPanel);
i = 1;
while (i < (nbMedals + 1)) {
trace((" FinalScorePanel initializeMedals med :" + i));
if (getMedalsActives(i)){
this.mcMiniMedals[("med" + i)].visible = true;
} else {
this.mcMiniMedals[("med" + i)].visible = false;
};
i++;
};
this.parent.setSharedObjects();
trace("checkAllMedalsActive [", this.parent.getCheckAllMedalsActive(), "]");
checkAMA = this.parent.getCheckAllMedalsActive();
AMANum = 0;
trace("checkAllMedalsActiveTemp [", this.parent.getCheckAllMedalsActiveTemp(), "]");
checkAMAT = this.parent.getCheckAllMedalsActiveTemp();
AMATNum = 0;
a = 0;
while (a < checkAMA.length) {
AMANum = (AMANum + checkAMA[a]);
AMATNum = (AMATNum + checkAMAT[a]);
a++;
};
trace("result Medals Actvive:", AMANum, ", result Temp Medal Active:", AMATNum, "AMANum-AMATNum:", (AMANum - AMATNum));
if ((AMANum - AMATNum) < 0){
mcWinMedal.visible = true;
} else {
mcWinMedal.visible = false;
};
}
private function replayToStartPanel(evt:Event){
this.parent.replayToStartPanel(evt);
}
public function updateScore():void{
var level:Number;
var nbTotalShoot:Number;
var nbTirSurZonneDeClick:Number;
var nbShootOnZombies:Number;
var accuracy:Number;
var bonus:Number;
var result:Number;
var i:int;
var totalAccuracy:Number;
this.arrayPurcentLevel = this.parent.getArrayPurcentLevel();
trace("arrayPurcentLevel", arrayPurcentLevel);
this.varCurrentScore = this.parent.getScore();
this.varCurrentLevelScore = this.parent.getCurrentLevelScore();
level = this.parent.getCurrentLevel();
nbTotalShoot = this.parent.getTotalShootByLevel();
nbTirSurZonneDeClick = this.parent.getShootZoneShoot();
nbShootOnZombies = (nbTotalShoot - nbTirSurZonneDeClick);
accuracy = Math.floor(((100 * nbShootOnZombies) / nbTotalShoot));
this.parent.setArrayPurcentLevel(accuracy, level);
this.arrayPurcentLevel = this.parent.getArrayPurcentLevel();
trace("arrayPurcentLevel", arrayPurcentLevel);
bonus = (Math.floor(((varCurrentLevelScore * accuracy) / 100)) + bonusLastLevel);
result = 0;
i = 0;
while (i < this.arrayPurcentLevel.length) {
result = (result + arrayPurcentLevel[i]);
trace("i =", i, "arrayPurcentLevel[", arrayPurcentLevel[i], "]");
i++;
};
totalAccuracy = (result / this.arrayPurcentLevel.length);
this.txtAccuracy.text = (totalAccuracy + "%");
this.varTotalScore = ((varCurrentScore + varCurrentLevelScore) + bonus);
this.parent.setScore(varTotalScore);
}
private function getMedalsActives(idMedal:Number):Boolean{
return (this.parent.getMedalsActives(idMedal));
}
}
}//package shootemup
Section 9
//FscreenInterface (shootemup.FscreenInterface)
package shootemup {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
public class FscreenInterface extends MovieClip {
public var btUnFscreen:SimpleButton;
public var btFscreen:SimpleButton;
public function FscreenInterface():void{
super();
addFrameScript(5, frame6, 12, frame13);
hideFscreenPanel();
initializeBtGameInterface();
verifIsFscreen();
}
public function hideFscreenPanel():void{
this.visible = false;
}
function frame6(){
stop();
}
function frame13(){
stop();
}
public function showFscreenPanel():void{
this.visible = true;
}
function initializeBtGameInterface():void{
btFscreen.addEventListener(MouseEvent.CLICK, onFscreenPushed);
btUnFscreen.addEventListener(MouseEvent.CLICK, onUnFscreenPushed);
btFscreen.addEventListener(MouseEvent.MOUSE_OVER, mouseOverFscreen);
btFscreen.addEventListener(MouseEvent.MOUSE_OUT, mouseOutFscreen);
btUnFscreen.addEventListener(MouseEvent.MOUSE_OVER, mouseOverFscreen);
btUnFscreen.addEventListener(MouseEvent.MOUSE_OUT, mouseOutFscreen);
}
private function onUnFscreenPushed(event:Event):void{
this.gotoAndPlay("toFscreen");
this.parent.gotoNormalScreen();
}
public function verifIsFscreen():void{
if (this.parent.getIfGameIsFscreen()){
this.gotoAndPlay("toUnFscreen");
};
}
private function mouseOutFscreen(event:Event):void{
this.parent.dontShowCursorOneTime = false;
}
private function onFscreenPushed(event:Event):void{
this.gotoAndPlay("toUnFscreen");
this.parent.gotoFullScreen();
}
private function mouseOverFscreen(event:Event):void{
this.parent.dontShowCursorOneTime = true;
}
}
}//package shootemup
Section 10
//Gameplay (shootemup.Gameplay)
package shootemup {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
public class Gameplay extends MovieClip {
private var playMoreUrl:String;// = "http://www.pictogame.com"
private var vampireLevel:int;// = 4
private var scoreLastLevel:Number;// = 0
public var mcSoundInterface:SoundInterface;
private var pictoDataUrl:String;// = "data.pictogame.com"
public var mcFinalScorePanel:FinalScorePanel;
private var vagueEnemi:Number;// = 2
public var uziUsed:Boolean;// = false
private var soundFatalityVampire_bloodSucker:Sound;
private var nbVampireByWave:Number;
public var inSwap:Boolean;// = false
public var tutoPressSpace:Boolean;// = false
private var toRight:Boolean;// = true
private var enemisDestroyed:Number;// = 0
private var soundUziIsPlaying:Boolean;// = false
private var soundshotGunReload:Sound;
public var mcFirstTimePlay:MovieClip;
private var maxLevel:int;// = 5
private var mustHideMouse:Boolean;// = false
private var soundsInterfaceIntroSOund:Sound;
private var soundBGround:Sound;
private var playZombieUrl:String;// = "http://www.pictogame.com/en/play/game/MU7iAFBjVSi1_army-of-the-dead"
public var checkAllMedalsActive:Array;
public var btSpaceBarFS:SimpleButton;
private var soundHit1:Sound;
private var soundHit2:Sound;
private var soundHit3:Sound;
private var endLastWave:Number;
private var chitVar:Number;// = 0
private var channelOthersWeapons:SoundChannel;
private var soundFatalityVampire_deplacement:Sound;
public var mcOutroWinPanel:MovieClip;
private var soundUziReload:Sound;
private var over:Boolean;// = false
public var mcDecors:MovieClip;
private var channelTutoPanel:SoundChannel;
private var soundGunShoot:Sound;
public var mcStartPanel:MovieClip;
public var gameWidth:int;// = 700
private var lunchShowBtnMenuTimer:Number;
private var nameOfTheFunctions:String;// = "nothing"
public var id;
private var nbShootZoneShoot:Number;// = 0
public var enemiesFinalArray:Array;
private var soundRadioMessage2:Sound;
public var btBackMenu:SimpleButton;
public var mcOutroLosePanel:MovieClip;
public var mcYouLose:MovieClip;
private var soundFatalityArmor:Sound;
private var nbEndUrl:Number;// = 3
private var soundRadioMessage3:Sound;
public var nbEnemiesCreate:Number;
private var currentLevel:Number;
public var gotoPictogamePanel:MovieClip;
private var target:Target;
private var soundBigBearAgonie:Sound;
private var kongregateUrl:String;// = "chat.kongregate.com"
private var pictoUrl:String;// = "jchaillou.ygame"
public var chWeapons:MovieClip;
public var mcLife:MovieClip;
public var currentVampireCount:Number;
private var isWaiting:Boolean;
public var herosIsDead:Boolean;// = false
public var firstWave:Boolean;// = true
private var soundsInterfaceEnterLevel:Sound;
private var testingServerLevel:int;// = 5
private var FGLUrl:String;// = "www.flashgamelicense.com"
public var btAddEnemy:MovieClip;
public var mcFscreen:FscreenInterface;
public var enemyContainer:MovieClip;
private var soundWarningTuto:Sound;
private var soundHelico_ext:Sound;
public var inShoot:Boolean;// = false
private var soundFatalityBat:Sound;
private var soundBGroundEnd:Sound;
private var channelBGround:SoundChannel;
public var outro:Boolean;// = false
private var chitMode:Boolean;// = false
public var heroLife:Number;
private var mute:Boolean;// = true
private var enemies:Array;
private var nbEnemy:Number;
public var zoneDeClik:MovieClip;
private var soundRadioMessage:Sound;
public var mcStoryRadio:StoryPanel;
private var soundshotGunReloadEnd:Sound;
private var soundUziShoot:Sound;
private var nbTotalShootByLevel:Number;// = 0
private var channelUzi:SoundChannel;
private var firstTimePlay:Boolean;
public var intro:Boolean;// = true
public var tabNbEnemisLeftToWin:Array;
private var soundRadioSwitch:Sound;
public var dontShowCursorOneTime:Boolean;// = false
public var urlSwf:String;
private var soundShotGunShoot:Sound;
public var bgTuto:MovieClip;
public var currentEnemiesCount:Number;
private var soundGunReload:Sound;
private var nonobaUrl:String;// = "files.nonoba.com"
private var soundFatalityZombieLittle:Sound;
public var inGame:Boolean;// = false
public var mcLevelUp:MovieClip;
private var score:Number;// = 0
private var nbWave:Number;// = 0
private var vampireMode:Boolean;// = false
protected var inBreak:Boolean;// = false
public var mcExplainTuto:MovieClip;
public var mcSharedObjects:sharedObjects;
public var mcCurrentWeapon:MovieClip;
private var enemiLeftToWin:Number;
public var life:Number;
private var soundsInterfaceBell:Sound;
public var checkAllMedalsActiveTemp:Array;
private var isMouseHidden:Boolean;// = false
public var inReload:Boolean;// = false
private var soundBGround2:Sound;
public var sortie:TextField;
private var soundFatalityBigBear:Sound;
public var mcCible:MovieClip;
public var heroPosition:Number;// = 50
private var nbEnemyByWave:Number;
private var channelFatality:SoundChannel;
private var soundFatalityLycan:Sound;
private var TIME_BETWEEN_WAVES:Number;// = 0
private var channelInterface:SoundChannel;
private var channelStoryPanel:SoundChannel;
private var level:Number;
private var soundHoldWeapons:Sound;
private var enemy:Enemy;
private var channelHit:SoundChannel;
public var notOnlyGun:Boolean;// = false
public var inTutorial:Boolean;// = false
public var mcDisplayScore:displayScore;
public var gameHeight:int;// = 350
private var enemiesAddon:Number;// = 5
protected var mousePressed:Boolean;// = false
public var mcHeros:Hero;
private var soundBackGround:Sound;
private var soundHelico_int:Sound;
private var currentLevelScore:Number;// = 0
private var soundFatalityZombieFat:Sound;
private var enemiesArray:Array;
public var fullScreen:Boolean;// = false
public function Gameplay():void{
nameOfTheFunctions = "nothing";
fullScreen = false;
nbTotalShootByLevel = 0;
nbShootZoneShoot = 0;
gameWidth = 700;
gameHeight = 350;
notOnlyGun = false;
uziUsed = false;
mute = true;
inBreak = false;
inGame = false;
chitVar = 0;
chitMode = false;
mousePressed = false;
vampireLevel = 4;
testingServerLevel = 5;
maxLevel = 5;
enemisDestroyed = 0;
enemiesAddon = 5;
mustHideMouse = false;
isMouseHidden = false;
vampireMode = false;
heroPosition = 50;
herosIsDead = false;
dontShowCursorOneTime = false;
inShoot = false;
inReload = false;
inSwap = false;
toRight = true;
over = false;
inTutorial = false;
tutoPressSpace = false;
firstWave = true;
intro = true;
outro = false;
vagueEnemi = 2;
nbWave = 0;
TIME_BETWEEN_WAVES = 0;
pictoUrl = "jchaillou.ygame";
pictoDataUrl = "data.pictogame.com";
kongregateUrl = "chat.kongregate.com";
nonobaUrl = "files.nonoba.com";
FGLUrl = "www.flashgamelicense.com";
nbEndUrl = 3;
playMoreUrl = "http://www.pictogame.com";
playZombieUrl = "http://www.pictogame.com/en/play/game/MU7iAFBjVSi1_army-of-the-dead";
currentLevelScore = 0;
score = 0;
scoreLastLevel = 0;
soundUziIsPlaying = false;
id = Math.random();
super();
addFrameScript(0, frame1, 8, frame9, 9, frame10, 18, frame19, 24, frame25, 25, frame26, 28, frame29, 29, frame30, 30, frame31, 38, frame39, 39, frame40, 48, frame49, 49, frame50, 59, frame60, 60, frame61, 75, frame76, 76, frame77, 81, frame82, 85, frame86, 93, frame94);
stage.displayState = StageDisplayState.NORMAL;
stage.scaleMode = StageScaleMode.NO_SCALE;
initializeListener();
}
public function getCurrentLevel():Number{
return (currentLevel);
}
public function endShoot():void{
this.inShoot = false;
}
private function keyPressedDown(event:KeyboardEvent):void{
var key:uint;
key = event.keyCode;
switch (key){
case Keyboard.SPACE:
if (inTutorial){
if (tutoPressSpace){
this.playReloadSound(1);
this.mcExplainTuto.gotoAndStop("completed");
this.tutoPressSpace = false;
mustReload();
this.mcHeros.Reload();
};
};
break;
};
}
public function changeWeapons():void{
traceB("changeWeapons : inSwap", inSwap, " inShoot", inShoot, "inReload", inReload);
if (free()){
this.inSwap = true;
traceB("changeWeapons in free() : inSwap", inSwap, " inShoot", inShoot, "inReload", inReload);
if (this.mcHeros.currentWeapon < this.mcHeros.nbWeapons){
this.mcHeros.currentWeapon++;
} else {
this.mcHeros.currentWeapon = 1;
};
this.mcCurrentWeapon.gotoAndStop(this.mcHeros.currentWeapon);
this.mcHeros.setStandAndWeapons();
this.endSwapWeapons();
};
}
public function fatalityAttack(aId:int):void{
this.inGame = false;
this.gameOver();
}
public function setHerosIsDead(hide:Boolean){
this.mcFscreen.hideFscreenPanel();
this.mcSoundInterface.hideMutePanel();
herosIsDead = true;
if (hide){
this.mcHeros.gotoAndStop("hide");
} else {
this.mcHeros.gotoAndStop("fatalityBat");
};
this.mcYouLose.gotoAndPlay("gameover");
}
private function showBtnMenu(evt:Event){
var tempoBtnMenu:Number;
tempoBtnMenu = 2000;
if (getTimer() > (this.lunchShowBtnMenuTimer + tempoBtnMenu)){
this.removeEventListener(Event.ENTER_FRAME, showBtnMenu);
this.btBackMenu.visible = true;
};
}
public function shoot():void{
if (free()){
this.inShoot = true;
};
}
public function inShootOrNot():Boolean{
return (inShoot);
}
function setLevel(numDecor:Number):void{
this.mcDecors.gotoAndStop(numDecor);
}
function nextLevel(){
this.currentLevel++;
if (this.currentLevel != testingServerLevel){
this.initializeLevel();
if (this.currentLevel == 2){
addWeapons(currentLevel);
};
if (this.currentLevel == 3){
addWeapons(currentLevel);
};
};
if (this.currentLevel == testingServerLevel){
if (!verifTesting()){
if (goodServeur()){
this.initializeLevel();
} else {
this.gotoAndPlay("gotoPictoGame");
};
} else {
this.initializeLevel();
};
};
}
function frame19(){
stop();
}
function frame10(){
trace("startPanel");
initializeFirstTimePlay();
initializeStartPanel();
}
public function setIntroFinish(){
this.intro = false;
}
function CtrlListener():void{
this.mcCurrentWeapon.btCurrentWeapon.addEventListener(MouseEvent.MOUSE_DOWN, changeWeaponsClick, false, 0, true);
this.mcCurrentWeapon.btCurrentWeapon.addEventListener(MouseEvent.MOUSE_OVER, mouseOverButtonInGame, false, 0, true);
this.mcCurrentWeapon.btCurrentWeapon.addEventListener(MouseEvent.MOUSE_OUT, mouseOutButtonInGame, false, 0, true);
this.zoneDeClik.addEventListener(MouseEvent.CLICK, mouseDown, false, 0, true);
this.zoneDeClik.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownUzi, false, 0, true);
this.zoneDeClik.addEventListener(MouseEvent.MOUSE_UP, mouseUp, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_UP, mouseUp, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_UP, keyPressedUp, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressedDown, false, 0, true);
this.addEventListener(Event.ENTER_FRAME, enterFrame, false, 0, true);
this.btBackMenu.addEventListener(MouseEvent.MOUSE_OVER, mouseOverButtonInGame, false, 0, true);
this.btBackMenu.addEventListener(MouseEvent.MOUSE_OUT, mouseOutButtonInGame, false, 0, true);
this.btBackMenu.addEventListener(MouseEvent.MOUSE_UP, mouseUpBackMenu, false, 0, true);
this.btSpaceBarFS.addEventListener(MouseEvent.MOUSE_DOWN, simulSpaceBar, false, 0, true);
this.btSpaceBarFS.addEventListener(MouseEvent.MOUSE_OVER, mouseOverButtonInGame, false, 0, true);
this.btSpaceBarFS.addEventListener(MouseEvent.MOUSE_OUT, mouseOutButtonInGame, false, 0, true);
}
private function initializeListener():void{
traceB("function initializeListener()");
verifTesting();
initSounds();
}
public function initializeTuto():void{
dontShowCursorOneTime = true;
this.mcCurrentWeapon.mcUziRemoved.visible = false;
this.tutoPressSpace = false;
this.inTutorial = true;
enemy = new TutoPuppet();
this.addChild(enemy);
enemy.initPosition();
enemy.name = "cible";
addTarget();
this.herosIsDead = false;
this.inReload = false;
this.inBreak = false;
this.inShoot = false;
this.enemiLeftToWin = vagueEnemi;
this.nbEnemy = 0;
this.currentEnemiesCount = 0;
this.enemisDestroyed = 0;
this.nbEnemiesCreate = 0;
this.inGame = true;
this.mcExplainTuto.btReplayTuto.addEventListener(MouseEvent.CLICK, replayTuto, false, 0, true);
this.mcExplainTuto.btPlayGame.addEventListener(MouseEvent.CLICK, replayToStartPanelFromTuto, false, 0, true);
this.mcExplainTuto.btSkip.addEventListener(MouseEvent.CLICK, skipToStartPanelFromTuto, false, 0, true);
this.zoneDeClik.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown, false, 0, true);
this.zoneDeClik.addEventListener(MouseEvent.MOUSE_UP, mouseUp, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_UP, keyPressedUp, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressedDown, false, 0, true);
this.btSpaceBarFS.addEventListener(MouseEvent.MOUSE_DOWN, simulSpaceBar, false, 0, true);
this.btSpaceBarFS.addEventListener(MouseEvent.MOUSE_OVER, mouseOverButtonInGame, false, 0, true);
this.btSpaceBarFS.addEventListener(MouseEvent.MOUSE_OUT, mouseOutButtonInGame, false, 0, true);
}
public function medalNoUziUsedAllReadyActivated():Boolean{
return (this.parent.medalNoUziUsedAllReadyActivated);
}
private function playUziSound():void{
if (!soundUziIsPlaying){
this.soundUziIsPlaying = true;
channelUzi = soundUziShoot.play();
channelUzi.addEventListener(Event.SOUND_COMPLETE, playUziSoundLoop, false, 0, true);
};
}
private function gameIsFinish():Boolean{
return (this.parent.gameIsFinish);
}
function frame1(){
trace("Humm?");
if (!this.parent.firstTimePlay){
this.gotoAndPlay("startPanel");
};
trace("Humm?222");
}
function frame29(){
stop();
}
private function totalAccuracy():Number{
var accAdd:Number;
var totalAcc:Number;
var i:int;
accAdd = 0;
i = 0;
while (i < this.parent.arrayPurcentLevel.length) {
accAdd = (accAdd + this.parent.arrayPurcentLevel[i]);
i++;
};
totalAcc = (accAdd / this.parent.arrayPurcentLevel.length);
return (totalAcc);
}
public function setActiveMedals(){
this.parent.gameIsFinish = true;
if (this.parent.heroLife == 3){
this.parent.noLivesUsed = true;
};
if (this.uziUsed){
this.parent.uziNoUsed = false;
} else {
this.parent.uziNoUsed = true;
};
if (this.notOnlyGun){
this.parent.justGunUsed = false;
} else {
this.parent.justGunUsed = true;
};
}
function replayGame():void{
this.CtrlListener();
this.initVar(true);
}
function frame30(){
this.replayGame();
trace("replayGame");
gotoAndPlay("gameEndFrame");
}
function frame31(){
trace("initializeGame()");
this.initializeGame();
stop();
}
function gotoStartPanel(eSpanel:Event):void{
if (chitVar == 2){
chitVar = 3;
} else {
chitVar = 0;
};
this.mcSoundInterface.showMutePanel();
this.mcFscreen.showFscreenPanel();
this.mcStartPanel.gotoAndPlay("startPanel");
}
public function playHitSound(soundNum:Number):void{
if (((inGame) && (!(herosIsDead)))){
channelHit = this[("soundHit" + soundNum)].play();
};
}
function frame26(){
this.initializeTuto();
}
function frame9(){
stop();
}
function frame39(){
stop();
trace("NikLuiSAMER4444");
}
public function getCheckAllMedalsActiveTemp():Array{
return (checkAllMedalsActiveTemp);
}
private function clickToGoFullScreen(fSEvent:Event):void{
goFullScreen();
}
private function uziNoUsed():Boolean{
return (this.parent.uziNoUsed);
}
public function showScoreInGame():void{
this.mcDisplayScore.visible = true;
}
function frame49(){
stop();
}
private function noLivesUsed():Boolean{
return (this.parent.noLivesUsed);
}
public function initializeFirstTimePlay():void{
this.mcFirstTimePlay.visible = false;
this.mcFirstTimePlay.btTuto.addEventListener(MouseEvent.CLICK, gotoTutorial, false, 0, true);
this.mcFirstTimePlay.btGame.addEventListener(MouseEvent.CLICK, gotoGameWithoutTuto, false, 0, true);
}
function frame25(){
stop();
}
function gotoFinalScorePanel(eToGame:Event):void{
this.gotoAndPlay("endPanel");
}
public function scanServeur():String{
var serveur:String;
var testUrl:String;
var testUrlNonoba:String;
this.sortie.appendText((("this.urlSwf: [" + this.urlSwf) + "] \n"));
testUrl = this.urlSwf.split("/")[2];
testUrlNonoba = this.urlSwf.split("/")[3];
if (testUrl == this.pictoUrl){
this.sortie.appendText((((("\n scanServeur testUrl == this.pictoUrl: [" + testUrl) + "==") + this.pictoUrl) + "]\n"));
serveur = "?scr=pictoZombies";
} else {
if (testUrl == this.pictoDataUrl){
this.sortie.appendText((((("\n scanServeur testUrl == this.pictoDataUrl: [" + testUrl) + "==") + this.pictoDataUrl) + "]\n"));
serveur = "?scr=pictoZombies";
} else {
if (testUrl == this.kongregateUrl){
this.sortie.appendText((((("\n scanServeur testUrl == this.kongregateUrl: [" + testUrl) + "==") + this.kongregateUrl) + "]\n"));
serveur = "?scr=kongregateZombies";
} else {
if (testUrlNonoba == this.nonobaUrl){
this.sortie.appendText((((("\n scanServeur testUrlNonoba == this.nonobaUrl: [" + testUrlNonoba) + "==") + this.nonobaUrl) + "]\n"));
serveur = "?scr=nonobaZombies";
} else {
if (testUrl == this.FGLUrl){
this.sortie.appendText((((("\n scanServeur testUrl == this.FGLUrl: [" + testUrlNonoba) + "==") + this.nonobaUrl) + "]\n"));
serveur = "?scr=FGLZombies";
} else {
this.sortie.appendText("\n scanServeur Test Serveur : ELSE pas sur le bon serveur\n");
serveur = "?scr=otherZombies";
};
};
};
};
};
this.sortie.appendText(((" scanServeur var serveur = " + serveur) + "\n"));
return (serveur);
}
public function medal90AllReadyActivated():Boolean{
return (this.parent.medal90AllReadyActivated);
}
function replayToStartPanelFromTuto(eSpanel:Event):void{
this.stopAmbianceSoundForInterfaceLoop();
this.inGame = false;
this.inTutorial = false;
this.setTutoToGame(true);
this.enemy.endFatality();
this.gotoAndPlay("restartGameFTuto");
}
public function setOutroFinish(){
this.outro = false;
}
function frame50(){
initializeLosePanel();
}
function frame40(){
this.initializeWinPanel();
}
public function getScore():Number{
return (score);
}
public function getTutoToGame():Boolean{
return (this.parent.tutoToGame);
}
function frame60(){
stop();
}
function frame61(){
this.initializeFinalScorePanel();
}
public function initShoot(zone:Boolean):void{
if (free()){
this.mcHeros.Shoot();
if (zone){
addNbZoneShoot();
};
};
}
public function getTotalShootByLevel():Number{
return (nbTotalShootByLevel);
}
public function addToScore(addScore:Number){
this.currentLevelScore = (this.currentLevelScore + addScore);
refreshScoreIndication();
}
public function endSwapWeapons():void{
this.inSwap = false;
this.inShoot = false;
this.inReload = false;
}
function winLevel(){
this.playInterfaceSound(1, "WinPanel", 0.6);
this.stopAmbianceSoundLoop();
if (this.currentLevel < maxLevel){
this.mcFscreen.hideFscreenPanel();
this.mcSoundInterface.hideMutePanel();
this.mcLevelUp.gotoAndPlay("levelUp");
} else {
this.winGame();
};
}
public function mustReload():void{
this.inReload = true;
this.inShoot = false;
}
function frame77(){
this.initializeGotoPictoGame();
}
public function getCheckAllMedalsActive():Array{
return (checkAllMedalsActive);
}
public function addNbZoneShoot():void{
this.nbShootZoneShoot++;
this.nbTotalShootByLevel++;
}
function replayToStartPanel(eSpanel:Event):void{
this.playInterfaceSound(1, "replayToStartPanel", 0.6);
this.gotoAndPlay("restartGame");
}
function frame76(){
stop();
}
function frame86(){
parent.gotoAndPlay("restartGame");
stop();
}
private function refreshScoreIndication():void{
this.mcDisplayScore.upScore();
}
private function simulSpaceBar(evt:Event):void{
if (free()){
mustReload();
this.mcHeros.Reload();
};
if (tutoPressSpace){
this.playReloadSound(1);
this.mcExplainTuto.gotoAndStop("completed");
this.tutoPressSpace = false;
mustReload();
this.mcHeros.Reload();
};
}
private function mouseUpBackMenu(event:Event){
dontShowCursorOneTime = false;
inGame = false;
stopAmbianceSoundLoop();
this.gotoAndPlay("restartGame");
}
public function medalWinGameAllReadyActivated():Boolean{
return (this.parent.medalWinGameAllReadyActivated);
}
public function initEndShoot():void{
stopUziSound();
this.mcHeros.endShoot();
}
public function gotoNormalScreen():void{
goFullScreen();
setGameIsNormalScreen();
}
function gotoPlayMoreGame(evt:Event):void{
var request:URLRequest;
var serveur:String;
var evt = evt;
serveur = scanServeur();
request = new URLRequest((playMoreUrl + serveur));
navigateToURL(request, "_blank");
//unresolved jump
var _slot1 = e;
}
private function levelUp(eLevelUp:Event):void{
this.mcLevelUp.gotoAndPlay("startGame");
this.reInitVar();
}
public function replayTuto(evt:Event):void{
this.tutoPressSpace = false;
this.inTutorial = true;
this.playInterfaceSound(3, "ReplayTUto", 0.6);
this.enemy.rePlayTuto();
}
private function lunchAmbianceSoundForInterfaceLoop(event:Event):void{
lunchAmbianceSoundForInterface();
}
public function hideScoreInGame():void{
this.mcDisplayScore.visible = false;
}
private function stopAmbianceSoundLoop():void{
channelBGround.stop();
}
public function playRollOverButtonSound():void{
this.channelInterface = this.soundHit2.play();
}
function frame82(){
stop();
}
public function enterFrame(e:Event){
var nbEnByW:Number;
var i:Number;
var freeIndexI:*;
var traceNumEnemy:*;
if (inGame){
if (this.currentEnemiesCount == 0){
if (this.isWaiting){
if (getTimer() > (this.endLastWave + this.TIME_BETWEEN_WAVES)){
this.isWaiting = false;
if (((!(this.vampireMode)) && (!(this.firstWave)))){
this.nbWave++;
if (this.nbWave == 3){
if ((((currentLevel == 3)) || ((currentLevel == 4)))){
nbEnByW = (this.nbEnemyByWave + 2);
};
this.nbWave = 0;
} else {
nbEnByW = this.nbEnemyByWave;
};
i = 0;
while (i < nbEnByW) {
this.currentEnemiesCount++;
freeIndexI = Math.floor((Math.random() * this.enemiesArray.length));
if ((((freeIndexI <= this.enemiesArray.length)) && ((this.nbEnemiesCreate < this.enemiLeftToWin)))){
this.nbEnemiesCreate++;
this.createEnemy(freeIndexI);
traceNumEnemy = (i + 1);
};
i++;
};
} else {
this.currentEnemiesCount++;
if (this.vampireMode){
this.currentVampireCount++;
};
this.nbEnemiesCreate++;
this.createEnemy(1);
this.firstWave = false;
};
if (currentLevel == vampireLevel){
this.vampireMode = !(this.vampireMode);
};
};
} else {
this.isWaiting = true;
this.endLastWave = getTimer();
};
};
};
}
function frame94(){
parent.gotoAndPlay("restartGameFTuto");
stop();
}
private function addTarget():void{
var cible:DisplayObject;
target = new Target();
target.name = "target";
this.addChild(target);
target.initializeTargetEvent();
cible = this.getChildByName("target");
}
public function gotoFullScreen():void{
goFullScreen();
setGameIsFscreen();
}
public function stopAmbianceSoundForStoryPanelLoop(funct:String):void{
channelStoryPanel.removeEventListener(Event.SOUND_COMPLETE, lunchAmbianceSoundForInterfaceLoop);
channelStoryPanel.stop();
traceB("stop Ambiance sound declanché par :", funct);
}
function initializeLevel():void{
trace("fUNcTION: initializeLevel\n scoreLastLevel", scoreLastLevel, "currentLevelScore", currentLevelScore, "score", score);
this.mcSoundInterface.hideMutePanel();
this.mcFscreen.hideFscreenPanel();
this.playInterfaceSound(1, "initializeLevel", 0.6);
this.mcStoryRadio.lunchStory();
this.setLevel(currentLevel);
this.getWave(currentLevel);
}
function gotoTutorial(eToGame:Event):void{
this.lunchAmbianceSoundForInterface();
this.playInterfaceSound(3, "gotoTutoriel", 0.6);
this.gotoAndPlay("tutorial");
}
function lookInstructions(eInstr:Event):void{
if (chitVar == 0){
chitVar = 1;
} else {
chitVar = 0;
};
this.mcStartPanel.gotoAndPlay("instructions");
}
public function lunchAmbianceSound():void{
channelBGround = this.soundBackGround.play();
setVolume(1, channelBGround);
channelBGround.addEventListener(Event.SOUND_COMPLETE, lunchAmbianceSoundLoop, false, 0, true);
}
function winGame(){
this.setActiveMedals();
this.mcFscreen.hideFscreenPanel();
this.mcSoundInterface.hideMutePanel();
this.gotoAndPlay("outroWin");
}
private function fullScreenAction(event:FullScreenEvent){
}
public function addWeapons(num:Number):void{
if (num <= 2){
this.mcHeros.nbWeapons = num;
} else {
this.mcHeros.nbWeapons = 3;
};
switch (this.mcHeros.nbWeapons){
case 2:
this.mcCurrentWeapon.mcHiddenShootGun.visible = false;
break;
case 3:
this.mcCurrentWeapon.mcHiddenShootGun.visible = false;
this.mcCurrentWeapon.mcHiddenUzi.visible = false;
break;
default:
break;
};
}
private function mouseDownUzi(event:Event){
if (((inGame) && (!(inSwap)))){
if ((((((this.mcHeros.currentWeapon == 3)) && (!(herosIsDead)))) && (!(mousePressed)))){
listenDown(true);
};
};
}
private function currentLevelTesting():Number{
var varSetNumLevel:Number;
if (this.parent.testing()){
varSetNumLevel = 1;
this.intro = true;
} else {
varSetNumLevel = 1;
};
return (varSetNumLevel);
}
public function changeWeaponsClick(e:Event):void{
if (free()){
this.changeWeapons();
};
}
public function unMuteVolume():void{
SoundMixer.soundTransform = new SoundTransform(1, 0);
setSoundIsUnMute();
}
public function initLevelUp(){
mcLevelUp.btLevelUp.addEventListener(MouseEvent.CLICK, levelUp, false, 0, true);
}
function verifTesting():Boolean{
if (this.parent.testing()){
this.tabNbEnemisLeftToWin = [15, 20, 25, 30, 1];
this.pictoUrl = "jchaillou.ygame";
return (true);
};
this.tabNbEnemisLeftToWin = [15, 20, 25, 30, 1];
this.pictoUrl = "www.pictogame.com";
return (false);
}
private function setVolume(volume:Number, channel:SoundChannel):void{
channel.soundTransform = new SoundTransform(volume, 0);
}
private function endOutro():void{
this.outro = true;
}
private function mouseUp(event:Event){
if (inGame){
listenUp();
};
}
public function medalOnlyGunUsedAllReadyActivated():Boolean{
return (this.parent.medalOnlyGunUsedAllReadyActivated);
}
public function initializeLosePanel():void{
mcOutroLosePanel.btStartPanel.addEventListener(MouseEvent.CLICK, replayToStartPanel, false, 0, true);
this.mcFscreen.showFscreenPanel();
this.mcSoundInterface.showMutePanel();
this.heroLife = this.parent.heroLife;
if (this.heroLife > 0){
mcOutroLosePanel.btReplayThisLevel.addEventListener(MouseEvent.CLICK, replayThisLevel, false, 0, true);
mcOutroLosePanel.nbLife.text = (("(" + heroLife) + ")");
this.parent.heroLife--;
} else {
mcOutroLosePanel.btReplayThisLevel.visible = false;
mcOutroLosePanel.mcYouReDead.visible = false;
mcOutroLosePanel.nbLife.text = "";
};
}
private function reInitVar():void{
this.btBackMenu.visible = false;
this.inReload = false;
this.inShoot = false;
this.herosIsDead = false;
this.inBreak = false;
this.nbEnemy = 0;
this.nbWave = 0;
this.enemisDestroyed = 0;
this.currentEnemiesCount = 0;
this.nbEnemiesCreate = 0;
this.mcHeros.reInitVar();
this.mcCurrentWeapon.gotoAndStop(4);
this.mcCurrentWeapon.gotoAndStop(this.mcHeros.currentWeapon);
this.mcHeros.setStandAndWeapons();
this.nextLevel();
}
private function mouseOverButtonInGame(event:Event){
dontShowCursorOneTime = true;
}
public function shootIsPossible():void{
this.target.shootIsPossible();
}
private function endIntro():void{
this.intro = false;
}
public function endReload():void{
this.inReload = false;
this.inShoot = false;
}
function skipToStartPanelFromTuto(eSpanel:Event):void{
this.stopAmbianceSoundForInterfaceLoop();
this.mcFscreen.hideFscreenPanel();
this.mcSoundInterface.hideMutePanel();
this.inGame = false;
this.inTutorial = false;
this.setTutoToGame(true);
this.enemy.setDestroy();
this.enemy.endFatality();
this.gotoAndPlay("restartGameFTuto");
}
private function playSoundOverBt(evt:Event):void{
this.channelInterface = this.soundHit2.play(0.2);
setVolume(1, channelInterface);
}
function gotoGameWithoutTuto(eToGame:Event):void{
if (!this.parent.firstTimePlay){
} else {
this.parent.firstTimePlay = false;
};
this.gotoAndPlay("game");
}
public function initializeStartPanel():void{
var textSortie:String;
textSortie = ("function goodServeur() :" + goodServeur());
this.sortie.appendText(textSortie);
mcStartPanel.btStart.addEventListener(MouseEvent.CLICK, gotoGame, false, 0, true);
mcStartPanel.btStartTuto.addEventListener(MouseEvent.CLICK, gotoTutorial, false, 0, true);
mcStartPanel.btCtrl.addEventListener(MouseEvent.CLICK, lookInstructions, false, 0, true);
mcStartPanel.btMedals.addEventListener(MouseEvent.CLICK, lookMedals, false, 0, true);
mcStartPanel.btBack.addEventListener(MouseEvent.CLICK, gotoStartPanel, false, 0, true);
mcStartPanel.btPicToGame.addEventListener(MouseEvent.CLICK, gotoPlayMoreGame, false, 0, true);
mcStartPanel.btPlayMoreGame.addEventListener(MouseEvent.CLICK, gotoPlayMoreGame, false, 0, true);
mcStartPanel.btStart.addEventListener(MouseEvent.MOUSE_OVER, playSoundOverBt, false, 0, true);
mcStartPanel.btStartTuto.addEventListener(MouseEvent.MOUSE_OVER, playSoundOverBt, false, 0, true);
mcStartPanel.btCtrl.addEventListener(MouseEvent.MOUSE_OVER, playSoundOverBt, false, 0, true);
mcStartPanel.btMedals.addEventListener(MouseEvent.MOUSE_OVER, playSoundOverBt, false, 0, true);
mcStartPanel.btBack.addEventListener(MouseEvent.MOUSE_OVER, playSoundOverBt, false, 0, true);
mcStartPanel.btPicToGame.addEventListener(MouseEvent.MOUSE_OVER, playSoundOverBt, false, 0, true);
mcStartPanel.btPlayMoreGame.addEventListener(MouseEvent.MOUSE_OVER, playSoundOverBt, false, 0, true);
mcStartPanel.btFscreen.addEventListener(MouseEvent.CLICK, clickToGoFullScreen, false, 0, true);
stage.addEventListener(FullScreenEvent.FULL_SCREEN, fullScreenAction, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_UP, keyPressedUp, false, 0, true);
this.mcFscreen.showFscreenPanel();
this.mcSoundInterface.showMutePanel();
}
public function removeUziWeapons():void{
if (currentLevel == 5){
this.mcHeros.nbWeapons = 2;
this.mcCurrentWeapon.mcUziRemoved.visible = true;
};
}
public function free():Boolean{
if (((((((((inGame) && (!(herosIsDead)))) && (!(inReload)))) && (!(inShoot)))) && (!(inSwap)))){
return (true);
};
return (false);
}
private function initSounds():void{
this.soundWarningTuto = new SoundWarningTuto();
this.soundGunShoot = new SoundGunShoot();
this.soundShotGunShoot = new SoundShotGunShoot();
this.soundUziShoot = new SoundUziShoot();
this.soundHoldWeapons = new SoundHoldWeapons();
this.soundGunReload = new SoundGunReload();
this.soundshotGunReload = new SoundShotGunReload();
this.soundshotGunReloadEnd = new SoundShotGunReloadEnd();
this.soundUziReload = new SoundUziReload();
this.soundBackGround = new SoundBackGround();
this.soundHit1 = new SoundHit1();
this.soundHit2 = new SoundHit2();
this.soundHit3 = new SoundHit3();
this.soundsInterfaceIntroSOund = new SoundsInterfaceIntroSOund();
this.soundsInterfaceBell = new SoundsInterfaceBell();
this.soundsInterfaceEnterLevel = new SoundsInterfaceEnterLevel();
this.soundBGround = new SoundBGround();
this.soundBGround2 = new SoundBGround2();
this.soundBGroundEnd = new SoundBGroundEnd();
this.soundHelico_ext = new SoundHelico_ext();
this.soundHelico_int = new SoundHelico_int();
this.soundFatalityArmor = new SoundFatalityArmor();
this.soundFatalityBat = new SoundFatalityBat();
this.soundFatalityBigBear = new SoundFatalityBigBear();
this.soundBigBearAgonie = new SoundBigBearAgonie();
this.soundFatalityLycan = new SoundFatalityLycan();
this.soundFatalityVampire_bloodSucker = new SoundFatalityVampire_bloodSucker();
this.soundFatalityVampire_deplacement = new SoundFatalityVampire_deplacement();
this.soundFatalityZombieFat = new SoundFatalityZombieFat();
this.soundFatalityZombieLittle = new SoundFatalityZombieLittle();
this.soundRadioSwitch = new SoundRadioSwitch();
this.soundRadioMessage = new SoundRadioMessage();
this.soundRadioMessage2 = new SoundRadioMessage2();
this.soundRadioMessage3 = new SoundRadioMessage3();
}
public function playShootSound(soundNum:Number):void{
if (((inGame) && (!(herosIsDead)))){
switch (soundNum){
case 1:
channelOthersWeapons = this.soundGunShoot.play();
setVolume(0.5, channelOthersWeapons);
break;
case 2:
channelOthersWeapons = this.soundShotGunShoot.play();
setVolume(0.8, channelOthersWeapons);
break;
case 3:
playUziSound();
setVolume(0.7, channelUzi);
break;
case 4:
channelOthersWeapons = this.soundHoldWeapons.play();
setVolume(1, channelOthersWeapons);
break;
default:
break;
};
};
}
public function goodServeur():Boolean{
var good:Boolean;
var testUrl:String;
var testUrlNonoba:String;
this.sortie.appendText(((" scanServeur this.urlSwf: [" + this.urlSwf) + "] \n"));
testUrl = this.urlSwf.split("/")[2];
testUrlNonoba = this.urlSwf.split("/")[3];
this.sortie.appendText((((("testServeur: var testUrl: [" + testUrl) + "][") + this.pictoUrl) + "]"));
if (testUrl == this.pictoUrl){
this.sortie.appendText((((("\n testUrl == this.pictoUrl: [" + testUrl) + "==") + this.pictoUrl) + "]\n"));
this.sortie.appendText("TARACE MAUDITE");
good = true;
} else {
if (testUrl == this.pictoDataUrl){
this.sortie.appendText((((("\n testUrl == this.pictoDataUrl: [" + testUrl) + "==") + this.pictoDataUrl) + "]\n"));
good = true;
} else {
if (testUrl == this.kongregateUrl){
this.sortie.appendText((((("\n testUrl == this.kongregateUrl: [" + testUrl) + "==") + this.kongregateUrl) + "]\n"));
good = true;
} else {
if (testUrlNonoba == this.nonobaUrl){
this.sortie.appendText((((("\n testUrlNonoba == this.nonobaUrl: [" + testUrlNonoba) + "==") + this.nonobaUrl) + "]\n"));
good = true;
} else {
this.sortie.appendText("\n Test Serveur : ELSE pas sur le bon serveur\n");
good = false;
};
};
};
};
this.sortie.appendText((("var good = " + good) + "\n"));
return (good);
}
public function getMedalsActives(idMedal:Number):Boolean{
switch (idMedal){
case 1:
if (!medalWinGameAllReadyActivated()){
if (gameIsFinish()){
this.parent.medalWinGameAllReadyActivated = true;
return (true);
};
return (false);
} else {
return (true);
};
case 2:
if (!medalNoLiveUsedAllReadyActivated()){
if (noLivesUsed()){
this.parent.medalNoLiveUsedAllReadyActivated = true;
return (true);
};
return (false);
} else {
return (true);
};
case 3:
if (!medalNoUziUsedAllReadyActivated()){
if (((gameIsFinish()) && (uziNoUsed()))){
this.parent.medalNoUziUsedAllReadyActivated = true;
return (true);
};
return (false);
} else {
return (true);
};
case 4:
if (!medalOnlyGunUsedAllReadyActivated()){
if (((gameIsFinish()) && (justGunUsed()))){
this.parent.medalOnlyGunUsedAllReadyActivated = true;
return (true);
};
return (false);
} else {
return (true);
};
case 5:
if (!medal90AllReadyActivated()){
if (totalAccuracy() > 90){
this.parent.medal90AllReadyActivated = true;
return (true);
};
return (false);
} else {
return (true);
};
case 6:
if (!medal100AllReadyActivated()){
if (totalAccuracy() == 100){
this.parent.medal100AllReadyActivated = true;
return (true);
};
return (false);
} else {
return (true);
};
};
}
private function justGunUsed():Boolean{
return (this.parent.justGunUsed);
}
public function lunchAmbianceSoundForStoryPanel(funct:String):void{
channelStoryPanel = this.soundBGround2.play();
channelStoryPanel.addEventListener(Event.SOUND_COMPLETE, lunchAmbianceSoundForStoryPanelLoop, false, 0, true);
}
private function lunchShowBtnMenu():void{
this.lunchShowBtnMenuTimer = getTimer();
this.addEventListener(Event.ENTER_FRAME, showBtnMenu, false, 0, true);
}
public function setSoundIsMute():void{
this.parent.soundIsMute = true;
}
public function muteVolume():void{
SoundMixer.soundTransform = new SoundTransform(0, 0);
setSoundIsMute();
}
public function setGameIsFscreen():void{
this.parent.gameIsFscreen = true;
}
private function keyPressedUp(event:KeyboardEvent):void{
var key:uint;
key = event.keyCode;
switch (key){
case Keyboard.SPACE:
if (free()){
mustReload();
this.mcHeros.Reload();
};
break;
case 65:
if (free()){
changeWeapons();
};
case 78:
if (chitVar == 3){
chitVar = 4;
} else {
chitVar = 0;
};
break;
case 85:
if (chitVar == 4){
chitVar = 5;
} else {
chitVar = 0;
};
break;
case 84:
if (chitVar == 5){
chitVar = 6;
} else {
chitVar = 0;
};
break;
case 83:
if (chitVar == 6){
activatCheatCode();
chitVar = 0;
} else {
chitVar = 0;
};
break;
};
}
public function listenUp():void{
if (mousePressed){
this.mousePressed = false;
if (inShoot){
initEndShoot();
};
};
}
override public function gotoAndPlay(frame:Object, scene:String=null):void{
var index:uint;
var i:uint;
for (i in this.currentLabels) {
if (this.currentLabels[i].name == frame){
index = this.currentLabels[i].frame;
};
};
super.gotoAndPlay(frame, scene);
}
private function lunchAmbianceSoundForStoryPanelLoop(event:Event):void{
lunchAmbianceSoundForStoryPanel("lunchAmbianceSoundForStoryPanel[Loop]");
}
public function getArrayPurcentLevel():Array{
return (this.parent.arrayPurcentLevel);
}
private function mouseDown(event:Event){
if (inGame){
if ((((((this.mcHeros.currentWeapon < 3)) && (!(herosIsDead)))) && (!(mousePressed)))){
listenDown(true);
};
};
}
function removeCtrlListener():void{
stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUp);
stage.removeEventListener(KeyboardEvent.KEY_UP, keyPressedUp);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyPressedDown);
this.removeEventListener(Event.ENTER_FRAME, enterFrame);
this.removeEventListener(Event.ENTER_FRAME, enterFrame2);
}
public function addNbShoot():void{
this.nbTotalShootByLevel++;
}
public function setTutoToGame(b:Boolean){
this.parent.tutoToGame = b;
}
public function medal100AllReadyActivated():Boolean{
return (this.parent.medal100AllReadyActivated);
}
public function goFullScreen():void{
if (this.parent.varOnTheNet){
if (!fullScreen){
stage.displayState = StageDisplayState.FULL_SCREEN;
fullScreen = true;
} else {
stage.displayState = StageDisplayState.NORMAL;
fullScreen = false;
};
};
}
public function setArrayPurcentLevel(newPurcent:Number, lvl:Number){
this.parent.arrayPurcentLevel[(lvl - 1)] = newPurcent;
}
public function listenDown(zone:Boolean):void{
this.mousePressed = true;
if (!inSwap){
initShoot(zone);
};
}
public function getCurrentLevelScore():Number{
return (currentLevelScore);
}
public function setSoundIsUnMute():void{
this.parent.soundIsMute = false;
}
public function playReloadSound(soundNum:Number):void{
if (((inGame) && (!(herosIsDead)))){
switch (soundNum){
case 1:
channelOthersWeapons = this.soundGunReload.play();
break;
case 2:
channelOthersWeapons = this.soundshotGunReload.play();
break;
case 3:
channelOthersWeapons = this.soundUziReload.play();
break;
case 6:
channelOthersWeapons = this.soundshotGunReloadEnd.play();
break;
default:
channelOthersWeapons = this.soundGunReload.play();
break;
};
setVolume(1, channelOthersWeapons);
};
}
private function lunchAmbianceSoundLoop(event:Event):void{
lunchAmbianceSound();
}
public function setGameIsNormalScreen():void{
this.parent.gameIsFscreen = false;
}
private function removeTarget():void{
this.removeChild(target);
}
public function initializeWinPanel():void{
this.playInterfaceSound(7, "initializeWinPanel", 0.8);
mcOutroWinPanel.btStartPanel.addEventListener(MouseEvent.CLICK, gotoFinalScorePanel, false, 0, true);
}
private function stopUziSound():void{
this.soundUziIsPlaying = false;
if (this.mcHeros.currentWeapon == 3){
channelUzi.stop();
};
}
public function initializeFinalScorePanel():void{
this.mcFscreen.showFscreenPanel();
this.mcSoundInterface.showMutePanel();
this.playHitSound(1);
}
public function playFatalitySound(soundNum:Number):void{
if (inGame){
switch (soundNum){
case 0:
channelFatality = this.soundFatalityBat.play();
break;
case 1:
channelFatality = this.soundFatalityZombieFat.play();
break;
case 2:
channelFatality = this.soundFatalityZombieLittle.play();
break;
case 3:
channelFatality = this.soundFatalityLycan.play();
setVolume(1, channelFatality);
break;
case 4:
channelFatality = this.soundFatalityArmor.play();
break;
case 51:
channelFatality = this.soundFatalityVampire_deplacement.play();
break;
case 52:
channelFatality = this.soundFatalityVampire_bloodSucker.play();
break;
case 6:
channelFatality = this.soundFatalityBigBear.play();
setVolume(1, channelFatality);
break;
case 7:
channelFatality = this.soundBigBearAgonie.play();
break;
default:
break;
};
};
}
public function initializeGotoPictoGame():void{
this.gotoPictogamePanel.btPicToGame.addEventListener(MouseEvent.CLICK, gotoPlayZombieOnPicto, false, 0, true);
this.gotoPictogamePanel.btStartPanel.addEventListener(MouseEvent.CLICK, replayToStartPanel, false, 0, true);
}
public function getIfSoundIsMute():Boolean{
return (this.parent.soundIsMute);
}
public function setScore(scr:Number):void{
this.scoreLastLevel = scr;
this.score = scr;
this.currentLevelScore = 0;
this.nbShootZoneShoot = 0;
this.nbTotalShootByLevel = 0;
refreshScoreIndication();
}
function replayThisLevel(eSpanel:Event):void{
this.playInterfaceSound(1, "ReplayThisLevel", 0.6);
this.gotoAndPlay("replayThisLevel");
}
public function stopAmbianceSoundForInterfaceLoop():void{
channelTutoPanel.removeEventListener(Event.SOUND_COMPLETE, lunchAmbianceSoundForInterfaceLoop);
channelTutoPanel.stop();
traceB("YAY AY YAY AY AY YAY AY YAY AY AY AY");
}
public function getShootZoneShoot():Number{
return (nbShootZoneShoot);
}
public function medalNoLiveUsedAllReadyActivated():Boolean{
return (this.parent.medalNoLiveUsedAllReadyActivated);
}
private function getWave(numLevel:Number){
if (numLevel == 1){
this.TIME_BETWEEN_WAVES = 200;
if (!chitMode){
this.firstWave = true;
this.enemiesArray = [Bat, ZombieFat, ZombieLittle];
} else {
this.enemiesArray = [ZombieNuts];
};
this.nbEnemyByWave = 2;
this.nbVampireByWave = 0;
this.enemiLeftToWin = this.tabNbEnemisLeftToWin[(numLevel - 1)];
};
if (numLevel == 2){
this.TIME_BETWEEN_WAVES = 150;
if (!chitMode){
this.enemiesArray = [ZombieFat, ZombieLittle, Bat, Lycan];
} else {
this.enemiesArray = [ZombieFat, ZombieLittle, Bat, Lycan, ZombieNuts];
};
this.nbEnemyByWave = 3;
this.nbVampireByWave = 0;
this.enemiLeftToWin = this.tabNbEnemisLeftToWin[(numLevel - 1)];
};
if (numLevel == 3){
this.TIME_BETWEEN_WAVES = 100;
if (!chitMode){
this.enemiesArray = [ZombieFat, ZombieLittle, Bat, Lycan, Armor];
} else {
this.enemiesArray = [ZombieFat, ZombieLittle, Bat, Lycan, Armor, ZombieNuts];
};
this.nbEnemyByWave = 4;
this.nbVampireByWave = 0;
this.enemiLeftToWin = this.tabNbEnemisLeftToWin[(numLevel - 1)];
};
if (numLevel == 4){
this.TIME_BETWEEN_WAVES = 50;
this.vampireMode = true;
if (!chitMode){
this.enemiesArray = [Bat, ZombieFat, ZombieLittle, Lycan, Armor];
} else {
this.enemiesArray = [Bat, ZombieFat, ZombieLittle, Lycan, Armor, ZombieNuts];
};
this.nbEnemyByWave = 5;
this.nbVampireByWave = 1;
this.enemiLeftToWin = this.tabNbEnemisLeftToWin[(numLevel - 1)];
};
if (numLevel == 5){
this.vampireMode = false;
this.enemiesArray = [BigBear];
this.nbEnemyByWave = 1;
this.nbVampireByWave = 0;
this.enemiLeftToWin = 1;
};
}
public function endReloadUzi():void{
this.inReload = false;
if (mousePressed){
listenDown(false);
};
}
override public function gotoAndStop(frame:Object, scene:String=null):void{
var index:uint;
var i:uint;
for (i in this.currentLabels) {
if (this.currentLabels[i].name == frame){
index = this.currentLabels[i].frame;
};
};
super.gotoAndStop(frame, scene);
}
private function mouseOutButtonInGame(event:Event){
dontShowCursorOneTime = false;
}
function traceB(arg1="", arg2="", arg3="", arg4="", arg5="", arg6="", arg7="", arg8="", arg9="", arg10=""):void{
trace(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
this.sortie.appendText(((((((((((((((((((arg1 + " \n ") + arg2) + " \n ") + arg3) + " \n ") + arg4) + " \n ") + arg5) + " \n ") + arg6) + " \n ") + arg7) + " \n ") + arg8) + " \n ") + arg9) + " \n ") + arg10));
}
function initializeGame():void{
this.CtrlListener();
this.initVar(false);
}
private function playUziSoundLoop(event:Event):void{
if (((inGame) && (!(herosIsDead)))){
this.soundUziIsPlaying = false;
if (this.mcHeros.munitionsUzi >= 1){
playUziSound();
};
};
}
public function inLive():Boolean{
if (((inGame) && (!(herosIsDead)))){
return (true);
};
return (false);
}
public function setSharedObjects():void{
this.mcSharedObjects.setSharedObjects();
}
public function getIfGameIsFscreen():Boolean{
return (this.parent.gameIsFscreen);
}
public function playInterfaceSound(soundNum:Number, functionName:String, numSetVolume:Number):void{
this.nameOfTheFunctions = functionName;
switch (soundNum){
case 0:
this.channelInterface = this.soundsInterfaceIntroSOund.play();
break;
case 1:
this.channelInterface = this.soundsInterfaceBell.play();
break;
case 2:
this.channelInterface = this.soundsInterfaceEnterLevel.play();
break;
case 3:
this.channelInterface = this.soundWarningTuto.play();
break;
case 4:
this.channelInterface = this.soundRadioSwitch.play();
break;
case 50:
this.channelInterface = this.soundRadioMessage.play();
break;
case 51:
this.channelInterface = this.soundRadioMessage2.play();
break;
case 52:
this.channelInterface = this.soundRadioMessage3.play();
break;
case 7:
this.channelInterface = this.soundBGroundEnd.play();
break;
};
setVolume(numSetVolume, channelInterface);
}
function startGame():void{
playInterfaceSound(2, "StartGame", 0.6);
lunchAmbianceSound();
this.mcSoundInterface.showMutePanel();
this.mcFscreen.showFscreenPanel();
this.lunchShowBtnMenu();
this.inGame = true;
this.inBreak = false;
this.isWaiting = true;
this.currentEnemiesCount = 0;
this.endLastWave = getTimer();
this.addTarget();
addWeapons(currentLevel);
removeUziWeapons();
}
public function shootNotPossible():void{
this.target.shootNotPossible();
}
private function activatCheatCode(){
this.mcStartPanel.mcNutsVisu.gotoAndStop("activated");
this.chitMode = true;
}
function replayLevel(){
if (this.currentLevel == testingServerLevel){
if (!verifTesting()){
if (goodServeur()){
this.initializeLevel();
addWeapons(3);
} else {
this.gotoAndPlay("gotoPictoGame");
};
} else {
this.initializeLevel();
addWeapons(3);
};
} else {
this.initializeLevel();
if (this.currentLevel == 2){
addWeapons(currentLevel);
};
if (this.currentLevel >= 3){
addWeapons(3);
};
};
}
public function enemyDie(){
this.currentEnemiesCount--;
if ((((this.currentEnemiesCount == 0)) && (!(isWaiting)))){
this.isWaiting = true;
};
this.enemisDestroyed++;
if (enemiLeftToWin == enemisDestroyed){
this.inGame = false;
this.winLevel();
};
}
function lookMedals(eInstr:Event):void{
if (chitVar == 1){
chitVar = 2;
} else {
chitVar = 0;
};
this.mcSoundInterface.hideMutePanel();
this.mcFscreen.hideFscreenPanel();
this.mcStartPanel.gotoAndPlay("medals");
}
function gameOver(){
this.playInterfaceSound(1, "GameOver", 0.6);
this.stopAmbianceSoundLoop();
this.mcFscreen.hideFscreenPanel();
this.mcSoundInterface.hideMutePanel();
this.gotoAndPlay("outroLose");
}
function gotoPlayZombieOnPicto(evt:Event):void{
var request:URLRequest;
var serveur:String;
var evt = evt;
serveur = scanServeur();
request = new URLRequest((playZombieUrl + serveur));
navigateToURL(request, "_blank");
//unresolved jump
var _slot1 = e;
}
private function createEnemy(e:Number){
if (this.firstWave){
enemy = new ZombieFat();
} else {
if (vampireMode){
enemy = new Vampire();
} else {
enemy = new (enemiesArray[e]);
};
};
this.addChildAt(enemy, 10);
enemy.initPosition();
enemy.reInitIfNeed();
this.nbEnemy++;
this.enemies.push(enemy);
}
public function enemyAttack(aId:int){
this.currentEnemiesCount--;
if ((((this.currentEnemiesCount == 0)) && (!(isWaiting)))){
this.isWaiting = true;
};
}
public function lunchAmbianceSoundForInterface():void{
channelTutoPanel = this.soundBGround.play();
channelTutoPanel.addEventListener(Event.SOUND_COMPLETE, lunchAmbianceSoundForInterfaceLoop, false, 0, true);
}
function initVar(replay:Boolean):void{
this.mcCurrentWeapon.mcUziRemoved.visible = false;
this.btBackMenu.visible = false;
(this.urlSwf == this.parent.urlSwf);
this.herosIsDead = false;
this.inReload = false;
this.inShoot = false;
this.inBreak = false;
this.enemiLeftToWin = vagueEnemi;
this.nbWave = 0;
this.nbEnemy = 0;
this.currentEnemiesCount = 0;
this.enemisDestroyed = 0;
this.nbEnemiesCreate = 0;
if (!replay){
this.currentLevel = currentLevelTesting();
} else {
this.currentLevel = this.currentLevel;
this.score = this.scoreLastLevel;
this.currentLevelScore = 0;
this.refreshScoreIndication();
};
trace("BORDEL ?");
this.initializeLevel();
this.currentVampireCount = 0;
this.enemies = new Array();
this.enemiesFinalArray = new Array();
this.enemiesFinalArray = ["Bat", "ZombieFat", "ZombieLittle", "Lycan", "Armor", "Vampire", "BigBear"];
}
function gotoGame(eToGame:Event):void{
stage.removeEventListener(KeyboardEvent.KEY_UP, keyPressedUp);
this.chitVar = 0;
this.firstTimePlay = this.parent.firstTimePlay;
this.mcFirstTimePlay.visible = true;
}
}
}//package shootemup
Section 11
//Hero (shootemup.Hero)
package shootemup {
import gs.*;
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Hero extends MovieClip {
public var currentWeapon:Number;// = 1
public var life:Number;
public var munitionsShootGun;// = 5
public var munitionsGun;// = 12
public var munitionsUzi;// = 20
public var nbWeapons:Number;// = 1
public var heros:MovieClip;
private var marge:Number;// = 25
public static const WEAPONS_GUN:int = 1;
public static const WEAPONS_SHOOTGUN:int = 2;
public static const WEAPONS_UZI:int = 3;
public function Hero():void{
marge = 25;
nbWeapons = 1;
currentWeapon = 1;
munitionsGun = 12;
munitionsShootGun = 5;
munitionsUzi = 20;
super();
addFrameScript(0, frame1, 8, frame9, 9, frame10, 10, frame11);
initPersoPosition();
initPerso();
}
public function dispatchEndReload():void{
this.parent.endReload();
}
private function tweenTargetNormal(n:Number):void{
TweenLite.to(this.heros.bodyUp, 0.25, {rotation:n});
}
function updateHeroRotation(event:Event):void{
if ((((this.currentWeapon == 3)) && (this.parent.inGame))){
if ((((stage.mouseX > 200)) && ((stage.mouseX < 700)))){
if ((((stage.mouseY < 295)) && ((stage.mouseY > 0)))){
rotationHeros();
} else {
tweenTargetFast(0);
};
} else {
tweenTargetFast(0);
};
} else {
if (this.parent.free()){
if ((((stage.mouseX > 200)) && ((stage.mouseX < 700)))){
if ((((stage.mouseY < 295)) && ((stage.mouseY > 0)))){
rotationHeros();
} else {
tweenTargetFast(0);
};
} else {
tweenTargetFast(0);
};
};
};
}
public function initPerso():void{
stage.addEventListener(MouseEvent.MOUSE_MOVE, updateHeroRotation, false, 0, true);
this.life = this.parent.life;
this.nbWeapons = 1;
}
public function Shoot():void{
switch (currentWeapon){
case WEAPONS_GUN:
this.updateNbMunitions(1);
break;
case WEAPONS_SHOOTGUN:
this.updateNbMunitions(2);
break;
case WEAPONS_UZI:
this.updateNbMunitions(3);
break;
};
}
public function mustReload():void{
this.parent.mustReload();
this.Reload();
}
public function endShoot():void{
switch (currentWeapon){
case WEAPONS_GUN:
break;
case WEAPONS_SHOOTGUN:
break;
case WEAPONS_UZI:
dispatchEndShoot();
if (this.munitionsUzi > 0){
this.heros.bodyUp.gotoAndPlay("finUzi");
};
break;
};
}
public function dispatchEndReloadUzi():void{
this.parent.endReloadUzi();
}
function frame10(){
stop();
}
private function tweenTargetFast(n:Number):void{
TweenLite.to(this.heros.bodyUp, 0.2, {rotation:n});
}
public function reInitVar():void{
this.heros.bodyUp.gotoAndPlay("droite");
this.heros.bodyUp.rotation = 0;
this.munitionsGun = 12;
this.munitionsShootGun = 5;
this.munitionsUzi = 20;
this.currentWeapon = 1;
}
public function initPersoPosition():void{
this.heros.bodyUp.rotation = 0;
this.x = this.parent.heroPosition;
}
function frame1(){
}
function frame9(){
stop();
}
public function initialize():void{
}
public function updateNbMunitions(weapon:Number):void{
var numReload:Number;
numReload = 4;
if (weapon == WEAPONS_GUN){
if (munitionsGun <= 0){
mustReload();
} else {
this.parent.playShootSound(weapon);
this.parent.shoot();
this.heros.bodyUp.gotoAndPlay("tirGun");
this.munitionsGun--;
this.parent.mcCurrentWeapon.mcMunitions.text = this.munitionsGun;
};
} else {
if (weapon == WEAPONS_SHOOTGUN){
this.parent.notOnlyGun = true;
if (munitionsShootGun <= 0){
mustReload();
} else {
this.parent.playShootSound(weapon);
this.parent.shoot();
this.heros.bodyUp.gotoAndPlay("tirPompe");
this.munitionsShootGun--;
this.parent.mcCurrentWeapon.mcMunitions.text = this.munitionsShootGun;
};
} else {
if (weapon == WEAPONS_UZI){
this.parent.notOnlyGun = true;
this.parent.uziUsed = true;
if (munitionsUzi <= 0){
mustReload();
} else {
this.parent.playShootSound(weapon);
this.parent.shoot();
this.heros.bodyUp.gotoAndPlay("tirUzi");
this.munitionsUzi--;
this.parent.mcCurrentWeapon.mcMunitions.text = this.munitionsUzi;
};
} else {
trace("mauvais numero pour les armes");
};
};
};
}
public function dispatchEndShoot():void{
this.parent.endShoot();
}
function frame11(){
stop();
}
public function setStandAndWeapons(){
switch (currentWeapon){
case WEAPONS_GUN:
this.heros.gotoAndStop("gun");
break;
case WEAPONS_SHOOTGUN:
this.heros.gotoAndStop("shotGun");
break;
case WEAPONS_UZI:
this.heros.gotoAndStop("uzi");
break;
};
}
public function upDateUziInShoot():Boolean{
if (this.munitionsUzi > 0){
this.munitionsUzi--;
this.parent.mcCurrentWeapon.mcMunitions.text = this.munitionsUzi;
return (true);
};
return (false);
}
public function Reload():void{
this.parent.endShoot();
switch (currentWeapon){
case WEAPONS_GUN:
switch (this.munitionsGun){
case 12:
this.parent.inReload = false;
break;
default:
this.parent.playReloadSound(WEAPONS_GUN);
this.heros.bodyUp.gotoAndPlay("rechargeGun");
this.munitionsGun = 12;
this.parent.mcCurrentWeapon.mcMunitions.text = this.munitionsGun;
break;
};
break;
case WEAPONS_SHOOTGUN:
switch (this.munitionsShootGun){
case 5:
this.parent.inReload = false;
break;
case 4:
this.heros.bodyUp.gotoAndPlay("rechargePompe1");
break;
case 3:
this.heros.bodyUp.gotoAndPlay("rechargePompe2");
break;
case 2:
this.heros.bodyUp.gotoAndPlay("rechargePompe3");
break;
case 1:
this.heros.bodyUp.gotoAndPlay("rechargePompe4");
break;
case 0:
this.heros.bodyUp.gotoAndPlay("rechargePompe");
break;
};
break;
case WEAPONS_UZI:
switch (this.munitionsUzi){
case 20:
this.parent.inReload = false;
break;
default:
this.parent.playReloadSound(WEAPONS_UZI);
this.heros.bodyUp.gotoAndPlay("rechargeUzi");
this.munitionsUzi = 20;
this.parent.mcCurrentWeapon.mcMunitions.text = this.munitionsUzi;
break;
};
break;
};
}
private function rotationHeros():void{
this.heros.bodyUp.rotation = ((Math.atan2((mouseY - (this.heros.bodyUp.y - 5)), (mouseX - (this.heros.bodyUp.x - 55))) / (Math.PI / 180)) + 10);
}
public function updateShootGunMunitions(nb:Number){
if (nb == 6){
this.parent.playReloadSound(nb);
} else {
this.parent.playReloadSound(currentWeapon);
this.munitionsShootGun = nb;
this.parent.mcCurrentWeapon.mcMunitions.text = this.munitionsShootGun;
};
}
}
}//package shootemup
Section 12
//Lycan (shootemup.Lycan)
package shootemup {
import flash.events.*;
import flash.display.*;
import fl.motion.easing.*;
public class Lycan extends Enemy {
public var headDestroyed:Boolean;// = false
private var bodyComponant:Array;
public var bodyDestroyed:Boolean;// = false
private var bodyComponantRef:Array;
public var armRightDestroyed:Boolean;// = false
private var life:int;
public var armDestroyed:Boolean;// = false
private var type:int;
private var destoyed:Boolean;// = false
private var pointByComponant:Number;// = 10
public function Lycan():void{
destoyed = false;
armDestroyed = false;
armRightDestroyed = false;
bodyDestroyed = false;
headDestroyed = false;
pointByComponant = 10;
super();
initEnemy();
}
public function setSpeedY(aSpeedY:int):void{
speedY = aSpeedY;
}
override public function setTargetOver(event:Event){
switch (event.target){
case this.bodyComponant[0]:
if (!bodyDestroyed){
dispatchShootIsPossible();
};
break;
case this.bodyComponant[1]:
if (!armDestroyed){
dispatchShootIsPossible();
};
break;
case this.bodyComponant[2]:
if (!armRightDestroyed){
dispatchShootIsPossible();
};
break;
case this.bodyComponant[3]:
if (!headDestroyed){
dispatchShootIsPossible();
};
break;
};
}
override public function initShapes():void{
this.bodyComponant = [this.lycan.corpsLycan, this.lycan.brasLycan, this.lycan.brasDLycan, this.lycan.teteLycan];
this.bodyComponant[0].gotoAndStop("nrml");
this.bodyComponant[1].gotoAndStop("nrml");
this.bodyComponant[2].gotoAndStop("nrml");
this.bodyComponant[3].gotoAndStop("nrml");
this.bodyComponantRef = ["0", "1", "2", "3"];
}
override public function initLife():void{
setLife(4);
}
override public function attack():void{
if (!this.attackMode){
if (!this.destoyed){
this.playFatalitySound(id);
this.parent.setHerosIsDead(true);
this.attackMode = true;
this.lycan.gotoAndPlay("attackLycan");
};
};
}
override public function initPosition():void{
this.x = (initialPosition + (this.parent.currentEnemiesCount * betweenTwoEnemies));
this.y = 145;
}
public function dispatchShootIsPossible(){
parent.shootIsPossible();
}
public function reVerifIsDEad():Boolean{
if (this.life < 0){
return (true);
};
return (false);
}
public function setLife(aLife:int):void{
life = aLife;
}
public function getSpeed():int{
return (speed);
}
override public function shootHim(event:Event){
var f:Number;
var spliced:Array;
var ff:Number;
var spliceff:Array;
var fff:Number;
var splicefff:Array;
if (((!(this.parent.herosIsDead)) && (this.parent.inShoot))){
if (((!(this.parent.inReload)) && (!(this.destoyed)))){
this.parent.addNbShoot();
this.inShoot = true;
if (this.life > 0){
if (this.parent.mcHeros.currentWeapon == 1){
this.lycan.gotoAndPlay("hitLycan");
f = 4;
switch (event.target){
case this.bodyComponant[0]:
f = 0;
if (!bodyDestroyed){
bodyDestroyed = true;
this.life--;
addToScore(pointByComponant);
playHitSound(2);
this.x = (this.x + 10);
};
break;
case this.bodyComponant[1]:
f = 1;
if (!armDestroyed){
armDestroyed = true;
this.life--;
addToScore(pointByComponant);
playHitSound(2);
this.x = (this.x + 10);
};
break;
case this.bodyComponant[2]:
f = 2;
if (!armRightDestroyed){
armRightDestroyed = true;
this.life--;
addToScore(pointByComponant);
playHitSound(2);
this.x = (this.x + 10);
};
break;
case this.bodyComponant[3]:
f = 3;
if (!headDestroyed){
headDestroyed = true;
this.life--;
addToScore(pointByComponant);
playHitSound(2);
this.x = (this.x + 10);
};
break;
default:
f = 4;
break;
};
if (f != 4){
this.x = (this.x + 10);
playHitSound(3);
this.bodyComponant[f].gotoAndStop("xPlod");
spliced = this.bodyComponantRef.splice(f, 1);
};
testIsDead(event);
} else {
if (this.parent.mcHeros.currentWeapon == 2){
this.life = (this.life - 2);
this.x = (this.x + 20);
if (this.bodyComponantRef.length > 0){
ff = Math.floor((Math.random() * this.bodyComponantRef.length));
this.bodyComponant[bodyComponantRef[ff]].gotoAndStop("xPlod");
playHitSound(3);
switch (this.bodyComponant[bodyComponantRef[ff]]){
case this.bodyComponant[0]:
if (!bodyDestroyed){
bodyDestroyed = true;
};
break;
case this.bodyComponant[1]:
if (!armDestroyed){
armDestroyed = true;
};
break;
case this.bodyComponant[2]:
if (!armRightDestroyed){
armRightDestroyed = true;
};
break;
case this.bodyComponant[3]:
if (!headDestroyed){
headDestroyed = true;
};
break;
};
spliceff = this.bodyComponantRef.splice(ff, 1);
if (!reVerifIsDEad()){
fff = Math.floor((Math.random() * this.bodyComponantRef.length));
this.bodyComponant[bodyComponantRef[fff]].gotoAndStop("xPlod");
switch (this.bodyComponant[bodyComponantRef[fff]]){
case this.bodyComponant[0]:
if (!bodyDestroyed){
bodyDestroyed = true;
};
break;
case this.bodyComponant[1]:
if (!armDestroyed){
armDestroyed = true;
};
break;
case this.bodyComponant[2]:
if (!armRightDestroyed){
armRightDestroyed = true;
};
break;
case this.bodyComponant[3]:
if (!headDestroyed){
headDestroyed = true;
};
break;
};
splicefff = this.bodyComponantRef.splice(fff, 1);
};
};
if (this.life > 0){
addToScore((pointByComponant + speed));
this.lycan.gotoAndPlay("hitLycan");
playHitSound(2);
} else {
this.lycan.gotoAndPlay("dieLycan");
this.destoyed = true;
addToScore((pointByComponant + speed));
playHitSound(3);
};
testIsDead(event);
} else {
if (this.parent.mcHeros.currentWeapon == 3){
};
};
};
} else {
addToScore((pointByComponant + speed));
event.target.gotoAndStop("xPlod");
playHitSound(3);
this.destoyed = true;
this.lycan.gotoAndPlay("dieLycan");
};
};
};
}
override public function endAttack():void{
this.attackMode = false;
this.destoyed = true;
this.AttackToDestroyed();
}
public function setSpeed(aSpeed:int):void{
speed = aSpeed;
}
override public function initSpeed():void{
setSpeed(4);
setSpeedY(0);
}
public function getId():int{
return (id);
}
override public function reInitIfNeed():void{
var lvl:Number;
lvl = this.parent.getCurrentLevel();
if (lvl < 4){
setSpeed(3);
trace("LYCAN LEVEL:(", lvl, ") : re-SET SPEED >> (", speed, ")");
} else {
trace("LYCAN LEVEL:(", lvl, ") : re-SET SPEED >> (", speed, ")");
};
}
override public function endFatality():void{
this.lycan.gotoAndStop("dispar");
this.attackMode = false;
if (!this.destoyed){
this.destoyed = true;
this.fatalityToDestroyed();
};
}
public function setId(aId:int):void{
id = aId;
}
override public function initMovieClip():void{
this.gotoAndPlay("typeLycan");
}
public function getLife():int{
return (life);
}
override function enterFrame(e:Event){
if (((!(attackMode)) && (!(destoyed)))){
if (!this.parent.herosIsDead){
if (this.x > (this.parent.heroPosition + 50)){
this.x = (this.x - (1 * speed));
} else {
this.attack();
};
};
};
if (((!(destoyed)) && (!(this.parent.inGame)))){
this.attackMode = false;
this.destoyed = true;
this.AttackToDestroyed();
};
}
override public function shootMitraille(mc:MovieClip){
var g:Number;
var splicedA:Array;
if (!this.parent.herosIsDead){
if (((((this.parent.inShoot) && (!(this.destoyed)))) && (!(this.parent.inReload)))){
if (this.parent.mcHeros.currentWeapon == 3){
this.parent.addNbShoot();
if (this.life > 0){
this.parent.initShoot(isShootZone);
this.life--;
this.x = (this.x + 10);
if (this.bodyComponantRef.length > 0){
g = Math.floor((Math.random() * this.bodyComponantRef.length));
this.bodyComponant[bodyComponantRef[g]].gotoAndStop("xPlod");
switch (this.bodyComponant[bodyComponantRef[g]]){
case this.bodyComponant[0]:
bodyDestroyed = true;
break;
case this.bodyComponant[1]:
armDestroyed = true;
break;
case this.bodyComponant[2]:
armRightDestroyed = true;
break;
case this.bodyComponant[3]:
headDestroyed = true;
break;
};
splicedA = this.bodyComponantRef.splice(g, 1);
};
this.mcEclatsUzi.gotoAndPlay("tirUzi");
if (this.life > 0){
playHitSound(2);
this.lycan.gotoAndPlay("hitLycan");
} else {
playHitSound(3);
this.destoyed = true;
this.lycan.gotoAndPlay("dieLycan");
};
addToScore(pointByComponant);
} else {
addToScore((pointByComponant * 2));
playHitSound(3);
this.destoyed = true;
this.lycan.gotoAndPlay("dieLycan");
};
};
};
};
}
public function zombiDeath(event:Event):void{
addToScore((pointByComponant * 2));
playHitSound(3);
event.target.gotoAndStop("xPlod");
this.destoyed = true;
this.lycan.gotoAndPlay("dieLycan");
}
override public function initEnemyId():void{
setId(3);
}
public function testIsDead(event:Event):void{
var testLife:Number;
testLife = (this.life - 1);
if (testLife < 0){
zombiDeath(event);
};
}
public function getSpeedY():int{
return (speedY);
}
}
}//package shootemup
Section 13
//medalsScreen (shootemup.medalsScreen)
package shootemup {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
public class medalsScreen extends MovieClip {
private var diffCloseIsActive:Boolean;// = false
private var nbMedals:Number;// = 6
public var mcZoomMedals:MovieClip;
public var btMed1:SimpleButton;
public var btMed5:SimpleButton;
public var btMed2:SimpleButton;
public var btMed6:SimpleButton;
private var medalsUnlocked:Array;
public var btMed4:SimpleButton;
public var btMed3:SimpleButton;
public var txtDescription:TextField;
public var txtHowReceiveIt:TextField;
public var ssBtMed:MovieClip;
private var isOpen:Boolean;// = false
private var presentTime:Number;
public var med1:MovieClip;
public var med2:MovieClip;
public var med4:MovieClip;
public var med5:MovieClip;
public var med3:MovieClip;
public var med6:MovieClip;
public function medalsScreen(){
isOpen = false;
diffCloseIsActive = false;
nbMedals = 6;
medalsUnlocked = [false, false, false, false, false, false];
super();
initializeMedalPanel();
initializeMedals();
}
public function setEcrinIsOpen():void{
this.isOpen = true;
}
private function initializeMedals(){
var i:int;
var MedalActived:*;
i = 1;
while (i < (nbMedals + 1)) {
MedalActived = getMedalsActives(i);
if (MedalActived){
this[("med" + i)].visible = true;
this.medalsUnlocked[(i - 1)] = MedalActived;
};
this.mcZoomMedals[("med" + i)].visible = false;
i++;
};
this.ssBtMed.visible = false;
trace("Medals initialized");
}
private function mouseOutMedals(event:Event){
if (diffCloseIsActive){
deleteCloseEcrinDiff();
};
this.ssBtMed.visible = false;
}
private function mouseClickMedals(event:Event){
switch (event.target.name){
case "btMed1":
if (this.medalsUnlocked[(1 - 1)]){
cleanUp();
openEcrin();
this.mcZoomMedals.med1.visible = true;
};
break;
case "btMed2":
if (this.medalsUnlocked[(2 - 1)]){
cleanUp();
openEcrin();
this.mcZoomMedals.med2.visible = true;
};
break;
case "btMed3":
if (this.medalsUnlocked[(3 - 1)]){
cleanUp();
openEcrin();
this.mcZoomMedals.med3.visible = true;
};
break;
case "btMed4":
if (this.medalsUnlocked[(4 - 1)]){
cleanUp();
openEcrin();
this.mcZoomMedals.med4.visible = true;
};
break;
case "btMed5":
if (this.medalsUnlocked[(5 - 1)]){
cleanUp();
openEcrin();
this.mcZoomMedals.med5.visible = true;
};
break;
case "btMed6":
if (this.medalsUnlocked[(6 - 1)]){
cleanUp();
openEcrin();
this.mcZoomMedals.med6.visible = true;
};
break;
};
}
private function showCLickIt(){
this.ssBtMed.x = mouseX;
this.ssBtMed.y = mouseY;
this.ssBtMed.visible = true;
}
private function viewdescription(description:String, howReceiveIt:String){
this.txtDescription.text = description;
this.txtHowReceiveIt.text = howReceiveIt;
}
public function setEcrinIsClose():void{
var i:int;
this.isOpen = false;
i = 1;
while (i < (nbMedals + 1)) {
this.mcZoomMedals[("med" + i)].visible = false;
i++;
};
}
private function closeEcrinDiff():void{
this.presentTime = getTimer();
this.addEventListener(Event.ENTER_FRAME, temporisation, false, 0, true);
this.diffCloseIsActive = true;
}
private function temporisation(evt:Event){
var tempo:Number;
tempo = 500;
if (getTimer() > (this.presentTime + tempo)){
deleteCloseEcrinDiff();
closeEcrin();
};
}
private function getMedalsActives(idMedal:Number):Boolean{
return (this.parent.parent.getMedalsActives(idMedal));
}
private function closeEcrin():void{
this.mcZoomMedals.mcCouvercleEcrin.gotoAndPlay("toClose");
this.isOpen = false;
}
private function openEcrin():void{
this.mcZoomMedals.mcCouvercleEcrin.gotoAndPlay("toOpen");
this.isOpen = true;
}
private function deleteCloseEcrinDiff():void{
this.removeEventListener(Event.ENTER_FRAME, temporisation);
this.diffCloseIsActive = false;
}
private function cleanUp():void{
var i:int;
this.ssBtMed.visible = false;
i = 1;
while (i < (nbMedals + 1)) {
this.mcZoomMedals[("med" + i)].visible = false;
i++;
};
}
private function mouseOverMedals(event:Event){
var text:String;
var how:String;
text = "";
how = "";
switch (event.target.name){
case "btMed1":
text = "Emblem of Military Wounds";
how = "Finish the game";
if (this.medalsUnlocked[(1 - 1)]){
this.showCLickIt();
};
break;
case "btMed2":
text = "Legionnaire of the Legion of Merit";
how = "Finish the game without loosing a life";
if (this.medalsUnlocked[(2 - 1)]){
this.showCLickIt();
};
break;
case "btMed3":
text = "Silver Star Medal";
how = "Finish the game with no machine gun";
if (this.medalsUnlocked[(3 - 1)]){
this.showCLickIt();
};
break;
case "btMed4":
text = "Distinguished Service Medal";
how = "Finish the game with the gun only";
if (this.medalsUnlocked[(4 - 1)]){
this.showCLickIt();
};
break;
case "btMed5":
text = "Distinguished Service Cross Medal";
how = "Finish the game with a 90% accuracy";
if (this.medalsUnlocked[(5 - 1)]){
this.showCLickIt();
};
break;
case "btMed6":
text = "Medal of Honor";
how = "Finish the game with a 100% accuracy";
if (this.medalsUnlocked[(6 - 1)]){
this.showCLickIt();
};
break;
};
this.viewdescription(text, how);
}
private function initializeMedalPanel(){
var i:int;
i = 0;
while (i < nbMedals) {
this[("med" + (i + 1))].visible = false;
i++;
};
this.txtDescription.text = "";
this.txtHowReceiveIt.text = "";
this.btMed1.addEventListener(MouseEvent.MOUSE_OVER, mouseOverMedals, false, 0, true);
this.btMed2.addEventListener(MouseEvent.MOUSE_OVER, mouseOverMedals, false, 0, true);
this.btMed3.addEventListener(MouseEvent.MOUSE_OVER, mouseOverMedals, false, 0, true);
this.btMed4.addEventListener(MouseEvent.MOUSE_OVER, mouseOverMedals, false, 0, true);
this.btMed5.addEventListener(MouseEvent.MOUSE_OVER, mouseOverMedals, false, 0, true);
this.btMed6.addEventListener(MouseEvent.MOUSE_OVER, mouseOverMedals, false, 0, true);
this.btMed1.addEventListener(MouseEvent.MOUSE_OUT, mouseOutMedals, false, 0, true);
this.btMed2.addEventListener(MouseEvent.MOUSE_OUT, mouseOutMedals, false, 0, true);
this.btMed3.addEventListener(MouseEvent.MOUSE_OUT, mouseOutMedals, false, 0, true);
this.btMed4.addEventListener(MouseEvent.MOUSE_OUT, mouseOutMedals, false, 0, true);
this.btMed5.addEventListener(MouseEvent.MOUSE_OUT, mouseOutMedals, false, 0, true);
this.btMed6.addEventListener(MouseEvent.MOUSE_OUT, mouseOutMedals, false, 0, true);
this.btMed1.addEventListener(MouseEvent.CLICK, mouseClickMedals, false, 0, true);
this.btMed2.addEventListener(MouseEvent.CLICK, mouseClickMedals, false, 0, true);
this.btMed3.addEventListener(MouseEvent.CLICK, mouseClickMedals, false, 0, true);
this.btMed4.addEventListener(MouseEvent.CLICK, mouseClickMedals, false, 0, true);
this.btMed5.addEventListener(MouseEvent.CLICK, mouseClickMedals, false, 0, true);
this.btMed6.addEventListener(MouseEvent.CLICK, mouseClickMedals, false, 0, true);
}
}
}//package shootemup
Section 14
//ScorePanel (shootemup.ScorePanel)
package shootemup {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
public class ScorePanel extends MovieClip {
private var varTotalScore:Number;// = 0
public var txtCurrentLevelScore:TextField;
public var txtTotalScore:TextField;
private var arrayPurcentLevel:Array;
public var txtAccuracy:TextField;
private var varCurrentScore:Number;// = 0
private var varCurrentLevelScore:Number;// = 0
public var txtBonus:TextField;
private var arrayBonusLevel:Array;
public function ScorePanel():void{
varCurrentScore = 0;
varCurrentLevelScore = 0;
varTotalScore = 0;
arrayBonusLevel = [50, 75, 100, 150, 200];
super();
updateScore();
}
public function updateScore():void{
var level:Number;
var nbTotalShoot:Number;
var nbTirSurZonneDeClick:Number;
var nbShootOnZombies:Number;
var accuracy:Number;
var bonusLevel:Number;
var bonus:Number;
this.arrayPurcentLevel = this.parent.parent.getArrayPurcentLevel();
this.varCurrentScore = this.parent.parent.getScore();
this.varCurrentLevelScore = this.parent.parent.getCurrentLevelScore();
level = this.parent.parent.getCurrentLevel();
nbTotalShoot = this.parent.parent.getTotalShootByLevel();
nbTirSurZonneDeClick = this.parent.parent.getShootZoneShoot();
nbShootOnZombies = (nbTotalShoot - nbTirSurZonneDeClick);
accuracy = Math.floor(((100 * nbShootOnZombies) / nbTotalShoot));
this.parent.parent.setArrayPurcentLevel(accuracy, level);
this.arrayPurcentLevel = this.parent.parent.getArrayPurcentLevel();
bonusLevel = arrayBonusLevel[level];
bonus = (Math.floor(((varCurrentLevelScore * accuracy) / 100)) + bonusLevel);
this.varTotalScore = ((varCurrentScore + varCurrentLevelScore) + bonus);
this.txtCurrentLevelScore.text = (varCurrentLevelScore + " pts");
this.txtAccuracy.text = (accuracy + " %");
this.txtBonus.text = (bonus + " pts");
this.txtTotalScore.text = (varTotalScore + " pts");
this.parent.parent.setScore(varTotalScore);
}
}
}//package shootemup
Section 15
//sharedObjects (shootemup.sharedObjects)
package shootemup {
import flash.display.*;
import flash.net.*;
public class sharedObjects extends MovieClip {
var varMedOne:Boolean;// = false
var varMedFour:Boolean;// = false
var varMedFive:Boolean;// = false
var varMedSix:Boolean;// = false
var varMedThree:Boolean;// = false
var my_so:SharedObject;
var varMedTwo:Boolean;// = false
public function sharedObjects(){
varMedOne = false;
varMedTwo = false;
varMedThree = false;
varMedFour = false;
varMedFive = false;
varMedSix = false;
super();
trace("sharedObjects :");
getSharedObjects();
}
public function getSharedObjects():void{
my_so = SharedObject.getLocal("medalDef");
trace(my_so.size);
if (my_so.size == 0){
my_so.data.medOne = this.parent.medalWinGameAllReadyActivated();
my_so.data.medTwo = this.parent.medalNoLiveUsedAllReadyActivated();
my_so.data.medThree = this.parent.medalNoUziUsedAllReadyActivated();
my_so.data.medFour = this.parent.medalOnlyGunUsedAllReadyActivated();
my_so.data.medFive = this.parent.medal90AllReadyActivated();
my_so.data.medSix = this.parent.medal100AllReadyActivated();
trace("pas de cookies [set a false]");
} else {
this.parent.parent.medalWinGameAllReadyActivated = my_so.data.medOne;
this.parent.parent.medalNoLiveUsedAllReadyActivated = my_so.data.medTwo;
this.parent.parent.medalNoUziUsedAllReadyActivated = my_so.data.medThree;
this.parent.parent.medalOnlyGunUsedAllReadyActivated = my_so.data.medFour;
this.parent.parent.medal90AllReadyActivated = my_so.data.medFive;
this.parent.parent.medal100AllReadyActivated = my_so.data.medSix;
trace("recuperation des cookies termine ...");
};
this.parent.checkAllMedalsActive = [BooToNum(my_so.data.medOne), BooToNum(my_so.data.medTwo), BooToNum(my_so.data.medThree), BooToNum(my_so.data.medFour), BooToNum(my_so.data.medFive), BooToNum(my_so.data.medSix)];
}
private function BooToNum(boo:Boolean):Number{
var ok:Number;
if (boo){
ok = 1;
} else {
ok = 0;
};
return (ok);
}
public function setSharedObjects():void{
my_so = SharedObject.getLocal("medalDef");
my_so.data.medOne = this.parent.medalWinGameAllReadyActivated();
my_so.data.medTwo = this.parent.medalNoLiveUsedAllReadyActivated();
my_so.data.medThree = this.parent.medalNoUziUsedAllReadyActivated();
my_so.data.medFour = this.parent.medalOnlyGunUsedAllReadyActivated();
my_so.data.medFive = this.parent.medal90AllReadyActivated();
my_so.data.medSix = this.parent.medal100AllReadyActivated();
trace("sharedObjects enregistrer ");
this.parent.checkAllMedalsActiveTemp = [BooToNum(this.parent.medalWinGameAllReadyActivated()), BooToNum(this.parent.medalNoLiveUsedAllReadyActivated()), BooToNum(this.parent.medalNoUziUsedAllReadyActivated()), BooToNum(this.parent.medalOnlyGunUsedAllReadyActivated()), BooToNum(this.parent.medal90AllReadyActivated()), BooToNum(this.parent.medal100AllReadyActivated())];
}
public function resetSharedObjects():void{
my_so = SharedObject.getLocal("medalDef");
my_so.data.medOne = false;
my_so.data.medTwo = false;
my_so.data.medThree = false;
my_so.data.medFour = false;
my_so.data.medFive = false;
my_so.data.medSix = false;
race("sharedObjects are reset ");
}
}
}//package shootemup
Section 16
//SoundInterface (shootemup.SoundInterface)
package shootemup {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
public class SoundInterface extends MovieClip {
public var btUnMute:SimpleButton;
public var btMute:SimpleButton;
public function SoundInterface():void{
super();
addFrameScript(5, frame6, 12, frame13);
hideMutePanel();
initializeBtSoundInterface();
verifIsMuted();
}
private function mouseOutMute(event:Event):void{
this.parent.dontShowCursorOneTime = false;
}
public function verifIsMuted():void{
if (this.parent.getIfSoundIsMute()){
this.gotoAndPlay("toUnMute");
};
}
public function hideMutePanel():void{
this.visible = false;
}
function frame6(){
stop();
}
function frame13(){
stop();
}
private function onUnMutePushed(event:Event):void{
this.parent.unMuteVolume();
this.gotoAndPlay("toMute");
}
function initializeBtSoundInterface():void{
btMute.addEventListener(MouseEvent.CLICK, onMutePushed, false, 0, true);
btUnMute.addEventListener(MouseEvent.CLICK, onUnMutePushed, false, 0, true);
btMute.addEventListener(MouseEvent.MOUSE_OVER, mouseOverMute, false, 0, true);
btMute.addEventListener(MouseEvent.MOUSE_OUT, mouseOutMute, false, 0, true);
btUnMute.addEventListener(MouseEvent.MOUSE_OVER, mouseOverMute, false, 0, true);
btUnMute.addEventListener(MouseEvent.MOUSE_OUT, mouseOutMute, false, 0, true);
}
private function mouseOverMute(event:Event):void{
this.parent.dontShowCursorOneTime = true;
}
public function showMutePanel():void{
this.visible = true;
}
private function onMutePushed(event:Event):void{
this.parent.muteVolume();
this.gotoAndPlay("toUnMute");
}
}
}//package shootemup
Section 17
//StoryPanel (shootemup.StoryPanel)
package shootemup {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
public class StoryPanel extends MovieClip {
public var bgOrder:Array;
public var outro:Boolean;// = false
private var changeBackgroundIntro:Number;// = 2
public var colonelTalk:Boolean;
public var presentTime:Number;
public var currentAvatar:Number;
public var currentHerosSentence:Number;
public var btNext:SimpleButton;
public var firstRead:Boolean;// = true
public var intro:Boolean;// = true
public var mcRadioHeros:MovieClip;
public var textHerosLevel1:Array;
public var textHerosLevel2:Array;
public var textHerosLevel3:Array;
public var textHerosLevel4:Array;
public var textHerosLevel5:Array;
public var textHerosLevel0:Array;
public var btSkip:SimpleButton;
public var manTalking:String;
public var currentSentence:Number;
public var textSoldierLevel1:Array;
public var textSoldierLevel2:Array;
public var textSoldierLevel5:Array;
public var textSoldierLevel3:Array;
public var textSoldierLevel4:Array;
public var textSoldierLevel0:Array;
public var mcAddWeaponsPanel:MovieClip;
public var mcBgStory:MovieClip;
public var maxSoldierReplique:Number;
public var HerosForLevel:Array;
public var currentSoldierSentence:Number;
public var forLevel5:Number;// = 0
public var maxHerosReplique:Number;
public var btSTrace:SimpleButton;
public var currentLevel:Number;
public var dialogOrderLevel0:Array;
public var dialogOrderLevel1:Array;
public var dialogOrderLevel3:Array;
public var dialogOrderLevel5:Array;
public var dialogOrderLevel2:Array;
public var mcRadioSoldier:MovieClip;
public var dialogOrderLevel4:Array;
public var SoldierForLevel:Array;
public var mcRemoveUziPanel:MovieClip;
public function StoryPanel():void{
changeBackgroundIntro = 2;
intro = true;
outro = false;
firstRead = true;
forLevel5 = 0;
dialogOrderLevel0 = ["Heros", "Heros", "Soldier", "Heros", "Heros", "Soldier", "Heros"];
textHerosLevel0 = ["Listen to me guys!", "Villagers reported strange incidents around here", "Something must attract the creatures inside the castle...", "Find out what's going on and clean up the place!", "Over"];
textSoldierLevel0 = ["Copy that Sergeant!", "Sir, yes, Sir!"];
dialogOrderLevel1 = ["Heros", "Soldier", "Soldier", "Soldier", "Heros", "Heros"];
textHerosLevel1 = ["Sergeant for Brad!", "Copy that Brad", "Over"];
textSoldierLevel1 = ["My Sergeant… It's hell over here! ", "They're pretty tough, you should like this!", "By the way, we wouldn't say no to a little hand!"];
dialogOrderLevel2 = ["Soldier", "Heros", "Soldier", "Soldier", "Heros", "Heros"];
textHerosLevel2 = ["Brad? Guys? Where are you?", "Thanks guys. Poor Brad...", "Over"];
textSoldierLevel2 = ["Sergeant we need your help!", "Brad's dead Sergeant,\n come to the graveyard ", "We left a shotgun for you Sir "];
dialogOrderLevel3 = ["Heros", "Soldier", "Soldier", "Heros", "Soldier", "Soldier", "Heros"];
textHerosLevel3 = ["Where are you guys?", "Damn it! Barry... \nWhat does attract those bloody monsters?", "Hang on guys!"];
textSoldierLevel3 = ["Hurry up my Sergeant, we've just left the graveyard ten minutes ago", "Barry, my Sergeant… \nThe creatures got him… \nHe left his machine gun", "We saw a shadow... Gzzz.\nampire... Tower… \nGzzz,", "...iting for… \n...Argzzzzz…"];
dialogOrderLevel4 = ["Heros", "Soldier", "Heros"];
textHerosLevel4 = ["Guys!... \nBig Bear! \nCan you hear me?", "…What the hell!?!"];
textSoldierLevel4 = ["… …"];
dialogOrderLevel5 = ["Heros", "Heros", "Heros", "Heros", "Soldier", "Heros"];
textHerosLevel5 = ["Juan! \nLook what they've done to you...", "...", "?!!", "Big Bear?", "Big Bear! Oh no!"];
textSoldierLevel5 = ["...ROooaAaR Grrrrr ..."];
SoldierForLevel = ["brad0", "brad1", "barry2", "bigBear3", "noSignal4", "bigBear5"];
HerosForLevel = ["heros0", "heros1", "heros2", "heros3", "heros4", "heros5"];
bgOrder = ["intro0", "niv1", "niv2", "niv3", "niv4", "niv5", "outro"];
super();
addFrameScript(8, frame9, 9, frame10, 11, frame12, 13, frame14, 15, frame16, 17, frame18, 20, frame21);
initListener();
initializeStoryPanel();
}
private function cleanAddWeaponsPanel():void{
this.mcAddWeaponsPanel.visible = false;
this.mcAddWeaponsPanel.mcUzi.visible = false;
this.mcAddWeaponsPanel.mcShotGun.visible = false;
}
private function endColonelTalk():void{
this.manTalking = "Soldier";
nextMessage();
}
public function lunchGame():void{
deleteMessageAuto();
cleanRadio();
this.alpha = 100;
this.visible = false;
this.gotoAndPlay("nrml");
this.parent.showScoreInGame();
this.parent.stopAmbianceSoundForStoryPanelLoop("story panel [function lunchGame]");
this.parent.startGame();
}
function frame16(){
this.alpha = (this.alpha - 20);
}
function frame14(){
this.alpha = (this.alpha - 20);
}
function frame10(){
this.alpha = (this.alpha - 20);
}
private function messageAuto():void{
this.presentTime = getTimer();
this.addEventListener(Event.ENTER_FRAME, temporisation, false, 0, true);
}
private function onSuperTracePushed(evt:MouseEvent){
}
function frame18(){
this.alpha = (this.alpha - 20);
}
public function setOutroIsFinish():void{
this.outro = false;
}
private function setIntroFinish():void{
this.parent.setIntroFinish();
}
function frame9(){
stop();
}
function frame21(){
lunchGame();
}
function frame12(){
this.alpha = (this.alpha - 20);
}
private function superTrace(evt:String):void{
trace("\n", "FUNCTION APPELE : ", (evt + "\n"));
trace("\n", "colonelTalk : ", colonelTalk);
trace("\n", "manTalking : ", manTalking);
trace("\n", "currentLevel : ", currentLevel);
trace("\n", "maxHerosReplique : ", maxHerosReplique);
trace("\n", "maxSoldierReplique : ", maxSoldierReplique);
trace("\n", "currentHerosSentence : ", currentHerosSentence);
trace("\n", "presentTime :", presentTime);
trace("\n", "intro : ", intro);
trace("\n", "outro : ", outro);
trace("\n", "currentSoldierSentence : ", currentSoldierSentence);
}
private function updateRadio():void{
var upCurrentSentence:*;
var currentNbAvatar:Number;
var currentKeyFrameAvatar:String;
extraByLevel();
if (firstRead){
this.parent.playInterfaceSound(50, "story Panel function updatRadio", 0.3);
this.firstRead = false;
};
this[("mcRadio" + manTalking)].visible = true;
this.mcRadioSoldier.blockText.text = "..._ ";
this.mcRadioHeros.blockText.text = "..._ ";
upCurrentSentence = this[(("current" + manTalking) + "Sentence")];
if (intro){
this[("mcRadio" + manTalking)].blockText.text = (this[(("text" + manTalking) + "Level0")][upCurrentSentence] + "_");
} else {
if (outro){
this[("mcRadio" + manTalking)].blockText.text = (this[(("text" + manTalking) + "Level5")][upCurrentSentence] + "_");
} else {
this[("mcRadio" + manTalking)].blockText.text = (this[((("text" + manTalking) + "Level") + currentLevel)][upCurrentSentence] + "_");
};
};
currentNbAvatar = [(("current" + manTalking) + "Sentence")];
if (intro){
currentKeyFrameAvatar = (this[(manTalking + "ForLevel")][0].toString() + this[(("current" + manTalking) + "Sentence")]);
} else {
if (outro){
currentKeyFrameAvatar = (this[(manTalking + "ForLevel")][5].toString() + this[(("current" + manTalking) + "Sentence")]);
} else {
currentKeyFrameAvatar = (this[(manTalking + "ForLevel")][currentLevel].toString() + this[(("current" + manTalking) + "Sentence")]);
};
};
this[("mcRadio" + manTalking)][("mcHeadExpressions" + manTalking)].gotoAndStop(currentKeyFrameAvatar);
this.parent.sortie.appendText(("\n" + currentKeyFrameAvatar.toString()));
var _local4 = this;
var _local5 = (("current" + manTalking) + "Sentence");
var _local6 = (_local4[_local5] + 1);
_local4[_local5] = _local6;
this.currentSentence++;
}
public function lunchAddWeapons():void{
var curLevel:Number;
curLevel = this.parent.getCurrentLevel();
deleteMessageAuto();
if (curLevel == 2){
cleanAddWeaponsPanel();
this.mcAddWeaponsPanel.visible = true;
this.mcAddWeaponsPanel.mcShotGun.visible = true;
} else {
if (curLevel == 3){
cleanAddWeaponsPanel();
this.mcAddWeaponsPanel.visible = true;
this.mcAddWeaponsPanel.mcUzi.visible = true;
} else {
if (curLevel == 5){
cleanRemoveUziPanel();
this.mcRemoveUziPanel.visible = true;
} else {
lunchGame();
};
};
};
}
private function onSkipPushed(evt:MouseEvent){
setIntroFinish();
deleteMessageAuto();
exitRadio();
}
private function getSetCurrentLevel():Number{
this.firstRead = true;
this.currentLevel = this.parent.getCurrentLevel();
if (!this.parent.intro){
this.intro = false;
};
if (this.parent.outro){
this.outro = true;
};
this.currentHerosSentence = 0;
this.currentSoldierSentence = 0;
this.currentSentence = 0;
if (intro){
this.parent.playInterfaceSound(0, "StoryPanel GetSetCurrentLEvel : intro:True", 0.6);
maxHerosReplique = this.textHerosLevel0.length;
maxSoldierReplique = this.textSoldierLevel0.length;
this.mcBgStory.gotoAndStop(bgOrder[0]);
} else {
if (outro){
this.parent.playInterfaceSound(2, "StoryPanel GetSetCurrentLEvel : outro:True", 0.6);
maxHerosReplique = this.textHerosLevel5.length;
maxSoldierReplique = this.textSoldierLevel5.length;
this.mcBgStory.gotoAndStop(bgOrder[5]);
} else {
this.parent.playInterfaceSound(2, "StoryPanel GetSetCurrentLEvel introOutro :False", 0.6);
maxHerosReplique = this[("textHerosLevel" + currentLevel)].length;
maxSoldierReplique = this[("textSoldierLevel" + currentLevel)].length;
this.mcBgStory.gotoAndStop(bgOrder[currentLevel]);
};
};
return (currentLevel);
}
public function closeRadio():void{
this.gotoAndPlay("toHide");
}
private function getManTalking():void{
nbSentences = (maxHerosReplique + maxSoldierReplique);
if (intro){
if (currentSentence < nbSentences){
manTalking = this.dialogOrderLevel0[currentSentence];
};
} else {
if (outro){
if (currentSentence < nbSentences){
manTalking = this.dialogOrderLevel5[currentSentence];
};
} else {
if (currentSentence < nbSentences){
manTalking = this[("dialogOrderLevel" + currentLevel)][currentSentence];
};
};
};
nextMessage();
}
public function lunchRadio():void{
getSetCurrentLevel();
this.visible = true;
}
private function cleanRadio():void{
cleanAddWeaponsPanel();
cleanRemoveUziPanel();
this.mcRadioHeros.visible = false;
this.mcRadioSoldier.visible = false;
this.mcRadioSoldier.blockText.text = "... ";
this.mcRadioHeros.blockText.text = "... ";
}
private function onOkPushed(evt:MouseEvent){
lunchGame();
}
private function extraByLevel():void{
switch (currentLevel){
case 1:
if (intro){
if (currentSentence == changeBackgroundIntro){
this.mcBgStory.gotoAndStop("intro1");
};
};
break;
case 5:
if (forLevel5 == 0){
this.mcBgStory.mcPanLevel5.gotoAndPlay("begining");
};
if (forLevel5 == 4){
this.mcBgStory.mcPanLevel5.gotoAndPlay("zoomBigBear");
};
forLevel5++;
break;
default:
break;
};
}
private function cleanRemoveUziPanel():void{
this.mcRemoveUziPanel.visible = false;
}
private function temporisation(evt:Event){
var tempo:Number;
if (this.currentLevel == 3){
tempo = 3000;
} else {
tempo = 2500;
};
if (getTimer() > (this.presentTime + tempo)){
deleteMessageAuto();
getManTalking();
};
}
public function exitRadio():void{
this.parent.playInterfaceSound(4, "story Panel function exitRadio", 0.6);
deleteMessageAuto();
lunchAddWeapons();
}
private function onClickPushed(evt:MouseEvent){
this.deleteMessageAuto();
this.messageAuto();
this.getManTalking();
}
private function endSoldierTalk():void{
this.manTalking = "Heros";
nextMessage();
}
private function nextMessage():void{
viewNextMessage();
}
public function setIntroIsFinish():void{
this.intro = false;
}
private function viewNextMessage():void{
nbSentences = (maxHerosReplique + maxSoldierReplique);
if (currentSentence < nbSentences){
updateRadio();
messageAuto();
} else {
if (intro){
setIntroFinish();
cleanRadio();
getSetCurrentLevel();
messageAuto();
} else {
if (outro){
cleanRadio();
this.parent.setOutroFinish();
} else {
deleteMessageAuto();
exitRadio();
};
};
};
}
private function deleteMessageAuto():void{
this.removeEventListener(Event.ENTER_FRAME, temporisation);
}
private function initializeStoryPanel():void{
this.colonelTalk = true;
this.manTalking = "Heros";
this.visible = false;
this.mcRemoveUziPanel.visible = false;
this.mcAddWeaponsPanel.visible = false;
this.mcRadioHeros.visible = false;
this.mcRadioSoldier.visible = false;
this.currentAvatar = 1;
}
private function initListener():void{
this.btNext.addEventListener(MouseEvent.CLICK, onClickPushed, false, 0, true);
this.btSkip.addEventListener(MouseEvent.CLICK, onSkipPushed, false, 0, true);
this.btSTrace.addEventListener(MouseEvent.CLICK, onSuperTracePushed, false, 0, true);
this.mcAddWeaponsPanel.btOk.addEventListener(MouseEvent.CLICK, onOkPushed, false, 0, true);
this.mcRemoveUziPanel.btOk.addEventListener(MouseEvent.CLICK, onOkPushed, false, 0, true);
}
public function lunchStory(){
getSetCurrentLevel();
this.visible = true;
this.gotoAndPlay("nrml");
this.parent.hideScoreInGame();
if (!this.parent.getTutoToGame()){
this.parent.lunchAmbianceSoundForStoryPanel("story panel [function LunchStory]");
};
this.parent.setTutoToGame(false);
messageAuto();
}
}
}//package shootemup
Section 18
//Target (shootemup.Target)
package shootemup {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
public class Target extends MovieClip {
public var On:Boolean;
public function Target(){
super();
addFrameScript(4, frame5, 13, frame14);
initializeTargetVars();
}
private function initializeTargetVars():void{
this.On = true;
this.x = -50;
this.y = -50;
}
function frame14(){
gotoAndPlay("over");
}
function frame5(){
stop();
}
public function shootIsPossible():void{
this.gotoAndPlay("over");
}
public function shootNotPossible():void{
this.gotoAndPlay("out");
}
private function hideShowTarget(e:Event):void{
if (parent.inGame){
if ((((((((stage.mouseX > 0)) && ((stage.mouseX < 700)))) && ((stage.mouseY > 0)))) && ((stage.mouseY < 350)))){
if (!parent.dontShowCursorOneTime){
if (!parent.herosIsDead){
this.x = stage.mouseX;
this.y = stage.mouseY;
} else {
this.x = -50;
this.y = -50;
};
Mouse.hide();
} else {
Mouse.show();
this.x = -50;
this.y = -50;
};
} else {
Mouse.show();
this.x = -50;
this.y = -50;
};
} else {
Mouse.show();
this.x = -50;
this.y = -50;
};
}
public function initializeTargetEvent():void{
this.stage.addEventListener(Event.ENTER_FRAME, hideShowTarget, false, 0, true);
}
}
}//package shootemup
Section 19
//TutoPuppet (shootemup.TutoPuppet)
package shootemup {
import flash.events.*;
import fl.motion.easing.*;
public class TutoPuppet extends Enemy {
public var headDestroyed:Boolean;// = false
private var bodyComponant:Array;
public var bodyDestroyed:Boolean;// = false
private var bodyComponantRef:Array;
public var armRightIsShootable:Boolean;// = false
private var standBy:Boolean;// = false
public var armRightDestroyed:Boolean;// = false
public var bodyIsShootable:Boolean;// = false
private var life:int;
public var armDestroyed:Boolean;// = false
private var type:int;
private var destoyed:Boolean;// = false
public var headIsShootable:Boolean;// = false
public var armIsShootable:Boolean;// = true
public function TutoPuppet():void{
destoyed = false;
standBy = false;
armDestroyed = false;
armRightDestroyed = false;
bodyDestroyed = false;
headDestroyed = false;
armIsShootable = true;
armRightIsShootable = false;
bodyIsShootable = false;
headIsShootable = false;
super();
initEnemy();
}
public function setSpeedY(aSpeedY:int):void{
speedY = aSpeedY;
}
override public function setTargetOver(event:Event){
switch (event.target){
case this.bodyComponant[0]:
if (!bodyDestroyed){
dispatchShootIsPossible();
};
break;
case this.bodyComponant[1]:
if (!armDestroyed){
dispatchShootIsPossible();
};
break;
case this.bodyComponant[2]:
if (!armRightDestroyed){
dispatchShootIsPossible();
};
break;
case this.bodyComponant[3]:
dispatchShootIsPossible();
break;
};
}
override public function initShapes():void{
this.bodyComponant = [this.tutoPuppet.corps, this.tutoPuppet.bras, this.tutoPuppet.brasD, this.tutoPuppet.tete];
this.bodyComponant[0].gotoAndStop("nrml");
this.bodyComponant[1].gotoAndStop("nrml");
this.bodyComponant[2].gotoAndStop("nrml");
this.bodyComponant[3].gotoAndStop("nrml");
this.bodyComponantRef = ["0", "1", "2", "3"];
}
override public function initLife():void{
setLife(3);
}
public function reInitShapesAndVars():void{
this.bodyComponant[0].gotoAndStop("nrml");
this.bodyComponant[1].gotoAndStop("nrml");
this.bodyComponant[2].gotoAndStop("nrml");
this.bodyComponant[3].gotoAndStop("nrml");
this.bodyComponantRef = ["0", "1", "2", "3"];
armDestroyed = false;
armRightDestroyed = false;
bodyDestroyed = false;
headDestroyed = false;
armIsShootable = true;
armRightIsShootable = false;
bodyIsShootable = false;
headIsShootable = false;
this.life = 3;
destoyed = false;
this.tutoPuppet.gotoAndPlay("arriveTutoPuppet");
this.parent.mcExplainTuto.gotoAndPlay("begin");
}
public function endTuto():void{
this.parent.inGame = false;
standBy = false;
this.tutoPuppet.gotoAndPlay("reversPlacementTutoPuppet");
}
override public function initPosition():void{
this.x = initialPosition;
trace("hum", this.x);
this.y = 135;
}
public function dispatchShootIsPossible(){
parent.shootIsPossible();
}
public function setLife(aLife:int):void{
life = aLife;
}
public function getSpeed():int{
return (speed);
}
override public function moveY():void{
}
public function tuto():void{
standBy = true;
this.tutoPuppet.gotoAndPlay("placementTutoPuppet");
this.parent.dontShowCursorOneTime = false;
this.parent.mcExplainTuto.mcTutoExpressions.gotoAndPlay("ready");
this.parent.mcExplainTuto.gotoAndPlay("nothing");
}
override public function shootHim(event:Event){
var f:Number;
var spliced:Array;
if (this.parent.inShoot){
if (((!(this.parent.inReload)) && (!(this.destoyed)))){
this.inShoot = true;
this.tutoPuppet.gotoAndPlay("hittutoPuppet");
f = 4;
switch (event.target){
case this.bodyComponant[0]:
if (bodyIsShootable){
if (!bodyDestroyed){
bodyDestroyed = true;
f = 0;
headIsShootable = true;
this.parent.mcExplainTuto.mcTutoExpressions.gotoAndPlay("awesome");
this.parent.mcExplainTuto.gotoAndPlay("nothing");
};
};
break;
case this.bodyComponant[1]:
if (armIsShootable){
if (!armDestroyed){
armDestroyed = true;
f = 1;
armRightIsShootable = true;
this.parent.mcExplainTuto.mcTutoExpressions.gotoAndPlay("fine");
this.parent.mcExplainTuto.gotoAndPlay("nothing");
};
};
break;
case this.bodyComponant[2]:
if (armRightIsShootable){
if (!armRightDestroyed){
armRightDestroyed = true;
f = 2;
bodyIsShootable = true;
this.parent.mcExplainTuto.mcTutoExpressions.gotoAndPlay("great");
this.parent.mcExplainTuto.gotoAndPlay("nothing");
};
};
break;
case this.bodyComponant[3]:
if (headIsShootable){
if (!headDestroyed){
f = 3;
headDestroyed = true;
this.parent.mcExplainTuto.mcTutoExpressions.gotoAndPlay("tremendous");
this.parent.mcExplainTuto.gotoAndPlay("nothing");
this.destoyed = true;
};
};
break;
};
if (f != 4){
this.bodyComponant[f].gotoAndStop("xPlod");
spliced = this.bodyComponantRef.splice(f, 1);
} else {
trace("life", life);
};
};
};
}
override public function endAttack():void{
this.attackMode = false;
if (!this.destoyed){
this.destoyed = true;
this.AttackToDestroyed();
};
}
public function setSpeed(aSpeed:int):void{
speed = aSpeed;
}
override public function initSpeed():void{
setSpeed(3);
setSpeedY(0);
}
public function getId():int{
return (id);
}
override public function endFatality():void{
this.destoyed = true;
this.tutoPuppet.gotoAndStop("dispar");
}
override public function setDestroy(){
this.x = 2000;
this.destoyed = true;
}
public function rePlayTuto():void{
trace("huuum? ca marche ou koi ?");
this.parent.dontShowCursorOneTime = true;
this.parent.inGame = true;
this.reInitShapesAndVars();
}
override public function initMovieClip():void{
this.gotoAndPlay("typeTutoPuppet");
}
public function setId(aId:int):void{
id = aId;
}
public function getLife():int{
return (life);
}
override function enterFrame(e:Event){
if (this.parent.inTutorial){
if (!destoyed){
if (!standBy){
if (this.x > (this.parent.heroPosition + 400)){
this.x = (this.x - (1 * speed));
} else {
this.tuto();
};
};
} else {
if (standBy){
endTuto();
};
if (this.x < 750){
this.x = (this.x + (2 * speed));
};
};
};
}
public function getSpeedY():int{
return (speedY);
}
}
}//package shootemup
Section 20
//Vampire (shootemup.Vampire)
package shootemup {
import flash.events.*;
import flash.display.*;
import fl.motion.easing.*;
public class Vampire extends Enemy {
public var batFly:Boolean;// = false
private var bodyComponant:Array;
private var bodyComponantRef:Array;
public var vampireMode:Boolean;// = false
public var life:int;
public var batAttack1:Boolean;// = false
public var batAttack2:Boolean;// = false
public var batMort:Number;// = 0
public var batAttack0:Boolean;// = false
private var type:int;
private var UziOn:Boolean;// = false
public var allBatDead:Boolean;// = false
public var batAlive1:Boolean;// = true
public var batTouche:Number;// = 0
public var batAlive2:Boolean;// = true
public var batAlive0:Boolean;// = true
public var protecMode:Boolean;// = true
public var ready:Boolean;// = false
public var destoyed:Boolean;// = false
private var pointByComponant:Number;// = 15
public var elementOver:Number;// = 4
public function Vampire():void{
destoyed = false;
UziOn = false;
vampireMode = false;
batFly = false;
batAttack0 = false;
batAttack1 = false;
batAttack2 = false;
batAlive0 = true;
batAlive1 = true;
batAlive2 = true;
protecMode = true;
pointByComponant = 15;
ready = false;
elementOver = 4;
batTouche = 0;
batMort = 0;
allBatDead = false;
super();
initEnemy();
}
public function setSpeedY(aSpeedY:int):void{
speedY = aSpeedY;
}
override public function setTargetOver(event:Event){
switch (event.target){
case this.bodyComponant[0]:
if (batAlive0){
dispatchShootIsPossible();
};
elementOver = 0;
UziOn = true;
break;
case this.bodyComponant[1]:
if (batAlive1){
dispatchShootIsPossible();
};
elementOver = 1;
UziOn = true;
break;
case this.bodyComponant[2]:
if (batAlive2){
dispatchShootIsPossible();
};
elementOver = 2;
UziOn = true;
break;
default:
if (allBatDead){
dispatchShootIsPossible();
};
elementOver = 4;
UziOn = false;
};
}
override public function initShapes():void{
this.bodyComponant = [this.vampire.chauv1, this.vampire.chauv2, this.vampire.chauv3];
this.bodyComponant[0].gotoAndStop("stand");
this.bodyComponant[1].gotoAndStop("stand");
this.bodyComponant[2].gotoAndStop("stand");
this.vampireMode = false;
this.bodyComponantRef = ["0", "1", "2"];
this.x = 400;
}
override public function initLife():void{
setLife(4);
}
override public function attack():void{
trace("attack");
if (!this.attackMode){
trace("attackMode False");
if (!this.destoyed){
trace("destroyed False");
this.playFatalitySound(((id * 10) + 2));
this.parent.setHerosIsDead(true);
this.attackMode = true;
this.vampire.gotoAndPlay("disparition");
};
};
}
override public function initPosition():void{
this.y = 145;
this.x = 800;
}
public function dispatchShootIsPossible(){
parent.shootIsPossible();
}
public function setLife(aLife:int):void{
life = aLife;
}
public function getSpeed():int{
return (speed);
}
public function lunchBat():void{
}
override public function shootHim(event:Event){
if (!this.parent.herosIsDead){
if (((((((this.ready) && (!(this.destoyed)))) && (!(this.parent.inReload)))) && (!(this.attackMode)))){
this.parent.addNbShoot();
this.inShoot = true;
if (this.parent.mcHeros.currentWeapon != 3){
if (this.life > 0){
if (!allBatDead){
switch (event.target){
case this.bodyComponant[0]:
if (this.batAlive0){
this.life--;
addToScore(pointByComponant);
this.vampire.gotoAndPlay("touche");
this.vampire.mcProtec.gotoAndPlay("aie");
this.bodyComponant[0].gotoAndPlay("shoot");
this.batAlive0 = false;
};
break;
case this.bodyComponant[1]:
if (this.batAlive1){
this.life--;
addToScore(pointByComponant);
this.vampire.gotoAndPlay("touche");
this.vampire.mcProtec.gotoAndPlay("aie");
this.bodyComponant[1].gotoAndPlay("shoot");
this.batAlive1 = false;
};
break;
case this.bodyComponant[2]:
if (this.batAlive2){
this.life--;
this.batAlive2 = false;
trace("niark");
addToScore(pointByComponant);
this.vampire.gotoAndPlay("touche");
this.vampire.mcProtec.gotoAndPlay("aie");
this.bodyComponant[2].gotoAndPlay("shoot");
};
break;
default:
if (protecMode){
this.vampire.mcProtec.gotoAndPlay("protec");
this.vampire.gotoAndPlay("mdr");
} else {
this.life--;
addToScore((pointByComponant * 2));
this.vampire.gotoAndPlay("dieVampire");
this.vampire.mcProtec.visible = false;
this.destoyed = true;
this.parent.currentVampireCount = (this.parent.currentVampireCount - 1);
};
break;
};
} else {
if (allBatDead){
trace("allBatDead");
addToScore((pointByComponant * 2));
this.vampire.mcProtec.visible = false;
this.destoyed = true;
this.parent.currentVampireCount = (this.parent.currentVampireCount - 1);
this.vampire.gotoAndPlay("dieVampire");
};
};
testIsDead();
} else {
addToScore((pointByComponant * 2));
this.vampire.mcProtec.visible = false;
this.destoyed = true;
this.parent.currentVampireCount = (this.parent.currentVampireCount - 1);
this.vampire.gotoAndPlay("dieVampire");
};
};
};
};
}
override public function endAttack():void{
this.parent.currentVampireCount = (this.parent.currentVampireCount - 1);
this.destoyed = true;
this.attackMode = false;
this.AttackToDestroyed();
}
public function setSpeed(aSpeed:int):void{
speed = aSpeed;
}
public function readyToGo():void{
this.ready = true;
}
override public function initSpeed():void{
setSpeed(15);
setSpeedY(0);
}
public function getId():int{
return (id);
}
public function AttackSecond():void{
if (!this.attackMode){
trace("VAmpire attack SEcond : this.playFatalitySound((id*10)+1) : num (id*10)+1) ", ((id * 10) + 1));
this.playFatalitySound(((id * 10) + 1));
this.vampireMode = true;
this.protecMode = false;
this.vampire.mcProtec.visible = false;
this.vampire.gotoAndPlay("attack");
this.batFly = false;
};
}
override public function endFatality():void{
this.vampire.gotoAndStop("dispar");
this.attackMode = false;
if (!this.destoyed){
this.destoyed = true;
this.fatalityToDestroyed();
};
}
public function setId(aId:int):void{
id = aId;
}
public function upNbBatDead():void{
trace("PUAITN DE CHITE upNbBatDead");
this.batMort++;
if (this.batMort >= 3){
this.allBatDead = true;
this.vampire.mcProtec.visible = false;
this.vampire.gotoAndPlay("toucheSsBats");
};
}
override public function initMovieClip():void{
this.gotoAndPlay("typeVampire");
}
public function getLife():int{
return (life);
}
override function enterFrame(e:Event){
if (((!(attackMode)) && (!(destoyed)))){
if (this.batFly){
} else {
if (this.vampireMode){
trace("vampire mode true");
if (this.x > (this.parent.heroPosition - 8)){
this.x = (this.x - (2 * speed));
} else {
trace("lunch attack function");
this.attack();
};
};
};
};
if (((!(destoyed)) && (!(this.parent.inGame)))){
this.vampireMode = false;
this.attackMode = false;
this.destoyed = true;
this.parent.currentVampireCount = (this.parent.currentVampireCount - 1);
this.AttackToDestroyed();
};
}
override public function shootMitraille(mc:MovieClip){
var nb:Number;
if (!this.parent.herosIsDead){
if (((((this.parent.inShoot) && (!(this.destoyed)))) && (!(this.parent.inReload)))){
if (this.parent.mcHeros.currentWeapon == 3){
if (UziOn){
this.parent.addNbZoneShoot();
this.parent.addNbShoot();
if (elementOver < bodyComponant.length){
switch (elementOver){
case 0:
nb = 0;
this.life--;
break;
case 1:
nb = 1;
this.life--;
break;
case 2:
nb = 2;
this.life--;
break;
default:
break;
};
this.vampire.gotoAndPlay("touche");
this.vampire.mcProtec.gotoAndPlay("aie");
this.bodyComponant[nb].gotoAndPlay("shoot");
this[("batAlive" + nb)] = false;
};
} else {
if (((protecMode) && (!(allBatDead)))){
this.mcEclatsUzi.gotoAndPlay("tirUzi");
this.vampire.mcProtec.gotoAndPlay("protec");
this.vampire.gotoAndPlay("mdr");
} else {
this.life--;
this.vampire.mcProtec.visible = false;
this.destoyed = true;
this.parent.currentVampireCount = (this.parent.currentVampireCount - 1);
this.vampire.gotoAndPlay("dieVampire");
};
};
};
};
};
}
public function zombiDeath():void{
this.vampire.mcProtec.visible = false;
this.destoyed = true;
this.parent.currentVampireCount = (this.parent.currentVampireCount - 1);
this.vampire.gotoAndPlay("dieVampire");
}
override public function initEnemyId():void{
setId(5);
}
public function testIsDead():void{
var testLife:Number;
testLife = (this.life - 1);
if (testLife < 0){
zombiDeath();
};
}
public function getSpeedY():int{
return (speedY);
}
}
}//package shootemup
Section 21
//ZombieFat (shootemup.ZombieFat)
package shootemup {
import flash.events.*;
import flash.display.*;
import fl.motion.easing.*;
public class ZombieFat extends Enemy {
public var headDestroyed:Boolean;// = false
private var bodyComponant:Array;
public var bodyDestroyed:Boolean;// = false
private var bodyComponantRef:Array;
public var armRightDestroyed:Boolean;// = false
private var life:int;
public var armDestroyed:Boolean;// = false
private var type:int;
private var destoyed:Boolean;// = false
private var pointByComponant:Number;// = 5
public function ZombieFat():void{
destoyed = false;
armDestroyed = false;
armRightDestroyed = false;
bodyDestroyed = false;
headDestroyed = false;
pointByComponant = 5;
super();
initEnemy();
}
public function setSpeedY(aSpeedY:int):void{
speedY = aSpeedY;
}
override public function setTargetOver(event:Event){
switch (event.target){
case this.bodyComponant[0]:
if (!bodyDestroyed){
dispatchShootIsPossible();
};
break;
case this.bodyComponant[1]:
if (!armDestroyed){
dispatchShootIsPossible();
};
break;
case this.bodyComponant[2]:
if (!armRightDestroyed){
dispatchShootIsPossible();
};
break;
case this.bodyComponant[3]:
if (!headDestroyed){
dispatchShootIsPossible();
};
break;
};
}
override public function initShapes():void{
this.bodyComponant = [this.zombieFat.corps, this.zombieFat.bras, this.zombieFat.brasD, this.zombieFat.tete];
this.bodyComponant[0].gotoAndStop("nrml");
this.bodyComponant[1].gotoAndStop("nrml");
this.bodyComponant[2].gotoAndStop("nrml");
this.bodyComponant[3].gotoAndStop("nrml");
this.bodyComponantRef = ["0", "1", "2", "3"];
}
override public function initLife():void{
setLife(4);
}
override public function attack():void{
if (!this.attackMode){
if (!this.destoyed){
this.playFatalitySound(id);
this.parent.setHerosIsDead(true);
this.attackMode = true;
this.zombieFat.gotoAndPlay("attackZombiesFat");
};
};
}
override public function initPosition():void{
this.x = (initialPosition + (this.parent.currentEnemiesCount * betweenTwoEnemies));
this.y = 145;
}
public function dispatchShootIsPossible(){
parent.shootIsPossible();
}
public function reVerifIsDEad():Boolean{
if (this.life < 0){
return (true);
};
return (false);
}
public function setLife(aLife:int):void{
life = aLife;
}
public function getSpeed():int{
return (speed);
}
override public function shootHim(event:Event){
var f:Number;
var spliced:Array;
var ff:Number;
var spliceff:Array;
var fff:Number;
var splicefff:Array;
if (!this.parent.herosIsDead){
if (((!(this.parent.inReload)) && (!(this.destoyed)))){
this.parent.addNbShoot();
this.inShoot = true;
if (this.life > 0){
if (this.parent.mcHeros.currentWeapon == 1){
this.zombieFat.gotoAndPlay("hitZombiesFat");
f = 4;
switch (event.target){
case this.bodyComponant[0]:
f = 0;
if (!bodyDestroyed){
bodyDestroyed = true;
this.life--;
addToScore(pointByComponant);
playHitSound(1);
this.x = (this.x + 10);
};
break;
case this.bodyComponant[1]:
f = 1;
if (!armDestroyed){
armDestroyed = true;
this.life--;
addToScore(pointByComponant);
playHitSound(1);
this.x = (this.x + 10);
};
break;
case this.bodyComponant[2]:
f = 2;
if (!armRightDestroyed){
armRightDestroyed = true;
this.life--;
addToScore(pointByComponant);
playHitSound(1);
this.x = (this.x + 10);
};
break;
case this.bodyComponant[3]:
f = 3;
if (!headDestroyed){
headDestroyed = true;
this.life--;
addToScore(pointByComponant);
playHitSound(1);
this.x = (this.x + 10);
};
break;
default:
f = 4;
break;
};
if (f != 4){
this.x = (this.x + 10);
playHitSound(3);
this.bodyComponant[f].gotoAndStop("xPlod");
spliced = this.bodyComponantRef.splice(f, 1);
};
testIsDead(event);
} else {
if (this.parent.mcHeros.currentWeapon == 2){
this.life = (this.life - 2);
this.x = (this.x + 20);
if (this.bodyComponantRef.length > 0){
ff = Math.floor((Math.random() * this.bodyComponantRef.length));
this.bodyComponant[bodyComponantRef[ff]].gotoAndStop("xPlod");
playHitSound(3);
switch (this.bodyComponant[bodyComponantRef[ff]]){
case this.bodyComponant[0]:
if (!bodyDestroyed){
bodyDestroyed = true;
};
break;
case this.bodyComponant[1]:
if (!armDestroyed){
armDestroyed = true;
};
break;
case this.bodyComponant[2]:
if (!armRightDestroyed){
armRightDestroyed = true;
};
break;
case this.bodyComponant[3]:
if (!headDestroyed){
headDestroyed = true;
};
break;
};
spliceff = this.bodyComponantRef.splice(ff, 1);
if (!reVerifIsDEad()){
fff = Math.floor((Math.random() * this.bodyComponantRef.length));
this.bodyComponant[bodyComponantRef[fff]].gotoAndStop("xPlod");
switch (this.bodyComponant[bodyComponantRef[fff]]){
case this.bodyComponant[0]:
if (!bodyDestroyed){
bodyDestroyed = true;
};
break;
case this.bodyComponant[1]:
if (!armDestroyed){
armDestroyed = true;
};
break;
case this.bodyComponant[2]:
if (!armRightDestroyed){
armRightDestroyed = true;
};
break;
case this.bodyComponant[3]:
if (!headDestroyed){
headDestroyed = true;
};
break;
};
splicefff = this.bodyComponantRef.splice(fff, 1);
};
};
testIsDead(event);
if (this.life > 0){
addToScore(pointByComponant);
this.zombieFat.gotoAndPlay("hitZombiesFat");
playHitSound(2);
} else {
addToScore((pointByComponant * 2));
playHitSound(3);
this.destoyed = true;
this.zombieFat.gotoAndPlay("dieZombiesFatPompe");
};
} else {
if (this.parent.mcHeros.currentWeapon == 3){
};
};
};
} else {
addToScore((pointByComponant * 2));
event.target.gotoAndStop("xPlod");
playHitSound(3);
this.destoyed = true;
this.zombieFat.gotoAndPlay("dieZombiesFat");
};
};
};
}
override public function endAttack():void{
this.attackMode = false;
this.destoyed = true;
this.AttackToDestroyed();
}
public function setSpeed(aSpeed:int):void{
speed = aSpeed;
}
override public function initSpeed():void{
setSpeed(2);
setSpeedY(0);
}
public function getId():int{
return (id);
}
override public function reInitIfNeed():void{
if (this.parent.firstWave){
setSpeed(1.5);
trace("ZFAT LEVEL 1 firstWave : re-SET SPEED >> (", speed, ")");
};
}
override public function endFatality():void{
this.zombieFat.gotoAndStop("dispar");
this.attackMode = false;
if (!this.destoyed){
this.destoyed = true;
this.fatalityToDestroyed();
};
}
public function setId(aId:int):void{
id = aId;
}
override public function initMovieClip():void{
this.gotoAndPlay("typeZombiesFat");
}
public function getLife():int{
return (life);
}
override function enterFrame(e:Event){
if (((!(attackMode)) && (!(destoyed)))){
if (!this.parent.herosIsDead){
if (this.x > (this.parent.heroPosition + 50)){
this.x = (this.x - (1 * speed));
} else {
this.attack();
};
};
};
if (((!(destoyed)) && (!(this.parent.inGame)))){
this.attackMode = false;
this.destoyed = true;
this.AttackToDestroyed();
};
}
override public function shootMitraille(mc:MovieClip){
var g:Number;
var splicedA:Array;
if (!this.parent.herosIsDead){
if (((((this.parent.inShoot) && (!(this.destoyed)))) && (!(this.parent.inReload)))){
if (this.parent.mcHeros.currentWeapon == 3){
this.parent.addNbShoot();
if (this.life > 0){
this.parent.initShoot(isShootZone);
this.life--;
this.x = (this.x + 10);
if (this.bodyComponantRef.length > 0){
g = Math.floor((Math.random() * this.bodyComponantRef.length));
this.bodyComponant[bodyComponantRef[g]].gotoAndStop("xPlod");
switch (this.bodyComponant[bodyComponantRef[g]]){
case this.bodyComponant[0]:
bodyDestroyed = true;
break;
case this.bodyComponant[1]:
armDestroyed = true;
break;
case this.bodyComponant[2]:
armRightDestroyed = true;
break;
case this.bodyComponant[3]:
headDestroyed = true;
break;
};
splicedA = this.bodyComponantRef.splice(g, 1);
};
this.mcEclatsUzi.gotoAndPlay("tirUzi");
if (this.life > 0){
playHitSound(2);
this.zombieFat.gotoAndPlay("hitZombiesFat");
} else {
playHitSound(3);
this.destoyed = true;
this.zombieFat.gotoAndPlay("dieZombiesFat");
};
addToScore(pointByComponant);
} else {
addToScore(pointByComponant);
playHitSound(3);
this.destoyed = true;
this.zombieFat.gotoAndPlay("dieZombiesFat");
};
};
};
};
}
public function zombiDeath(event:Event):void{
addToScore((pointByComponant * 2));
playHitSound(2);
event.target.gotoAndStop("xPlod");
this.destoyed = true;
this.zombieFat.gotoAndPlay("dieZombiesFat");
}
override public function initEnemyId():void{
setId(1);
}
public function testIsDead(event:Event):void{
var testLife:Number;
testLife = (this.life - 1);
if (testLife < 0){
zombiDeath(event);
};
}
public function getSpeedY():int{
return (speedY);
}
}
}//package shootemup
Section 22
//ZombieLittle (shootemup.ZombieLittle)
package shootemup {
import flash.events.*;
import flash.display.*;
import fl.motion.easing.*;
public class ZombieLittle extends Enemy {
public var headDestroyed:Boolean;// = false
private var bodyComponant:Array;
public var bodyDestroyed:Boolean;// = false
private var bodyComponantRef:Array;
public var armRightDestroyed:Boolean;// = false
private var life:int;
public var armDestroyed:Boolean;// = false
private var type:int;
private var destoyed:Boolean;// = false
private var pointByComponant:Number;// = 7
public function ZombieLittle():void{
destoyed = false;
armDestroyed = false;
armRightDestroyed = false;
bodyDestroyed = false;
headDestroyed = false;
pointByComponant = 7;
super();
initEnemy();
}
public function setSpeedY(aSpeedY:int):void{
speedY = aSpeedY;
}
override public function setTargetOver(event:Event){
switch (event.target){
case this.bodyComponant[0]:
if (!bodyDestroyed){
dispatchShootIsPossible();
};
break;
case this.bodyComponant[1]:
if (!armDestroyed){
dispatchShootIsPossible();
};
break;
case this.bodyComponant[2]:
if (!armRightDestroyed){
dispatchShootIsPossible();
};
break;
case this.bodyComponant[3]:
if (!headDestroyed){
dispatchShootIsPossible();
};
break;
};
}
override public function initShapes():void{
this.bodyComponant = [this.zombieLittle.corps, this.zombieLittle.bras, this.zombieLittle.brasD, this.zombieLittle.tete];
this.bodyComponant[0].gotoAndStop("nrml");
this.bodyComponant[1].gotoAndStop("nrml");
this.bodyComponant[2].gotoAndStop("nrml");
this.bodyComponant[3].gotoAndStop("nrml");
this.bodyComponantRef = ["0", "1", "2", "3"];
}
override public function initLife():void{
setLife(4);
}
override public function attack():void{
if (!this.attackMode){
if (!this.destoyed){
this.playFatalitySound(id);
this.parent.setHerosIsDead(true);
this.attackMode = true;
this.zombieLittle.gotoAndPlay("attackZombiesLittle");
};
};
}
override public function initPosition():void{
this.x = (initialPosition + (this.parent.currentEnemiesCount * betweenTwoEnemies));
this.y = 145;
}
public function dispatchShootIsPossible(){
parent.shootIsPossible();
}
public function setLife(aLife:int):void{
life = aLife;
}
public function getSpeed():int{
return (speed);
}
override public function moveY():void{
}
override public function shootHim(event:Event){
var f:Number;
var spliced:Array;
if (!this.parent.herosIsDead){
if (((!(this.parent.inReload)) && (!(this.destoyed)))){
this.parent.addNbShoot();
this.inShoot = true;
playHitSound(1);
if (this.life >= 0){
if (this.parent.mcHeros.currentWeapon == 1){
this.zombieLittle.gotoAndPlay("hitZombiesLittle");
f = 4;
switch (event.target){
case this.bodyComponant[0]:
f = 0;
if (!bodyDestroyed){
bodyDestroyed = true;
this.life--;
addToScore(pointByComponant);
this.x = (this.x + 10);
};
break;
case this.bodyComponant[1]:
f = 1;
if (!armDestroyed){
armDestroyed = true;
this.life--;
addToScore(pointByComponant);
this.x = (this.x + 10);
};
break;
case this.bodyComponant[2]:
f = 2;
if (!armRightDestroyed){
armRightDestroyed = true;
this.life--;
addToScore(pointByComponant);
this.x = (this.x + 10);
};
break;
case this.bodyComponant[3]:
f = 3;
if (!headDestroyed){
this.life--;
addToScore(pointByComponant);
headDestroyed = true;
};
this.x = (this.x + 10);
break;
};
if (f != 4){
this.bodyComponant[f].gotoAndStop("xPlod");
spliced = this.bodyComponantRef.splice(f, 1);
};
testIsDead(event);
} else {
if (this.parent.mcHeros.currentWeapon == 2){
addToScore((pointByComponant + speed));
this.zombieLittle.tete.gotoAndStop("xPlod");
this.zombieLittle.bras.gotoAndStop("xPlod");
this.zombieLittle.brasD.gotoAndStop("xPlod");
this.life = 0;
this.destoyed = true;
playHitSound(3);
this.zombieLittle.gotoAndPlay("dieZombiesLittlePompe");
} else {
if (this.parent.mcHeros.currentWeapon == 3){
};
};
};
} else {
addToScore((pointByComponant * 2));
playHitSound(3);
this.destoyed = true;
event.target.gotoAndStop("xPlod");
this.zombieLittle.gotoAndPlay("dieZombiesLittle");
};
};
};
}
override public function endAttack():void{
this.attackMode = false;
if (!this.destoyed){
this.destoyed = true;
this.AttackToDestroyed();
};
}
public function setSpeed(aSpeed:int):void{
speed = aSpeed;
}
override public function initSpeed():void{
setSpeed(3);
setSpeedY(0);
}
public function getId():int{
return (id);
}
override public function endFatality():void{
this.zombieLittle.gotoAndStop("dispar");
this.attackMode = false;
if (!this.destoyed){
this.destoyed = true;
this.fatalityToDestroyed();
};
}
public function setId(aId:int):void{
id = aId;
}
override public function initMovieClip():void{
this.gotoAndPlay("typeZombiesLittle");
}
public function getLife():int{
return (life);
}
override function enterFrame(e:Event){
if (((!(attackMode)) && (!(destoyed)))){
if (!this.parent.herosIsDead){
if (this.x > (this.parent.heroPosition + 50)){
this.x = (this.x - (1 * speed));
} else {
this.attack();
};
};
};
if (((!(destoyed)) && (!(this.parent.inGame)))){
this.attackMode = false;
this.destoyed = true;
this.AttackToDestroyed();
};
}
override public function shootMitraille(mc:MovieClip){
var g:Number;
var splicedA:Array;
if (!this.parent.herosIsDead){
if (((((this.parent.inShoot) && (!(this.destoyed)))) && (!(this.parent.inReload)))){
if (this.parent.mcHeros.currentWeapon == 3){
this.parent.addNbShoot();
this.parent.addNbZoneShoot();
if (this.life > 0){
this.parent.initShoot(isShootZone);
this.life--;
this.x = (this.x + 10);
if (this.bodyComponantRef.length > 0){
g = Math.floor((Math.random() * this.bodyComponantRef.length));
this.bodyComponant[bodyComponantRef[g]].gotoAndStop("xPlod");
switch (this.bodyComponant[bodyComponantRef[g]]){
case this.bodyComponant[0]:
bodyDestroyed = true;
break;
case this.bodyComponant[1]:
armDestroyed = true;
break;
case this.bodyComponant[2]:
armRightDestroyed = true;
break;
case this.bodyComponant[3]:
headDestroyed = true;
break;
};
splicedA = this.bodyComponantRef.splice(g, 1);
};
this.mcEclatsUzi.gotoAndPlay("tirUzi");
if (this.life > 0){
playHitSound(2);
this.zombieLittle.gotoAndPlay("hitZombiesLittle");
} else {
playHitSound(3);
this.destoyed = true;
this.zombieLittle.gotoAndPlay("dieZombiesLittle");
};
addToScore(pointByComponant);
} else {
playHitSound(3);
addToScore(pointByComponant);
this.destoyed = true;
this.zombieLittle.gotoAndPlay("dieZombiesLittle");
};
};
};
};
}
public function zombiDeath(event:Event):void{
addToScore((pointByComponant * 2));
this.destoyed = true;
event.target.gotoAndStop("xPlod");
this.zombieLittle.gotoAndPlay("dieZombiesLittle");
}
override public function initEnemyId():void{
setId(2);
}
public function testIsDead(event:Event):void{
var testLife:Number;
testLife = (this.life - 1);
if (testLife < 0){
zombiDeath(event);
};
}
public function getSpeedY():int{
return (speedY);
}
}
}//package shootemup
Section 23
//ZombieNuts (shootemup.ZombieNuts)
package shootemup {
import flash.events.*;
import flash.display.*;
import fl.motion.easing.*;
public class ZombieNuts extends Enemy {
public var headDestroyed:Boolean;// = false
private var bodyComponant:Array;
public var bodyDestroyed:Boolean;// = false
private var bodyComponantRef:Array;
public var armRightDestroyed:Boolean;// = false
private var life:int;
public var armDestroyed:Boolean;// = false
private var type:int;
private var destoyed:Boolean;// = false
private var pointByComponant:Number;// = 7
public function ZombieNuts():void{
destoyed = false;
armDestroyed = false;
armRightDestroyed = false;
bodyDestroyed = false;
headDestroyed = false;
pointByComponant = 7;
super();
initEnemy();
}
public function setSpeedY(aSpeedY:int):void{
speedY = aSpeedY;
}
override public function setTargetOver(event:Event){
switch (event.target){
case this.bodyComponant[0]:
if (!bodyDestroyed){
dispatchShootIsPossible();
};
break;
case this.bodyComponant[1]:
if (!armDestroyed){
dispatchShootIsPossible();
};
break;
case this.bodyComponant[2]:
if (!armRightDestroyed){
dispatchShootIsPossible();
};
break;
case this.bodyComponant[3]:
if (!headDestroyed){
dispatchShootIsPossible();
};
break;
};
}
override public function initShapes():void{
this.bodyComponant = [this.zombieNuts.corps, this.zombieNuts.bras, this.zombieNuts.brasD, this.zombieNuts.tete];
this.bodyComponant[0].gotoAndStop("nrml");
this.bodyComponant[1].gotoAndStop("nrml");
this.bodyComponant[2].gotoAndStop("nrml");
this.bodyComponant[3].gotoAndStop("nrml");
this.bodyComponantRef = ["0", "1", "2", "3"];
}
override public function initLife():void{
setLife(4);
}
override public function attack():void{
if (!this.attackMode){
if (!this.destoyed){
this.playFatalitySound(id);
this.parent.setHerosIsDead(true);
this.attackMode = true;
this.zombieNuts.gotoAndPlay("attackZombieNuts");
};
};
}
override public function initPosition():void{
this.x = (initialPosition + (this.parent.currentEnemiesCount * betweenTwoEnemies));
this.y = 145;
}
public function dispatchShootIsPossible(){
parent.shootIsPossible();
}
public function setLife(aLife:int):void{
life = aLife;
}
public function getSpeed():int{
return (speed);
}
override public function moveY():void{
}
override public function shootHim(event:Event){
var f:Number;
var spliced:Array;
if (!this.parent.herosIsDead){
if (((!(this.parent.inReload)) && (!(this.destoyed)))){
this.parent.addNbShoot();
this.inShoot = true;
playHitSound(1);
if (this.life >= 0){
if (this.parent.mcHeros.currentWeapon == 1){
this.zombieNuts.gotoAndPlay("hitZombieNuts");
f = 4;
switch (event.target){
case this.bodyComponant[0]:
f = 0;
if (!bodyDestroyed){
bodyDestroyed = true;
this.life--;
addToScore(pointByComponant);
this.x = (this.x + 10);
};
break;
case this.bodyComponant[1]:
f = 1;
if (!armDestroyed){
armDestroyed = true;
this.life--;
addToScore(pointByComponant);
this.x = (this.x + 10);
};
break;
case this.bodyComponant[2]:
f = 2;
if (!armRightDestroyed){
armRightDestroyed = true;
this.life--;
addToScore(pointByComponant);
this.x = (this.x + 10);
};
break;
case this.bodyComponant[3]:
f = 3;
if (!headDestroyed){
this.life--;
addToScore(pointByComponant);
headDestroyed = true;
};
this.x = (this.x + 10);
break;
};
if (f != 4){
this.bodyComponant[f].gotoAndStop("xPlod");
spliced = this.bodyComponantRef.splice(f, 1);
};
testIsDead(event);
} else {
if (this.parent.mcHeros.currentWeapon == 2){
addToScore((pointByComponant + speed));
this.zombieNuts.tete.gotoAndStop("xPlod");
this.zombieNuts.bras.gotoAndStop("xPlod");
this.zombieNuts.brasD.gotoAndStop("xPlod");
this.life = 0;
this.destoyed = true;
playHitSound(3);
this.zombieNuts.gotoAndPlay("dieZombieNutsPompe");
} else {
if (this.parent.mcHeros.currentWeapon == 3){
};
};
};
} else {
addToScore((pointByComponant * 2));
playHitSound(3);
this.destoyed = true;
event.target.gotoAndStop("xPlod");
this.zombieNuts.gotoAndPlay("dieZombieNuts");
};
};
};
}
override public function endAttack():void{
this.attackMode = false;
if (!this.destoyed){
this.destoyed = true;
this.AttackToDestroyed();
};
}
public function setSpeed(aSpeed:int):void{
speed = aSpeed;
}
override public function initSpeed():void{
setSpeed(3);
setSpeedY(0);
}
public function getId():int{
return (id);
}
override public function endFatality():void{
this.zombieNuts.gotoAndStop("dispar");
this.attackMode = false;
if (!this.destoyed){
this.destoyed = true;
this.fatalityToDestroyed();
};
}
public function setId(aId:int):void{
id = aId;
}
override public function initMovieClip():void{
this.gotoAndPlay("typeZombieNuts");
}
public function getLife():int{
return (life);
}
override function enterFrame(e:Event){
if (((!(attackMode)) && (!(destoyed)))){
if (!this.parent.herosIsDead){
if (this.x > (this.parent.heroPosition + 50)){
this.x = (this.x - (1 * speed));
} else {
this.attack();
};
};
};
if (((!(destoyed)) && (!(this.parent.inGame)))){
this.attackMode = false;
this.destoyed = true;
this.AttackToDestroyed();
};
}
override public function shootMitraille(mc:MovieClip){
var g:Number;
var splicedA:Array;
if (!this.parent.herosIsDead){
if (((((this.parent.inShoot) && (!(this.destoyed)))) && (!(this.parent.inReload)))){
if (this.parent.mcHeros.currentWeapon == 3){
this.parent.addNbShoot();
this.parent.addNbZoneShoot();
if (this.life > 0){
this.parent.initShoot(isShootZone);
this.life--;
this.x = (this.x + 10);
if (this.bodyComponantRef.length > 0){
g = Math.floor((Math.random() * this.bodyComponantRef.length));
this.bodyComponant[bodyComponantRef[g]].gotoAndStop("xPlod");
switch (this.bodyComponant[bodyComponantRef[g]]){
case this.bodyComponant[0]:
bodyDestroyed = true;
break;
case this.bodyComponant[1]:
armDestroyed = true;
break;
case this.bodyComponant[2]:
armRightDestroyed = true;
break;
case this.bodyComponant[3]:
headDestroyed = true;
break;
};
splicedA = this.bodyComponantRef.splice(g, 1);
};
this.mcEclatsUzi.gotoAndPlay("tirUzi");
if (this.life > 0){
playHitSound(2);
this.zombieNuts.gotoAndPlay("hitZombieNuts");
} else {
playHitSound(3);
this.destoyed = true;
this.zombieNuts.gotoAndPlay("dieZombieNuts");
};
addToScore(pointByComponant);
} else {
playHitSound(3);
addToScore(pointByComponant);
this.destoyed = true;
this.zombieNuts.gotoAndPlay("dieZombieNuts");
};
};
};
};
}
public function zombiDeath(event:Event):void{
addToScore((pointByComponant * 2));
this.destoyed = true;
event.target.gotoAndStop("xPlod");
this.zombieNuts.gotoAndPlay("dieZombieNuts");
}
override public function initEnemyId():void{
setId(7);
}
public function testIsDead(event:Event):void{
var testLife:Number;
testLife = (this.life - 1);
if (testLife < 0){
zombiDeath(event);
};
}
public function getSpeedY():int{
return (speedY);
}
}
}//package shootemup
Section 24
//animcouvercle_173 (zombies_fla.animcouvercle_173)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class animcouvercle_173 extends MovieClip {
public function animcouvercle_173(){
super();
addFrameScript(0, frame1, 9, frame10, 15, frame16);
}
function frame10(){
this.parent.parent.setEcrinIsOpen();
stop();
}
function frame16(){
this.parent.parent.setEcrinIsClose();
gotoAndStop("closed");
}
function frame1(){
stop();
}
}
}//package zombies_fla
Section 25
//animeCongratulationFinalScorePanel_357 (zombies_fla.animeCongratulationFinalScorePanel_357)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class animeCongratulationFinalScorePanel_357 extends MovieClip {
public function animeCongratulationFinalScorePanel_357(){
super();
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package zombies_fla
Section 26
//animHero_bodyUp_189 (zombies_fla.animHero_bodyUp_189)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class animHero_bodyUp_189 extends MovieClip {
public function animHero_bodyUp_189(){
super();
addFrameScript(15, frame16, 16, frame17, 22, frame23, 25, frame26, 38, frame39, 39, frame40, 99, frame100, 114, frame115, 116, frame117, 127, frame128, 140, frame141, 152, frame153, 164, frame165, 175, frame176, 187, frame188, 198, frame199, 202, frame203, 226, frame227, 236, frame237, 238, frame239, 240, frame241, 242, frame243, 286, frame287, 288, frame289);
}
function frame153(){
this.parent.parent.updateShootGunMunitions(3);
}
function frame165(){
this.parent.parent.updateShootGunMunitions(4);
}
function frame287(){
parent.parent.dispatchEndReloadUzi();
}
function frame289(){
gotoAndPlay("standUzi");
}
function frame176(){
this.parent.parent.updateShootGunMunitions(5);
}
function frame16(){
gotoAndPlay("standGun");
}
function frame17(){
}
function frame26(){
gotoAndPlay("standGun");
}
function frame23(){
parent.parent.dispatchEndShoot();
}
function frame100(){
gotoAndPlay("standPompe");
}
function frame199(){
parent.parent.dispatchEndReload();
}
function frame117(){
gotoAndPlay("standPompe");
}
function frame237(){
if (this.parent.parent.upDateUziInShoot()){
} else {
trace("Apu de bullets");
gotoAndPlay("finUzi");
};
}
function frame188(){
this.parent.parent.updateShootGunMunitions(6);
}
function frame115(){
parent.parent.dispatchEndShoot();
}
function frame39(){
parent.parent.dispatchEndReload();
}
function frame40(){
gotoAndPlay("standGun");
}
function frame203(){
gotoAndPlay("standPompe");
}
function frame239(){
}
function frame227(){
gotoAndPlay("standUzi");
}
function frame128(){
this.parent.parent.updateShootGunMunitions(1);
}
function frame243(){
parent.parent.dispatchEndShoot();
gotoAndPlay("standUzi");
}
function frame241(){
if (this.parent.parent.upDateUziInShoot()){
gotoAndPlay("cycleUzi");
} else {
trace("Apu de bullets");
gotoAndPlay("finUzi");
};
}
function frame141(){
this.parent.parent.updateShootGunMunitions(2);
}
}
}//package zombies_fla
Section 27
//bideeclatagegarou_52 (zombies_fla.bideeclatagegarou_52)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class bideeclatagegarou_52 extends MovieClip {
public function bideeclatagegarou_52(){
super();
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
if (this.parent.parent.bodyDestroyed){
this.gotoAndStop("destroyed");
};
stop();
}
}
}//package zombies_fla
Section 28
//brasdbigbear_77 (zombies_fla.brasdbigbear_77)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class brasdbigbear_77 extends MovieClip {
public var grenadeLuncher:MovieClip;
public function brasdbigbear_77(){
super();
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package zombies_fla
Section 29
//brasdgarou_43 (zombies_fla.brasdgarou_43)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class brasdgarou_43 extends MovieClip {
public function brasdgarou_43(){
super();
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package zombies_fla
Section 30
//brasdroitzombie2_10 (zombies_fla.brasdroitzombie2_10)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class brasdroitzombie2_10 extends MovieClip {
public function brasdroitzombie2_10(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package zombies_fla
Section 31
//brasElmt_1_92 (zombies_fla.brasElmt_1_92)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class brasElmt_1_92 extends MovieClip {
public function brasElmt_1_92(){
super();
addFrameScript(1, frame2, 3, frame4);
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package zombies_fla
Section 32
//brasElmt_2_90 (zombies_fla.brasElmt_2_90)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class brasElmt_2_90 extends MovieClip {
public function brasElmt_2_90(){
super();
addFrameScript(1, frame2, 3, frame4);
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package zombies_fla
Section 33
//brasElmt_3_88 (zombies_fla.brasElmt_3_88)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class brasElmt_3_88 extends MovieClip {
public function brasElmt_3_88(){
super();
addFrameScript(1, frame2, 3, frame4);
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package zombies_fla
Section 34
//BRASGAROUGAUCHE_50 (zombies_fla.BRASGAROUGAUCHE_50)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class BRASGAROUGAUCHE_50 extends MovieClip {
public function BRASGAROUGAUCHE_50(){
super();
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
if (this.parent.parent.armDestroyed){
this.gotoAndStop("destroyed");
};
stop();
}
}
}//package zombies_fla
Section 35
//brasgbigbear_87 (zombies_fla.brasgbigbear_87)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class brasgbigbear_87 extends MovieClip {
public var elmt1:MovieClip;
public var elmt2:MovieClip;
public var elmt3:MovieClip;
public function brasgbigbear_87(){
super();
addFrameScript(1, frame2, 2, frame3, 4, frame5, 6, frame7);
}
function frame3(){
stop();
}
function frame7(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package zombies_fla
Section 36
//brasggarou_49 (zombies_fla.brasggarou_49)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class brasggarou_49 extends MovieClip {
public function brasggarou_49(){
super();
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package zombies_fla
Section 37
//brasgzombiefatfinish_17 (zombies_fla.brasgzombiefatfinish_17)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class brasgzombiefatfinish_17 extends MovieClip {
public function brasgzombiefatfinish_17(){
super();
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
if (this.parent.parent.armDestroyed){
this.gotoAndStop("destroyed");
};
stop();
}
}
}//package zombies_fla
Section 38
//Copiedebrasdanim_35 (zombies_fla.Copiedebrasdanim_35)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Copiedebrasdanim_35 extends MovieClip {
public function Copiedebrasdanim_35(){
super();
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
if (this.parent.parent.armRightDestroyed){
this.gotoAndStop("destroyed");
};
stop();
}
}
}//package zombies_fla
Section 39
//Copiedebrasdanim2_37 (zombies_fla.Copiedebrasdanim2_37)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Copiedebrasdanim2_37 extends MovieClip {
public function Copiedebrasdanim2_37(){
super();
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
if (this.parent.parent.armRightDestroyed){
this.gotoAndStop("destroyed");
};
stop();
}
}
}//package zombies_fla
Section 40
//Copiedebrasgzombiefatfinish_16 (zombies_fla.Copiedebrasgzombiefatfinish_16)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Copiedebrasgzombiefatfinish_16 extends MovieClip {
public function Copiedebrasgzombiefatfinish_16(){
super();
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
if (this.parent.parent.armDestroyed){
this.gotoAndStop("destroyed");
};
stop();
}
}
}//package zombies_fla
Section 41
//Copiedebrasgzombiemaigre_25 (zombies_fla.Copiedebrasgzombiemaigre_25)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Copiedebrasgzombiemaigre_25 extends MovieClip {
public function Copiedebrasgzombiemaigre_25(){
super();
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
if (this.parent.parent.armDestroyed){
this.gotoAndStop("destroyed");
};
stop();
}
}
}//package zombies_fla
Section 42
//Copiedebrasgzombiemaigre2_26 (zombies_fla.Copiedebrasgzombiemaigre2_26)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Copiedebrasgzombiemaigre2_26 extends MovieClip {
public function Copiedebrasgzombiemaigre2_26(){
super();
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
if (this.parent.parent.armDestroyed){
this.gotoAndStop("destroyed");
};
stop();
}
}
}//package zombies_fla
Section 43
//Copiedebrasgzombiemaigre22_29 (zombies_fla.Copiedebrasgzombiemaigre22_29)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Copiedebrasgzombiemaigre22_29 extends MovieClip {
public function Copiedebrasgzombiemaigre22_29(){
super();
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
if (this.parent.parent.armDestroyed){
this.gotoAndStop("destroyed");
};
stop();
}
}
}//package zombies_fla
Section 44
//Copiedebrasgzombiemaigre222_30 (zombies_fla.Copiedebrasgzombiemaigre222_30)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Copiedebrasgzombiemaigre222_30 extends MovieClip {
public function Copiedebrasgzombiemaigre222_30(){
super();
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
if (this.parent.parent.armDestroyed){
this.gotoAndStop("destroyed");
};
stop();
}
}
}//package zombies_fla
Section 45
//Copiedebrasgzombiemaigre2222_34 (zombies_fla.Copiedebrasgzombiemaigre2222_34)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Copiedebrasgzombiemaigre2222_34 extends MovieClip {
public function Copiedebrasgzombiemaigre2222_34(){
super();
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
if (this.parent.parent.armDestroyed){
this.gotoAndStop("destroyed");
};
stop();
}
}
}//package zombies_fla
Section 46
//Copiedebrasgzombiemaigre22222_36 (zombies_fla.Copiedebrasgzombiemaigre22222_36)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Copiedebrasgzombiemaigre22222_36 extends MovieClip {
public function Copiedebrasgzombiemaigre22222_36(){
super();
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
if (this.parent.parent.armDestroyed){
this.gotoAndStop("destroyed");
};
stop();
}
}
}//package zombies_fla
Section 47
//Copiedebrasgzombiemaigrehachoire_31 (zombies_fla.Copiedebrasgzombiemaigrehachoire_31)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Copiedebrasgzombiemaigrehachoire_31 extends MovieClip {
public function Copiedebrasgzombiemaigrehachoire_31(){
super();
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
if (this.parent.parent.armDestroyed){
this.gotoAndStop("destroyed");
};
stop();
}
}
}//package zombies_fla
Section 48
//Copiedebrasgzombiemaigrehachoire2_32 (zombies_fla.Copiedebrasgzombiemaigrehachoire2_32)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Copiedebrasgzombiemaigrehachoire2_32 extends MovieClip {
public function Copiedebrasgzombiemaigrehachoire2_32(){
super();
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
if (this.parent.parent.armDestroyed){
this.gotoAndStop("destroyed");
};
stop();
}
}
}//package zombies_fla
Section 49
//Copiedebrasgzombiemaigrehachoire22_33 (zombies_fla.Copiedebrasgzombiemaigrehachoire22_33)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class Copiedebrasgzombiemaigrehachoire22_33 extends MovieClip {
public function Copiedebrasgzombiemaigrehachoire22_33(){
super();
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
if (this.parent.parent.armDestroyed){
this.gotoAndStop("destroyed");
};
stop();
}
}
}//package zombies_fla
Section 50
//corpsbigBEAR_80 (zombies_fla.corpsbigBEAR_80)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class corpsbigBEAR_80 extends MovieClip {
public var elmt1:MovieClip;
public var elmt2:MovieClip;
public var elmt3:MovieClip;
public function corpsbigBEAR_80(){
super();
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package zombies_fla
Section 51
//corpsElmt_1_81 (zombies_fla.corpsElmt_1_81)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class corpsElmt_1_81 extends MovieClip {
public function corpsElmt_1_81(){
super();
addFrameScript(1, frame2, 3, frame4);
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package zombies_fla
Section 52
//corpsElmt_2_83 (zombies_fla.corpsElmt_2_83)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class corpsElmt_2_83 extends MovieClip {
public function corpsElmt_2_83(){
super();
addFrameScript(1, frame2, 3, frame4);
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package zombies_fla
Section 53
//corpsElmt_3_85 (zombies_fla.corpsElmt_3_85)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class corpsElmt_3_85 extends MovieClip {
public function corpsElmt_3_85(){
super();
addFrameScript(1, frame2, 3, frame4);
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package zombies_fla
Section 54
//corpsgarou_46 (zombies_fla.corpsgarou_46)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class corpsgarou_46 extends MovieClip {
public function corpsgarou_46(){
super();
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package zombies_fla
Section 55
//dateIntro_260 (zombies_fla.dateIntro_260)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class dateIntro_260 extends MovieClip {
public function dateIntro_260(){
super();
addFrameScript(93, frame94);
}
function frame94(){
stop();
}
}
}//package zombies_fla
Section 56
//dateNiv1_268 (zombies_fla.dateNiv1_268)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class dateNiv1_268 extends MovieClip {
public function dateNiv1_268(){
super();
addFrameScript(93, frame94);
}
function frame94(){
stop();
}
}
}//package zombies_fla
Section 57
//dateNiv2_267 (zombies_fla.dateNiv2_267)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class dateNiv2_267 extends MovieClip {
public function dateNiv2_267(){
super();
addFrameScript(93, frame94);
}
function frame94(){
stop();
}
}
}//package zombies_fla
Section 58
//dateNiv4_269 (zombies_fla.dateNiv4_269)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class dateNiv4_269 extends MovieClip {
public function dateNiv4_269(){
super();
addFrameScript(93, frame94);
}
function frame94(){
stop();
}
}
}//package zombies_fla
Section 59
//dateNiv55_276 (zombies_fla.dateNiv55_276)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class dateNiv55_276 extends MovieClip {
public function dateNiv55_276(){
super();
addFrameScript(93, frame94);
}
function frame94(){
stop();
}
}
}//package zombies_fla
Section 60
//eclatagebrasdroitzombiemaigre_28 (zombies_fla.eclatagebrasdroitzombiemaigre_28)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class eclatagebrasdroitzombiemaigre_28 extends MovieClip {
public function eclatagebrasdroitzombiemaigre_28(){
super();
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
if (this.parent.parent.armRightDestroyed){
this.gotoAndStop("destroyed");
};
stop();
}
}
}//package zombies_fla
Section 61
//eclatmedaille_174 (zombies_fla.eclatmedaille_174)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class eclatmedaille_174 extends MovieClip {
public function eclatmedaille_174(){
super();
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package zombies_fla
Section 62
//fakePreloadingScreenformochidAds_111 (zombies_fla.fakePreloadingScreenformochidAds_111)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class fakePreloadingScreenformochidAds_111 extends MovieClip {
public function fakePreloadingScreenformochidAds_111(){
super();
addFrameScript(102, frame103);
}
function frame103(){
this.parent.gotoAndPlay("game");
stop();
}
}
}//package zombies_fla
Section 63
//futegun_185 (zombies_fla.futegun_185)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class futegun_185 extends MovieClip {
public function futegun_185(){
super();
addFrameScript(3, frame4, 7, frame8, 11, frame12);
}
function frame12(){
stop();
}
function frame8(){
stop();
}
function frame4(){
stop();
}
}
}//package zombies_fla
Section 64
//giclure_bigbear_1_93 (zombies_fla.giclure_bigbear_1_93)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class giclure_bigbear_1_93 extends MovieClip {
public function giclure_bigbear_1_93(){
super();
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package zombies_fla
Section 65
//giclure_bigbear_2_91 (zombies_fla.giclure_bigbear_2_91)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class giclure_bigbear_2_91 extends MovieClip {
public function giclure_bigbear_2_91(){
super();
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package zombies_fla
Section 66
//giclure_bigbear_3_89 (zombies_fla.giclure_bigbear_3_89)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class giclure_bigbear_3_89 extends MovieClip {
public function giclure_bigbear_3_89(){
super();
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package zombies_fla
Section 67
//giclure_bigbear_4_96 (zombies_fla.giclure_bigbear_4_96)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class giclure_bigbear_4_96 extends MovieClip {
public function giclure_bigbear_4_96(){
super();
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package zombies_fla
Section 68
//giclure_bigbear_5_98 (zombies_fla.giclure_bigbear_5_98)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class giclure_bigbear_5_98 extends MovieClip {
public function giclure_bigbear_5_98(){
super();
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package zombies_fla
Section 69
//giclure_bigbear_6_100 (zombies_fla.giclure_bigbear_6_100)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class giclure_bigbear_6_100 extends MovieClip {
public function giclure_bigbear_6_100(){
super();
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package zombies_fla
Section 70
//giclure_bigbear_7_82 (zombies_fla.giclure_bigbear_7_82)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class giclure_bigbear_7_82 extends MovieClip {
public function giclure_bigbear_7_82(){
super();
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package zombies_fla
Section 71
//giclure_bigbear_8_84 (zombies_fla.giclure_bigbear_8_84)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class giclure_bigbear_8_84 extends MovieClip {
public function giclure_bigbear_8_84(){
super();
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package zombies_fla
Section 72
//giclure_bigbear_9_86 (zombies_fla.giclure_bigbear_9_86)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class giclure_bigbear_9_86 extends MovieClip {
public function giclure_bigbear_9_86(){
super();
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package zombies_fla
Section 73
//gicluretutorial_72 (zombies_fla.gicluretutorial_72)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class gicluretutorial_72 extends MovieClip {
public function gicluretutorial_72(){
super();
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package zombies_fla
Section 74
//gotoPictogamePanel_358 (zombies_fla.gotoPictogamePanel_358)
package zombies_fla {
import flash.display.*;
public dynamic class gotoPictogamePanel_358 extends MovieClip {
public var btPicToGame:SimpleButton;
public var btStartPanel:SimpleButton;
public function gotoPictogamePanel_358(){
super();
}
}
}//package zombies_fla
Section 75
//grafikProtectionVAmpire_56 (zombies_fla.grafikProtectionVAmpire_56)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class grafikProtectionVAmpire_56 extends MovieClip {
public function grafikProtectionVAmpire_56(){
super();
addFrameScript(122, frame123);
}
function frame123(){
gotoAndPlay("ssFin");
}
}
}//package zombies_fla
Section 76
//grfkFS_flecheOver_130 (zombies_fla.grfkFS_flecheOver_130)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class grfkFS_flecheOver_130 extends MovieClip {
public function grfkFS_flecheOver_130(){
super();
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package zombies_fla
Section 77
//herosdroit_184 (zombies_fla.herosdroit_184)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class herosdroit_184 extends MovieClip {
public var bodyBottom:MovieClip;
public var bodyUp:MovieClip;
public function herosdroit_184(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
this.bodyUp.gotoAndPlay("standUzi");
this.bodyBottom.gotoAndPlay("Uzi");
stop();
}
function frame1(){
this.bodyUp.gotoAndPlay("standGun");
this.bodyBottom.gotoAndPlay("Gun");
stop();
}
function frame2(){
this.bodyUp.gotoAndPlay("standPompe");
this.bodyBottom.gotoAndPlay("Pompe");
stop();
}
}
}//package zombies_fla
Section 78
//impact_14 (zombies_fla.impact_14)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class impact_14 extends MovieClip {
public function impact_14(){
super();
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
}
}
}//package zombies_fla
Section 79
//impact_44 (zombies_fla.impact_44)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class impact_44 extends MovieClip {
public function impact_44(){
super();
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
}
}
}//package zombies_fla
Section 80
//impactb_11 (zombies_fla.impactb_11)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class impactb_11 extends MovieClip {
public function impactb_11(){
super();
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
}
}
}//package zombies_fla
Section 81
//impactc_48 (zombies_fla.impactc_48)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class impactc_48 extends MovieClip {
public function impactc_48(){
super();
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
}
}
}//package zombies_fla
Section 82
//kaldrimLogo__114 (zombies_fla.kaldrimLogo__114)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class kaldrimLogo__114 extends MovieClip {
public function kaldrimLogo__114(){
super();
addFrameScript(80, frame81);
}
function frame81(){
this.parent.gotoAndPlay("kwa");
}
}
}//package zombies_fla
Section 83
//lancegrenade_78 (zombies_fla.lancegrenade_78)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class lancegrenade_78 extends MovieClip {
public function lancegrenade_78(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package zombies_fla
Section 84
//life_230 (zombies_fla.life_230)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class life_230 extends MovieClip {
public function life_230(){
super();
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package zombies_fla
Section 85
//loadingScreen_1 (zombies_fla.loadingScreen_1)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class loadingScreen_1 extends MovieClip {
public var mcLProgressBlood:MovieClip;
public var mcLoaderProgress:MovieClip;
public function loadingScreen_1(){
super();
addFrameScript(6, frame7, 20, frame21, 60, frame61, 84, frame85, 101, frame102);
}
function frame85(){
gotoAndPlay("sang");
}
function frame102(){
this.parent.gotoAndPlay("game");
stop();
}
function frame7(){
if (((this.parent.preloadCompleted) && (this.parent.preloadAllReadyView))){
this.gotoAndPlay("goToGame");
};
}
function frame21(){
this.parent.preloadAllReadyView = true;
if (((this.parent.preloadCompleted) && (this.parent.preloadAllReadyView))){
this.gotoAndPlay("goToGame");
};
}
function frame61(){
if (((this.parent.preloadCompleted) && (this.parent.preloadAllReadyView))){
this.gotoAndPlay("goToGame");
};
}
}
}//package zombies_fla
Section 86
//logo2008_140 (zombies_fla.logo2008_140)
package zombies_fla {
import flash.display.*;
public dynamic class logo2008_140 extends MovieClip {
public var mcPicToGame:MovieClip;
public function logo2008_140(){
super();
}
}
}//package zombies_fla
Section 87
//logokWa_flatToon_115 (zombies_fla.logokWa_flatToon_115)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class logokWa_flatToon_115 extends MovieClip {
public function logokWa_flatToon_115(){
super();
addFrameScript(79, frame80);
}
function frame80(){
this.parent.gotoAndPlay("presente");
}
}
}//package zombies_fla
Section 88
//MainTimeline (zombies_fla.MainTimeline)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import shootemup.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class MainTimeline extends MovieClip {
public var tutoToGame:Boolean;
public var medal100AllReadyActivated:Boolean;
public var heroLife:Number;
public var medalOnlyGunUsedAllReadyActivated:Boolean;
public var medalWinGameAllReadyActivated:Boolean;
public var arrayPurcentLevel:Array;
public var medalNoUziUsedAllReadyActivated:Boolean;
public var soundIsMute:Boolean;
public var medalNoLiveUsedAllReadyActivated:Boolean;
public var gameIsFinish:Boolean;
public var preloadCompleted:Boolean;
public var varOnTheNet:Boolean;
public var justGunUsed:Boolean;
public var urlSwf:String;
public var preLoader:MovieClip;
public var mcGame:Gameplay;
public var uziNoUsed:Boolean;
public var firstTimePlay:Boolean;
public var noLivesUsed:Boolean;
public var medal90AllReadyActivated:Boolean;
public var varTesting:Boolean;
public var gameIsFscreen:Boolean;
public var preloadAllReadyView:Boolean;
public function MainTimeline(){
super();
addFrameScript(0, frame1, 2, frame3, 5, frame6, 7, frame8, 10, frame11, 12, frame13, 14, frame15, 16, frame17);
}
public function testing():Boolean{
return (varTesting);
}
public function onProgress(evt:ProgressEvent):void{
var initPosition:Number;
initPosition = 128;
this.preLoader.mcLoaderProgress.scaleY = (evt.bytesLoaded / evt.bytesTotal);
this.preLoader.mcLProgressBlood.y = (this.preLoader.mcLoaderProgress.height + initPosition);
}
public function onComplete(evt:Event):void{
if (preloadAllReadyView){
this.preLoader.gotoAndPlay("goToGame");
} else {
this.preloadCompleted = true;
};
}
function frame6(){
stop();
}
function frame1(){
loaderInfo.addEventListener(Event.INIT, onOpen);
varTesting = false;
varOnTheNet = true;
soundIsMute = false;
tutoToGame = false;
gameIsFscreen = false;
heroLife = 3;
noLivesUsed = false;
justGunUsed = true;
uziNoUsed = true;
gameIsFinish = false;
arrayPurcentLevel = [0, 0, 0, 0, 0];
medalWinGameAllReadyActivated = false;
medalNoLiveUsedAllReadyActivated = false;
medalNoUziUsedAllReadyActivated = false;
medalOnlyGunUsedAllReadyActivated = false;
medal90AllReadyActivated = false;
medal100AllReadyActivated = false;
firstTimePlay = true;
preloadAllReadyView = false;
preloadCompleted = false;
MochiAd.showPreGameAd({clip:root, id:"4af9c05b26229cc1", res:"700x350", background:0, color:15275799, outline:0xFFFFFF, no_bg:false});
stop();
}
function frame3(){
loaderInfo.addEventListener(Event.COMPLETE, onComplete);
loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
stop();
}
function frame13(){
stop();
}
function frame8(){
trace("ici : this.mcGame.gotoAndPlay('game');");
this.mcGame.gotoAndStop("game");
trace(("at frame'gameFromTuto': urlSwf : " + this.urlSwf));
this.mcGame.urlSwf = this.urlSwf;
stop();
trace("stop();");
}
function frame15(){
trace("restartGameFRomGame");
this.firstTimePlay = false;
this.heroLife = 3;
gotoAndPlay("game");
}
function frame17(){
trace("restartGameFromTuto");
this.firstTimePlay = false;
this.heroLife = 3;
gotoAndPlay("gameFromTuto");
}
function frame11(){
this.mcGame.urlSwf = this.urlSwf;
trace(("at frame'game': urlSwf : " + this.urlSwf));
}
public function onOpen(evt:Event):void{
this.urlSwf = evt.target.url.toString();
trace("urlSwf : ", urlSwf);
}
}
}//package zombies_fla
Section 89
//mc_tutoExpressAwesome_212 (zombies_fla.mc_tutoExpressAwesome_212)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mc_tutoExpressAwesome_212 extends MovieClip {
public function mc_tutoExpressAwesome_212(){
super();
addFrameScript(31, frame32);
}
function frame32(){
this.parent.parent.gotoAndPlay("head");
stop();
}
}
}//package zombies_fla
Section 90
//mc_tutoExpressFine_208 (zombies_fla.mc_tutoExpressFine_208)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mc_tutoExpressFine_208 extends MovieClip {
public function mc_tutoExpressFine_208(){
super();
addFrameScript(31, frame32);
}
function frame32(){
this.parent.parent.gotoAndPlay("armR");
stop();
}
}
}//package zombies_fla
Section 91
//mc_tutoExpressGreat_210 (zombies_fla.mc_tutoExpressGreat_210)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mc_tutoExpressGreat_210 extends MovieClip {
public function mc_tutoExpressGreat_210(){
super();
addFrameScript(31, frame32);
}
function frame32(){
this.parent.parent.gotoAndPlay("body");
stop();
}
}
}//package zombies_fla
Section 92
//mc_tutoExpressions_205 (zombies_fla.mc_tutoExpressions_205)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mc_tutoExpressions_205 extends MovieClip {
public function mc_tutoExpressions_205(){
super();
addFrameScript(3, frame4, 8, frame9, 13, frame14, 18, frame19, 23, frame24, 28, frame29);
}
function frame14(){
stop();
}
function frame19(){
stop();
}
function frame4(){
stop();
}
function frame9(){
stop();
}
function frame29(){
stop();
}
function frame24(){
stop();
}
}
}//package zombies_fla
Section 93
//mc_tutoExpressReady_206 (zombies_fla.mc_tutoExpressReady_206)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mc_tutoExpressReady_206 extends MovieClip {
public function mc_tutoExpressReady_206(){
super();
addFrameScript(31, frame32);
}
function frame32(){
this.parent.parent.gotoAndPlay("arm");
stop();
}
}
}//package zombies_fla
Section 94
//mc_tutoExpressTremendous_214 (zombies_fla.mc_tutoExpressTremendous_214)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mc_tutoExpressTremendous_214 extends MovieClip {
public function mc_tutoExpressTremendous_214(){
super();
addFrameScript(31, frame32);
}
function frame32(){
this.parent.parent.gotoAndPlay("spaceToReload");
stop();
}
}
}//package zombies_fla
Section 95
//mc_typeTutoPuppet_68 (zombies_fla.mc_typeTutoPuppet_68)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mc_typeTutoPuppet_68 extends MovieClip {
public var corps:MovieClip;
public var brasD:MovieClip;
public var bras:MovieClip;
public var tete:MovieClip;
public function mc_typeTutoPuppet_68(){
super();
addFrameScript(10, frame11, 60, frame61, 77, frame78, 101, frame102, 104, frame105);
}
function frame78(){
gotoAndPlay("standTutoPuppet");
}
function frame102(){
gotoAndPlay("repartTutoPuppet");
}
function frame105(){
trace("yaaaaaaaaaaaaaaaaaaaa");
stop();
}
function frame11(){
gotoAndPlay("arriveTutoPuppet");
}
function frame61(){
gotoAndPlay("standTutoPuppet");
}
}
}//package zombies_fla
Section 96
//mcAddWeaponsPanel_296 (zombies_fla.mcAddWeaponsPanel_296)
package zombies_fla {
import flash.display.*;
public dynamic class mcAddWeaponsPanel_296 extends MovieClip {
public var mcShotGun:MovieClip;
public var btOk:SimpleButton;
public var mcUzi:MovieClip;
public function mcAddWeaponsPanel_296(){
super();
}
}
}//package zombies_fla
Section 97
//mcAnimeOutroWinPanel_316 (zombies_fla.mcAnimeOutroWinPanel_316)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcAnimeOutroWinPanel_316 extends MovieClip {
public function mcAnimeOutroWinPanel_316(){
super();
addFrameScript(623, frame624);
}
function frame624(){
this.parent.parent.gotoAndPlay("endPanel");
}
}
}//package zombies_fla
Section 98
//mcArmor_61 (zombies_fla.mcArmor_61)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcArmor_61 extends MovieClip {
public var oeil:MovieClip;
public function mcArmor_61(){
super();
addFrameScript(18, frame19, 31, frame32, 36, frame37, 40, frame41, 110, frame111, 111, frame112);
}
function frame19(){
this.gotoAndPlay("marche");
}
function frame111(){
this.parent.endFatality();
this.gotoAndStop("dispar");
}
function frame37(){
this.gotoAndPlay("marche");
}
function frame112(){
stop();
}
function frame41(){
this.gotoAndPlay("marche");
}
function frame32(){
this.parent.isDestroyed();
this.gotoAndStop("dispar");
}
}
}//package zombies_fla
Section 99
//mcBat_38 (zombies_fla.mcBat_38)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcBat_38 extends MovieClip {
public function mcBat_38(){
super();
addFrameScript(9, frame10, 16, frame17, 86, frame87, 87, frame88);
}
function frame87(){
this.parent.endFatality();
this.gotoAndStop("dispar");
}
function frame88(){
stop();
}
function frame10(){
this.gotoAndPlay("volBat");
}
function frame17(){
this.parent.isDestroyed();
this.gotoAndStop("dispar");
}
}
}//package zombies_fla
Section 100
//mcBatVampire_59 (zombies_fla.mcBatVampire_59)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcBatVampire_59 extends MovieClip {
public function mcBatVampire_59(){
super();
addFrameScript(0, frame1, 10, frame11, 19, frame20);
}
function frame1(){
gotoAndPlay("vol");
}
function frame20(){
parent.parent.upNbBatDead();
gotoAndStop("hide");
}
function frame11(){
gotoAndPlay("vol");
}
}
}//package zombies_fla
Section 101
//mcBGStory_252 (zombies_fla.mcBGStory_252)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcBGStory_252 extends MovieClip {
public var mcPanLevel5:MovieClip;
public function mcBGStory_252(){
super();
addFrameScript(0, frame1, 2, frame3, 5, frame6, 10, frame11, 15, frame16, 20, frame21, 25, frame26, 30, frame31);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame16(){
stop();
}
function frame1(){
stop();
}
function frame26(){
stop();
}
function frame21(){
stop();
}
function frame31(){
stop();
}
function frame11(){
stop();
}
}
}//package zombies_fla
Section 102
//mcBigBear_76 (zombies_fla.mcBigBear_76)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcBigBear_76 extends MovieClip {
public var mcBigBear_tete:MovieClip;
public var mcBigBear_brasG:MovieClip;
public var mcBigBear_brasD:MovieClip;
public var mcBigBear_corps:MovieClip;
public function mcBigBear_76(){
super();
addFrameScript(18, frame19, 29, frame30, 85, frame86, 98, frame99, 136, frame137, 137, frame138);
}
function frame86(){
this.parent.endFatality();
this.gotoAndStop("dispar");
}
function frame19(){
gotoAndPlay("marcheBigBear");
}
function frame30(){
this.mcBigBear_brasD.grenadeLuncher.play();
}
function frame99(){
this.parent.endHit();
this.gotoAndPlay("marcheBigBear");
}
function frame138(){
stop();
}
function frame137(){
this.parent.isDestroyed();
stop();
}
}
}//package zombies_fla
Section 103
//mcBloodTxtScore_305 (zombies_fla.mcBloodTxtScore_305)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcBloodTxtScore_305 extends MovieClip {
public function mcBloodTxtScore_305(){
super();
addFrameScript(3, frame4, 6, frame7, 11, frame12);
}
function frame12(){
gotoAndPlay("hide");
}
function frame7(){
this.parent.updateDisplayScore();
}
function frame4(){
stop();
}
}
}//package zombies_fla
Section 104
//mcBtnBackMenuInGame_rentre_249 (zombies_fla.mcBtnBackMenuInGame_rentre_249)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcBtnBackMenuInGame_rentre_249 extends MovieClip {
public function mcBtnBackMenuInGame_rentre_249(){
super();
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package zombies_fla
Section 105
//mcBtnBackMenuInGame_sort_250 (zombies_fla.mcBtnBackMenuInGame_sort_250)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcBtnBackMenuInGame_sort_250 extends MovieClip {
public function mcBtnBackMenuInGame_sort_250(){
super();
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package zombies_fla
Section 106
//mcBtnBackSkipStoyuMode_rentre_294 (zombies_fla.mcBtnBackSkipStoyuMode_rentre_294)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcBtnBackSkipStoyuMode_rentre_294 extends MovieClip {
public function mcBtnBackSkipStoyuMode_rentre_294(){
super();
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package zombies_fla
Section 107
//mcBtnBackSkipStoyuMode_sort_295 (zombies_fla.mcBtnBackSkipStoyuMode_sort_295)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcBtnBackSkipStoyuMode_sort_295 extends MovieClip {
public function mcBtnBackSkipStoyuMode_sort_295(){
super();
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package zombies_fla
Section 108
//mcCreditPanel_113 (zombies_fla.mcCreditPanel_113)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcCreditPanel_113 extends MovieClip {
public var bibi:MovieClip;
public function mcCreditPanel_113(){
super();
addFrameScript(0, frame1, 5, frame6, 13, frame14, 53, frame54, 109, frame110, 114, frame115);
}
function frame14(){
stop();
}
function frame6(){
stop();
}
function frame1(){
this.gotoAndPlay("preIntro");
}
function frame110(){
this.parent.gotoAndPlay("startPanel");
}
function frame115(){
stop();
}
function frame54(){
this.bibi.gotoAndPlay("bim");
}
}
}//package zombies_fla
Section 109
//mcCurrentWeapon_219 (zombies_fla.mcCurrentWeapon_219)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcCurrentWeapon_219 extends MovieClip {
public var mcMunitions:TextField;
public var mcHiddenUzi:MovieClip;
public var mcUziRemoved:MovieClip;
public var mcHiddenShootGun:MovieClip;
public var btCurrentWeapon:SimpleButton;
public function mcCurrentWeapon_219(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
this.mcMunitions.text = this.parent.mcHeros.munitionsUzi;
this.parent.endSwapWeapons();
stop();
}
function frame4(){
this.mcMunitions.text = "";
stop();
}
function frame1(){
this.mcMunitions.text = this.parent.mcHeros.munitionsGun;
this.parent.endSwapWeapons();
stop();
}
function frame2(){
this.mcMunitions.text = this.parent.mcHeros.munitionsShootGun;
this.parent.endSwapWeapons();
stop();
}
}
}//package zombies_fla
Section 110
//mcDecors_232 (zombies_fla.mcDecors_232)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcDecors_232 extends MovieClip {
public function mcDecors_232(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package zombies_fla
Section 111
//mcEclatsUzi_18 (zombies_fla.mcEclatsUzi_18)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcEclatsUzi_18 extends MovieClip {
public function mcEclatsUzi_18(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package zombies_fla
Section 112
//mcExplainTuto_200 (zombies_fla.mcExplainTuto_200)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcExplainTuto_200 extends MovieClip {
public var mcTutoExpressions:MovieClip;
public var btReplayTuto:SimpleButton;
public var btPlayGame:SimpleButton;
public var btSkip:SimpleButton;
public function mcExplainTuto_200(){
super();
addFrameScript(56, frame57, 61, frame62, 85, frame86, 89, frame90, 93, frame94, 97, frame98, 100, frame101, 101, frame102, 102, frame103, 103, frame104, 105, frame106);
}
function frame62(){
stop();
}
function frame86(){
stop();
}
function frame90(){
stop();
}
function frame94(){
stop();
}
function frame98(){
stop();
}
function frame102(){
this.parent.tutoPressSpace = true;
this.parent.mcHeros.munitionsGun = 0;
this.parent.mcCurrentWeapon.gotoAndStop(4);
this.parent.mcCurrentWeapon.gotoAndStop(this.parent.mcHeros.currentWeapon);
}
function frame106(){
stop();
}
function frame103(){
stop();
}
function frame104(){
this.parent.inTutorial = false;
}
function frame101(){
stop();
}
function frame57(){
stop();
}
}
}//package zombies_fla
Section 113
//mcFirstTimePlay_178 (zombies_fla.mcFirstTimePlay_178)
package zombies_fla {
import flash.display.*;
public dynamic class mcFirstTimePlay_178 extends MovieClip {
public var btTuto:SimpleButton;
public var btGame:SimpleButton;
public function mcFirstTimePlay_178(){
super();
}
}
}//package zombies_fla
Section 114
//mcHeadExpressionHeros_280 (zombies_fla.mcHeadExpressionHeros_280)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcHeadExpressionHeros_280 extends MovieClip {
public function mcHeadExpressionHeros_280(){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16);
}
function frame10(){
stop();
}
function frame14(){
stop();
}
function frame12(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame13(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame16(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
function frame15(){
stop();
}
function frame11(){
stop();
}
}
}//package zombies_fla
Section 115
//mcHeadExpressionSoldats_282 (zombies_fla.mcHeadExpressionSoldats_282)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcHeadExpressionSoldats_282 extends MovieClip {
public function mcHeadExpressionSoldats_282(){
super();
addFrameScript(0, frame1, 8, frame9, 11, frame12, 15, frame16, 22, frame23, 29, frame30, 33, frame34);
}
function frame12(){
stop();
}
function frame16(){
stop();
}
function frame1(){
stop();
}
function frame23(){
stop();
}
function frame9(){
stop();
}
function frame30(){
stop();
}
function frame34(){
stop();
}
}
}//package zombies_fla
Section 116
//mcHeadLife_231 (zombies_fla.mcHeadLife_231)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcHeadLife_231 extends MovieClip {
public function mcHeadLife_231(){
super();
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package zombies_fla
Section 117
//mcHerosFatalityBat_197 (zombies_fla.mcHerosFatalityBat_197)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcHerosFatalityBat_197 extends MovieClip {
public function mcHerosFatalityBat_197(){
super();
addFrameScript(40, frame41);
}
function frame41(){
stop();
}
}
}//package zombies_fla
Section 118
//mcIntro_253 (zombies_fla.mcIntro_253)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcIntro_253 extends MovieClip {
public function mcIntro_253(){
super();
addFrameScript(200, frame201);
}
function frame201(){
stop();
}
}
}//package zombies_fla
Section 119
//mcIntroCredit_118 (zombies_fla.mcIntroCredit_118)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcIntroCredit_118 extends MovieClip {
public function mcIntroCredit_118(){
super();
addFrameScript(9, frame10, 150, frame151);
}
function frame151(){
this.parent.parent.stopAmbianceSoundForInterfaceLoop();
trace("arret du son ");
this.parent.parent.playInterfaceSound(2, "timeLine Introduction", 0.6);
this.parent.parent.gotoAndPlay("startPanel");
stop();
}
function frame10(){
this.parent.parent.lunchAmbianceSoundForInterface();
trace("declachement du son ");
}
}
}//package zombies_fla
Section 120
//mcLevelUp_306 (zombies_fla.mcLevelUp_306)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import shootemup.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcLevelUp_306 extends MovieClip {
public var btLevelUp:SimpleButton;
public var mcScorePanel:ScorePanel;
public function mcLevelUp_306(){
super();
addFrameScript(7, frame8, 18, frame19, 22, frame23);
}
function frame8(){
stop();
}
function frame19(){
this.parent.initLevelUp();
stop();
}
function frame23(){
}
}
}//package zombies_fla
Section 121
//mcLife_229 (zombies_fla.mcLife_229)
package zombies_fla {
import flash.display.*;
public dynamic class mcLife_229 extends MovieClip {
public var life:MovieClip;
public var mcHeadLife:MovieClip;
public function mcLife_229(){
super();
}
}
}//package zombies_fla
Section 122
//mcLycan_42 (zombies_fla.mcLycan_42)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcLycan_42 extends MovieClip {
public var queue:MovieClip;
public var brasDLycan:MovieClip;
public var teteLycan:MovieClip;
public var corpsLycan:MovieClip;
public var brasLycan:MovieClip;
public function mcLycan_42(){
super();
addFrameScript(19, frame20, 94, frame95, 103, frame104, 120, frame121, 121, frame122);
}
function frame95(){
this.parent.endFatality();
this.gotoAndStop("dispar");
}
function frame20(){
gotoAndPlay("marcheLycan");
}
function frame104(){
gotoAndPlay("marcheLycan");
}
function frame122(){
stop();
}
function frame121(){
this.parent.isDestroyed();
this.gotoAndStop("dispar");
}
}
}//package zombies_fla
Section 123
//mcMedalEclatantes_355 (zombies_fla.mcMedalEclatantes_355)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcMedalEclatantes_355 extends MovieClip {
public function mcMedalEclatantes_355(){
super();
addFrameScript(44, frame45);
}
function frame45(){
stop();
}
}
}//package zombies_fla
Section 124
//mcMiniMedals_342 (zombies_fla.mcMiniMedals_342)
package zombies_fla {
import flash.display.*;
public dynamic class mcMiniMedals_342 extends MovieClip {
public var med1:MovieClip;
public var med2:MovieClip;
public var med4:MovieClip;
public var med5:MovieClip;
public var med3:MovieClip;
public var med6:MovieClip;
public function mcMiniMedals_342(){
super();
}
}
}//package zombies_fla
Section 125
//mcNutsVisu_139 (zombies_fla.mcNutsVisu_139)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcNutsVisu_139 extends MovieClip {
public function mcNutsVisu_139(){
super();
addFrameScript(1, frame2, 3, frame4);
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package zombies_fla
Section 126
//mcOutroLosePanel_332 (zombies_fla.mcOutroLosePanel_332)
package zombies_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mcOutroLosePanel_332 extends MovieClip {
public var btPicToGame:SimpleButton;
public var mcYouReDead:MovieClip;
public var btReplayThisLevel:SimpleButton;
public var btStartPanel:SimpleButton;
public var nbLife:TextField;
public function mcOutroLosePanel_332(){
super();
}
}
}//package zombies_fla
Section 127
//mcOutroWinpanel_315 (zombies_fla.mcOutroWinpanel_315)
package zombies_fla {
import flash.display.*;
public dynamic class mcOutroWinpanel_315 extends MovieClip {
public var btStartPanel:SimpleButton;
public function mcOutroWinpanel_315(){
super();
}
}
}//package zombies_fla
Section 128
//mcRadioHeros_278 (zombies_fla.mcRadioHeros_278)
package zombies_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mcRadioHeros_278 extends MovieClip {
public var mcHeadExpressionsHeros:MovieClip;
public var blockText:TextField;
public function mcRadioHeros_278(){
super();
}
}
}//package zombies_fla
Section 129
//mcRadioSoldats_281 (zombies_fla.mcRadioSoldats_281)
package zombies_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mcRadioSoldats_281 extends MovieClip {
public var mcHeadExpressionsSoldier:MovieClip;
public var blockText:TextField;
public function mcRadioSoldats_281(){
super();
}
}
}//package zombies_fla
Section 130
//mcRemoveUziPanel_301 (zombies_fla.mcRemoveUziPanel_301)
package zombies_fla {
import flash.display.*;
public dynamic class mcRemoveUziPanel_301 extends MovieClip {
public var btOk:SimpleButton;
public var mcUzi:MovieClip;
public function mcRemoveUziPanel_301(){
super();
}
}
}//package zombies_fla
Section 131
//mcStartPanel_136 (zombies_fla.mcStartPanel_136)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcStartPanel_136 extends MovieClip {
public var btPicToGame:SimpleButton;
public var btStartTuto:SimpleButton;
public var btStart:SimpleButton;
public var btMedals:SimpleButton;
public var btBack:SimpleButton;
public var btFscreen:SimpleButton;
public var btPlayMoreGame:SimpleButton;
public var mcNutsVisu:MovieClip;
public var btCtrl:SimpleButton;
public function mcStartPanel_136(){
super();
addFrameScript(8, frame9, 18, frame19, 29, frame30);
}
function frame19(){
stop();
}
function frame9(){
stop();
}
function frame30(){
stop();
}
}
}//package zombies_fla
Section 132
//mcTutoBody_73 (zombies_fla.mcTutoBody_73)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcTutoBody_73 extends MovieClip {
public function mcTutoBody_73(){
super();
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package zombies_fla
Section 133
//mcTutoBrasDroit_74 (zombies_fla.mcTutoBrasDroit_74)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcTutoBrasDroit_74 extends MovieClip {
public function mcTutoBrasDroit_74(){
super();
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package zombies_fla
Section 134
//mcTutoBrasGauche_71 (zombies_fla.mcTutoBrasGauche_71)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcTutoBrasGauche_71 extends MovieClip {
public function mcTutoBrasGauche_71(){
super();
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package zombies_fla
Section 135
//mctutoHead_75 (zombies_fla.mctutoHead_75)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mctutoHead_75 extends MovieClip {
public function mctutoHead_75(){
super();
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package zombies_fla
Section 136
//mcVampire_53 (zombies_fla.mcVampire_53)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcVampire_53 extends MovieClip {
public var mcProtec:MovieClip;
public var chauv2:MovieClip;
public var chauv3:MovieClip;
public var chauv1:MovieClip;
public function mcVampire_53(){
super();
addFrameScript(31, frame32, 43, frame44, 51, frame52, 82, frame83, 98, frame99, 103, frame104, 169, frame170, 187, frame188, 188, frame189);
}
function frame170(){
trace(" avant endFatality");
this.parent.endFatality();
trace(" apres endFatality");
this.gotoAndStop("dispar");
}
function frame188(){
parent.isDestroyed();
}
function frame104(){
gotoAndPlay("attack");
}
function frame189(){
trace(" vampire disparition frame \"dispar\"");
stop();
}
function frame99(){
trace("tarace?");
this.parent.AttackSecond();
}
function frame44(){
gotoAndPlay("stand");
}
function frame32(){
parent.lunchBat();
parent.readyToGo();
}
function frame83(){
gotoAndPlay("stand");
}
function frame52(){
if (this.parent.life > 0){
gotoAndPlay("stand");
} else {
this.parent.zombiDeath();
};
}
}
}//package zombies_fla
Section 137
//mcVampireDecompte_57 (zombies_fla.mcVampireDecompte_57)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcVampireDecompte_57 extends MovieClip {
public var timer:Number;
public var mctime:MovieClip;
public function mcVampireDecompte_57(){
super();
addFrameScript(0, frame1, 1, frame2, 18, frame19);
}
function frame1(){
timer = 6;
}
function frame19(){
if (!this.parent.parent.parent.destoyed){
if (this.timer == 0){
stop();
this.parent.parent.parent.AttackSecond();
} else {
this.timer--;
this.gotoAndPlay("decompte");
};
};
}
function frame2(){
this.mctime.timeText.text = this.timer;
}
}
}//package zombies_fla
Section 138
//mcVampireDecompteGrfk_58 (zombies_fla.mcVampireDecompteGrfk_58)
package zombies_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mcVampireDecompteGrfk_58 extends MovieClip {
public var timeText:TextField;
public function mcVampireDecompteGrfk_58(){
super();
}
}
}//package zombies_fla
Section 139
//mcVampireProtection_54 (zombies_fla.mcVampireProtection_54)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcVampireProtection_54 extends MovieClip {
public var mcVampireDecompte:MovieClip;
public function mcVampireProtection_54(){
super();
addFrameScript(0, frame1, 7, frame8, 11, frame12);
}
function frame12(){
gotoAndStop("hide");
}
function frame1(){
stop();
}
function frame8(){
gotoAndStop("hide");
}
}
}//package zombies_fla
Section 140
//mcYouLose_312 (zombies_fla.mcYouLose_312)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcYouLose_312 extends MovieClip {
public function mcYouLose_312(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package zombies_fla
Section 141
//mcZombieCredit_116 (zombies_fla.mcZombieCredit_116)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcZombieCredit_116 extends MovieClip {
public var corps:MovieClip;
public var brasD:MovieClip;
public var bras:MovieClip;
public var tete:MovieClip;
public function mcZombieCredit_116(){
super();
addFrameScript(0, frame1, 8, frame9, 9, frame10, 17, frame18);
}
function frame10(){
this.tete.gotoAndStop("xPlod");
}
function frame18(){
this.gotoAndPlay("bim");
}
function frame1(){
this.bras.gotoAndStop("nrml");
this.brasD.gotoAndStop("nrml");
this.corps.gotoAndStop("nrml");
this.tete.gotoAndStop("nrml");
}
function frame9(){
this.gotoAndPlay("marche");
}
}
}//package zombies_fla
Section 142
//mcZombieFat_9 (zombies_fla.mcZombieFat_9)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcZombieFat_9 extends MovieClip {
public var corps:MovieClip;
public var brasD:MovieClip;
public var bras:MovieClip;
public var tete:MovieClip;
public function mcZombieFat_9(){
super();
addFrameScript(8, frame9, 74, frame75, 85, frame86, 104, frame105, 126, frame127, 127, frame128);
}
function frame75(){
this.parent.endFatality();
this.gotoAndStop("dispar");
}
function frame86(){
this.parent.endHit();
this.gotoAndPlay("marcheZombiesFat");
}
function frame105(){
this.parent.isDestroyed();
stop();
}
function frame9(){
this.gotoAndPlay("marcheZombiesFat");
}
function frame127(){
this.parent.isDestroyed();
}
function frame128(){
stop();
}
}
}//package zombies_fla
Section 143
//mcZombieMaigre_19 (zombies_fla.mcZombieMaigre_19)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcZombieMaigre_19 extends MovieClip {
public var corps:MovieClip;
public var brasD:MovieClip;
public var bras:MovieClip;
public var tete:MovieClip;
public function mcZombieMaigre_19(){
super();
addFrameScript(9, frame10, 19, frame20, 86, frame87, 122, frame123, 152, frame153, 153, frame154);
}
function frame154(){
stop();
}
function frame87(){
this.parent.endFatality();
this.gotoAndStop("dispar");
}
function frame153(){
this.parent.isDestroyed();
stop();
}
function frame10(){
this.gotoAndPlay("marcheZombiesLittle");
}
function frame20(){
this.gotoAndPlay("marcheZombiesLittle");
}
function frame123(){
this.parent.isDestroyed();
this.gotoAndStop("dispar");
}
}
}//package zombies_fla
Section 144
//mcZombieNuts_103 (zombies_fla.mcZombieNuts_103)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mcZombieNuts_103 extends MovieClip {
public var corps:MovieClip;
public var brasD:MovieClip;
public var bras:MovieClip;
public var tete:MovieClip;
public function mcZombieNuts_103(){
super();
addFrameScript(11, frame12, 28, frame29, 58, frame59, 82, frame83, 103, frame104, 104, frame105);
}
function frame12(){
this.gotoAndPlay("marcheZombieNuts");
}
function frame105(){
stop();
}
function frame104(){
this.parent.isDestroyed();
stop();
}
function frame29(){
this.gotoAndPlay("marcheZombieNuts");
}
function frame83(){
this.parent.isDestroyed();
this.gotoAndStop("dispar");
}
function frame59(){
this.parent.endFatality();
this.gotoAndStop("dispar");
}
}
}//package zombies_fla
Section 145
//panStoryMode_270 (zombies_fla.panStoryMode_270)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class panStoryMode_270 extends MovieClip {
public function panStoryMode_270(){
super();
addFrameScript(0, frame1, 150, frame151, 206, frame207);
}
function frame151(){
stop();
}
function frame207(){
stop();
}
function frame1(){
stop();
}
}
}//package zombies_fla
Section 146
//soundsLoader_6 (zombies_fla.soundsLoader_6)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class soundsLoader_6 extends MovieClip {
public function soundsLoader_6(){
super();
addFrameScript(0, frame1, 2, frame3, 4, frame5, 6, frame7);
}
function frame3(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame5(){
stop();
}
}
}//package zombies_fla
Section 147
//tetebarry_94 (zombies_fla.tetebarry_94)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class tetebarry_94 extends MovieClip {
public var elmt1:MovieClip;
public var elmt2:MovieClip;
public var elmt3:MovieClip;
public function tetebarry_94(){
super();
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package zombies_fla
Section 148
//teteeclatagegarou_51 (zombies_fla.teteeclatagegarou_51)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class teteeclatagegarou_51 extends MovieClip {
public function teteeclatagegarou_51(){
super();
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
stop();
}
function frame1(){
if (this.parent.parent.armDestroyed){
this.gotoAndStop("destroyed");
};
stop();
}
}
}//package zombies_fla
Section 149
//teteElmt_1_95 (zombies_fla.teteElmt_1_95)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class teteElmt_1_95 extends MovieClip {
public function teteElmt_1_95(){
super();
addFrameScript(1, frame2, 3, frame4);
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package zombies_fla
Section 150
//teteElmt_2_97 (zombies_fla.teteElmt_2_97)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class teteElmt_2_97 extends MovieClip {
public function teteElmt_2_97(){
super();
addFrameScript(1, frame2, 3, frame4);
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package zombies_fla
Section 151
//teteElmt_3_99 (zombies_fla.teteElmt_3_99)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class teteElmt_3_99 extends MovieClip {
public function teteElmt_3_99(){
super();
addFrameScript(1, frame2, 3, frame4);
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package zombies_fla
Section 152
//tetegarou_47 (zombies_fla.tetegarou_47)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class tetegarou_47 extends MovieClip {
public function tetegarou_47(){
super();
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package zombies_fla
Section 153
//zoomMedals_172 (zombies_fla.zoomMedals_172)
package zombies_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.geom.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.ui.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class zoomMedals_172 extends MovieClip {
public var mcCouvercleEcrin:MovieClip;
public var med1:MovieClip;
public var med2:MovieClip;
public var med4:MovieClip;
public var med5:MovieClip;
public var med3:MovieClip;
public var med6:MovieClip;
public function zoomMedals_172(){
super();
addFrameScript(3, frame4);
}
function frame4(){
stop();
}
}
}//package zombies_fla
Section 154
//MochiAd (MochiAd)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
public class MochiAd {
public function MochiAd(){
super();
}
public static function getVersion():String{
return ("2.6");
}
public static function showClickAwayAd(options:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_timeout:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var sendHostProgress:Boolean;
var options = options;
DEFAULTS = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{
}, ad_finished:function ():void{
}, ad_loaded:function (width:Number, height:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.rpc = function (callbackID:Number, arg:Object):void{
MochiAd.rpc(clip, callbackID, arg);
};
sendHostProgress = false;
mc.regContLC = function (lc_name:String):void{
mc._containerLCName = lc_name;
};
chk["onEnterFrame"] = function ():void{
var ad_clip:Object;
var elapsed:Number;
var finished:Boolean;
var total:Number;
if (!this.parent){
delete this.onEnterFrame;
return;
};
ad_clip = this.parent._mochiad_ctr;
elapsed = (getTimer() - this.started);
finished = false;
if (!chk.showing){
total = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (total > 0){
chk.showing = true;
finished = true;
chk.started = getTimer();
} else {
if (elapsed > chk.ad_timeout){
options.ad_failed();
finished = true;
};
};
};
if (this.root == null){
finished = true;
};
if (finished){
delete this.onEnterFrame;
};
};
doOnEnterFrame(chk);
}
public static function _isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function _allowDomains(server:String):String{
var hostname:String;
hostname = server.split("/")[2].split(":")[0];
Security.allowDomain("*");
Security.allowDomain(hostname);
Security.allowInsecureDomain("*");
Security.allowInsecureDomain(hostname);
return (hostname);
}
public static function unload(clip:Object):Boolean{
if (((clip.clip) && (clip.clip._mochiad))){
clip = clip.clip;
};
if (clip.origFrameRate != undefined){
clip.stage.frameRate = clip.origFrameRate;
};
if (!clip._mochiad){
return (false);
};
if (clip._mochiad._containerLCName != undefined){
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
};
if (clip._mochiad.onUnload){
clip._mochiad.onUnload();
};
delete clip._mochiad_loaded;
delete clip._mochiad;
return (true);
}
public static function showInterLevelAd(options:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var options = options;
DEFAULTS = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.gotoAndStop("logoPicto");
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (width:Number, height:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var p:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
p = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (p > 0){
this.parent.alpha = (p * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (msec:Number):void{
var _chk:Object;
_chk = mc._mochiad_wait;
_chk.server_control = true;
_chk.showing = true;
_chk.started = getTimer();
_chk.ad_msec = (msec - 250);
};
mc.rpc = function (callbackID:Number, arg:Object):void{
MochiAd.rpc(clip, callbackID, arg);
};
chk["onEnterFrame"] = function ():void{
var ad_clip:Object;
var elapsed:Number;
var finished:Boolean;
var total:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
ad_clip = this.parent._mochiad_ctr;
elapsed = (getTimer() - this.started);
finished = false;
if (!chk.showing){
total = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (total > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if (elapsed > chk.ad_timeout){
options.ad_failed();
finished = true;
};
};
};
if (elapsed > chk.ad_msec){
finished = true;
};
if (finished){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function _parseOptions(options:Object, defaults:Object):Object{
var optcopy:Object;
var k:String;
var pairs:Array;
var i:Number;
var kv:Array;
optcopy = {};
for (k in defaults) {
optcopy[k] = defaults[k];
};
if (options){
for (k in options) {
optcopy[k] = options[k];
};
};
if (optcopy.clip == undefined){
throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite."));
};
options = optcopy.clip.loaderInfo.parameters.mochiad_options;
if (options){
pairs = options.split("&");
i = 0;
while (i < pairs.length) {
kv = pairs[i].split("=");
optcopy[unescape(kv[0])] = unescape(kv[1]);
i++;
};
};
if (optcopy.id == "test"){
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
};
return (optcopy);
}
public static function _cleanup(mc:Object):void{
var idx:Number;
var k:String;
var lc:LocalConnection;
var f:Function;
var mc = mc;
if (("lc" in mc)){
lc = mc.lc;
f = function ():void{
lc.client = null;
lc.close();
//unresolved jump
var _slot1 = e;
};
setTimeout(f, 0);
};
idx = DisplayObjectContainer(mc).numChildren;
while (idx > 0) {
idx = (idx - 1);
DisplayObjectContainer(mc).removeChildAt(idx);
};
for (k in mc) {
delete mc[k];
};
}
public static function load(options:Object):MovieClip{
var DEFAULTS:Object;
var clip:Object;
var depth:Number;
var mc:MovieClip;
var wh:Array;
var lv:URLVariables;
var k:String;
var server:String;
var hostname:String;
var lc:LocalConnection;
var name:String;
var loader:Loader;
var g:Function;
var req:URLRequest;
var v:Object;
var options = options;
DEFAULTS = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = MochiAd._parseOptions(options, DEFAULTS);
options.swfv = 9;
options.mav = MochiAd.getVersion();
clip = options.clip;
if (!MochiAd._isNetworkAvailable()){
return (null);
};
if (clip._mochiad_loaded){
return (null);
};
//unresolved jump
var _slot1 = e;
throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
depth = options.depth;
delete options.depth;
mc = createEmptyMovieClip(clip, "_mochiad", depth);
wh = MochiAd._getRes(options, clip);
options.res = ((wh[0] + "x") + wh[1]);
options.server = (options.server + options.id);
delete options.id;
clip._mochiad_loaded = true;
if (clip.loaderInfo.loaderURL.indexOf("http") == 0){
options.as3_swf = clip.loaderInfo.loaderURL;
};
lv = new URLVariables();
for (k in options) {
v = options[k];
if (!(v is Function)){
lv[k] = v;
};
};
server = lv.server;
delete lv.server;
hostname = _allowDomains(server);
lc = new LocalConnection();
lc.client = mc;
name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_");
lc.allowDomain("*", "localhost");
lc.allowInsecureDomain("*", "localhost");
lc.connect(name);
mc.lc = lc;
mc.lcName = name;
lv.lc = name;
lv.st = getTimer();
loader = new Loader();
g = function (ev:Object):void{
ev.target.removeEventListener(ev.type, arguments.callee);
MochiAd.unload(clip);
};
loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g);
req = new URLRequest((server + ".swf"));
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader.load(req);
mc.addChild(loader);
mc._mochiad_ctr = loader;
return (mc);
}
public static function runMethod(base:Object, methodName:String, argsArray:Array):Object{
var nameArray:Array;
var i:Number;
nameArray = methodName.split(".");
i = 0;
while (i < (nameArray.length - 1)) {
if ((((base[nameArray[i]] == undefined)) || ((base[nameArray[i]] == null)))){
return (undefined);
};
base = base[nameArray[i]];
i++;
};
if (typeof(base[nameArray[i]]) == "function"){
return (base[nameArray[i]].apply(base, argsArray));
};
return (undefined);
}
public static function createEmptyMovieClip(parent:Object, name:String, depth:Number):MovieClip{
var mc:MovieClip;
mc = new MovieClip();
if (((false) && (depth))){
parent.addChildAt(mc, depth);
} else {
parent.addChild(mc);
};
parent[name] = mc;
mc["_name"] = name;
return (mc);
}
public static function _getRes(options:Object, clip:Object):Array{
var b:Object;
var w:Number;
var h:Number;
var xy:Array;
b = clip.getBounds(clip.root);
w = 0;
h = 0;
if (typeof(options.res) != "undefined"){
xy = options.res.split("x");
w = parseFloat(xy[0]);
h = parseFloat(xy[1]);
} else {
w = (b.xMax - b.xMin);
h = (b.yMax - b.yMin);
};
if ((((w == 0)) || ((h == 0)))){
w = clip.stage.stageWidth;
h = clip.stage.stageHeight;
};
return ([w, h]);
}
public static function adShowing(mc:Object):void{
mc.origFrameRate = mc.stage.frameRate;
mc.stage.frameRate = 30;
}
public static function getValue(base:Object, objectName:String):Object{
var nameArray:Array;
var i:Number;
nameArray = objectName.split(".");
i = 0;
while (i < (nameArray.length - 1)) {
if ((((base[nameArray[i]] == undefined)) || ((base[nameArray[i]] == null)))){
return (undefined);
};
base = base[nameArray[i]];
i++;
};
return (base[nameArray[i]]);
}
public static function rpc(clip:Object, callbackID:Number, arg:Object):void{
var _local4:Object;
var _local5:Object;
switch (arg.id){
case "setValue":
MochiAd.setValue(clip, arg.objectName, arg.value);
break;
case "getValue":
_local4 = MochiAd.getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod":
_local5 = MochiAd.runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local5);
break;
default:
trace(("[mochiads rpc] unknown rpc id: " + arg.id));
};
}
public static function setValue(base:Object, objectName:String, value:Object):void{
var nameArray:Array;
var i:Number;
nameArray = objectName.split(".");
i = 0;
while (i < (nameArray.length - 1)) {
if ((((base[nameArray[i]] == undefined)) || ((base[nameArray[i]] == null)))){
return;
};
base = base[nameArray[i]];
i++;
};
base[nameArray[i]] = value;
}
public static function showPreGameAd(options:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var bar:MovieClip;
var bar_color:Number;
var bar_background:Number;
var bar_outline:Number;
var backing_mc:MovieClip;
var backing:Object;
var inside_mc:MovieClip;
var inside:Object;
var outline_mc:MovieClip;
var outline:Object;
var complete:Boolean;
var unloaded:Boolean;
var f:Function;
var sendHostProgress:Boolean;
var fn:Function;
var r:MovieClip;
var options = options;
DEFAULTS = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.gotoAndStop("logoPicto");
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (width:Number, height:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}, ad_progress:function (percent:Number):void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){
options.ad_started();
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
return;
};
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
var fn:Function;
MochiAd._cleanup(mc);
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.x = (w * -0.5);
chk.y = (h * -0.5);
bar = createEmptyMovieClip(chk, "_mochiad_bar", 4);
if (options.no_progress_bar){
bar.visible = false;
delete options.no_progress_bar;
} else {
bar.x = 10;
bar.y = (h - 20);
};
bar_color = options.color;
delete options.color;
bar_background = options.background;
delete options.background;
bar_outline = options.outline;
delete options.outline;
backing_mc = createEmptyMovieClip(bar, "_outline", 1);
backing = backing_mc.graphics;
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo((w - 20), 0);
backing.lineTo((w - 20), 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
inside_mc = createEmptyMovieClip(bar, "_inside", 2);
inside = inside_mc.graphics;
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo((w - 20), 0);
inside.lineTo((w - 20), 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside_mc.scaleX = 0;
outline_mc = createEmptyMovieClip(bar, "_outline", 3);
outline = outline_mc.graphics;
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo((w - 20), 0);
outline.lineTo((w - 20), 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var p:Number;
p = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (p > 0){
this.parent.alpha = (p * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
complete = false;
unloaded = false;
f = function (ev:Event):void{
ev.target.removeEventListener(ev.type, arguments.callee);
complete = true;
if (unloaded){
MochiAd.unload(clip);
};
};
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
if ((clip.root is MovieClip)){
r = (clip.root as MovieClip);
if (r.framesLoaded >= r.totalFrames){
complete = true;
};
};
mc.unloadAd = function ():void{
unloaded = true;
if (complete){
MochiAd.unload(clip);
};
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (msec:Number):void{
var _chk:Object;
_chk = mc._mochiad_wait;
_chk.server_control = true;
_chk.showing = true;
_chk.started = getTimer();
_chk.ad_msec = msec;
};
mc.rpc = function (callbackID:Number, arg:Object):void{
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s:String):Object{
trace(("[MOCHIAD rpcTestFn] " + s));
return (s);
};
mc.regContLC = function (lc_name:String):void{
mc._containerLCName = lc_name;
};
sendHostProgress = false;
mc.sendHostLoadProgress = function (lc_name:String):void{
sendHostProgress = true;
};
chk["onEnterFrame"] = function ():void{
var _clip:Object;
var ad_clip:Object;
var elapsed:Number;
var finished:Boolean;
var clip_total:Number;
var clip_loaded:Number;
var clip_pcnt:Number;
var ad_pcnt:Number;
var _inside:Object;
var pcnt:Number;
var total:Number;
if (((!(this.parent)) || (!(this.parent.parent)))){
delete this["onEnterFrame"];
return;
};
_clip = this.parent.parent.root;
ad_clip = this.parent._mochiad_ctr;
elapsed = (getTimer() - this.started);
finished = false;
clip_total = _clip.loaderInfo.bytesTotal;
clip_loaded = _clip.loaderInfo.bytesLoaded;
if (complete){
clip_loaded = Math.max(1, clip_loaded);
clip_total = clip_loaded;
};
clip_pcnt = ((100 * clip_loaded) / clip_total);
ad_pcnt = ((100 * elapsed) / chk.ad_msec);
_inside = this._mochiad_bar._inside;
pcnt = Math.min(100, Math.min(((clip_pcnt) || (0)), ad_pcnt));
pcnt = Math.max(this.last_pcnt, pcnt);
this.last_pcnt = pcnt;
_inside.scaleX = (pcnt * 0.01);
options.ad_progress(pcnt);
if (sendHostProgress){
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:clip_pcnt});
if (clip_pcnt == 100){
sendHostProgress = false;
};
};
if (!chk.showing){
total = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (total > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if ((((elapsed > chk.ad_timeout)) && ((clip_pcnt == 100)))){
options.ad_failed();
finished = true;
};
};
};
if (elapsed > chk.ad_msec){
finished = true;
};
if (((complete) && (finished))){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function showPreloaderAd(options:Object):void{
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
MochiAd.showPreGameAd(options);
}
public static function showTimedAd(options:Object):void{
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
MochiAd.showInterLevelAd(options);
}
public static function doOnEnterFrame(mc:MovieClip):void{
var f:Function;
var mc = mc;
f = function (ev:Object):void{
if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){
mc.onEnterFrame();
} else {
ev.target.removeEventListener(ev.type, arguments.callee);
};
};
mc.addEventListener(Event.ENTER_FRAME, f);
}
}
}//package
Section 155
//SoundBackGround (SoundBackGround)
package {
import flash.media.*;
public dynamic class SoundBackGround extends Sound {
public function SoundBackGround(){
super();
}
}
}//package
Section 156
//SoundBGround (SoundBGround)
package {
import flash.media.*;
public dynamic class SoundBGround extends Sound {
public function SoundBGround(){
super();
}
}
}//package
Section 157
//SoundBGround2 (SoundBGround2)
package {
import flash.media.*;
public dynamic class SoundBGround2 extends Sound {
public function SoundBGround2(){
super();
}
}
}//package
Section 158
//SoundBGroundEnd (SoundBGroundEnd)
package {
import flash.media.*;
public dynamic class SoundBGroundEnd extends Sound {
public function SoundBGroundEnd(){
super();
}
}
}//package
Section 159
//SoundBigBearAgonie (SoundBigBearAgonie)
package {
import flash.media.*;
public dynamic class SoundBigBearAgonie extends Sound {
public function SoundBigBearAgonie(){
super();
}
}
}//package
Section 160
//SoundFatalityArmor (SoundFatalityArmor)
package {
import flash.media.*;
public dynamic class SoundFatalityArmor extends Sound {
public function SoundFatalityArmor(){
super();
}
}
}//package
Section 161
//SoundFatalityBat (SoundFatalityBat)
package {
import flash.media.*;
public dynamic class SoundFatalityBat extends Sound {
public function SoundFatalityBat(){
super();
}
}
}//package
Section 162
//SoundFatalityBigBear (SoundFatalityBigBear)
package {
import flash.media.*;
public dynamic class SoundFatalityBigBear extends Sound {
public function SoundFatalityBigBear(){
super();
}
}
}//package
Section 163
//SoundFatalityLycan (SoundFatalityLycan)
package {
import flash.media.*;
public dynamic class SoundFatalityLycan extends Sound {
public function SoundFatalityLycan(){
super();
}
}
}//package
Section 164
//SoundFatalityVampire_bloodSucker (SoundFatalityVampire_bloodSucker)
package {
import flash.media.*;
public dynamic class SoundFatalityVampire_bloodSucker extends Sound {
public function SoundFatalityVampire_bloodSucker(){
super();
}
}
}//package
Section 165
//SoundFatalityVampire_deplacement (SoundFatalityVampire_deplacement)
package {
import flash.media.*;
public dynamic class SoundFatalityVampire_deplacement extends Sound {
public function SoundFatalityVampire_deplacement(){
super();
}
}
}//package
Section 166
//SoundFatalityZombieFat (SoundFatalityZombieFat)
package {
import flash.media.*;
public dynamic class SoundFatalityZombieFat extends Sound {
public function SoundFatalityZombieFat(){
super();
}
}
}//package
Section 167
//SoundFatalityZombieLittle (SoundFatalityZombieLittle)
package {
import flash.media.*;
public dynamic class SoundFatalityZombieLittle extends Sound {
public function SoundFatalityZombieLittle(){
super();
}
}
}//package
Section 168
//SoundGunReload (SoundGunReload)
package {
import flash.media.*;
public dynamic class SoundGunReload extends Sound {
public function SoundGunReload(){
super();
}
}
}//package
Section 169
//SoundGunShoot (SoundGunShoot)
package {
import flash.media.*;
public dynamic class SoundGunShoot extends Sound {
public function SoundGunShoot(){
super();
}
}
}//package
Section 170
//SoundHelico_ext (SoundHelico_ext)
package {
import flash.media.*;
public dynamic class SoundHelico_ext extends Sound {
public function SoundHelico_ext(){
super();
}
}
}//package
Section 171
//SoundHelico_int (SoundHelico_int)
package {
import flash.media.*;
public dynamic class SoundHelico_int extends Sound {
public function SoundHelico_int(){
super();
}
}
}//package
Section 172
//SoundHit1 (SoundHit1)
package {
import flash.media.*;
public dynamic class SoundHit1 extends Sound {
public function SoundHit1(){
super();
}
}
}//package
Section 173
//SoundHit2 (SoundHit2)
package {
import flash.media.*;
public dynamic class SoundHit2 extends Sound {
public function SoundHit2(){
super();
}
}
}//package
Section 174
//SoundHit3 (SoundHit3)
package {
import flash.media.*;
public dynamic class SoundHit3 extends Sound {
public function SoundHit3(){
super();
}
}
}//package
Section 175
//SoundHoldWeapons (SoundHoldWeapons)
package {
import flash.media.*;
public dynamic class SoundHoldWeapons extends Sound {
public function SoundHoldWeapons(){
super();
}
}
}//package
Section 176
//SoundRadioMessage (SoundRadioMessage)
package {
import flash.media.*;
public dynamic class SoundRadioMessage extends Sound {
public function SoundRadioMessage(){
super();
}
}
}//package
Section 177
//SoundRadioMessage2 (SoundRadioMessage2)
package {
import flash.media.*;
public dynamic class SoundRadioMessage2 extends Sound {
public function SoundRadioMessage2(){
super();
}
}
}//package
Section 178
//SoundRadioMessage3 (SoundRadioMessage3)
package {
import flash.media.*;
public dynamic class SoundRadioMessage3 extends Sound {
public function SoundRadioMessage3(){
super();
}
}
}//package
Section 179
//SoundRadioSwitch (SoundRadioSwitch)
package {
import flash.media.*;
public dynamic class SoundRadioSwitch extends Sound {
public function SoundRadioSwitch(){
super();
}
}
}//package
Section 180
//SoundShotGunReload (SoundShotGunReload)
package {
import flash.media.*;
public dynamic class SoundShotGunReload extends Sound {
public function SoundShotGunReload(){
super();
}
}
}//package
Section 181
//SoundShotGunReloadEnd (SoundShotGunReloadEnd)
package {
import flash.media.*;
public dynamic class SoundShotGunReloadEnd extends Sound {
public function SoundShotGunReloadEnd(){
super();
}
}
}//package
Section 182
//SoundShotGunShoot (SoundShotGunShoot)
package {
import flash.media.*;
public dynamic class SoundShotGunShoot extends Sound {
public function SoundShotGunShoot(){
super();
}
}
}//package
Section 183
//SoundsInterfaceBell (SoundsInterfaceBell)
package {
import flash.media.*;
public dynamic class SoundsInterfaceBell extends Sound {
public function SoundsInterfaceBell(){
super();
}
}
}//package
Section 184
//SoundsInterfaceEnterLevel (SoundsInterfaceEnterLevel)
package {
import flash.media.*;
public dynamic class SoundsInterfaceEnterLevel extends Sound {
public function SoundsInterfaceEnterLevel(){
super();
}
}
}//package
Section 185
//SoundsInterfaceIntroSOund (SoundsInterfaceIntroSOund)
package {
import flash.media.*;
public dynamic class SoundsInterfaceIntroSOund extends Sound {
public function SoundsInterfaceIntroSOund(){
super();
}
}
}//package
Section 186
//SoundUziReload (SoundUziReload)
package {
import flash.media.*;
public dynamic class SoundUziReload extends Sound {
public function SoundUziReload(){
super();
}
}
}//package
Section 187
//SoundUziShoot (SoundUziShoot)
package {
import flash.media.*;
public dynamic class SoundUziShoot extends Sound {
public function SoundUziShoot(){
super();
}
}
}//package
Section 188
//SoundWarningTuto (SoundWarningTuto)
package {
import flash.media.*;
public dynamic class SoundWarningTuto extends Sound {
public function SoundWarningTuto(){
super();
}
}
}//package