Section 1
//AdLoader (CPMStar.AdLoader)
package CPMStar {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.system.*;
public class AdLoader extends Sprite {
private var cpmstarLoader:Loader;
private var contentspotid:String;
public function AdLoader(_arg1:String){
this.contentspotid = _arg1;
addEventListener(Event.ADDED, addedHandler);
}
private function dispatchHandler(_arg1:Event):void{
dispatchEvent(_arg1);
}
private function addedHandler(_arg1:Event):void{
removeEventListener(Event.ADDED, addedHandler);
Security.allowDomain("server.cpmstar.com");
var _local2 = "http://server.cpmstar.com/adviewas3.swf";
var _local3:DisplayObjectContainer = parent;
cpmstarLoader = new Loader();
cpmstarLoader.contentLoaderInfo.addEventListener(Event.INIT, dispatchHandler);
cpmstarLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dispatchHandler);
cpmstarLoader.load(new URLRequest(((_local2 + "?contentspotid=") + contentspotid)));
addChild(cpmstarLoader);
}
}
}//package CPMStar
Section 2
//abBombButt (main.abBombButt)
package main {
import flash.display.*;
public dynamic class abBombButt extends SimpleButton {
}
}//package main
Section 3
//abFreshButt (main.abFreshButt)
package main {
import flash.display.*;
public dynamic class abFreshButt extends SimpleButton {
}
}//package main
Section 4
//abHealthButt (main.abHealthButt)
package main {
import flash.display.*;
public dynamic class abHealthButt extends SimpleButton {
}
}//package main
Section 5
//abMessageEnemy (main.abMessageEnemy)
package main {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
public dynamic class abMessageEnemy extends alphaFader {
var timerDelay:Timer;
public var zoomedIn;// = true
public var abPic:MovieClip;
public var abName:TextField;
public function abMessageEnemy(){
timerDelay = new Timer(1000, 1);
timerDelay.stop();
timerDelay.addEventListener(TimerEvent.TIMER, timerDelay_Timer);
addEventListener(Event.ENTER_FRAME, Update);
}
public function Update(_arg1:Event):void{
if (zoomedIn){
scaleX = ageMath.RemapVal(alpha, 0, 1, 3, 1);
scaleY = ageMath.RemapVal(alpha, 0, 1, 3, 1);
if ((((Math.abs((scaleX - 1)) < 0.0001)) && (!(timerDelay.running)))){
timerDelay.start();
};
} else {
scaleX = ageMath.RemapVal(alpha, 0, 1, 1, 3);
scaleY = ageMath.RemapVal(alpha, 0, 1, 1, 3);
};
}
function timerDelay_Timer(_arg1:TimerEvent):void{
stop();
startFadeOut();
}
}
}//package main
Section 6
//abMessagePlayer (main.abMessagePlayer)
package main {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
public dynamic class abMessagePlayer extends alphaFader {
var timerDelay:Timer;
public var zoomedIn;// = true
public var abPic:MovieClip;
public var abName:TextField;
public function abMessagePlayer(){
timerDelay = new Timer(1000, 1);
timerDelay.stop();
timerDelay.addEventListener(TimerEvent.TIMER, timerDelay_Timer);
addEventListener(Event.ENTER_FRAME, Update);
}
public function Update(_arg1:Event):void{
if (zoomedIn){
scaleX = ageMath.RemapVal(alpha, 0, 1, 3, 1);
scaleY = ageMath.RemapVal(alpha, 0, 1, 3, 1);
if ((((Math.abs((scaleX - 1)) < 0.0001)) && (!(timerDelay.running)))){
timerDelay.start();
};
} else {
scaleX = ageMath.RemapVal(alpha, 0, 1, 1, 3);
scaleY = ageMath.RemapVal(alpha, 0, 1, 1, 3);
};
}
function timerDelay_Timer(_arg1:TimerEvent):void{
stop();
startFadeOut();
}
}
}//package main
Section 7
//abRevButt (main.abRevButt)
package main {
import flash.display.*;
public dynamic class abRevButt extends SimpleButton {
}
}//package main
Section 8
//abShieldButt (main.abShieldButt)
package main {
import flash.display.*;
public dynamic class abShieldButt extends SimpleButton {
}
}//package main
Section 9
//abStat (main.abStat)
package main {
public dynamic class abStat {
var upg_level:int;// = 0
var cost:int;// = 15
public function abStat(_arg1:int=0, _arg2:int=0){
upg_level = _arg1;
cost = _arg2;
}
public function clone():abStat{
var _local1:abStat = new abStat(upg_level, cost);
return (_local1);
}
}
}//package main
Section 10
//abViewButt (main.abViewButt)
package main {
import flash.display.*;
public dynamic class abViewButt extends SimpleButton {
}
}//package main
Section 11
//ach (main.ach)
package main {
public class ach {
public static var arr:Array = new Array();
public static var achInfoMC:achInfo;
public static var db:Object = new Object();
public static function init(_arg1:achInfo){
achInfoMC = _arg1;
db["Damage"] = new achItem("Huge damage", "Find a path 8 blocks length.");
arr.push(db["Damage"]);
db["money1"] = new achItem("Thrifty", "Earn 100cr.");
arr.push(db["money1"]);
db["money2"] = new achItem("Parsimonious", "Earn 300cr.");
arr.push(db["money2"]);
db["sponsor"] = new achItem("Promotion", "Visit sponsor site.");
arr.push(db["sponsor"]);
db["upgrade1"] = new achItem("Prepared", "Get all spells.");
arr.push(db["upgrade1"]);
db["upgrade2"] = new achItem("Fully equipped", "Get all upgrades.");
arr.push(db["upgrade2"]);
db["fullHealth"] = new achItem("Survivable", "Upgrade your health to the maximum.");
arr.push(db["fullHealth"]);
db["shieldAb"] = new achItem("Cautious", "Use 'Shield' spell four times during the battle.");
arr.push(db["shieldAb"]);
db["healthAb"] = new achItem("Healer", "Use 'Health' spell four times during the battle.");
arr.push(db["healthAb"]);
db["dropAb"] = new achItem("Mad drop", "Use 'Drop' spell four times during the battle.");
arr.push(db["dropAb"]);
db["lev1"] = new achItem("Beginner", "Complete the first level.");
arr.push(db["lev1"]);
db["lev7"] = new achItem("Halfway", "Complete the seventh level.");
arr.push(db["lev7"]);
db["lev15"] = new achItem("Wizard Lord", "Complete the game.");
arr.push(db["lev15"]);
db["flawVic"] = new achItem("Great victory", "Complete the last level less than 40 moves.");
arr.push(db["flawVic"]);
}
public static function initAch(){
var _local1:Cookie = new Cookie("wizPuzzleGame_Save");
_local1.putNoFlush("Damage", 0);
_local1.putNoFlush("money1", 0);
_local1.putNoFlush("money2", 0);
_local1.putNoFlush("sponsor", 0);
_local1.putNoFlush("upgrade1", 0);
_local1.putNoFlush("upgrade2", 0);
_local1.putNoFlush("fullHealth", 0);
_local1.putNoFlush("shieldAb", 0);
_local1.putNoFlush("healthAb", 0);
_local1.putNoFlush("dropAb", 0);
_local1.putNoFlush("lev1", 0);
_local1.putNoFlush("lev7", 0);
_local1.putNoFlush("lev15", 0);
_local1.putNoFlush("flawVic", 0);
_local1.flushData();
loadAch();
}
public static function loadAch(){
var _local1:Cookie = new Cookie("wizPuzzleGame_Save");
db["Damage"].active = Boolean(_local1.get("Damage"));
db["money1"].active = Boolean(_local1.get("money1"));
db["money2"].active = Boolean(_local1.get("money2"));
db["sponsor"].active = Boolean(_local1.get("sponsor"));
db["upgrade1"].active = Boolean(_local1.get("upgrade1"));
db["upgrade2"].active = Boolean(_local1.get("upgrade2"));
db["fullHealth"].active = Boolean(_local1.get("fullHealth"));
db["shieldAb"].active = Boolean(_local1.get("shieldAb"));
db["healthAb"].active = Boolean(_local1.get("healthAb"));
db["dropAb"].active = Boolean(_local1.get("dropAb"));
db["lev1"].active = Boolean(_local1.get("lev1"));
db["lev7"].active = Boolean(_local1.get("lev7"));
db["lev15"].active = Boolean(_local1.get("lev115"));
db["flawVic"].active = Boolean(_local1.get("flawVic"));
}
public static function getAch(_arg1:String){
var _local2:Cookie;
if (!db[_arg1].active){
db[_arg1].active = true;
achInfoMC.showAch(ach.db[_arg1]);
mainClass(achInfoMC.root).allmc.inGame.sndmap.PlaySnd("snd_ach");
_local2 = new Cookie("wizPuzzleGame_Save");
_local2.put(_arg1, 1);
return (true);
};
return (false);
}
}
}//package main
Section 12
//achInfo (main.achInfo)
package main {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class achInfo extends alphaFader {
public var removeTimer:Timer;
public var achObj:MovieClip;
public function achInfo(){
removeTimer = new Timer(4000, 1);
removeTimer.stop();
removeTimer.addEventListener(TimerEvent.TIMER, removeTimer_Timer);
}
function showAch(_arg1:achItem):void{
achObj.achYes.visible = true;
achObj.achNo.visible = false;
achObj.titleTxt.text = _arg1.title;
achObj.descTxt.text = _arg1.desc;
removeTimer.start();
startFadeIn();
}
function removeTimer_Timer(_arg1:TimerEvent):void{
startFadeOut();
}
}
}//package main
Section 13
//achItem (main.achItem)
package main {
public class achItem {
public var desc:String;
public var active:Boolean;
public var title:String;
public function achItem(_arg1:String, _arg2:String){
title = _arg1;
desc = _arg2;
active = false;
}
}
}//package main
Section 14
//achPanel (main.achPanel)
package main {
import flash.filters.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import fl.motion.*;
public dynamic class achPanel extends MovieClip {
public var moveToScr:Boolean;
public var buttClose:SimpleButton;
public var ach12:MovieClip;
public var ach13:MovieClip;
public var ach0:MovieClip;
public var ach1:MovieClip;
public var ach2:MovieClip;
public var ach11:MovieClip;
public var ach4:MovieClip;
public var ach5:MovieClip;
public var ach6:MovieClip;
public var ach7:MovieClip;
public var ach8:MovieClip;
public var ach9:MovieClip;
public var ach10:MovieClip;
public var ach3:MovieClip;
public var cashTxt:TextField;
public function achPanel(){
y = (240 - (height * 0.5));
addEventListener(Event.ENTER_FRAME, Update);
}
public function init():void{
var _local1:int;
var _local2:Array;
var _local3:ColorMatrix = new ColorMatrix();
var _local4:ColorMatrix = new ColorMatrix();
_local3.reset();
_local3.adjustSaturation(0);
_local4.reset();
var _local5:int;
_local1 = 0;
while (_local1 < 14) {
_local2 = this[("ach" + _local1)].filters;
this[("ach" + _local1)].titleTxt.text = ach.arr[_local1].title;
this[("ach" + _local1)].descTxt.text = ach.arr[_local1].desc;
if (ach.arr[_local1].active){
this[("ach" + _local1)].achYes.visible = true;
this[("ach" + _local1)].achNo.visible = false;
this[("ach" + _local1)].alpha = 1;
_local2[1] = new ColorMatrixFilter(_local4.matrix);
_local5++;
} else {
this[("ach" + _local1)].achYes.visible = false;
this[("ach" + _local1)].achNo.visible = true;
this[("ach" + _local1)].alpha = 0.7;
_local2[1] = new ColorMatrixFilter(_local3.matrix);
};
cashTxt.text = (("Unlocked " + _local5) + "/14");
this[("ach" + _local1)].filters = _local2;
_local1++;
};
}
public function Update(_arg1:Event):void{
if (moveToScr){
x = ageMath.Lerp(x, (320 - (width * 0.5)), 0.2);
} else {
x = ageMath.Lerp(x, 650, 0.2);
};
}
}
}//package main
Section 15
//ageMath (main.ageMath)
package main {
public dynamic class ageMath {
public static function RemapVal(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Number{
return ((_arg4 + (((_arg5 - _arg4) * (_arg1 - _arg2)) / (_arg3 - _arg2))));
}
public static function Random(_arg1:Number=NaN, _arg2:Number=NaN):Number{
var _local3:Number = _arg1;
var _local4:Number = _arg2;
if (isNaN(_local3)){
throw (new Error("low must be defined"));
};
if (isNaN(_local4)){
throw (new Error("high must be defined"));
};
return ((Math.round((Math.random() * (_local4 - _local3))) + _local3));
}
public static function RandomInt(_arg1:int, _arg2:int):int{
return (Math.round(Random(_arg1, _arg2)));
}
public static function IsLinesCross(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number):Boolean{
var _local9:Number = (((_arg3 - _arg1) * (_arg6 - _arg8)) - ((_arg5 - _arg7) * (_arg4 - _arg2)));
if (_local9 == 0){
return (false);
};
var _local10:Number = (((_arg5 - _arg1) * (_arg6 - _arg8)) - ((_arg5 - _arg7) * (_arg6 - _arg2)));
var _local11:Number = (((_arg3 - _arg1) * (_arg6 - _arg2)) - ((_arg5 - _arg1) * (_arg4 - _arg2)));
var _local12:Number = (_local10 / _local9);
var _local13:Number = (_local11 / _local9);
if ((((((((_local12 >= 0)) && ((_local12 <= 1)))) && ((_local13 >= 0)))) && ((_local13 <= 1)))){
return (true);
};
return (false);
}
public static function Lerp(_arg1:Number, _arg2:Number, _arg3:Number):Number{
return ((_arg1 + (_arg3 * (_arg2 - _arg1))));
}
}
}//package main
Section 16
//AIPoint (main.AIPoint)
package main {
public dynamic class AIPoint {
var picID:int;// = 0
var lx;
var cost:int;// = 0
var ly:int;// = 0
var x;
var y:int;// = 0
public function clone():AIPoint{
var _local1:AIPoint = new AIPoint();
_local1.x = x;
_local1.y = y;
_local1.lx = lx;
_local1.ly = ly;
_local1.cost = cost;
_local1.picID = picID;
return (_local1);
}
}
}//package main
Section 17
//alphaFader (main.alphaFader)
package main {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public dynamic class alphaFader extends MovieClip {
public var hlpNext:SimpleButton;
public var buttCredBack:SimpleButton;
public var fadeMaxLimit:Number;// = 1
public var plw1:MovieClip;
public var plw2:MovieClip;
public var txtPage:TextField;
public var inf:MovieClip;
public var myLogoCred:MovieClip;
public var buttWinBack:SimpleButton;
public var fadeSpeed:Number;// = 0.1
public var myLogoCred2:MovieClip;
public var dontShow:MovieClip;
public var hlpClose:SimpleButton;
public var fadeMinLimit:Number;// = 0
var fadingout:Boolean;// = false
public var hlpPrev:SimpleButton;
public function alphaFader(){
fadingout = false;
addEventListener(Event.ENTER_FRAME, update);
}
public function startFadeIn():void{
alpha = 0;
visible = true;
fadingout = false;
}
public function update(_arg1:Event):void{
if (visible){
if (fadingout){
if (alpha <= fadeMinLimit){
alpha = fadeMinLimit;
visible = false;
fadingout = false;
} else {
alpha = (alpha - fadeSpeed);
};
} else {
if (alpha >= fadeMaxLimit){
alpha = fadeMaxLimit;
} else {
alpha = (alpha + fadeSpeed);
};
};
};
}
public function startFadeOut():void{
alpha = 1;
visible = true;
fadingout = true;
}
}
}//package main
Section 18
//block (main.block)
package main {
import flash.display.*;
public dynamic class block extends alphaFader {
public var blockPic:MovieClip;
public var extraBonus:MovieClip;
}
}//package main
Section 19
//bloodFX (main.bloodFX)
package main {
import flash.display.*;
public dynamic class bloodFX extends MovieClip {
public function bloodFX(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
visible = false;
}
}
}//package main
Section 20
//ColorMatrix (main.ColorMatrix)
package main {
import flash.filters.*;
public class ColorMatrix {
public var matrix:Array;
private var preHue:ColorMatrix;
private var postHue:ColorMatrix;
private var hueInitialized:Boolean;
private static const ONETHIRD:Number = 0.333333333333333;
private static const LUMA_G:Number = 0.71516;
private static const LUMA_B:Number = 0.072169;
private static const LUMA_R2:Number = 0.3086;
private static const LUMA_G2:Number = 0.6094;
private static const LUMA_R:Number = 0.212671;
private static const LUMA_B2:Number = 0.082;
private static const RAD:Number = (Math.PI / 180);
private static const IDENTITY:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
public static const COLOR_DEFICIENCY_TYPES:Array = ["Protanopia", "Protanomaly", "Deuteranopia", "Deuteranomaly", "Tritanopia", "Tritanomaly", "Achromatopsia", "Achromatomaly"];
public function ColorMatrix(_arg1:Object=null){
if ((_arg1 is ColorMatrix)){
matrix = _arg1.matrix.concat();
} else {
if ((_arg1 is Array)){
matrix = _arg1.concat();
} else {
reset();
};
};
}
public function adjustBrightness(_arg1:Number, _arg2:Number=NaN, _arg3:Number=NaN):void{
if (isNaN(_arg2)){
_arg2 = _arg1;
};
if (isNaN(_arg3)){
_arg3 = _arg1;
};
concat([1, 0, 0, 0, _arg1, 0, 1, 0, 0, _arg2, 0, 0, 1, 0, _arg3, 0, 0, 0, 1, 0]);
}
public function averageRGB2Alpha():void{
concat([0, 0, 0, 0, 0xFF, 0, 0, 0, 0, 0xFF, 0, 0, 0, 0, 0xFF, ONETHIRD, ONETHIRD, ONETHIRD, 0, 0]);
}
public function luminance2Alpha():void{
concat([0, 0, 0, 0, 0xFF, 0, 0, 0, 0, 0xFF, 0, 0, 0, 0, 0xFF, LUMA_R, LUMA_G, LUMA_B, 0, 0]);
}
public function rotateRed(_arg1:Number):void{
rotateColor(_arg1, 2, 1);
}
public function get filter():ColorMatrixFilter{
return (new ColorMatrixFilter(matrix));
}
public function adjustSaturation(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local2 = (1 - _arg1);
_local3 = (_local2 * LUMA_R);
_local4 = (_local2 * LUMA_G);
_local5 = (_local2 * LUMA_B);
concat([(_local3 + _arg1), _local4, _local5, 0, 0, _local3, (_local4 + _arg1), _local5, 0, 0, _local3, _local4, (_local5 + _arg1), 0, 0, 0, 0, 0, 1, 0]);
}
public function adjustAlphaContrast(_arg1:Number):void{
_arg1 = (_arg1 + 1);
concat([1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, _arg1, (128 * (1 - _arg1))]);
}
public function reset():void{
matrix = IDENTITY.concat();
}
public function blend(_arg1:ColorMatrix, _arg2:Number):void{
var _local3:Number = (1 - _arg2);
var _local4:int;
while (_local4 < 20) {
matrix[_local4] = ((_local3 * Number(matrix[_local4])) + (_arg2 * Number(_arg1.matrix[_local4])));
_local4++;
};
}
public function setChannels(_arg1:int=1, _arg2:int=2, _arg3:int=4, _arg4:int=8):void{
var _local5:Number = (((((((_arg1 & 1) == 1)) ? 1 : ((0 + ((_arg1 & 2) == 2))) ? 1 : 0 + ((_arg1 & 4) == 4))) ? 1 : 0 + ((_arg1 & 8) == 8))) ? 1 : 0;
if (_local5 > 0){
_local5 = (1 / _local5);
};
var _local6:Number = (((((((_arg2 & 1) == 1)) ? 1 : ((0 + ((_arg2 & 2) == 2))) ? 1 : 0 + ((_arg2 & 4) == 4))) ? 1 : 0 + ((_arg2 & 8) == 8))) ? 1 : 0;
if (_local6 > 0){
_local6 = (1 / _local6);
};
var _local7:Number = (((((((_arg3 & 1) == 1)) ? 1 : ((0 + ((_arg3 & 2) == 2))) ? 1 : 0 + ((_arg3 & 4) == 4))) ? 1 : 0 + ((_arg3 & 8) == 8))) ? 1 : 0;
if (_local7 > 0){
_local7 = (1 / _local7);
};
var _local8:Number = (((((((_arg4 & 1) == 1)) ? 1 : ((0 + ((_arg4 & 2) == 2))) ? 1 : 0 + ((_arg4 & 4) == 4))) ? 1 : 0 + ((_arg4 & 8) == 8))) ? 1 : 0;
if (_local8 > 0){
_local8 = (1 / _local8);
};
concat([(((_arg1 & 1) == 1)) ? _local5 : 0, (((_arg1 & 2) == 2)) ? _local5 : 0, (((_arg1 & 4) == 4)) ? _local5 : 0, (((_arg1 & 8) == 8)) ? _local5 : 0, 0, (((_arg2 & 1) == 1)) ? _local6 : 0, (((_arg2 & 2) == 2)) ? _local6 : 0, (((_arg2 & 4) == 4)) ? _local6 : 0, (((_arg2 & 8) == 8)) ? _local6 : 0, 0, (((_arg3 & 1) == 1)) ? _local7 : 0, (((_arg3 & 2) == 2)) ? _local7 : 0, (((_arg3 & 4) == 4)) ? _local7 : 0, (((_arg3 & 8) == 8)) ? _local7 : 0, 0, (((_arg4 & 1) == 1)) ? _local8 : 0, (((_arg4 & 2) == 2)) ? _local8 : 0, (((_arg4 & 4) == 4)) ? _local8 : 0, (((_arg4 & 8) == 8)) ? _local8 : 0, 0]);
}
public function randomize(_arg1:Number=1):void{
var _local2:Number = (1 - _arg1);
var _local3:Number = (_local2 + (_arg1 * (Math.random() - Math.random())));
var _local4:Number = (_arg1 * (Math.random() - Math.random()));
var _local5:Number = (_arg1 * (Math.random() - Math.random()));
var _local6:Number = ((_arg1 * 0xFF) * (Math.random() - Math.random()));
var _local7:Number = (_arg1 * (Math.random() - Math.random()));
var _local8:Number = (_local2 + (_arg1 * (Math.random() - Math.random())));
var _local9:Number = (_arg1 * (Math.random() - Math.random()));
var _local10:Number = ((_arg1 * 0xFF) * (Math.random() - Math.random()));
var _local11:Number = (_arg1 * (Math.random() - Math.random()));
var _local12:Number = (_arg1 * (Math.random() - Math.random()));
var _local13:Number = (_local2 + (_arg1 * (Math.random() - Math.random())));
var _local14:Number = ((_arg1 * 0xFF) * (Math.random() - Math.random()));
concat([_local3, _local4, _local5, 0, _local6, _local7, _local8, _local9, 0, _local10, _local11, _local12, _local13, 0, _local14, 0, 0, 0, 1, 0]);
}
public function concat(_arg1:Array):void{
var _local4:int;
var _local5:int;
var _local2:Array = [];
var _local3:int;
_local5 = 0;
while (_local5 < 4) {
_local4 = 0;
while (_local4 < 5) {
_local2[int((_local3 + _local4))] = (((((Number(_arg1[_local3]) * Number(matrix[_local4])) + (Number(_arg1[int((_local3 + 1))]) * Number(matrix[int((_local4 + 5))]))) + (Number(_arg1[int((_local3 + 2))]) * Number(matrix[int((_local4 + 10))]))) + (Number(_arg1[int((_local3 + 3))]) * Number(matrix[int((_local4 + 15))]))) + ((_local4 == 4)) ? Number(_arg1[int((_local3 + 4))]) : 0);
_local4++;
};
_local3 = (_local3 + 5);
_local5++;
};
matrix = _local2;
}
public function invert():void{
concat([-1, 0, 0, 0, 0xFF, 0, -1, 0, 0, 0xFF, 0, 0, -1, 0, 0xFF, 0, 0, 0, 1, 0]);
}
private function rotateColor(_arg1:Number, _arg2:int, _arg3:int):void{
_arg1 = (_arg1 * RAD);
var _local4:Array = IDENTITY.concat();
_local4[(_arg2 + (_arg2 * 5))] = (_local4[(_arg3 + (_arg3 * 5))] = Math.cos(_arg1));
_local4[(_arg3 + (_arg2 * 5))] = Math.sin(_arg1);
_local4[(_arg2 + (_arg3 * 5))] = -(Math.sin(_arg1));
concat(_local4);
}
public function colorize(_arg1:int, _arg2:Number=1):void{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
_local3 = (((_arg1 >> 16) & 0xFF) / 0xFF);
_local4 = (((_arg1 >> 8) & 0xFF) / 0xFF);
_local5 = ((_arg1 & 0xFF) / 0xFF);
_local6 = (1 - _arg2);
concat([(_local6 + ((_arg2 * _local3) * LUMA_R)), ((_arg2 * _local3) * LUMA_G), ((_arg2 * _local3) * LUMA_B), 0, 0, ((_arg2 * _local4) * LUMA_R), (_local6 + ((_arg2 * _local4) * LUMA_G)), ((_arg2 * _local4) * LUMA_B), 0, 0, ((_arg2 * _local5) * LUMA_R), ((_arg2 * _local5) * LUMA_G), (_local6 + ((_arg2 * _local5) * LUMA_B)), 0, 0, 0, 0, 0, 1, 0]);
}
public function rgb2Alpha(_arg1:Number, _arg2:Number, _arg3:Number):void{
concat([0, 0, 0, 0, 0xFF, 0, 0, 0, 0, 0xFF, 0, 0, 0, 0, 0xFF, _arg1, _arg2, _arg3, 0, 0]);
}
private function shearColor(_arg1:int, _arg2:int, _arg3:Number, _arg4:int, _arg5:Number):void{
var _local6:Array = IDENTITY.concat();
_local6[(_arg2 + (_arg1 * 5))] = _arg3;
_local6[(_arg4 + (_arg1 * 5))] = _arg5;
concat(_local6);
}
public function shearBlue(_arg1:Number, _arg2:Number):void{
shearColor(2, 0, _arg1, 1, _arg2);
}
public function setAlpha(_arg1:Number):void{
concat([1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, _arg1, 0]);
}
public function rotateHue(_arg1:Number):void{
initHue();
concat(preHue.matrix);
rotateBlue(_arg1);
concat(postHue.matrix);
}
public function applyMatrix(_arg1:uint):uint{
var _local2:Number = ((_arg1 >>> 24) & 0xFF);
var _local3:Number = ((_arg1 >>> 16) & 0xFF);
var _local4:Number = ((_arg1 >>> 8) & 0xFF);
var _local5:Number = (_arg1 & 0xFF);
var _local6:int = (((((0.5 + (_local3 * matrix[0])) + (_local4 * matrix[1])) + (_local5 * matrix[2])) + (_local2 * matrix[3])) + matrix[4]);
var _local7:int = (((((0.5 + (_local3 * matrix[5])) + (_local4 * matrix[6])) + (_local5 * matrix[7])) + (_local2 * matrix[8])) + matrix[9]);
var _local8:int = (((((0.5 + (_local3 * matrix[10])) + (_local4 * matrix[11])) + (_local5 * matrix[12])) + (_local2 * matrix[13])) + matrix[14]);
var _local9:int = (((((0.5 + (_local3 * matrix[15])) + (_local4 * matrix[16])) + (_local5 * matrix[17])) + (_local2 * matrix[18])) + matrix[19]);
if (_local9 < 0){
_local9 = 0;
};
if (_local9 > 0xFF){
_local9 = 0xFF;
};
if (_local6 < 0){
_local6 = 0;
};
if (_local6 > 0xFF){
_local6 = 0xFF;
};
if (_local7 < 0){
_local7 = 0;
};
if (_local7 > 0xFF){
_local7 = 0xFF;
};
if (_local8 < 0){
_local8 = 0;
};
if (_local8 > 0xFF){
_local8 = 0xFF;
};
return (((((_local9 << 24) | (_local6 << 16)) | (_local7 << 8)) | _local8));
}
private function initHue():void{
var _local2:Array;
var _local3:Number;
var _local4:Number;
var _local1:Number = 39.182655;
if (!hueInitialized){
hueInitialized = true;
preHue = new ColorMatrix();
preHue.rotateRed(45);
preHue.rotateGreen(-(_local1));
_local2 = [LUMA_R2, LUMA_G2, LUMA_B2, 1];
preHue.transformVector(_local2);
_local3 = (_local2[0] / _local2[2]);
_local4 = (_local2[1] / _local2[2]);
preHue.shearBlue(_local3, _local4);
postHue = new ColorMatrix();
postHue.shearBlue(-(_local3), -(_local4));
postHue.rotateGreen(_local1);
postHue.rotateRed(-45);
};
}
public function shearGreen(_arg1:Number, _arg2:Number):void{
shearColor(1, 0, _arg1, 2, _arg2);
}
public function shearRed(_arg1:Number, _arg2:Number):void{
shearColor(0, 1, _arg1, 2, _arg2);
}
public function average(_arg1:Number=0.333333333333333, _arg2:Number=0.333333333333333, _arg3:Number=0.333333333333333):void{
concat([_arg1, _arg2, _arg3, 0, 0, _arg1, _arg2, _arg3, 0, 0, _arg1, _arg2, _arg3, 0, 0, 0, 0, 0, 1, 0]);
}
public function transformVector(_arg1:Array):void{
if (_arg1.length != 4){
return;
};
var _local2:Number = (((((_arg1[0] * matrix[0]) + (_arg1[1] * matrix[1])) + (_arg1[2] * matrix[2])) + (_arg1[3] * matrix[3])) + matrix[4]);
var _local3:Number = (((((_arg1[0] * matrix[5]) + (_arg1[1] * matrix[6])) + (_arg1[2] * matrix[7])) + (_arg1[3] * matrix[8])) + matrix[9]);
var _local4:Number = (((((_arg1[0] * matrix[10]) + (_arg1[1] * matrix[11])) + (_arg1[2] * matrix[12])) + (_arg1[3] * matrix[13])) + matrix[14]);
var _local5:Number = (((((_arg1[0] * matrix[15]) + (_arg1[1] * matrix[16])) + (_arg1[2] * matrix[17])) + (_arg1[3] * matrix[18])) + matrix[19]);
_arg1[0] = _local2;
_arg1[1] = _local3;
_arg1[2] = _local4;
_arg1[3] = _local5;
}
public function invertAlpha():void{
concat([1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, -1, 0xFF]);
}
public function adjustHue(_arg1:Number):void{
_arg1 = (_arg1 * RAD);
var _local2:Number = Math.cos(_arg1);
var _local3:Number = Math.sin(_arg1);
concat([((LUMA_R + (_local2 * (1 - LUMA_R))) + (_local3 * -(LUMA_R))), ((LUMA_G + (_local2 * -(LUMA_G))) + (_local3 * -(LUMA_G))), ((LUMA_B + (_local2 * -(LUMA_B))) + (_local3 * (1 - LUMA_B))), 0, 0, ((LUMA_R + (_local2 * -(LUMA_R))) + (_local3 * 0.143)), ((LUMA_G + (_local2 * (1 - LUMA_G))) + (_local3 * 0.14)), ((LUMA_B + (_local2 * -(LUMA_B))) + (_local3 * -0.283)), 0, 0, ((LUMA_R + (_local2 * -(LUMA_R))) + (_local3 * -((1 - LUMA_R)))), ((LUMA_G + (_local2 * -(LUMA_G))) + (_local3 * LUMA_G)), ((LUMA_B + (_local2 * (1 - LUMA_B))) + (_local3 * LUMA_B)), 0, 0, 0, 0, 0, 1, 0]);
}
public function threshold(_arg1:Number, _arg2:Number=0x0100):void{
concat([(LUMA_R * _arg2), (LUMA_G * _arg2), (LUMA_B * _arg2), 0, (-(_arg2) * _arg1), (LUMA_R * _arg2), (LUMA_G * _arg2), (LUMA_B * _arg2), 0, (-(_arg2) * _arg1), (LUMA_R * _arg2), (LUMA_G * _arg2), (LUMA_B * _arg2), 0, (-(_arg2) * _arg1), 0, 0, 0, 1, 0]);
}
public function clone():ColorMatrix{
return (new ColorMatrix(matrix));
}
public function rotateBlue(_arg1:Number):void{
rotateColor(_arg1, 1, 0);
}
public function rotateGreen(_arg1:Number):void{
rotateColor(_arg1, 0, 2);
}
public function desaturate():void{
concat([LUMA_R, LUMA_G, LUMA_B, 0, 0, LUMA_R, LUMA_G, LUMA_B, 0, 0, LUMA_R, LUMA_G, LUMA_B, 0, 0, 0, 0, 0, 1, 0]);
}
public function adjustContrast(_arg1:Number, _arg2:Number=NaN, _arg3:Number=NaN):void{
if (isNaN(_arg2)){
_arg2 = _arg1;
};
if (isNaN(_arg3)){
_arg3 = _arg1;
};
_arg1 = (_arg1 + 1);
_arg2 = (_arg2 + 1);
_arg3 = (_arg3 + 1);
concat([_arg1, 0, 0, 0, (128 * (1 - _arg1)), 0, _arg2, 0, 0, (128 * (1 - _arg2)), 0, 0, _arg3, 0, (128 * (1 - _arg3)), 0, 0, 0, 1, 0]);
}
public function setMultiplicators(_arg1:Number=1, _arg2:Number=1, _arg3:Number=1, _arg4:Number=1):void{
var _local5:Array = new Array(_arg1, 0, 0, 0, 0, 0, _arg2, 0, 0, 0, 0, 0, _arg3, 0, 0, 0, 0, 0, _arg4, 0);
concat(_local5);
}
public function thresholdAlpha(_arg1:Number, _arg2:Number=0x0100):void{
concat([1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, _arg2, (-(_arg2) * _arg1)]);
}
public function clearChannels(_arg1:Boolean=false, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Boolean=false):void{
if (_arg1){
matrix[0] = (matrix[1] = (matrix[2] = (matrix[3] = (matrix[4] = 0))));
};
if (_arg2){
matrix[5] = (matrix[6] = (matrix[7] = (matrix[8] = (matrix[9] = 0))));
};
if (_arg3){
matrix[10] = (matrix[11] = (matrix[12] = (matrix[13] = (matrix[14] = 0))));
};
if (_arg4){
matrix[15] = (matrix[16] = (matrix[17] = (matrix[18] = (matrix[19] = 0))));
};
}
public function applyColorDeficiency(_arg1:String):void{
switch (_arg1){
case "Protanopia":
concat([0.567, 0.433, 0, 0, 0, 0.558, 0.442, 0, 0, 0, 0, 0.242, 0.758, 0, 0, 0, 0, 0, 1, 0]);
break;
case "Protanomaly":
concat([0.817, 0.183, 0, 0, 0, 0.333, 0.667, 0, 0, 0, 0, 0.125, 0.875, 0, 0, 0, 0, 0, 1, 0]);
break;
case "Deuteranopia":
concat([0.625, 0.375, 0, 0, 0, 0.7, 0.3, 0, 0, 0, 0, 0.3, 0.7, 0, 0, 0, 0, 0, 1, 0]);
break;
case "Deuteranomaly":
concat([0.8, 0.2, 0, 0, 0, 0.258, 0.742, 0, 0, 0, 0, 0.142, 0.858, 0, 0, 0, 0, 0, 1, 0]);
break;
case "Tritanopia":
concat([0.95, 0.05, 0, 0, 0, 0, 0.433, 0.567, 0, 0, 0, 0.475, 0.525, 0, 0, 0, 0, 0, 1, 0]);
break;
case "Tritanomaly":
concat([0.967, 0.033, 0, 0, 0, 0, 0.733, 0.267, 0, 0, 0, 0.183, 0.817, 0, 0, 0, 0, 0, 1, 0]);
break;
case "Achromatopsia":
concat([0.299, 0.587, 0.114, 0, 0, 0.299, 0.587, 0.114, 0, 0, 0.299, 0.587, 0.114, 0, 0, 0, 0, 0, 1, 0]);
break;
case "Achromatomaly":
concat([0.618, 0.32, 0.062, 0, 0, 0.163, 0.775, 0.062, 0, 0, 0.163, 0.32, 0.516, 0, 0, 0, 0, 0, 1, 0]);
break;
};
}
}
}//package main
Section 21
//Cookie (main.Cookie)
package main {
import flash.net.*;
public class Cookie {
private var _name:String;
private var _so:SharedObject;
public function Cookie(_arg1:String="tempCookie"){
_name = _arg1;
_so = SharedObject.getLocal(_arg1, "/");
}
public function getName():String{
return (_name);
}
public function isKeyExist(_arg1:String):Boolean{
_arg1 = ("key_" + _arg1);
return (((!((_so.data.cookie == undefined))) && (!((_so.data.cookie[_arg1] == undefined)))));
}
public function putNoFlush(_arg1:String, _arg2):void{
var _local3:Object;
_arg1 = ("key_" + _arg1);
if (_so.data.cookie == undefined){
_local3 = {};
_local3[_arg1] = _arg2;
_so.data.cookie = _local3;
} else {
_so.data.cookie[_arg1] = _arg2;
};
}
public function remove(_arg1:String):void{
if (isKeyExist(_arg1)){
delete _so.data.cookie[("key_" + _arg1)];
_so.flush();
};
}
public function clear():void{
_so.clear();
}
public function flushData():void{
_so.flush();
}
public function put(_arg1:String, _arg2):void{
var _local3:Object;
_arg1 = ("key_" + _arg1);
if (_so.data.cookie == undefined){
_local3 = {};
_local3[_arg1] = _arg2;
_so.data.cookie = _local3;
} else {
_so.data.cookie[_arg1] = _arg2;
};
_so.flush();
}
public function get(_arg1:String):Object{
return ((isKeyExist(_arg1)) ? _so.data.cookie[("key_" + _arg1)] : null);
}
public function getSize():uint{
return (_so.size);
}
public function isExist():Boolean{
return (!((getSize() == 0)));
}
}
}//package main
Section 22
//fader50perc (main.fader50perc)
package main {
public dynamic class fader50perc extends alphaFader {
}
}//package main
Section 23
//fxBloodSpatters (main.fxBloodSpatters)
package main {
import flash.display.*;
public dynamic class fxBloodSpatters extends MovieClip {
public function fxBloodSpatters(){
addFrameScript(19, frame20);
}
function frame20(){
visible = false;
}
}
}//package main
Section 24
//fxExplode (main.fxExplode)
package main {
public dynamic class fxExplode extends alphaFader {
public function fxExplode(){
addFrameScript(16, frame17);
}
function frame17(){
visible = false;
}
}
}//package main
Section 25
//fxHealth (main.fxHealth)
package main {
public dynamic class fxHealth extends alphaFader {
public function fxHealth(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
visible = false;
}
}
}//package main
Section 26
//game (main.game)
package main {
import flash.filters.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.media.*;
import CPMStar.*;
import flash.text.*;
import flash.utils.*;
import flash.ui.*;
import flash.geom.*;
import fl.motion.*;
public class game extends alphaFader {
public var en_star_1_1:MovieClip;
public var en_star_1_2:MovieClip;
public var en_star_5_1:MovieClip;
public var en_star_5_2:MovieClip;
var arrButtPlayer:Array;
public var abBombButt:abBombButt;
public var pl_star_1_1:MovieClip;
public var pl_star_5_1:MovieClip;
var winLosePanelOnScr:Boolean;// = false
public var pl_star_1_2:MovieClip;
public var abShieldButt:abShieldButt;
public var abMessagePlayer:abMessagePlayer;
public var statAbDrop:int;// = 0
public var pl_star_5_2:MovieClip;
public var infoMoveScore:TextField;
public var uiShield:uiShield;
public var expBarPlayer:MovieClip;
var lifePerOne:Number;// = 1
var adBoxMC:MovieClip;
public var abFreshButt:abFreshButt;
public var bg:MovieClip;
public var thisGamefield:gamefield;
public var en_star_0_1:MovieClip;
public var en_star_0_2:MovieClip;
public var en_star_4_1:MovieClip;
public var statAbHealth:int;// = 0
public var sndmap:sounds;
public var en_star_4_2:MovieClip;
public var pl_star_0_2:MovieClip;
public var pl_star_4_1:MovieClip;
public var pl_star_4_2:MovieClip;
public var statAbShield:int;// = 0
public var pl_star_0_1:MovieClip;
public var upgradePanel:upgradePanel;
var timerAttackEnRunning:Boolean;// = false
public var uiRev:uiRev;
public var winLosePanel:MovieClip;
var timerAttackEn:Timer;
public var gameMenu:gameMenu;
public var expBarEnemy:MovieClip;
public var playerLife:TextField;
public var abMessageEnemy:abMessageEnemy;
public var enemy:playerStat;
public var FightBar1:MovieClip;
public var en_star_3_2:MovieClip;
public var abHealthButt:abHealthButt;
public var en_star_3_1:MovieClip;
public var abViewButt:abViewButt;
public var pl_star_3_1:MovieClip;
public var FightBar2:MovieClip;
var gameActive:Boolean;// = false
public var abHealthButt2:abHealthButt;
public var uiRev2:uiRev;
public var enemyLife:TextField;
var fxArray:Array;
public var spLogo:MovieClip;
public var pl_star_3_2:MovieClip;
public var helpFrame:helpFrame;
public var abShieldButt2:abShieldButt;
public var abViewButt2:abViewButt;
public var uiShield2:uiShield;
var timerAttackPlRunning:Boolean;// = false
public var txtCash:TextField;
var timerAttackPl:Timer;
public var en_star_2_1:MovieClip;
public var en_star_2_2:MovieClip;
var arrButtEnemy:Array;
public var pl_star_2_1:MovieClip;
public var pl_star_2_2:MovieClip;
public var abBombButt2:abBombButt;
public var abRevButt2:abRevButt;
public var player:playerStat;
public var enemyPic:MovieClip;
public var playerPic:MovieClip;
public var abFreshButt2:abFreshButt;
public var buttHelp:SimpleButton;
public var abRevButt:abRevButt;
public var fader50perc:fader50perc;
public var infoText:TextField;
var timerOpponentDelayTurn:Timer;
static var mX:Number = 0;
static var mY:Number = 0;
public function game(){
arrButtPlayer = new Array();
arrButtEnemy = new Array();
super();
addFrameScript(0, frame1);
thisGamefield.thisGame = this;
gameMenu.thisGame = this;
addEventListener(Event.ENTER_FRAME, Update);
player = new playerStat();
enemy = new playerStat();
infoText.text = "your turn";
sndmap = new sounds();
sndmap.init();
uiShield.startFadeOut();
uiShield.zoomedIn = false;
uiRev.startFadeOut();
uiRev.zoomedIn = false;
uiShield2.startFadeOut();
uiShield2.zoomedIn = false;
uiRev2.startFadeOut();
uiRev2.zoomedIn = false;
fader50perc.visible = false;
fxArray = new Array();
arrButtPlayer.push(abBombButt);
arrButtPlayer.push(abHealthButt);
arrButtPlayer.push(abRevButt);
arrButtPlayer.push(abShieldButt);
arrButtPlayer.push(abFreshButt);
arrButtPlayer.push(abViewButt);
arrButtEnemy.push(abBombButt2);
arrButtEnemy.push(abHealthButt2);
arrButtEnemy.push(abRevButt2);
arrButtEnemy.push(abShieldButt2);
arrButtEnemy.push(abFreshButt2);
arrButtEnemy.push(abViewButt2);
timerOpponentDelayTurn = new Timer(3000, 1);
timerOpponentDelayTurn.stop();
timerOpponentDelayTurn.addEventListener(TimerEvent.TIMER, timerOpponentDelayTurn_Timer);
timerAttackPl = new Timer(200);
timerAttackPl.stop();
timerAttackPl.addEventListener(TimerEvent.TIMER, timerAttackPl_Timer);
timerAttackEn = new Timer(200);
timerAttackEn.stop();
timerAttackEn.addEventListener(TimerEvent.TIMER, timerAttackEn_Timer);
winLosePanel.repButt.addEventListener(MouseEvent.CLICK, nextRep_Click);
winLosePanel.nextButt.addEventListener(MouseEvent.CLICK, nextButt_Click);
winLosePanel.buttExit.addEventListener(MouseEvent.CLICK, buttExit_Click);
upgradePanel.buttUpgNext.addEventListener(MouseEvent.CLICK, upgNextButt_Click);
addEventListener(MouseEvent.MOUSE_MOVE, MouseMove);
addEventListener(MouseEvent.CLICK, this_Click);
}
public function initGUI():void{
uiShield.visible = false;
uiShield2.visible = false;
uiRev.visible = false;
uiRev2.visible = false;
gameMenu.y = 458;
gameMenu.mousePosX = 0;
gameMenu.mousePosY = 0;
thisGamefield.numBlocksTypes = 6;
thisGamefield.Player1Turn = true;
thisGamefield.iCurPicID = -1;
thisGamefield.startDragged = false;
thisGamefield.PlayerApplyAbility = false;
thisGamefield.skipTurn = false;
thisGamefield.blocks_moved = false;
thisGamefield.turn_tested = false;
thisGamefield.applyAITurn.stop();
thisGamefield.helpTimer.stop();
}
public function addFxExplode(_arg1:Number, _arg2:Number):void{
var _local3:fxExplode;
_local3 = new fxExplode();
_local3.x = _arg1;
_local3.y = _arg2;
_local3.blendMode = "screen";
var _local4:Array = new Array();
_local3.scaleX = 1.5;
_local3.scaleY = 1.5;
_local3.rotate = ageMath.RandomInt(0, 360);
addChild(_local3);
fxArray.push(_local3);
}
public function click_spLogo(_arg1:MouseEvent){
ach.getAch("sponsor");
mainGlobal.toUrl("inGameLogo");
}
public function abViewButt_Click(_arg1:MouseEvent):void{
if (((abViewButt.enabled) && ((player.expa >= player.abArray[5].cost)))){
player.expa = (player.expa - player.abArray[5].cost);
abMessagePlayer.startFadeIn();
abMessagePlayer.abName.text = "View best path";
abMessagePlayer.abPic.gotoAndStop(4);
abMessagePlayer.startFadeIn();
thisGamefield.releaseAllPathElem();
thisGamefield.showBestMove();
sndmap.PlaySnd("abView");
thisGamefield.PlayerApplyAbility = true;
};
}
function timerAttackPl_Timer(_arg1:TimerEvent=null):void{
if (enemy.lifeShow > enemy.life){
enemy.lifeShow = (enemy.lifeShow - lifePerOne);
if (enemy.lifeShow < enemy.life){
enemy.lifeShow = enemy.life;
timerAttackPlRunning = false;
timerAttackPl.stop();
};
sndmap.PlaySnd(("goodAttack" + ageMath.RandomInt(1, 2)));
fxcache_createFX(this, "shootFX", (FightBar1.x + ageMath.RemapVal(enemy.lifeShow, 0, enemy.lifeMax, 186, 0)), FightBar1.y);
} else {
enemy.lifeShow = enemy.life;
timerAttackPlRunning = false;
timerAttackPl.stop();
};
}
public function removeFX(_arg1):void{
var _local2:Number;
_local2 = 0;
while (_local2 < fxArray.length) {
if (fxArray[_local2] == _arg1){
fxArray.splice(_local2, 1);
break;
};
_local2++;
};
removeChild(_arg1);
}
public function startLevel(_arg1:int):void{
statAbShield = 0;
statAbHealth = 0;
statAbDrop = 0;
timerOpponentDelayTurn.stop();
player.lev_cash = 0;
player.max_chain = 0;
player.av_chain = 0;
player.player_turns = 0;
player.total_turns = 0;
playerPic.picRow.gotoAndStop(player.picID);
enemyPic.picRow.gotoAndStop((_arg1 + 1));
thisGamefield.releaseAllPathElem();
enemy = GameFrame(parent).menuChoose.plstatArr[_arg1].clone();
player.lifeMax = player.upgParamLife[player.upg_level_life];
enemy.curCompLevel = (_arg1 + 1);
if (enemy.curCompLevel == 15){
enemy.lifeMax = 95;
} else {
enemy.lifeMax = enemy.upgParamLife[enemy.upg_level_life];
};
player.life = player.lifeMax;
player.lifeShow = player.lifeMax;
enemy.life = enemy.lifeMax;
enemy.lifeShow = enemy.lifeMax;
if ((((((((((enemy.curCompLevel == 1)) || ((enemy.curCompLevel == 4)))) || ((enemy.curCompLevel == 7)))) || ((enemy.curCompLevel == 10)))) || ((enemy.curCompLevel == 13)))){
musicEnv.fadeTo("musGame1");
};
if ((((((((((enemy.curCompLevel == 2)) || ((enemy.curCompLevel == 5)))) || ((enemy.curCompLevel == 8)))) || ((enemy.curCompLevel == 11)))) || ((enemy.curCompLevel == 14)))){
musicEnv.fadeTo("musGame3");
};
if ((((((((((enemy.curCompLevel == 3)) || ((enemy.curCompLevel == 6)))) || ((enemy.curCompLevel == 9)))) || ((enemy.curCompLevel == 12)))) || ((enemy.curCompLevel == 15)))){
musicEnv.fadeTo("musGame2");
};
player.expa = 0;
gameActive = true;
thisGamefield.helpTimer.start();
thisGamefield.moveScore = 0;
if (player.isCookieDontShowHelp()){
helpFrame.visible = false;
} else {
helpFrame.visible = false;
if ((_arg1 + 1) == 1){
helpFrame.visible = true;
helpFrame.minInfoLimit = 1;
helpFrame.maxInfoLimit = 3;
helpFrame.inf.gotoAndStop(1);
} else {
if ((_arg1 + 1) == 2){
helpFrame.visible = true;
helpFrame.minInfoLimit = 1;
helpFrame.maxInfoLimit = 6;
helpFrame.inf.gotoAndStop(4);
};
};
};
if ((((_arg1 >= 0)) && ((_arg1 <= 2)))){
thisGamefield.init(6, 5);
} else {
if ((((_arg1 >= 3)) && ((_arg1 <= 5)))){
thisGamefield.init(7, 5);
} else {
if (_arg1 >= 6){
thisGamefield.init(8, 5);
};
};
};
trace(("AI:" + enemy.AI));
enemy.isShield = false;
player.isShield = false;
bg.gotoAndStop((_arg1 + 2));
initGUI();
if (stage.frameRate < 30){
stage.frameRate = 30;
};
}
public function buttHelp_Click(_arg1:MouseEvent):void{
helpFrame.startFadeIn();
helpFrame.minInfoLimit = 1;
helpFrame.maxInfoLimit = 6;
helpFrame.inf.gotoAndStop(1);
}
function frame1(){
abBombButt.addEventListener(MouseEvent.CLICK, abBombButt_Click);
abHealthButt.addEventListener(MouseEvent.CLICK, abHealthButt_Click);
abRevButt.addEventListener(MouseEvent.CLICK, abRevButt_Click);
abShieldButt.addEventListener(MouseEvent.CLICK, abShieldButt_Click);
abFreshButt.addEventListener(MouseEvent.CLICK, abFreshButt_Click);
abViewButt.addEventListener(MouseEvent.CLICK, abViewButt_Click);
buttHelp.addEventListener(MouseEvent.CLICK, buttHelp_Click);
spLogo.buttonMode = true;
spLogo.addEventListener(MouseEvent.CLICK, click_spLogo);
}
function timerAttackEn_Timer(_arg1:TimerEvent=null):void{
if (player.lifeShow > player.life){
player.lifeShow = (player.lifeShow - lifePerOne);
if (player.lifeShow < player.life){
player.lifeShow = player.life;
timerAttackEnRunning = false;
timerAttackEn.stop();
};
sndmap.PlaySnd(("badAttack" + ageMath.RandomInt(1, 2)));
fxcache_createFX(this, "bloodFX", (FightBar2.x + ageMath.RemapVal(player.lifeShow, 0, player.lifeMax, 0, 184)), FightBar2.y);
fxcache_createFX(this, "bloodSplaters", (FightBar2.x + ageMath.RemapVal(player.lifeShow, 0, player.lifeMax, 0, 184)), FightBar2.y);
} else {
player.lifeShow = player.life;
timerAttackEnRunning = false;
timerAttackEn.stop();
};
}
function buttExit_Click(_arg1:MouseEvent):void{
winLosePanelOnScr = false;
fader50perc.startFadeOut();
player.createCookie();
removeAds();
if (winLosePanel.repButt.visible){
musicEnv.fadeTo("musMenu");
};
startFadeOut();
GameFrame(parent).menuChoose.startFadeIn();
gameActive = false;
sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
}
function fxcache_createFX(_arg1:MovieClip, _arg2:String, _arg3:Number, _arg4:Number){
var _local5:*;
if (_arg2 == "bloodFX"){
_local5 = new bloodFX();
_local5.blendMode = "overlay";
_local5.width = 50;
_local5.height = 50;
_local5.rotation = ageMath.RandomInt(-30, 30);
} else {
if (_arg2 == "shootFX"){
_local5 = new shootFX();
_local5.blendMode = "screen";
_local5.x = -64;
_local5.y = -45;
_local5.width = 84;
_local5.height = 84;
} else {
if (_arg2 == "bloodSplaters"){
_local5 = new fxBloodSpatters();
_local5.blendMode = "overlay";
_local5.width = 45;
_local5.height = 45;
};
};
};
_local5.x = (_local5.x + _arg3);
_local5.y = (_local5.y + _arg4);
addChild(_local5);
fxArray.push(_local5);
}
function removeAds():void{
winLosePanel.removeChild(adBoxMC);
}
public function adjustButtonsColor(_arg1:Boolean=true):void{
var _local9:Array;
var _local2:int;
var _local3:ColorMatrix = new ColorMatrix();
var _local4:ColorMatrix = new ColorMatrix();
var _local5:ColorMatrix = new ColorMatrix();
_local5.adjustBrightness(0);
_local3.adjustBrightness(-100);
_local4.adjustBrightness(-50);
var _local6:Array = [player.upg_level_life, player.upg_level_luck, player.abArray[5].upg_level, player.abArray[3].upg_level, player.abArray[4].upg_level, player.abArray[2].upg_level, player.abArray[1].upg_level, player.abArray[0].upg_level];
var _local7:Array = [7, 6, 5, 3, 4, 2];
var _local8:Boolean;
_local2 = 0;
while (_local2 < arrButtPlayer.length) {
_local9 = arrButtPlayer[_local2].filters;
if ((((((((((((mX >= arrButtPlayer[_local2].x)) && ((mX <= (arrButtPlayer[_local2].x + arrButtPlayer[_local2].width))))) && ((mY >= arrButtPlayer[_local2].y)))) && ((mY <= (arrButtPlayer[_local2].y + arrButtPlayer[_local2].height))))) && (!(helpFrame.visible)))) && ((gameMenu.y >= 457)))){
GameFrame(parent).tip.showTip();
GameFrame(parent).tip.setTxtToAbility(_local7[_local2], _local6[_local7[_local2]], Boolean((player.expa >= player.abArray[_local2].cost)), Boolean((player.abArray[_local2].upg_level > 0)));
_local8 = true;
};
if (player.abArray[_local2].upg_level == 0){
getChildByName((("pl_star_" + _local2) + "_1")).visible = false;
getChildByName((("pl_star_" + _local2) + "_2")).visible = false;
} else {
if (player.abArray[_local2].upg_level == 1){
getChildByName((("pl_star_" + _local2) + "_1")).visible = false;
getChildByName((("pl_star_" + _local2) + "_2")).visible = false;
} else {
if (player.abArray[_local2].upg_level == 2){
getChildByName((("pl_star_" + _local2) + "_1")).visible = true;
getChildByName((("pl_star_" + _local2) + "_2")).visible = false;
};
};
};
if (player.abArray[_local2].upg_level == 3){
getChildByName((("pl_star_" + _local2) + "_1")).visible = true;
getChildByName((("pl_star_" + _local2) + "_2")).visible = true;
};
if (player.abArray[_local2].upg_level > 0){
if (((thisGamefield.Player1Turn) && (!(thisGamefield.PlayerApplyAbility)))){
_local9[0].strength = 0;
_local9[1] = new ColorMatrixFilter(_local5.matrix);
if (player.expa < player.abArray[_local2].cost){
_local9[0].strength = 1;
arrButtPlayer[_local2].enabled = false;
} else {
arrButtPlayer[_local2].enabled = true;
};
} else {
arrButtPlayer[_local2].enabled = false;
_local9[0].strength = 0;
_local9[1] = new ColorMatrixFilter(_local4.matrix);
};
arrButtPlayer[_local2].alpha = 1;
} else {
arrButtPlayer[_local2].alpha = 0.3;
arrButtPlayer[_local2].enabled = false;
_local9[0].strength = 0;
_local9[1] = new ColorMatrixFilter(_local3.matrix);
};
arrButtPlayer[_local2].filters = _local9;
_local2++;
};
if (!_local8){
GameFrame(parent).tip.hideTip();
};
_local2 = 0;
while (_local2 < arrButtEnemy.length) {
_local9 = arrButtEnemy[_local2].filters;
if (enemy.abArray[_local2].upg_level == 0){
getChildByName((("en_star_" + _local2) + "_1")).visible = false;
getChildByName((("en_star_" + _local2) + "_2")).visible = false;
} else {
if (enemy.abArray[_local2].upg_level == 1){
getChildByName((("en_star_" + _local2) + "_1")).visible = false;
getChildByName((("en_star_" + _local2) + "_2")).visible = false;
} else {
if (enemy.abArray[_local2].upg_level == 2){
getChildByName((("en_star_" + _local2) + "_1")).visible = true;
getChildByName((("en_star_" + _local2) + "_2")).visible = false;
};
};
};
if (enemy.abArray[_local2].upg_level == 3){
getChildByName((("en_star_" + _local2) + "_1")).visible = true;
getChildByName((("en_star_" + _local2) + "_2")).visible = true;
};
if (enemy.abArray[_local2].upg_level > 0){
_local9[0].strength = 0;
_local9[1] = new ColorMatrixFilter(_local5.matrix);
if (enemy.expa < enemy.abArray[_local2].cost){
_local9[0].strength = 1;
arrButtEnemy[_local2].enabled = false;
} else {
arrButtEnemy[_local2].enabled = false;
};
arrButtEnemy[_local2].alpha = 1;
} else {
arrButtEnemy[_local2].alpha = 0.3;
arrButtEnemy[_local2].enabled = false;
_local9[0].strength = 0;
_local9[1] = new ColorMatrixFilter(_local3.matrix);
};
arrButtEnemy[_local2].filters = _local9;
_local2++;
};
}
function nextRep_Click(_arg1:MouseEvent):void{
winLosePanelOnScr = false;
fader50perc.startFadeOut();
startLevel((enemy.curCompLevel - 1));
sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
removeAds();
}
public function abFreshButt_Click(_arg1:MouseEvent):void{
if (((abFreshButt.enabled) && ((player.expa >= player.abArray[4].cost)))){
player.expa = (player.expa - player.abArray[4].cost);
abMessagePlayer.startFadeIn();
abMessagePlayer.abName.text = "Drop board";
abMessagePlayer.abPic.gotoAndStop(5);
abMessagePlayer.startFadeIn();
thisGamefield.releaseAllPathElem();
thisGamefield.drop();
statAbDrop++;
if (statAbDrop == 4){
ach.getAch("dropAb");
};
thisGamefield.numBlocksTypes = (6 - player.upgParamDrop[player.abArray[4].upg_level]);
sndmap.PlaySnd("abDrop");
thisGamefield.PlayerApplyAbility = true;
};
}
public function abRevButt_Click(_arg1:MouseEvent):void{
if (((abRevButt.enabled) && ((player.expa >= player.abArray[2].cost)))){
player.expa = (player.expa - player.abArray[2].cost);
uiRev.startFadeIn();
uiRev.fadeSpeed = 0.07;
abMessagePlayer.startFadeIn();
abMessagePlayer.abName.text = "Double Move";
abMessagePlayer.abPic.gotoAndStop(7);
sndmap.PlaySnd("abRev");
thisGamefield.skipTurn = true;
thisGamefield.PlayerApplyAbility = true;
};
}
public function addFxLuck(_arg1:Boolean):void{
var _local2:LuckFX;
_local2 = new LuckFX();
if (_arg1){
_local2.x = ageMath.RandomInt(FightBar2.x, (FightBar2.x + FightBar2.width));
_local2.y = (FightBar2.y + (FightBar2.height / 4));
} else {
_local2.x = ageMath.RandomInt(FightBar1.x, (FightBar1.x + FightBar1.width));
_local2.y = (FightBar1.y + (FightBar1.height / 4));
};
addChild(_local2);
fxArray.push(_local2);
}
function this_Click(_arg1:MouseEvent):void{
}
public function abShieldButt_Click(_arg1:MouseEvent):void{
if (((abShieldButt.enabled) && ((player.expa >= player.abArray[3].cost)))){
player.expa = (player.expa - player.abArray[3].cost);
uiShield.startFadeIn();
uiShield.fadeSpeed = 0.07;
abMessagePlayer.startFadeIn();
abMessagePlayer.abName.text = "Shield";
abMessagePlayer.abPic.gotoAndStop(6);
player.isShield = true;
abMessagePlayer.startFadeIn();
statAbShield++;
if (statAbShield == 4){
ach.getAch("shieldAb");
};
sndmap.PlaySnd("abShield");
thisGamefield.PlayerApplyAbility = true;
};
}
function nextButt_Click(_arg1:MouseEvent):void{
winLosePanelOnScr = false;
upgradePanel.moveToScr = true;
upgradePanel.buttUpgNext.visible = true;
upgradePanel.buttClose.visible = false;
if (enemy.curCompLevel == player.curCompLevel){
player.curCompLevel++;
};
upgradePanel.init(player);
sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
removeAds();
}
function timerOpponentDelayTurn_Timer(_arg1:TimerEvent):void{
thisGamefield.calcBestAIMove();
infoText.text = "your turn";
}
public function addFxHealth(_arg1:Number, _arg2:Number):void{
var _local3:fxHealth;
_local3 = new fxHealth();
_local3.x = _arg1;
_local3.y = _arg2;
_local3.blendMode = "screen";
var _local4:Array = new Array();
_local4.push(new GlowFilter(0xFF0000, 1, 15, 15, 1, 3));
_local3.filters = _local4;
addChild(_local3);
fxArray.push(_local3);
}
public function Update(_arg1:Event):void{
var _local2:*;
var _local3:Number;
var _local4:int;
var _local5:String;
var _local6:DisplayObject;
if (!visible){
return;
};
txtCash.text = (player.lev_cash.toString() + "cr");
if (enemy.lifeShow < enemy.life){
enemy.lifeShow = enemy.life;
};
if ((((enemy.lifeShow > enemy.life)) && (!(timerAttackPlRunning)))){
timerAttackPl.start();
timerAttackPlRunning = true;
};
if (player.lifeShow < player.life){
player.lifeShow = player.life;
};
if ((((player.lifeShow > player.life)) && (!(timerAttackEnRunning)))){
timerAttackEn.start();
timerAttackEnRunning = true;
};
FightBar2.gotoAndStop(int(ageMath.RemapVal(player.lifeShow, 0, player.lifeMax, 200, 1)));
playerLife.text = player.life.toString();
FightBar1.gotoAndStop(int(ageMath.RemapVal(enemy.lifeShow, 0, enemy.lifeMax, 200, 1)));
enemyLife.text = enemy.life.toString();
expBarPlayer.expbar.gotoAndStop(int(ageMath.RemapVal(player.expa, 1, 25, 1, 100)));
expBarPlayer.txt.text = player.expa;
expBarEnemy.expbar.gotoAndStop(int(ageMath.RemapVal(enemy.expa, 1, 25, 1, 100)));
expBarEnemy.txt.text = enemy.expa;
adjustButtonsColor();
for each (_local2 in fxArray) {
if (_local2.visible == false){
removeFX(_local2);
};
};
if (!(((player.life <= 0)) || ((enemy.life <= 0)))){
if (((((thisGamefield.Player1Turn) && (!(thisGamefield.turn_tested)))) && (!(thisGamefield.blocks_moved)))){
if (!thisGamefield.calcCanMakeTurn()){
thisGamefield.releaseAllPathElem();
thisGamefield.drop();
return;
};
thisGamefield.turn_tested = true;
};
};
if (((((((!(thisGamefield.Player1Turn)) && (!(timerOpponentDelayTurn.running)))) && (!(thisGamefield.applyAITurn.running)))) && ((enemy.life > 0)))){
timerOpponentDelayTurn.delay = ageMath.RandomInt(500, 2000);
timerOpponentDelayTurn.start();
infoText.text = "opponent's turn...";
};
if (((!(thisGamefield.Player1Turn)) && (timerOpponentDelayTurn.running))){
if (thisGamefield.blocks_moved){
timerOpponentDelayTurn.stop();
} else {
timerOpponentDelayTurn.start();
};
};
if (((!(thisGamefield.Player1Turn)) && (thisGamefield.applyAITurn.running))){
if (thisGamefield.blocks_moved){
thisGamefield.applyAITurn.stop();
} else {
thisGamefield.applyAITurn.start();
};
};
if ((((((player.life <= 0)) || ((enemy.life <= 0)))) && (gameActive))){
if (!fader50perc.visible){
fader50perc.startFadeIn();
winLosePanelOnScr = true;
winLosePanel.txtMaxChain.text = player.max_chain.toString();
winLosePanel.txtAvrChain.text = (Math.round(((player.av_chain / player.player_turns) * 10)) / 10).toString();
winLosePanel.txtTotalTurns.text = player.total_turns.toString();
winLosePanel.txtColCash.text = (player.lev_cash.toString() + "cr");
_local3 = 0;
if (enemy.life <= 0){
_local4 = 0;
if (player.diffLevel == 0){
_local4 = 5;
};
if ((((enemy.curCompLevel >= 1)) && ((enemy.curCompLevel <= 4)))){
_local3 = (35 + _local4);
} else {
if ((((enemy.curCompLevel >= 5)) && ((enemy.curCompLevel <= 8)))){
_local3 = (45 + _local4);
} else {
if ((((enemy.curCompLevel >= 9)) && ((enemy.curCompLevel <= 12)))){
_local3 = (55 + _local4);
} else {
if ((((enemy.curCompLevel >= 13)) && ((enemy.curCompLevel <= 15)))){
_local3 = (65 + _local4);
};
};
};
};
player.cash = (player.cash + (_local3 + player.lev_cash));
if (player.cash >= 100){
ach.getAch("money1");
};
if (player.cash >= 300){
ach.getAch("money2");
};
if (enemy.curCompLevel == 1){
ach.getAch("lev1");
};
if (enemy.curCompLevel == 7){
ach.getAch("lev7");
};
if ((((enemy.curCompLevel == 15)) && ((player.total_turns <= 40)))){
ach.getAch("flawVic");
};
musicEnv.fadeTo("musMenu");
} else {
player.cash = (player.cash + player.lev_cash);
musicEnv.fadeTo("musLost");
player.createCookie();
};
winLosePanel.txtPrizeCash.text = (_local3.toString() + "cr");
winLosePanel.txtTotalCash.text = (player.cash.toString() + "cr");
adBoxMC = new adBoxClass();
adBoxMC.x = -94;
adBoxMC.y = 53;
if (!mainGlobal.noAds){
_local5 = "5970Q617074E6";
_local6 = new AdLoader(_local5);
adBoxMC.addChild(_local6);
};
winLosePanel.addChild(adBoxMC);
};
if (player.life <= 0){
winLosePanel.panelTitle.text = "You Lose...";
winLosePanel.nextButt.visible = false;
winLosePanel.repButt.visible = true;
winLosePanel.tipLose.visible = true;
} else {
winLosePanel.panelTitle.text = "You Win!";
winLosePanel.nextButt.visible = true;
winLosePanel.repButt.visible = false;
winLosePanel.tipLose.visible = false;
};
};
if (thisGamefield.moveScore){
infoMoveScore.text = ("blocks: " + thisGamefield.moveScore);
} else {
infoMoveScore.text = "";
};
if (winLosePanelOnScr){
winLosePanel.y = ageMath.Lerp(winLosePanel.y, (240 - (360 * 0.5)), 0.2);
} else {
winLosePanel.y = ageMath.Lerp(winLosePanel.y, 480, 0.2);
};
}
function upgNextButt_Click(_arg1:MouseEvent):void{
upgradePanel.moveToScr = false;
fader50perc.startFadeOut();
startFadeOut();
gameActive = false;
sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
var _local2:Boolean;
if ((((enemy.curCompLevel == 15)) && ((player.curCompLevel == 16)))){
player.curCompLevel++;
_local2 = true;
};
player.createCookie();
if (_local2){
GameFrame(parent).menuWinner.startFadeIn();
ach.getAch("lev15");
if (player.picID == 16){
GameFrame(parent).menuWinner.plw1.visible = true;
GameFrame(parent).menuWinner.plw2.visible = false;
} else {
GameFrame(parent).menuWinner.plw1.visible = false;
GameFrame(parent).menuWinner.plw2.visible = true;
};
} else {
GameFrame(parent).menuChoose.startFadeIn();
};
}
public function abHealthButt_Click(_arg1:MouseEvent):void{
if (((abHealthButt.enabled) && ((player.expa >= player.abArray[1].cost)))){
abMessagePlayer.startFadeIn();
abMessagePlayer.abName.text = "Health";
abMessagePlayer.abPic.gotoAndStop(2);
addFxHealth(ageMath.Random((playerPic.x + 25), ((playerPic.x + playerPic.width) - 25)), ageMath.Random((playerPic.y + 25), ((playerPic.y + playerPic.width) - 25)));
addFxHealth(ageMath.Random((playerPic.x + 25), ((playerPic.x + playerPic.width) - 25)), ageMath.Random((playerPic.y + 25), ((playerPic.y + playerPic.width) - 25)));
addFxHealth(ageMath.Random((playerPic.x + 25), ((playerPic.x + playerPic.width) - 25)), ageMath.Random((playerPic.y + 25), ((playerPic.y + playerPic.width) - 25)));
addFxHealth(ageMath.Random((playerPic.x + 25), ((playerPic.x + playerPic.width) - 25)), ageMath.Random((playerPic.y + 25), ((playerPic.y + playerPic.width) - 25)));
addFxHealth(ageMath.Random((playerPic.x + 25), ((playerPic.x + playerPic.width) - 25)), ageMath.Random((playerPic.y + 25), ((playerPic.y + playerPic.width) - 25)));
addFxHealth(ageMath.Random((playerPic.x + 25), ((playerPic.x + playerPic.width) - 25)), ageMath.Random((playerPic.y + 25), ((playerPic.y + playerPic.width) - 25)));
addFxHealth(ageMath.Random((playerPic.x + 25), ((playerPic.x + playerPic.width) - 25)), ageMath.Random((playerPic.y + 25), ((playerPic.y + playerPic.width) - 25)));
thisGamefield.PlayerApplyAbility = true;
player.expa = (player.expa - player.abArray[1].cost);
statAbHealth++;
if (statAbHealth == 4){
ach.getAch("healthAb");
};
sndmap.PlaySnd("abHealth");
player.life = (player.life + player.upgParamHealth[player.abArray[1].upg_level]);
};
}
public function MouseMove(_arg1:MouseEvent):void{
gameMenu.mousePosX = _arg1.stageX;
gameMenu.mousePosY = _arg1.stageY;
mX = _arg1.stageX;
mY = _arg1.stageY;
}
public function abBombButt_Click(_arg1:MouseEvent):void{
if (((abBombButt.enabled) && ((player.expa >= player.abArray[0].cost)))){
abMessagePlayer.startFadeIn();
abMessagePlayer.abName.text = "Bomb";
abMessagePlayer.abPic.gotoAndStop(1);
addFxExplode((enemyPic.x + (enemyPic.width * 0.5)), (enemyPic.y + (enemyPic.width * 0.5)));
thisGamefield.PlayerApplyAbility = true;
player.expa = (player.expa - player.abArray[0].cost);
sndmap.PlaySnd("abBomb");
if (enemy.isShield){
enemy.isShield = false;
uiShield2.startFadeOut();
sndmap.PlaySnd("shieldBlocked");
return;
};
enemy.life = (enemy.life - player.upgParamBomb[player.abArray[0].upg_level]);
enemy.lifeShow = enemy.life;
};
}
}
}//package main
Section 27
//gamefield (main.gamefield)
package main {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
public dynamic class gamefield extends MovieClip {
var helpTimer:Timer;
var curwidth:int;// = 0
var blocks:Array;
var PlayerApplyAbility:Boolean;// = false
var skipTurn:Boolean;// = false
var bestList:Array;
var maxList:Array;
var numBlocksTypes:int;// = 6
var thisGame:game;
var applyAITurn:Timer;
var blocks_moved:Boolean;// = false
var moveScore:Number;// = 0
var showBestPath:Array;
var turn_tested:Boolean;// = false
var startDragged:Boolean;// = false
var blockPath:Array;
var pathElem:Array;
var iCurPicID:int;// = -1
var curPathID:int;// = 0
public var gfBG:MovieClip;
var curheight:int;// = 0
var Player1Turn:Boolean;// = true
var ismouseDown:Boolean;// = false
public function gamefield(){
blocks = new Array();
super();
blockPath = new Array();
pathElem = new Array();
addEventListener(MouseEvent.MOUSE_DOWN, MouseDown);
addEventListener(MouseEvent.MOUSE_UP, MouseUp);
addEventListener(MouseEvent.MOUSE_MOVE, MouseMove);
addEventListener(MouseEvent.ROLL_OUT, UndoPath);
addEventListener(Event.ENTER_FRAME, Update);
parent.stage.addEventListener(KeyboardEvent.KEY_DOWN, key_down);
applyAITurn = new Timer(3500, 1);
applyAITurn.stop();
applyAITurn.addEventListener(TimerEvent.TIMER, applyAITurn_Timer);
helpTimer = new Timer(8000, 1);
helpTimer.stop();
helpTimer.addEventListener(TimerEvent.TIMER, helpTimer_Timer);
}
public function MouseUp(_arg1:MouseEvent):void{
if (((blocks_moved) || (!(startDragged)))){
return;
};
moveScore = 0;
ismouseDown = false;
releaseBlocks(false);
}
function applyDoubleTurn():void{
thisGame.abMessageEnemy.startFadeIn();
thisGame.abMessageEnemy.abName.text = "Double Move";
thisGame.abMessageEnemy.abPic.gotoAndStop(3);
thisGame.enemy.expa = (thisGame.enemy.expa - thisGame.enemy.abArray[2].cost);
PlayerApplyAbility = true;
thisGame.sndmap.PlaySnd("abRev");
thisGame.uiRev2.startFadeIn();
thisGame.uiRev2.fadeSpeed = 0.07;
skipTurn = true;
}
public function MouseMove(_arg1:MouseEvent):void{
var _local2:*;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:Array;
var _local7:block;
var _local8:AIPoint;
if (((!(Player1Turn)) || (blocks_moved))){
return;
};
if (startDragged){
_local3 = -1;
_local4 = 0;
while (_local4 < curwidth) {
_local5 = 0;
while (_local5 < curheight) {
if (blocks[_local4][_local5] != null){
if (((((_arg1.stageX - x) > blocks[_local4][_local5].x)) && (((_arg1.stageX - x) < (blocks[_local4][_local5].x + blocks[_local4][_local5].width))))){
if (((((_arg1.stageY - y) > blocks[_local4][_local5].y)) && (((_arg1.stageY - y) < (blocks[_local4][_local5].y + blocks[_local4][_local5].height))))){
_local2 = _local4;
_local3 = _local5;
};
};
};
_local5++;
};
_local4++;
};
if ((((_local2 == -1)) || ((_local3 == -1)))){
return;
};
_local6 = new Array();
for each (_local7 in blockPath) {
_local8 = new AIPoint();
_local8.x = Math.round((_local7.x / (_local7.width + 5)));
_local8.y = Math.round((_local7.y / (_local7.height + 5)));
_local6.push(_local8.clone());
};
if ((((((blocks[_local2][_local3].blockPic.currentFrame == iCurPicID)) && (!(InPath(blocks[_local2][_local3]))))) && (BlockAllowed(_local2, _local3, _local6)))){
blockPath.push(blocks[_local2][_local3]);
addPathLine((blockPath[(blockPath.length - 2)].x + 30), (blockPath[(blockPath.length - 2)].y + 30), (blocks[_local2][_local3].x + 30), (blocks[_local2][_local3].y + 30));
addPathPoint((blocks[_local2][_local3].x + 30), (blocks[_local2][_local3].y + 30));
};
};
}
public function addPathLine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{
var _local6:pathLine;
var _local5:* = Math.sqrt((((_arg1 - _arg3) * (_arg1 - _arg3)) + ((_arg2 - _arg4) * (_arg2 - _arg4))));
_local6 = new pathLine();
_local6.x = _arg1;
_local6.y = _arg2;
_local6.width = _local5;
_local6.rotation = ((Math.atan2((_arg4 - _arg2), (_arg3 - _arg1)) / Math.PI) * 180);
_local6.startFadeIn();
addChild(_local6);
pathElem.push(_local6);
}
public function InPath(_arg1:block):Boolean{
var _local2:block;
for each (_local2 in blockPath) {
if (_local2 == _arg1){
return (true);
};
};
return (false);
}
public function releaseAllPathElem():void{
var _local1:alphaFader;
for each (_local1 in pathElem) {
if (_local1.visible){
_local1.startFadeOut();
_local1.fadeSpeed = 0.1;
_local1.fadeMaxLimit = 1;
};
};
}
public function init(_arg1:int, _arg2:int){
var _local3:int;
var _local4:int;
clearBoard();
curwidth = _arg1;
curheight = _arg2;
gfBG.x = -5;
gfBG.y = -5;
gfBG.width = ((_arg1 * (60 + 5)) + 5);
gfBG.height = ((_arg2 * (60 + 5)) + 5);
x = ((640 * 0.5) - (0.5 * ((_arg1 * (60 + 5)) + 5)));
_local3 = 0;
while (_local3 < _arg1) {
_local4 = 0;
while (_local4 < _arg2) {
if (blocks[_local3] == null){
blocks[_local3] = new Array(_arg2);
};
generateBlock(_local3, _local4);
_local4++;
};
_local3++;
};
}
public function key_down(_arg1:KeyboardEvent){
}
function orderBestList(_arg1:Array, _arg2:Array):int{
if (_arg1.length < _arg2.length){
return (1);
};
if (_arg1.length > _arg2.length){
return (-1);
};
return (0);
}
public function generateBlock(_arg1:int, _arg2:int, _arg3:Boolean=false){
var _local4:block;
var _local6:*;
_local4 = new block();
_local4.x = ((_arg1 * (_local4.width + 5)) + 4);
if (_arg3){
_local4.y = ((-1 * (_local4.height + 5)) - 5);
} else {
_local4.y = ((_arg2 * (_local4.height + 5)) - 5);
};
var _local5:int = ageMath.RandomInt(1, numBlocksTypes);
_local4.blockPic.gotoAndStop(_local5);
_local4.extraBonus.gotoAndStop(1);
if (!ageMath.RandomInt(0, ((thisGame.enemy.curCompLevel < 5)) ? 10 : 5)){
_local6 = ageMath.RandomInt(0, 1);
if (_local6 == 0){
if ((((thisGame.enemy.curCompLevel >= 2)) && ((thisGame.enemy.curCompLevel <= 4)))){
_local4.extraBonus.gotoAndStop(2);
} else {
if ((((thisGame.enemy.curCompLevel >= 5)) && ((thisGame.enemy.curCompLevel <= 8)))){
_local4.extraBonus.gotoAndStop(ageMath.RandomInt(2, 3));
} else {
if (thisGame.enemy.curCompLevel >= 9){
_local4.extraBonus.gotoAndStop(ageMath.RandomInt(2, 3));
};
};
};
} else {
if (_local6 == 1){
if ((((thisGame.enemy.curCompLevel >= 2)) && ((thisGame.enemy.curCompLevel <= 4)))){
_local4.extraBonus.gotoAndStop(4);
} else {
if ((((thisGame.enemy.curCompLevel >= 5)) && ((thisGame.enemy.curCompLevel <= 8)))){
_local4.extraBonus.gotoAndStop(4);
} else {
if (thisGame.enemy.curCompLevel >= 9){
_local4.extraBonus.gotoAndStop(4);
};
};
};
} else {
if (_local6 == 2){
if ((((thisGame.enemy.curCompLevel >= 2)) && ((thisGame.enemy.curCompLevel <= 4)))){
_local4.extraBonus.gotoAndStop(ageMath.RandomInt(5, 5));
} else {
if ((((thisGame.enemy.curCompLevel >= 5)) && ((thisGame.enemy.curCompLevel <= 6)))){
_local4.extraBonus.gotoAndStop(ageMath.RandomInt(5, 6));
} else {
if (thisGame.enemy.curCompLevel >= 7){
_local4.extraBonus.gotoAndStop(ageMath.RandomInt(5, 7));
};
};
};
};
};
};
};
if (!ageMath.RandomInt(0, ((thisGame.enemy.curCompLevel < 5)) ? 10 : 7)){
_local6 = 2;
if (_local6 == 2){
if ((((thisGame.enemy.curCompLevel >= 2)) && ((thisGame.enemy.curCompLevel <= 4)))){
_local4.extraBonus.gotoAndStop(ageMath.RandomInt(5, 5));
} else {
if ((((thisGame.enemy.curCompLevel >= 5)) && ((thisGame.enemy.curCompLevel <= 6)))){
_local4.extraBonus.gotoAndStop(ageMath.RandomInt(5, 6));
} else {
if (thisGame.enemy.curCompLevel >= 7){
_local4.extraBonus.gotoAndStop(ageMath.RandomInt(5, 7));
};
};
};
};
};
if (_arg3){
_local4.startFadeIn();
};
addChild(_local4);
blocks[_arg1][_arg2] = _local4;
}
public function clearBoard(){
var _local1:Array;
var _local2:Array;
while (blocks.length) {
for each (_local2 in blocks) {
while (_local2.length) {
removeChild(_local2.pop());
};
};
blocks.pop();
};
}
public function notInLists(_arg1:int, _arg2:int, _arg3:Array):Boolean{
var _local4:AIPoint;
for each (_local4 in _arg3) {
if ((((_local4.x == _arg1)) && ((_local4.y == _arg2)))){
return (false);
};
};
return (true);
}
function applyDrop():void{
thisGame.abMessageEnemy.startFadeIn();
thisGame.abMessageEnemy.abName.text = "Drop board";
thisGame.abMessageEnemy.abPic.gotoAndStop(5);
thisGame.enemy.expa = (thisGame.enemy.expa - thisGame.enemy.abArray[4].cost);
PlayerApplyAbility = true;
thisGame.sndmap.PlaySnd("abDrop");
releaseAllPathElem();
drop();
numBlocksTypes = (6 - thisGame.enemy.upgParamDrop[thisGame.enemy.abArray[4].upg_level]);
}
function helpTimer_Timer(_arg1:TimerEvent):void{
var _local2:int;
var _local3:int;
var _local4:AIPoint;
var _local5:Array;
if ((((thisGame.player.life <= 0)) || ((thisGame.enemy.life <= 0)))){
return;
};
if (bestList == null){
bestList = new Array();
};
while (bestList.length) {
bestList.pop();
};
_local2 = 0;
while (_local2 < curwidth) {
_local3 = 0;
while (_local3 < curheight) {
if (blocks[_local2][_local3] != null){
_local5 = calcBestPathFrom(_local2, _local3, 15);
trace((_local5.length + " "));
if (_local5.length >= 3){
bestList.push(cloneArrayPoints(_local5));
};
};
_local3++;
};
_local2++;
};
bestList.sort(orderBestList);
showBestPath = bestList[(bestList.length - 1)];
for each (_local4 in showBestPath) {
if (_local4 != null){
if ((((_local4.x == -1)) && ((_local4.y == -1)))){
break;
};
if (((!((_local4.lx == -1))) && (!((_local4.ly == -1))))){
addPathLineHelp((blocks[_local4.lx][_local4.ly].x + 30), (blocks[_local4.lx][_local4.ly].y + 30), (blocks[_local4.x][_local4.y].x + 30), (blocks[_local4.x][_local4.y].y + 30));
};
addPathPointHelp((blocks[_local4.x][_local4.y].x + 30), (blocks[_local4.x][_local4.y].y + 30));
};
};
}
public function addPathPointHelp(_arg1:Number, _arg2:Number):void{
var _local3:pathPoint;
_local3 = new pathPoint();
_local3.x = _arg1;
_local3.y = _arg2;
_local3.startFadeIn();
_local3.fadeSpeed = 0.04;
_local3.fadeMaxLimit = 0.5;
addChild(_local3);
pathElem.push(_local3);
}
public function lengthExist(_arg1:int):Boolean{
var _local2:int;
_local2 = 0;
while (_local2 < bestList.length) {
trace(((("---> " + bestList[_local2].length) + "==") + _arg1));
if (bestList[_local2].length == _arg1){
return (true);
};
_local2++;
};
return (false);
}
function applyAbilites():Boolean{
var _local1:Boolean;
_local1 = !(ageMath.RandomInt(0, 1));
if (thisGame.enemy.expa >= 20){
_local1 = true;
};
if (thisGame.enemy.abArray[0].upg_level > 0){
if (((_local1) || ((thisGame.player.life <= 10)))){
if (thisGame.enemy.expa >= thisGame.enemy.abArray[0].cost){
applyBomb();
curPathID = 0;
return (true);
};
};
};
_local1 = !(ageMath.RandomInt(0, 1));
if (thisGame.enemy.expa >= 20){
_local1 = true;
};
if (thisGame.enemy.abArray[1].upg_level > 0){
if (thisGame.enemy.life <= (thisGame.enemy.lifeMax - 5)){
if ((((thisGame.enemy.life <= (thisGame.enemy.lifeMax * 0.5))) || (_local1))){
if (thisGame.enemy.expa >= thisGame.enemy.abArray[1].cost){
applyHealth();
return (true);
};
};
};
};
_local1 = !(ageMath.RandomInt(0, 1));
if (thisGame.enemy.expa >= 20){
_local1 = true;
};
if (thisGame.enemy.abArray[2].upg_level > 0){
if (((_local1) && ((((bestList[0].length > 5)) || ((bestList[1].length > 4)))))){
if (thisGame.enemy.expa >= thisGame.enemy.abArray[2].cost){
applyDoubleTurn();
curPathID = 0;
return (true);
};
};
};
_local1 = !(ageMath.RandomInt(0, 1));
if (thisGame.enemy.expa >= 20){
_local1 = true;
};
if (thisGame.enemy.abArray[3].upg_level > 0){
if (!thisGame.enemy.isShield){
if (((_local1) && ((((bestList[0].length > 5)) || ((bestList[1].length > 4)))))){
if (thisGame.enemy.expa >= thisGame.enemy.abArray[3].cost){
applyShield();
return (true);
};
};
};
};
_local1 = !(ageMath.RandomInt(0, 1));
if (thisGame.enemy.expa >= 20){
_local1 = true;
};
if (thisGame.enemy.abArray[4].upg_level > 0){
if (((_local1) && ((bestList[0].length <= 3)))){
if (thisGame.enemy.expa >= thisGame.enemy.abArray[4].cost){
applyDrop();
return (true);
};
};
};
_local1 = !(ageMath.RandomInt(0, 1));
if (thisGame.enemy.expa >= 20){
_local1 = true;
};
if ((((thisGame.enemy.abArray[5].upg_level > 0)) && ((thisGame.enemy.curCompLevel < 9)))){
if (((_local1) && ((bestList[0].length > bestList[curPathID].length)))){
if (thisGame.enemy.expa >= thisGame.enemy.abArray[5].cost){
applyView();
curPathID = 0;
return (true);
};
};
};
return (false);
}
public function nextNode(_arg1:AIPoint, _arg2:Array, _arg3:int, _arg4:int){
var _local6:AIPoint;
var _local7:Array;
var _local8:AIPoint;
_arg2.push(_arg1);
var _local5:Array = getChilds(_arg1, _arg2);
for each (_local6 in _local5) {
_local7 = new Array();
if (!BlockAllowed(_local6.x, _local6.y, _arg2)){
} else {
for each (_local8 in _arg2) {
_local7.push(_local8);
};
nextNode(_local6, _local7, _arg3, _arg4);
};
};
if (maxList.length < _arg2.length){
while (maxList.length) {
maxList.pop();
};
for each (_local8 in _arg2) {
maxList.push(_local8);
};
};
}
public function calcBestAIMove():void{
var _local1:int;
var _local2:int;
var _local5:Array;
var _local6:int;
var _local7:Array;
var _local8:int;
var _local9:Array;
if (bestList == null){
bestList = new Array();
};
while (bestList.length) {
bestList.pop();
};
_local1 = 0;
while (_local1 < curwidth) {
_local2 = 0;
while (_local2 < curheight) {
if (blocks[_local1][_local2] != null){
_local5 = calcBestPathFrom(_local1, _local2, 15);
trace((_local5.length + " "));
if (_local5.length >= 3){
bestList.push(cloneArrayPoints(_local5));
};
};
_local2++;
};
_local1++;
};
if (bestList.length == 0){
drop();
thisGame.timerOpponentDelayTurn.delay = ageMath.RandomInt(500, 2000);
thisGame.timerOpponentDelayTurn.start();
return;
};
bestList.sort(orderBestList);
var _local3:int = (bestList[0].length - thisGame.enemy.AI);
if (_local3 < 3){
_local3 = 3;
};
var _local4:int = ageMath.RandomInt(_local3, bestList[0].length);
if ((((((thisGame.player.curCompLevel == 1)) && ((_local4 > 4)))) || (thisGame.player.isShield))){
_local4 = 3;
};
if ((((thisGame.player.curCompLevel == 2)) && ((_local4 > 5)))){
_local4 = 3;
};
curPathID = 0;
trace(((((("AI choose: curLowWant=" + _local3) + " curCntWant=") + _local4) + " curMax=") + bestList[0].length));
if (!lengthExist(_local4)){
trace("not lengthExist");
while (true) {
_local6 = ageMath.RandomInt(0, (bestList.length - 1));
if (bestList[_local6].length >= _local4){
curPathID = _local6;
_local7 = new Array(_local4);
_local8 = 0;
_local9 = bestList[_local6];
_local8 = 0;
while (_local8 < _local4) {
_local7[_local8] = _local9[_local8];
_local8++;
};
bestList[_local6] = _local7;
break;
};
};
trace("not lengthExist end");
} else {
trace("yes lengthExist");
while (true) {
_local6 = ageMath.RandomInt(0, (bestList.length - 1));
if (bestList[_local6].length == _local4){
curPathID = _local6;
break;
};
};
trace("yes lengthExist end");
};
if (thisGame.player.diffLevel == 0){
if (!ageMath.RandomInt(0, 2)){
curPathID = 0;
};
} else {
if ((((thisGame.player.diffLevel == 1)) && ((thisGame.player.curCompLevel > 2)))){
if (!ageMath.RandomInt(0, 1)){
curPathID = 0;
};
} else {
if (thisGame.player.diffLevel == 2){
if (!ageMath.RandomInt(0, 0)){
curPathID = 0;
};
};
};
};
if (applyAbilites()){
applyAITurn.delay = 3000;
} else {
applyAITurn.delay = 1;
};
applyAITurn.start();
}
function applyAITurn_Timer(_arg1:TimerEvent):void{
var _local2:AIPoint;
var _local3:AIPoint;
applyAITurn.stop();
for each (_local2 in bestList[curPathID]) {
if (_local2 != null){
if ((((_local2.x == -1)) && ((_local2.y == -1)))){
break;
};
if (((!((_local2.lx == -1))) && (!((_local2.ly == -1))))){
addPathLine((blocks[_local2.lx][_local2.ly].x + 30), (blocks[_local2.lx][_local2.ly].y + 30), (blocks[_local2.x][_local2.y].x + 30), (blocks[_local2.x][_local2.y].y + 30));
};
addPathPoint((blocks[_local2.x][_local2.y].x + 30), (blocks[_local2.x][_local2.y].y + 30));
};
};
while (blockPath.length > 0) {
blockPath.pop();
};
for each (_local3 in bestList[curPathID]) {
blockPath.push(blocks[_local3.x][_local3.y]);
};
releaseBlocks(true);
}
public function pointInBlock(_arg1:block, _arg2:Number, _arg3:Number):Boolean{
if ((((_arg2 >= _arg1.x)) && ((_arg2 <= (_arg1.x + _arg1.width))))){
if ((((_arg3 >= _arg1.y)) && ((_arg3 <= (_arg1.y + _arg1.height))))){
return (true);
};
};
return (false);
}
public function MouseDown(_arg1:MouseEvent):void{
var _local2:int;
var _local3:int;
if (((((ismouseDown) || (!(Player1Turn)))) || (blocks_moved))){
return;
};
ismouseDown = true;
var _local4:Boolean;
_local2 = 0;
while (_local2 < curwidth) {
_local3 = 0;
while (_local3 < curheight) {
if (blocks[_local2][_local3] != null){
if (((((_arg1.stageX - x) > blocks[_local2][_local3].x)) && (((_arg1.stageX - x) < (blocks[_local2][_local3].x + blocks[_local2][_local3].width))))){
if (((((_arg1.stageY - y) > blocks[_local2][_local3].y)) && (((_arg1.stageY - y) < (blocks[_local2][_local3].y + blocks[_local2][_local3].height))))){
blockPath.push(blocks[_local2][_local3]);
iCurPicID = blocks[_local2][_local3].blockPic.currentFrame;
addPathPoint((blocks[_local2][_local3].x + 30), (blocks[_local2][_local3].y + 30));
startDragged = true;
_local4 = true;
};
};
};
_local3++;
};
_local2++;
};
if (!_local4){
ismouseDown = false;
};
}
public function UndoPath(_arg1:MouseEvent):void{
var _local2:alphaFader;
if (((blocks_moved) || (!(startDragged)))){
return;
};
moveScore = 0;
ismouseDown = false;
startDragged = false;
for each (_local2 in pathElem) {
if (((_local2.visible) && ((_local2.fadeSpeed > 0.099)))){
_local2.startFadeOut();
};
};
while (blockPath.length > 0) {
blockPath.pop();
};
}
public function addPathPoint(_arg1:Number, _arg2:Number):void{
var _local3:pathPointPlayer;
var _local4:pathPointEnemy;
if (Player1Turn){
_local3 = new pathPointPlayer();
_local3.x = _arg1;
_local3.y = _arg2;
_local3.startFadeIn();
addChild(_local3);
pathElem.push(_local3);
moveScore++;
} else {
_local4 = new pathPointEnemy();
_local4.x = _arg1;
_local4.y = _arg2;
_local4.startFadeIn();
addChild(_local4);
pathElem.push(_local4);
};
}
public function getChilds(_arg1:AIPoint, _arg2:Array):Array{
var _local3:Array;
var _local4:*;
var _local5:int;
var _local6:*;
_local3 = new Array();
_local4 = _arg1.x;
_local5 = _arg1.y;
if ((((((((_local4 > 0)) && ((_local5 > 0)))) && (!((blocks[(_local4 - 1)][(_local5 - 1)] == null))))) && ((blocks[(_local4 - 1)][(_local5 - 1)].blockPic.currentFrame == _arg1.picID)))){
if (notInLists((_local4 - 1), (_local5 - 1), _arg2)){
_local6 = new AIPoint();
_local6.x = (_local4 - 1);
_local6.y = (_local5 - 1);
_local6.lx = _local4;
_local6.ly = _local5;
_local6.cost = (_arg1.cost + 1);
_local6.picID = _arg1.picID;
_local3.push(_local6);
};
};
if ((((((_local5 > 0)) && (!((blocks[_local4][(_local5 - 1)] == null))))) && ((blocks[_local4][(_local5 - 1)].blockPic.currentFrame == _arg1.picID)))){
if (notInLists(_local4, (_local5 - 1), _arg2)){
_local6 = new AIPoint();
_local6.x = _local4;
_local6.y = (_local5 - 1);
_local6.lx = _local4;
_local6.ly = _local5;
_local6.cost = (_arg1.cost + 1);
_local6.picID = _arg1.picID;
_local3.push(_local6);
};
};
if ((((((((_local4 < (curwidth - 1))) && ((_local5 > 0)))) && (!((blocks[(_local4 + 1)][(_local5 - 1)] == null))))) && ((blocks[(_local4 + 1)][(_local5 - 1)].blockPic.currentFrame == _arg1.picID)))){
if (notInLists((_local4 + 1), (_local5 - 1), _arg2)){
_local6 = new AIPoint();
_local6.x = (_local4 + 1);
_local6.y = (_local5 - 1);
_local6.lx = _local4;
_local6.ly = _local5;
_local6.cost = (_arg1.cost + 1);
_local6.picID = _arg1.picID;
_local3.push(_local6);
};
};
if ((((((_local4 > 0)) && (!((blocks[(_local4 - 1)][_local5] == null))))) && ((blocks[(_local4 - 1)][_local5].blockPic.currentFrame == _arg1.picID)))){
if (notInLists((_local4 - 1), _local5, _arg2)){
_local6 = new AIPoint();
_local6.x = (_local4 - 1);
_local6.y = _local5;
_local6.lx = _local4;
_local6.ly = _local5;
_local6.cost = (_arg1.cost + 1);
_local6.picID = _arg1.picID;
_local3.push(_local6);
};
};
if ((((((_local4 < (curwidth - 1))) && (!((blocks[(_local4 + 1)][_local5] == null))))) && ((blocks[(_local4 + 1)][_local5].blockPic.currentFrame == _arg1.picID)))){
if (notInLists((_local4 + 1), _local5, _arg2)){
_local6 = new AIPoint();
_local6.x = (_local4 + 1);
_local6.y = _local5;
_local6.lx = _local4;
_local6.ly = _local5;
_local6.cost = (_arg1.cost + 1);
_local6.picID = _arg1.picID;
_local3.push(_local6);
};
};
if ((((((((_local4 > 0)) && ((_local5 < (curheight - 1))))) && (!((blocks[(_local4 - 1)][(_local5 + 1)] == null))))) && ((blocks[(_local4 - 1)][(_local5 + 1)].blockPic.currentFrame == _arg1.picID)))){
if (notInLists((_local4 - 1), (_local5 + 1), _arg2)){
_local6 = new AIPoint();
_local6.x = (_local4 - 1);
_local6.y = (_local5 + 1);
_local6.lx = _local4;
_local6.ly = _local5;
_local6.cost = (_arg1.cost + 1);
_local6.picID = _arg1.picID;
_local3.push(_local6);
};
};
if ((((((_local5 < (curheight - 1))) && (!((blocks[_local4][(_local5 + 1)] == null))))) && ((blocks[_local4][(_local5 + 1)].blockPic.currentFrame == _arg1.picID)))){
if (notInLists(_local4, (_local5 + 1), _arg2)){
_local6 = new AIPoint();
_local6.x = _local4;
_local6.y = (_local5 + 1);
_local6.lx = _local4;
_local6.ly = _local5;
_local6.cost = (_arg1.cost + 1);
_local6.picID = _arg1.picID;
_local3.push(_local6);
};
};
if ((((((((_local4 < (curwidth - 1))) && ((_local5 < (curheight - 1))))) && (!((blocks[(_local4 + 1)][(_local5 + 1)] == null))))) && ((blocks[(_local4 + 1)][(_local5 + 1)].blockPic.currentFrame == _arg1.picID)))){
if (notInLists((_local4 + 1), (_local5 + 1), _arg2)){
_local6 = new AIPoint();
_local6.x = (_local4 + 1);
_local6.y = (_local5 + 1);
_local6.lx = _local4;
_local6.ly = _local5;
_local6.cost = (_arg1.cost + 1);
_local6.picID = _arg1.picID;
_local3.push(_local6);
};
};
return (_local3);
}
public function addPathLineHelp(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{
var _local6:pathLine;
var _local5:* = Math.sqrt((((_arg1 - _arg3) * (_arg1 - _arg3)) + ((_arg2 - _arg4) * (_arg2 - _arg4))));
_local6 = new pathLine();
_local6.x = _arg1;
_local6.y = _arg2;
_local6.width = _local5;
_local6.rotation = ((Math.atan2((_arg4 - _arg2), (_arg3 - _arg1)) / Math.PI) * 180);
_local6.startFadeIn();
_local6.fadeSpeed = 0.04;
_local6.fadeMaxLimit = 0.5;
addChild(_local6);
pathElem.push(_local6);
}
function applyBomb():void{
thisGame.abMessageEnemy.startFadeIn();
thisGame.abMessageEnemy.abName.text = "Bomb";
thisGame.abMessageEnemy.abPic.gotoAndStop(1);
thisGame.enemy.expa = (thisGame.enemy.expa - thisGame.enemy.abArray[0].cost);
PlayerApplyAbility = true;
thisGame.addFxExplode((thisGame.playerPic.x + (thisGame.playerPic.width * 0.5)), (thisGame.playerPic.y + (thisGame.playerPic.width * 0.5)));
thisGame.sndmap.PlaySnd("abBomb");
if (thisGame.player.isShield){
thisGame.sndmap.PlaySnd("shieldBlocked");
thisGame.player.isShield = false;
thisGame.uiShield.startFadeOut();
return;
};
thisGame.player.life = (thisGame.player.life - thisGame.enemy.upgParamBomb[thisGame.enemy.abArray[0].upg_level]);
thisGame.player.lifeShow = thisGame.player.life;
}
public function calcBestPathFrom(_arg1:int, _arg2:int, _arg3:int):Array{
var _local6:Array;
var _local4:* = blocks[_arg1][_arg2].blockPic.currentFrame;
var _local5:* = new AIPoint();
_local5.x = _arg1;
_local5.y = _arg2;
_local5.lx = -1;
_local5.ly = -1;
_local5.cost = 1;
_local5.picID = _local4;
_local6 = new Array();
if (maxList == null){
maxList = new Array();
};
while (maxList.length) {
maxList.pop();
};
nextNode(_local5, _local6, 0, 0);
return (maxList);
}
public function removeBlock(_arg1:block):void{
var _local2:int;
var _local3:int;
_local2 = 0;
while (_local2 < curwidth) {
_local3 = 0;
while (_local3 < curheight) {
if (blocks[_local2][_local3] != null){
if (blocks[_local2][_local3] == _arg1){
blocks[_local2].splice(_local3, 1, null);
removeChild(_arg1);
return;
};
};
_local3++;
};
_local2++;
};
}
function applyHealth():void{
thisGame.abMessageEnemy.startFadeIn();
thisGame.abMessageEnemy.abName.text = "Health";
thisGame.abMessageEnemy.abPic.gotoAndStop(2);
thisGame.enemy.expa = (thisGame.enemy.expa - thisGame.enemy.abArray[1].cost);
PlayerApplyAbility = true;
thisGame.sndmap.PlaySnd("abHealth");
thisGame.addFxHealth(ageMath.Random((thisGame.enemyPic.x + 25), ((thisGame.enemyPic.x + thisGame.enemyPic.width) - 25)), ageMath.Random((thisGame.enemyPic.y + 25), ((thisGame.enemyPic.y + thisGame.enemyPic.width) - 25)));
thisGame.addFxHealth(ageMath.Random((thisGame.enemyPic.x + 25), ((thisGame.enemyPic.x + thisGame.enemyPic.width) - 25)), ageMath.Random((thisGame.enemyPic.y + 25), ((thisGame.enemyPic.y + thisGame.enemyPic.width) - 25)));
thisGame.addFxHealth(ageMath.Random((thisGame.enemyPic.x + 25), ((thisGame.enemyPic.x + thisGame.enemyPic.width) - 25)), ageMath.Random((thisGame.enemyPic.y + 25), ((thisGame.enemyPic.y + thisGame.enemyPic.width) - 25)));
thisGame.addFxHealth(ageMath.Random((thisGame.enemyPic.x + 25), ((thisGame.enemyPic.x + thisGame.enemyPic.width) - 25)), ageMath.Random((thisGame.enemyPic.y + 25), ((thisGame.enemyPic.y + thisGame.enemyPic.width) - 25)));
thisGame.addFxHealth(ageMath.Random((thisGame.enemyPic.x + 25), ((thisGame.enemyPic.x + thisGame.enemyPic.width) - 25)), ageMath.Random((thisGame.enemyPic.y + 25), ((thisGame.enemyPic.y + thisGame.enemyPic.width) - 25)));
thisGame.addFxHealth(ageMath.Random((thisGame.enemyPic.x + 25), ((thisGame.enemyPic.x + thisGame.enemyPic.width) - 25)), ageMath.Random((thisGame.enemyPic.y + 25), ((thisGame.enemyPic.y + thisGame.enemyPic.width) - 25)));
thisGame.addFxHealth(ageMath.Random((thisGame.enemyPic.x + 25), ((thisGame.enemyPic.x + thisGame.enemyPic.width) - 25)), ageMath.Random((thisGame.enemyPic.y + 25), ((thisGame.enemyPic.y + thisGame.enemyPic.width) - 25)));
thisGame.enemy.life = (thisGame.enemy.life + thisGame.enemy.upgParamHealth[thisGame.enemy.abArray[1].upg_level]);
}
public function canCreate(_arg1:int, _arg2:int):Boolean{
var _local3:int;
var _local4:int;
var _local5:Number = (_arg1 * (60 + 5));
var _local6:Number = (_arg2 * (60 + 5));
_local3 = 0;
while (_local3 < curwidth) {
_local4 = 0;
while (_local4 < curheight) {
if (blocks[_local3][_local4] != null){
if (((((((pointInBlock(blocks[_local3][_local4], _local5, _local6)) || (pointInBlock(blocks[_local3][_local4], (_local5 + 60), _local6)))) || (pointInBlock(blocks[_local3][_local4], _local5, (_local6 + 60))))) || (pointInBlock(blocks[_local3][_local4], (_local5 + 60), (_local6 + 60))))){
return (false);
};
};
_local4++;
};
_local3++;
};
return (true);
}
public function Update(_arg1:Event):void{
var _local2:int;
var _local3:int;
var _local4:alphaFader;
_local2 = 0;
while (_local2 < curwidth) {
_local3 = 0;
while (_local3 < curheight) {
if (blocks[_local2][_local3] != null){
if (blocks[_local2][_local3].visible == false){
removeBlock(blocks[_local2][_local3]);
};
};
_local3++;
};
_local2++;
};
for each (_local4 in pathElem) {
if (_local4.visible == false){
removePathElem(_local4);
};
};
_local2 = 0;
while (_local2 < curwidth) {
_local3 = (curheight - 2);
while (_local3 >= 0) {
if (blocks[_local2][_local3] != null){
if (blocks[_local2][(_local3 + 1)] == null){
blocks[_local2][(_local3 + 1)] = blocks[_local2][_local3];
blocks[_local2][_local3] = null;
};
};
_local3--;
};
_local2++;
};
blocks_moved = false;
_local2 = 0;
while (_local2 < curwidth) {
_local3 = 0;
while (_local3 < curheight) {
if (blocks[_local2][_local3] != null){
if ((((blocks[_local2][_local3].alpha < 1)) || (blocks[_local2][_local3].fadingout))){
blocks_moved = true;
};
if (blocks[_local2][_local3].y < (_local3 * (60 + 5))){
blocks[_local2][_local3].y = (blocks[_local2][_local3].y + 10);
blocks_moved = true;
if (blocks[_local2][_local3].y >= (_local3 * (60 + 5))){
thisGame.sndmap.PlaySnd(("toyBlock0" + ageMath.RandomInt(1, 5)));
};
} else {
blocks[_local2][_local3].y = (_local3 * (60 + 5));
};
};
_local3++;
};
_local2++;
};
_local2 = 0;
while (_local2 < curwidth) {
if (blocks[_local2][0] == null){
blocks_moved = true;
if (canCreate(_local2, -1)){
generateBlock(_local2, 0, true);
};
};
_local2++;
};
if (!blocks_moved){
numBlocksTypes = 6;
};
}
public function showBestMove():void{
var _local1:int;
var _local2:int;
var _local3:AIPoint;
var _local4:Array;
if (bestList == null){
bestList = new Array();
};
while (bestList.length) {
bestList.pop();
};
_local1 = 0;
while (_local1 < curwidth) {
_local2 = 0;
while (_local2 < curheight) {
if (blocks[_local1][_local2] != null){
_local4 = calcBestPathFrom(_local1, _local2, 15);
trace((_local4.length + " "));
if (_local4.length >= 3){
bestList.push(cloneArrayPoints(_local4));
};
};
_local2++;
};
_local1++;
};
bestList.sort(orderBestList);
showBestPath = bestList[0];
for each (_local3 in showBestPath) {
if (_local3 != null){
if ((((_local3.x == -1)) && ((_local3.y == -1)))){
break;
};
if (((!((_local3.lx == -1))) && (!((_local3.ly == -1))))){
addPathLineHelp((blocks[_local3.lx][_local3.ly].x + 30), (blocks[_local3.lx][_local3.ly].y + 30), (blocks[_local3.x][_local3.y].x + 30), (blocks[_local3.x][_local3.y].y + 30));
};
addPathPointHelp((blocks[_local3.x][_local3.y].x + 30), (blocks[_local3.x][_local3.y].y + 30));
};
};
}
public function drop():void{
var _local1:int;
var _local2:int;
releaseAllPathElem();
if (Player1Turn){
helpTimer.start();
};
_local1 = 0;
while (_local1 < curwidth) {
_local2 = 0;
while (_local2 < curheight) {
if (blocks[_local1][_local2] != null){
blocks[_local1][_local2].startFadeOut();
};
_local2++;
};
_local1++;
};
}
function applyShield():void{
thisGame.abMessageEnemy.startFadeIn();
thisGame.abMessageEnemy.abName.text = "Shield";
thisGame.abMessageEnemy.abPic.gotoAndStop(6);
thisGame.enemy.expa = (thisGame.enemy.expa - thisGame.enemy.abArray[3].cost);
PlayerApplyAbility = true;
thisGame.sndmap.PlaySnd("abShield");
thisGame.uiShield2.startFadeIn();
thisGame.uiShield2.fadeSpeed = 0.07;
thisGame.enemy.isShield = true;
}
public function removePathElem(_arg1:alphaFader):void{
var _local2:Number;
_local2 = 0;
while (_local2 < pathElem.length) {
if (pathElem[_local2] == _arg1){
pathElem.splice(_local2, 1);
break;
};
_local2++;
};
removeChild(_arg1);
}
function applyView():void{
thisGame.abMessageEnemy.startFadeIn();
thisGame.abMessageEnemy.abName.text = "View";
thisGame.abMessageEnemy.abPic.gotoAndStop(4);
thisGame.enemy.expa = (thisGame.enemy.expa - thisGame.enemy.abArray[5].cost);
PlayerApplyAbility = true;
thisGame.sndmap.PlaySnd("abView");
releaseAllPathElem();
showBestMove();
}
public function BlockAllowed(_arg1:int, _arg2:int, _arg3:Array):Boolean{
var _local4:AIPoint;
if (!(((Math.abs((_arg3[(_arg3.length - 1)].x - _arg1)) < 1.01)) && ((Math.abs((_arg3[(_arg3.length - 1)].y - _arg2)) < 1.01)))){
return (false);
};
var _local5:int;
_local5 = (_arg3.length - 2);
while (_local5 > 0) {
if (ageMath.IsLinesCross(_arg1, _arg2, _arg3[(_arg3.length - 1)].x, _arg3[(_arg3.length - 1)].y, _arg3[_local5].x, _arg3[_local5].y, _arg3[(_local5 - 1)].x, _arg3[(_local5 - 1)].y)){
return (false);
};
_local5--;
};
return (true);
}
public function releaseBlocks(_arg1:Boolean):void{
var _local2:alphaFader;
var _local3:MouseEvent;
var _local4:int;
var _local5:Boolean;
if (((!(Player1Turn)) && (!(_arg1)))){
return;
};
if (blockPath.length < 3){
UndoPath(_local3);
return;
};
blocks_moved = true;
startDragged = false;
iCurPicID = -1;
releaseAllPathElem();
if (Player1Turn){
if (blockPath.length >= 8){
ach.getAch("Damage");
};
if (thisGame.enemy.isShield){
thisGame.enemy.isShield = false;
thisGame.uiShield2.startFadeOut();
thisGame.sndmap.PlaySnd("shieldBlocked");
thisGame.player.life = (thisGame.player.life - Math.round((blockPath.length * thisGame.enemy.upgParamShield[thisGame.enemy.abArray[3].upg_level])));
} else {
_local5 = false;
_local4 = 0;
while (_local4 < blockPath.length) {
if (!Math.round(ageMath.Random(0, thisGame.enemy.upgParamLuck[thisGame.enemy.upg_level_luck]))){
_local5 = true;
thisGame.addFxLuck(false);
} else {
thisGame.enemy.life--;
};
_local4++;
};
if (_local5){
thisGame.sndmap.PlaySnd("Lucked");
};
if (blockPath.length > 3){
thisGame.player.expa = (thisGame.player.expa + blockPath.length);
};
};
if ((((blockPath.length >= 6)) || ((thisGame.enemy.life <= 0)))){
thisGame.sndmap.PlaySnd(((thisGame.enemy.picID + "_bad_") + ageMath.RandomInt(1, 2)));
};
} else {
if (thisGame.player.isShield){
thisGame.player.isShield = false;
thisGame.uiShield.startFadeOut();
thisGame.sndmap.PlaySnd("shieldBlocked");
trace(("damage=" + thisGame.player.abArray[3].upg_level));
thisGame.enemy.life = (thisGame.enemy.life - Math.round((blockPath.length * thisGame.player.upgParamShield[thisGame.player.abArray[3].upg_level])));
} else {
_local5 = false;
_local4 = 0;
while (_local4 < blockPath.length) {
if (!Math.round(ageMath.Random(0, thisGame.player.upgParamLuck[thisGame.player.upg_level_luck]))){
thisGame.addFxLuck(true);
_local5 = true;
} else {
thisGame.player.life--;
};
_local4++;
};
if (_local5){
thisGame.sndmap.PlaySnd("Lucked");
};
if (blockPath.length > 3){
thisGame.enemy.expa = (thisGame.enemy.expa + blockPath.length);
};
};
if (blockPath.length >= 6){
thisGame.sndmap.PlaySnd(((thisGame.enemy.picID + "_good_") + ageMath.RandomInt(1, 2)));
};
};
for each (_local2 in blockPath) {
if (_local2.visible){
_local2.startFadeOut();
if (_local2.extraBonus.currentFrame > 1){
if (_local2.extraBonus.currentFrame == 2){
if (Player1Turn){
thisGame.player.expa = (thisGame.player.expa + 1);
} else {
thisGame.enemy.expa = (thisGame.enemy.expa + 1);
};
};
if (_local2.extraBonus.currentFrame == 3){
if (Player1Turn){
thisGame.player.expa = (thisGame.player.expa + 2);
} else {
thisGame.enemy.expa = (thisGame.enemy.expa + 2);
};
};
if (_local2.extraBonus.currentFrame == 4){
if (Player1Turn){
if (thisGame.player.life < thisGame.player.lifeMax){
thisGame.player.life = (thisGame.player.life + 3);
};
} else {
if (thisGame.enemy.life < thisGame.enemy.lifeMax){
thisGame.enemy.life = (thisGame.enemy.life + 3);
};
};
};
if (_local2.extraBonus.currentFrame == 5){
if (Player1Turn){
thisGame.player.lev_cash = (thisGame.player.lev_cash + 2);
};
};
if (_local2.extraBonus.currentFrame == 6){
if (Player1Turn){
thisGame.player.lev_cash = (thisGame.player.lev_cash + 3);
};
};
if (_local2.extraBonus.currentFrame == 7){
if (Player1Turn){
thisGame.player.lev_cash = (thisGame.player.lev_cash + 5);
};
};
};
};
};
PlayerApplyAbility = false;
thisGame.player.total_turns++;
if (skipTurn){
if (Player1Turn){
thisGame.uiRev.startFadeOut();
thisGame.uiRev.zoomedIn = false;
thisGame.player.player_turns++;
thisGame.enemy.expa = (thisGame.enemy.expa - Math.round((thisGame.enemy.expa * thisGame.player.upgParamDoubleTurn[thisGame.player.abArray[2].upg_level])));
if (thisGame.enemy.expa < 0){
thisGame.enemy.expa = 0;
};
} else {
thisGame.uiRev2.startFadeOut();
thisGame.uiRev2.zoomedIn = false;
thisGame.player.expa = (thisGame.player.expa - Math.round((thisGame.player.expa * thisGame.enemy.upgParamDoubleTurn[thisGame.enemy.abArray[2].upg_level])));
if (thisGame.player.expa < 0){
thisGame.player.expa = 0;
};
};
skipTurn = false;
} else {
if (Player1Turn){
thisGame.player.player_turns++;
};
Player1Turn = !(Player1Turn);
};
if (Player1Turn){
if (thisGame.player.max_chain < blockPath.length){
thisGame.player.max_chain = blockPath.length;
};
thisGame.player.av_chain = (thisGame.player.av_chain + blockPath.length);
};
while (blockPath.length > 0) {
blockPath.pop();
};
if (Player1Turn){
helpTimer.start();
} else {
helpTimer.stop();
};
turn_tested = false;
}
function calcCanMakeTurn():Boolean{
var _local1:int;
var _local2:int;
var _local3:Array;
_local1 = 0;
while (_local1 < curwidth) {
_local2 = 0;
while (_local2 < curheight) {
if (blocks[_local1][_local2] != null){
_local3 = calcBestPathFrom(_local1, _local2, 15);
if (_local3.length >= 3){
return (true);
};
};
_local2++;
};
_local1++;
};
return (false);
}
function cloneArrayPoints(_arg1:Array):Array{
var _local2:AIPoint;
var _local3:Array = new Array();
for each (_local2 in _arg1) {
_local3.push(_local2.clone());
};
return (_local3);
}
}
}//package main
Section 28
//GameFrame (main.GameFrame)
package main {
import flash.filters.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class GameFrame extends MovieClip {
public var menuChooseChar:menuChooseChar;
public var menuWinner:menuWinner;
public var menuChoose:menuChoose;
public var tip:hlpTip;
public var menuMain:menuMain;
public var menuCredits:menuMainCredits;
public var inGame:game;
public function GameFrame(){
addFrameScript(0, frame1);
}
public function buttWinBack_Click(_arg1:MouseEvent):void{
inGame.sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
menuChoose.startFadeIn();
menuMain.updateContButt();
menuWinner.startFadeOut();
}
public function buttExit_Click(_arg1:MouseEvent):void{
inGame.sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
menuChoose.startFadeIn();
musicEnv.fadeTo("musMenu");
}
public function buttMoreGames_Click(_arg1:MouseEvent):void{
inGame.sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
ach.getAch("sponsor");
mainGlobal.toUrl("moreGames", "http://onlinegamer.cc/cat/6/Puzzle/newest-1.html");
}
public function click_myLogoCred2(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.anegmetex.com"), "_blank");
}
public function buttHard_Click(_arg1:MouseEvent):void{
inGame.sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
menuChoose.startFadeIn();
menuChooseChar.startFadeOut();
menuChooseChar.moveDiffToScr = false;
menuChooseChar.fader50perc.startFadeOut();
inGame.player.init();
inGame.player.createCookie((14 + menuChooseChar.moveID), 2, 0, 0);
inGame.player.loadCookie();
}
public function buttNewGame_Click(_arg1:MouseEvent):void{
menuMain.startFadeOut();
menuChooseChar.startFadeIn();
inGame.sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
}
public function buttBack_Click(_arg1:MouseEvent):void{
inGame.sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
menuMain.startFadeIn();
menuMain.updateContButt();
menuChoose.startFadeOut();
}
public function buttContinue_Click(_arg1:MouseEvent):void{
if (!menuMain.buttContinue.enabled){
return;
};
inGame.sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
inGame.player.loadCookie();
menuChoose.startFadeIn();
menuMain.startFadeOut();
}
public function buttNorm_Click(_arg1:MouseEvent):void{
inGame.sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
menuChoose.startFadeIn();
menuChooseChar.startFadeOut();
menuChooseChar.moveDiffToScr = false;
menuChooseChar.fader50perc.startFadeOut();
inGame.player.init();
inGame.player.createCookie((14 + menuChooseChar.moveID), 1, 0, 0);
inGame.player.loadCookie();
}
public function buttAch_Click(_arg1:MouseEvent):void{
menuChoose.achPanel.moveToScr = true;
menuChoose.fader50perc.startFadeIn();
menuChoose.achPanel.init();
inGame.sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
}
public function buttCredits_Click(_arg1:MouseEvent):void{
inGame.sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
menuCredits.startFadeIn();
}
public function buttEasy_Click(_arg1:MouseEvent):void{
inGame.sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
menuChoose.startFadeIn();
menuChooseChar.startFadeOut();
menuChooseChar.moveDiffToScr = false;
menuChooseChar.fader50perc.startFadeOut();
inGame.player.init();
inGame.player.createCookie((14 + menuChooseChar.moveID), 0, 0, 0);
inGame.player.loadCookie();
}
public function click_buttCredBack(_arg1:MouseEvent){
inGame.sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
menuCredits.startFadeOut();
}
function frame1(){
menuChoose.visible = false;
menuChooseChar.visible = false;
inGame.visible = false;
menuWinner.visible = false;
menuCredits.visible = false;
menuChoose.thisgame = inGame;
menuChooseChar.thisgame = inGame;
menuChoose.upgradePanel.thisgame = inGame;
inGame.upgradePanel.thisgame = inGame;
menuMain.thisgame = inGame;
addEventListener(MouseEvent.MOUSE_MOVE, MouseMove);
menuMain.myCR.buttonMode = true;
menuMain.myCR.mouseChildren = false;
menuMain.myCR.addEventListener(MouseEvent.CLICK, clickCR);
menuMain.spLogo.buttonMode = true;
menuMain.spLogo.addEventListener(MouseEvent.CLICK, click_spLogo);
menuCredits.myLogoCred.buttonMode = true;
menuCredits.myLogoCred.addEventListener(MouseEvent.CLICK, click_myLogoCred);
menuCredits.myLogoCred2.buttonMode = true;
menuCredits.myLogoCred2.addEventListener(MouseEvent.CLICK, click_myLogoCred2);
menuCredits.buttCredBack.addEventListener(MouseEvent.CLICK, click_buttCredBack);
menuWinner.buttWinBack.addEventListener(MouseEvent.CLICK, buttWinBack_Click);
menuChooseChar.buttBack.addEventListener(MouseEvent.CLICK, buttCharBack_Click);
menuChooseChar.menuDiff.diffEasy.addEventListener(MouseEvent.CLICK, buttEasy_Click);
menuChooseChar.menuDiff.diffNorm.addEventListener(MouseEvent.CLICK, buttNorm_Click);
menuChooseChar.menuDiff.diffHard.addEventListener(MouseEvent.CLICK, buttHard_Click);
menuChoose.buttBack.addEventListener(MouseEvent.CLICK, buttBack_Click);
menuChoose.buttUpgrade.addEventListener(MouseEvent.CLICK, buttUpgrade_Click);
menuChoose.upgradePanel.buttClose.addEventListener(MouseEvent.CLICK, buttUpgradeClose_Click);
menuChoose.buttAch.addEventListener(MouseEvent.CLICK, buttAch_Click);
menuChoose.achPanel.buttClose.addEventListener(MouseEvent.CLICK, buttAchClose_Click);
menuMain.buttNewGame.addEventListener(MouseEvent.CLICK, buttNewGame_Click);
menuMain.buttContinue.addEventListener(MouseEvent.CLICK, buttContinue_Click);
menuMain.buttCredits.addEventListener(MouseEvent.CLICK, buttCredits_Click);
menuMain.buttMoreGames.addEventListener(MouseEvent.CLICK, buttMoreGames_Click);
inGame.gameMenu.buttExit.addEventListener(MouseEvent.CLICK, buttExit_Click);
}
public function buttUpgrade_Click(_arg1:MouseEvent):void{
menuChoose.upgradePanel.moveToScr = true;
menuChoose.fader50perc.startFadeIn();
menuChoose.upgradePanel.init(inGame.player);
inGame.sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
}
public function buttAchClose_Click(_arg1:MouseEvent):void{
menuChoose.achPanel.moveToScr = false;
menuChoose.fader50perc.startFadeOut();
inGame.sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
}
public function MouseMove(_arg1:MouseEvent):void{
tip.mousePosX = _arg1.stageX;
tip.mousePosY = _arg1.stageY;
}
public function clickCR(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.anegmetex.com"), "_blank");
}
public function buttCharBack_Click(_arg1:MouseEvent):void{
inGame.sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
menuMain.startFadeIn();
menuMain.updateContButt();
menuChooseChar.startFadeOut();
}
public function buttUpgradeClose_Click(_arg1:MouseEvent):void{
menuChoose.upgradePanel.moveToScr = false;
menuChoose.fader50perc.startFadeOut();
inGame.sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
inGame.player.createCookie();
}
public function click_myLogoCred(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.anegmetex.com"), "_blank");
}
public function click_spLogo(_arg1:MouseEvent){
ach.getAch("sponsor");
mainGlobal.toUrl("inMenuLogo");
}
}
}//package main
Section 29
//gameMenu (main.gameMenu)
package main {
import flash.filters.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import fl.motion.*;
public class gameMenu extends MovieClip {
public var musOnOff:TextField;
var mousePosX:int;
public var buttExit:SimpleButton;
public var buttMusic:SimpleButton;
var mousePosY:int;
public var sndOnOff:TextField;
public var buttQuality:SimpleButton;
public var thisGame:game;
public var quaTxt:TextField;
public var buttSound:SimpleButton;
public function gameMenu(){
addFrameScript(0, frame1);
addEventListener(Event.ENTER_FRAME, Update);
}
public function buttQuality_Click(_arg1:MouseEvent):void{
if (quaTxt.text == "LOW"){
stage.quality = "medium";
quaTxt.text = "GOOD";
} else {
if (quaTxt.text == "GOOD"){
stage.quality = "high";
quaTxt.text = "BEST";
} else {
stage.quality = "low";
quaTxt.text = "LOW";
};
};
thisGame.sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
}
public function buttSound_Click(_arg1:MouseEvent):void{
if (sndOnOff.text == "OFF"){
sndOnOff.text = "ON";
thisGame.sndmap.vol = 0.9;
} else {
sndOnOff.text = "OFF";
thisGame.sndmap.vol = 0;
};
thisGame.sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
}
public function Update(_arg1:Event):void{
if ((((((((((((MovieClip(parent).fader50perc.visible == false)) && ((MovieClip(parent).helpFrame.visible == false)))) && ((mousePosX >= 0)))) && ((mousePosX <= 149)))) && ((mousePosY >= (y - 20))))) && ((mousePosY <= (y + height))))){
if (y >= 457){
thisGame.sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
};
y = ageMath.Lerp(y, 327, 0.2);
} else {
y = ageMath.Lerp(y, 458, 0.2);
};
}
function frame1(){
buttMusic.addEventListener(MouseEvent.CLICK, buttMusic_Click);
buttSound.addEventListener(MouseEvent.CLICK, buttSound_Click);
buttQuality.addEventListener(MouseEvent.CLICK, buttQuality_Click);
}
public function buttMusic_Click(_arg1:MouseEvent):void{
if (musOnOff.text == "OFF"){
musOnOff.text = "ON";
mainGlobal.PlayMusic();
} else {
musOnOff.text = "OFF";
mainGlobal.PauseMusic();
};
thisGame.sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
}
}
}//package main
Section 30
//helpFrame (main.helpFrame)
package main {
import flash.filters.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class helpFrame extends alphaFader {
public function helpFrame(){
addFrameScript(0, frame1);
}
function frame1(){
this.minInfoLimit = 1;
this.maxInfoLimit = 6;
hlpNext.addEventListener(MouseEvent.CLICK, hlpNext_Click);
hlpPrev.addEventListener(MouseEvent.CLICK, hlpPrev_Click);
hlpClose.addEventListener(MouseEvent.CLICK, hlpClose_Click);
dontShow.buttonMode = true;
dontShow.addEventListener(MouseEvent.CLICK, dontShow_Click);
addEventListener(Event.ENTER_FRAME, Update);
}
public function hlpClose_Click(_arg1:MouseEvent):void{
game(parent).sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
startFadeOut();
}
public function dontShow_Click(_arg1:MouseEvent):void{
if (dontShow.currentFrame == 1){
dontShow.gotoAndStop(2);
game(parent).player.saveCookieDontShowHelp(true);
} else {
dontShow.gotoAndStop(1);
game(parent).player.saveCookieDontShowHelp(false);
};
}
public function hlpNext_Click(_arg1:MouseEvent):void{
if (!hlpNext.enabled){
return;
};
game(parent).sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
inf.gotoAndStop((inf.currentFrame + 1));
}
public function Update(_arg1:Event):void{
txtPage.text = ((inf.currentFrame.toString() + "/") + this.maxInfoLimit);
var _local2:ColorMatrix = new ColorMatrix();
var _local3:ColorMatrix = new ColorMatrix();
_local3.adjustBrightness(0);
_local2.adjustBrightness(-100);
var _local4:Array = hlpPrev.filters;
if (inf.currentFrame == this.minInfoLimit){
_local4[0] = new ColorMatrixFilter(_local2.matrix);
hlpPrev.enabled = false;
} else {
_local4[0] = new ColorMatrixFilter(_local3.matrix);
hlpPrev.enabled = true;
};
hlpPrev.filters = _local4;
_local4 = hlpNext.filters;
if (inf.currentFrame == this.maxInfoLimit){
_local4[0] = new ColorMatrixFilter(_local2.matrix);
hlpNext.enabled = false;
} else {
_local4[0] = new ColorMatrixFilter(_local3.matrix);
hlpNext.enabled = true;
};
hlpNext.filters = _local4;
}
public function hlpPrev_Click(_arg1:MouseEvent):void{
if (!hlpPrev.enabled){
return;
};
game(parent).sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
inf.gotoAndStop((inf.currentFrame - 1));
}
}
}//package main
Section 31
//hlpTip (main.hlpTip)
package main {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class hlpTip extends alphaFader {
var isStartFadeIn:Boolean;// = false
public var bg:MovieClip;
var mousePosX:int;
var mousePosY:int;
public var tipInfo:TextField;
public var manaInfo:TextField;
var isStartFadeOut:Boolean;// = false
public var tipTitle:TextField;
public function hlpTip(){
addFrameScript(0, frame1);
mouseEnabled = false;
mouseChildren = false;
addEventListener(Event.ENTER_FRAME, Update);
fadeSpeed = 0.2;
}
public function setTxtToAbility(_arg1:int, _arg2:int, _arg3:Boolean=true, _arg4:Boolean=true){
var _local5:TextFormat = new TextFormat();
var _local6:TextFormat = new TextFormat();
var _local7:TextFormat = new TextFormat();
_local5.color = 0xFF0000;
_local6.color = 0xFFFFFF;
_local7.color = 0xFF00;
if (_arg1 == 0){
tipTitle.text = "Life";
manaInfo.text = "----------------";
if (_arg2 == 0){
tipInfo.text = "Increases the maximum number of lives to 30";
} else {
if (_arg2 == 1){
tipInfo.text = "Increases the maximum number of lives to 35";
} else {
if (_arg2 == 2){
tipInfo.text = "Increases the maximum number of lives to 44";
} else {
if (_arg2 == 3){
tipInfo.text = "Increases the maximum number of lives to 55";
} else {
if (_arg2 == 4){
tipInfo.text = "Increases the maximum number of lives to 60";
} else {
if (_arg2 == 5){
tipInfo.text = "Increases the maximum number of lives to 65";
} else {
tipInfo.text = "Maximum reached";
};
};
};
};
};
};
} else {
if (_arg1 == 1){
tipTitle.text = "Luck";
manaInfo.text = "----------------";
if (_arg2 == 0){
tipInfo.text = "Increases luck to 1 out of 1000.\nLuck makes it possible to receive less damage from the opponent.";
} else {
if (_arg2 == 1){
tipInfo.text = "Increases luck to 1 out of 12.\nLuck makes it possible to receive less damage from the opponent.";
} else {
if (_arg2 == 2){
tipInfo.text = "Increases luck to 1 out of 10.\nLuck makes it possible to receive less damage from the opponent.";
} else {
if (_arg2 == 3){
tipInfo.text = "Increases luck to 1 out of 8.\nLuck makes it possible to receive less damage from the opponent.";
} else {
if (_arg2 == 4){
tipInfo.text = "Increases luck to 1 out of 6.\nLuck makes it possible to receive less damage from the opponent.";
} else {
if (_arg2 == 5){
tipInfo.text = "Increases luck to 1 out of 3.\nLuck makes it possible to receive less damage from the opponent.";
} else {
tipInfo.text = "Maximum reached";
};
};
};
};
};
};
} else {
if (_arg1 == 2){
tipTitle.text = "Spell 'View'";
manaInfo.text = "Mana cost: 5";
if (_arg2 == 0){
tipInfo.text = "This spell isn't avalible.";
} else {
if (_arg2 == 1){
tipInfo.text = "Shows the best path on the board";
} else {
tipInfo.text = "Maximum reached";
};
};
} else {
if (_arg1 == 3){
tipTitle.text = "Spell 'Shield'";
manaInfo.text = "Mana cost: 10";
if (_arg2 == 0){
tipInfo.text = "This spell isn't avalible.";
} else {
if (_arg2 == 1){
tipInfo.text = "Protects from any opponent's damage on the current move.\nAlso opponent don't recieve mana on this move.";
} else {
if (_arg2 == 2){
tipInfo.text = "Protects from any opponent's damage on the current move.\nAlso opponent don't recieve mana on this move.\nUpgrade 1: Opponent receives himself 25% of his damage.";
} else {
if (_arg2 == 3){
tipInfo.text = "Protects from any opponent's damage on the current move.\nAlso opponent don't recieve mana on this move.\nUpgrade 2: Opponent receives himself 50% of his damage.";
} else {
tipInfo.text = "Maximum reached";
};
};
};
};
};
};
};
};
if (_arg1 == 4){
tipTitle.text = "Spell 'Drop Board'";
manaInfo.text = "Mana cost: 10";
if (_arg2 == 0){
tipInfo.text = "This spell isn't avalible.";
} else {
if (_arg2 == 1){
tipInfo.text = "Generates new blocks on the board.";
} else {
if (_arg2 == 2){
tipInfo.text = "Generates new blocks on the board\nUpgrade 1: Generates only 5 types of blocks of 6.";
} else {
if (_arg2 == 3){
tipInfo.text = "Generates new blocks on the board\nUpgrade 2: Generates only 4 types of blocks of 6.";
} else {
tipInfo.text = "Maximum reached";
};
};
};
};
};
if (_arg1 == 5){
tipTitle.text = "Spell 'Double Move'";
manaInfo.text = "Mana cost: 15";
if (_arg2 == 0){
tipInfo.text = "This spell isn't avalible.";
} else {
if (_arg2 == 1){
tipInfo.text = "You can make a move twice.";
} else {
if (_arg2 == 2){
tipInfo.text = "You can make a move twice.\nUpgrade 1: At the first of yours turn, your opponent loses 25% of mana.";
} else {
if (_arg2 == 3){
tipInfo.text = "You can make a move twice.\nUpgrade 2: At the first of yours turn, your opponent loses 50% of mana.";
} else {
tipInfo.text = "Maximum reached";
};
};
};
};
};
if (_arg1 == 6){
tipTitle.text = "Spell 'Health'";
manaInfo.text = "Mana cost: 15";
if (_arg2 == 0){
tipInfo.text = "This spell isn't avalible.";
} else {
if (_arg2 == 1){
tipInfo.text = "Restores your lives.\nAdd 5 points to your lives.";
} else {
if (_arg2 == 2){
tipInfo.text = "Restores your lives.\nUpgrade 1: Add 10 points to your lives.";
} else {
if (_arg2 == 3){
tipInfo.text = "Restores your lives.\nUpgrade 2: Add 15 points to your lives.";
} else {
tipInfo.text = "Maximum reached";
};
};
};
};
};
if (_arg1 == 7){
tipTitle.text = "Spell 'Bomb'";
manaInfo.text = "Mana cost: 15";
if (_arg2 == 0){
tipInfo.text = "This spell isn't avalible.";
} else {
if (_arg2 == 1){
tipInfo.text = "Adds additional damage to your opponent.\nAdd 5 points of damage to your opponent.";
} else {
if (_arg2 == 2){
tipInfo.text = "Adds additional damage to your opponent.\nUpgrade 1: Add 8 points of damage to your opponent.";
} else {
if (_arg2 == 3){
tipInfo.text = "Adds additional damage to your opponent.\nUpgrade 2: Add 12 points of damage to your opponent.";
} else {
tipInfo.text = "Maximum reached";
};
};
};
};
};
bg.height = (((Math.abs(bg.y) + Math.abs(tipInfo.y)) + tipInfo.textHeight) + 12);
if (_arg3){
manaInfo.setTextFormat(_local6);
} else {
manaInfo.setTextFormat(_local5);
};
if (_arg4){
tipTitle.setTextFormat(_local7);
} else {
tipTitle.setTextFormat(_local5);
manaInfo.text = "This spell isn't available yet.";
tipInfo.text = "Spells can be purchased for cash in the upgrade menu.";
bg.height = (((Math.abs(bg.y) + Math.abs(tipInfo.y)) + tipInfo.textHeight) + 12);
manaInfo.setTextFormat(_local6);
};
}
function frame1(){
visible = false;
cacheAsBitmap = true;
}
public function hideTip(){
visible = false;
alpha = 1;
isStartFadeOut = true;
isStartFadeIn = false;
}
public function Update(_arg1:Event):void{
if (!visible){
return;
};
x = ageMath.Lerp(x, (mousePosX + 16), 0.8);
y = ageMath.Lerp(y, (mousePosY + 16), 0.8);
if (x < 0){
x = 0;
};
if (y < 0){
y = 0;
};
if ((x + width) > 640){
x = (640 - width);
};
if ((y + bg.height) > 480){
y = (480 - bg.height);
};
}
public function showTip(){
visible = true;
alpha = 1;
isStartFadeIn = true;
isStartFadeOut = false;
}
}
}//package main
Section 32
//LuckFX (main.LuckFX)
package main {
public dynamic class LuckFX extends alphaFader {
public function LuckFX(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
visible = false;
}
}
}//package main
Section 33
//mainGlobal (main.mainGlobal)
package main {
import flash.net.*;
public dynamic class mainGlobal {
public static var _url:String;
public static var isCookieExist:Boolean = false;
public static var noAds:Boolean = false;
public static function checkLocal(_arg1:Boolean=false):void{
if (_url.indexOf("http://") != -1){
} else {
if (_arg1){
navigateToURL(new URLRequest("http://onlinegamer.cc/Puzzle/698/Wizards-Puzzle-War.html?utm_source=WizWar&utm_medium=checkLocalToGame"), "_blank");
} else {
navigateToURL(new URLRequest("http://onlinegamer.cc?utm_source=WizWar&utm_medium=checkLocal"), "_blank");
};
};
}
public static function toUrl(_arg1:String, _arg2:String="http://onlinegamer.cc"):void{
navigateToURL(new URLRequest(((_arg2 + "?utm_source=WizWar&utm_medium=") + _arg1)), "_blank");
}
public static function PauseMusic():void{
musicEnv.musEnable = false;
musicEnv.played(false);
}
public static function PlayMusic():void{
musicEnv.musEnable = true;
musicEnv.played(true);
}
}
}//package main
Section 34
//menuChoose (main.menuChoose)
package main {
import flash.filters.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import fl.motion.*;
public class menuChoose extends alphaFader {
public var buttUpgrade:SimpleButton;
public var pic01:MovieClip;
public var pic02:MovieClip;
public var pic03:MovieClip;
public var pic04:MovieClip;
public var pic05:MovieClip;
public var pic06:MovieClip;
public var pic07:MovieClip;
public var pic09:MovieClip;
public var pic08:MovieClip;
public var thisgame:game;
public var buttBack:SimpleButton;
public var achPanel:achPanel;
public var spLogo:MovieClip;
public var pic10:MovieClip;
public var pic11:MovieClip;
public var pic12:MovieClip;
public var pic13:MovieClip;
public var pic15:MovieClip;
var moveID:int;
public var pic14:MovieClip;
public var pInfo:MovieClip;
public var upgradePanel:upgradePanel;
public var txtComplete:TextField;
var tArr:Array;
public var diffInfo:TextField;
public var fxLen:MovieClip;
public var playerPic:MovieClip;
var plstatArr:Array;
public var buttAch:SimpleButton;
public var fader50perc:fader50perc;
var picArr:Array;
public function menuChoose(){
var _local1:int;
var _local2:*;
var _local3:int;
tArr = new Array();
super();
addFrameScript(0, frame1);
picArr = new Array();
plstatArr = new Array();
tArr.push("Easy");
tArr.push("Normal");
tArr.push("Hard");
picArr.push(pic01);
picArr.push(pic02);
picArr.push(pic03);
picArr.push(pic04);
picArr.push(pic05);
picArr.push(pic06);
picArr.push(pic07);
picArr.push(pic08);
picArr.push(pic09);
picArr.push(pic10);
picArr.push(pic11);
picArr.push(pic12);
picArr.push(pic13);
picArr.push(pic14);
picArr.push(pic15);
upgradePanel.buttUpgNext.visible = false;
fader50perc.visible = false;
_local1 = 0;
while (_local1 < picArr.length) {
picArr[_local1].txt.text = ("Level " + (_local1 + 1));
_local2 = new playerStat();
if ((((_local1 >= 0)) && ((_local1 <= 1)))){
_local2.upg_level_life = 0;
} else {
if ((((_local1 >= 2)) && ((_local1 <= 3)))){
_local2.upg_level_life = 1;
} else {
if ((((_local1 >= 4)) && ((_local1 <= 5)))){
_local2.upg_level_life = 2;
} else {
if ((((_local1 >= 6)) && ((_local1 <= 8)))){
_local2.upg_level_life = 3;
} else {
if ((((_local1 >= 9)) && ((_local1 <= 11)))){
_local2.upg_level_life = 4;
} else {
if (_local1 >= 12){
_local2.upg_level_life = 5;
};
};
};
};
};
};
_local2.lifeMax = _local2.life;
_local2.expa = 0;
_local2.picID = (_local1 + 1);
if ((((_local1 >= 0)) && ((_local1 <= 2)))){
_local2.AI = (8 - _local1);
} else {
if ((((_local1 >= 3)) && ((_local1 <= 5)))){
_local2.AI = 3;
} else {
if (_local1 >= 6){
_local2.AI = 0;
};
};
};
_local2.upg_level_luck = int(ageMath.RemapVal(_local1, 0, 14, 0, 5));
_local3 = (_local1 + 1);
if (_local3 < 8){
_local2.abArray[0].upg_level = 0;
} else {
if ((((_local3 >= 8)) && ((_local3 <= 10)))){
_local2.abArray[0].upg_level = 1;
} else {
if ((((_local3 == 11)) || ((_local3 == 12)))){
_local2.abArray[0].upg_level = 2;
} else {
if (_local3 >= 13){
_local2.abArray[0].upg_level = 3;
};
};
};
};
if (_local3 < 8){
_local2.abArray[1].upg_level = 0;
} else {
if ((((_local3 >= 8)) && ((_local3 <= 10)))){
_local2.abArray[1].upg_level = 1;
} else {
if (_local3 == 11){
_local2.abArray[1].upg_level = 2;
} else {
if (_local3 >= 12){
_local2.abArray[1].upg_level = 3;
};
};
};
};
if (_local3 < 5){
_local2.abArray[2].upg_level = 0;
} else {
if ((((_local3 >= 5)) && ((_local3 <= 8)))){
_local2.abArray[2].upg_level = 1;
} else {
if ((((_local3 >= 9)) && ((_local3 <= 10)))){
_local2.abArray[2].upg_level = 2;
} else {
if (_local3 >= 11){
_local2.abArray[2].upg_level = 3;
};
};
};
};
if (_local3 < 3){
_local2.abArray[3].upg_level = 0;
} else {
if ((((_local3 >= 3)) && ((_local3 <= 6)))){
_local2.abArray[3].upg_level = 1;
} else {
if ((((_local3 >= 6)) && ((_local3 <= 9)))){
_local2.abArray[3].upg_level = 2;
} else {
if (_local3 >= 10){
_local2.abArray[3].upg_level = 3;
};
};
};
};
if (_local3 < 4){
_local2.abArray[4].upg_level = 0;
} else {
if ((((_local3 >= 4)) && ((_local3 <= 7)))){
_local2.abArray[4].upg_level = 1;
} else {
if ((((_local3 >= 7)) && ((_local3 <= 10)))){
_local2.abArray[4].upg_level = 2;
} else {
if (_local3 >= 11){
_local2.abArray[4].upg_level = 3;
};
};
};
};
if (_local3 < 2){
_local2.abArray[5].upg_level = 0;
} else {
if (_local3 >= 2){
_local2.abArray[5].upg_level = 1;
};
};
plstatArr.push(_local2);
_local1++;
};
fxLen.addEventListener(MouseEvent.MOUSE_UP, picClick);
fxLen.buttonMode = true;
addEventListener(Event.ENTER_FRAME, Update);
addEventListener(MouseEvent.MOUSE_MOVE, MouseMove);
}
function picClick(_arg1:MouseEvent):void{
if (((fader50perc.visible) || ((moveID > (thisgame.player.curCompLevel - 1))))){
return;
};
startFadeOut();
thisgame.startFadeIn();
thisgame.startLevel(moveID);
fxLen.x = -999999;
mainGlobal.checkLocal(true);
}
public function click_spLogo(_arg1:MouseEvent){
ach.getAch("sponsor");
mainGlobal.toUrl("inChooseMenuLogo");
}
function frame1(){
spLogo.buttonMode = true;
spLogo.addEventListener(MouseEvent.CLICK, click_spLogo);
}
public function Update(_arg1:Event):void{
var _local4:int;
var _local7:int;
var _local8:Array;
if (!visible){
return;
};
var _local2:ColorMatrix = new ColorMatrix();
var _local3:ColorMatrix = new ColorMatrix();
_local2.reset();
_local3.reset();
_local3.adjustSaturation(0);
_local3.adjustBrightness(-1);
_local3.adjustContrast(-0.2);
diffInfo.text = tArr[thisgame.player.diffLevel];
playerPic.picRow.gotoAndStop(thisgame.player.picID);
pInfo.iCash.text = (thisgame.player.cash.toString() + "cr");
pInfo.iLife.text = ((thisgame.player.upgParamLife[thisgame.player.upg_level_life] + "/") + thisgame.player.upgParamLife[(thisgame.player.upgParamLife.length - 2)]);
pInfo.iLuck.text = ((thisgame.player.upg_level_luck + "/") + (thisgame.player.upgParamLuck.length - 2));
pInfo.iView.text = ((thisgame.player.abArray[5].upg_level + "/") + (thisgame.player.upgParamView.length - 1));
pInfo.iShield.text = ((thisgame.player.abArray[3].upg_level + "/") + (thisgame.player.upgParamShield.length - 1));
pInfo.iDrop.text = ((thisgame.player.abArray[4].upg_level + "/") + (thisgame.player.upgParamDrop.length - 1));
pInfo.iDMove.text = ((thisgame.player.abArray[2].upg_level + "/") + (thisgame.player.upgParamDoubleTurn.length - 1));
pInfo.iHealth.text = ((thisgame.player.abArray[1].upg_level + "/") + (thisgame.player.upgParamHealth.length - 1));
pInfo.iBomb.text = ((thisgame.player.abArray[0].upg_level + "/") + (thisgame.player.upgParamBomb.length - 1));
_local4 = 0;
while (_local4 < picArr.length) {
_local8 = picArr[_local4].filters;
if (_local4 <= (thisgame.player.curCompLevel - 1)){
_local8[0] = new ColorMatrixFilter(_local2.matrix);
if (_local4 < (thisgame.player.curCompLevel - 1)){
picArr[_local4].mark.visible = true;
} else {
picArr[_local4].mark.visible = false;
};
} else {
_local8[0] = new ColorMatrixFilter(_local3.matrix);
picArr[_local4].mark.visible = false;
};
picArr[_local4].filters = _local8;
_local4++;
};
var _local5:int;
_local5 = (_local5 + Math.round(ageMath.RemapVal(thisgame.player.curCompLevel, 1, 13, 0, 70)));
var _local6:int;
_local7 = 0;
while (_local7 < 14) {
if (ach.arr[_local7].active){
_local6++;
};
_local7++;
};
_local5 = (_local5 + Math.round(ageMath.RemapVal(_local6, 0, 14, 0, 30)));
if (_local5 > 100){
_local5 = 100;
};
txtComplete.text = (("Game complete " + _local5) + "%");
}
public function MouseMove(_arg1:MouseEvent):void{
var _local2:int;
var _local3:Boolean;
if (fader50perc.visible){
return;
};
_local2 = 0;
while (_local2 < picArr.length) {
if (_local2 <= (thisgame.player.curCompLevel - 1)){
if (picArr[_local2].hitTestPoint(_arg1.stageX, _arg1.stageY)){
moveID = _local2;
_local3 = true;
};
};
_local2++;
};
if (!_local3){
fxLen.x = -999999;
} else {
fxLen.x = picArr[moveID].x;
fxLen.y = picArr[moveID].y;
};
}
}
}//package main
Section 35
//menuChooseChar (main.menuChooseChar)
package main {
import flash.filters.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import fl.motion.*;
public class menuChooseChar extends alphaFader {
public var menuDiff:MovieClip;
public var warn:MovieClip;
public var thisgame:game;
public var moveDiffToScr:Boolean;// = false
public var buttBack:SimpleButton;
public var fxLen:MovieClip;
public var pl1:MovieClip;
public var pl2:MovieClip;
public var fader50perc:fader50perc;
var moveID:int;
var picArr:Array;
public function menuChooseChar(){
picArr = new Array();
super();
addFrameScript(0, frame1);
picArr.push(pl1);
picArr.push(pl2);
fxLen.addEventListener(MouseEvent.MOUSE_UP, picClick);
fxLen.buttonMode = true;
fader50perc.visible = false;
addEventListener(Event.ENTER_FRAME, Update);
addEventListener(MouseEvent.MOUSE_MOVE, MouseMove);
menuDiff.buttBack.addEventListener(MouseEvent.CLICK, buttDiffBack_Click);
}
public function MouseMove(_arg1:MouseEvent):void{
var _local2:int;
var _local3:Boolean;
if (fader50perc.visible){
return;
};
_local2 = 0;
while (_local2 < picArr.length) {
if ((((((((_arg1.stageX >= picArr[_local2].x)) && ((_arg1.stageX <= (picArr[_local2].x + 128))))) && ((_arg1.stageY >= picArr[_local2].y)))) && ((_arg1.stageY <= (picArr[_local2].y + 365))))){
moveID = _local2;
_local3 = true;
};
_local2++;
};
pl1.gotoAndStop(1);
pl2.gotoAndStop(1);
if (!_local3){
fxLen.x = -999999;
} else {
picArr[moveID].gotoAndStop(2);
if (moveID == 0){
fxLen.x = 198;
fxLen.y = 215;
} else {
fxLen.x = 446;
fxLen.y = 228;
};
};
}
function picClick(_arg1:MouseEvent):void{
fxLen.x = -999999;
thisgame.sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
mainClass(root).allmc.inGame.sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
mainClass(root).allmc.menuChoose.startFadeIn();
startFadeOut();
mainClass(root).allmc.inGame.player.init();
mainClass(root).allmc.inGame.player.createCookie((16 + moveID), 1, 0, 0);
mainClass(root).allmc.inGame.player.loadCookie();
ach.initAch();
}
function frame1(){
}
function buttDiffBack_Click(_arg1:MouseEvent):void{
thisgame.sndmap.PlaySnd(("paper0" + ageMath.RandomInt(1, 4)));
moveDiffToScr = false;
fader50perc.startFadeOut();
}
public function Update(_arg1:Event):void{
if (mainGlobal.isCookieExist){
warn.visible = true;
} else {
warn.visible = false;
};
if (moveDiffToScr){
menuDiff.y = ageMath.Lerp(menuDiff.y, ((480 - menuDiff.height) * 0.5), 0.2);
} else {
menuDiff.y = ageMath.Lerp(menuDiff.y, 500, 0.2);
};
}
}
}//package main
Section 36
//menuMain (main.menuMain)
package main {
import flash.filters.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import fl.motion.*;
public class menuMain extends alphaFader {
public var buttCredits:SimpleButton;
public var spLogo:MovieClip;
public var fbButt:SimpleButton;
public var twButt:SimpleButton;
public var thisgame:game;
public var buttMoreGames:SimpleButton;
public var buttContinue:SimpleButton;
public var myCR:MovieClip;
public var buttNewGame:SimpleButton;
public function menuMain(){
addFrameScript(0, frame1);
thisgame = GameFrame(parent).inGame;
updateContButt();
addEventListener(Event.ENTER_FRAME, Update);
}
function frame1(){
twButt.addEventListener(MouseEvent.CLICK, click_twButt);
fbButt.addEventListener(MouseEvent.CLICK, click_fbButt);
}
public function click_fbButt(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.facebook.com/OnlineGamer.cc"), "_blank");
}
public function Update(_arg1:Event):void{
}
public function click_twButt(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://twitter.com/#!/OnlineGamer_cc"), "_blank");
}
public function updateContButt(){
var _local1:ColorMatrix;
var _local2:Array;
var _local3:ColorMatrix;
if (!thisgame.player.isCookieExist()){
_local1 = new ColorMatrix();
_local1.adjustBrightness(-100);
_local2 = buttContinue.filters;
buttContinue.enabled = false;
_local2[0] = new ColorMatrixFilter(_local1.matrix);
buttContinue.filters = _local2;
mainGlobal.isCookieExist = false;
} else {
_local3 = new ColorMatrix();
_local3.adjustBrightness(0);
_local2 = buttContinue.filters;
buttContinue.enabled = true;
_local2[0] = new ColorMatrixFilter(_local3.matrix);
buttContinue.filters = _local2;
mainGlobal.isCookieExist = true;
};
}
}
}//package main
Section 37
//menuMainCredits (main.menuMainCredits)
package main {
public dynamic class menuMainCredits extends alphaFader {
}
}//package main
Section 38
//menuWinner (main.menuWinner)
package main {
public dynamic class menuWinner extends alphaFader {
public function menuWinner(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package main
Section 39
//MochiBot (main.MochiBot)
package main {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package main
Section 40
//musicEnv (main.musicEnv)
package main {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.utils.*;
import flash.geom.*;
public dynamic class musicEnv {
static var t1:SoundTransform = new SoundTransform();
public static var curCh:SoundChannel;
public static var timerVolFader:Timer = new Timer(10);
static var mus:Object;
public static var vol:Number = 0.8;
public static var volFadeSpeed:Number = 0.04;
public static var curMusName:String = "";
public static var offVol:Number = 0;
public static var musEnable:Boolean = true;
public static var curVol:Number = 0;
public static var offCh:SoundChannel;
public static var curPos:Number = 0;
public static var isplayed:Boolean = false;
static var t2:SoundTransform = new SoundTransform();
public static function init(){
timerVolFader.stop();
mus = new Object();
mus["musMenu"] = new musMenu();
mus["musLost"] = new musLost();
mus["musGame1"] = new musGame1();
mus["musGame2"] = new musGame2();
mus["musGame3"] = new musGame3();
}
public static function played(_arg1:Boolean):void{
if (_arg1 == isplayed){
return;
};
if (_arg1){
if (curMusName != ""){
fadeTo(curMusName);
};
} else {
isplayed = false;
if (curCh){
curCh.stop();
curPos = curCh.position;
};
if (offCh){
offCh.stop();
};
offVol = 0;
curVol = vol;
if (timerVolFader.running){
timerVolFader.stop();
timerVolFader.removeEventListener(TimerEvent.TIMER, timerVolFader_Timer);
};
};
}
public static function fadeTo(_arg1:String){
var _local2:SoundTransform;
curMusName = _arg1;
if (!musEnable){
return;
};
isplayed = true;
_local2 = new SoundTransform();
_local2.volume = 0;
if (offCh){
offCh.stop();
};
offCh = curCh;
if ((((curMusName == "musLose")) || ((curMusName == "musWin")))){
curCh = mus[_arg1].play(0, 1, _local2);
} else {
curCh = mus[_arg1].play(0, int.MAX_VALUE, _local2);
};
curVol = 0;
offVol = vol;
if (!timerVolFader.running){
timerVolFader.addEventListener(TimerEvent.TIMER, timerVolFader_Timer, false, 0, true);
timerVolFader.start();
};
}
public static function timerVolFader_Timer(_arg1:TimerEvent):void{
if (offCh != null){
if (offVol > 0){
offVol = (offVol - volFadeSpeed);
} else {
offVol = 0;
};
t1.volume = offVol;
offCh.soundTransform = t1;
};
if (((!((curCh == null))) && ((((offVol < (vol / 2))) || ((offCh == null)))))){
if (curVol < vol){
curVol = (curVol + volFadeSpeed);
} else {
curVol = vol;
};
t2.volume = curVol;
curCh.soundTransform = t2;
};
if (curVol > (vol - 0.0001)){
if (offCh != null){
offCh.stop();
};
timerVolFader.stop();
timerVolFader.removeEventListener(TimerEvent.TIMER, timerVolFader_Timer);
};
}
}
}//package main
Section 41
//pathLine (main.pathLine)
package main {
public dynamic class pathLine extends alphaFader {
}
}//package main
Section 42
//pathPoint (main.pathPoint)
package main {
public dynamic class pathPoint extends alphaFader {
}
}//package main
Section 43
//pathPointEnemy (main.pathPointEnemy)
package main {
public dynamic class pathPointEnemy extends alphaFader {
}
}//package main
Section 44
//pathPointPlayer (main.pathPointPlayer)
package main {
public dynamic class pathPointPlayer extends alphaFader {
}
}//package main
Section 45
//playerStat (main.playerStat)
package main {
import flash.geom.*;
public dynamic class playerStat {
var upgParamBomb:Array;
var upgParamView:Array;
var upgAvLevLife:Array;
var upgParamShield:Array;
var diffLevel:int;// = 0
var upgParamDoubleTurn:Array;
var upgParamLuck:Array;
var lev_cash:int;// = 0
var lifeShow:Number;// = 30
var upgAvLevView:Array;
var picID:int;// = 1
var max_chain:int;// = 0
var AI:int;// = 5
var upgAvLevLuck:Array;
var upgCostDrop:Array;
var isShield:Boolean;// = false
var upgCostLife:Array;
var av_chain:Number;// = 0
var abArray:Array;
var player_turns:int;// = 0
var upgAvLevBomb:Array;
var cash:int;// = 0
var lifeMax:Number;// = 30
var upg_level_life:int;// = 1
var curCompLevel:int;// = 1
var upgParamDrop:Array;
var upgAvLevHealth:Array;
var total_turns:int;// = 0
var upgCostHealth:Array;
var upgParamLife:Array;
var upgCostView:Array;
var upgCostShield:Array;
var expa:Number;// = 0
var upgAvLevShield:Array;
var upgCostDoubleTurn:Array;
var upgAvLevDrop:Array;
var upgCostLuck:Array;
var upgCostBomb:Array;
var upgAvLevDoubleTurn:Array;
var life:Number;// = 30
var upgParamHealth:Array;
var upg_level_luck:int;// = 1
public function playerStat(){
upgParamLife = [30, 40, 50, 60, 75, 90, -1];
upgParamLuck = [200, 12, 10, 8, 6, 3, -1];
upgParamView = [1, -1];
upgParamShield = [0, 0, 0.25, 0.5];
upgParamDrop = [0, 0, 1, 2];
upgParamDoubleTurn = [0, 0, 0.25, 0.5];
upgParamHealth = [0, 5, 10, 15];
upgParamBomb = [0, 5, 10, 15];
upgCostLife = [35, 45, 55, 65, 75, -1];
upgCostLuck = [35, 45, 55, 60, 65, -1];
upgCostView = [15, -1];
upgCostShield = [30, 45, 55, -1];
upgCostDrop = [30, 45, 55, -1];
upgCostDoubleTurn = [30, 45, 55, -1];
upgCostHealth = [45, 55, 65, -1];
upgCostBomb = [45, 55, 65, -1];
upgAvLevLife = [1, 1, 1, 1, 1, -1];
upgAvLevLuck = [1, 1, 1, 1, 1, -1];
upgAvLevView = [1, -1];
upgAvLevShield = [3, 3, 3, -1];
upgAvLevDrop = [4, 4, 4, -1];
upgAvLevDoubleTurn = [5, 5, 5, -1];
upgAvLevHealth = [7, 7, 7, -1];
upgAvLevBomb = [9, 9, 9, -1];
super();
abArray = new Array();
abArray.push(new abStat(0, 15));
abArray.push(new abStat(0, 15));
abArray.push(new abStat(0, 15));
abArray.push(new abStat(0, 10));
abArray.push(new abStat(0, 10));
abArray.push(new abStat(0, 5));
}
public function createCookie(_arg1:int=-1, _arg2:int=-1, _arg3:int=-1, _arg4:int=-1){
if (_arg1 < 0){
_arg1 = picID;
};
if (_arg2 < 0){
_arg2 = diffLevel;
};
if (_arg3 < 0){
_arg3 = upg_level_life;
};
if (_arg4 < 0){
_arg4 = upg_level_luck;
};
var _local5:Cookie = new Cookie("wizPuzzleGame_Save");
_local5.putNoFlush("lifeMax", upgParamLife[_arg3]);
_local5.putNoFlush("picID", _arg1);
_local5.putNoFlush("upg_level_life", _arg3);
_local5.putNoFlush("upg_level_luck", _arg4);
_local5.putNoFlush("cash", cash);
_local5.putNoFlush("diffLevel", _arg2);
_local5.putNoFlush("curCompLevel", curCompLevel);
var _local6:int;
_local6 = 0;
while (_local6 < abArray.length) {
_local5.putNoFlush(("upg_level" + _local6), abArray[_local6].upg_level);
_local6++;
};
_local5.flushData();
}
public function loadCookie(){
ach.loadAch();
var _local1:Cookie = new Cookie("wizPuzzleGame_Save");
if (_local1.getSize() == 0){
trace("no saved found...");
return;
};
lifeMax = int(_local1.get("lifeMax"));
picID = int(_local1.get("picID"));
upg_level_life = int(_local1.get("upg_level_life"));
upg_level_luck = int(_local1.get("upg_level_luck"));
cash = int(_local1.get("cash"));
diffLevel = int(_local1.get("diffLevel"));
curCompLevel = int(_local1.get("curCompLevel"));
var _local2:int;
_local2 = 0;
while (_local2 < abArray.length) {
abArray[_local2].upg_level = int(_local1.get(("upg_level" + _local2)));
_local2++;
};
}
public function init():void{
curCompLevel = 1;
cash = 0;
var _local1:int;
_local1 = 0;
while (_local1 < abArray.length) {
abArray[_local1].upg_level = 0;
_local1++;
};
}
public function saveCookieDontShowHelp(_arg1:Boolean):void{
var _local2:Cookie = new Cookie("wizPuzzleGame_Save");
_local2.put("Dont_Show_Help", int(_arg1));
}
public function isCookieExist():Boolean{
var _local1:Cookie = new Cookie("wizPuzzleGame_Save");
return (!((_local1.getSize() == 0)));
}
public function isCookieDontShowHelp():Boolean{
var _local1:Cookie = new Cookie("wizPuzzleGame_Save");
return (Boolean(_local1.get("Dont_Show_Help")));
}
public function clone():playerStat{
var _local1:playerStat = new playerStat();
_local1.life = life;
_local1.lifeShow = lifeShow;
_local1.lifeMax = lifeMax;
_local1.expa = expa;
_local1.picID = picID;
_local1.AI = AI;
_local1.isShield = isShield;
_local1.cash = cash;
_local1.upg_level_life = upg_level_life;
_local1.upg_level_luck = upg_level_luck;
_local1.abArray = cloneArrayAb(abArray);
return (_local1);
}
function cloneArrayAb(_arg1:Array):Array{
var _local2:abStat;
var _local3:Array = new Array();
for each (_local2 in _arg1) {
_local3.push(_local2.clone());
};
return (_local3);
}
}
}//package main
Section 46
//preloader (main.preloader)
package main {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
public dynamic class preloader extends MovieClip {
public var progressBar:MovieClip;
public var playButt:SimpleButton;
var timerLoadAds:Timer;
public var txt:TextField;
public function preloader(){
timerLoadAds = new Timer(4000, 1);
super();
addFrameScript(0, frame1, 1, frame2);
if (0){
this.txt.text = "BAD URL!";
} else {
addEventListener(Event.ENTER_FRAME, Update);
timerLoadAds.start();
};
}
function frame1(){
stop();
}
public function isUrl(_arg1:Array):Boolean{
var _local2:String = stage.loaderInfo.loaderURL;
var _local3:Number = (_local2.indexOf("://") + 3);
var _local4:Number = _local2.indexOf("/", _local3);
var _local5:String = _local2.substring(_local3, _local4);
var _local6:Number = (_local5.lastIndexOf(".") - 1);
var _local7:Number = (_local5.lastIndexOf(".", _local6) + 1);
_local5 = _local5.substring(_local7, _local5.length);
var _local8:int;
while (_local8 < _arg1.length) {
if (_local5 == _arg1[_local8]){
return (true);
};
_local8++;
};
return (false);
}
public function Update(_arg1:Event):void{
var _local2:Number = stage.loaderInfo.bytesLoaded;
var _local3:Number = stage.loaderInfo.bytesTotal;
var _local4 = "";
var _local5:Number = 0;
if (_local3 > 0){
_local5 = Math.floor(((_local2 / _local3) * 100));
_local4 = (((((_local5 + "% (") + Math.round((_local2 / 0x0400))) + "kb / ") + Math.round((_local3 / 0x0400))) + "kb)");
};
if (_local5 == 100){
this.txt.text = "One moment, please...";
} else {
this.txt.text = ("Loading... " + _local4);
};
this.progressBar.gotoAndStop(Math.round(ageMath.RemapVal((_local5 + 1), 1, 100, 1, 100)));
if ((((_local2 == _local3)) || ((_local3 == 0)))){
if (!timerLoadAds.running){
removeEventListener(Event.ENTER_FRAME, Update);
gotoAndStop(2);
};
};
}
function frame2(){
playButt.addEventListener(MouseEvent.CLICK, playButt_Click);
}
public function playButt_Click(_arg1:MouseEvent):void{
if ((parent is MovieClip)){
parent.removeChild(parent["adBox"]);
(parent as MovieClip).play();
mainGlobal.checkLocal();
};
}
}
}//package main
Section 47
//shootFX (main.shootFX)
package main {
import flash.display.*;
public dynamic class shootFX extends MovieClip {
public function shootFX(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
visible = false;
}
}
}//package main
Section 48
//sounds (main.sounds)
package main {
import flash.media.*;
public dynamic class sounds {
var stageRadius:Number;
public var vol:Number;// = 0.9
var snd:Object;
public function PlaySnd(_arg1:String):void{
var _local2:SoundTransform;
_local2 = new SoundTransform();
_local2.volume = vol;
snd[_arg1].play(0, 0, _local2);
}
public function init(){
snd = new Object();
snd["snd_ach"] = new snd_ach();
snd["buysnd"] = new buysnd();
snd["buyno"] = new buyno();
snd["abBomb"] = new snd_abBomb();
snd["abHealth"] = new snd_abHealth();
snd["abRev"] = new snd_abRev();
snd["abDrop"] = new snd_abDrop();
snd["abView"] = new snd_abView();
snd["abShield"] = new snd_abShield();
snd["shieldBlocked"] = new snd_shieldBlocked();
snd["Lucked"] = new snd_Lucked();
snd["goodAttack1"] = new pistolShoot1();
snd["goodAttack2"] = new pistolShoot2();
snd["badAttack1"] = new badAttack1();
snd["badAttack2"] = new badAttack2();
snd["paper01"] = new paper01();
snd["paper02"] = new paper02();
snd["paper03"] = new paper03();
snd["paper04"] = new paper04();
snd["toyBlock01"] = new snd_toyBlock01();
snd["toyBlock02"] = new snd_toyBlock02();
snd["toyBlock03"] = new snd_toyBlock03();
snd["toyBlock04"] = new snd_toyBlock04();
snd["toyBlock05"] = new snd_toyBlock05();
snd["1_bad_1"] = new bads_man_sad_1();
snd["1_bad_2"] = new bads_man_sad_2();
snd["1_good_1"] = new bads_man_happy_1();
snd["1_good_2"] = new bads_man_happy_2();
snd["2_bad_1"] = new bads_woman_sad_1();
snd["2_bad_2"] = new bads_woman_sad_2();
snd["2_good_1"] = new bads_woman_happy_1();
snd["2_good_2"] = new bads_woman_happy_2();
snd["3_bad_1"] = new bads_mandead_sad_1();
snd["3_bad_2"] = new bads_mandead_sad_2();
snd["3_good_1"] = new bads_mandead_happy_1();
snd["3_good_2"] = new bads_mandead_happy_2();
snd["4_bad_1"] = new bads_skel_sad_1();
snd["4_bad_2"] = new bads_skel_sad_2();
snd["4_good_1"] = new bads_skel_happy_1();
snd["4_good_2"] = new bads_skel_happy_2();
snd["5_bad_1"] = new bads_womanlight_sad_1();
snd["5_bad_2"] = new bads_womanlight_sad_2();
snd["5_good_1"] = new bads_womanlight_happy_1();
snd["5_good_2"] = new bads_womanlight_happy_2();
snd["6_bad_1"] = new bad_1();
snd["6_bad_2"] = new bad_2();
snd["6_good_1"] = new good_1();
snd["6_good_2"] = new good_2();
snd["7_bad_1"] = new bads_mandead_sad_1();
snd["7_bad_2"] = new bads_mandead_sad_2();
snd["7_good_1"] = new bads_mandead_happy_1();
snd["7_good_2"] = new bads_mandead_happy_2();
snd["8_bad_1"] = new bads_man_sad_1();
snd["8_bad_2"] = new bads_man_sad_2();
snd["8_good_1"] = new bads_man_happy_1();
snd["8_good_2"] = new bads_man_happy_2();
snd["9_bad_1"] = new bads_woman_sad_1();
snd["9_bad_2"] = new bads_woman_sad_2();
snd["9_good_1"] = new bads_woman_happy_1();
snd["9_good_2"] = new bads_woman_happy_2();
snd["10_bad_1"] = new bad_1();
snd["10_bad_2"] = new bad_2();
snd["10_good_1"] = new good_1();
snd["10_good_2"] = new good_2();
snd["11_bad_1"] = new bads_grund_sad_1();
snd["11_bad_2"] = new bads_grund_sad_1();
snd["11_good_1"] = new bads_grund_happy_1();
snd["11_good_2"] = new bads_grund_happy_2();
snd["12_bad_1"] = new bad_1();
snd["12_bad_2"] = new bad_2();
snd["12_good_1"] = new good_1();
snd["12_good_2"] = new good_2();
snd["13_bad_1"] = new bads_demon_sad_1();
snd["13_bad_2"] = new bads_demon_sad_2();
snd["13_good_1"] = new bads_demon_happy_1();
snd["13_good_2"] = new bads_grund_happy_1();
snd["14_bad_1"] = new bad_1();
snd["14_bad_2"] = new bad_2();
snd["14_good_1"] = new good_1();
snd["14_good_2"] = new good_2();
snd["15_bad_1"] = new bads_skel_sad_1();
snd["15_bad_2"] = new bads_skel_sad_2();
snd["15_good_1"] = new bads_angel_happy_1();
snd["15_good_2"] = new bads_angel_happy_2();
}
}
}//package main
Section 49
//uiRev (main.uiRev)
package main {
public dynamic class uiRev extends uiShield {
public function uiRev(){
addFrameScript(0, frame1);
}
function frame1(){
visible = false;
}
}
}//package main
Section 50
//uiShield (main.uiShield)
package main {
import flash.events.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
public dynamic class uiShield extends alphaFader {
public var zoomedIn;// = true
public function uiShield(){
addEventListener(Event.ENTER_FRAME, Update);
}
public function Update(_arg1:Event):void{
var _local2:Array = filters;
if (zoomedIn){
_local2[1].blurX = ageMath.RemapVal(alpha, 0, 1, 50, 0);
_local2[1].blurY = ageMath.RemapVal(alpha, 0, 1, 50, 0);
} else {
_local2[1].blurX = ageMath.RemapVal(alpha, 1, 0, 0, 50);
_local2[1].blurY = ageMath.RemapVal(alpha, 1, 0, 0, 50);
};
filters = _local2;
}
function timerDelay_Timer(_arg1:TimerEvent):void{
stop();
startFadeOut();
}
}
}//package main
Section 51
//upgradePanel (main.upgradePanel)
package main {
import flash.filters.*;
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.utils.*;
import flash.geom.*;
import fl.motion.*;
public dynamic class upgradePanel extends MovieClip {
public var thisgame:game;
public var upgrade1:MovieClip;
public var moveToScr:Boolean;
public var upgrade3:MovieClip;
public var upgrade4:MovieClip;
public var upgrade5:MovieClip;
public var upgrade6:MovieClip;
public var upgrade7:MovieClip;
public var upgrade8:MovieClip;
public var upgrade2:MovieClip;
public var buttClose:SimpleButton;
public var buttUpgNext:SimpleButton;
var picArr:Array;
public var cashTxt:TextField;
static var mX:Number = 0;
static var mY:Number = 0;
public function upgradePanel(){
picArr = new Array();
picArr.push(upgrade1);
picArr.push(upgrade2);
picArr.push(upgrade3);
picArr.push(upgrade4);
picArr.push(upgrade5);
picArr.push(upgrade6);
picArr.push(upgrade7);
picArr.push(upgrade8);
moveToScr = false;
y = (240 - (height * 0.5));
upgrade1.pic.gotoAndStop(8);
upgrade1.titleTxt.text = "Life";
upgrade1.costTxt.text = "15cr";
setPointsTo(0, upgrade1);
upgrade1.bg.gotoAndStop(1);
upgrade1.infoTxt.visible = false;
upgrade2.pic.gotoAndStop(9);
upgrade2.titleTxt.text = "Luck";
upgrade2.costTxt.text = "25cr";
setPointsTo(0, upgrade2);
upgrade2.bg.gotoAndStop(1);
upgrade2.infoTxt.visible = false;
upgrade3.pic.gotoAndStop(4);
upgrade3.titleTxt.text = "Spell 'View'";
upgrade3.costTxt.text = "15cr";
setPointsTo(0, upgrade3);
upgrade3.bg.gotoAndStop(1);
upgrade3.infoTxt.visible = false;
upgrade4.pic.gotoAndStop(6);
upgrade4.titleTxt.text = "Spell 'Shield'";
upgrade4.costTxt.text = "30cr";
setPointsTo(0, upgrade4);
upgrade4.bg.gotoAndStop(1);
upgrade4.infoTxt.visible = false;
upgrade5.pic.gotoAndStop(5);
upgrade5.titleTxt.text = "Spell 'Drop'";
upgrade5.costTxt.text = "35cr";
setPointsTo(0, upgrade5);
upgrade5.bg.gotoAndStop(1);
upgrade5.infoTxt.visible = false;
upgrade6.pic.gotoAndStop(7);
upgrade6.titleTxt.text = "Spell 'Double Move'";
upgrade6.costTxt.text = "40cr";
setPointsTo(0, upgrade6);
upgrade6.bg.gotoAndStop(1);
upgrade6.infoTxt.visible = false;
upgrade7.pic.gotoAndStop(2);
upgrade7.titleTxt.text = "Spell 'Health'";
upgrade7.costTxt.text = "50cr";
setPointsTo(0, upgrade7);
upgrade7.bg.gotoAndStop(1);
upgrade7.infoTxt.visible = false;
upgrade8.pic.gotoAndStop(1);
upgrade8.titleTxt.text = "Spell 'Bomb'";
upgrade8.costTxt.text = "55cr";
setPointsTo(0, upgrade8);
upgrade8.bg.gotoAndStop(1);
upgrade8.infoTxt.visible = false;
addEventListener(MouseEvent.MOUSE_MOVE, MouseMove);
upgrade1.addEventListener(MouseEvent.MOUSE_DOWN, Mouse_down);
upgrade2.addEventListener(MouseEvent.MOUSE_DOWN, Mouse_down);
upgrade3.addEventListener(MouseEvent.MOUSE_DOWN, Mouse_down);
upgrade4.addEventListener(MouseEvent.MOUSE_DOWN, Mouse_down);
upgrade5.addEventListener(MouseEvent.MOUSE_DOWN, Mouse_down);
upgrade6.addEventListener(MouseEvent.MOUSE_DOWN, Mouse_down);
upgrade7.addEventListener(MouseEvent.MOUSE_DOWN, Mouse_down);
upgrade8.addEventListener(MouseEvent.MOUSE_DOWN, Mouse_down);
addEventListener(Event.ENTER_FRAME, Update);
}
public function setPointsTo(_arg1:int, _arg2:MovieClip):void{
if (_arg1 == 0){
_arg2.p1.gotoAndStop(2);
_arg2.p2.gotoAndStop(2);
_arg2.p3.gotoAndStop(2);
_arg2.p4.gotoAndStop(2);
_arg2.p5.gotoAndStop(2);
} else {
if (_arg1 == 1){
_arg2.p1.gotoAndStop(1);
_arg2.p2.gotoAndStop(2);
_arg2.p3.gotoAndStop(2);
_arg2.p4.gotoAndStop(2);
_arg2.p5.gotoAndStop(2);
} else {
if (_arg1 == 2){
_arg2.p1.gotoAndStop(1);
_arg2.p2.gotoAndStop(1);
_arg2.p3.gotoAndStop(2);
_arg2.p4.gotoAndStop(2);
_arg2.p5.gotoAndStop(2);
} else {
if (_arg1 == 3){
_arg2.p1.gotoAndStop(1);
_arg2.p2.gotoAndStop(1);
_arg2.p3.gotoAndStop(1);
_arg2.p4.gotoAndStop(2);
_arg2.p5.gotoAndStop(2);
} else {
if (_arg1 == 4){
_arg2.p1.gotoAndStop(1);
_arg2.p2.gotoAndStop(1);
_arg2.p3.gotoAndStop(1);
_arg2.p4.gotoAndStop(1);
_arg2.p5.gotoAndStop(2);
} else {
if (_arg1 == 5){
_arg2.p1.gotoAndStop(1);
_arg2.p2.gotoAndStop(1);
_arg2.p3.gotoAndStop(1);
_arg2.p4.gotoAndStop(1);
_arg2.p5.gotoAndStop(1);
};
};
};
};
};
};
}
public function MouseMove(_arg1:MouseEvent):void{
mX = (_arg1.stageX - x);
mY = (_arg1.stageY - y);
}
public function setPointsVisible(_arg1:MovieClip):void{
_arg1.p1.visible = true;
_arg1.p2.visible = true;
_arg1.p3.visible = true;
_arg1.p4.visible = true;
_arg1.p5.visible = true;
_arg1.costTxt.visible = true;
}
public function Mouse_down(_arg1:MouseEvent):void{
var _local2:int;
var _local3:Array = [thisgame.player.upg_level_life, thisgame.player.upg_level_luck, thisgame.player.abArray[5].upg_level, thisgame.player.abArray[3].upg_level, thisgame.player.abArray[4].upg_level, thisgame.player.abArray[2].upg_level, thisgame.player.abArray[1].upg_level, thisgame.player.abArray[0].upg_level];
var _local4:Array = [thisgame.player.upgCostLife[_local3[0]], thisgame.player.upgCostLuck[_local3[1]], thisgame.player.upgCostView[_local3[2]], thisgame.player.upgCostShield[_local3[3]], thisgame.player.upgCostDrop[_local3[4]], thisgame.player.upgCostDoubleTurn[_local3[5]], thisgame.player.upgCostHealth[_local3[6]], thisgame.player.upgCostBomb[_local3[7]]];
var _local5:Array = [thisgame.player.upgAvLevLife[_local3[0]], thisgame.player.upgAvLevLuck[_local3[1]], thisgame.player.upgAvLevView[_local3[2]], thisgame.player.upgAvLevShield[_local3[3]], thisgame.player.upgAvLevDrop[_local3[4]], thisgame.player.upgAvLevDoubleTurn[_local3[5]], thisgame.player.upgAvLevHealth[_local3[6]], thisgame.player.upgAvLevBomb[_local3[7]]];
_local2 = 0;
while (_local2 < picArr.length) {
if ((((_local5[_local2] > thisgame.player.curCompLevel)) || ((_local4[_local2] < 0)))){
} else {
if ((((((((mX >= picArr[_local2].x)) && ((mX <= (picArr[_local2].x + picArr[_local2].width))))) && ((mY >= (picArr[_local2].y + 19))))) && ((mY <= (picArr[_local2].y + picArr[_local2].height))))){
if (_local4[_local2] > thisgame.player.cash){
mainClass(root).allmc.inGame.sndmap.PlaySnd("buyno");
} else {
mainClass(root).allmc.inGame.sndmap.PlaySnd("buysnd");
thisgame.player.cash = (thisgame.player.cash - _local4[_local2]);
if (_local2 == 0){
thisgame.player.upg_level_life++;
} else {
if (_local2 == 1){
thisgame.player.upg_level_luck++;
} else {
if (_local2 == 2){
thisgame.player.abArray[5].upg_level++;
} else {
if (_local2 == 3){
thisgame.player.abArray[3].upg_level++;
} else {
if (_local2 == 4){
thisgame.player.abArray[4].upg_level++;
} else {
if (_local2 == 5){
thisgame.player.abArray[2].upg_level++;
} else {
if (_local2 == 6){
thisgame.player.abArray[1].upg_level++;
} else {
if (_local2 == 7){
thisgame.player.abArray[0].upg_level++;
};
};
};
};
};
};
};
};
init(thisgame.player);
if (thisgame.player.upg_level_life == 5){
ach.getAch("fullHealth");
};
if ((((((((((((thisgame.player.abArray[5].upg_level >= 1)) && ((thisgame.player.abArray[3].upg_level >= 1)))) && ((thisgame.player.abArray[4].upg_level >= 1)))) && ((thisgame.player.abArray[2].upg_level >= 1)))) && ((thisgame.player.abArray[1].upg_level >= 1)))) && ((thisgame.player.abArray[0].upg_level >= 1)))){
ach.getAch("upgrade1");
};
if ((((((((((((thisgame.player.abArray[5].upg_level >= 1)) && ((thisgame.player.abArray[3].upg_level >= 3)))) && ((thisgame.player.abArray[4].upg_level >= 3)))) && ((thisgame.player.abArray[2].upg_level >= 3)))) && ((thisgame.player.abArray[1].upg_level >= 3)))) && ((thisgame.player.abArray[0].upg_level >= 3)))){
ach.getAch("upgrade2");
};
};
};
};
_local2++;
};
}
public function setPointsNotVisible(_arg1:MovieClip):void{
_arg1.p1.visible = false;
_arg1.p2.visible = false;
_arg1.p3.visible = false;
_arg1.p4.visible = false;
_arg1.p5.visible = false;
_arg1.costTxt.visible = false;
}
public function init(_arg1:playerStat):void{
var _local2:Array;
var _local8:int;
var _local3:ColorMatrix = new ColorMatrix();
var _local4:ColorMatrix = new ColorMatrix();
_local3.reset();
_local3.adjustSaturation(0);
_local4.reset();
var _local5:Array = [_arg1.upg_level_life, _arg1.upg_level_luck, _arg1.abArray[5].upg_level, _arg1.abArray[3].upg_level, _arg1.abArray[4].upg_level, _arg1.abArray[2].upg_level, _arg1.abArray[1].upg_level, _arg1.abArray[0].upg_level];
var _local6:Array = [_arg1.upgCostLife[_local5[0]], _arg1.upgCostLuck[_local5[1]], _arg1.upgCostView[_local5[2]], _arg1.upgCostShield[_local5[3]], _arg1.upgCostDrop[_local5[4]], _arg1.upgCostDoubleTurn[_local5[5]], _arg1.upgCostHealth[_local5[6]], _arg1.upgCostBomb[_local5[7]]];
var _local7:Array = [_arg1.upgAvLevLife[_local5[0]], _arg1.upgAvLevLuck[_local5[1]], _arg1.upgAvLevView[_local5[2]], _arg1.upgAvLevShield[_local5[3]], _arg1.upgAvLevDrop[_local5[4]], _arg1.upgAvLevDoubleTurn[_local5[5]], _arg1.upgAvLevHealth[_local5[6]], _arg1.upgAvLevBomb[_local5[7]]];
_local8 = 0;
while (_local8 < picArr.length) {
_local2 = picArr[_local8].filters;
if (_local7[_local8] <= _arg1.curCompLevel){
_local2[1] = new ColorMatrixFilter(_local4.matrix);
picArr[_local8].infoTxt.visible = false;
if (_local6[_local8] > 0){
picArr[_local8].costTxt.text = (_local6[_local8].toString() + "cr");
picArr[_local8].buttonMode = true;
} else {
picArr[_local8].costTxt.text = "FULL";
picArr[_local8].buttonMode = false;
};
setPointsTo(_local5[_local8], picArr[_local8]);
setPointsVisible(picArr[_local8]);
} else {
picArr[_local8].buttonMode = false;
_local2[1] = new ColorMatrixFilter(_local3.matrix);
picArr[_local8].infoTxt.visible = true;
picArr[_local8].costTxt.text = "";
setPointsNotVisible(picArr[_local8]);
};
picArr[_local8].filters = _local2;
_local8++;
};
}
public function Update(_arg1:Event):void{
var _local2:int;
upgrade3.p2.visible = (upgrade3.p3.visible = (upgrade3.p4.visible = (upgrade3.p5.visible = false)));
upgrade4.p4.visible = (upgrade4.p5.visible = false);
upgrade5.p4.visible = (upgrade5.p5.visible = false);
upgrade6.p4.visible = (upgrade6.p5.visible = false);
upgrade7.p4.visible = (upgrade7.p5.visible = false);
upgrade8.p4.visible = (upgrade8.p5.visible = false);
if (moveToScr){
x = ageMath.Lerp(x, (320 - (width * 0.5)), 0.2);
} else {
x = ageMath.Lerp(x, 650, 0.2);
};
var _local3:TextFormat = new TextFormat();
var _local4:TextFormat = new TextFormat();
_local3.color = 0xFF0000;
_local4.color = 0xFFFFFF;
var _local5:Array = [thisgame.player.upg_level_life, thisgame.player.upg_level_luck, thisgame.player.abArray[5].upg_level, thisgame.player.abArray[3].upg_level, thisgame.player.abArray[4].upg_level, thisgame.player.abArray[2].upg_level, thisgame.player.abArray[1].upg_level, thisgame.player.abArray[0].upg_level];
var _local6:Array = [thisgame.player.upgCostLife[_local5[0]], thisgame.player.upgCostLuck[_local5[1]], thisgame.player.upgCostView[_local5[2]], thisgame.player.upgCostShield[_local5[3]], thisgame.player.upgCostDrop[_local5[4]], thisgame.player.upgCostDoubleTurn[_local5[5]], thisgame.player.upgCostHealth[_local5[6]], thisgame.player.upgCostBomb[_local5[7]]];
var _local7:Array = [thisgame.player.upgAvLevLife[_local5[0]], thisgame.player.upgAvLevLuck[_local5[1]], thisgame.player.upgAvLevView[_local5[2]], thisgame.player.upgAvLevShield[_local5[3]], thisgame.player.upgAvLevDrop[_local5[4]], thisgame.player.upgAvLevDoubleTurn[_local5[5]], thisgame.player.upgAvLevHealth[_local5[6]], thisgame.player.upgAvLevBomb[_local5[7]]];
cashTxt.text = (("your cash: " + thisgame.player.cash) + "cr");
var _local8:Boolean;
_local2 = 0;
while (_local2 < picArr.length) {
if (_local7[_local2] > thisgame.player.curCompLevel){
} else {
if (_local6[_local2] > thisgame.player.cash){
picArr[_local2].costTxt.setTextFormat(_local3);
} else {
picArr[_local2].costTxt.setTextFormat(_local4);
};
if ((((((((mX >= picArr[_local2].x)) && ((mX <= (picArr[_local2].x + picArr[_local2].width))))) && ((mY >= (picArr[_local2].y + 19))))) && ((mY <= (picArr[_local2].y + picArr[_local2].height))))){
GameFrame(parent.parent).tip.showTip();
GameFrame(parent.parent).tip.setTxtToAbility(_local2, (_local5[_local2] + 1));
_local8 = true;
if (_local6[_local2] > thisgame.player.cash){
picArr[_local2].bg.gotoAndStop(3);
} else {
picArr[_local2].bg.gotoAndStop(2);
};
} else {
picArr[_local2].bg.gotoAndStop(1);
};
};
_local2++;
};
if (((!(_local8)) && ((x < 642)))){
GameFrame(parent.parent).tip.hideTip();
};
}
}
}//package main
Section 52
//whiteFader (main.whiteFader)
package main {
public dynamic class whiteFader extends alphaFader {
}
}//package main
Section 53
//playbtn (road.playbtn)
package road {
import flash.display.*;
public dynamic class playbtn extends MovieClip {
public var plbtn:SimpleButton;
}
}//package road
Section 54
//_tlpscr_68 (WizPuzzleWar_fla._tlpscr_68)
package WizPuzzleWar_fla {
import flash.display.*;
public dynamic class _tlpscr_68 extends MovieClip {
public function _tlpscr_68(){
addFrameScript(0, frame1);
}
function frame1(){
visible = false;
}
}
}//package WizPuzzleWar_fla
Section 55
//abPics_45 (WizPuzzleWar_fla.abPics_45)
package WizPuzzleWar_fla {
import flash.display.*;
public dynamic class abPics_45 extends MovieClip {
public function abPics_45(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package WizPuzzleWar_fla
Section 56
//bgWallpaper_17 (WizPuzzleWar_fla.bgWallpaper_17)
package WizPuzzleWar_fla {
import flash.display.*;
public dynamic class bgWallpaper_17 extends MovieClip {
public function bgWallpaper_17(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package WizPuzzleWar_fla
Section 57
//bigPl1_112 (WizPuzzleWar_fla.bigPl1_112)
package WizPuzzleWar_fla {
import flash.display.*;
public dynamic class bigPl1_112 extends MovieClip {
public function bigPl1_112(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package WizPuzzleWar_fla
Section 58
//bigPl1s_122 (WizPuzzleWar_fla.bigPl1s_122)
package WizPuzzleWar_fla {
import flash.display.*;
public dynamic class bigPl1s_122 extends MovieClip {
public function bigPl1s_122(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package WizPuzzleWar_fla
Section 59
//bigPl2_111 (WizPuzzleWar_fla.bigPl2_111)
package WizPuzzleWar_fla {
import flash.display.*;
public dynamic class bigPl2_111 extends MovieClip {
public function bigPl2_111(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package WizPuzzleWar_fla
Section 60
//bigPl2s_121 (WizPuzzleWar_fla.bigPl2s_121)
package WizPuzzleWar_fla {
import flash.display.*;
public dynamic class bigPl2s_121 extends MovieClip {
public function bigPl2s_121(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package WizPuzzleWar_fla
Section 61
//blockPic_76 (WizPuzzleWar_fla.blockPic_76)
package WizPuzzleWar_fla {
import flash.display.*;
public dynamic class blockPic_76 extends MovieClip {
public function blockPic_76(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package WizPuzzleWar_fla
Section 62
//dontShowHelp_88 (WizPuzzleWar_fla.dontShowHelp_88)
package WizPuzzleWar_fla {
import flash.display.*;
public dynamic class dontShowHelp_88 extends MovieClip {
public function dontShowHelp_88(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package WizPuzzleWar_fla
Section 63
//extraBonus_77 (WizPuzzleWar_fla.extraBonus_77)
package WizPuzzleWar_fla {
import flash.display.*;
public dynamic class extraBonus_77 extends MovieClip {
public function extraBonus_77(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package WizPuzzleWar_fla
Section 64
//FightBar1_25 (WizPuzzleWar_fla.FightBar1_25)
package WizPuzzleWar_fla {
import flash.display.*;
public dynamic class FightBar1_25 extends MovieClip {
public function FightBar1_25(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package WizPuzzleWar_fla
Section 65
//FightBar2_27 (WizPuzzleWar_fla.FightBar2_27)
package WizPuzzleWar_fla {
import flash.display.*;
public dynamic class FightBar2_27 extends MovieClip {
public function FightBar2_27(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package WizPuzzleWar_fla
Section 66
//fxLen_99 (WizPuzzleWar_fla.fxLen_99)
package WizPuzzleWar_fla {
import flash.display.*;
public dynamic class fxLen_99 extends MovieClip {
public function fxLen_99(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package WizPuzzleWar_fla
Section 67
//helpFrameInfo_67 (WizPuzzleWar_fla.helpFrameInfo_67)
package WizPuzzleWar_fla {
import flash.display.*;
import main.*;
public dynamic class helpFrameInfo_67 extends MovieClip {
public var b3:block;
public var e1:MovieClip;
public var e2:MovieClip;
public var e3:MovieClip;
public var e4:MovieClip;
public var e5:MovieClip;
public var e6:MovieClip;
public var b4:block;
public var b1:block;
public var b2:block;
public function helpFrameInfo_67(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
this.b1.blockPic.gotoAndStop(1);
this.b2.blockPic.gotoAndStop(2);
this.b3.blockPic.gotoAndStop(3);
this.b4.blockPic.gotoAndStop(4);
this.b1.extraBonus.gotoAndStop(2);
this.b2.extraBonus.gotoAndStop(3);
this.b3.extraBonus.gotoAndStop(4);
this.b4.extraBonus.gotoAndStop(5);
this.e1.gotoAndStop(2);
this.e2.gotoAndStop(3);
this.e3.gotoAndStop(4);
this.e4.gotoAndStop(5);
this.e5.gotoAndStop(6);
this.e6.gotoAndStop(7);
}
function frame1(){
stop();
}
}
}//package WizPuzzleWar_fla
Section 68
//notShow_78 (WizPuzzleWar_fla.notShow_78)
package WizPuzzleWar_fla {
import flash.display.*;
public dynamic class notShow_78 extends MovieClip {
public function notShow_78(){
addFrameScript(0, frame1);
}
function frame1(){
visible = false;
}
}
}//package WizPuzzleWar_fla
Section 69
//og_logo_13 (WizPuzzleWar_fla.og_logo_13)
package WizPuzzleWar_fla {
import flash.display.*;
public dynamic class og_logo_13 extends MovieClip {
public function og_logo_13(){
addFrameScript(84, frame85);
}
function frame85(){
stop();
}
}
}//package WizPuzzleWar_fla
Section 70
//og_logo_text_14 (WizPuzzleWar_fla.og_logo_text_14)
package WizPuzzleWar_fla {
import flash.display.*;
public dynamic class og_logo_text_14 extends MovieClip {
public function og_logo_text_14(){
addFrameScript(42, frame43);
}
function frame43(){
stop();
}
}
}//package WizPuzzleWar_fla
Section 71
//onlinegamercc_logo_12 (WizPuzzleWar_fla.onlinegamercc_logo_12)
package WizPuzzleWar_fla {
import flash.display.*;
public dynamic class onlinegamercc_logo_12 extends MovieClip {
public function onlinegamercc_logo_12(){
addFrameScript(237, frame238);
}
function frame238(){
stop();
}
}
}//package WizPuzzleWar_fla
Section 72
//picMark_20 (WizPuzzleWar_fla.picMark_20)
package WizPuzzleWar_fla {
import flash.display.*;
public dynamic class picMark_20 extends MovieClip {
public function picMark_20(){
addFrameScript(0, frame1);
}
function frame1(){
visible = false;
}
}
}//package WizPuzzleWar_fla
Section 73
//toysPicRow_19 (WizPuzzleWar_fla.toysPicRow_19)
package WizPuzzleWar_fla {
import flash.display.*;
public dynamic class toysPicRow_19 extends MovieClip {
public function toysPicRow_19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package WizPuzzleWar_fla
Section 74
//upgradeBarBG_63 (WizPuzzleWar_fla.upgradeBarBG_63)
package WizPuzzleWar_fla {
import flash.display.*;
public dynamic class upgradeBarBG_63 extends MovieClip {
public function upgradeBarBG_63(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package WizPuzzleWar_fla
Section 75
//upgradeBarPoint_64 (WizPuzzleWar_fla.upgradeBarPoint_64)
package WizPuzzleWar_fla {
import flash.display.*;
public dynamic class upgradeBarPoint_64 extends MovieClip {
public function upgradeBarPoint_64(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package WizPuzzleWar_fla
Section 76
//adBoxClass (adBoxClass)
package {
import main.*;
import flash.events.*;
import flash.display.*;
public dynamic class adBoxClass extends MovieClip {
public var myAds:MovieClip;
public function adBoxClass(){
addFrameScript(0, frame1);
}
public function click_Logo(_arg1:MouseEvent){
mainGlobal.toUrl("LogoAds");
}
function frame1(){
myAds.buttonMode = true;
myAds.addEventListener(MouseEvent.CLICK, click_Logo);
}
}
}//package
Section 77
//adMY (adMY)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import main.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class adMY extends MovieClip {
public function adMY(){
addFrameScript(0, frame1);
}
public function clickHandler(_arg1:Event):void{
ach.getAch("sponsor");
navigateToURL(new URLRequest("http://www.onlinegamer.cc?utm_source=Escaped&utm_medium=inWinLoseMenu"), "_blank");
}
function frame1(){
addEventListener(MouseEvent.CLICK, clickHandler);
this.ButtonMode = true;
}
}
}//package
Section 78
//bad_1 (bad_1)
package {
import flash.media.*;
public dynamic class bad_1 extends Sound {
}
}//package
Section 79
//bad_2 (bad_2)
package {
import flash.media.*;
public dynamic class bad_2 extends Sound {
}
}//package
Section 80
//badAttack1 (badAttack1)
package {
import flash.media.*;
public dynamic class badAttack1 extends Sound {
}
}//package
Section 81
//badAttack2 (badAttack2)
package {
import flash.media.*;
public dynamic class badAttack2 extends Sound {
}
}//package
Section 82
//bads_angel_happy_1 (bads_angel_happy_1)
package {
import flash.media.*;
public dynamic class bads_angel_happy_1 extends Sound {
}
}//package
Section 83
//bads_angel_happy_2 (bads_angel_happy_2)
package {
import flash.media.*;
public dynamic class bads_angel_happy_2 extends Sound {
}
}//package
Section 84
//bads_demon_happy_1 (bads_demon_happy_1)
package {
import flash.media.*;
public dynamic class bads_demon_happy_1 extends Sound {
}
}//package
Section 85
//bads_demon_sad_1 (bads_demon_sad_1)
package {
import flash.media.*;
public dynamic class bads_demon_sad_1 extends Sound {
}
}//package
Section 86
//bads_demon_sad_2 (bads_demon_sad_2)
package {
import flash.media.*;
public dynamic class bads_demon_sad_2 extends Sound {
}
}//package
Section 87
//bads_grund_happy_1 (bads_grund_happy_1)
package {
import flash.media.*;
public dynamic class bads_grund_happy_1 extends Sound {
}
}//package
Section 88
//bads_grund_happy_2 (bads_grund_happy_2)
package {
import flash.media.*;
public dynamic class bads_grund_happy_2 extends Sound {
}
}//package
Section 89
//bads_grund_sad_1 (bads_grund_sad_1)
package {
import flash.media.*;
public dynamic class bads_grund_sad_1 extends Sound {
}
}//package
Section 90
//bads_man_happy_1 (bads_man_happy_1)
package {
import flash.media.*;
public dynamic class bads_man_happy_1 extends Sound {
}
}//package
Section 91
//bads_man_happy_2 (bads_man_happy_2)
package {
import flash.media.*;
public dynamic class bads_man_happy_2 extends Sound {
}
}//package
Section 92
//bads_man_sad_1 (bads_man_sad_1)
package {
import flash.media.*;
public dynamic class bads_man_sad_1 extends Sound {
}
}//package
Section 93
//bads_man_sad_2 (bads_man_sad_2)
package {
import flash.media.*;
public dynamic class bads_man_sad_2 extends Sound {
}
}//package
Section 94
//bads_mandead_happy_1 (bads_mandead_happy_1)
package {
import flash.media.*;
public dynamic class bads_mandead_happy_1 extends Sound {
}
}//package
Section 95
//bads_mandead_happy_2 (bads_mandead_happy_2)
package {
import flash.media.*;
public dynamic class bads_mandead_happy_2 extends Sound {
}
}//package
Section 96
//bads_mandead_sad_1 (bads_mandead_sad_1)
package {
import flash.media.*;
public dynamic class bads_mandead_sad_1 extends Sound {
}
}//package
Section 97
//bads_mandead_sad_2 (bads_mandead_sad_2)
package {
import flash.media.*;
public dynamic class bads_mandead_sad_2 extends Sound {
}
}//package
Section 98
//bads_skel_happy_1 (bads_skel_happy_1)
package {
import flash.media.*;
public dynamic class bads_skel_happy_1 extends Sound {
}
}//package
Section 99
//bads_skel_happy_2 (bads_skel_happy_2)
package {
import flash.media.*;
public dynamic class bads_skel_happy_2 extends Sound {
}
}//package
Section 100
//bads_skel_sad_1 (bads_skel_sad_1)
package {
import flash.media.*;
public dynamic class bads_skel_sad_1 extends Sound {
}
}//package
Section 101
//bads_skel_sad_2 (bads_skel_sad_2)
package {
import flash.media.*;
public dynamic class bads_skel_sad_2 extends Sound {
}
}//package
Section 102
//bads_woman_happy_1 (bads_woman_happy_1)
package {
import flash.media.*;
public dynamic class bads_woman_happy_1 extends Sound {
}
}//package
Section 103
//bads_woman_happy_2 (bads_woman_happy_2)
package {
import flash.media.*;
public dynamic class bads_woman_happy_2 extends Sound {
}
}//package
Section 104
//bads_woman_sad_1 (bads_woman_sad_1)
package {
import flash.media.*;
public dynamic class bads_woman_sad_1 extends Sound {
}
}//package
Section 105
//bads_woman_sad_2 (bads_woman_sad_2)
package {
import flash.media.*;
public dynamic class bads_woman_sad_2 extends Sound {
}
}//package
Section 106
//bads_womanlight_happy_1 (bads_womanlight_happy_1)
package {
import flash.media.*;
public dynamic class bads_womanlight_happy_1 extends Sound {
}
}//package
Section 107
//bads_womanlight_happy_2 (bads_womanlight_happy_2)
package {
import flash.media.*;
public dynamic class bads_womanlight_happy_2 extends Sound {
}
}//package
Section 108
//bads_womanlight_sad_1 (bads_womanlight_sad_1)
package {
import flash.media.*;
public dynamic class bads_womanlight_sad_1 extends Sound {
}
}//package
Section 109
//bads_womanlight_sad_2 (bads_womanlight_sad_2)
package {
import flash.media.*;
public dynamic class bads_womanlight_sad_2 extends Sound {
}
}//package
Section 110
//buyno (buyno)
package {
import flash.media.*;
public dynamic class buyno extends Sound {
}
}//package
Section 111
//buysnd (buysnd)
package {
import flash.media.*;
public dynamic class buysnd extends Sound {
}
}//package
Section 112
//good_1 (good_1)
package {
import flash.media.*;
public dynamic class good_1 extends Sound {
}
}//package
Section 113
//good_2 (good_2)
package {
import flash.media.*;
public dynamic class good_2 extends Sound {
}
}//package
Section 114
//keyv (keyv)
package {
import flash.media.*;
public dynamic class keyv extends Sound {
}
}//package
Section 115
//mainClass (mainClass)
package {
import main.*;
import flash.filters.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.media.*;
import CPMStar.*;
import flash.text.*;
import flash.utils.*;
import flash.ui.*;
import flash.geom.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class mainClass extends MovieClip {
public var my_cMenu:ContextMenu;
public var myLogoPreload:MovieClip;
public var timerLogo2:Timer;
public var ad:DisplayObject;
public var my_link2;
public var my_link3;
public var my_link4;
public var my_link5;
public var my_link6;
public var my_link7;
public var my_link1;
public var adBox:adBoxClass;
public var CPMStarContentSpotID:String;
public var twButt:SimpleButton;
public var wFader:whiteFader;
public var achInfoClip:achInfo;
public var sponsorLogo:MovieClip;
public var fbButt:SimpleButton;
public var preloader:preloader;
public var myLogo:MovieClip;
public var allmc:GameFrame;
public function mainClass(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
public function click_fbButt(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://www.facebook.com/OnlineGamer.cc"), "_blank");
}
public function clickMyLogo(_arg1:MouseEvent){
mainGlobal.toUrl("splash");
}
public function clickMyGamPreload(_arg1:MouseEvent){
mainGlobal.toUrl("preloaderLogo");
}
public function openLink1(_arg1:ContextMenuEvent):void{
mainGlobal.toUrl("contextMenuOG");
}
public function openLink2(_arg1:ContextMenuEvent):void{
mainGlobal.toUrl("contextMenuShooter", "http://onlinegamer.cc/cat/3/Shooter/newest-1.html");
}
public function openLink3(_arg1:ContextMenuEvent):void{
mainGlobal.toUrl("contextMenuAction", "http://onlinegamer.cc/cat/2/Action/newest-1.html");
}
public function openLink7(_arg1:ContextMenuEvent):void{
mainGlobal.toUrl("contextMenuAdventure", "http://onlinegamer.cc/cat/8/Adventure/newest-1.html");
}
public function openLink4(_arg1:ContextMenuEvent):void{
mainGlobal.toUrl("contextMenuPuzzle", "http://onlinegamer.cc/cat/6/Puzzle/newest-1.html");
}
public function openLink5(_arg1:ContextMenuEvent):void{
mainGlobal.toUrl("contextMenuDriving", "http://onlinegamer.cc/cat/10/Driving/newest-1.html");
}
public function openLink6(_arg1:ContextMenuEvent):void{
mainGlobal.toUrl("contextMenuStrategy", "http://onlinegamer.cc/cat/4/Strategy/newest-1.html");
}
public function click_twButt(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://twitter.com/#!/OnlineGamer_cc"), "_blank");
}
function frame1(){
stop();
my_cMenu = new ContextMenu();
my_cMenu.hideBuiltInItems();
my_link1 = new ContextMenuItem("OnlineGamer.cc");
my_link1.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, openLink1);
my_cMenu.customItems.push(my_link1);
my_link2 = new ContextMenuItem("Shooter Games");
my_link2.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, openLink2);
my_cMenu.customItems.push(my_link2);
my_link3 = new ContextMenuItem("Action Games");
my_link3.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, openLink3);
my_cMenu.customItems.push(my_link3);
my_link4 = new ContextMenuItem("Puzzle Games");
my_link4.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, openLink4);
my_cMenu.customItems.push(my_link4);
my_link5 = new ContextMenuItem("Driving Games");
my_link5.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, openLink5);
my_cMenu.customItems.push(my_link5);
my_link6 = new ContextMenuItem("Strategy Games");
my_link6.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, openLink6);
my_cMenu.customItems.push(my_link6);
my_link7 = new ContextMenuItem("Adventure Games");
my_link7.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, openLink7);
my_cMenu.customItems.push(my_link7);
contextMenu = my_cMenu;
myLogoPreload.buttonMode = true;
myLogoPreload.useHandCursor = false;
myLogoPreload.addEventListener(MouseEvent.CLICK, clickMyGamPreload);
mainGlobal._url = stage.loaderInfo.loaderURL;
mainGlobal.noAds = ((preloader.isUrl(["kongregate.com", "www.kongregate.com"])) || (preloader.isUrl(["flashgamelicense.com", "www.flashgamelicense.com"])));
if (!mainGlobal.noAds){
CPMStarContentSpotID = "5969QC6D3E53E";
ad = new AdLoader(CPMStarContentSpotID);
adBox.addChild(ad);
};
MochiBot.track(this, "dcea0604");
twButt.addEventListener(MouseEvent.CLICK, click_twButt);
fbButt.addEventListener(MouseEvent.CLICK, click_fbButt);
}
function frame3(){
stop();
timerLogo2 = new Timer(8000, 1);
timerLogo2.start();
timerLogo2.addEventListener(TimerEvent.TIMER, timerLogo2_Timer);
myLogo.buttonMode = true;
myLogo.addEventListener(MouseEvent.CLICK, clickMyLogo);
musicEnv.init();
musicEnv.fadeTo("musMenu");
}
function frame4(){
wFader.fadeSpeed = 0.02;
wFader.startFadeOut();
stop();
achInfoClip.fadeSpeed = 0.05;
achInfoClip.visible = false;
ach.init(achInfoClip);
}
public function timerLogo2_Timer(_arg1:TimerEvent):void{
play();
}
function frame2(){
}
}
}//package
Section 116
//musGame1 (musGame1)
package {
import flash.media.*;
public dynamic class musGame1 extends Sound {
}
}//package
Section 117
//musGame2 (musGame2)
package {
import flash.media.*;
public dynamic class musGame2 extends Sound {
}
}//package
Section 118
//musGame3 (musGame3)
package {
import flash.media.*;
public dynamic class musGame3 extends Sound {
}
}//package
Section 119
//musLost (musLost)
package {
import flash.media.*;
public dynamic class musLost extends Sound {
}
}//package
Section 120
//musMenu (musMenu)
package {
import flash.media.*;
public dynamic class musMenu extends Sound {
}
}//package
Section 121
//paper01 (paper01)
package {
import flash.media.*;
public dynamic class paper01 extends Sound {
}
}//package
Section 122
//paper02 (paper02)
package {
import flash.media.*;
public dynamic class paper02 extends Sound {
}
}//package
Section 123
//paper03 (paper03)
package {
import flash.media.*;
public dynamic class paper03 extends Sound {
}
}//package
Section 124
//paper04 (paper04)
package {
import flash.media.*;
public dynamic class paper04 extends Sound {
}
}//package
Section 125
//pistolShoot1 (pistolShoot1)
package {
import flash.media.*;
public dynamic class pistolShoot1 extends Sound {
}
}//package
Section 126
//pistolShoot2 (pistolShoot2)
package {
import flash.media.*;
public dynamic class pistolShoot2 extends Sound {
}
}//package
Section 127
//snd_abBomb (snd_abBomb)
package {
import flash.media.*;
public dynamic class snd_abBomb extends Sound {
}
}//package
Section 128
//snd_abDrop (snd_abDrop)
package {
import flash.media.*;
public dynamic class snd_abDrop extends Sound {
}
}//package
Section 129
//snd_abHealth (snd_abHealth)
package {
import flash.media.*;
public dynamic class snd_abHealth extends Sound {
}
}//package
Section 130
//snd_abRev (snd_abRev)
package {
import flash.media.*;
public dynamic class snd_abRev extends Sound {
}
}//package
Section 131
//snd_abShield (snd_abShield)
package {
import flash.media.*;
public dynamic class snd_abShield extends Sound {
}
}//package
Section 132
//snd_abView (snd_abView)
package {
import flash.media.*;
public dynamic class snd_abView extends Sound {
}
}//package
Section 133
//snd_ach (snd_ach)
package {
import flash.media.*;
public dynamic class snd_ach extends Sound {
}
}//package
Section 134
//snd_Lucked (snd_Lucked)
package {
import flash.media.*;
public dynamic class snd_Lucked extends Sound {
}
}//package
Section 135
//snd_shieldBlocked (snd_shieldBlocked)
package {
import flash.media.*;
public dynamic class snd_shieldBlocked extends Sound {
}
}//package
Section 136
//snd_toyBlock01 (snd_toyBlock01)
package {
import flash.media.*;
public dynamic class snd_toyBlock01 extends Sound {
}
}//package
Section 137
//snd_toyBlock02 (snd_toyBlock02)
package {
import flash.media.*;
public dynamic class snd_toyBlock02 extends Sound {
}
}//package
Section 138
//snd_toyBlock03 (snd_toyBlock03)
package {
import flash.media.*;
public dynamic class snd_toyBlock03 extends Sound {
}
}//package
Section 139
//snd_toyBlock04 (snd_toyBlock04)
package {
import flash.media.*;
public dynamic class snd_toyBlock04 extends Sound {
}
}//package
Section 140
//snd_toyBlock05 (snd_toyBlock05)
package {
import flash.media.*;
public dynamic class snd_toyBlock05 extends Sound {
}
}//package