Section 1
//Strong (fl.transitions.easing.Strong)
package fl.transitions.easing {
public class Strong {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
}
}//package fl.transitions.easing
Section 2
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Tween extends EventDispatcher {
private var _position:Number;// = NAN
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var isPlaying:Boolean;// = false
public var begin:Number;// = NAN
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var change:Number;// = NAN
private var _finish:Number;// = NAN
public var looping:Boolean;// = false
private var _intervalID:uint;// = 0
public var func:Function;
private var _timer:Timer;// = null
private var _startTime:Number;// = NAN
public var prop:String;// = ""
private var _duration:Number;// = NAN
public var obj:Object;// = null
public var useSeconds:Boolean;// = false
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
isPlaying = false;
obj = null;
prop = "";
func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
begin = NaN;
change = NaN;
useSeconds = false;
prevTime = NaN;
prevPos = NaN;
looping = false;
_duration = NaN;
_time = NaN;
_fps = NaN;
_position = NaN;
_startTime = NaN;
_intervalID = 0;
_finish = NaN;
_timer = null;
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean;
_local2 = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function get duration():Number{
return (this._duration);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function get FPS():Number{
return (this._fps);
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function get time():Number{
return (this._time);
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
}
}//package fl.transitions
Section 3
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_LOOP:String = "motionLoop";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_RESUME:String = "motionResume";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
time = NaN;
position = NaN;
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 4
//Logo (framework.Logo)
package framework {
import flash.display.*;
public dynamic class Logo extends MovieClip {
}
}//package framework
Section 5
//LoadingTxt (loading.LoadingTxt)
package loading {
import flash.display.*;
import flash.events.*;
import ui.*;
public class LoadingTxt extends Sprite {
private var txt:Txt;
public var onLoadComplete:Function;
public function LoadingTxt(){
onLoadComplete = function ():void{
};
super();
this.addEventListener(Event.ADDED_TO_STAGE, added);
}
private function added(_arg1:Event):void{
txt = (this.getChildAt(0) as Txt);
txt.autoSize = "center";
this.removeEventListener(Event.ADDED_TO_STAGE, added);
this.addEventListener(Event.REMOVED_FROM_STAGE, removed);
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
txt.text = "100%";
}
private function onProgress(_arg1:ProgressEvent):void{
var _local2:int;
_local2 = ((_arg1.bytesLoaded / _arg1.bytesTotal) * 100);
txt.text = (_local2 + "%");
if (_local2 == 100){
if (onLoadComplete == null){
trace("你小子忘记设置 onLoadComplete 了!");
} else {
onLoadComplete();
};
};
}
private function removed(_arg1:Event):void{
this.removeEventListener(Event.REMOVED_FROM_STAGE, removed);
this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, onProgress);
txt = null;
onLoadComplete = null;
}
}
}//package loading
Section 6
//PrevLoader (loading.PrevLoader)
package loading {
import flash.display.*;
import flash.events.*;
import ui.*;
import mochi.as3.*;
import flash.utils.*;
public class PrevLoader extends MovieClip {
public var mochi_container:MovieClip;
public var mochi_code:String;
public var protection:Boolean;// = true
public var maskRect:MaskRect;
public function PrevLoader(){
protection = true;
super();
addFrameScript(1, frame2, 2, frame3, 3, frame4);
stage.showDefaultContextMenu = false;
(root as MovieClip).stop();
__setProp_maskRect_loading_1();
}
public function set skip(_arg1:Boolean):void{
if (_arg1){
this.stop();
stopAll(this);
(root as MovieClip).play();
this.visible = false;
};
}
private function isInUrlFront(_arg1:String):Boolean{
var _local2:String;
_local2 = this.loaderInfo.url;
_local2.toLowerCase();
_arg1.toLowerCase();
return ((_local2.indexOf(_arg1) == 0));
}
public function init():void{
stop();
MaskRect.setPos(maskRect, setPos);
}
public function checkGoNext():void{
if (this.loaderInfo.bytesLoaded == this.loaderInfo.bytesTotal){
goNext();
};
}
function frame3(){
stop();
}
function frame4(){
stop();
}
public function goNext():void{
if ((mochi_container._mochiad is MovieClip)){
} else {
goNext2();
};
}
function frame2(){
init();
}
private function setPos(_arg1:int, _arg2:int):void{
this.x = (_arg1 / 2);
this.y = (_arg2 / 2);
mochi_container.x = (-(_arg1) / 2);
mochi_container.y = (-(_arg2) / 2);
if (mochi_code){
MochiAd.showPreGameAd({clip:mochi_container, ad_failed:goNext2, ad_skipped:goNext2, ad_finished:goNext2, id:mochi_code, res:((_arg1 + "x") + _arg2)});
} else {
trace("未设置mochi_code");
};
}
public function goNext2():void{
try {
MochiAd.unload(mochi_container);
} catch(e) {
trace(("mochiad e=" + e));
};
if (protection){
if (((isIn("freeworldgroup.com")) || (isIn("ifungames.com")))){
this.gotoAndStop(4);
} else {
this.gotoAndStop(3);
};
} else {
this.gotoAndStop(4);
};
}
function __setProp_maskRect_loading_1(){
try {
maskRect["componentInspectorSetting"] = true;
} catch(e:Error) {
};
maskRect.align = "center-middle";
try {
maskRect["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
private function isIn(_arg1:String):Boolean{
return (((((((isInUrlFront(_arg1)) || (isInUrlFront(("http://" + _arg1))))) || (isInUrlFront(("http://www." + _arg1))))) || (isInUrlFront(("www." + _arg1)))));
}
public static function stopAll(_arg1:DisplayObject){
var _local2:DisplayObjectContainer;
var _local3:int;
if ((_arg1 is DisplayObjectContainer)){
_local2 = (_arg1 as DisplayObjectContainer);
_local3 = _local2.numChildren;
while (--_local3 >= 0) {
stopAll(_local2.getChildAt(_local3));
};
if ((_arg1 is MovieClip)){
(_arg1 as MovieClip).stop();
};
};
}
}
}//package loading
Section 7
//MochiAd (mochi.as3.MochiAd)
package mochi.as3 {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class MochiAd {
public static function getVersion():String{
return ("3.02 as3");
}
public static function showClickAwayAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_timeout:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var sendHostProgress:Boolean;
var options = _arg1;
DEFAULTS = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{
}, ad_finished:function ():void{
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
sendHostProgress = false;
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Number;
var _local3:Boolean;
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
return;
};
_local1 = this.parent._mochiad_ctr;
_local2 = (getTimer() - this.started);
_local3 = false;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
_local3 = true;
chk.started = getTimer();
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (this.root == null){
_local3 = true;
};
if (_local3){
delete this.onEnterFrame;
};
};
doOnEnterFrame(chk);
}
public static function _isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function _allowDomains(_arg1:String):String{
var _local2:String;
_local2 = _arg1.split("/")[2].split(":")[0];
if (Security.sandboxType == "application"){
return (_local2);
};
Security.allowDomain("*");
Security.allowDomain(_local2);
Security.allowInsecureDomain("*");
Security.allowInsecureDomain(_local2);
return (_local2);
}
public static function unload(_arg1:Object):Boolean{
if (((_arg1.clip) && (_arg1.clip._mochiad))){
_arg1 = _arg1.clip;
};
if (_arg1.origFrameRate != undefined){
_arg1.stage.frameRate = _arg1.origFrameRate;
};
if (!_arg1._mochiad){
return (false);
};
if (_arg1._mochiad._containerLCName != undefined){
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"});
};
if (_arg1._mochiad.onUnload){
_arg1._mochiad.onUnload();
};
delete _arg1._mochiad_loaded;
delete _arg1._mochiad;
return (true);
}
public static function showInterLevelAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var options = _arg1;
DEFAULTS = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
_local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object;
_local2 = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = (_arg1 - 250);
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Number;
var _local3:Boolean;
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
_local1 = this.parent._mochiad_ctr;
_local2 = (getTimer() - this.started);
_local3 = false;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (_local2 > chk.ad_msec){
_local3 = true;
};
if (_local3){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function _parseOptions(_arg1:Object, _arg2:Object):Object{
var _local3:Object;
var _local4:String;
var _local5:Array;
var _local6:Number;
var _local7:Array;
_local3 = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
if (_arg1){
for (_local4 in _arg1) {
_local3[_local4] = _arg1[_local4];
};
};
if (_local3.clip == undefined){
throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite."));
};
_arg1 = _local3.clip.loaderInfo.parameters.mochiad_options;
if (_arg1){
_local5 = _arg1.split("&");
_local6 = 0;
while (_local6 < _local5.length) {
_local7 = _local5[_local6].split("=");
_local3[unescape(_local7[0])] = unescape(_local7[1]);
_local6++;
};
};
if (_local3.id == "test"){
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
};
return (_local3);
}
public static function _cleanup(_arg1:Object):void{
var idx:Number;
var k:String;
var lc:LocalConnection;
var f:Function;
var mc = _arg1;
if (("lc" in mc)){
lc = mc.lc;
f = function ():void{
try {
lc.client = null;
lc.close();
} catch(e:Error) {
};
};
setTimeout(f, 0);
};
idx = DisplayObjectContainer(mc).numChildren;
while (idx > 0) {
idx = (idx - 1);
DisplayObjectContainer(mc).removeChildAt(idx);
};
for (k in mc) {
delete mc[k];
};
}
public static function load(_arg1:Object):MovieClip{
var DEFAULTS:Object;
var clip:Object;
var depth:Number;
var mc:MovieClip;
var wh:Array;
var lv:URLVariables;
var k:String;
var server:String;
var hostname:String;
var lc:LocalConnection;
var name:String;
var loader:Loader;
var g:Function;
var req:URLRequest;
var v:Object;
var options = _arg1;
DEFAULTS = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = MochiAd._parseOptions(options, DEFAULTS);
options.swfv = 9;
options.mav = MochiAd.getVersion();
clip = options.clip;
if (!MochiAd._isNetworkAvailable()){
return (null);
};
try {
if (clip._mochiad_loaded){
return (null);
};
} catch(e:Error) {
throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
depth = options.depth;
delete options.depth;
mc = createEmptyMovieClip(clip, "_mochiad", depth);
wh = MochiAd._getRes(options, clip);
options.res = ((wh[0] + "x") + wh[1]);
options.server = (options.server + options.id);
delete options.id;
clip._mochiad_loaded = true;
if (clip.loaderInfo.loaderURL.indexOf("http") == 0){
options.as3_swf = clip.loaderInfo.loaderURL;
} else {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
};
lv = new URLVariables();
for (k in options) {
v = options[k];
if (!(v is Function)){
lv[k] = v;
};
};
server = lv.server;
delete lv.server;
hostname = _allowDomains(server);
lc = new LocalConnection();
lc.client = mc;
name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_");
lc.allowDomain("*", "localhost");
lc.allowInsecureDomain("*", "localhost");
lc.connect(name);
mc.lc = lc;
mc.lcName = name;
lv.lc = name;
lv.st = getTimer();
loader = new Loader();
g = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
MochiAd.unload(clip);
};
loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g);
req = new URLRequest(((server + ".swf?cacheBust=") + new Date().getTime()));
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function (_arg1:IOErrorEvent):void{
trace("[MochiAds] Blocked URL");
});
loader.load(req);
mc.addChild(loader);
mc._mochiad_ctr = loader;
return (mc);
}
public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{
var _local4:Array;
var _local5:Number;
_local4 = _arg2.split(".");
_local5 = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
if (typeof(_arg1[_local4[_local5]]) == "function"){
return (_arg1[_local4[_local5]].apply(_arg1, _arg3));
};
return (undefined);
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{
var _local4:MovieClip;
_local4 = new MovieClip();
if (((false) && (_arg3))){
_arg1.addChildAt(_local4, _arg3);
} else {
_arg1.addChild(_local4);
};
_arg1[_arg2] = _local4;
_local4["_name"] = _arg2;
return (_local4);
}
public static function _getRes(_arg1:Object, _arg2:Object):Array{
var _local3:Object;
var _local4:Number;
var _local5:Number;
var _local6:Array;
_local3 = _arg2.getBounds(_arg2.root);
_local4 = 0;
_local5 = 0;
if (typeof(_arg1.res) != "undefined"){
_local6 = _arg1.res.split("x");
_local4 = parseFloat(_local6[0]);
_local5 = parseFloat(_local6[1]);
} else {
_local4 = (_local3.xMax - _local3.xMin);
_local5 = (_local3.yMax - _local3.yMin);
};
if ((((_local4 == 0)) || ((_local5 == 0)))){
_local4 = _arg2.stage.stageWidth;
_local5 = _arg2.stage.stageHeight;
};
return ([_local4, _local5]);
}
public static function adShowing(_arg1:Object):void{
_arg1.origFrameRate = _arg1.stage.frameRate;
_arg1.stage.frameRate = 30;
}
public static function getValue(_arg1:Object, _arg2:String):Object{
var _local3:Array;
var _local4:Number;
_local3 = _arg2.split(".");
_local4 = 0;
while (_local4 < (_local3.length - 1)) {
if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local3[_local4]];
_local4++;
};
return (_arg1[_local3[_local4]]);
}
public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{
var _local4:Object;
var _local5:Object;
switch (_arg3.id){
case "setValue":
MochiAd.setValue(_arg1, _arg3.objectName, _arg3.value);
break;
case "getValue":
_local4 = MochiAd.getValue(_arg1, _arg3.objectName);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4);
break;
case "runMethod":
_local5 = MochiAd.runMethod(_arg1, _arg3.method, _arg3.args);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5);
break;
default:
trace(("[mochiads rpc] unknown rpc id: " + _arg3.id));
};
}
public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Array;
var _local5:Number;
_local4 = _arg2.split(".");
_local5 = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return;
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
_arg1[_local4[_local5]] = _arg3;
}
public static function showPreGameAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var bar:MovieClip;
var bar_color:Number;
var bar_background:Number;
var bar_outline:Number;
var backing_mc:MovieClip;
var backing:Object;
var inside_mc:MovieClip;
var inside:Object;
var outline_mc:MovieClip;
var outline:Object;
var complete:Boolean;
var unloaded:Boolean;
var f:Function;
var sendHostProgress:Boolean;
var fn:Function;
var r:MovieClip;
var options = _arg1;
DEFAULTS = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}, ad_progress:function (_arg1:Number):void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){
options.ad_started();
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
return;
};
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
var fn:Function;
MochiAd._cleanup(mc);
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.x = (w * -0.5);
chk.y = (h * -0.5);
bar = createEmptyMovieClip(chk, "_mochiad_bar", 4);
if (options.no_progress_bar){
bar.visible = false;
delete options.no_progress_bar;
} else {
bar.x = 10;
bar.y = (h - 20);
};
bar_color = options.color;
delete options.color;
bar_background = options.background;
delete options.background;
bar_outline = options.outline;
delete options.outline;
backing_mc = createEmptyMovieClip(bar, "_outline", 1);
backing = backing_mc.graphics;
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo((w - 20), 0);
backing.lineTo((w - 20), 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
inside_mc = createEmptyMovieClip(bar, "_inside", 2);
inside = inside_mc.graphics;
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo((w - 20), 0);
inside.lineTo((w - 20), 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside_mc.scaleX = 0;
outline_mc = createEmptyMovieClip(bar, "_outline", 3);
outline = outline_mc.graphics;
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo((w - 20), 0);
outline.lineTo((w - 20), 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number;
_local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
complete = false;
unloaded = false;
f = function (_arg1:Event):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
complete = true;
if (unloaded){
MochiAd.unload(clip);
};
};
if (clip.loaderInfo.bytesLoaded == clip.loaderInfo.bytesTotal){
complete = true;
} else {
if ((clip.root is MovieClip)){
r = (clip.root as MovieClip);
if (r.framesLoaded >= r.totalFrames){
complete = true;
} else {
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
};
} else {
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
};
};
mc.unloadAd = function ():void{
unloaded = true;
if (complete){
MochiAd.unload(clip);
};
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object;
_local2 = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = _arg1;
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
mc.rpcTestFn = function (_arg1:String):Object{
trace(("[MOCHIAD rpcTestFn] " + _arg1));
return (_arg1);
};
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
sendHostProgress = false;
mc.sendHostLoadProgress = function (_arg1:String):void{
sendHostProgress = true;
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Object;
var _local3:Number;
var _local4:Boolean;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Object;
var _local10:Number;
var _local11:Number;
if (((!(this.parent)) || (!(this.parent.parent)))){
delete this["onEnterFrame"];
return;
};
_local1 = this.parent.parent.root;
_local2 = this.parent._mochiad_ctr;
_local3 = (getTimer() - this.started);
_local4 = false;
_local5 = _local1.loaderInfo.bytesTotal;
_local6 = _local1.loaderInfo.bytesLoaded;
if (complete){
_local6 = Math.max(1, _local6);
_local5 = _local6;
};
_local7 = ((100 * _local6) / _local5);
_local8 = ((100 * _local3) / chk.ad_msec);
_local9 = this._mochiad_bar._inside;
_local10 = Math.min(100, Math.min(((_local7) || (0)), _local8));
_local10 = Math.max(this.last_pcnt, _local10);
this.last_pcnt = _local10;
_local9.scaleX = (_local10 * 0.01);
options.ad_progress(_local10);
if (sendHostProgress){
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local7});
if (_local7 == 100){
sendHostProgress = false;
};
};
if (!chk.showing){
_local11 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local11 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if ((((_local3 > chk.ad_timeout)) && ((_local7 == 100)))){
options.ad_failed();
_local4 = true;
};
};
};
if (_local3 > chk.ad_msec){
_local4 = true;
};
if (((complete) && (_local4))){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function showPreloaderAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
MochiAd.showPreGameAd(_arg1);
}
public static function showTimedAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
MochiAd.showInterLevelAd(_arg1);
}
public static function doOnEnterFrame(_arg1:MovieClip):void{
var f:Function;
var mc = _arg1;
f = function (_arg1:Object):void{
if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){
mc.onEnterFrame();
} else {
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
};
mc.addEventListener(Event.ENTER_FRAME, f);
}
}
}//package mochi.as3
Section 8
//a_491 (PenguinTD_fla.a_491)
package PenguinTD_fla {
import flash.display.*;
public dynamic class a_491 extends MovieClip {
public var hp:MovieClip;
public var LevelUp:SimpleButton;
public var t2:aIoc;
public var t3:aIoc;
public var t1:aIoc;
public var t5:aIoc;
public var t4:aIoc;
public var t6:aIoc;
public var Ioc:aIoc;
}
}//package PenguinTD_fla
Section 9
//ArmyUp_118 (PenguinTD_fla.ArmyUp_118)
package PenguinTD_fla {
import flash.display.*;
public dynamic class ArmyUp_118 extends MovieClip {
public function ArmyUp_118(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 10
//beijixiong_325 (PenguinTD_fla.beijixiong_325)
package PenguinTD_fla {
import flash.display.*;
public dynamic class beijixiong_325 extends MovieClip {
public function beijixiong_325(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 11
//Credit_293 (PenguinTD_fla.Credit_293)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Credit_293 extends MovieClip {
public var BackOn:SimpleButton;
}
}//package PenguinTD_fla
Section 12
//direqiqiu_238 (PenguinTD_fla.direqiqiu_238)
package PenguinTD_fla {
import flash.display.*;
public dynamic class direqiqiu_238 extends MovieClip {
public function direqiqiu_238(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 13
//dixuanzhuanqie_436 (PenguinTD_fla.dixuanzhuanqie_436)
package PenguinTD_fla {
import flash.display.*;
public dynamic class dixuanzhuanqie_436 extends MovieClip {
public function dixuanzhuanqie_436(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 14
//EnemyDown_173 (PenguinTD_fla.EnemyDown_173)
package PenguinTD_fla {
import flash.display.*;
public dynamic class EnemyDown_173 extends MovieClip {
public function EnemyDown_173(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 15
//EnemyLeft_163 (PenguinTD_fla.EnemyLeft_163)
package PenguinTD_fla {
import flash.display.*;
public dynamic class EnemyLeft_163 extends MovieClip {
public function EnemyLeft_163(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 16
//EnemyThreeDown_201 (PenguinTD_fla.EnemyThreeDown_201)
package PenguinTD_fla {
import flash.display.*;
public dynamic class EnemyThreeDown_201 extends MovieClip {
public function EnemyThreeDown_201(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 17
//EnemyThreeLeft_198 (PenguinTD_fla.EnemyThreeLeft_198)
package PenguinTD_fla {
import flash.display.*;
public dynamic class EnemyThreeLeft_198 extends MovieClip {
public function EnemyThreeLeft_198(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 18
//EnemyThreeUp_206 (PenguinTD_fla.EnemyThreeUp_206)
package PenguinTD_fla {
import flash.display.*;
public dynamic class EnemyThreeUp_206 extends MovieClip {
public function EnemyThreeUp_206(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 19
//EnemyTwoDown_191 (PenguinTD_fla.EnemyTwoDown_191)
package PenguinTD_fla {
import flash.display.*;
public dynamic class EnemyTwoDown_191 extends MovieClip {
public function EnemyTwoDown_191(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 20
//EnemyTwoLeft_187 (PenguinTD_fla.EnemyTwoLeft_187)
package PenguinTD_fla {
import flash.display.*;
public dynamic class EnemyTwoLeft_187 extends MovieClip {
public function EnemyTwoLeft_187(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 21
//EnemyTwoUp_194 (PenguinTD_fla.EnemyTwoUp_194)
package PenguinTD_fla {
import flash.display.*;
public dynamic class EnemyTwoUp_194 extends MovieClip {
public function EnemyTwoUp_194(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 22
//EnemyUp_181 (PenguinTD_fla.EnemyUp_181)
package PenguinTD_fla {
import flash.display.*;
public dynamic class EnemyUp_181 extends MovieClip {
public function EnemyUp_181(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 23
//Gameover_534 (PenguinTD_fla.Gameover_534)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Gameover_534 extends MovieClip {
public function Gameover_534(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 24
//loading_11 (PenguinTD_fla.loading_11)
package PenguinTD_fla {
import flash.display.*;
public dynamic class loading_11 extends MovieClip {
public function loading_11(){
addFrameScript(133, frame134);
}
function frame134(){
stop();
(root as MovieClip).play();
}
}
}//package PenguinTD_fla
Section 25
//loading_3 (PenguinTD_fla.loading_3)
package PenguinTD_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import loading.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class loading_3 extends MovieClip {
public var txt:LoadingTxt;
public var loading_text_mc:MovieClip;
public function loading_3(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 38, frame39);
}
function frame3(){
this.visible = true;
}
function frame1(){
this.visible = false;
}
function frame2(){
(this.parent as PrevLoader).checkGoNext();
}
function frame39(){
stop();
txt.onLoadComplete = (parent as PrevLoader).goNext;
loading_text_mc.txt.text = "Loading...";
loading_text_mc.txt.autoSize = "center";
}
}
}//package PenguinTD_fla
Section 26
//loading_8 (PenguinTD_fla.loading_8)
package PenguinTD_fla {
import flash.display.*;
public dynamic class loading_8 extends MovieClip {
public var txt:Txt1;
}
}//package PenguinTD_fla
Section 27
//logo_gra_60 (PenguinTD_fla.logo_gra_60)
package PenguinTD_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class logo_gra_60 extends MovieClip {
public var Logo:SimpleButton;
public function logo_gra_60(){
addFrameScript(0, frame1);
}
function frame1(){
Logo.addEventListener(MouseEvent.CLICK, IndexUrlOK);
}
public function IndexUrlOK(_arg1){
var _local2:String;
var _local3:URLRequest;
_local2 = "http://www.freeworldgroup.com";
_local3 = new URLRequest(_local2);
navigateToURL(_local3, "_blank");
}
}
}//package PenguinTD_fla
Section 28
//MainTimeline (PenguinTD_fla.MainTimeline)
package PenguinTD_fla {
import flash.display.*;
import flash.events.*;
import fl.transitions.easing.*;
import fl.transitions.*;
import flash.utils.*;
import loading.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var TempNoviceOK;
public var addPowerNum:Number;
public var PaoTaNum:Number;
public var EnemyPaoTaoArray:Array;
public var YdkXYUrl;
public var NewEnemyPaoTaTime:Number;
public var Game:MovieClip;
public var ArmyClub:MovieClip;
public var scf:SoundTransform;
public var EnemyGuard:Number;
public var NoviceOK:Boolean;
public var WindowsPic:MovieClip;
public var Pass:Number;
public var SubmitOn:SimpleButton;
public var EnemyClub:MovieClip;
public var EnemyXYUrl;
public var Rank:Number;
public var MainBase:Object;
public var __setPropDict:Dictionary;
public var PauseOK:Boolean;
public var addGuardNum:Number;
public var __id0_:PrevLoader;
public var txt:TextField;
public var TempSandOK;
public var EnemyGo:String;
public var Tip:MovieClip;
public var EnemyPaoTaClub:MovieClip;
public var EnemyPower:Number;
public var Score:Number;
public var EasyLevel:Number;
public var ArmyPaoTaoArray:Array;
public var RoleHitObj;
public var ArmyAndEnemyClub:MovieClip;
public var ScoreTxt:MovieClip;
public var ArmyBorn;
public var YdkUrl;
public var EnemyID:uint;
public var MaxSN:Number;
public var W1:Tween;
public var MenuS:MovieClip;
public var EnemyPaoTaSN:Number;
public var SandPower:Number;
public var EnemyBorn;
public var NewEnemyTime:Number;
public var MenuAArray:Array;
public var X1:Tween;
public var Quality:Number;
public var ArmyGuard:Number;
public var Y1:Tween;
public var H1:Tween;
public var PoTaUrl:MovieClip;
public var RolePaoTaClub:MovieClip;
public var Credit:MovieClip;
public var Select:MovieClip;
public var CampNum:Number;
public var RankClub:Array;
public var Volume:Number;
public var HomeS:MovieClip;
public var MyPaoTa:Array;
public var OneGameOK:Boolean;
public var BackOn:SimpleButton;
public var ArmyPower:Number;
public var MoreGameOn:SimpleButton;
public var GameTimeID:uint;
public var Level:Number;
public var LevelUpData;
public var PlayAgainOn:SimpleButton;
public var GameOK:Boolean;
public var MenuBArray:Array;
public var EnemyPaoTaID:uint;
public var SandOK:Boolean;
public var ArmyGo:String;
public var TypeEnemy6:Number;
public var TypeEnemy4:Number;
public var EnemySN:Number;
public var TypeEnemy2:Number;
public var ClearGameOK:Boolean;
public var EnemyBaseObj;
public var ArmyBaseObj;
public var PaoTaLevelMax:Number;
public var EnemyHitObj;
public function MainTimeline(){
__setPropDict = new Dictionary(true);
super();
addFrameScript(1, frame2, 3, frame4, 4, frame5, 9, frame10, 19, frame20, 49, frame50, 69, frame70, 89, frame90, 0, frame1, 2, frame3);
}
public function GameVisible(){
var _local2 = Game;
with (_local2) {
Role.visible = false;
Enemy.visible = false;
EnemyXY.visible = false;
RoleXY.visible = false;
MyBase.visible = false;
EnemyBase.visible = false;
};
}
public function NewPaoTa(_arg1){
var _local2:MovieClip;
_local2 = _arg1.target.parent;
MenuSVisible();
MenuS.B.visible = true;
if (PoTaUrl != null){
PoTaUrl.Rood.gotoAndStop(1);
};
PoTaUrl = _local2;
_local2.Rood.gotoAndStop(2);
NewMenuBSX();
}
public function GameTimeOK(){
var TimeM:*;
var TimeUp:Function;
TimeUp = function (){
var _local1:*;
var _local2:*;
var _local3:*;
TimeM++;
_local1 = int(((TimeM / 60) / 60));
_local2 = int((TimeM / 60));
_local3 = (int(TimeM) - (_local2 * 60));
MenuS.MyAndEnemy.Time.Txt.text = ((((_local1 + ":") + _local2) + ":") + _local3);
};
TimeM = 0;
GameTimeID = setInterval(TimeUp, 1000);
}
public function GotoGame(){
gotoAndStop(50);
}
public function PaoTaLevelUpTime(_arg1){
var _local2:MovieClip;
_local2 = _arg1.target;
if (!PauseOK){
if (_local2.s < 100){
_local2.s = (_local2.s + (0.6 / _local2.Level));
_local2.Time.gotoAndStop(int(_local2.s));
} else {
_local2.Level++;
_local2.Power = (_local2.Power + int((10 * _local2.Level)));
_local2.Guard = (_local2.Guard + int((2 * _local2.Level)));
_local2.Range++;
_local2.Hit.scaleX = (_local2.Hit.scaleX + 0.2);
_local2.Hit.scaleY = (_local2.Hit.scaleY + 0.2);
_local2.LevelUpIng = false;
_local2.LevelIoc.gotoAndStop(_local2.Level);
NewPaoTaSX(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, PaoTaLevelUpTime);
};
};
}
public function HpTime(_arg1){
var _local2:*;
_local2 = _arg1.target;
if (!PauseOK){
if (RankClub.length > 0){
if (_local2.s < 100){
_local2.s = (_local2.s + ((Number((10 - RankClub[0])) / 4) + (MainBase.Level / 5)));
if (MenuS.A.ObjType != "MianBase"){
if (CampNum == 1){
MenuS.A.Ioc.gotoAndStop(RankClub[0]);
} else {
MenuS.A.Ioc.gotoAndStop((RankClub[0] + 50));
};
};
if (CampNum == 1){
_local2.gotoAndStop(int(_local2.s));
} else {
_local2.gotoAndStop((int(_local2.s) + 50));
};
} else {
RolePutOK(RankClub[0]);
_local2.s = 0;
RankClub.shift();
XRoleIoc();
};
};
};
}
public function HomePage(){
if (OneGameOK){
HomeS.gotoAndPlay(241);
};
}
public function NewTweenObj(_arg1:MovieClip, _arg2:String, _arg3:Number){
var _local4:*;
_local4 = Strong.easeInOut;
if (_arg2 == "Y"){
X1 = new Tween(_arg1, "y", _local4, _arg1.x, _arg3, 1, true);
};
}
public function PaoTaDirection(_arg1, _arg2){
if (_arg1.Hit.Right.hitTestObject(_arg2)){
_arg1.a.gotoAndStop(1);
} else {
if (_arg1.Hit.Left.hitTestObject(_arg2)){
_arg1.a.gotoAndStop(3);
} else {
if (_arg1.Hit.Up.hitTestObject(_arg2)){
_arg1.a.gotoAndStop(5);
} else {
if (_arg1.Hit.Down.hitTestObject(_arg2)){
_arg1.a.gotoAndStop(2);
};
};
};
};
_arg1.Direction = true;
_arg1.AttackOK = false;
}
public function RolePutOK(_arg1:Number){
var _local2:MovieClip;
if (CampNum == 1){
_local2 = new RoleId();
} else {
if (CampNum == 2){
_local2 = new EnemyId();
};
};
ArmyAndEnemyClub.addChild(_local2);
_local2.gotoAndStop(_arg1);
_local2.Hit.visible = false;
_local2.x = YdkXYUrl.x;
_local2.y = YdkXYUrl.y;
_local2.Type = 1;
_local2.TypeLevel = _arg1;
_local2.Speed = (1 + (_arg1 / 3));
_local2.Hp = (100 * _arg1);
_local2.HpS = (100 * _arg1);
_local2.Power = (20 * _arg1);
_local2.Guard = (2 * _arg1);
_local2.Range = int(5);
_local2.Go = ArmyGo;
_local2.GoReady = true;
_local2.AttackOK = false;
_local2.AttackTime = 0;
_local2.AttackTimeOK = 20;
_local2.UpDown = false;
_local2.UpRight = false;
_local2.LeftDown = false;
_local2.RightDown = false;
_local2.addEventListener(Event.ENTER_FRAME, ArmyAI);
_local2.Hps.alpha = 0;
_local2.buttonMode = true;
_local2.mouseChildren = false;
_local2.addEventListener(MouseEvent.CLICK, ArmySX);
_local2.addEventListener(MouseEvent.ROLL_OVER, RoleRange);
_local2.addEventListener(MouseEvent.ROLL_OUT, RoleRange);
}
public function XRoleIoc(){
var _local1:*;
var _local2:*;
_local1 = 0;
while (_local1 < 6) {
_local2 = MenuS.A.getChildByName(("t" + (_local1 + 1)));
if (RankClub[_local1] != null){
if (CampNum == 1){
_local2.gotoAndStop(RankClub[_local1]);
} else {
_local2.gotoAndStop((RankClub[_local1] + 50));
};
} else {
_local2.gotoAndStop(20);
};
_local1++;
};
}
public function MainBaseLevelUpTime(_arg1){
if (!PauseOK){
if (MainBase.s < 100){
MainBase.s = (MainBase.s + ((1 / MainBase.Level) / 5));
if (MenuS.A.ObjType == "MianBase"){
MenuS.A.hp.gotoAndStop(int(MainBase.s));
};
MainBase.LevelUpIng = true;
} else {
InputIntro("Move", "New Units Available!");
MainBase.s = 0;
NewBaseSX();
addKeyLevelUp();
MenuS.Base.removeEventListener(Event.ENTER_FRAME, MainBaseLevelUpTime);
};
};
}
public function EnemyPaoTaReady(_arg1){
var _local2:MovieClip;
_local2 = _arg1.target;
if (ClearGameOK){
_local2.removeEventListener(Event.ENTER_FRAME, EnemyPaoTaReady);
};
_local2.Hps.visible = true;
_local2.Hps.gotoAndStop(int(((_local2.Hp / _local2.HpS) * 100)));
if (!PauseOK){
if ((((((_local2.TypeLevel == 2)) || ((_local2.TypeLevel == 4)))) || ((_local2.TypeLevel == 6)))){
_local2.Hit.mouseEnabled = false;
_local2.Hit.visible = false;
} else {
PaoToAI(_local2, ArmyAndEnemyClub, 1);
};
};
}
public function GameReadyOK(){
NewGame();
OneGameOK = true;
GamePauseOK(false);
WindowsPic.gotoAndPlay("End");
}
function frame3(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 4))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0___1();
};
}
function frame4(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 4))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0___1();
};
Quality = 2;
stage.quality = StageQuality.MEDIUM;
CampNum = 1;
EasyLevel = 1;
Score = 0;
TempSandOK = null;
TempNoviceOK = true;
NoviceOK = true;
Volume = 1;
scf = new SoundTransform();
}
public function ArmyPaoTaReady(_arg1){
var _local2:MovieClip;
var _local3:Number;
_local2 = _arg1.target;
if (ClearGameOK){
_local2.removeEventListener(Event.ENTER_FRAME, ArmyPaoTaReady);
};
_local2.Hps.visible = true;
_local2.Hps.gotoAndStop(int(((_local2.Hp / _local2.HpS) * 100)));
_local2.LevelIoc.visible = true;
if (!PauseOK){
if ((((_local2.Num == 2)) || ((_local2.Num == 4)))){
_local2.Hit.mouseEnabled = false;
} else {
if (_local2.Num == 6){
_local2.TempNum = int((Math.random() * 50));
if (_local2.TempNum == 0){
_local3 = (int((Math.random() * (_local2.Num * 50))) / 8);
MainBase.Money = (MainBase.Money + int(_local3));
NewMoney();
};
_local2.Hit.mouseEnabled = false;
_local2.Hit.visible = false;
} else {
PaoToAI(_local2, ArmyAndEnemyClub, 2);
};
};
};
}
public function GameOverOK(_arg1:Number){
ClearGame();
if (_arg1 == 1){
gotoAndStop("GameOver");
} else {
if (_arg1 == 2){
gotoAndStop("YouWin");
};
};
}
function frame1(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 4))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0___1();
};
}
public function PaoTaPrice(_arg1){
var _local2:MovieClip;
var _local3:String;
var _local4:String;
var _local5:String;
var _local6:String;
var _local7:String;
_local2 = _arg1.target;
if (_arg1.type == "rollOver"){
_local3 = "";
_local4 = ("Cost:" + int(_local2.Price));
_local5 = ("\rDamage:" + int(_local2.Power));
_local6 = ("\rDefence:" + int(_local2.Guard));
_local7 = ("\rRange:" + int(_local2.Range));
if ((((((_local2.s == 2)) || ((_local2.s == 4)))) || ((_local2.s == 6)))){
_local5 = "\rDamage:0";
_local7 = "\rRange:0";
};
if (_local2.s == 6){
_local3 = "Generate income for you.\r";
};
if (_local2.s == 2){
_local3 = "Increases the defence levels of surrounding towers.\r";
};
if (_local2.s == 4){
_local3 = "Increases the attack power of surrounding towers.\r";
};
InputIntro("Msg", ((((_local3 + _local4) + _local5) + _local6) + _local7));
} else {
InputIntro("Out", "null");
};
}
public function EnemyReadyHit(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (_arg1.hitTestObject(EnemyBaseObj)){
_arg1.removeEventListener(Event.ENTER_FRAME, EnemyAI);
ArmyAndEnemyClub.removeChild(_arg1);
MainBase.Hp = (MainBase.Hp - 10);
NewHP();
};
_local2 = 0;
while (_local2 < ArmyAndEnemyClub.numChildren) {
_local4 = ArmyAndEnemyClub.getChildAt(_local2);
if (((_arg1.a.hitTestObject(_local4.a)) && ((_local4.Type == 1)))){
_arg1.GoReady = false;
NewArmyHP(_local4, _arg1);
return;
};
_local2++;
};
_local3 = 0;
while (_local3 < ArmyPaoTaoArray.length) {
_local5 = ArmyPaoTaoArray[_local3].Mc;
if (_local5.PaoTaReadyOK){
if (_arg1.Hit.hitTestObject(_local5.Rood)){
_arg1.GoReady = false;
EnemyAttackOK(_arg1, _local5);
return;
};
};
_local3++;
};
_arg1.GoReady = true;
}
function frame2(){
if ((((__setPropDict[__id0_] == undefined)) || (!((((int(__setPropDict[__id0_]) >= 1)) && ((int(__setPropDict[__id0_]) <= 4))))))){
__setPropDict[__id0_] = currentFrame;
__setProp___id0___1();
};
new smartGuard(this.loaderInfo.url);
play();
}
public function NewHP(){
MenuS.MyAndEnemy.My.gotoAndStop(MainBase.Hp);
if (MainBase.Hp <= 0){
GameOverOK(1);
};
}
public function NewRoleMenu(_arg1){
MenuSVisible();
MenuS.A.visible = true;
if (CampNum == 2){
MenuS.A.Ioc.gotoAndStop(16);
} else {
MenuS.A.Ioc.gotoAndStop(15);
};
MenuS.A.LevelUp.addEventListener(MouseEvent.CLICK, MainBaseClickOK);
MenuS.A.LevelUp.addEventListener(MouseEvent.ROLL_OVER, BaseLevelUpPrice);
MenuS.A.LevelUp.addEventListener(MouseEvent.ROLL_OUT, BaseLevelUpPrice);
if (MainBase.LevelUpIng){
MenuS.A.LevelUp.visible = false;
} else {
MenuS.A.LevelUp.visible = true;
if (((NoviceOK) || ((MainBase.Level > 8)))){
MenuS.A.LevelUp.visible = false;
};
};
MenuS.A.ObjType = "MianBase";
NewMenuASX();
addKeyLevelUp();
}
public function SubmitScoreOK(_arg1){
SubmitOn.visible = false;
InputWindows("Submit");
WindowsPic.gotoAndPlay("Start");
}
public function NewArmyEnemyGo(){
if (EasyLevel == 1){
if (CampNum == 2){
ArmyGo = "Left";
EnemyGo = "Right";
} else {
ArmyGo = "Right";
EnemyGo = "Left";
};
} else {
if (EasyLevel == 2){
if (CampNum == 2){
ArmyGo = "Up";
EnemyGo = "Right";
} else {
ArmyGo = "Right";
EnemyGo = "Up";
};
} else {
if (EasyLevel == 3){
if (CampNum == 2){
ArmyGo = "Up";
EnemyGo = "Down";
} else {
ArmyGo = "Down";
EnemyGo = "Up";
};
};
};
};
}
public function NewBaseSX(){
MainBase.Level++;
MainBase.LevelUpIng = false;
MenuS.MyAndEnemy.MyLevel.Txt.text = MainBase.Level;
MenuS.A.LevelUp.visible = true;
if (NoviceOK){
MenuS.A.LevelUp.visible = false;
};
if (SandOK){
MenuS.A.LevelUp.visible = false;
};
NewMenuASX();
NewMenuBSX();
}
public function PaoTaRange(_arg1){
var _local2:MovieClip;
_local2 = _arg1.target;
if (_arg1.type == "rollOver"){
_local2.Hit.visible = true;
_local2.Hps.alpha = 2;
} else {
_local2.Hit.visible = false;
};
}
public function NewEnemyPaoTa(_arg1:Number){
var _local2:int;
var _local3:*;
var _local4:int;
_local2 = int((Math.random() * PaoTaNum));
_local3 = EnemyPaoTaoArray[_local2].Mc;
if (!_local3.PaoTaReadyOK){
if (_arg1 == 2){
TypeEnemy2++;
};
if ((((TypeEnemy2 > 1)) && ((_arg1 == 2)))){
_arg1 = 1;
};
if (_arg1 == 4){
TypeEnemy4++;
};
if ((((TypeEnemy4 > 1)) && ((_arg1 == 4)))){
_arg1 = 3;
};
if (_arg1 == 6){
TypeEnemy6++;
};
if ((((TypeEnemy6 > 0)) && ((_arg1 == 6)))){
_arg1 = 5;
};
if (CampNum == 2){
_local4 = (_arg1 + 10);
} else {
_local4 = (_arg1 + 50);
};
trace(("生产炮塔成功:" + _local4));
_local3.Num = _arg1;
if (_local3.Num == 2){
EnemyPower = (EnemyPower + addPowerNum);
} else {
if (_local3.Num == 4){
EnemyGuard = (EnemyGuard + addGuardNum);
};
};
_local3.TypeLevel = _arg1;
_local3.Level = 1;
if (SandOK){
_local3.Level = (int((Math.random() * 6)) + 1);
_local3.Hit.scaleX = (_local3.Hit.scaleX + int((_local3.level / 5)));
_local3.Hit.scaleY = (_local3.Hit.scaleY + int((_local3.level / 5)));
};
_local3.LevelIoc.gotoAndStop(_local3.Level);
_local3.PaoTaReadyOK = true;
_local3.Power = ((50 * _arg1) * SandPower);
_local3.Guard = ((2 * _local3.Num) * SandPower);
_local3.Type = 2;
_local3.Price = (_arg1 * 100);
_local3.Hp = (int(((EasyLevel * 50) * (_arg1 + _local3.Level))) * SandPower);
_local3.HpS = (int(((EasyLevel * 50) * (_arg1 + _local3.Level))) * SandPower);
_local3.AttackTime = 0;
_local3.AttackTimeOK = 20;
_local3.Direction = true;
_local3.gotoAndStop(_local4);
_local3.Rood.visible = false;
_local3.addEventListener(Event.ENTER_FRAME, EnemyPaoTaReady);
_local3.addEventListener(MouseEvent.ROLL_OVER, PaoTaRange);
_local3.addEventListener(MouseEvent.ROLL_OUT, PaoTaRange);
};
}
public function NewArmySX(_arg1){
MenuS.D.Power.Txt.text = _arg1.Power;
MenuS.D.Guard.Txt.text = _arg1.Guard;
}
public function ArmyAI(_arg1){
var _local2:MovieClip;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local2 = _arg1.target;
_local2.Hps.gotoAndStop(int(((_local2.Hp / _local2.HpS) * 100)));
if (ClearGameOK){
ArmyAndEnemyClub.removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, ArmyAI);
};
if (!PauseOK){
if (_local2.Hps.alpha > 0){
_local2.Hps.alpha = (_local2.Hps.alpha - 0.03);
};
if (_local2.GoReady){
RoleGoGo(_local2);
};
ArmyReadyHit(_local2);
if (_local2.TypeLevel == 9){
_local3 = 0;
while (_local3 < EnemyPaoTaoArray.length) {
_local4 = EnemyPaoTaoArray[_local3].Mc;
if (_local4.PaoTaReadyOK){
Type8AI(_local2, _local4);
return;
};
_local3++;
};
Type8AI(_local2, ArmyBaseObj);
} else {
if (_local2.TypeLevel == 6){
_local5 = 0;
while (_local5 < ArmyAndEnemyClub.numChildren) {
_local6 = ArmyAndEnemyClub.getChildAt(_local5);
if (_local6.Type == 2){
Type8AI(_local2, _local6);
break;
};
_local5++;
};
Type8AI(_local2, ArmyBaseObj);
} else {
ArmyGoFX(_local2);
};
};
};
}
public function GameReady(){
NewData();
MenuSVisible();
Game.gotoAndStop(EasyLevel);
Tip.gotoAndStop(EasyLevel);
GamePauseOK(true);
if (OneGameOK){
InputWindows("Ready");
} else {
InputWindows("Help");
};
WindowsPic.gotoAndPlay("Start");
MenuS.MyAndEnemy.MyLevel.Txt.text = MainBase.Level;
MenuS.MyAndEnemy.EnemyLevel.Txt.text = MainBase.EnemyLevel;
}
public function CreditOK(_arg1){
gotoAndStop("GameCredit");
}
public function PoTaoHPTime(_arg1){
var _local2:MovieClip;
_local2 = _arg1.target;
if (!PauseOK){
if (_local2.Hps.s < 100){
_local2.Hps.visible = true;
_local2.Hps.s = (_local2.Hps.s + 1);
_local2.Hps.gotoAndStop(_local2.Hps.s);
_local2.gotoAndStop(_local2.Goto);
if (!_local2.GotoOK){
_local2.GotoOK = true;
} else {
_local2.a.alpha = 0.3;
_local2.Hit.visible = false;
};
} else {
_local2.removeEventListener(Event.ENTER_FRAME, PoTaoHPTime);
PaoTaOK2(_local2);
};
};
}
public function PaoTaOK(_arg1){
var _local2:MovieClip;
_local2 = _arg1.target;
if (!PoTaUrl.OK){
if (MainBase.Money >= _local2.Price){
MainBase.Money = (MainBase.Money - _local2.Price);
NewMoney();
PoTaUrl.OK = true;
PoTaUrl.Hps.s = 0;
if (CampNum == 2){
PoTaUrl.Goto = int(_local2.Goto);
} else {
PoTaUrl.Goto = int((_local2.Goto + 10));
};
PoTaUrl.Num = _local2.s;
PoTaUrl.Type = 1;
PoTaUrl.addEventListener(Event.ENTER_FRAME, PoTaoHPTime);
} else {
InputWindows(1);
};
} else {
InputWindows("No");
};
}
public function SeedName(_arg1:String){
var loader:URLLoader;
var url:URLRequest;
var SeedData:URLVariables;
var loaded:Function;
var Name = _arg1;
loaded = function (_arg1:Event){
};
trace(Name);
loader = new URLLoader();
url = new URLRequest("http://www.freeworldgroup.com/score/score.asp");
url.method = URLRequestMethod.POST;
SeedData = new URLVariables();
SeedData.game = "penguindefense";
SeedData.name = Name;
SeedData.score = Score;
url.data = SeedData;
loader.addEventListener(Event.COMPLETE, loaded);
loader.load(url);
}
public function MoreGameUrlOK(_arg1){
var _local2:String;
var _local3:URLRequest;
_local2 = "http://www.freeworldgroup.com/games8/gameindex/mummydefence.htm";
_local3 = new URLRequest(_local2);
navigateToURL(_local3, "_blank");
}
public function MainBaseLevelOK(){
var _local1:Number;
if (MainBase.Level < 9){
_local1 = int(LevelUpData[(MainBase.Level - 1)]);
if (MainBase.Money >= _local1){
MainBase.Money = (MainBase.Money - _local1);
NewMoney();
MenuS.Base.addEventListener(Event.ENTER_FRAME, MainBaseLevelUpTime);
MenuS.A.LevelUp.visible = false;
MenuS.A.ObjType = "MianBase";
MenuS.A.Ioc.gotoAndStop(15);
} else {
InputWindows(1);
};
} else {
InputWindows(2);
};
}
public function Type8AI(_arg1, _arg2){
_arg1.angle = Math.atan2((_arg2.y - _arg1.y), (_arg2.x - _arg1.x));
_arg1.x = (_arg1.x + ((_arg1.Speed * Math.cos(_arg1.angle)) * 0.8));
_arg1.y = (_arg1.y + ((_arg1.Speed * Math.sin(_arg1.angle)) * 0.8));
if (_arg1.Type == 10){
_arg1.rotation = (_arg1.rotation + int(((_arg1.angle * 180) / Math.PI)));
};
if ((((((((_arg1.x < -200)) || ((_arg1.x > 900)))) || ((_arg1.y < -200)))) || ((_arg1.y > 700)))){
ArmyAndEnemyClub.removeChild(_arg1);
_arg1.removeEventListener(Event.ENTER_FRAME, ArmyAI);
_arg1.removeEventListener(Event.ENTER_FRAME, EnemyAI);
};
}
public function PaoTaOK2(_arg1){
_arg1.a.alpha = 1;
if (_arg1.Num == 2){
ArmyPower = (ArmyPower + addPowerNum);
} else {
if (_arg1.Num == 4){
ArmyGuard = (ArmyGuard + addGuardNum);
};
};
_arg1.TypeLevel = _arg1.Num;
_arg1.gotoAndStop(_arg1.Goto);
_arg1.Level = 1;
_arg1.PaoTaReadyOK = true;
_arg1.Power = (40 * _arg1.Num);
_arg1.Guard = (2 * _arg1.Num);
_arg1.Range = int(5);
_arg1.Price = 500;
_arg1.Hp = int((200 * (_arg1.Num + _arg1.Level)));
_arg1.HpS = int((200 * (_arg1.Num + _arg1.Level)));
_arg1.Direction = true;
_arg1.Rood.visible = false;
_arg1.AttackTime = 0;
_arg1.AttackTimeOK = 20;
_arg1.LevelIoc.gotoAndStop(_arg1.Level);
_arg1.buttonMode = true;
_arg1.mouseChildren = false;
_arg1.mouseEnabled = true;
_arg1.addEventListener(MouseEvent.CLICK, ThisSX);
_arg1.addEventListener(MouseEvent.ROLL_OVER, PaoTaRange);
_arg1.addEventListener(MouseEvent.ROLL_OUT, PaoTaRange);
_arg1.addEventListener(Event.ENTER_FRAME, ArmyPaoTaReady);
}
function frame10(){
SelectPage();
}
public function InitialEnemy(){
var _local1:Number;
if (!PauseOK){
MaxSN++;
if (MaxSN > 35){
MaxSN = 0;
};
if (MaxSN < 30){
if (SandOK){
NewEnemy((int((Math.random() * 9)) + 1));
} else {
NewEnemy((int((Math.random() * MainBase.EnemyLevel)) + 1));
if (MainBase.EnemyLevel < 9){
_local1 = 45;
if (NoviceOK){
_local1 = 18;
};
if (EnemySN == int((MainBase.EnemyLevel * _local1))){
MainBase.EnemyLevel++;
MenuS.MyAndEnemy.EnemyLevel.Txt.text = MainBase.EnemyLevel;
if (NoviceOK){
InputIntro("Move", "New Units Available!");
MainBase.Level++;
NewMenuASX();
NewMenuBSX();
MenuS.MyAndEnemy.MyLevel.Txt.text = MainBase.Level;
};
};
};
};
};
};
}
public function BaseLevelUpPrice(_arg1){
var _local2:String;
var _local3:String;
if (_arg1.type == "rollOver"){
_local2 = ("Upgrade to level:" + int((MainBase.Level + 1)));
_local3 = ("\rCost:" + int(LevelUpData[(MainBase.Level - 1)]));
InputIntro("Msg", (_local2 + _local3));
} else {
InputIntro("Out", "null");
};
}
public function RoleRange(_arg1){
var _local2:MovieClip;
_local2 = _arg1.target;
if (_arg1.type == "rollOver"){
_local2.Hit.visible = true;
_local2.Hps.alpha = 2;
} else {
_local2.Hit.visible = false;
};
}
function frame20(){
CreditPage();
}
public function SellOK(_arg1){
var _local2:MovieClip;
var _local3:Number;
_local2 = _arg1.Obj;
_local2.removeEventListener(Event.ENTER_FRAME, ArmyPaoTaReady);
_local2.removeEventListener(MouseEvent.CLICK, ThisSX);
_local3 = int(Number((_local2.Price / 2)));
MainBase.Money = (MainBase.Money + _local3);
NewMoney();
InitialPaoTaEvent(_local2);
MenuS.C.visible = false;
}
public function BackHomeOK(_arg1){
gotoAndStop("Home");
}
public function NewMenuBSX(){
var _local1:*;
var _local2:*;
_local1 = 0;
while (_local1 < MenuBArray.length) {
_local2 = MenuBArray[_local1].Mc;
if (_local1 < MainBase.Level){
_local2.addEventListener(MouseEvent.CLICK, PaoTaOK);
_local2.addEventListener(MouseEvent.ROLL_OVER, PaoTaPrice);
_local2.addEventListener(MouseEvent.ROLL_OUT, PaoTaPrice);
_local2.buttonMode = true;
_local2.mouseChildren = false;
_local2.alpha = 1;
} else {
_local2.alpha = 0.1;
};
_local1++;
};
}
function __setProp___id0___1(){
try {
__id0_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id0_.mochi_code = "b9ed772c864d3a44";
__id0_.protection = false;
__id0_.skip = false;
try {
__id0_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
public function InputIntro(_arg1:String, _arg2:String){
MenuS.Intro.visible = true;
if (_arg1 == "Move"){
MenuS.Intro.gotoAndPlay(2);
} else {
if (_arg1 == "Msg"){
MenuS.Intro.gotoAndStop(2);
} else {
if (_arg1 == "Out"){
MenuS.Intro.visible = false;
};
};
};
MenuS.Intro.a.txt.text = _arg2;
}
function frame50(){
GameOK = false;
PauseOK = false;
Level = 1;
Pass = 1;
SandPower = 1;
addPowerNum = 5;
addGuardNum = 5;
ArmyGuard = 0;
EnemyGuard = 0;
ArmyPower = 0;
EnemyPower = 0;
MainBase = new Object();
MainBase.s = 0;
MainBase.Hp = 100;
MainBase.Level = 1;
MainBase.EnemyHP = 100;
MainBase.Money = 10000;
MainBase.EnemyLevel = 1;
ArmyAndEnemyClub = new MovieClip();
Game.addChild(ArmyAndEnemyClub);
YdkUrl = Game.Ydk;
ArmyBaseObj = Game.EnemyBase;
EnemyBaseObj = Game.MyBase;
YdkXYUrl = Game.RoleXY;
EnemyXYUrl = Game.EnemyXY;
RoleHitObj = Game.Role;
EnemyHitObj = Game.Enemy;
ArmyBorn = "a";
EnemyBorn = "b";
GameReady();
ClearGameOK = false;
RolePaoTaClub = new MovieClip();
addChild(RolePaoTaClub);
EnemyPaoTaClub = new MovieClip();
addChild(EnemyPaoTaClub);
MenuAArray = new Array();
MenuBArray = new Array();
MyPaoTa = new Array();
PaoTaNum = 11;
EnemyPaoTaoArray = new Array();
ArmyPaoTaoArray = new Array();
LevelUpData = [1500, 3000, 4000, 4500, 5000, 5500, 6000, 6500];
EnemyClub = new MovieClip();
addChild(EnemyClub);
Game.addChild(EnemyClub);
EnemySN = 0;
EnemyPaoTaSN = 0;
NewEnemyTime = 3000;
NewEnemyPaoTaTime = 5000;
EnemyGo = "Left";
MaxSN = 0;
TypeEnemy2 = 0;
TypeEnemy4 = 0;
TypeEnemy6 = 0;
ArmyClub = new MovieClip();
addChild(ArmyClub);
Game.addChild(ArmyClub);
PaoTaLevelMax = 6;
ArmyGo = "Right";
Rank = 0;
RankClub = new Array();
XRoleIoc();
MenuS.A.hp.addEventListener(Event.ENTER_FRAME, HpTime);
MenuS.A.hp.s = 0;
}
public function NewEnemyHP(_arg1, _arg2){
var _local3:int;
_local3 = ((_arg2.Power - _arg1.Guard) + EnemyGuard);
if (_local3 < 0){
_local3 = 1;
};
_arg1.Hp = (_arg1.Hp - _local3);
_arg1.Hps.alpha = 1;
if (_arg1.Hp <= 0){
ArmyAndEnemyClub.removeChild(_arg1);
Score = (Score + int((_arg1.HpS / 2)));
MainBase.Money = (MainBase.Money + _arg1.Price);
NewMoney();
_arg1.removeEventListener(Event.ENTER_FRAME, EnemyAI);
};
}
public function NewEasyLevel(_arg1){
var _local2:*;
_local2 = _arg1.target;
if (_local2.name == "Easy"){
EasyLevel = 1;
} else {
if (_local2.name == "Normal"){
EasyLevel = 2;
} else {
if (_local2.name == "Hard"){
EasyLevel = 3;
};
};
};
GotoGame();
}
public function BackMenu(_arg1:Number){
if (_arg1 == 1){
ClearGame();
gotoAndStop("Home");
} else {
if (_arg1 == 2){
GamePauseOK(false);
WindowsPic.gotoAndPlay("End");
};
};
}
public function ArmyAttackOK(_arg1, _arg2){
_arg1.AttackTime++;
if (_arg1.TypeLevel != 9){
_arg1.a.getChildAt(0).gotoAndPlay(2);
};
if (_arg1.AttackTime > _arg1.AttackTimeOK){
_arg1.a.getChildAt(0).gotoAndPlay(2);
_arg1.AttackTime = 0;
EnemyPaoTaHP(_arg2, _arg1);
NewDan(_arg1, _arg2);
};
}
public function NewMenu(){
var BackMenuReady:Function;
var QualityReady:Function;
var MusicReady:Function;
var PauseOpen:Function;
BackMenuReady = function (_arg1){
GamePauseOK(true);
InputWindows("BackMenu");
WindowsPic.gotoAndPlay("Start");
};
QualityReady = function (_arg1){
GamePauseOK(true);
InputWindows("Quality");
WindowsPic.gotoAndPlay("Start");
};
MusicReady = function (_arg1){
GamePauseOK(true);
InputWindows("Music");
WindowsPic.gotoAndPlay("Start");
};
PauseOpen = function (_arg1){
GamePauseOK(true);
InputWindows("Pause");
WindowsPic.gotoAndPlay("Start");
};
MenuS.PauseOn.addEventListener(MouseEvent.CLICK, PauseOpen);
MenuS.MenuOn.addEventListener(MouseEvent.CLICK, BackMenuReady);
MenuS.Music.Quality.addEventListener(MouseEvent.CLICK, QualityReady);
MenuS.Music.Music.addEventListener(MouseEvent.CLICK, MusicReady);
}
public function ArmyGoFX(_arg1){
var _local2:Number;
var _local3:*;
var _local4:*;
NewDetph(_arg1, ArmyAndEnemyClub);
_local3 = 0;
while (_local3 < RoleHitObj.numChildren) {
_local4 = RoleHitObj.getChildAt(_local3);
if (_local4.hitTestPoint(_arg1.x, _arg1.y, true)){
switch (_local4.name){
case "Up":
_arg1.Go = "Up";
break;
case "Right":
_arg1.Go = "Right";
break;
case "Down":
_arg1.Go = "Down";
break;
case "Left":
_arg1.Go = "Left";
break;
case "UpRight":
if (!_arg1.UpRight){
_local2 = int((Math.random() * 2));
if (_local2 == 0){
_arg1.Go = "Up";
} else {
_arg1.Go = "Right";
};
_arg1.UpRight = true;
};
return;
case "UpDown":
if (!_arg1.UpDown){
_local2 = int((Math.random() * 2));
if (_local2 == 0){
_arg1.Go = "Up";
} else {
_arg1.Go = "Down";
};
_arg1.UpDown = true;
};
return;
case "RightDown":
if (!_arg1.RightDown){
_local2 = int((Math.random() * 2));
if (_local2 == 0){
_arg1.Go = "Right";
} else {
_arg1.Go = "Down";
};
_arg1.RightDown = true;
};
return;
case "LeftRight":
if (!_arg1.LeftRight){
_local2 = int((Math.random() * 2));
if (_local2 == 0){
_arg1.Go = "Left";
} else {
_arg1.Go = "Right";
};
_arg1.LeftRight = true;
};
return;
case "UpRight":
if (!_arg1.UpRight){
_local2 = int((Math.random() * 2));
if (_local2 == 0){
_arg1.Go = "Up";
} else {
_arg1.Go = "Right";
};
_arg1.UpRight = true;
};
return;
case "UpDown":
if (!_arg1.UpDown){
_local2 = int((Math.random() * 2));
if (_local2 == 0){
_arg1.Go = "Up";
} else {
_arg1.Go = "Down";
};
_arg1.UpDown = true;
};
return;
case "RightDown":
if (!_arg1.RightDown){
_local2 = int((Math.random() * 2));
if (_local2 == 0){
_arg1.Go = "Right";
} else {
_arg1.Go = "Down";
};
_arg1.RightDown = true;
};
return;
case "LeftRight":
if (!_arg1.LeftRight){
_local2 = int((Math.random() * 2));
if (_local2 == 0){
_arg1.Go = "Left";
} else {
_arg1.Go = "Right";
};
_arg1.LeftRight = true;
};
return;
case "LeftDown":
if (!_arg1.LeftDown){
_local2 = int((Math.random() * 2));
if (_local2 == 0){
_arg1.Go = "Left";
} else {
_arg1.Go = "Down";
};
_arg1.LeftDown = true;
};
return;
case "LeftUp":
if (!_arg1.LeftUp){
_local2 = int((Math.random() * 2));
if (_local2 == 0){
_arg1.Go = "Left";
} else {
_arg1.Go = "Up";
};
_arg1.LeftUp = true;
};
return;
};
};
_local3++;
};
_arg1.UpRight = false;
_arg1.UpDown = false;
_arg1.RightDown = false;
_arg1.LeftRight = false;
_arg1.UpRight = false;
_arg1.UpDown = false;
_arg1.RightDown = false;
_arg1.LeftRight = false;
_arg1.LeftDown = false;
_arg1.LeftUp = false;
}
public function ArmySX(_arg1){
var _local2:MovieClip;
_local2 = _arg1.target;
MenuSVisible();
MenuS.D.Obj = _local2;
MenuS.D.visible = true;
NewArmySX(_local2);
if (CampNum == 1){
MenuS.D.Ioc.gotoAndStop(_local2.TypeLevel);
} else {
MenuS.D.Ioc.gotoAndStop((_local2.TypeLevel + 50));
};
}
public function MenuSVisible(){
MenuS.A.visible = false;
MenuS.B.visible = false;
MenuS.C.visible = false;
MenuS.D.visible = false;
MenuS.Intro.visible = false;
}
public function NewMoney(){
if (SandOK){
MenuS.MoneyTxt.Txt.text = "888888";
} else {
MenuS.MoneyTxt.Txt.text = int(MainBase.Money);
};
}
public function NewMenuASX(){
var _local1:*;
var _local2:*;
_local1 = 0;
while (_local1 < MenuAArray.length) {
_local2 = MenuAArray[_local1].Mc;
if (_local1 < MainBase.Level){
_local2.addEventListener(MouseEvent.CLICK, RoleOK);
_local2.addEventListener(MouseEvent.ROLL_OVER, ArmyPrice);
_local2.addEventListener(MouseEvent.ROLL_OUT, ArmyPrice);
_local2.buttonMode = true;
_local2.mouseChildren = false;
_local2.alpha = 1;
} else {
_local2.alpha = 0.1;
};
_local1++;
};
}
public function RoleOK(_arg1){
var _local2:*;
_local2 = _arg1.target;
if (RankClub.length < 6){
if (MainBase.Money >= _local2.Price){
MainBase.Money = (MainBase.Money - _local2.Price);
NewMoney();
RankClub.push(_local2.s);
XRoleIoc();
MenuS.A.ObjType = false;
} else {
InputWindows(1);
};
} else {
InputWindows("Wait");
};
}
public function NewArmyHP(_arg1, _arg2){
var _local3:int;
_local3 = (_arg2.Power - (_arg1.Guard + ArmyGuard));
if (_local3 < 0){
_local3 = 1;
};
_arg1.Hp = (_arg1.Hp - _local3);
_arg1.Hps.alpha = 1;
if (_arg1.Hp < 0){
ArmyAndEnemyClub.removeChild(_arg1);
_arg1.removeEventListener(Event.ENTER_FRAME, ArmyAI);
};
}
function frame70(){
GameOverPage();
}
public function SellPrice(_arg1){
var _local2:MovieClip;
var _local3:Number;
_local2 = _arg1.target.parent.Obj;
if (_arg1.type == "rollOver"){
_local3 = int(((Number(_local2.Price) * Number(_local2.Level)) / 2));
InputIntro("Msg", ((("Sell For:" + _local3) + "\r") + ""));
} else {
InputIntro("Out", "null");
};
}
public function EnemyGoFX(_arg1){
var _local2:Number;
var _local3:*;
var _local4:*;
NewDetph(_arg1, ArmyAndEnemyClub);
_local3 = 0;
while (_local3 < EnemyHitObj.numChildren) {
_local4 = EnemyHitObj.getChildAt(_local3);
if (_local4.hitTestPoint(_arg1.x, _arg1.y, true)){
switch (_local4.name){
case "Up":
_arg1.Go = "Up";
break;
case "Right":
_arg1.Go = "Right";
break;
case "Down":
_arg1.Go = "Down";
break;
case "Left":
_arg1.Go = "Left";
break;
case "UpRight":
if (!_arg1.UpRight){
_local2 = int((Math.random() * 2));
if (_local2 == 0){
_arg1.Go = "Up";
} else {
_arg1.Go = "Right";
};
_arg1.UpRight = true;
};
return;
case "UpDown":
if (!_arg1.UpDown){
_local2 = int((Math.random() * 2));
if (_local2 == 0){
_arg1.Go = "Up";
} else {
_arg1.Go = "Down";
};
_arg1.UpDown = true;
};
return;
case "RightDown":
if (!_arg1.RightDown){
_local2 = int((Math.random() * 2));
if (_local2 == 0){
_arg1.Go = "Right";
} else {
_arg1.Go = "Down";
};
_arg1.RightDown = true;
};
return;
case "LeftRight":
if (!_arg1.LeftRight){
_local2 = int((Math.random() * 2));
if (_local2 == 0){
_arg1.Go = "Left";
} else {
_arg1.Go = "Right";
};
_arg1.LeftRight = true;
};
return;
case "UpRight":
if (!_arg1.UpRight){
_local2 = int((Math.random() * 2));
if (_local2 == 0){
_arg1.Go = "Up";
} else {
_arg1.Go = "Right";
};
_arg1.UpRight = true;
};
return;
case "UpDown":
if (!_arg1.UpDown){
_local2 = int((Math.random() * 2));
if (_local2 == 0){
_arg1.Go = "Up";
} else {
_arg1.Go = "Down";
};
_arg1.UpDown = true;
};
return;
case "RightDown":
if (!_arg1.RightDown){
_local2 = int((Math.random() * 2));
if (_local2 == 0){
_arg1.Go = "Right";
} else {
_arg1.Go = "Down";
};
_arg1.RightDown = true;
};
return;
case "LeftRight":
if (!_arg1.LeftRight){
_local2 = int((Math.random() * 2));
if (_local2 == 0){
_arg1.Go = "Left";
} else {
_arg1.Go = "Right";
};
_arg1.LeftRight = true;
};
return;
case "LeftDown":
if (!_arg1.LeftDown){
_local2 = int((Math.random() * 2));
if (_local2 == 0){
_arg1.Go = "Left";
} else {
_arg1.Go = "Down";
};
_arg1.LeftDown = true;
};
return;
case "LeftUp":
if (!_arg1.LeftUp){
_local2 = int((Math.random() * 2));
if (_local2 == 0){
_arg1.Go = "Left";
} else {
_arg1.Go = "Up";
};
_arg1.LeftUp = true;
};
return;
};
};
_local3++;
};
_arg1.UpRight = false;
_arg1.UpDown = false;
_arg1.RightDown = false;
_arg1.LeftRight = false;
_arg1.UpRight = false;
_arg1.UpDown = false;
_arg1.RightDown = false;
_arg1.LeftRight = false;
_arg1.LeftDown = false;
_arg1.LeftUp = false;
}
function frame90(){
YouWinPage();
}
public function LevelUpClickOK(_arg1){
LevelUpOK(MenuS.C);
}
public function InitialEnemyPaoTa(){
var _local1:*;
if (!PauseOK){
if (SandOK){
NewEnemyPaoTa((int((Math.random() * 8)) + 1));
} else {
_local1 = (int((Math.random() * MainBase.EnemyLevel)) + 1);
if (_local1 > 8){
_local1 = 8;
};
NewEnemyPaoTa(_local1);
};
};
}
public function CreditPage(){
Credit.BackOn.addEventListener(MouseEvent.CLICK, BackHomeOK);
}
public function LevelUpOK(_arg1){
var _local2:MovieClip;
var _local3:MovieClip;
var _local4:Number;
_local2 = _arg1;
_local3 = _arg1.Obj;
_local4 = ((Number(_local3.Price) * Number(_local3.Level)) * 2);
if (_local3.Level < PaoTaLevelMax){
if (MainBase.Money >= _local4){
MainBase.Money = (MainBase.Money - _local4);
NewMoney();
_local3.Hp = int((200 * (_local3.Num + _local3.Level)));
_local3.HpS = int((200 * (_local3.Num + _local3.Level)));
_local3.LevelUpIng = true;
NewPaoTaSX(_local3);
_local3.s = 0;
_local3.Time = _local2.Time;
_local3.addEventListener(Event.ENTER_FRAME, PaoTaLevelUpTime);
} else {
InputWindows(1);
};
} else {
InputWindows("LevelMax");
};
}
public function HighScoreURL(_arg1){
var _local2:String;
var _local3:String;
var _local4:URLRequest;
_local2 = "penguindefense";
_local3 = ("http://www.freeworldgroup.com/score/index.asp?game=" + _local2);
_local4 = new URLRequest(_local3);
navigateToURL(_local4, "_blank");
}
public function NewData(){
if (CampNum == 2){
Game.Ydk.visible = false;
YdkUrl = Game.Ydk2;
YdkXYUrl = Game.EnemyXY;
EnemyXYUrl = Game.RoleXY;
RoleHitObj = Game.Enemy;
EnemyHitObj = Game.Role;
ArmyBaseObj = Game.MyBase;
EnemyBaseObj = Game.EnemyBase;
ArmyBorn = "b";
EnemyBorn = "a";
} else {
Game.Ydk2.visible = false;
YdkUrl = Game.Ydk;
ArmyBaseObj = Game.EnemyBase;
EnemyBaseObj = Game.MyBase;
YdkXYUrl = Game.RoleXY;
EnemyXYUrl = Game.EnemyXY;
RoleHitObj = Game.Role;
EnemyHitObj = Game.Enemy;
ArmyBorn = "a";
EnemyBorn = "b";
};
if (SandOK){
NewEnemyTime = 1000;
MainBase.Money = 99999999999;
MainBase.Level = 9;
MainBase.EnemyLevel = 9;
SandPower = 1.5;
};
if (NoviceOK){
SandPower = 1.2;
};
}
public function addKeyLevelUp(){
var keyDownHandler:Function;
keyDownHandler = function (_arg1:KeyboardEvent):void{
if (MenuS.C.visible){
if (_arg1.keyCode == 85){
if (MenuS.C.LevelUp.visible){
LevelUpOK(MenuS.C);
};
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
} else {
if (_arg1.keyCode == 83){
if (MenuS.C.Sell.visible){
SellOK(MenuS.C);
};
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
};
};
trace(("按键:" + _arg1.keyCode));
};
if (MenuS.A.visible){
if (_arg1.keyCode == 85){
if (MenuS.A.LevelUp.visible){
MainBaseLevelOK();
};
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
};
};
};
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
}
public function DanAI(_arg1){
var _local2:MovieClip;
_local2 = _arg1.target;
Type8AI(_local2, _local2.Obj);
_local2.s++;
if (((_local2.hitTestObject(_local2.Obj.Hps)) || ((_local2.s > 12)))){
Game.removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, DanAI);
};
}
public function EnemyPaoTaHP(_arg1, _arg2){
var _local3:int;
_local3 = ((_arg2.Power - _arg1.Guard) + EnemyGuard);
if (_local3 < 0){
_local3 = 1;
};
_arg1.Hp = (_arg1.Hp - _local3);
_arg1.Hps.alpha = 1;
if (_arg1.Hp <= 0){
if (_arg1.Num == 2){
EnemyPower = (EnemyPower - 5);
};
if (_arg1.Num == 4){
EnemyGuard = (EnemyGuard - 5);
};
if (_arg1.Num == 2){
TypeEnemy2--;
};
if (_arg1.Num == 4){
TypeEnemy4--;
};
if (_arg1.Num == 6){
TypeEnemy6--;
};
_arg1.gotoAndStop(1);
_arg1.Rood.visible = true;
_arg1.PaoTaReadyOK = false;
MainBase.Money = (MainBase.Money + _arg1.Price);
NewMoney();
Score = (Score + int((_arg1.HpS / 2)));
_arg1.removeEventListener(MouseEvent.ROLL_OVER, PaoTaRange);
_arg1.removeEventListener(MouseEvent.ROLL_OUT, RoleRange);
_arg1.removeEventListener(Event.ENTER_FRAME, EnemyPaoTaReady);
};
}
public function InputWindows(_arg1){
WindowsPic.a.gotoAndStop(_arg1);
WindowsPic.gotoAndPlay(2);
}
public function ArmyPaoTaHP(_arg1, _arg2){
var _local3:int;
var _local4:Number;
_local3 = (_arg2.Power - (_arg1.Guard + ArmyGuard));
if (_local3 < 0){
_local3 = 1;
};
_arg1.Hp = (_arg1.Hp - _local3);
_arg1.Hps.alpha = 1;
if (_arg1.Hp <= 0){
if (_arg1.Num == 2){
ArmyPower = (ArmyPower - 5);
} else {
if (_arg1.Num == 4){
EnemyGuard = (EnemyGuard - 5);
};
};
if (_arg1.LevelUpIng){
_local4 = ((Number(_arg1.Price) * Number(_arg1.Level)) * 2);
MainBase.Money = (MainBase.Money + _local4);
NewMoney();
};
if (PoTaUrl == _arg1){
MenuSVisible();
};
InitialPaoTaEvent(_arg1);
_arg1.removeEventListener(Event.ENTER_FRAME, ArmyPaoTaReady);
};
}
function frame5(){
stop();
HomePage();
}
public function PaoToAI(_arg1, _arg2, _arg3:Number){
var _local4:MovieClip;
var _local5:*;
var _local6:*;
_local4 = _arg1;
if (_local4.ReadyOK){
if (_local4.Hps.alpha > 0){
_local4.Hps.alpha = (_local4.Hps.alpha - 0.03);
};
_local4.Hit.mouseEnabled = false;
_local5 = 0;
while (_local5 < _arg2.numChildren) {
_local6 = _arg2.getChildAt(_local5);
if (((_local4.Hit.hitTestObject(_local6.a)) && ((_local6.Type == _arg3)))){
if (_local4.Direction){
_local4.AttackTime++;
if (_local4.AttackTime > _local4.AttackTimeOK){
_local4.a.getChildAt(0).gotoAndPlay(2);
if (((!((_local4.TypeLevel == 5))) && (!((_local4.TypeLevel == 8))))){
NewDan(_local4, _local6);
};
if (_local4.Type == 1){
NewEnemyHP(_local6, _local4);
} else {
if (_local4.Type == 2){
NewArmyHP(_local6, _local4);
};
};
_local4.AttackTime = 0;
_local4.Direction = false;
};
if (_local4.a.getChildAt(0).currentFrame == 1){
_local4.Direction = false;
_local4.a.stop();
};
} else {
PaoTaDirection(_local4, _local6.Hit);
};
};
_local5++;
};
} else {
_local4.ReadyOK = true;
};
}
public function InistalPaoTa(){
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = 1;
while (_local1 < (PaoTaNum + 1)) {
_local2 = Game.getChildByName((ArmyBorn + _local1));
ArmyPaoTaoArray.push({Mc:_local2});
InitialPaoTaEvent(_local2);
_local3 = Game.getChildByName((EnemyBorn + _local1));
_local3.Rood.gotoAndStop(3);
_local3.PaoTaReadyOK = false;
EnemyPaoTaoArray.push({Mc:_local3});
_local1++;
};
YdkUrl.addEventListener(MouseEvent.CLICK, NewRoleMenu);
}
public function EnemyAI(_arg1){
var _local2:MovieClip;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local2 = _arg1.target;
_local2.Hps.gotoAndStop(int(((_local2.Hp / _local2.HpS) * 100)));
if (ClearGameOK){
ArmyAndEnemyClub.removeChild(_local2);
_local2.removeEventListener(Event.ENTER_FRAME, EnemyAI);
};
if (!PauseOK){
if (_local2.Hps.alpha > 0){
_local2.Hps.alpha = (_local2.Hps.alpha - 0.03);
};
if (_local2.GoReady){
RoleGoGo(_local2);
};
EnemyReadyHit(_local2);
if (_local2.TypeLevel == 9){
_local3 = 0;
while (_local3 < ArmyPaoTaoArray.length) {
_local4 = ArmyPaoTaoArray[_local3].Mc;
if (_local4.PaoTaReadyOK){
Type8AI(_local2, _local4);
return;
};
_local3++;
};
Type8AI(_local2, EnemyBaseObj);
} else {
if (_local2.TypeLevel == 6){
_local5 = 0;
while (_local5 < ArmyAndEnemyClub.numChildren) {
_local6 = ArmyAndEnemyClub.getChildAt(_local5);
if (_local6.Type == 1){
Type8AI(_local2, _local6);
break;
};
_local5++;
};
Type8AI(_local2, EnemyBaseObj);
} else {
EnemyGoFX(_local2);
};
};
};
}
public function NewNoviceOK(_arg1){
NoviceOK = true;
SandOK = false;
TempSandOK = false;
Select.SandIoc.gotoAndStop(1);
Select.NoviceIoc.gotoAndStop(2);
Select.AdvancedIoc.gotoAndStop(1);
TempNoviceOK = NoviceOK;
}
public function LevelUpPrice(_arg1){
var _local2:MovieClip;
var _local3:String;
var _local4:String;
var _local5:String;
var _local6:String;
var _local7:String;
_local2 = _arg1.target.parent.Obj;
if (_arg1.type == "rollOver"){
_local3 = ("Upgrade to level:" + int((_local2.Level + 1)));
_local4 = ("\rCost:" + int(((Number(_local2.Price) * Number(_local2.Level)) * 2)));
_local5 = ("\rDamage:" + int((_local2.Power + int((10 * _local2.Level)))));
_local6 = ("\rDefence:" + int((_local2.Guard + int((2 * _local2.Level)))));
_local7 = ("\rRange:" + int((_local2.Range + int((2 * _local2.Level)))));
if ((((((_local2.Num == 2)) || ((_local2.Num == 4)))) || ((_local2.Num == 6)))){
_local5 = "\rDamage:0";
};
if (_local2.Num == 6){
_local7 = "\rRange:0";
};
InputIntro("Msg", ((((_local3 + _local4) + _local5) + _local6) + _local7));
} else {
InputIntro("Out", "null");
};
}
public function NewGame(){
var _local1:uint;
NewArmyEnemyGo();
NewHP();
NewEnemyBaseHP();
NewMoney();
NewMenuS_A();
NewMenuS_B();
GameVisible();
InistalPaoTa();
NewMenu();
_local1 = setTimeout(EenmyReadyOK, 10000);
}
public function YouWinPage(){
MoreGameOn.addEventListener(MouseEvent.CLICK, MoreGameUrlOK);
SubmitOn.addEventListener(MouseEvent.CLICK, SubmitScoreOK);
PlayAgainOn.addEventListener(MouseEvent.CLICK, BackHomeOK);
ScoreTxt.Txt.text = Score;
if (SandOK){
SubmitOn.visible = false;
};
}
public function EenmyReadyOK(){
EnemyID = setInterval(InitialEnemy, NewEnemyTime);
EnemyPaoTaID = setInterval(InitialEnemyPaoTa, NewEnemyPaoTaTime);
}
public function AdvancedOK(_arg1){
Select.NoviceIoc.gotoAndStop(1);
Select.AdvancedIoc.gotoAndStop(2);
SandOK = false;
TempSandOK = false;
Select.SandIoc.gotoAndStop(1);
NoviceOK = false;
SandOK = false;
TempNoviceOK = NoviceOK;
}
public function NewEnemyBaseHP(){
MenuS.MyAndEnemy.Enemy.gotoAndStop(MainBase.EnemyHP);
if (MainBase.EnemyHP <= 0){
GameOverOK(2);
};
}
public function ArmyPrice(_arg1){
var _local2:MovieClip;
var _local3:Number;
_local2 = _arg1.target;
if (_arg1.type == "rollOver"){
_local3 = int(Number(_local2.Price));
InputIntro("Msg", ((((((("Cost:" + _local3) + "\r") + "Damage:") + _local2.Power) + "\r") + "Defence:") + _local2.Guard));
} else {
InputIntro("Out", "null");
};
}
public function RoleGoGo(_arg1:MovieClip){
if (_arg1.Ready){
switch (_arg1.Go){
case "Up":
_arg1.y = (_arg1.y - _arg1.Speed);
if (_arg1.a.currentFrame != 4){
_arg1.a.gotoAndStop(4);
};
break;
case "Right":
_arg1.x = (_arg1.x + _arg1.Speed);
if (_arg1.a.currentFrame != 1){
_arg1.a.gotoAndStop(1);
};
break;
case "Down":
_arg1.y = (_arg1.y + _arg1.Speed);
if (_arg1.a.currentFrame != 2){
_arg1.a.gotoAndStop(2);
};
break;
case "Left":
_arg1.x = (_arg1.x - _arg1.Speed);
if (_arg1.a.currentFrame != 3){
_arg1.a.gotoAndStop(3);
};
break;
};
} else {
_arg1.Ready = true;
};
}
public function SandOn(_arg1){
SandOK = true;
NoviceOK = false;
TempNoviceOK = false;
Select.SandIoc.gotoAndStop(2);
Select.NoviceIoc.gotoAndStop(1);
Select.AdvancedIoc.gotoAndStop(1);
TempSandOK = SandOK;
}
public function EnemyAttackOK(_arg1, _arg2){
_arg1.AttackTime++;
if (_arg1.TypeLevel != 9){
_arg1.a.getChildAt(0).gotoAndPlay(2);
};
if (_arg1.AttackTime > _arg1.AttackTimeOK){
_arg1.a.getChildAt(0).gotoAndPlay(2);
_arg1.AttackTime = 0;
ArmyPaoTaHP(_arg2, _arg1);
NewDan(_arg1, _arg2);
};
}
public function NewPaoTaSX(_arg1){
MenuS.C.Level.Txt.text = _arg1.Level;
MenuS.C.Power.Txt.text = _arg1.Power;
MenuS.C.Guard.Txt.text = _arg1.Guard;
MenuS.C.Range.Txt.text = _arg1.Range;
if ((((_arg1.Num == 2)) || ((_arg1.Num == 4)))){
MenuS.C.Power.Txt.text = 0;
};
if (_arg1.Num == 6){
MenuS.C.Power.Txt.text = 0;
MenuS.C.Range.Txt.text = 0;
};
if (_arg1.LevelUpIng){
MenuS.C.Time.visible = true;
MenuS.C.LevelUp.visible = false;
} else {
MenuS.C.LevelUp.visible = true;
MenuS.C.Time.visible = false;
};
addKeyLevelUp();
}
public function Input(_arg1){
}
public function PaoTaAttack(){
}
public function SellClickOK(_arg1){
SellOK(MenuS.C);
}
public function GameOverPage(){
MoreGameOn.addEventListener(MouseEvent.CLICK, MoreGameUrlOK);
SubmitOn.addEventListener(MouseEvent.CLICK, SubmitScoreOK);
PlayAgainOn.addEventListener(MouseEvent.CLICK, BackHomeOK);
ScoreTxt.Txt.text = Score;
if (SandOK){
SubmitOn.visible = false;
};
}
public function NewDetph(_arg1, _arg2){
var _local3:*;
var _local4:*;
_local3 = 0;
while (_local3 < _arg2.numChildren) {
_local4 = _arg2.getChildAt(_local3);
if (_arg1 != _local4){
if (_arg1.hitTestObject(_local4)){
if (_arg1.y > _local4.y){
if (_arg2.getChildIndex(_arg1) < _arg2.getChildIndex(_local4)){
_arg2.swapChildren(_arg1, _local4);
};
};
if (_arg1.y < _local4.y){
if (_arg2.getChildIndex(_arg1) > _arg2.getChildIndex(_local4)){
_arg2.swapChildren(_arg1, _local4);
};
};
};
};
_local3++;
};
}
public function NewObjIndex(){
}
public function NewCampOK(_arg1:Number){
if (_arg1 == 1){
Select.CampIoc2.gotoAndStop(1);
Select.CampIoc1.gotoAndStop(2);
} else {
Select.CampIoc2.gotoAndStop(2);
Select.CampIoc1.gotoAndStop(1);
};
CampNum = _arg1;
}
public function MainBaseClickOK(_arg1){
MainBaseLevelOK();
}
public function PauseClose(_arg1){
GamePauseOK(false);
WindowsPic.gotoAndPlay("End");
}
public function ThisSX(_arg1){
var _local2:MovieClip;
_local2 = _arg1.target;
MenuSVisible();
MenuS.C.Obj = _local2;
MenuS.C.visible = true;
PoTaUrl = _local2;
NewPaoTaSX(_local2);
if (CampNum == 2){
MenuS.C.Ioc.gotoAndStop(_local2.Goto);
} else {
MenuS.C.Ioc.gotoAndStop((_local2.Goto - 10));
};
MenuS.C.Sell.addEventListener(MouseEvent.CLICK, SellClickOK);
MenuS.C.Sell.addEventListener(MouseEvent.ROLL_OVER, SellPrice);
MenuS.C.Sell.addEventListener(MouseEvent.ROLL_OUT, SellPrice);
MenuS.C.LevelUp.addEventListener(MouseEvent.CLICK, LevelUpClickOK);
MenuS.C.LevelUp.addEventListener(MouseEvent.ROLL_OVER, LevelUpPrice);
MenuS.C.LevelUp.addEventListener(MouseEvent.ROLL_OUT, LevelUpPrice);
}
public function ClearGame(){
var _local1:*;
var _local2:*;
ClearGameOK = true;
clearInterval(EnemyID);
clearInterval(EnemyPaoTaID);
clearInterval(GameTimeID);
_local1 = 0;
while (_local1 < Game.numChildren) {
_local2 = Game.getChildAt(_local1);
_local2.removeEventListener(Event.ENTER_FRAME, ArmyAI);
_local2.removeEventListener(Event.ENTER_FRAME, EnemyAI);
_local2.removeEventListener(Event.ENTER_FRAME, EnemyPaoTaReady);
_local2.removeEventListener(Event.ENTER_FRAME, ArmyPaoTaReady);
_local2.removeEventListener(Event.ENTER_FRAME, DanAI);
_local2.removeEventListener(Event.ENTER_FRAME, MainBaseLevelUpTime);
_local2.removeEventListener(Event.ENTER_FRAME, PaoTaLevelUpTime);
_local2.removeEventListener(Event.ENTER_FRAME, PaoTaLevelUpTime);
_local1++;
};
removeChild(Game);
removeChild(MenuS);
MenuS.A.hp.removeEventListener(Event.ENTER_FRAME, HpTime);
}
public function SelectPage(){
var Camp1:Function;
var Camp2:Function;
Camp1 = function (_arg1){
NewCampOK(1);
};
Camp2 = function (_arg1){
NewCampOK(2);
};
Score = 0;
NewCampOK(1);
Select.Camp1.addEventListener(MouseEvent.CLICK, Camp1);
Select.Camp2.addEventListener(MouseEvent.CLICK, Camp2);
Select.Easy.addEventListener(MouseEvent.CLICK, NewEasyLevel);
Select.Normal.addEventListener(MouseEvent.CLICK, NewEasyLevel);
Select.Hard.addEventListener(MouseEvent.CLICK, NewEasyLevel);
Select.Sand.addEventListener(MouseEvent.CLICK, SandOn);
Select.NoviceOn.addEventListener(MouseEvent.CLICK, NewNoviceOK);
Select.AdvancedOn.addEventListener(MouseEvent.CLICK, AdvancedOK);
if (TempSandOK != null){
if (TempSandOK){
Select.SandIoc.gotoAndStop(2);
Select.AdvancedIoc.gotoAndStop(1);
Select.NoviceIoc.gotoAndStop(1);
SandOK = true;
TempNoviceOK = null;
} else {
SandOK = false;
};
};
if (TempNoviceOK != null){
if (TempNoviceOK){
Select.NoviceIoc.gotoAndStop(2);
NoviceOK = true;
} else {
Select.AdvancedIoc.gotoAndStop(2);
NoviceOK = false;
};
SandOK = false;
};
}
public function ArmyReadyHit(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
if (_arg1.hitTestObject(ArmyBaseObj)){
_arg1.removeEventListener(Event.ENTER_FRAME, ArmyAI);
ArmyAndEnemyClub.removeChild(_arg1);
MainBase.EnemyHP = (MainBase.EnemyHP - 10);
NewEnemyBaseHP();
};
_local2 = 0;
while (_local2 < ArmyAndEnemyClub.numChildren) {
_local4 = ArmyAndEnemyClub.getChildAt(_local2);
if (((_arg1.a.hitTestObject(_local4.a)) && ((_local4.Type == 2)))){
_arg1.GoReady = false;
NewEnemyHP(_local4, _arg1);
return;
};
_local2++;
};
_local3 = 0;
while (_local3 < EnemyPaoTaoArray.length) {
_local5 = EnemyPaoTaoArray[_local3].Mc;
if (_local5.PaoTaReadyOK){
if (_arg1.Hit.hitTestObject(_local5.Rood)){
_arg1.GoReady = false;
ArmyAttackOK(_arg1, _local5);
return;
};
};
_local3++;
};
_arg1.GoReady = true;
}
public function GamePauseOK(_arg1:Boolean){
if (_arg1){
PauseOK = true;
MenuS.mouseChildren = false;
Game.mouseChildren = false;
} else {
PauseOK = false;
MenuS.mouseChildren = true;
Game.mouseChildren = true;
};
}
public function NewSod(_arg1:Number){
scf.volume = _arg1;
soundTransform = scf;
}
public function NewEnemy(_arg1:Number){
var _local2:MovieClip;
clearInterval(EnemyID);
if (SandOK){
NewEnemyTime = int((Math.random() * 7000));
} else {
if (NoviceOK){
NewEnemyTime = int((Math.random() * 4000));
} else {
NewEnemyTime = int((Math.random() * 4000));
};
};
EnemyID = setInterval(InitialEnemy, NewEnemyTime);
if (CampNum == 1){
_local2 = new EnemyId();
} else {
if (CampNum == 2){
_local2 = new RoleId();
};
};
EnemySN++;
ArmyAndEnemyClub.addChild(_local2);
_local2.name = ("Enemy" + ArmyAndEnemyClub.numChildren);
_local2.gotoAndStop(_arg1);
_local2.Hit.visible = false;
_local2.x = EnemyXYUrl.x;
_local2.y = EnemyXYUrl.y;
_local2.Type = 2;
_local2.Price = (_arg1 * 100);
_local2.TypeLevel = _arg1;
_local2.Speed = (1 + (_arg1 / 8));
_local2.Hp = ((100 * _arg1) * SandPower);
_local2.HpS = ((100 * _arg1) * SandPower);
_local2.Power = ((25 * _arg1) * SandPower);
_local2.Guard = ((3 * _arg1) * SandPower);
_local2.Range = int(5);
if (NoviceOK){
_local2.Power = int((_local2.Power / 1.5));
_local2.Hp = int((_local2.Hp / 1.5));
_local2.HpS = int((_local2.HpS / 1.5));
};
_local2.Go = EnemyGo;
_local2.GoReady = true;
_local2.AttackOK = false;
_local2.AttackTime = 0;
_local2.AttackTimeOK = 20;
_local2.UpDown = false;
_local2.UpRight = false;
_local2.LeftDown = false;
_local2.RightDown = false;
_local2.addEventListener(Event.ENTER_FRAME, EnemyAI);
_local2.addEventListener(MouseEvent.ROLL_OVER, RoleRange);
_local2.addEventListener(MouseEvent.ROLL_OUT, RoleRange);
_local2.Hps.alpha = 0;
}
public function NewDan(_arg1, _arg2){
var _local3:MovieClip;
_local3 = new DanId();
Game.addChild(_local3);
_local3.addEventListener(Event.ENTER_FRAME, DanAI);
_local3.x = _arg1.x;
_local3.y = (_arg1.y - 20);
_local3.gotoAndStop(_arg1.TypeLevel);
_local3.Speed = 10;
_local3.Obj = _arg2;
_local3.Type = 10;
_local3.s = 0;
}
public function NewMenuS_B(){
var _local1:*;
var _local2:MovieClip;
_local1 = 1;
while (_local1 < 9) {
_local2 = new bIoc();
MenuS.B.addChild(_local2);
_local2.x = ((60 * _local1) - 60);
if (CampNum == 2){
_local2.Goto = int((_local1 + 50));
} else {
_local2.Goto = _local1;
};
_local2.s = _local1;
_local2.Price = (_local1 * 500);
_local2.Power = int((40 * _local1));
_local2.Guard = int((2 * _local1));
_local2.Range = int(5);
_local2.gotoAndStop(_local2.Goto);
MenuBArray.push({Mc:_local2});
_local1++;
};
NewMenuBSX();
}
public function IndexUrlOK(_arg1){
var _local2:String;
var _local3:URLRequest;
_local2 = "http://www.freeworldgroup.com";
_local3 = new URLRequest(_local2);
navigateToURL(_local3, "_blank");
}
public function InitialPaoTaEvent(_arg1){
_arg1.Rood.addEventListener(MouseEvent.CLICK, NewPaoTa);
_arg1.removeEventListener(MouseEvent.CLICK, ThisSX);
_arg1.removeEventListener(MouseEvent.ROLL_OVER, PaoTaRange);
_arg1.Rood.visible = true;
_arg1.Hps.visible = false;
_arg1.mouseEnabled = false;
_arg1.Rood.buttonMode = true;
_arg1.PaoTaReadyOK = false;
_arg1.gotoAndStop(1);
_arg1.mouseChildren = true;
_arg1.buttonMode = false;
_arg1.OK = false;
}
public function NewMenuS_A(){
var _local1:*;
var _local2:MovieClip;
_local1 = 1;
while (_local1 < 10) {
_local2 = new aIoc();
MenuS.A.addChild(_local2);
_local2.x = ((40 * _local1) - 40);
_local2.s = _local1;
if (CampNum == 1){
_local2.Goto = _local1;
} else {
_local2.Goto = int((_local1 + 50));
};
_local2.Price = (_local1 * 100);
_local2.Power = int((20 * _local1));
_local2.Guard = int((2 * _local1));
_local2.gotoAndStop(_local2.Goto);
MenuAArray.push({Mc:_local2});
_local1++;
};
NewMenuASX();
}
}
}//package PenguinTD_fla
Section 29
//Quality_520 (PenguinTD_fla.Quality_520)
package PenguinTD_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Quality_520 extends MovieClip {
public var Best:SimpleButton;
public var Ok:SimpleButton;
public var Low:SimpleButton;
public var Medium:SimpleButton;
public var High:SimpleButton;
public function Quality_520(){
addFrameScript(0, frame1);
}
public function LowOK(_arg1){
MovieClip(root).Quality = 1;
NewQuality(StageQuality.LOW);
}
public function HighOK(_arg1){
MovieClip(root).Quality = 3;
NewQuality(StageQuality.HIGH);
}
public function MediumOK(_arg1){
MovieClip(root).Quality = 2;
NewQuality(StageQuality.MEDIUM);
}
public function NewQuality(_arg1){
stage.quality = _arg1;
LoadQuality(MovieClip(root).Quality);
}
public function NOClick(_arg1){
MovieClip(root).BackMenu(2);
}
function frame1(){
LoadQuality(MovieClip(root).Quality);
Low.addEventListener(MouseEvent.CLICK, LowOK);
Medium.addEventListener(MouseEvent.CLICK, MediumOK);
High.addEventListener(MouseEvent.CLICK, HighOK);
Best.addEventListener(MouseEvent.CLICK, BestOK);
Ok.addEventListener(MouseEvent.CLICK, NOClick);
}
public function LoadQuality(_arg1){
Low.alpha = 1;
Medium.alpha = 1;
High.alpha = 1;
Best.alpha = 1;
if (_arg1 == 1){
Low.alpha = 0.2;
};
if (_arg1 == 2){
Medium.alpha = 0.2;
};
if (_arg1 == 3){
High.alpha = 0.2;
};
if (_arg1 == 4){
Best.alpha = 0.2;
};
}
public function BestOK(_arg1){
MovieClip(root).Quality = 4;
NewQuality(StageQuality.BEST);
}
}
}//package PenguinTD_fla
Section 30
//reqiqiu_158 (PenguinTD_fla.reqiqiu_158)
package PenguinTD_fla {
import flash.display.*;
public dynamic class reqiqiu_158 extends MovieClip {
public function reqiqiu_158(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 31
//selectjiemian_245 (PenguinTD_fla.selectjiemian_245)
package PenguinTD_fla {
import flash.display.*;
public dynamic class selectjiemian_245 extends MovieClip {
public var Hard:SimpleButton;
public var Normal:SimpleButton;
public var CampIoc1:MovieClip;
public var Easy:SimpleButton;
public var CampIoc2:MovieClip;
public var NoviceOn:SimpleButton;
public var AdvancedIoc:MovieClip;
public var NoviceIoc:MovieClip;
public var Camp1:SimpleButton;
public var Camp2:SimpleButton;
public var Sand:SimpleButton;
public var SandIoc:MovieClip;
public var AdvancedOn:SimpleButton;
}
}//package PenguinTD_fla
Section 32
//shouye_13 (PenguinTD_fla.shouye_13)
package PenguinTD_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class shouye_13 extends MovieClip {
public var CreditOn:SimpleButton;
public var CopyOn:SimpleButton;
public var PlayOn:SimpleButton;
public var MoreGameOn:SimpleButton;
public var SkipOn:SimpleButton;
public var HighScore:SimpleButton;
public function shouye_13(){
addFrameScript(0, frame1, 254, frame255, 329, frame330, 415, frame416);
}
public function PlayOK(_arg1){
MovieClip(root).gotoAndStop("GameSelect");
}
function frame330(){
CreditOn.addEventListener(MouseEvent.CLICK, CreditOK);
CopyOn.addEventListener(MouseEvent.CLICK, IndexUrlOK);
}
public function HighScoreURL(_arg1){
MovieClip(root).HighScoreURL(true);
}
function frame1(){
SkipOn.addEventListener(MouseEvent.CLICK, SkipOK);
}
public function CreditOK(_arg1){
MovieClip(root).CreditOK(true);
}
public function SkipOK(_arg1){
gotoAndPlay(241);
}
function frame255(){
PlayOn.addEventListener(MouseEvent.CLICK, PlayOK);
MoreGameOn.addEventListener(MouseEvent.CLICK, MoreGameUrlOK);
HighScore.addEventListener(MouseEvent.CLICK, HighScoreURL);
}
function frame416(){
stop();
}
public function MoreGameUrlOK(_arg1){
MovieClip(root).MoreGameUrlOK(true);
}
public function IndexUrlOK(_arg1){
MovieClip(root).IndexUrlOK(true);
}
}
}//package PenguinTD_fla
Section 33
//Timeline_103 (PenguinTD_fla.Timeline_103)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_103 extends MovieClip {
public function Timeline_103(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 34
//Timeline_106 (PenguinTD_fla.Timeline_106)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_106 extends MovieClip {
public function Timeline_106(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 35
//Timeline_107 (PenguinTD_fla.Timeline_107)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_107 extends MovieClip {
public function Timeline_107(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 36
//Timeline_113 (PenguinTD_fla.Timeline_113)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_113 extends MovieClip {
public function Timeline_113(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 37
//Timeline_121 (PenguinTD_fla.Timeline_121)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_121 extends MovieClip {
public function Timeline_121(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 38
//Timeline_126 (PenguinTD_fla.Timeline_126)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_126 extends MovieClip {
public var a:MovieClip;
public function Timeline_126(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 39
//Timeline_130 (PenguinTD_fla.Timeline_130)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_130 extends MovieClip {
public var a:MovieClip;
}
}//package PenguinTD_fla
Section 40
//Timeline_132 (PenguinTD_fla.Timeline_132)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_132 extends MovieClip {
public function Timeline_132(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 41
//Timeline_133 (PenguinTD_fla.Timeline_133)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_133 extends MovieClip {
public var a:MovieClip;
public function Timeline_133(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 42
//Timeline_138 (PenguinTD_fla.Timeline_138)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_138 extends MovieClip {
public function Timeline_138(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 43
//Timeline_143 (PenguinTD_fla.Timeline_143)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_143 extends MovieClip {
public function Timeline_143(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 44
//Timeline_147 (PenguinTD_fla.Timeline_147)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_147 extends MovieClip {
public function Timeline_147(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 45
//Timeline_157 (PenguinTD_fla.Timeline_157)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_157 extends MovieClip {
public var a:MovieClip;
}
}//package PenguinTD_fla
Section 46
//Timeline_162 (PenguinTD_fla.Timeline_162)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_162 extends MovieClip {
public function Timeline_162(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 47
//Timeline_186 (PenguinTD_fla.Timeline_186)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_186 extends MovieClip {
public function Timeline_186(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 48
//Timeline_197 (PenguinTD_fla.Timeline_197)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_197 extends MovieClip {
public function Timeline_197(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 49
//Timeline_209 (PenguinTD_fla.Timeline_209)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_209 extends MovieClip {
public function Timeline_209(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 50
//Timeline_213 (PenguinTD_fla.Timeline_213)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_213 extends MovieClip {
public function Timeline_213(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 51
//Timeline_218 (PenguinTD_fla.Timeline_218)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_218 extends MovieClip {
public function Timeline_218(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 52
//Timeline_220 (PenguinTD_fla.Timeline_220)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_220 extends MovieClip {
public function Timeline_220(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 53
//Timeline_221 (PenguinTD_fla.Timeline_221)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_221 extends MovieClip {
public function Timeline_221(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 54
//Timeline_226 (PenguinTD_fla.Timeline_226)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_226 extends MovieClip {
public function Timeline_226(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 55
//Timeline_228 (PenguinTD_fla.Timeline_228)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_228 extends MovieClip {
public function Timeline_228(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 56
//Timeline_230 (PenguinTD_fla.Timeline_230)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_230 extends MovieClip {
public function Timeline_230(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 57
//Timeline_237 (PenguinTD_fla.Timeline_237)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_237 extends MovieClip {
public var a:MovieClip;
}
}//package PenguinTD_fla
Section 58
//Timeline_250 (PenguinTD_fla.Timeline_250)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_250 extends MovieClip {
public function Timeline_250(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 59
//Timeline_295 (PenguinTD_fla.Timeline_295)
package PenguinTD_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_295 extends MovieClip {
public var b10:MovieClip;
public var a6:MovieClip;
public var a4:MovieClip;
public var b2:MovieClip;
public var b4:MovieClip;
public var b5:MovieClip;
public var b6:MovieClip;
public var b1:MovieClip;
public var b3:MovieClip;
public var a5:MovieClip;
public var a8:MovieClip;
public var b11:MovieClip;
public var Map:MovieClip;
public var a9:MovieClip;
public var b8:MovieClip;
public var RoleXY:MovieClip;
public var a11:MovieClip;
public var b9:MovieClip;
public var b7:MovieClip;
public var EnemyXY:MovieClip;
public var EnemyBase:MovieClip;
public var Enemy:MovieClip;
public var Ydk2:SimpleButton;
public var Role:MovieClip;
public var Ydk:SimpleButton;
public var MyBase:MovieClip;
public var a10:MovieClip;
public var a2:MovieClip;
public var a3:MovieClip;
public var a7:MovieClip;
public var a1:MovieClip;
public function Timeline_295(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
MovieClip(root).NewData();
MovieClip(root).GameVisible();
}
function frame1(){
stop();
MovieClip(root).GameVisible();
}
function frame2(){
stop();
MovieClip(root).GameVisible();
MovieClip(root).NewData();
}
}
}//package PenguinTD_fla
Section 60
//Timeline_302 (PenguinTD_fla.Timeline_302)
package PenguinTD_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_302 extends MovieClip {
public function Timeline_302(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (MovieClip(root).CampNum == 2){
gotoAndStop(2);
};
}
}
}//package PenguinTD_fla
Section 61
//Timeline_304 (PenguinTD_fla.Timeline_304)
package PenguinTD_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_304 extends MovieClip {
public function Timeline_304(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (MovieClip(root).CampNum == 1){
gotoAndStop(2);
};
}
}
}//package PenguinTD_fla
Section 62
//Timeline_305 (PenguinTD_fla.Timeline_305)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_305 extends MovieClip {
public var Right:MovieClip;
public var UpRight:MovieClip;
public var Up:MovieClip;
public var Down:MovieClip;
public var UpDown:MovieClip;
}
}//package PenguinTD_fla
Section 63
//Timeline_314 (PenguinTD_fla.Timeline_314)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_314 extends MovieClip {
public var Left:MovieClip;
public var LeftDown:MovieClip;
public var Up:MovieClip;
public var Down:MovieClip;
public var UpDown:MovieClip;
}
}//package PenguinTD_fla
Section 64
//Timeline_318 (PenguinTD_fla.Timeline_318)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_318 extends MovieClip {
public var Rood:MovieClip;
public var Hps:MovieClip;
public var a:MovieClip;
public var Hit:MovieClip;
public var LevelIoc:MovieClip;
public function Timeline_318(){
addFrameScript(0, frame1, 50, frame51, 51, frame52, 52, frame53, 53, frame54, 54, frame55, 55, frame56, 56, frame57, 57, frame58);
}
function frame1(){
stop();
Hps.visible = false;
LevelIoc.visible = false;
}
function frame51(){
a.gotoAndStop(3);
}
function frame52(){
a.gotoAndStop(3);
}
function frame54(){
a.gotoAndStop(3);
}
function frame55(){
a.gotoAndStop(3);
}
function frame56(){
a.gotoAndStop(3);
}
function frame57(){
a.gotoAndStop(3);
}
function frame58(){
a.gotoAndStop(3);
}
function frame53(){
a.gotoAndStop(3);
}
}
}//package PenguinTD_fla
Section 65
//Timeline_319 (PenguinTD_fla.Timeline_319)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_319 extends MovieClip {
public function Timeline_319(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 66
//Timeline_320 (PenguinTD_fla.Timeline_320)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_320 extends MovieClip {
public var Right:MovieClip;
public var Left:MovieClip;
public var Hit:MovieClip;
public var Up:MovieClip;
public var Down:MovieClip;
public function Timeline_320(){
addFrameScript(0, frame1);
}
function frame1(){
visible = false;
}
}
}//package PenguinTD_fla
Section 67
//Timeline_322 (PenguinTD_fla.Timeline_322)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_322 extends MovieClip {
public function Timeline_322(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 68
//Timeline_323 (PenguinTD_fla.Timeline_323)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_323 extends MovieClip {
public function Timeline_323(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 69
//Timeline_324 (PenguinTD_fla.Timeline_324)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_324 extends MovieClip {
public var a:MovieClip;
public function Timeline_324(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 70
//Timeline_332 (PenguinTD_fla.Timeline_332)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_332 extends MovieClip {
public function Timeline_332(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 71
//Timeline_336 (PenguinTD_fla.Timeline_336)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_336 extends MovieClip {
public function Timeline_336(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 72
//Timeline_339 (PenguinTD_fla.Timeline_339)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_339 extends MovieClip {
public function Timeline_339(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 73
//Timeline_341 (PenguinTD_fla.Timeline_341)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_341 extends MovieClip {
public var a:MovieClip;
}
}//package PenguinTD_fla
Section 74
//Timeline_343 (PenguinTD_fla.Timeline_343)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_343 extends MovieClip {
public function Timeline_343(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 75
//Timeline_344 (PenguinTD_fla.Timeline_344)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_344 extends MovieClip {
public var a:MovieClip;
public function Timeline_344(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 76
//Timeline_349 (PenguinTD_fla.Timeline_349)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_349 extends MovieClip {
public function Timeline_349(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 77
//Timeline_351 (PenguinTD_fla.Timeline_351)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_351 extends MovieClip {
public function Timeline_351(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 78
//Timeline_353 (PenguinTD_fla.Timeline_353)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_353 extends MovieClip {
public function Timeline_353(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 79
//Timeline_355 (PenguinTD_fla.Timeline_355)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_355 extends MovieClip {
public var a:MovieClip;
}
}//package PenguinTD_fla
Section 80
//Timeline_358 (PenguinTD_fla.Timeline_358)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_358 extends MovieClip {
public function Timeline_358(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 81
//Timeline_366 (PenguinTD_fla.Timeline_366)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_366 extends MovieClip {
public var a:MovieClip;
}
}//package PenguinTD_fla
Section 82
//Timeline_372 (PenguinTD_fla.Timeline_372)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_372 extends MovieClip {
public var a:MovieClip;
}
}//package PenguinTD_fla
Section 83
//Timeline_374 (PenguinTD_fla.Timeline_374)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_374 extends MovieClip {
public function Timeline_374(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 84
//Timeline_375 (PenguinTD_fla.Timeline_375)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_375 extends MovieClip {
public function Timeline_375(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 85
//Timeline_385 (PenguinTD_fla.Timeline_385)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_385 extends MovieClip {
public function Timeline_385(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 86
//Timeline_392 (PenguinTD_fla.Timeline_392)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_392 extends MovieClip {
public function Timeline_392(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 87
//Timeline_395 (PenguinTD_fla.Timeline_395)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_395 extends MovieClip {
public function Timeline_395(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 88
//Timeline_397 (PenguinTD_fla.Timeline_397)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_397 extends MovieClip {
public function Timeline_397(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 89
//Timeline_399 (PenguinTD_fla.Timeline_399)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_399 extends MovieClip {
public function Timeline_399(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 90
//Timeline_400 (PenguinTD_fla.Timeline_400)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_400 extends MovieClip {
public function Timeline_400(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 91
//Timeline_406 (PenguinTD_fla.Timeline_406)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_406 extends MovieClip {
public function Timeline_406(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 92
//Timeline_410 (PenguinTD_fla.Timeline_410)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_410 extends MovieClip {
public function Timeline_410(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 93
//Timeline_411 (PenguinTD_fla.Timeline_411)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_411 extends MovieClip {
public function Timeline_411(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 94
//Timeline_416 (PenguinTD_fla.Timeline_416)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_416 extends MovieClip {
public function Timeline_416(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 95
//Timeline_419 (PenguinTD_fla.Timeline_419)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_419 extends MovieClip {
public function Timeline_419(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 96
//Timeline_420 (PenguinTD_fla.Timeline_420)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_420 extends MovieClip {
public function Timeline_420(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 97
//Timeline_425 (PenguinTD_fla.Timeline_425)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_425 extends MovieClip {
public function Timeline_425(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 98
//Timeline_428 (PenguinTD_fla.Timeline_428)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_428 extends MovieClip {
public function Timeline_428(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 99
//Timeline_430 (PenguinTD_fla.Timeline_430)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_430 extends MovieClip {
public function Timeline_430(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 100
//Timeline_435 (PenguinTD_fla.Timeline_435)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_435 extends MovieClip {
public var a:MovieClip;
}
}//package PenguinTD_fla
Section 101
//Timeline_437 (PenguinTD_fla.Timeline_437)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_437 extends MovieClip {
public function Timeline_437(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 102
//Timeline_438 (PenguinTD_fla.Timeline_438)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_438 extends MovieClip {
public function Timeline_438(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 103
//Timeline_441 (PenguinTD_fla.Timeline_441)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_441 extends MovieClip {
public function Timeline_441(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 104
//Timeline_444 (PenguinTD_fla.Timeline_444)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_444 extends MovieClip {
public function Timeline_444(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 105
//Timeline_448 (PenguinTD_fla.Timeline_448)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_448 extends MovieClip {
public function Timeline_448(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 106
//Timeline_455 (PenguinTD_fla.Timeline_455)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_455 extends MovieClip {
public var Right:MovieClip;
public var Left:MovieClip;
public var LeftRight:MovieClip;
public var Up:MovieClip;
public var RightDown:MovieClip;
public var Down:MovieClip;
}
}//package PenguinTD_fla
Section 107
//Timeline_459 (PenguinTD_fla.Timeline_459)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_459 extends MovieClip {
public var UpDown:MovieClip;
}
}//package PenguinTD_fla
Section 108
//Timeline_462 (PenguinTD_fla.Timeline_462)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_462 extends MovieClip {
public var Right:MovieClip;
public var LeftUp:MovieClip;
public var Left:MovieClip;
public var LeftRight:MovieClip;
public var Up:MovieClip;
public var Down:MovieClip;
}
}//package PenguinTD_fla
Section 109
//Timeline_467 (PenguinTD_fla.Timeline_467)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_467 extends MovieClip {
public var UpDown:MovieClip;
}
}//package PenguinTD_fla
Section 110
//Timeline_471 (PenguinTD_fla.Timeline_471)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_471 extends MovieClip {
public var Right:MovieClip;
public var RightDown:MovieClip;
public var Down:MovieClip;
}
}//package PenguinTD_fla
Section 111
//Timeline_475 (PenguinTD_fla.Timeline_475)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_475 extends MovieClip {
public var LeftUp:MovieClip;
public var Left:MovieClip;
public var Up:MovieClip;
}
}//package PenguinTD_fla
Section 112
//Timeline_480 (PenguinTD_fla.Timeline_480)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_480 extends MovieClip {
public var Music:MovieClip;
public var C:MovieClip;
public var D:MovieClip;
public var A:MovieClip;
public var Intro:MovieClip;
public var PauseOn:SimpleButton;
public var B:MovieClip;
public var MoneyTxt:MovieClip;
public var MenuOn:SimpleButton;
public var MyAndEnemy:MovieClip;
public var Base:MovieClip;
public function Timeline_480(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 113
//Timeline_484 (PenguinTD_fla.Timeline_484)
package PenguinTD_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_484 extends MovieClip {
public var Txt:TextField;
}
}//package PenguinTD_fla
Section 114
//Timeline_486 (PenguinTD_fla.Timeline_486)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_486 extends MovieClip {
public var Music:SimpleButton;
public var Quality:SimpleButton;
}
}//package PenguinTD_fla
Section 115
//Timeline_506 (PenguinTD_fla.Timeline_506)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_506 extends MovieClip {
public var Range:MovieClip;
public var LevelUp:SimpleButton;
public var Level:MovieClip;
public var Sell:SimpleButton;
public var Guard:MovieClip;
public var Ioc:bIoc;
public var Power:MovieClip;
public var Time:MovieClip;
}
}//package PenguinTD_fla
Section 116
//Timeline_509 (PenguinTD_fla.Timeline_509)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_509 extends MovieClip {
public var Guard:MovieClip;
public var Ioc:aIoc;
public var Power:MovieClip;
}
}//package PenguinTD_fla
Section 117
//Timeline_510 (PenguinTD_fla.Timeline_510)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_510 extends MovieClip {
public var EnemyLevel:MovieClip;
public var MyLevel:MovieClip;
public var Enemy:MovieClip;
public var My:MovieClip;
public var Time:MovieClip;
}
}//package PenguinTD_fla
Section 118
//Timeline_511 (PenguinTD_fla.Timeline_511)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_511 extends MovieClip {
public var a:MovieClip;
public function Timeline_511(){
addFrameScript(0, frame1);
}
function frame1(){
visible = false;
stop();
}
}
}//package PenguinTD_fla
Section 119
//Timeline_512 (PenguinTD_fla.Timeline_512)
package PenguinTD_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_512 extends MovieClip {
public var txt:TextField;
}
}//package PenguinTD_fla
Section 120
//Timeline_514 (PenguinTD_fla.Timeline_514)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_514 extends MovieClip {
public var LevelUp:SimpleButton;
public var Level:MovieClip;
public var Guard:MovieClip;
public var Ioc:aIoc;
public var Power:MovieClip;
public var Time:MovieClip;
}
}//package PenguinTD_fla
Section 121
//Timeline_515 (PenguinTD_fla.Timeline_515)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_515 extends MovieClip {
public var a:MovieClip;
public function Timeline_515(){
addFrameScript(0, frame1, 38, frame39, 51, frame52);
}
function frame1(){
stop();
}
function frame39(){
gotoAndStop(1);
}
function frame52(){
stop();
}
}
}//package PenguinTD_fla
Section 122
//Timeline_516 (PenguinTD_fla.Timeline_516)
package PenguinTD_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_516 extends MovieClip {
public var Ok:SimpleButton;
public var ExitOn:SimpleButton;
public var No:SimpleButton;
public function Timeline_516(){
addFrameScript(0, frame1, 39, frame40, 49, frame50, 59, frame60, 69, frame70, 84, frame85);
}
function frame70(){
Ok.addEventListener(MouseEvent.CLICK, PauseOK);
}
public function BackOK(_arg1){
MovieClip(root).BackMenu(1);
}
function frame85(){
ExitOn.addEventListener(MouseEvent.CLICK, ExitOK);
}
public function PauseOK(_arg1){
MovieClip(root).BackMenu(2);
}
function frame1(){
stop();
}
public function ExitOK(_arg1){
MovieClip(parent).gotoAndPlay("End");
}
public function ReadyOK(_arg1){
MovieClip(root).GameReadyOK();
}
function frame40(){
Ok.addEventListener(MouseEvent.CLICK, PauseOK);
}
function frame50(){
Ok.addEventListener(MouseEvent.CLICK, BackOK);
No.addEventListener(MouseEvent.CLICK, PauseOK);
}
function frame60(){
Ok.addEventListener(MouseEvent.CLICK, ReadyOK);
}
}
}//package PenguinTD_fla
Section 123
//Timeline_518 (PenguinTD_fla.Timeline_518)
package PenguinTD_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_518 extends MovieClip {
public var NextOn:SimpleButton;
public var Rood:MovieClip;
public function Timeline_518(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 5, frame6);
}
public function NextOK(_arg1){
play();
}
function frame3(){
MovieClip(root).InputWindows("Ready");
MovieClip(root).WindowsPic.gotoAndPlay("Start");
stop();
}
function frame6(){
stop();
}
function frame1(){
stop();
NextOn.addEventListener(MouseEvent.CLICK, NextOK);
}
function frame2(){
stop();
}
}
}//package PenguinTD_fla
Section 124
//Timeline_527 (PenguinTD_fla.Timeline_527)
package PenguinTD_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_527 extends MovieClip {
public var c:SimpleButton;
public var b:SimpleButton;
public var d:SimpleButton;
public var a:SimpleButton;
public var e:SimpleButton;
public var No:SimpleButton;
public function Timeline_527(){
addFrameScript(0, frame1);
}
public function eOK(_arg1){
MovieClip(root).NewSod(1);
}
public function dOK(_arg1){
MovieClip(root).NewSod(0.8);
}
function frame1(){
a.addEventListener(MouseEvent.CLICK, aOK);
b.addEventListener(MouseEvent.CLICK, bOK);
c.addEventListener(MouseEvent.CLICK, cOK);
d.addEventListener(MouseEvent.CLICK, dOK);
e.addEventListener(MouseEvent.CLICK, eOK);
No.addEventListener(MouseEvent.CLICK, NoOK);
}
public function cOK(_arg1){
MovieClip(root).NewSod(0.6);
}
public function NoOK(_arg1){
MovieClip(root).NewSod(0);
}
public function bOK(_arg1){
MovieClip(root).NewSod(0.4);
}
public function aOK(_arg1){
MovieClip(root).NewSod(0.2);
}
}
}//package PenguinTD_fla
Section 125
//Timeline_528 (PenguinTD_fla.Timeline_528)
package PenguinTD_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_528 extends MovieClip {
public var SubmitOn:SimpleButton;
public var ErrorName:MovieClip;
public var High:SimpleButton;
public var NameTxt:TextField;
public function Timeline_528(){
addFrameScript(0, frame1, 1, frame2);
}
public function SubmitOK(_arg1){
if (NameTxt.text == ""){
ErrorName.visible = true;
} else {
MovieClip(root).SeedName(NameTxt.text);
SubmitOn.visible = false;
gotoAndStop(2);
};
}
public function HighOK(_arg1){
MovieClip(root).HighScoreURL(true);
}
function frame1(){
SubmitOn.addEventListener(MouseEvent.CLICK, SubmitOK);
ErrorName.visible = false;
stop();
}
function frame2(){
High.addEventListener(MouseEvent.CLICK, HighOK);
}
}
}//package PenguinTD_fla
Section 126
//Timeline_63 (PenguinTD_fla.Timeline_63)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_63 extends MovieClip {
public function Timeline_63(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 127
//Timeline_64 (PenguinTD_fla.Timeline_64)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_64 extends MovieClip {
public function Timeline_64(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 128
//Timeline_65 (PenguinTD_fla.Timeline_65)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_65 extends MovieClip {
public function Timeline_65(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 129
//Timeline_79 (PenguinTD_fla.Timeline_79)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_79 extends MovieClip {
public function Timeline_79(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 130
//Timeline_85 (PenguinTD_fla.Timeline_85)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_85 extends MovieClip {
public function Timeline_85(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 131
//Timeline_90 (PenguinTD_fla.Timeline_90)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_90 extends MovieClip {
public function Timeline_90(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 132
//Timeline_91 (PenguinTD_fla.Timeline_91)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_91 extends MovieClip {
public function Timeline_91(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 133
//Timeline_98 (PenguinTD_fla.Timeline_98)
package PenguinTD_fla {
import flash.display.*;
public dynamic class Timeline_98 extends MovieClip {
public function Timeline_98(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 134
//toushiche1_362 (PenguinTD_fla.toushiche1_362)
package PenguinTD_fla {
import flash.display.*;
public dynamic class toushiche1_362 extends MovieClip {
public function toushiche1_362(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 135
//toushiche2_364 (PenguinTD_fla.toushiche2_364)
package PenguinTD_fla {
import flash.display.*;
public dynamic class toushiche2_364 extends MovieClip {
public function toushiche2_364(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 136
//toushiche3_359 (PenguinTD_fla.toushiche3_359)
package PenguinTD_fla {
import flash.display.*;
public dynamic class toushiche3_359 extends MovieClip {
public function toushiche3_359(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 137
//tubiao1zz_482 (PenguinTD_fla.tubiao1zz_482)
package PenguinTD_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class tubiao1zz_482 extends MovieClip {
public function tubiao1zz_482(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (MovieClip(root).CampNum == 2){
gotoAndStop(2);
};
}
}
}//package PenguinTD_fla
Section 138
//xuanzhuanbeijixiong_373 (PenguinTD_fla.xuanzhuanbeijixiong_373)
package PenguinTD_fla {
import flash.display.*;
public dynamic class xuanzhuanbeijixiong_373 extends MovieClip {
public function xuanzhuanbeijixiong_373(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 139
//yanxutiaozz_89 (PenguinTD_fla.yanxutiaozz_89)
package PenguinTD_fla {
import flash.display.*;
public dynamic class yanxutiaozz_89 extends MovieClip {
public function yanxutiaozz_89(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package PenguinTD_fla
Section 140
//MaskRect (ui.MaskRect)
package ui {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.geom.*;
public class MaskRect extends Sprite {
public var onSetWH:Function;
private var __align:String;// = "left-top"
public static var wid:int = 0;
public static var hei0:int;
public static var hei:int = 0;
public static var wid0:int;
public function MaskRect(){
__align = "left-top";
super();
if ((((wid > 0)) && ((hei > 0)))){
setWH();
} else {
this.addEventListener(Event.ADDED_TO_STAGE, added);
};
}
private function added(_arg1:Event):void{
var event = _arg1;
this.removeEventListener(Event.ADDED_TO_STAGE, added);
this.addEventListener(Event.REMOVED_FROM_STAGE, removed);
try {
getStageWH();
} catch(e:Error) {
this.loaderInfo.addEventListener(Event.INIT, loadInit);
};
}
private function getStageWH():void{
var _local1:*;
_local1 = this.getChildAt(0);
wid0 = _local1.width;
hei0 = _local1.height;
wid = this.loaderInfo.width;
hei = this.loaderInfo.height;
setWH();
}
public function set align(_arg1:String):void{
var _local2:*;
var _local3:Rectangle;
__align = _arg1;
if ((((wid > 0)) && ((hei > 0)))){
_local2 = this.getChildAt(0);
_local3 = _local2.getBounds(this);
switch (__align.charAt(0).toLowerCase()){
case "c":
case "m":
_local2.x = (_local2.x + (((wid0 - wid) / 2) - _local3.x));
_local2.y = (_local2.y + (((hei0 - hei) / 2) - _local3.y));
break;
case "r":
case "b":
_local2.x = (_local2.x + ((wid0 - wid) - _local3.x));
_local2.y = (_local2.y + ((hei0 - hei) - _local3.y));
break;
default:
_local2.x = (_local2.x + -(_local3.x));
_local2.y = (_local2.y + -(_local3.y));
break;
};
};
}
private function loadInit(_arg1:Event):void{
this.loaderInfo.removeEventListener(Event.INIT, loadInit);
getStageWH();
}
private function removed(_arg1:Event):void{
this.removeEventListener(Event.REMOVED_FROM_STAGE, removed);
onSetWH = null;
}
private function setWH():void{
var _local1:*;
_local1 = this.getChildAt(0);
_local1.width = wid;
_local1.height = hei;
if (onSetWH != null){
onSetWH(wid, hei);
};
if (__align){
align = __align;
};
}
public static function setPos(_arg1:MaskRect, _arg2:Function):void{
if ((((wid > 0)) && ((hei > 0)))){
_arg2(wid, hei);
} else {
_arg1.onSetWH = _arg2;
};
}
}
}//package ui
Section 141
//Txt (ui.Txt)
package ui {
import flash.display.*;
import flash.text.*;
public class Txt extends Sprite {
private var __text:String;
public var txt:TextField;
public function Txt(){
__text = "";
autoSize = "left";
}
public function get text(){
if (txt.selectable){
__text = txt.text;
};
return (__text);
}
public function get type():String{
return (txt.type);
}
public function get autoSize():String{
return (txt.autoSize);
}
public function get selectable():Boolean{
return (txt.selectable);
}
public function set text(_arg1):void{
txt.text = (__text = _arg1);
}
public function set type(_arg1:String):void{
txt.type = _arg1;
}
public function set autoSize(_arg1:String):void{
txt.autoSize = _arg1;
}
public function set selectable(_arg1:Boolean):void{
txt.selectable = _arg1;
}
public function set maxChars(_arg1:int):void{
txt.maxChars = _arg1;
}
public function get maxChars():int{
return (txt.maxChars);
}
}
}//package ui
Section 142
//aIoc (aIoc)
package {
import flash.display.*;
public dynamic class aIoc extends MovieClip {
public function aIoc(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 143
//bIoc (bIoc)
package {
import flash.display.*;
public dynamic class bIoc extends MovieClip {
public var a:MovieClip;
public function bIoc(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 144
//DanId (DanId)
package {
import flash.display.*;
public dynamic class DanId extends MovieClip {
public function DanId(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 145
//EnemyId (EnemyId)
package {
import flash.display.*;
public dynamic class EnemyId extends MovieClip {
public var Hps:MovieClip;
public var a:MovieClip;
public var Hit:MovieClip;
public function EnemyId(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 146
//RoleId (RoleId)
package {
import flash.display.*;
public dynamic class RoleId extends MovieClip {
public var Hps:MovieClip;
public var a:MovieClip;
public var Hit:MovieClip;
public function RoleId(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 147
//smartGuard (smartGuard)
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.errors.*;
public class smartGuard extends MovieClip {
private var loader:URLLoader;
private var selfURL:String;
public function smartGuard(_arg1:String):void{
var url = _arg1;
super();
stop();
selfURL = url;
if (selfURL.substr(0, 7) != "file://"){
try {
loader = new URLLoader();
loader.load(new URLRequest("http://www.freeworldgroup.com/sites.xml"));
loader.addEventListener(Event.COMPLETE, loading);
loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
} catch(e:IOError) {
trace(e);
} catch(e:SecurityError) {
trace(e);
};
} else {
play();
};
}
function loading(_arg1:Event):void{
var _local2:Boolean;
var _local3:XML;
var _local4:String;
_local2 = false;
_local3 = new XML();
_local3.ignoreWhite = true;
_local3 = XML(loader.data);
for (_local4 in _local3.url) {
if (isIn(_local3.url[_local4].toString()) == true){
go2HomePage();
_local2 = true;
break;
};
};
if (_local2 == false){
play();
};
}
private function getRequest(){
var _local1:String;
var _local2:URLRequest;
var _local3:URLVariables;
_local1 = "http://www.freeworldgroup.com";
_local2 = new URLRequest(_local1);
_local3 = new URLVariables();
_local3.url = selfURL;
_local2.data = _local3;
return (_local2);
}
private function ioErrorHandler(_arg1:IOErrorEvent):void{
trace(("ioErrorHandler: " + _arg1));
}
private function go2HomePage():void{
try {
navigateToURL(getRequest(), "_self");
} catch(e:SecurityError) {
navigateToURL(getRequest(), "_blank");
} catch(e:IOError) {
trace(e);
};
}
private function isIn(_arg1:String):Boolean{
var _local2:Boolean;
var _local3:uint;
_local2 = false;
_local3 = 0;
while (_local3 < (selfURL.length - _arg1.length)) {
if (selfURL.substr(_local3, _arg1.length) == _arg1){
_local2 = true;
};
_local3++;
};
return (_local2);
}
}
}//package
Section 148
//Txt1 (Txt1)
package {
import ui.*;
public dynamic class Txt1 extends Txt {
}
}//package