Section 1
//ModalWindow (com.fuelindustries.containers.ModalWindow)
package com.fuelindustries.containers {
import com.fuelindustries.core.*;
public class ModalWindow extends FuelUI {
public function ModalWindow(){
buttonMode = false;
mouseChildren = false;
mouseEnabled = true;
}
}
}//package com.fuelindustries.containers
Section 2
//FuelUI (com.fuelindustries.core.FuelUI)
package com.fuelindustries.core {
import flash.display.*;
import flash.utils.*;
import com.fuelindustries.tween.*;
import com.fuelindustries.utils.*;
import com.fuelindustries.debug.*;
public class FuelUI extends MovieClip {
protected var __enabled:Boolean;
private var __mm:MotionManager;
public var onTweenUpdate:Function;
public function FuelUI(){
initMotionManager();
}
public function attachMovie(_arg1:String, _arg2:int=-1):MovieClip{
var _local3:Class;
var _local4:MovieClip;
_local3 = (getDefinitionByName(_arg1) as Class);
_local4 = (new (_local3) as MovieClip);
if (_arg2 == -1){
addChild(_local4);
} else {
addChildAt(_local4, _arg2);
};
return (_local4);
}
public function slideTo(_arg1, _arg2, _arg3:int, _arg4=null, _arg5:Function=null, ... _args):void{
_args.unshift(_arg5);
_args.unshift(_arg4);
_args.unshift(_arg3);
_args.unshift(_arg2);
_args.unshift(_arg1);
_args.unshift(this);
__mm.slideTo.apply(__mm, _args);
}
public function pauseTween(_arg1:String="all"):void{
__mm.pauseTween(this, _arg1);
}
public function cancelTween(_arg1:String="all"):void{
__mm.cancelTween(this, _arg1);
}
public function rotateTo(_arg1:int, _arg2:int, _arg3=null, _arg4:Function=null, ... _args):void{
_args.unshift(_arg4);
_args.unshift(_arg3);
_args.unshift(_arg2);
_args.unshift(_arg1);
_args.unshift(this);
__mm.rotateTo.apply(__mm, _args);
}
override public function get enabled():Boolean{
return (__enabled);
}
override public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=true):void{
super.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function sizeTo(_arg1, _arg2, _arg3:int, _arg4=null, _arg5:Function=null, ... _args):void{
_args.unshift(_arg5);
_args.unshift(_arg4);
_args.unshift(_arg3);
_args.unshift(_arg2);
_args.unshift(_arg1);
_args.unshift(this);
__mm.sizeTo.apply(__mm, _args);
}
public function debug(_arg1:Object):void{
Log.debug(_arg1);
}
protected function setEnabled(_arg1:Boolean):void{
__enabled = _arg1;
}
override public function set enabled(_arg1:Boolean):void{
setEnabled(_arg1);
}
public function debugObject(_arg1:Object):void{
Log.debugObject(_arg1);
}
public function alphaTo(_arg1:int, _arg2:int, _arg3=null, _arg4:Function=null, ... _args):void{
_args.unshift(_arg4);
_args.unshift(_arg3);
_args.unshift(_arg2);
_args.unshift(_arg1);
_args.unshift(this);
__mm.alphaTo.apply(__mm, _args);
}
public function tweenTo(_arg1:Array, _arg2:Array, _arg3:int, _arg4=null, _arg5:Function=null, ... _args):void{
_args.unshift(_arg5);
_args.unshift(_arg4);
_args.unshift(_arg3);
_args.unshift(_arg2);
_args.unshift(_arg1);
_args.unshift(this);
__mm.tweenTo.apply(__mm, _args);
}
public function bendTo(_arg1, _arg2, _arg3, _arg4, _arg5:int, _arg6=null, _arg7:Function=null, ... _args):void{
_args.unshift(_arg7);
_args.unshift(_arg6);
_args.unshift(_arg5);
_args.unshift(_arg4);
_args.unshift(_arg3);
_args.unshift(_arg2);
_args.unshift(_arg1);
_args.unshift(this);
__mm.rotateTo.apply(__mm, _args);
}
public function scaleTo(_arg1, _arg2, _arg3:int, _arg4=null, _arg5:Function=null, ... _args):void{
_args.unshift(_arg5);
_args.unshift(_arg4);
_args.unshift(_arg3);
_args.unshift(_arg2);
_args.unshift(_arg1);
_args.unshift(this);
__mm.scaleTo.apply(__mm, _args);
}
public function doLater(_arg1:Function, ... _args):void{
_args.splice(0, 0, 1);
_args.unshift(_arg1);
IntervalManager.skipFrames.apply(IntervalManager, _args);
}
public function frameTo(_arg1, _arg2:int, _arg3=null, _arg4:Function=null, ... _args):void{
_args.unshift(_arg4);
_args.unshift(_arg3);
_args.unshift(_arg2);
_args.unshift(_arg1);
_args.unshift(this);
__mm.frameTo.apply(__mm, _args);
}
private function initMotionManager():void{
__mm = MotionManager.getInstance();
}
}
}//package com.fuelindustries.core
Section 3
//Log (com.fuelindustries.debug.Log)
package com.fuelindustries.debug {
import flash.events.*;
import flash.net.*;
import flash.system.*;
public class Log extends EventDispatcher {
private static var serverName:String = "_FDEBUGWIN";
private static var inited:Boolean = false;
private static var lc:LocalConnection;
private static function traceObject(_arg1:Object, _arg2:String, _arg3:String, _arg4:Boolean=false):String{
var _local5:Object;
if (_arg3 == null){
_arg3 = " ";
} else {
_arg3 = (_arg3 + " ");
};
if (_arg2 == null){
_arg2 = "Object: {";
} else {
_arg2 = (_arg2 + "{");
};
for (_local5 in _arg1) {
_arg2 = (_arg2 + ("\n" + _arg3));
if ((_arg1[_local5] is Array)){
_arg2 = (_arg2 + traceObject(_arg1[_local5], (_local5 + ":Array "), _arg3));
} else {
if (typeof(_arg1[_local5]) == "object"){
if (_arg4){
if (_local5 != "target"){
_arg2 = (_arg2 + traceObject(_arg1[_local5], (_local5 + ":Object "), _arg3));
};
} else {
_arg2 = (_arg2 + traceObject(_arg1[_local5], (_local5 + ":Object "), _arg3));
};
} else {
if (typeof(_arg1[_local5]) == "function"){
_arg2 = (_arg2 + (_local5 + ": (function)"));
} else {
_arg2 = (_arg2 + ((_local5 + ": ") + _arg1[_local5]));
};
};
};
};
return ((((_arg2 + "\n") + _arg3.slice(0, -1)) + "}"));
}
private static function lcstatus(_arg1:StatusEvent):void{
}
public static function debugObject(_arg1:Object):void{
var _local2:String;
_local2 = traceObject(_arg1, null, null);
sendMessage(_local2);
trace(_local2);
}
public static function debug(_arg1:Object):void{
sendMessage(_arg1);
trace(_arg1);
}
private static function initConnection():void{
lc = new LocalConnection();
lc.addEventListener("status", lcstatus);
inited = true;
}
private static function sendMessage(_arg1:Object):void{
if (!inited){
initConnection();
};
if (Capabilities.playerType != "External"){
lc.send(serverName, "trace", _arg1);
};
}
}
}//package com.fuelindustries.debug
Section 4
//FuelSound (com.fuelindustries.media.FuelSound)
package com.fuelindustries.media {
import flash.media.*;
import flash.net.*;
import com.fuelindustries.debug.*;
public class FuelSound extends Sound {
private var __setVolume:Number;
private var __toggle:Boolean;
private var __transform:SoundTransform;
private var __toggleTween:Boolean;
private var __channel:SoundChannel;
private var __maxVolume:Number;
public function FuelSound(_arg1:URLRequest=null, _arg2:SoundLoaderContext=null, _arg3:Number=1){
super(_arg1, _arg2);
init(_arg3);
}
public function resume():void{
play(position);
}
public function stop():void{
if (__channel != null){
__channel.stop();
};
}
public function get channel():SoundChannel{
return (__channel);
}
public function set volume(_arg1:Number):void{
var vol = _arg1;
try {
__transform.volume = (__setVolume = vol);
} catch(e) {
Log.debug((((("Custom Error on __transform in FuelSound(" + e) + "), __transform is ") + __transform) + ""));
};
try {
__channel.soundTransform = __transform;
} catch(e) {
Log.debug((((("Custom Error on __channel in FuelSound(" + e) + "), __channel is ") + __channel) + ""));
};
}
public function get toggle():Boolean{
return (__toggle);
}
public function get pan():Number{
return (__transform.pan);
}
public function get volume():Number{
return (__transform.volume);
}
public function toggleSound(_arg1:Boolean):void{
__toggle = _arg1;
volume = (__toggle) ? (__setVolume * __maxVolume) : 0;
}
public function get maxVolume():Number{
return (__maxVolume);
}
public function set transform(_arg1:SoundTransform){
__transform = _arg1;
__channel.soundTransform = __transform;
}
public function set maxVolume(_arg1:Number):void{
__maxVolume = _arg1;
if (volume > __maxVolume){
volume = __maxVolume;
};
}
public function get position():Number{
return (__channel.position);
}
private function init(_arg1:Number):void{
__transform = new SoundTransform();
__transform.volume = (__maxVolume = (__setVolume = _arg1));
__toggleTween = false;
__toggle = true;
}
public function get transform():SoundTransform{
return (__transform);
}
override public function play(_arg1:Number=0, _arg2:int=0, _arg3:SoundTransform=null):SoundChannel{
__channel = super.play(_arg1, _arg2, _arg3);
if (__channel != null){
__channel.soundTransform = __transform;
};
return (__channel);
}
public function set pan(_arg1:Number):void{
__transform.pan = _arg1;
__channel.soundTransform = __transform;
}
}
}//package com.fuelindustries.media
Section 5
//AlphaItem (com.fuelindustries.tween.items.AlphaItem)
package com.fuelindustries.tween.items {
import flash.display.*;
public class AlphaItem extends MotionItem implements IMotionItem {
private var __startAlpha:Number;
private var __destAlpha:int;
public function AlphaItem(_arg1:MovieClip, _arg2:int, _arg3:int, _arg4, _arg5:Function, _arg6:Array){
super(_arg1, _arg3, _arg4, _arg5, _arg6);
__destAlpha = _arg2;
__startAlpha = (_arg1.alpha * 100);
}
override public function update(_arg1:int):Boolean{
var _local2:Boolean;
var _local3:int;
var _local4:int;
var _local5:Number;
_local2 = false;
if (__paused){
return (_local2);
};
_local3 = (__currenttime + _arg1);
_local4 = (__currenttime - __starttime);
_local5 = __easeFunction((_local4 / 1000), __startAlpha, (__destAlpha - __startAlpha), (__duration / 1000));
__mc.alpha = (_local5 / 100);
__currenttime = _local3;
if (__currenttime >= __endtime){
_local2 = true;
tweenComplete();
};
return (_local2);
}
override public function tweenComplete():void{
var _local1:int;
_local1 = (__currenttime - __endtime);
__mc.alpha = (__destAlpha / 100);
__timeDiff = _local1;
}
}
}//package com.fuelindustries.tween.items
Section 6
//BendItem (com.fuelindustries.tween.items.BendItem)
package com.fuelindustries.tween.items {
import flash.display.*;
public class BendItem extends MotionItem implements IMotionItem {
private var __controlx;
private var __controly;
private var __anchory;
private var __startx:int;
private var __anchorx;
private var __starty:int;
public function BendItem(_arg1:MovieClip, _arg2, _arg3, _arg4, _arg5, _arg6:int, _arg7, _arg8:Function, _arg9:Array){
super(_arg1, _arg6, _arg7, _arg8, _arg9);
__controlx = _arg2;
__controly = _arg3;
__anchorx = _arg4;
__anchory = _arg5;
__startx = _arg1.x;
__starty = _arg1.y;
}
override public function update(_arg1:int):Boolean{
var _local2:Boolean;
var _local3:int;
var _local4:int;
var _local5:Number;
var _local6:Object;
var _local7:Object;
var _local8:Object;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
_local2 = false;
if (__paused){
return (_local2);
};
_local3 = (__currenttime + _arg1);
_local4 = (__currenttime - __starttime);
_local5 = __easeFunction((_local4 / 1000), 0, 1, (__duration / 1000));
_local6 = {x:__startx, y:__starty};
_local7 = {x:__anchorx, y:__anchory};
_local8 = {x:__controlx, y:__controly};
_local9 = _local5;
_local10 = (1 - _local9);
_local11 = ((1 - _local9) * _local10);
_local12 = (_local9 * _local9);
_local13 = ((2 * _local9) * _local10);
_local14 = (((_local11 * _local6.x) + (_local13 * _local7.x)) + (_local12 * _local8.x));
_local15 = (((_local11 * _local6.y) + (_local13 * _local7.y)) + (_local12 * _local8.y));
__mc.x = _local14;
__mc.y = _local15;
__currenttime = _local3;
if (__currenttime >= __endtime){
_local2 = true;
tweenComplete();
};
return (_local2);
}
override public function tweenComplete():void{
var _local1:int;
_local1 = (__currenttime - __endtime);
__mc.x = __controlx;
__mc.y = __controly;
__timeDiff = _local1;
}
}
}//package com.fuelindustries.tween.items
Section 7
//FrameItem (com.fuelindustries.tween.items.FrameItem)
package com.fuelindustries.tween.items {
import flash.display.*;
public class FrameItem extends MotionItem implements IMotionItem {
private var __destFrame:int;
private var __startFrame:Number;
public function FrameItem(_arg1:MovieClip, _arg2, _arg3:int, _arg4, _arg5:Function, _arg6:Array){
super(_arg1, _arg3, _arg4, _arg5, _arg6);
__startFrame = _arg1.currentFrame;
__destFrame = getDestFrame(_arg2);
}
override public function update(_arg1:int):Boolean{
var _local2:Boolean;
var _local3:int;
var _local4:int;
var _local5:int;
_local2 = false;
if (__paused){
return (_local2);
};
_local3 = (__currenttime + _arg1);
_local4 = (__currenttime - __starttime);
_local5 = __easeFunction((_local4 / 1000), __startFrame, (__destFrame - __startFrame), (__duration / 1000));
__mc.gotoAndStop(_local5);
__currenttime = _local3;
if (__currenttime >= __endtime){
_local2 = true;
tweenComplete();
};
return (_local2);
}
override public function tweenComplete():void{
var _local1:int;
_local1 = (__currenttime - __endtime);
__mc.gotoAndStop(__destFrame);
__timeDiff = _local1;
}
private function getDestFrame(_arg1):int{
var _local2:int;
var _local3:String;
var _local4:Array;
var _local5:int;
var _local6:FrameLabel;
_local2 = __startFrame;
_local3 = ((typeof(_arg1))=="string") ? "label" : "frame";
switch (_local3){
case "frame":
if (_arg1 <= 1){
_local2 = Math.max(1, Math.round((_arg1 * __mc.totalFrames)));
} else {
_local2 = _arg1;
};
break;
case "label":
_local4 = __mc.currentLabels;
_local5 = 0;
while (_local5 < _local4.length) {
_local6 = _local4[_local5];
if (_local6.name == _arg1){
return (_local6.frame);
};
_local5++;
};
break;
};
return (_local2);
}
}
}//package com.fuelindustries.tween.items
Section 8
//IMotionItem (com.fuelindustries.tween.items.IMotionItem)
package com.fuelindustries.tween.items {
interface IMotionItem {
function tweenComplete():void;
function update(_arg1:int):Boolean;
}
}//package com.fuelindustries.tween.items
Section 9
//MotionItem (com.fuelindustries.tween.items.MotionItem)
package com.fuelindustries.tween.items {
import flash.display.*;
import flash.utils.*;
public class MotionItem implements IMotionItem {
var __pauseTime:int;
var __endtime:int;
var __easeFunction:Function;
var __paused:Boolean;
var __timeDiff:int;
var __starttime:int;
var __callbackArgs:Array;
var __callback:Function;
var __currenttime:int;
var __duration:int;
var __mc:MovieClip;
public function MotionItem(_arg1:MovieClip, _arg2:Number, _arg3, _arg4:Function, _arg5:Array){
__duration = _arg2;
__starttime = getTimer();
__endtime = (__starttime + __duration);
__currenttime = __starttime;
__paused = false;
__mc = _arg1;
__callback = _arg4;
__callbackArgs = _arg5;
setEaseFunction(_arg3);
}
public function update(_arg1:int):Boolean{
return (false);
}
public function tweenComplete():void{
}
private function elastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * 0.3);
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / (2 * Math.PI)) * Math.asin((_arg3 / _arg5)));
};
return (((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6))) + _arg3) + _arg2));
}
private function bounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
if (_arg1 < (1 / 2.75)){
return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2));
};
if (_arg1 < (2 / 2.75)){
_arg1 = (_arg1 - (1.5 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2));
};
if (_arg1 < (2.5 / 2.75)){
_arg1 = (_arg1 - (2.25 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2));
};
_arg1 = (_arg1 - (2.625 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2));
}
public function executeCallback():void{
if (__callback != null){
__callbackArgs.push(__timeDiff);
__callback.apply(null, __callbackArgs);
};
}
public function get mc():MovieClip{
return (__mc);
}
public function resumeItem():void{
var _local1:int;
var _local2:int;
_local1 = getTimer();
_local2 = (_local1 - __pauseTime);
__starttime = (__starttime + _local2);
__endtime = (__endtime + _local2);
__currenttime = (__currenttime + _local2);
__paused = false;
}
public function pauseItem():void{
__paused = true;
__pauseTime = getTimer();
}
private function linear(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public function get paused():Boolean{
return (__paused);
}
private function setEaseFunction(_arg1):void{
if (typeof(_arg1) == "function"){
__easeFunction = _arg1;
} else {
switch (_arg1){
case "ease":
__easeFunction = ease;
break;
case "elastic":
__easeFunction = elastic;
break;
case "bounce":
__easeFunction = bounce;
break;
default:
__easeFunction = linear;
break;
};
};
}
private function ease(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public function pause():void{
if (!__paused){
pauseItem();
} else {
resumeItem();
};
}
}
}//package com.fuelindustries.tween.items
Section 10
//RotationItem (com.fuelindustries.tween.items.RotationItem)
package com.fuelindustries.tween.items {
import flash.display.*;
public class RotationItem extends MotionItem implements IMotionItem {
private var __destRotation:int;
private var __startRotation:Number;
public function RotationItem(_arg1:MovieClip, _arg2:int, _arg3:int, _arg4, _arg5:Function, _arg6:Array){
super(_arg1, _arg3, _arg4, _arg5, _arg6);
__destRotation = _arg2;
__startRotation = _arg1.rotation;
}
override public function update(_arg1:int):Boolean{
var _local2:Boolean;
var _local3:int;
var _local4:int;
var _local5:int;
_local2 = false;
if (__paused){
return (_local2);
};
_local3 = (__currenttime + _arg1);
_local4 = (__currenttime - __starttime);
_local5 = __easeFunction((_local4 / 1000), __startRotation, (__destRotation - __startRotation), (__duration / 1000));
__mc.rotation = _local5;
__currenttime = _local3;
if (__currenttime >= __endtime){
_local2 = true;
tweenComplete();
};
return (_local2);
}
override public function tweenComplete():void{
var _local1:int;
_local1 = (__currenttime - __endtime);
__mc.rotation = __destRotation;
__timeDiff = _local1;
}
}
}//package com.fuelindustries.tween.items
Section 11
//ScaleItem (com.fuelindustries.tween.items.ScaleItem)
package com.fuelindustries.tween.items {
import flash.display.*;
public class ScaleItem extends MotionItem implements IMotionItem {
private var __destx;
private var __startx:Number;
private var __desty;
private var __starty:Number;
public function ScaleItem(_arg1:MovieClip, _arg2, _arg3, _arg4:int, _arg5, _arg6:Function, _arg7:Array){
super(_arg1, _arg4, _arg5, _arg6, _arg7);
__destx = _arg2;
__desty = _arg3;
__startx = (_arg1.scaleX * 100);
__starty = (_arg1.scaleY * 100);
}
override public function update(_arg1:int):Boolean{
var _local2:Boolean;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
_local2 = false;
if (__paused){
return (_local2);
};
_local3 = (__currenttime + _arg1);
_local4 = (__currenttime - __starttime);
if (((!((__destx == null))) || (!((__destx == undefined))))){
_local5 = __easeFunction((_local4 / 1000), __startx, (__destx - __startx), (__duration / 1000));
__mc.scaleX = (_local5 / 100);
};
if (((!((__desty == null))) || (!((__desty == undefined))))){
_local6 = __easeFunction((_local4 / 1000), __starty, (__desty - __starty), (__duration / 1000));
__mc.scaleY = (_local6 / 100);
};
__currenttime = _local3;
if (__currenttime >= __endtime){
_local2 = true;
tweenComplete();
};
return (_local2);
}
override public function tweenComplete():void{
var _local1:int;
_local1 = (__currenttime - __endtime);
if (((!((__desty == null))) || (!((__desty == undefined))))){
__mc.scaleY = (__desty / 100);
};
if (((!((__destx == null))) || (!((__destx == undefined))))){
__mc.scaleX = (__destx / 100);
};
__timeDiff = _local1;
}
}
}//package com.fuelindustries.tween.items
Section 12
//SizeItem (com.fuelindustries.tween.items.SizeItem)
package com.fuelindustries.tween.items {
import flash.display.*;
public class SizeItem extends MotionItem implements IMotionItem {
private var __desth;
private var __destw;
private var __startw:int;
private var __starth:int;
public function SizeItem(_arg1:MovieClip, _arg2, _arg3, _arg4:int, _arg5, _arg6:Function, _arg7:Array){
super(_arg1, _arg4, _arg5, _arg6, _arg7);
__destw = _arg2;
__desth = _arg3;
__startw = Math.round(_arg1.width);
__starth = Math.round(_arg1.height);
}
override public function update(_arg1:int):Boolean{
var _local2:Boolean;
var _local3:int;
var _local4:int;
var _local5:Number;
var _local6:Number;
_local2 = false;
if (__paused){
return (_local2);
};
_local3 = (__currenttime + _arg1);
_local4 = (__currenttime - __starttime);
if (((!((__destw == null))) || (!((__destw == undefined))))){
_local5 = __easeFunction((_local4 / 1000), __startw, (__destw - __startw), (__duration / 1000));
__mc.width = Math.round(_local5);
};
if (((!((__desth == null))) || (!((__desth == undefined))))){
_local6 = __easeFunction((_local4 / 1000), __starth, (__desth - __starth), (__duration / 1000));
__mc.height = Math.round(_local6);
};
__currenttime = _local3;
if (__currenttime >= __endtime){
_local2 = true;
tweenComplete();
};
return (_local2);
}
override public function tweenComplete():void{
var _local1:int;
_local1 = (__currenttime - __endtime);
if (((!((__desth == null))) || (!((__desth == undefined))))){
__mc.height = __desth;
};
if (((!((__destw == null))) || (!((__destw == undefined))))){
__mc.width = __destw;
};
__timeDiff = _local1;
}
}
}//package com.fuelindustries.tween.items
Section 13
//SlideItem (com.fuelindustries.tween.items.SlideItem)
package com.fuelindustries.tween.items {
import flash.display.*;
public class SlideItem extends MotionItem implements IMotionItem {
private var __destx;
private var __startx:int;
private var __desty;
private var __starty:int;
public function SlideItem(_arg1:MovieClip, _arg2, _arg3, _arg4:int, _arg5, _arg6:Function, _arg7:Array){
super(_arg1, _arg4, _arg5, _arg6, _arg7);
__destx = _arg2;
__desty = _arg3;
__startx = Math.round(_arg1.x);
__starty = Math.round(_arg1.y);
}
override public function update(_arg1:int):Boolean{
var _local2:Boolean;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
_local2 = false;
if (__paused){
return (_local2);
};
_local3 = (__currenttime + _arg1);
_local4 = (__currenttime - __starttime);
if (((!((__destx == null))) || (!((__destx == undefined))))){
_local5 = __easeFunction((_local4 / 1000), __startx, (__destx - __startx), (__duration / 1000));
__mc.x = Math.round(_local5);
};
if (((!((__desty == null))) || (!((__desty == undefined))))){
_local6 = __easeFunction((_local4 / 1000), __starty, (__desty - __starty), (__duration / 1000));
__mc.y = Math.round(_local6);
};
__currenttime = _local3;
if (__currenttime >= __endtime){
_local2 = true;
tweenComplete();
};
return (_local2);
}
override public function tweenComplete():void{
var _local1:int;
_local1 = (__currenttime - __endtime);
if (((!((__desty == null))) || (!((__desty == undefined))))){
__mc.y = __desty;
};
if (((!((__destx == null))) || (!((__destx == undefined))))){
__mc.x = __destx;
};
__timeDiff = _local1;
}
}
}//package com.fuelindustries.tween.items
Section 14
//TweenItem (com.fuelindustries.tween.items.TweenItem)
package com.fuelindustries.tween.items {
import flash.display.*;
public class TweenItem extends MotionItem implements IMotionItem {
private var __endValues:Array;
private var __startValues:Array;
public function TweenItem(_arg1:MovieClip, _arg2:Array, _arg3:Array, _arg4:int, _arg5, _arg6:Function, _arg7:Array){
super(_arg1, _arg4, _arg5, _arg6, _arg7);
__startValues = _arg2;
__endValues = _arg3;
}
override public function update(_arg1:int):Boolean{
var _local2:Boolean;
var _local3:int;
var _local4:int;
var _local5:Array;
var _local6:int;
var _local7:*;
var _local8:*;
var _local9:*;
_local2 = false;
if (__paused){
return (_local2);
};
_local3 = (__currenttime + _arg1);
_local4 = (__currenttime - __starttime);
_local5 = [];
_local6 = 0;
while (_local6 < __startValues.length) {
_local7 = __startValues[_local6];
_local8 = __endValues[_local6];
_local9 = __easeFunction((_local4 / 1000), _local7, (_local8 - _local7), (__duration / 1000));
_local5.push(_local9);
_local6++;
};
__mc.onTweenUpdate.apply(__mc, _local5);
__currenttime = _local3;
if (__currenttime >= __endtime){
_local2 = true;
tweenComplete();
};
return (_local2);
}
override public function tweenComplete():void{
var _local1:int;
_local1 = (__currenttime - __endtime);
__mc.onTweenUpdate.apply(__mc, __endValues);
__timeDiff = _local1;
}
}
}//package com.fuelindustries.tween.items
Section 15
//MotionList (com.fuelindustries.tween.MotionList)
package com.fuelindustries.tween {
import com.fuelindustries.tween.items.*;
import flash.display.*;
import flash.utils.*;
public class MotionList {
private var __items:Dictionary;
private var __length:int;
public function MotionList(){
__length = 0;
__items = new Dictionary(true);
}
public function get items():Dictionary{
return (__items);
}
public function get length():int{
return (__length);
}
public function addItem(_arg1:MotionItem):void{
var _local2:MovieClip;
_local2 = _arg1.mc;
__items[_local2] = _arg1;
__length++;
}
public function pause():void{
var _local1:Object;
var _local2:MotionItem;
for (_local1 in __items) {
_local2 = __items[_local1];
_local2.pause();
};
}
public function removeItem(_arg1:MovieClip):void{
var _local2:MotionItem;
_local2 = __items[_arg1];
if (_local2 != null){
delete __items[_arg1];
__length--;
};
}
}
}//package com.fuelindustries.tween
Section 16
//MotionManager (com.fuelindustries.tween.MotionManager)
package com.fuelindustries.tween {
import com.fuelindustries.tween.items.*;
import flash.display.*;
import flash.utils.*;
import flash.events.*;
public class MotionManager extends EventDispatcher {
private var __paused:Boolean;
private var __timeDif:int;
private var __slideList:MotionList;
private var __rotationList:MotionList;
private var __sizeList:MotionList;
private var __scaleList:MotionList;
private var __alphaList:MotionList;
private var __tweenList:MotionList;
private var __frameList:MotionList;
private var __bendList:MotionList;
private var __timeLast:int;
private static var allowInstantiation:Boolean;
private static var __instance:MotionManager;
public function MotionManager():void{
if (!allowInstantiation){
throw (new Error("MotionManager.allowInstantiation == false"));
};
}
private function __tween():void{
var _local1:Dictionary;
var _local2:Object;
var _local3:TweenItem;
var _local4:Boolean;
_local1 = __tweenList.items;
for (_local2 in _local1) {
_local3 = _local1[_local2];
_local4 = _local3.update(__timeDif);
if (_local4){
__tweenList.removeItem((_local2 as MovieClip));
_local3.executeCallback();
};
};
}
public function slideTo(_arg1:MovieClip, _arg2, _arg3, _arg4:int, _arg5=null, _arg6:Function=null, ... _args):void{
var _local8:SlideItem;
_local8 = new SlideItem(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _args);
__slideList.addItem(_local8);
}
public function initialize():void{
__slideList = new MotionList();
__scaleList = new MotionList();
__alphaList = new MotionList();
__rotationList = new MotionList();
__sizeList = new MotionList();
__frameList = new MotionList();
__bendList = new MotionList();
__tweenList = new MotionList();
MovieClip.prototype.slideTo = function (_arg1, _arg2, _arg3:int, _arg4=null, _arg5:Function=null):void{
arguments.unshift(this);
this.motionManager.slideTo.apply(this.motionManager, arguments);
};
MovieClip.prototype.tweenTo = function (_arg1:Array, _arg2:Array, _arg3:int, _arg4=null, _arg5:Function=null):void{
arguments.unshift(this);
this.motionManager.tweenTo.apply(this.motionManager, arguments);
};
MovieClip.prototype.frameTo = function (_arg1, _arg2:int, _arg3=null, _arg4:Function=null):void{
arguments.unshift(this);
this.motionManager.frameTo.apply(this.motionManager, arguments);
};
MovieClip.prototype.scaleTo = function (_arg1, _arg2, _arg3:int, _arg4=null, _arg5:Function=null):void{
arguments.unshift(this);
this.motionManager.scaleTo.apply(this.motionManager, arguments);
};
MovieClip.prototype.sizeTo = function (_arg1, _arg2, _arg3:int, _arg4=null, _arg5:Function=null):void{
arguments.unshift(this);
this.motionManager.sizeTo.apply(this.motionManager, arguments);
};
MovieClip.prototype.alphaTo = function (_arg1:int, _arg2:int, _arg3=null, _arg4:Function=null):void{
arguments.unshift(this);
this.motionManager.alphaTo.apply(this.motionManager, arguments);
};
MovieClip.prototype.rotateTo = function (_arg1:int, _arg2:int, _arg3=null, _arg4:Function=null):void{
arguments.unshift(this);
this.motionManager.rotateTo.apply(this.motionManager, arguments);
};
MovieClip.prototype.bendTo = function (_arg1, _arg2, _arg3, _arg4, _arg5:int, _arg6=null, _arg7:Function=null):void{
arguments.unshift(this);
this.motionManager.bendTo.apply(this.motionManager, arguments);
};
MovieClip.prototype.cancelTween = function (_arg1:String="all"):void{
arguments.unshift(this);
this.motionManager.cancelTween.apply(this.motionManager, arguments);
};
MovieClip.prototype.pauseTween = function (_arg1:String="all"):void{
arguments.unshift(this);
this.motionManager.pauseTween.apply(this.motionManager, arguments);
};
TweenEnterFrame.addListener(onEnterFrame);
__timeLast = getTimer();
}
public function cancelTween(_arg1:MovieClip, _arg2:String="all"):void{
switch (_arg2){
case "frameTo":
__frameList.removeItem(_arg1);
break;
case "slideTo":
__slideList.removeItem(_arg1);
break;
case "scaleTo":
__scaleList.removeItem(_arg1);
break;
case "alphaTo":
__alphaList.removeItem(_arg1);
break;
case "sizeTo":
__sizeList.removeItem(_arg1);
break;
case "rotateTo":
__rotationList.removeItem(_arg1);
break;
case "bendTo":
__bendList.removeItem(_arg1);
break;
case "tweenTo":
__tweenList.removeItem(_arg1);
break;
case "all":
__bendList.removeItem(_arg1);
__tweenList.removeItem(_arg1);
__frameList.removeItem(_arg1);
__slideList.removeItem(_arg1);
__scaleList.removeItem(_arg1);
__alphaList.removeItem(_arg1);
__sizeList.removeItem(_arg1);
__rotationList.removeItem(_arg1);
break;
};
}
public function pauseTween(_arg1:MovieClip, _arg2:String="all"):void{
switch (_arg2){
case "frameTo":
__frameList.pause();
break;
case "slideTo":
__slideList.pause();
break;
case "scaleTo":
__scaleList.pause();
break;
case "alphaTo":
__alphaList.pause();
break;
case "sizeTo":
__sizeList.pause();
break;
case "rotateTo":
__rotationList.pause();
break;
case "bendTo":
__bendList.pause();
break;
case "tweenTo":
__tweenList.pause();
break;
case "all":
__tweenList.pause();
__bendList.pause();
__frameList.pause();
__slideList.pause();
__scaleList.pause();
__alphaList.pause();
__sizeList.pause();
__rotationList.pause();
break;
};
}
private function __bend():void{
var _local1:Dictionary;
var _local2:Object;
var _local3:BendItem;
var _local4:Boolean;
_local1 = __bendList.items;
for (_local2 in _local1) {
_local3 = _local1[_local2];
_local4 = _local3.update(__timeDif);
if (_local4){
__bendList.removeItem((_local2 as MovieClip));
_local3.executeCallback();
};
};
}
public function bendTo(_arg1:MovieClip, _arg2, _arg3, _arg4, _arg5, _arg6:int, _arg7=null, _arg8:Function=null, ... _args):void{
var _local10:BendItem;
_local10 = new BendItem(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _args);
__bendList.addItem(_local10);
}
private function __frame():void{
var _local1:Dictionary;
var _local2:Object;
var _local3:FrameItem;
var _local4:Boolean;
_local1 = __frameList.items;
for (_local2 in _local1) {
_local3 = _local1[_local2];
_local4 = _local3.update(__timeDif);
if (_local4){
__frameList.removeItem((_local2 as MovieClip));
_local3.executeCallback();
};
};
}
private function onEnterFrame(_arg1:Event):void{
var _local2:int;
_local2 = getTimer();
__timeDif = (_local2 - __timeLast);
if (__slideList.length > 0){
__slide();
};
if (__scaleList.length > 0){
__scale();
};
if (__alphaList.length > 0){
__alpha();
};
if (__rotationList.length > 0){
__rotate();
};
if (__sizeList.length > 0){
__size();
};
if (__frameList.length > 0){
__frame();
};
if (__bendList.length > 0){
__bend();
};
if (__tweenList.length > 0){
__tween();
};
__timeLast = _local2;
}
public function rotateTo(_arg1:MovieClip, _arg2:int, _arg3:int, _arg4=null, _arg5:Function=null, ... _args):void{
var _local7:RotationItem;
_local7 = new RotationItem(_arg1, _arg2, _arg3, _arg4, _arg5, _args);
__rotationList.addItem(_local7);
}
private function __rotate():void{
var _local1:Dictionary;
var _local2:Object;
var _local3:RotationItem;
var _local4:Boolean;
_local1 = __rotationList.items;
for (_local2 in _local1) {
_local3 = _local1[_local2];
_local4 = _local3.update(__timeDif);
if (_local4){
__rotationList.removeItem((_local2 as MovieClip));
_local3.executeCallback();
};
};
}
private function __pause():void{
__frameList.pause();
__slideList.pause();
__scaleList.pause();
__alphaList.pause();
__sizeList.pause();
__rotationList.pause();
__paused = !(__paused);
}
public function tweenTo(_arg1:MovieClip, _arg2:Array, _arg3:Array, _arg4:int, _arg5=null, _arg6:Function=null, ... _args):void{
var _local8:TweenItem;
_local8 = new TweenItem(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _args);
__tweenList.addItem(_local8);
}
public function frameTo(_arg1:MovieClip, _arg2, _arg3:int, _arg4=null, _arg5:Function=null, ... _args):void{
var _local7:FrameItem;
_local7 = new FrameItem(_arg1, _arg2, _arg3, _arg4, _arg5, _args);
__frameList.addItem(_local7);
}
private function __slide():void{
var _local1:Dictionary;
var _local2:Object;
var _local3:SlideItem;
var _local4:Boolean;
_local1 = __slideList.items;
for (_local2 in _local1) {
_local3 = _local1[_local2];
_local4 = _local3.update(__timeDif);
if (_local4){
__slideList.removeItem((_local2 as MovieClip));
_local3.executeCallback();
};
};
}
public function sizeTo(_arg1:MovieClip, _arg2, _arg3, _arg4:int, _arg5=null, _arg6:Function=null, ... _args):void{
var _local8:SizeItem;
_local8 = new SizeItem(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _args);
__sizeList.addItem(_local8);
}
private function __size():void{
var _local1:Dictionary;
var _local2:Object;
var _local3:SizeItem;
var _local4:Boolean;
_local1 = __sizeList.items;
for (_local2 in _local1) {
_local3 = _local1[_local2];
_local4 = _local3.update(__timeDif);
if (_local4){
__sizeList.removeItem((_local2 as MovieClip));
_local3.executeCallback();
};
};
}
public function scaleTo(_arg1:MovieClip, _arg2, _arg3, _arg4:int, _arg5=null, _arg6:Function=null, ... _args):void{
var _local8:ScaleItem;
_local8 = new ScaleItem(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _args);
__scaleList.addItem(_local8);
}
private function __scale():void{
var _local1:Dictionary;
var _local2:Object;
var _local3:ScaleItem;
var _local4:Boolean;
_local1 = __scaleList.items;
for (_local2 in _local1) {
_local3 = _local1[_local2];
_local4 = _local3.update(__timeDif);
if (_local4){
__scaleList.removeItem((_local2 as MovieClip));
_local3.executeCallback();
};
};
}
public function alphaTo(_arg1:MovieClip, _arg2:int, _arg3:int, _arg4=null, _arg5:Function=null, ... _args):void{
var _local7:AlphaItem;
_local7 = new AlphaItem(_arg1, _arg2, _arg3, _arg4, _arg5, _args);
__alphaList.addItem(_local7);
}
private function __alpha():void{
var _local1:Dictionary;
var _local2:Object;
var _local3:AlphaItem;
var _local4:Boolean;
_local1 = __alphaList.items;
for (_local2 in _local1) {
_local3 = _local1[_local2];
_local4 = _local3.update(__timeDif);
if (_local4){
__alphaList.removeItem((_local2 as MovieClip));
_local3.executeCallback();
};
};
}
public static function pause():void{
__instance.__pause();
}
public static function getInstance():MotionManager{
if (__instance == null){
allowInstantiation = true;
__instance = new (MotionManager);
MovieClip.prototype.motionManager = __instance;
__instance.initialize();
allowInstantiation = false;
};
return (__instance);
}
}
}//package com.fuelindustries.tween
Section 17
//TweenEnterFrame (com.fuelindustries.tween.TweenEnterFrame)
package com.fuelindustries.tween {
import flash.display.*;
import flash.events.*;
public class TweenEnterFrame {
public static var mc:MovieClip;
public static function init():void{
if (!exists()){
mc = new MovieClip();
};
}
public static function addListener(_arg1:Function, _arg2:Boolean=true):void{
if (!exists()){
init();
};
mc.addEventListener(Event.ENTER_FRAME, _arg1, false, 0, _arg2);
}
public static function removeListener(_arg1:Function):void{
mc.removeEventListener(Event.ENTER_FRAME, _arg1);
}
public static function exists():Boolean{
var _local1:Boolean;
_local1 = ((mc)==null) ? false : true;
return (_local1);
}
}
}//package com.fuelindustries.tween
Section 18
//FrameCall (com.fuelindustries.utils.FrameCall)
package com.fuelindustries.utils {
import com.fuelindustries.tween.*;
import flash.events.*;
public class FrameCall extends EventDispatcher {
private var __callbackArgs:Array;
private var __currentframe:int;
private var __frames:int;
private var __callback:Function;
public function FrameCall(_arg1:Function, _arg2:int, _arg3:Array){
__callback = _arg1;
__frames = _arg2;
__callbackArgs = _arg3;
__currentframe = 0;
TweenEnterFrame.addListener(onEnterFrame, false);
}
public function cancel():void{
TweenEnterFrame.removeListener(onEnterFrame);
delete ??getglobalscope
[this];
}
private function onEnterFrame(_arg1:Event):void{
__currentframe++;
if (__currentframe == __frames){
__callback.apply(null, __callbackArgs);
cancel();
};
}
}
}//package com.fuelindustries.utils
Section 19
//IntervalCall (com.fuelindustries.utils.IntervalCall)
package com.fuelindustries.utils {
import flash.utils.*;
import com.fuelindustries.tween.*;
import flash.events.*;
public class IntervalCall extends EventDispatcher {
private var __elapsedTime:int;
private var __timesExecuted:int;
private var __callback:Function;
private var __callbackArgs:Array;
private var __startTime:int;
private var __timediff:int;
var __id:int;
private var __interval:int;
public function IntervalCall(_arg1:int, _arg2:Function, _arg3:int, _arg4:Array){
__callback = _arg2;
__interval = _arg3;
__id = _arg1;
__callbackArgs = _arg4;
__callbackArgs.push(this);
__timesExecuted = 0;
__elapsedTime = 0;
TweenEnterFrame.addListener(onEnterFrame);
}
private function onEnterFrame(_arg1:Event):void{
var _local2:int;
if (__startTime == 0){
__startTime = getTimer();
return;
};
_local2 = (getTimer() - __startTime);
if (_local2 >= __interval){
__startTime = getTimer();
__timediff = (_local2 - __interval);
execute();
};
}
public function get id():int{
return (__id);
}
public function get timesExecuted():int{
return (__timesExecuted);
}
public function get timeDiff():int{
return (__timediff);
}
public function cancel(_arg1:Boolean=false):void{
if (!_arg1){
IntervalManager.clearInterval(__id);
} else {
TweenEnterFrame.removeListener(onEnterFrame);
};
}
function execute():void{
__timesExecuted++;
__elapsedTime = (__elapsedTime + __timediff);
__callback.apply(null, __callbackArgs);
}
public function get timeElapsed():int{
return (__elapsedTime);
}
}
}//package com.fuelindustries.utils
Section 20
//IntervalManager (com.fuelindustries.utils.IntervalManager)
package com.fuelindustries.utils {
import flash.utils.*;
import flash.events.*;
public class IntervalManager extends EventDispatcher {
private static var __intervalId:int = 0;
private static var __timeoutId:int = 0;
private static var __intervals:Dictionary = new Dictionary(true);
private static var __timeouts:Dictionary = new Dictionary(true);
public static function skipFrames(_arg1:Function, _arg2:int=1, ... _args):FrameCall{
var _local4:FrameCall;
_local4 = new FrameCall(_arg1, _arg2, _args);
return (_local4);
}
public static function setInterval(_arg1:Function, _arg2:int, ... _args):int{
var _local4:IntervalCall;
__intervalId++;
_local4 = new IntervalCall(__intervalId, _arg1, _arg2, _args);
__intervals[__intervalId] = _local4;
return (__intervalId);
}
public static function clearInterval(_arg1:int):void{
var _local2:IntervalCall;
if (_arg1 != 0){
_local2 = __intervals[_arg1];
if (_local2 != null){
_local2.cancel(true);
delete __intervals[_arg1];
};
};
}
public static function clearTimeout(_arg1:int):void{
var _local2:TimeoutCall;
if (_arg1 != 0){
_local2 = __timeouts[_arg1];
if (_local2 != null){
_local2.cancel(true);
delete __timeouts[_arg1];
};
};
}
public static function setTimeout(_arg1:Function, _arg2:int, ... _args):int{
var _local4:TimeoutCall;
__timeoutId++;
_local4 = new TimeoutCall(__timeoutId, _arg1, _arg2, _args);
__timeouts[__timeoutId] = _local4;
return (__timeoutId);
}
}
}//package com.fuelindustries.utils
Section 21
//TimeoutCall (com.fuelindustries.utils.TimeoutCall)
package com.fuelindustries.utils {
public class TimeoutCall extends IntervalCall {
public function TimeoutCall(_arg1:int, _arg2:Function, _arg3:int, _arg4:Array){
super(_arg1, _arg2, _arg3, _arg4);
}
override function execute():void{
super.execute();
IntervalManager.clearTimeout(__id);
}
}
}//package com.fuelindustries.utils
Section 22
//AnimButton (com.mcdonalds.castlebusters.controls.AnimButton)
package com.mcdonalds.castlebusters.controls {
import flash.events.*;
import com.fuelindustries.core.*;
public class AnimButton extends FuelUI {
private var __usingFrames:Boolean;
private var __targetFrame:Number;
public function AnimButton(){
__targetFrame = 1;
__usingFrames = false;
this.buttonMode = true;
this.addEventListener("mouseOver", animIn);
this.addEventListener("mouseOut", animOut);
}
private function animFrame(_arg1:Event){
if (currentFrame > __targetFrame){
prevFrame();
} else {
if (currentFrame < __targetFrame){
nextFrame();
};
};
if (currentFrame == __targetFrame){
this.removeEventListener("enterFrame", animFrame);
__usingFrames = false;
};
}
private function animIn(_arg1:Event){
new rollover().play();
__targetFrame = totalFrames;
if (!__usingFrames){
this.addEventListener("enterFrame", animFrame);
__usingFrames = true;
};
}
private function animOut(_arg1:Event){
__targetFrame = 1;
if (!__usingFrames){
this.addEventListener("enterFrame", animFrame);
__usingFrames = true;
};
}
}
}//package com.mcdonalds.castlebusters.controls
Section 23
//CountDown (com.mcdonalds.castlebusters.controls.CountDown)
package com.mcdonalds.castlebusters.controls {
import flash.utils.*;
import flash.events.*;
import com.fuelindustries.core.*;
public class CountDown extends FuelUI {
public function CountDown(){
addFrameScript(1, frame2, 23, frame24, 46, frame47, 69, frame70, 91, frame92);
this.frameTo(1, 3000, null, endCount);
playCount();
createTimer(750, playCount);
createTimer(1550, playCount);
createTimer(2300, playBell);
}
function frame70(){
}
private function endCount(... _args){
stop();
parent.removeChild(this);
}
private function playCount(_arg1:Event=null){
new Sound_Count().play();
}
private function playBell(_arg1:Event=null){
new Sound_Bell().play();
dispatchEvent(new Event("countdown"));
}
function frame24(){
}
function frame92(){
}
private function createTimer(_arg1:Number, _arg2:Function){
var _local3:Timer;
_local3 = new Timer(_arg1, 1);
_local3.addEventListener("timer", _arg2);
_local3.start();
}
function frame47(){
}
function frame2(){
}
}
}//package com.mcdonalds.castlebusters.controls
Section 24
//Dragonball (com.mcdonalds.castlebusters.controls.Dragonball)
package com.mcdonalds.castlebusters.controls {
import flash.display.*;
import com.fuelindustries.media.*;
import com.fuelindustries.core.*;
public class Dragonball extends FuelUI {
protected var __power:Number;
public var fireHit_mc:MovieClip;
protected var __speedX:Number;
protected var __speedY:Number;
private var fire_sound:FuelSound;
public function Dragonball(_arg1:Number, _arg2:Number, _arg3:Number){
__power = 1;
__speedX = _arg1;
__speedY = _arg2;
rotation = _arg3;
fire_sound = new Sound_Fireball();
fire_sound.play(400);
fire_sound.volume = 0.5;
fireHit_mc.visible = false;
}
public function stopSound(){
fire_sound.stop();
}
public function getYSpeed(){
return (__speedY);
}
public function getPower():Number{
return (__power);
}
public function getXSpeed(){
return (__speedX);
}
public function usePower(_arg1:Number){
__power = (__power - _arg1);
if (__power <= 0){
burnOut();
};
}
public function setPower(_arg1:Number){
__power = _arg1;
}
public function burnOut(){
gotoAndPlay("burnOut");
stopSound();
}
}
}//package com.mcdonalds.castlebusters.controls
Section 25
//EggCounter (com.mcdonalds.castlebusters.controls.EggCounter)
package com.mcdonalds.castlebusters.controls {
import flash.display.*;
import com.fuelindustries.core.*;
public class EggCounter extends FuelUI {
public var egg4_mc:MovieClip;
private var __eggsCollected:Number;
public var egg7_mc:MovieClip;
private var __eggsNeeded:Number;
public var egg2_mc:MovieClip;
public var egg3_mc:MovieClip;
public var egg8_mc:MovieClip;
public var egg5_mc:MovieClip;
public var egg10_mc:MovieClip;
public var egg6_mc:MovieClip;
public var egg9_mc:MovieClip;
public var egg1_mc:MovieClip;
public function EggCounter(){
addFrameScript(0, frame1);
gotoAndStop("empty");
}
private function updateFrame(){
var _local1:Number;
gotoAndStop(__eggsNeeded);
_local1 = 1;
while (_local1 <= __eggsCollected) {
if (this[(("egg" + _local1) + "_mc")] != null){
this[(("egg" + _local1) + "_mc")].gotoAndStop("on");
};
_local1++;
};
_local1 = (__eggsCollected + 1);
while (_local1 <= __eggsNeeded) {
if (this[(("egg" + _local1) + "_mc")] != null){
this[(("egg" + _local1) + "_mc")].gotoAndStop("off");
};
_local1++;
};
}
public function reset(){
gotoAndStop("empty");
}
public function collectEgg():Boolean{
__eggsCollected++;
updateFrame();
return ((__eggsCollected >= __eggsNeeded));
}
function frame1(){
stop();
}
public function getEggCount():Number{
return (__eggsCollected);
}
public function setEggs(_arg1:Number, _arg2:Number){
__eggsCollected = _arg1;
__eggsNeeded = _arg2;
updateFrame();
}
public function getEggsNeeded():Number{
return (__eggsNeeded);
}
}
}//package com.mcdonalds.castlebusters.controls
Section 26
//Fireball (com.mcdonalds.castlebusters.controls.Fireball)
package com.mcdonalds.castlebusters.controls {
public class Fireball extends Dragonball {
public function Fireball(_arg1:Number, _arg2:Number, _arg3:Number){
addFrameScript(0, frame1, 12, frame13);
super(_arg1, _arg2, _arg3);
__power = 1;
}
function frame1(){
stop();
}
function frame13(){
stop();
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.mcdonalds.castlebusters.controls
Section 27
//FireCounter (com.mcdonalds.castlebusters.controls.FireCounter)
package com.mcdonalds.castlebusters.controls {
import flash.display.*;
import com.fuelindustries.core.*;
public class FireCounter extends FuelUI {
private var __type:int;
public var iconTriple1_mc:MovieClip;
private var __power:int;
public var iconPower3_mc:MovieClip;
public var iconTriple4_mc:MovieClip;
public var iconTriple5_mc:MovieClip;
public var iconTriple2_mc:MovieClip;
public var iconPower1_mc:MovieClip;
public var iconPower2_mc:MovieClip;
public var iconTriple3_mc:MovieClip;
public function FireCounter(){
__power = 0;
}
public function reset(){
var _local1:int;
var _local2:int;
__power = 0;
_local1 = 1;
while (_local1 <= 5) {
this[(("iconTriple" + _local1) + "_mc")].gotoAndStop("empty");
_local1++;
};
_local2 = 1;
while (_local2 <= 3) {
this[(("iconPower" + _local2) + "_mc")].gotoAndStop("empty");
_local2++;
};
}
public function usePower():int{
if (__power > 0){
if (__type == 2){
this[(("iconTriple" + __power) + "_mc")].gotoAndPlay("use");
} else {
this[(("iconPower" + __power) + "_mc")].gotoAndPlay("use");
};
__power--;
return (__type);
};
return (0);
}
public function setPower(_arg1:int, _arg2:int){
var _local3:uint;
__type = _arg1;
__power = _arg2;
if (__type == 2){
_local3 = 1;
while (_local3 <= 3) {
this[(("iconPower" + _local3) + "_mc")].gotoAndStop("empty");
_local3++;
};
_local3 = 1;
while (_local3 <= 5) {
this[(("iconTriple" + _local3) + "_mc")].gotoAndPlay("get");
_local3++;
};
} else {
_local3 = 1;
while (_local3 <= 5) {
this[(("iconTriple" + _local3) + "_mc")].gotoAndStop("empty");
_local3++;
};
_local3 = 1;
while (_local3 <= 3) {
this[(("iconPower" + _local3) + "_mc")].gotoAndPlay("get");
_local3++;
};
};
}
}
}//package com.mcdonalds.castlebusters.controls
Section 28
//FireDragon (com.mcdonalds.castlebusters.controls.FireDragon)
package com.mcdonalds.castlebusters.controls {
import flash.display.*;
import flash.events.*;
import com.fuelindustries.core.*;
import flash.filters.*;
import flash.geom.*;
public class FireDragon extends FuelUI {
private var __deadXSpeed:Number;
private var __deathFinished:Boolean;
public var hitItem_mc:MovieClip;
private var __dead:Boolean;
private var __glowFilter:GlowFilter;
private var __interrupted:Boolean;
private var __invulTime:Number;
private var __fireballReady:Boolean;
private var __shootingFireball:Boolean;
private var __animation:String;
private var __deadYSpeed:Number;
public var dragonHead_mc:MovieClip;
public var fireballStart_mc:MovieClip;
public var dragonBody_mc:MovieClip;
public var hitDragon_mc:MovieClip;
public function FireDragon(){
addFrameScript(0, frame1);
__animation = "idle";
__glowFilter = new GlowFilter(0xFF9900, 0.8, 7, 7, 2, 3);
hitDragon_mc.visible = false;
hitItem_mc.visible = false;
__shootingFireball = false;
__interrupted = false;
}
public function isVulnerable():Boolean{
if ((((__invulTime <= 0)) && (!(__dead)))){
return (true);
};
return (false);
}
public function animationDone(... _args){
if ((((__animation == "fire")) || ((__animation == "hit")))){
setAnimation("fly");
__fireballReady = true;
__interrupted = false;
};
}
public function invulnerable(){
var _local1:ColorTransform;
__invulTime = 8000;
this.filters = [__glowFilter];
_local1 = new ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
this.transform.colorTransform = _local1;
}
public function dragonReady(){
__fireballReady = true;
}
public function flyTo(_arg1:Number, _arg2:Number, _arg3:Number){
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:ColorTransform;
if (__dead){
x = (x + (__deadXSpeed * (_arg3 / 33)));
y = (y + (__deadYSpeed * (_arg3 / 33)));
__deadXSpeed = (__deadXSpeed - (0.02 * (_arg3 / 33)));
if (__deadXSpeed < 0){
__deadXSpeed = 0;
};
__deadYSpeed = (__deadYSpeed + (0.3 * (_arg3 / 33)));
if ((((y > 450)) && (!(__deathFinished)))){
__deathFinished = true;
dispatchEvent(new Event("dragonDead"));
};
return;
};
_local4 = (((_arg1 - this.x) / 2) * (_arg3 / 33));
_local5 = (7 * (_arg3 / 33));
if (_local4 > _local5){
_local4 = _local5;
};
if (_local4 < -(_local5)){
_local4 = -(_local5);
};
this.x = Math.round((this.x + _local4));
_local6 = (((_arg2 - this.y) / 15) * (_arg3 / 33));
this.y = Math.round((this.y + _local6));
this.rotation = (((this.rotation * 4) + _local6) / 5);
if (__invulTime > 0){
__invulTime = (__invulTime - _arg3);
if (__invulTime <= 0){
this.filters = [];
_local7 = new ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
this.transform.colorTransform = _local7;
};
};
}
public function reset(_arg1:Number, _arg2:Number){
this.x = _arg1;
this.y = _arg2;
if (__animation == "start"){
dragonBody_mc.gotoAndPlay(1);
};
setAnimation("start");
__shootingFireball = false;
__fireballReady = false;
__interrupted = false;
__dead = false;
__invulTime = 0;
this.rotation = 0;
}
private function setAnimation(_arg1:String){
__animation = _arg1;
this.gotoAndStop(_arg1);
__animation;
}
public function shootFireball(... _args){
if (__interrupted){
__interrupted = false;
return;
};
dispatchEvent(new Event("shootFireball"));
__interrupted = false;
}
public function hit(){
var _local1:ColorTransform;
if (__dead){
return;
};
__invulTime = 3000;
_local1 = new ColorTransform(1, 1, 1, 1, -50, -50, -50, 0);
this.transform.colorTransform = _local1;
setAnimation("hit");
__fireballReady = false;
__interrupted = true;
}
function frame1(){
stop();
}
public function breathFire():Boolean{
if (((__fireballReady) && (!(__dead)))){
setAnimation("fire");
__fireballReady = false;
return (true);
};
return (false);
}
public function isAlive():Boolean{
return (!(__dead));
}
public function kill(){
if (__dead){
return;
};
__dead = true;
__deadXSpeed = 3;
__deadYSpeed = 0;
__deathFinished = false;
this.rotation = 0;
new Sound_DragonDie().play();
setAnimation("die");
}
}
}//package com.mcdonalds.castlebusters.controls
Section 29
//GameScore (com.mcdonalds.castlebusters.controls.GameScore)
package com.mcdonalds.castlebusters.controls {
import flash.display.*;
import flash.text.*;
import com.fuelindustries.core.*;
public class GameScore extends FuelUI {
public var playerScore1_mc:MovieClip;
public var playerScore4_mc:MovieClip;
private var __highScore:Number;
public var playerScore_txt:MovieClip;
public var coinIcon_mc:MovieClip;
public var playerScore2_mc:MovieClip;
private var __score:Number;
public var playerScore3_mc:MovieClip;
public var highScoreBG_mc:MovieClip;
public var hiScore_txt:TextField;
public function getScore():Number{
return (__score);
}
public function PlayerScore(){
__score = 0;
updateText();
}
public function setScore(_arg1:Number, _arg2:Number=0){
__score = _arg1;
__highScore = _arg2;
if (__highScore == 0){
hiScore_txt.visible = false;
highScoreBG_mc.visible = false;
} else {
hiScore_txt.visible = true;
highScoreBG_mc.visible = true;
};
updateText();
}
public function addScore(_arg1:Number):Number{
if (_arg1 < 1){
return (__score);
};
__score = (__score + _arg1);
if (__score > __highScore){
__highScore = __score;
};
updateText();
coinIcon_mc.gotoAndPlay("addPoints");
return (__score);
}
private function updateText(){
var _local1:String;
_local1 = __score.toString();
if (__score > 9999){
_local1 = "9999";
};
playerScore1_mc.gotoAndStop(("n" + _local1.charAt(0)));
if (_local1.length > 1){
playerScore2_mc.visible = true;
playerScore2_mc.gotoAndStop(("n" + _local1.charAt(1)));
} else {
playerScore2_mc.visible = false;
};
if (_local1.length > 2){
playerScore3_mc.visible = true;
playerScore3_mc.gotoAndStop(("n" + _local1.charAt(2)));
} else {
playerScore3_mc.visible = false;
};
if (_local1.length > 3){
playerScore4_mc.visible = true;
playerScore4_mc.gotoAndStop(("n" + _local1.charAt(3)));
} else {
playerScore4_mc.visible = false;
};
_local1 = __highScore.toString();
if (__highScore > 9999){
_local1 = "9999";
};
hiScore_txt.text = _local1;
}
}
}//package com.mcdonalds.castlebusters.controls
Section 30
//PlayButton (com.mcdonalds.castlebusters.controls.PlayButton)
package com.mcdonalds.castlebusters.controls {
public class PlayButton extends AnimButton {
public function PlayButton(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package com.mcdonalds.castlebusters.controls
Section 31
//PlayerLives (com.mcdonalds.castlebusters.controls.PlayerLives)
package com.mcdonalds.castlebusters.controls {
import flash.display.*;
import com.fuelindustries.media.*;
import com.fuelindustries.core.*;
public class PlayerLives extends FuelUI {
public var livesNumber2_mc:MovieClip;
public var livesIcon_mc:MovieClip;
private var __lives:int;
public var LastLife:FuelSound;
public var livesNumber1_mc:MovieClip;
public function PlayerLives(){
addFrameScript(0, frame1, 20, frame21, 41, frame42, 42, frame43, 82, frame83);
updateFrame();
}
public function gainLife(){
__lives++;
updateFrame();
gotoAndPlay("extraLife");
}
private function updateFrame(){
var _local1:String;
_local1 = __lives.toString();
if (__lives > 99){
_local1 = "99";
};
livesNumber1_mc.gotoAndStop(("n" + _local1.charAt(0)));
if (_local1.length > 1){
livesNumber2_mc.visible = true;
livesNumber2_mc.gotoAndStop(("n" + _local1.charAt(1)));
} else {
livesNumber2_mc.visible = false;
};
}
public function getLives():int{
return (__lives);
}
function frame21(){
gotoAndStop("idle");
}
public function get defaultLives():int{
return (__lives);
}
function frame1(){
stop();
}
public function loseLife():int{
__lives--;
updateFrame();
gotoAndPlay("loseLife");
return (__lives);
}
public function set defaultLives(_arg1:int){
__lives = _arg1;
}
function frame42(){
if ((((this.currentFrame == 42)) && (!((__lives == 1))))){
gotoAndPlay("idle");
};
}
function frame43(){
LastLife = new GameLastLifeWarning();
LastLife.play();
LastLife.volume = 0.4;
}
function frame83(){
if ((((this.currentFrame == 83)) && ((__lives == 1)))){
gotoAndPlay("warning");
};
}
public function setLives(_arg1:int){
__lives = _arg1;
updateFrame();
}
}
}//package com.mcdonalds.castlebusters.controls
Section 32
//Powerball (com.mcdonalds.castlebusters.controls.Powerball)
package com.mcdonalds.castlebusters.controls {
public class Powerball extends Dragonball {
public function Powerball(_arg1:Number, _arg2:Number, _arg3:Number){
addFrameScript(0, frame1, 12, frame13);
super(_arg1, _arg2, _arg3);
__power = 3;
}
function frame1(){
stop();
}
function frame13(){
stop();
if (parent != null){
parent.removeChild(this);
};
}
}
}//package com.mcdonalds.castlebusters.controls
Section 33
//QuitButton (com.mcdonalds.castlebusters.controls.QuitButton)
package com.mcdonalds.castlebusters.controls {
public class QuitButton extends AnimButton {
public function QuitButton(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package com.mcdonalds.castlebusters.controls
Section 34
//RetryButton (com.mcdonalds.castlebusters.controls.RetryButton)
package com.mcdonalds.castlebusters.controls {
public class RetryButton extends AnimButton {
public function RetryButton(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package com.mcdonalds.castlebusters.controls
Section 35
//GameCore (com.mcdonalds.castlebusters.core.GameCore)
package com.mcdonalds.castlebusters.core {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.media.*;
import com.mcdonalds.gamewrapper.*;
import com.fuelindustries.media.*;
import com.mcdonalds.castlebusters.objects.*;
import com.mcdonalds.castlebusters.enemies.*;
import com.mcdonalds.castlebusters.controls.*;
import com.mcdonalds.castlebusters.dialogs.*;
public class GameCore extends GameApplication {
private var __enemyDepth:Number;
private var __enemyProjectiles_mc:MovieClip;
private var __signObjects_mc:MovieClip;
private var __instructionsPopup:InstructionsPopup;
private var __foreground_mc:MovieClip;
public var gameArea_mc:MovieClip;
private var __enemies_mc:MovieClip;
private var __ambience_snd:FuelSound;
public var __setPropDict:Dictionary;
private var __distanceTravelled:Number;
private var __lastTime:Number;
private var __flyingObjects_mc:MovieClip;
private var __nextLevel:Number;
private var __music_snd:FuelSound;
private var __summaryPopup:SummaryPopup;
private var __nextSection:Number;
private var __stageParticles_mc:MovieClip;
public var closeButton_mc:MovieClip;
private var __bossActive:Boolean;
public var sound_mc:MovieClip;
private var __gateWait:int;
private var __gameLevel:int;
public var gameBitmap_mc:MovieClip;
public var popupContainer_mc:MovieClip;
private var __fireAimX:Number;
private var __mousePosY:Number;
private var __mousePosX:Number;
private var __fireAimY:Number;
private var __levelSpeed:Number;
private var __defaultDragonX:Number;
private var __defaultDragonY:Number;
private var __music_channel:SoundChannel;
private var __bossQueued:Boolean;
private var __bitmap:Bitmap;
private var __intro_snd:FuelSound;
private var __acknowledgedLevel:int;
private var __dragon_mc:FireDragon;
private var __playerProjectiles_mc:MovieClip;
private var __bitmapRender:BitmapData;
private var __globalParticles_mc:MovieClip;
private var __totalScore:int;
public var fireCounter_mc:MovieClip;
private var __gameSpeed:Number;
public var bonusScore_mc:MovieClip;
private var __balloons_mc:MovieClip;
public var globalParticles_mc:MovieClip;
public var playerLives_mc:MovieClip;
private var __background1X:Number;
private var __nextBalloon:Number;
public var music_mc:MovieClip;
private var __background2X:Number;
public function GameCore(){
__setPropDict = new Dictionary(true);
super();
addFrameScript(0, frame1);
}
public function countdownFinish(_arg1:Event){
trace("STARTING");
__levelSpeed = 2;
__dragon_mc.dragonReady();
__lastTime = getTimer();
}
private function removeInstructions(... _args){
popupContainer_mc.removeChild(__instructionsPopup);
}
private function bossKilled(_arg1:Event){
var _local2:Number;
var _local3:MovieClip;
bonusScore_mc.addScore(5);
__bossActive = false;
__gameLevel++;
__nextLevel = (__distanceTravelled + (__gameLevel * 1000));
_local2 = (2000 - (__gameLevel * 200));
if (_local2 < 500){
_local2 = 500;
};
__nextBalloon = ((__distanceTravelled + 500) + (Math.random() * _local2));
trace((("** hit level " + __gameLevel) + " **"));
trace(((("__distanceTravelled: " + __distanceTravelled) + ", next boss at: ") + __nextLevel));
trace(("__nextBalloon at: " + __nextBalloon));
__levelSpeed = (2 + (__gameLevel * 0.2));
_local3 = new towerLevel_mc();
_local3.levelNumber_txt.text = __gameLevel.toString();
_local3.x = 700;
__signObjects_mc.addChild(_local3);
}
public function getShield(){
__dragon_mc.invulnerable();
}
public function damageDragon(_arg1:Boolean){
if (__dragon_mc.isVulnerable() == false){
return;
};
if (playerLives_mc.loseLife() > 0){
__dragon_mc.hit();
if (_arg1){
__gameSpeed = 0;
if (__gameSpeed < 0){
__gameSpeed = 0;
};
};
} else {
__levelSpeed = 0;
__dragon_mc.kill();
};
}
private function showResults(_arg1:Event){
var _local2:FuelSound;
_local2 = new Music_GameOver();
__music_channel = _local2.play();
__music_channel.addEventListener("soundComplete", ContinueMusicLoop);
__music_snd.volume = 0.2;
__summaryPopup = new SummaryPopup();
popupContainer_mc.addChild(__summaryPopup);
__summaryPopup.x = 325;
__summaryPopup.y = 200;
__summaryPopup.addEventListener("playAgain", playAgain);
__summaryPopup.addEventListener("quitGame", quitGame);
__summaryPopup.setScore(bonusScore_mc.getScore());
__summaryPopup.frameTo(65, 2150);
__totalScore = (__totalScore + bonusScore_mc.getScore());
if (highScore < bonusScore_mc.getScore()){
highScore = bonusScore_mc.getScore();
__summaryPopup.showBadge();
};
}
private function shootFireball(_arg1:Event){
var _local2:MovieClip;
var _local3:Number;
var _local4:Number;
if (__playerProjectiles_mc == null){
return;
};
_local3 = fireCounter_mc.usePower();
_local4 = ((__fireAimY - __dragon_mc.y) / 20);
if (_local4 > 3){
_local4 = 3;
};
if (_local4 < -3){
_local4 = -3;
};
_local4 = 2;
if (_local3 == 1){
_local2 = new Powerball(10, _local4, (_local4 * 5));
__playerProjectiles_mc.addChild(_local2);
_local2.x = ((__dragon_mc.x + __dragon_mc.dragonHead_mc.x) + (__dragon_mc.dragonHead_mc.fireballStart_mc.x / 2));
_local2.y = ((__dragon_mc.y + __dragon_mc.dragonHead_mc.y) + (__dragon_mc.dragonHead_mc.fireballStart_mc.y / 2));
} else {
if (_local3 == 2){
_local2 = new Fireball(12, (_local4 - 4), ((_local4 - 4) * 5));
__playerProjectiles_mc.addChild(_local2);
_local2.x = ((__dragon_mc.x + __dragon_mc.dragonHead_mc.x) + (__dragon_mc.dragonHead_mc.fireballStart_mc.x / 2));
_local2.y = ((__dragon_mc.y + __dragon_mc.dragonHead_mc.y) + (__dragon_mc.dragonHead_mc.fireballStart_mc.y / 2));
_local2 = new Fireball(12, _local4, (_local4 * 5));
__playerProjectiles_mc.addChild(_local2);
_local2.x = ((__dragon_mc.x + __dragon_mc.dragonHead_mc.x) + (__dragon_mc.dragonHead_mc.fireballStart_mc.x / 2));
_local2.y = ((__dragon_mc.y + __dragon_mc.dragonHead_mc.y) + (__dragon_mc.dragonHead_mc.fireballStart_mc.y / 2));
_local2 = new Fireball(12, (_local4 + 4), ((_local4 + 4) * 5));
__playerProjectiles_mc.addChild(_local2);
_local2.x = ((__dragon_mc.x + __dragon_mc.dragonHead_mc.x) + (__dragon_mc.dragonHead_mc.fireballStart_mc.x / 2));
_local2.y = ((__dragon_mc.y + __dragon_mc.dragonHead_mc.y) + (__dragon_mc.dragonHead_mc.fireballStart_mc.y / 2));
} else {
_local2 = new Fireball(12, _local4, (_local4 * 5));
__playerProjectiles_mc.addChild(_local2);
_local2.x = ((__dragon_mc.x + __dragon_mc.dragonHead_mc.x) + (__dragon_mc.dragonHead_mc.fireballStart_mc.x / 2));
_local2.y = ((__dragon_mc.y + __dragon_mc.dragonHead_mc.y) + (__dragon_mc.dragonHead_mc.fireballStart_mc.y / 2));
};
};
}
function frame1(){
if ((((__setPropDict[playerLives_mc] == undefined)) || (!((int(__setPropDict[playerLives_mc]) == 1))))){
__setPropDict[playerLives_mc] = currentFrame;
__setProp_playerLives_mc_Scene1_lives_1();
};
stop();
this.initGame();
}
private function createObjects(){
var _local1:Number;
var _local2:MegaBalloon;
var _local3:SmallBalloon;
var _local4:String;
var _local5:Object;
var _local6:MovieClip;
var _local7:int;
var _local8:MovieClip;
var _local9:MovieClip;
if (((!(__bossActive)) && ((__distanceTravelled > __nextBalloon)))){
trace(("__bossQueued: " + __bossQueued));
_local1 = (1000 - (__gameLevel * 100));
if (_local1 < 500){
_local1 = 500;
};
__nextBalloon = (__nextBalloon + (500 + (Math.random() * _local1)));
if (__bossQueued){
__bossQueued = false;
__bossActive = true;
_local2 = new MegaBalloon();
__balloons_mc.addChild(_local2);
_local2.HitPoints = (4 + __gameLevel);
_local2.addEventListener("BossKilled", bossKilled);
} else {
_local3 = new SmallBalloon();
__balloons_mc.addChild(_local3);
};
};
if (__distanceTravelled > __nextSection){
_local4 = getNewSection();
trace(("creating " + _local4));
_local5 = this.loaderInfo.applicationDomain.getDefinition(_local4);
_local6 = (new (_local5) as MovieClip);
__enemies_mc.addChild(_local6);
_local6.y = 0;
_local6.xPos = (700 + Math.round((__distanceTravelled - __nextSection)));
_local6.x = _local6.xPos;
__nextSection = (__nextSection + _local6.width);
_local7 = 0;
while (_local7 < _local6.numChildren) {
_local8 = (_local6.getChildAt(_local7) as MovieClip);
if ((_local8 is Foreground)){
_local9 = new (_local8.constructor);
_local9.xPos = (_local8.x + _local6.x);
_local9.x = _local9.xPos;
_local9.y = (_local8.y + _local6.y);
__foreground_mc.addChild(_local9);
_local8.visible = false;
};
_local7++;
};
};
if ((((__distanceTravelled > __nextLevel)) && (!(__bossActive)))){
__bossQueued = true;
};
}
private function playAgain(_arg1:Event){
__summaryPopup.stop();
__summaryPopup.scaleTo(0, 0, 250, "", removeSummary);
startGame();
new pressplay().play();
}
private function removeSummary(... _args){
popupContainer_mc.removeChild(__summaryPopup);
}
private function moveBullets(_arg1:Number){
var _local2:Number;
var _local3:EnemyBullet;
_local2 = 0;
while (_local2 < __enemyProjectiles_mc.numChildren) {
_local3 = (__enemyProjectiles_mc.getChildAt(_local2) as EnemyBullet);
_local3.moveBullet(_arg1);
if ((((_local3.x < -50)) || ((_local3.y > 450)))){
__enemyProjectiles_mc.removeChild(_local3);
_local2--;
} else {
if (((((_local3.isActive()) && (__dragon_mc.isVulnerable()))) && (_local3.getHitArea().hitTestObject(__dragon_mc.hitDragon_mc)))){
_local3.hit();
damageDragon(false);
};
};
_local2++;
};
}
function __setProp_playerLives_mc_Scene1_lives_1(){
try {
playerLives_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
playerLives_mc.defaultLives = 5;
try {
playerLives_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
private function fireWeapons(_arg1:Number){
var _local2:int;
var _local3:int;
var _local4:MovieClip;
var _local5:int;
var _local6:MovieClip;
var _local7:Object;
var _local8:MovieClip;
var _local9:Balloon;
var _local10:Object;
var _local11:MovieClip;
var _local12:MegaBalloon;
var _local13:int;
var _local14:MovieClip;
_local2 = 0;
while (_local2 < __enemies_mc.numChildren) {
_local4 = (__enemies_mc.getChildAt(_local2) as MovieClip);
_local5 = 0;
while (_local5 < _local4.numChildren) {
_local6 = (_local4.getChildAt(_local5) as MovieClip);
if ((_local6 is Weapon)){
if (_local6.fireWeapon(_arg1)){
_local7 = _local6.getBulletClass();
_local8 = new (_local7);
__enemyProjectiles_mc.addChild(_local8);
_local8.x = ((_local4.x + _local6.x) + _local6.bulletOrigin_mc.x);
_local8.y = ((_local4.y + _local6.y) + _local6.bulletOrigin_mc.y);
};
};
if ((_local6 is PickupObject)){
if (_local6.getHitTest().hitTestObject(__dragon_mc.hitItem_mc)){
if (_local6.playerHit()){
if ((_local6 is SmallCoin)){
bonusScore_mc.addScore(1);
new Sound_Coin().play();
};
if ((_local6 is LargeCoin)){
bonusScore_mc.addScore(3);
new Sound_BigCoin().play();
};
if ((_local6 is CoinChest)){
bonusScore_mc.addScore(5);
new Sound_Crystal().play();
};
if ((_local6 is Shield)){
getShield();
new Sound_Shield().play();
};
if ((_local6 is ExtraLife)){
getLife();
new Sound_Life().play();
};
if ((_local6 is Firepower)){
getPower(1);
new FireDragon_CastleBustFireUp().play();
};
if ((_local6 is Spreadpower)){
getPower(2);
new FireDragon_CastleBustFireUp().play();
};
};
};
};
if ((_local6 is Architecture)){
_local6.coolBuilding();
if (((((_local6.isAlive()) && (__dragon_mc.isVulnerable()))) && (_local6.hitTest_mc.hitTestObject(__dragon_mc.hitDragon_mc)))){
damageDragon(true);
if (_local6.HitPoints < 5){
_local6.kill();
};
};
};
_local5++;
};
_local2++;
};
_local3 = 0;
while (_local3 < __balloons_mc.numChildren) {
_local9 = (__balloons_mc.getChildAt(_local3) as Balloon);
_local10 = _local9.getBulletClass();
if ((_local9 is MegaBalloon)){
_local12 = (_local9 as MegaBalloon);
if (_local9.fireWeapon(_arg1)){
_local13 = 0;
while (_local13 < _local12.cannonsFiring()) {
_local14 = _local12.getCannonOrigin(_local13);
_local11 = new (_local10);
(_local11 as EnemyBullet).setSpeeds(-300, -100, 300);
__enemyProjectiles_mc.addChild(_local11);
_local11.x = (_local9.x + _local14.x);
_local11.y = (_local9.y + _local14.y);
_local13++;
};
};
} else {
if (_local9.fireWeapon(_arg1)){
_local11 = new (_local10);
(_local11 as EnemyBullet).setSpeeds(-400, -25, 300);
__enemyProjectiles_mc.addChild(_local11);
_local11.x = (_local9.x + _local9.bulletOrigin_mc.x);
_local11.y = (_local9.y + _local9.bulletOrigin_mc.y);
};
};
_local3++;
};
}
private function mouseCursorMove(_arg1:MouseEvent){
__mousePosX = (_arg1.stageX - parent.x);
__mousePosY = (_arg1.stageY - parent.y);
if (__mousePosX < 80){
__mousePosX = 80;
};
if (__mousePosX > 450){
__mousePosX = 450;
};
if (__mousePosY < 80){
__mousePosY = 80;
};
if (__mousePosY > 350){
__mousePosY = 350;
};
}
private function quitGame(_arg1:Event){
this.removeEventListener("enterFrame", dragonFlyFrame);
dispatchEvent(new GameQuitEvent(__totalScore, highScore));
}
public function addPoints(_arg1:MovieClip, _arg2:Number){
}
private function getNewSection():String{
var _local1:Boolean;
var _local2:int;
var _local3:int;
_local1 = false;
__gateWait--;
if (__gateWait <= 0){
trace(("percent chance of gate: " + (0.2 - (__gateWait * 0.1))));
if (Math.random() < (0.2 - (__gateWait * 0.1))){
_local1 = true;
};
} else {
trace(("sections until gate: " + __gateWait));
};
if (_local1){
__gateWait = 3;
_local2 = __gameLevel;
if (_local2 > 7){
_local2 = 7;
};
return ((("gateSection" + Math.floor((Math.random() * _local2)).toString()) + "_mc"));
//unresolved jump
};
_local3 = (__gameLevel - 2);
if (_local3 < 0){
_local3 = 0;
};
if (_local3 > 10){
_local3 = 10;
};
_local3 = (_local3 + Math.floor((Math.random() * 5)));
return ((("gameSection" + _local3.toString()) + "_mc"));
}
public function initGame(){
__dragon_mc = (gameArea_mc.dragon_mc as FireDragon);
__dragon_mc.addEventListener("shootFireball", shootFireball);
__dragon_mc.addEventListener("dragonDead", showResults);
__defaultDragonX = __dragon_mc.x;
__defaultDragonY = __dragon_mc.y;
__instructionsPopup = new InstructionsPopup();
popupContainer_mc.addChild(__instructionsPopup);
__instructionsPopup.addEventListener("instructionsOpen", setupInstructionPopup);
__instructionsPopup.x = 325;
__instructionsPopup.y = 200;
__intro_snd = new Music_Intro();
__intro_snd.play(0, 9999);
__ambience_snd = new Sound_Wind();
__ambience_snd.play(0, 9999);
__ambience_snd.volume = 0.3;
gameArea_mc.visible = false;
__bitmapRender = new BitmapData(650, 400, false, 0);
gameBitmap_mc.addChild(new Bitmap(__bitmapRender));
playerLives_mc.visible = false;
bonusScore_mc.visible = false;
stage.addEventListener("mouseDown", mouseButtonDown);
stage.addEventListener("mouseMove", mouseCursorMove);
closeButton_mc.addEventListener("mouseDown", quickQuit);
playerLives_mc.setLives(5);
fireCounter_mc.reset();
bonusScore_mc.setScore(0, 0);
__totalScore = 0;
__nextBalloon = 2000;
__gateWait = 0;
drawScene();
}
private function introFadeOut(_arg1:Event){
__intro_snd.volume = (__intro_snd.volume - 0.025);
if (__intro_snd.volume < 0.1){
trace("stopping intro");
__intro_snd.stop();
__music_snd = new Music_Loop();
__music_snd.play(0, 9999);
this.removeEventListener("enterFrame", introFadeOut);
};
}
private function shiftScene(_arg1:int){
var _local2:Number;
var _local3:int;
var _local4:MovieClip;
var _local5:MovieClip;
var _local6:MovieClip;
var _local7:Balloon;
__background1X = (__background1X - ((__gameSpeed / 3) * (_arg1 / 33)));
__background2X = (__background2X - ((__gameSpeed / 3) * (_arg1 / 33)));
if (__background1X < -2382){
__background1X = (__background1X + 4364);
};
if (__background2X < -2382){
__background2X = (__background2X + 4364);
};
gameArea_mc.background1_mc.x = Math.round(__background1X);
gameArea_mc.background2_mc.x = Math.round(__background2X);
_local2 = (__gameSpeed * (_arg1 / 33));
__distanceTravelled = (__distanceTravelled + _local2);
_local3 = 0;
while (_local3 < __enemies_mc.numChildren) {
_local4 = (__enemies_mc.getChildAt(_local3) as MovieClip);
(__enemies_mc.getChildAt(_local3) as MovieClip).xPos = (_local4.xPos - _local2);
_local4.x = Math.round(_local4.xPos);
if (_local4.xPos < (-200 - _local4.width)){
__enemies_mc.removeChild(_local4);
_local3--;
};
_local3++;
};
_local3 = 0;
while (_local3 < __foreground_mc.numChildren) {
_local5 = (__foreground_mc.getChildAt(_local3) as MovieClip);
(__foreground_mc.getChildAt(_local3) as MovieClip).xPos = (_local5.xPos - _local2);
_local5.x = Math.round(_local5.xPos);
if (_local4.xPos < (-200 - _local4.width)){
__foreground_mc.removeChild(_local5);
_local3--;
};
_local3++;
};
_local3 = 0;
while (_local3 < __playerProjectiles_mc.numChildren) {
__playerProjectiles_mc.getChildAt(_local3).x = (__playerProjectiles_mc.getChildAt(_local3).x - _local2);
_local3++;
};
_local3 = 0;
while (_local3 < __enemyProjectiles_mc.length) {
__enemyProjectiles_mc.getChildAt(_local3).x = (__enemyProjectiles_mc.getChildAt(_local3).x - _local2);
_local3++;
};
_local3 = 0;
while (_local3 < __signObjects_mc.numChildren) {
_local6 = (__signObjects_mc.getChildAt(_local3) as MovieClip);
(__signObjects_mc.getChildAt(_local3) as MovieClip).x = (_local6.x - (_local2 * 0.75));
if ((((_local6.x < 350)) && ((__acknowledgedLevel < __gameLevel)))){
__acknowledgedLevel = __gameLevel;
new Level_Complete().play();
};
if (_local6.x < -200){
__signObjects_mc.removeChild(_local6);
_local3--;
};
_local3++;
};
_local3 = 0;
while (_local3 < __balloons_mc.numChildren) {
_local7 = (__balloons_mc.getChildAt(_local3) as Balloon);
_local7.moveBalloon(_arg1);
if ((((((_local7.x < -200)) || ((_local7.y < -200)))) || ((_local7.y > 600)))){
_local7.stopSound();
__balloons_mc.removeChild(_local7);
_local3--;
};
_local3++;
};
}
private function musicFadeIn(_arg1:Event){
__music_snd.volume = (__music_snd.volume + 0.025);
if (__music_snd.volume > 0.95){
__music_snd.volume = 1;
removeEventListener("enterFrame", musicFadeIn);
};
}
public function getPower(_arg1:int){
fireCounter_mc.setPower(_arg1, ((_arg1)==2) ? 5 : 3);
}
public function setupInstructionPopup(_arg1:Event){
__instructionsPopup.playButton_mc.addEventListener("mouseDown", closeInstructions);
}
private function ContinueMusicLoop(_arg1:Event){
__music_channel.removeEventListener("soundComplete", ContinueMusicLoop);
addEventListener("enterFrame", musicFadeIn);
}
public function getLife(){
playerLives_mc.gainLife();
}
private function mouseButtonDown(_arg1:MouseEvent){
__dragon_mc.breathFire();
__fireAimX = __mousePosX;
__fireAimY = __mousePosY;
}
private function startGame(){
var _local1:MovieClip;
var _local2:MovieClip;
var _local3:int;
var _local4:Balloon;
__dragon_mc.reset(__defaultDragonX, __defaultDragonY);
gameArea_mc.background1_mc.x = (__background1X = 0);
gameArea_mc.background2_mc.x = (__background2X = -2182);
if (__playerProjectiles_mc != null){
gameArea_mc.playerProjectiles_mc.removeChild(__playerProjectiles_mc);
};
__playerProjectiles_mc = gameArea_mc.playerProjectiles_mc.addChild(new MovieClip());
if (__foreground_mc != null){
gameArea_mc.foreground_mc.removeChild(__foreground_mc);
};
__foreground_mc = gameArea_mc.foreground_mc.addChild(new MovieClip());
if (__enemyProjectiles_mc != null){
gameArea_mc.enemyProjectiles_mc.removeChild(__enemyProjectiles_mc);
};
__enemyProjectiles_mc = gameArea_mc.enemyProjectiles_mc.addChild(new MovieClip());
if (__enemies_mc != null){
gameArea_mc.enemies_mc.removeChild(__enemies_mc);
};
__enemies_mc = gameArea_mc.enemies_mc.addChild(new MovieClip());
if (__signObjects_mc != null){
gameArea_mc.signObjects_mc.removeChild(__signObjects_mc);
};
__signObjects_mc = gameArea_mc.signObjects_mc.addChild(new MovieClip());
if (__balloons_mc != null){
_local3 = 0;
while (_local3 < __balloons_mc.numChildren) {
_local4 = (__balloons_mc.getChildAt(_local3) as Balloon);
_local4.stopSound();
__balloons_mc.removeChild(_local4);
_local3--;
_local3++;
};
gameArea_mc.balloons_mc.removeChild(__balloons_mc);
};
__balloons_mc = gameArea_mc.balloons_mc.addChild(new MovieClip());
__distanceTravelled = 0;
__nextLevel = 2500;
__nextSection = 0;
__gameSpeed = 0;
__gameLevel = 1;
__acknowledgedLevel = 1;
__nextBalloon = 2000;
__gateWait = 0;
bonusScore_mc.setScore(0, highScore);
playerLives_mc.setLives(5);
fireCounter_mc.reset();
playerLives_mc.visible = true;
bonusScore_mc.visible = true;
if (__globalParticles_mc != null){
globalParticles_mc.removeChild(__globalParticles_mc);
};
__globalParticles_mc = (globalParticles_mc.addChild(new MovieClip()) as MovieClip);
_local1 = createParticle(CountDown, 0, 0);
_local1.addEventListener("countdown", countdownFinish);
_local1.x = 300;
_local1.y = 150;
_local2 = new towerLevel_mc();
_local2.levelNumber_txt.text = __gameLevel.toString();
_local2.x = 700;
__signObjects_mc.addChild(_local2);
}
private function doFireballs(_arg1:Number){
var _local2:int;
var _local3:Dragonball;
var _local4:int;
var _local5:int;
var _local6:MovieClip;
var _local7:int;
var _local8:MovieClip;
var _local9:Number;
var _local10:Balloon;
_local2 = 0;
while (_local2 < __playerProjectiles_mc.numChildren) {
_local3 = (__playerProjectiles_mc.getChildAt(_local2) as Dragonball);
if (_local3.getPower() > 0){
_local3.x = (_local3.x + (_local3.getXSpeed() * (_arg1 / 33)));
_local3.y = (_local3.y + (_local3.getYSpeed() * (_arg1 / 33)));
if ((((((_local3.x < 640)) && ((_local3.y < 390)))) && ((_local3.y > 10)))){
_local4 = 0;
while (_local4 < __enemies_mc.numChildren) {
_local6 = (__enemies_mc.getChildAt(_local4) as MovieClip);
_local7 = 0;
while (_local7 < _local6.numChildren) {
_local8 = (_local6.getChildAt(_local7) as MovieClip);
if ((_local8 is Enemy)){
if ((((((_local8.getHitpoints() > 0)) && (!((_local3.fireHit_mc == null))))) && (_local3.fireHit_mc.hitTestObject(_local8.hitTest_mc)))){
_local9 = _local8.fireballHit(_local3);
if (!isNaN(_local9)){
bonusScore_mc.addScore(_local9);
};
};
};
_local7++;
};
_local4++;
};
_local5 = 0;
while (_local5 < __balloons_mc.numChildren) {
_local10 = (__balloons_mc.getChildAt(_local5) as Balloon);
if ((((((((_local10.getHitpoints() > 0)) && (!((_local3.fireHit_mc == null))))) && (!((_local10.hitTest_mc == null))))) && (_local3.fireHit_mc.hitTestObject(_local10.hitTest_mc)))){
trace("hit the balloon");
_local10.fireballHit(_local3);
bonusScore_mc.addScore(1);
};
_local5++;
};
};
};
if ((((_local3.x > 700)) || ((_local3.y > 450)))){
_local3.stopSound();
__playerProjectiles_mc.removeChild(_local3);
_local2--;
};
_local2++;
};
}
private function createParticle(_arg1:Object, _arg2:Number, _arg3:Number):MovieClip{
var _local4:MovieClip;
if (__globalParticles_mc == null){
return (null);
};
_local4 = new (_arg1);
__globalParticles_mc.addChild(_local4);
_local4.x = _arg2;
_local4.y = _arg3;
return (_local4);
}
private function drawScene(){
__bitmapRender.draw(gameArea_mc);
}
private function closeInstructions(_arg1:Event){
__instructionsPopup.stop();
__instructionsPopup.scaleTo(0, 0, 250, "", removeInstructions);
addEventListener("enterFrame", dragonFlyFrame);
addEventListener("enterFrame", introFadeOut);
startGame();
new pressplay().play();
}
private function quickQuit(_arg1:Event){
__totalScore = (__totalScore + bonusScore_mc.getScore());
if (highScore < bonusScore_mc.getScore()){
highScore = bonusScore_mc.getScore();
};
quitGame(null);
}
private function dragonFlyFrame(_arg1:Event){
var _local2:*;
var _local3:int;
_local2 = getTimer();
_local3 = (_local2 - __lastTime);
if (_local3 > 33){
_local3 = (33 + ((_local3 - 33) / 2));
};
if (_local3 > 100){
_local3 = 100;
};
__dragon_mc.flyTo(__mousePosX, __mousePosY, _local3);
if (__gameSpeed < __levelSpeed){
__gameSpeed = (__gameSpeed + (0.05 * (_local3 / 33)));
if (__gameSpeed > __levelSpeed){
__gameSpeed = __levelSpeed;
};
};
if (__gameSpeed > __levelSpeed){
__gameSpeed = (__gameSpeed - (0.05 * (_local3 / 33)));
if (__gameSpeed < __levelSpeed){
__gameSpeed = __levelSpeed;
};
};
shiftScene(_local3);
createObjects();
doFireballs(_local3);
moveBullets(_local3);
if (__dragon_mc.isAlive()){
fireWeapons(_local3);
};
__lastTime = _local2;
drawScene();
}
}
}//package com.mcdonalds.castlebusters.core
Section 36
//InstructionsPopup (com.mcdonalds.castlebusters.dialogs.InstructionsPopup)
package com.mcdonalds.castlebusters.dialogs {
import flash.display.*;
import flash.events.*;
import com.fuelindustries.core.*;
public class InstructionsPopup extends FuelUI {
public var playButton_mc:MovieClip;
public function InstructionsPopup(){
addFrameScript(27, frame28, 36, frame37, 923, frame924);
}
function frame28(){
new Sound_Tower3().play();
}
function frame37(){
this.instructionsOpen();
}
private function instructionsOpen(){
dispatchEvent(new Event("instructionsOpen"));
}
function frame924(){
gotoAndPlay("repeat");
}
}
}//package com.mcdonalds.castlebusters.dialogs
Section 37
//SummaryPopup (com.mcdonalds.castlebusters.dialogs.SummaryPopup)
package com.mcdonalds.castlebusters.dialogs {
import flash.display.*;
import flash.events.*;
import com.fuelindustries.core.*;
public class SummaryPopup extends FuelUI {
public var number3_mc:MovieClip;
public var number1_mc:MovieClip;
private var __newRecord:Boolean;
public var quitButton_mc:MovieClip;
public var number4_mc:MovieClip;
public var playAgainButton_mc:MovieClip;
public var number2_mc:MovieClip;
private var __score:int;
public var goldenBadge_mc:MovieClip;
public var playButton_mc:MovieClip;
public function SummaryPopup(){
addFrameScript(7, frame8, 64, frame65, 68, frame69, 72, frame73, 76, frame77, 79, frame80, 82, frame83, 85, frame86, 88, frame89, 93, frame94, 97, frame98, 101, frame102, 104, frame105, 107, frame108, 110, frame111, 113, frame114);
__newRecord = false;
}
function frame65(){
play();
badgeCheck();
}
function frame73(){
new Sound_ButtonThump().play();
}
function frame77(){
this.updateScore(1);
this.updateSummary();
new Dragon_Medal().play();
}
function frame86(){
this.updateScore(4);
}
private function badgeCheck(){
if (!__newRecord){
gotoAndPlay("noBadge");
};
}
function frame89(){
stop();
}
function frame94(){
new Sound_ButtonThump().play();
}
function frame98(){
new Sound_ButtonThump().play();
}
public function setScore(_arg1:int){
__score = _arg1;
}
function frame102(){
this.updateScore(1);
this.updateSummary();
}
private function updateScore(_arg1:int){
var _local2:String;
_local2 = __score.toString();
if (__score > 9999){
_local2 = "9999";
};
if (_local2.length >= _arg1){
this[(("number" + _arg1) + "_mc")].white_txt.text = _local2.charAt((_local2.length - _arg1));
this[(("number" + _arg1) + "_mc")].black_txt.text = _local2.charAt((_local2.length - _arg1));
} else {
this[(("number" + _arg1) + "_mc")].white_txt.text = "";
this[(("number" + _arg1) + "_mc")].black_txt.text = "";
};
}
function frame8(){
new Sound_ResultsPopUp().play();
}
function frame108(){
this.updateScore(3);
}
function frame80(){
this.updateScore(2);
}
private function updateSummary(){
playAgainButton_mc.addEventListener("mouseDown", playAgain);
quitButton_mc.addEventListener("mouseDown", quitGame);
}
function frame114(){
stop();
}
public function showBadge(){
__newRecord = true;
}
function frame105(){
this.updateScore(2);
}
function frame111(){
this.updateScore(4);
}
function frame83(){
this.updateScore(3);
}
private function playAgain(_arg1:Event){
dispatchEvent(new Event("playAgain"));
}
private function quitGame(_arg1:Event){
dispatchEvent(new Event("quitGame"));
}
function frame69(){
new Sound_ButtonThump().play();
}
}
}//package com.mcdonalds.castlebusters.dialogs
Section 38
//Architecture (com.mcdonalds.castlebusters.enemies.Architecture)
package com.mcdonalds.castlebusters.enemies {
import flash.display.*;
import flash.geom.*;
public class Architecture extends Enemy {
protected var __prisoners:Array;
protected var __enemies:Array;
protected var __damageTint:int;
protected var __towerDamage:Array;
public function Architecture(){
__damageTint = 0;
}
public function get Enemies():Array{
return (__enemies);
}
override public function fireballHit(_arg1:MovieClip=null):Number{
var _local2:Number;
var _local3:ColorTransform;
if (_arg1 == null){
_local2 = 1;
} else {
_local2 = _arg1.getPower();
_arg1.usePower(__hitPoints);
};
__hitPoints = (__hitPoints - _local2);
if (__hitPoints < 5){
__damageTint = (__damageTint + (75 * _local2));
if (__damageTint > 150){
__damageTint = 150;
};
_local3 = new ColorTransform(1, 1, 1, 1, __damageTint, 0, 0, 0);
this.transform.colorTransform = _local3;
};
if (__hitPoints > 0){
new Sound_Tower1().play();
} else {
return (kill());
};
return (0);
}
public function set Enemies(_arg1:Array){
__enemies = _arg1;
}
public function coolBuilding(){
var _local1:ColorTransform;
if (__damageTint > 0){
__damageTint = (__damageTint - 5);
if (__damageTint < 0){
__damageTint = 0;
};
_local1 = new ColorTransform(1, 1, 1, 1, __damageTint, 0, 0, 0);
this.transform.colorTransform = _local1;
};
}
override public function kill():Number{
var _local1:ColorTransform;
var _local2:Number;
var _local3:int;
var _local4:Number;
if (__dead){
return (0);
};
__dead = true;
__hitPoints = 0;
this.gotoAndStop("die");
this.frameTo(1, 1300);
_local1 = new ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
this.transform.colorTransform = _local1;
new Sound_Tower3().play();
_local2 = __points;
if (__enemies != null){
_local3 = 0;
while (_local3 < __enemies.length) {
_local4 = parent[__enemies[_local3]].kill();
if (!isNaN(_local4)){
_local2 = (_local2 + _local4);
};
_local3++;
};
};
if (__towerDamage != null){
_local3 = 0;
while (_local3 < __towerDamage.length) {
_local4 = parent[__towerDamage[_local3]].fireballHit();
if (!isNaN(_local4)){
_local2 = (_local2 + _local4);
};
_local3++;
};
};
return (_local2);
}
public function set TowerDamage(_arg1:Array){
__towerDamage = _arg1;
}
public function set Prisoners(_arg1:Array){
__prisoners = _arg1;
}
public function isAlive():Boolean{
return (!(__dead));
}
public function get TowerDamage():Array{
return (__towerDamage);
}
public function get Prisoners():Array{
return (__prisoners);
}
}
}//package com.mcdonalds.castlebusters.enemies
Section 39
//ArrowBullet (com.mcdonalds.castlebusters.enemies.ArrowBullet)
package com.mcdonalds.castlebusters.enemies {
import flash.display.*;
public class ArrowBullet extends EnemyBullet {
public var hitTest_mc:MovieClip;
public function ArrowBullet(){
addFrameScript(10, frame11, 23, frame24);
__xSpeed = -400;
__ySpeed = -100;
__gravity = 100;
this.rotation = 20;
}
function frame24(){
stop();
}
override public function getHitArea():MovieClip{
return (hitTest_mc);
}
override public function hit(){
super.hit();
__active = true;
new Sound_Impact1().play();
__xSpeed = -100;
__ySpeed = -200;
__gravity = 800;
}
function frame11(){
if (currentFrame == 11){
gotoAndPlay("fire");
};
}
}
}//package com.mcdonalds.castlebusters.enemies
Section 40
//Ballista (com.mcdonalds.castlebusters.enemies.Ballista)
package com.mcdonalds.castlebusters.enemies {
public class Ballista extends Weapon {
public function Ballista(){
addFrameScript(0, frame1, 35, frame36);
__fireFrame = 9;
}
override public function fireWeapon(_arg1:Number):Boolean{
var _local2:Boolean;
_local2 = super.fireWeapon(_arg1);
if (_local2){
new Sound_Weapon1().play(100);
};
return (_local2);
}
function frame1(){
stop();
}
function frame36(){
stop();
}
override public function getBulletClass():Object{
return (ArrowBullet);
}
}
}//package com.mcdonalds.castlebusters.enemies
Section 41
//Balloon (com.mcdonalds.castlebusters.enemies.Balloon)
package com.mcdonalds.castlebusters.enemies {
import com.fuelindustries.media.*;
public class Balloon extends Weapon {
private var __propellerSound:FuelSound;
public function Balloon(){
__fireFrame = 11;
__propellerSound = new Sound_Propeller();
__propellerSound.play(0, 9999);
__propellerSound.volume = 0;
__fireTime = 2000;
}
override public function fireWeapon(_arg1:Number):Boolean{
var _local2:Boolean;
_local2 = super.fireWeapon(_arg1);
if (_local2){
new Sound_Weapon2().play(300);
};
return (_local2);
}
public function stopSound(){
__propellerSound.stop();
}
public function moveBalloon(_arg1:Number){
if (__propellerSound == null){
return;
};
if (x > 600){
__propellerSound.volume = (0.5 * ((700 - x) / 100));
} else {
__propellerSound.volume = 0.5;
};
}
override public function kill():Number{
if (__dead){
return (0);
};
__dead = true;
__hitPoints = 0;
stopSound();
this.gotoAndStop("die");
this.frameTo(1, 1000);
new Sound_Tower2().play();
return (__points);
}
override public function getBulletClass():Object{
return (CannonBullet);
}
}
}//package com.mcdonalds.castlebusters.enemies
Section 42
//Cannon (com.mcdonalds.castlebusters.enemies.Cannon)
package com.mcdonalds.castlebusters.enemies {
public class Cannon extends Weapon {
public function Cannon(){
addFrameScript(0, frame1, 40, frame41);
__fireFrame = 11;
}
override public function fireWeapon(_arg1:Number):Boolean{
var _local2:Boolean;
_local2 = super.fireWeapon(_arg1);
if (_local2){
new Sound_Weapon2().play(300);
};
return (_local2);
}
function frame1(){
stop();
}
function frame41(){
stop();
}
override public function getBulletClass():Object{
return (CannonBullet);
}
}
}//package com.mcdonalds.castlebusters.enemies
Section 43
//CannonBullet (com.mcdonalds.castlebusters.enemies.CannonBullet)
package com.mcdonalds.castlebusters.enemies {
import com.fuelindustries.media.*;
public class CannonBullet extends EnemyBullet {
public function CannonBullet(){
addFrameScript(0, frame1, 35, frame36);
__xSpeed = -400;
__ySpeed = -300;
__gravity = 300;
}
function frame1(){
stop();
}
function frame36(){
stop();
}
override public function hit(){
var _local1:FuelSound;
super.hit();
_local1 = new Sound_Impact2();
_local1.play(300);
_local1.volume = 0.6;
}
}
}//package com.mcdonalds.castlebusters.enemies
Section 44
//Catapult (com.mcdonalds.castlebusters.enemies.Catapult)
package com.mcdonalds.castlebusters.enemies {
public class Catapult extends Weapon {
public function Catapult(){
addFrameScript(0, frame1, 40, frame41);
}
override public function fireWeapon(_arg1:Number):Boolean{
var _local2:Boolean;
_local2 = super.fireWeapon(_arg1);
if (_local2){
new Sound_Weapon3().play(200);
};
return (_local2);
}
function frame1(){
stop();
}
override public function reload(){
super.reload();
weapon_mc.gotoAndPlay("reload");
new Sound_CatapultReload().play();
}
function frame41(){
stop();
}
override public function getBulletClass():Object{
return (RockBullet);
}
}
}//package com.mcdonalds.castlebusters.enemies
Section 45
//DoorDelay (com.mcdonalds.castlebusters.enemies.DoorDelay)
package com.mcdonalds.castlebusters.enemies {
import flash.display.*;
public class DoorDelay extends Architecture {
private var __doorDropped:Boolean;
public function DoorDelay(){
__doorDropped = false;
}
override public function fireballHit(_arg1:MovieClip=null):Number{
if (__doorDropped == false){
__doorDropped = true;
gotoAndPlay("drop");
return (0);
};
return (super.fireballHit(_arg1));
}
override public function coolBuilding(){
if (((((this.x + parent.x) < 400)) && (!(__doorDropped)))){
__doorDropped = true;
gotoAndPlay("drop");
};
super.coolBuilding();
}
}
}//package com.mcdonalds.castlebusters.enemies
Section 46
//Enemy (com.mcdonalds.castlebusters.enemies.Enemy)
package com.mcdonalds.castlebusters.enemies {
import flash.display.*;
import com.fuelindustries.core.*;
public class Enemy extends FuelUI {
protected var __dead:Boolean;
public var hitTest_mc:MovieClip;
protected var __hitPoints:Number;
protected var __points:Number;
public function Enemy(){
__hitPoints = 1;
__dead = false;
__points = 1;
if (hitTest_mc != null){
hitTest_mc.visible = false;
};
}
public function set Points(_arg1:Number){
__points = _arg1;
}
public function get Points():Number{
return (__points);
}
public function fireballHit(_arg1:MovieClip=null):Number{
var _local2:Number;
_local2 = _arg1.getPower();
_arg1.usePower(__hitPoints);
__hitPoints = (__hitPoints - _local2);
if (__hitPoints > 0){
} else {
return (kill());
};
return (0);
}
public function kill():Number{
if (__dead){
return (0);
};
__dead = true;
__hitPoints = 0;
this.gotoAndStop("die");
this.frameTo(1, 1000);
new Sound_Tower2().play();
return (__points);
}
public function set HitPoints(_arg1:Number){
__hitPoints = _arg1;
}
public function get HitPoints():Number{
return (__hitPoints);
}
public function getHitpoints():Number{
if (__dead){
return (0);
};
return (__hitPoints);
}
}
}//package com.mcdonalds.castlebusters.enemies
Section 47
//EnemyBullet (com.mcdonalds.castlebusters.enemies.EnemyBullet)
package com.mcdonalds.castlebusters.enemies {
import flash.display.*;
import com.fuelindustries.core.*;
public class EnemyBullet extends FuelUI {
protected var __ySpeed:Number;
protected var __gravity:Number;
protected var __xSpeed:Number;
protected var __active:Boolean;
public function EnemyBullet(){
__xSpeed = -200;
__ySpeed = -200;
__gravity = 200;
__active = true;
}
public function setSpeeds(_arg1:Number=-200, _arg2:Number=-200, _arg3:Number=-200){
__xSpeed = _arg1;
__ySpeed = _arg2;
__gravity = _arg3;
}
public function getHitArea():MovieClip{
return (this);
}
public function hit(){
__active = false;
gotoAndPlay("hit");
}
public function moveBullet(_arg1:Number){
var _local2:Number;
if (!__active){
return;
};
_local2 = (_arg1 / 1000);
this.x = (this.x + (__xSpeed * _local2));
this.y = (this.y + (__ySpeed * _local2));
__ySpeed = (__ySpeed + (__gravity * _local2));
}
public function isActive():Boolean{
return (__active);
}
}
}//package com.mcdonalds.castlebusters.enemies
Section 48
//MegaBalloon (com.mcdonalds.castlebusters.enemies.MegaBalloon)
package com.mcdonalds.castlebusters.enemies {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class MegaBalloon extends Balloon {
private var __pauseTime:Number;
private var __deathSpeed:Number;
private var __ySource:Number;
private var __totalTime:Number;
private var __xDestination:Number;
public var weapon1_mc:MovieClip;
private var __idleTime:Number;
private var __state:int;
private var __bulletOrigins:Array;
private var __xSource:Number;
public var weapon2_mc:MovieClip;
private var __damageTint:int;
public var bulletOrigin1_mc:MovieClip;
private var __flightTime:Number;
public var weapon3_mc:MovieClip;
public var bulletOrigin2_mc:MovieClip;
private var __yDestination:Number;
public var bulletOrigin3_mc:MovieClip;
public function MegaBalloon(){
addFrameScript(0, frame1, 45, frame46);
x = 800;
y = (Math.random() * 150);
flyTo(480, (50 + (Math.random() * 150)), 5000);
__state = 0;
__pauseTime = 0;
__hitPoints = 1;
__deathSpeed = 1;
__fireTime = 3000;
__bulletOrigins = [];
}
override public function fireballHit(_arg1:MovieClip=null):Number{
var _local2:Number;
var _local3:ColorTransform;
_local2 = _arg1.getPower();
_arg1.usePower(__hitPoints);
__hitPoints = (__hitPoints - _local2);
__damageTint = (__damageTint + (75 * _local2));
if (__damageTint > 150){
__damageTint = 150;
};
_local3 = new ColorTransform(1, 1, 1, 1, __damageTint, 0, 0, 0);
this.transform.colorTransform = _local3;
if (__hitPoints > 0){
new Sound_Tower1().play();
} else {
return (kill());
};
return (0);
}
public function cannonsFiring():int{
return (__bulletOrigins.length);
}
private function flyTo(_arg1:Number, _arg2:Number, _arg3:Number){
__xSource = x;
__ySource = y;
__xDestination = _arg1;
__yDestination = _arg2;
__totalTime = _arg3;
__flightTime = 0;
}
function frame1(){
stop();
}
function frame46(){
stop();
}
public function getCannonOrigin(_arg1:int):MovieClip{
return (__bulletOrigins[_arg1]);
}
override public function moveBalloon(_arg1:Number){
var _local2:ColorTransform;
super.moveBalloon(_arg1);
if (__damageTint > 0){
__damageTint = (__damageTint - 5);
if (__damageTint < 0){
__damageTint = 0;
};
_local2 = new ColorTransform(1, 1, 1, 1, __damageTint, 0, 0, 0);
this.transform.colorTransform = _local2;
};
if (__dead){
this.rotation = (this.rotation + 0.2);
__deathSpeed = (__deathSpeed + 0.1);
y = (y + (2 * __deathSpeed));
x = (x + (1 * __deathSpeed));
return;
};
if (__state > 0){
__idleTime = (__idleTime - _arg1);
};
if (__pauseTime <= 0){
__flightTime = (__flightTime + _arg1);
if (__flightTime > __totalTime){
x = __xDestination;
y = __yDestination;
__pauseTime = 500;
__state++;
} else {
x = (__xSource + ((__xDestination - __xSource) * (__flightTime / __totalTime)));
y = (__ySource + ((__yDestination - __ySource) * (__flightTime / __totalTime)));
};
} else {
__pauseTime = (__pauseTime - _arg1);
if (__pauseTime <= 0){
flyTo((450 + (Math.random() * 100)), (100 + (Math.random() * 150)), 1000);
};
};
}
override public function kill():Number{
if (__dead){
return (0);
};
__dead = true;
__hitPoints = 0;
stopSound();
this.gotoAndStop("die");
this.frameTo(1, 1300);
new Sound_Tower2().play();
dispatchEvent(new Event("BossKilled"));
return (__points);
}
override public function fireWeapon(_arg1:Number):Boolean{
var _local2:Number;
if (((__dead) || (__firing))){
return (false);
};
_local2 = (this.x + parent.x);
if ((((_local2 > 800)) || ((_local2 < 50)))){
return (false);
};
__nextShot = (__nextShot - _arg1);
if (__nextShot < 0){
trace(__fireTime);
__nextShot = (__nextShot + __fireTime);
switch (Math.floor((Math.random() * 3))){
case 0:
__bulletOrigins = [bulletOrigin1_mc];
break;
case 1:
__bulletOrigins = [bulletOrigin2_mc];
break;
default:
__bulletOrigins = [bulletOrigin1_mc, bulletOrigin2_mc];
break;
};
new Sound_Weapon2().play(300);
return (true);
};
return (false);
}
}
}//package com.mcdonalds.castlebusters.enemies
Section 49
//RockBullet (com.mcdonalds.castlebusters.enemies.RockBullet)
package com.mcdonalds.castlebusters.enemies {
public class RockBullet extends EnemyBullet {
public function RockBullet(){
addFrameScript(14, frame15, 23, frame24);
}
function frame15(){
if (currentFrame == 15){
gotoAndPlay("fire");
};
}
function frame24(){
stop();
}
override public function hit(){
super.hit();
new Sound_Impact3().play(300);
}
}
}//package com.mcdonalds.castlebusters.enemies
Section 50
//SmallBalloon (com.mcdonalds.castlebusters.enemies.SmallBalloon)
package com.mcdonalds.castlebusters.enemies {
public class SmallBalloon extends Balloon {
private var __xSource:Number;
private var __pauseTime:Number;
private var __deathSpeed:Number;
private var __ySource:Number;
private var __flightTime:Number;
private var __xDestination:Number;
private var __totalTime:Number;
private var __idleTime:Number;
private var __state:int;
private var __yDestination:Number;
public function SmallBalloon(){
addFrameScript(0, frame1, 36, frame37);
x = 700;
y = (100 + (Math.random() * 150));
flyTo(500, (100 + (Math.random() * 150)), 5000);
__state = 0;
__pauseTime = 0;
__hitPoints = 1;
__deathSpeed = 1;
__fireTime = 2000;
}
override public function moveBalloon(_arg1:Number){
super.moveBalloon(_arg1);
if (__dead){
this.rotation = (this.rotation + 0.5);
__deathSpeed = (__deathSpeed + 0.1);
y = (y + (3 * __deathSpeed));
x = (x + (1 * __deathSpeed));
return;
};
if (__state > 0){
__idleTime = (__idleTime - _arg1);
};
if (__pauseTime <= 0){
__flightTime = (__flightTime + _arg1);
if (__flightTime > __totalTime){
x = __xDestination;
y = __yDestination;
__pauseTime = 500;
__state++;
} else {
x = (__xSource + ((__xDestination - __xSource) * (__flightTime / __totalTime)));
y = (__ySource + ((__yDestination - __ySource) * (__flightTime / __totalTime)));
};
} else {
__pauseTime = (__pauseTime - _arg1);
if (__pauseTime <= 0){
if (__state < 6){
flyTo((450 + (Math.random() * 100)), (100 + (Math.random() * 150)), 1000);
} else {
flyTo((50 + (Math.random() * 100)), (-300 + (Math.random() * 100)), 5000);
};
};
};
}
private function flyTo(_arg1:Number, _arg2:Number, _arg3:Number){
__xSource = x;
__ySource = y;
__xDestination = _arg1;
__yDestination = _arg2;
__totalTime = _arg3;
__flightTime = 0;
}
function frame37(){
stop();
}
function frame1(){
stop();
}
override public function fireWeapon(_arg1:Number):Boolean{
var _local2:Number;
if (((__dead) || (__firing))){
return (false);
};
_local2 = (this.x + parent.x);
if ((((_local2 > 800)) || ((_local2 < 50)))){
return (false);
};
__nextShot = (__nextShot - _arg1);
if (__nextShot < 0){
__nextShot = (__nextShot + __fireTime);
new Sound_Weapon2().play(300);
return (true);
};
return (false);
}
}
}//package com.mcdonalds.castlebusters.enemies
Section 51
//Weapon (com.mcdonalds.castlebusters.enemies.Weapon)
package com.mcdonalds.castlebusters.enemies {
import flash.display.*;
public class Weapon extends Enemy {
protected var __fireTime:Number;
protected var __fireFrame:int;// = 7
protected var __firing:Boolean;// = false
protected var __nextShot:Number;
public var weapon_mc:MovieClip;
public var bulletOrigin_mc:MovieClip;
public function Weapon(){
__fireFrame = 7;
__firing = false;
super();
__fireTime = 1500;
__nextShot = __fireTime;
}
private function readyNextShot(){
__nextShot = (__nextShot + ((__fireTime * 2) + (Math.random() * (__fireTime * 2))));
}
public function reload(){
__firing = false;
__nextShot = (__nextShot + __fireTime);
}
public function getBulletClass():Object{
return (RockBullet);
}
public function fireWeapon(_arg1:Number):Boolean{
var _local2:Number;
if (weapon_mc == null){
return (false);
};
if (weapon_mc.currentFrame == __fireFrame){
weapon_mc.gotoAndPlay("fire");
return (true);
};
if (((__dead) || (__firing))){
return (false);
};
_local2 = (this.x + parent.x);
if ((((_local2 > 800)) || ((_local2 < 50)))){
return (false);
};
__nextShot = (__nextShot - _arg1);
if (__nextShot < 0){
__firing = true;
weapon_mc.gotoAndPlay("ready");
return (false);
};
return (false);
}
}
}//package com.mcdonalds.castlebusters.enemies
Section 52
//CoinChest (com.mcdonalds.castlebusters.objects.CoinChest)
package com.mcdonalds.castlebusters.objects {
public class CoinChest extends PickupObject {
public function CoinChest(){
addFrameScript(0, frame1, 18, frame19);
}
function frame19(){
stop();
}
function frame1(){
stop();
}
}
}//package com.mcdonalds.castlebusters.objects
Section 53
//ExtraLife (com.mcdonalds.castlebusters.objects.ExtraLife)
package com.mcdonalds.castlebusters.objects {
public class ExtraLife extends PickupObject {
public function ExtraLife(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
}
}//package com.mcdonalds.castlebusters.objects
Section 54
//Firepower (com.mcdonalds.castlebusters.objects.Firepower)
package com.mcdonalds.castlebusters.objects {
public class Firepower extends PickupObject {
public function Firepower(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
}
}//package com.mcdonalds.castlebusters.objects
Section 55
//Foreground (com.mcdonalds.castlebusters.objects.Foreground)
package com.mcdonalds.castlebusters.objects {
import com.fuelindustries.core.*;
public class Foreground extends FuelUI {
}
}//package com.mcdonalds.castlebusters.objects
Section 56
//LargeCoin (com.mcdonalds.castlebusters.objects.LargeCoin)
package com.mcdonalds.castlebusters.objects {
public class LargeCoin extends PickupObject {
public function LargeCoin(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
stop();
}
function frame1(){
stop();
itemHitTest_mc.visible = false;
}
}
}//package com.mcdonalds.castlebusters.objects
Section 57
//PickupObject (com.mcdonalds.castlebusters.objects.PickupObject)
package com.mcdonalds.castlebusters.objects {
import flash.display.*;
import com.fuelindustries.core.*;
public class PickupObject extends FuelUI {
protected var __obstacles:Array;
protected var __hit:Boolean;
public var itemHitTest_mc:MovieClip;
public function PickupObject(){
__hit = false;
if (itemHitTest_mc != null){
itemHitTest_mc.visible = false;
};
}
public function destroy(){
__hit = true;
this.visible = false;
}
public function getHitTest():MovieClip{
if (itemHitTest_mc != null){
return (itemHitTest_mc);
};
return (this);
}
public function set ItemObstacles(_arg1:Array){
__obstacles = _arg1;
}
public function get ItemObstacles():Array{
return (__obstacles);
}
public function playerHit():Boolean{
var _local1:Number;
if (__hit == true){
return (false);
};
if (__obstacles != null){
_local1 = 0;
while (_local1 < __obstacles.length) {
if (this.parent[__obstacles[_local1]].getHitpoints != undefined){
if (this.parent[__obstacles[_local1]].getHitpoints() > 0){
return (false);
};
};
_local1++;
};
};
__hit = true;
gotoAndPlay("hit");
return (true);
}
}
}//package com.mcdonalds.castlebusters.objects
Section 58
//RandomItem (com.mcdonalds.castlebusters.objects.RandomItem)
package com.mcdonalds.castlebusters.objects {
import flash.display.*;
public class RandomItem extends PickupObject {
private var __itemName;
private var __chanceLife:Number;
private var __chanceEgg:Number;
private var __chanceFire:Number;
public var qMark_mc:MovieClip;
private var __chanceShield:Number;
private var __chanceChest:Number;
private var __chanceCoin:Number;
private var __chanceLargeCoin:Number;
private static var __randomDepth:Number = 1000;
public function RandomItem(){
addFrameScript(0, frame1);
}
public function get ChanceCoin():Number{
return (__chanceCoin);
}
public function get ChanceChest():Number{
return (__chanceChest);
}
public function set ChanceChest(_arg1:Number){
__chanceChest = _arg1;
}
public function set ChanceEgg(_arg1:Number){
__chanceEgg = _arg1;
}
public function set ChanceCoin(_arg1:Number){
__chanceCoin = _arg1;
}
public function get ChanceEgg():Number{
return (__chanceEgg);
}
public function get ItemName():String{
return (__itemName);
}
function frame1(){
qMark_mc.visible = false;
}
public function get ChanceLargeCoin():Number{
return (__chanceLargeCoin);
}
public function set ChanceFire(_arg1:Number){
__chanceFire = _arg1;
}
public function get ChanceFire():Number{
return (__chanceFire);
}
public function set ChanceShield(_arg1:Number){
__chanceShield = _arg1;
}
public function get ChanceLife():Number{
return (__chanceLife);
}
public function get ChanceShield():Number{
return (__chanceShield);
}
public function set ItemName(_arg1:String){
__itemName = _arg1;
}
public function set ChanceLife(_arg1:Number){
__chanceLife = _arg1;
}
public function set ChanceLargeCoin(_arg1:Number){
__chanceLargeCoin = _arg1;
}
}
}//package com.mcdonalds.castlebusters.objects
Section 59
//Shield (com.mcdonalds.castlebusters.objects.Shield)
package com.mcdonalds.castlebusters.objects {
public class Shield extends PickupObject {
public function Shield(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
}
}//package com.mcdonalds.castlebusters.objects
Section 60
//SmallCoin (com.mcdonalds.castlebusters.objects.SmallCoin)
package com.mcdonalds.castlebusters.objects {
public class SmallCoin extends PickupObject {
public function SmallCoin(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
}
}//package com.mcdonalds.castlebusters.objects
Section 61
//Spreadpower (com.mcdonalds.castlebusters.objects.Spreadpower)
package com.mcdonalds.castlebusters.objects {
public class Spreadpower extends PickupObject {
public function Spreadpower(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
}
}//package com.mcdonalds.castlebusters.objects
Section 62
//GameApplication (com.mcdonalds.gamewrapper.GameApplication)
package com.mcdonalds.gamewrapper {
import flash.display.*;
public class GameApplication extends MovieClip {
private var __highScore:uint;
public function get highScore():uint{
return (__highScore);
}
public function set highScore(_arg1:uint){
__highScore = _arg1;
}
}
}//package com.mcdonalds.gamewrapper
Section 63
//GameQuitEvent (com.mcdonalds.gamewrapper.GameQuitEvent)
package com.mcdonalds.gamewrapper {
import flash.events.*;
public class GameQuitEvent extends Event {
private var __highestScore:uint;
private var __totalScore:uint;
public function GameQuitEvent(_arg1:uint, _arg2:uint){
__totalScore = _arg1;
__highestScore = _arg2;
super("onQuit");
}
public function get totalScore():uint{
return (__totalScore);
}
public function get highestScore():uint{
return (__highestScore);
}
}
}//package com.mcdonalds.gamewrapper
Section 64
//ballistaObject_103 (game_fla.ballistaObject_103)
package game_fla {
import flash.display.*;
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class ballistaObject_103 extends MovieClip {
public function ballistaObject_103(){
addFrameScript(0, frame1, 8, frame9, 41, frame42);
}
function frame1(){
stop();
}
function frame9(){
stop();
}
function frame42(){
(parent as Weapon).reload();
}
}
}//package game_fla
Section 65
//cannonObject_101 (game_fla.cannonObject_101)
package game_fla {
import flash.display.*;
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class cannonObject_101 extends MovieClip {
public function cannonObject_101(){
addFrameScript(0, frame1, 10, frame11, 56, frame57);
}
function frame1(){
stop();
}
function frame11(){
stop();
}
function frame57(){
(parent as Weapon).reload();
}
}
}//package game_fla
Section 66
//canonBall_60 (game_fla.canonBall_60)
package game_fla {
import flash.display.*;
public dynamic class canonBall_60 extends MovieClip {
public function canonBall_60(){
addFrameScript(37, frame38);
}
function frame38(){
stop();
}
}
}//package game_fla
Section 67
//catapultObject_99 (game_fla.catapultObject_99)
package game_fla {
import flash.display.*;
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class catapultObject_99 extends MovieClip {
public function catapultObject_99(){
addFrameScript(0, frame1, 6, frame7, 45, frame46, 52, frame53);
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame46(){
(parent as Weapon).reload();
}
function frame53(){
gotoAndStop("idle");
}
}
}//package game_fla
Section 68
//coin_ui__mc_20 (game_fla.coin_ui__mc_20)
package game_fla {
import flash.display.*;
public dynamic class coin_ui__mc_20 extends MovieClip {
public function coin_ui__mc_20(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package game_fla
Section 69
//coinPoint_mc_21 (game_fla.coinPoint_mc_21)
package game_fla {
import flash.display.*;
public dynamic class coinPoint_mc_21 extends MovieClip {
public function coinPoint_mc_21(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package game_fla
Section 70
//dragonBodyDie_mc_11 (game_fla.dragonBodyDie_mc_11)
package game_fla {
import flash.display.*;
public dynamic class dragonBodyDie_mc_11 extends MovieClip {
public function dragonBodyDie_mc_11(){
addFrameScript(42, frame43);
}
function frame43(){
stop();
}
}
}//package game_fla
Section 71
//dragonBodyStart_mc_7 (game_fla.dragonBodyStart_mc_7)
package game_fla {
import flash.display.*;
import com.mcdonalds.castlebusters.controls.*;
public dynamic class dragonBodyStart_mc_7 extends MovieClip {
public function dragonBodyStart_mc_7(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
(parent as FireDragon).animationDone();
}
}
}//package game_fla
Section 72
//dragonFull_mc_8 (game_fla.dragonFull_mc_8)
package game_fla {
import flash.display.*;
import com.fuelindustries.media.*;
public dynamic class dragonFull_mc_8 extends MovieClip {
public var wings:FuelSound;
public function dragonFull_mc_8(){
addFrameScript(31, frame32);
}
function frame32(){
wings = new Sound_Wingflap();
wings.play();
wings.volume = 0.4;
}
}
}//package game_fla
Section 73
//dragonHit_mc_10 (game_fla.dragonHit_mc_10)
package game_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import com.fuelindustries.media.*;
import com.mcdonalds.castlebusters.controls.*;
import flash.text.*;
import flash.filters.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class dragonHit_mc_10 extends MovieClip {
public function dragonHit_mc_10(){
addFrameScript(0, frame1, 1, frame2, 31, frame32);
}
function frame1(){
new Sound_DragonHit().play();
this.frameTo(1, 1050, null, endHit);
}
function frame2(){
}
function frame32(){
}
public function endHit(... _args){
var _local2:FuelSound;
_local2 = new Sound_Wingflap();
_local2.play();
_local2.volume = 0.4;
(this.parent as FireDragon).animationDone();
}
}
}//package game_fla
Section 74
//dragonShoot_mc_9 (game_fla.dragonShoot_mc_9)
package game_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import com.fuelindustries.media.*;
import com.mcdonalds.castlebusters.controls.*;
import flash.text.*;
import flash.filters.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class dragonShoot_mc_9 extends MovieClip {
public var breath:FuelSound;
public var fireballStart_mc:MovieClip;
public function dragonShoot_mc_9(){
addFrameScript(0, frame1, 1, frame2, 13, frame14, 31, frame32);
}
function frame14(){
this.frameTo(32, 600, null, (this.parent as FireDragon).animationDone);
}
function frame1(){
breath = new Sound_Breath();
breath.play();
breath.volume = 0.3;
this.frameTo(14, 450, null, (this.parent as FireDragon).shootFireball);
}
function frame2(){
}
function frame32(){
}
}
}//package game_fla
Section 75
//eggIcon_mc_92 (game_fla.eggIcon_mc_92)
package game_fla {
import flash.display.*;
public dynamic class eggIcon_mc_92 extends MovieClip {
public function eggIcon_mc_92(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package game_fla
Section 76
//fire_end_39 (game_fla.fire_end_39)
package game_fla {
import flash.display.*;
public dynamic class fire_end_39 extends MovieClip {
public function fire_end_39(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package game_fla
Section 77
//flame_38 (game_fla.flame_38)
package game_fla {
import flash.display.*;
public dynamic class flame_38 extends MovieClip {
public function flame_38(){
addFrameScript(78, frame79);
}
function frame79(){
stop();
}
}
}//package game_fla
Section 78
//gameArea_mc_1 (game_fla.gameArea_mc_1)
package game_fla {
import flash.display.*;
import com.mcdonalds.castlebusters.controls.*;
public dynamic class gameArea_mc_1 extends MovieClip {
public var enemyProjectiles_mc:MovieClip;
public var foreground_mc:MovieClip;
public var signObjects_mc:MovieClip;
public var enemies_mc:MovieClip;
public var dragon_mc:FireDragon;
public var flyingObjects_mc:MovieClip;
public var balloons_mc:MovieClip;
public var stageParticles_mc:MovieClip;
public var background1_mc:MovieClip;
public var playerProjectiles_mc:MovieClip;
public var background2_mc:MovieClip;
}
}//package game_fla
Section 79
//GoudySkin_mc_17 (game_fla.GoudySkin_mc_17)
package game_fla {
import flash.display.*;
public dynamic class GoudySkin_mc_17 extends MovieClip {
public function GoudySkin_mc_17(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package game_fla
Section 80
//powerPower_mc_23 (game_fla.powerPower_mc_23)
package game_fla {
import flash.display.*;
public dynamic class powerPower_mc_23 extends MovieClip {
public function powerPower_mc_23(){
addFrameScript(0, frame1, 5, frame6, 17, frame18);
}
function frame18(){
gotoAndStop("empty");
}
function frame6(){
stop();
}
function frame1(){
stop();
}
}
}//package game_fla
Section 81
//scoreText_mc_66 (game_fla.scoreText_mc_66)
package game_fla {
import flash.display.*;
import flash.text.*;
public dynamic class scoreText_mc_66 extends MovieClip {
public var black_txt:TextField;
public var white_txt:TextField;
}
}//package game_fla
Section 82
//starGraphic_mc_41 (game_fla.starGraphic_mc_41)
package game_fla {
import flash.display.*;
public dynamic class starGraphic_mc_41 extends MovieClip {
public function starGraphic_mc_41(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop((Math.floor((Math.random() * this.totalFrames)) + 1));
}
}
}//package game_fla
Section 83
//starParticle_mc_40 (game_fla.starParticle_mc_40)
package game_fla {
import flash.display.*;
public dynamic class starParticle_mc_40 extends MovieClip {
public function starParticle_mc_40(){
addFrameScript(10, frame11);
}
function frame11(){
parent.removeChild(this);
}
}
}//package game_fla
Section 84
//triplePower_mc_25 (game_fla.triplePower_mc_25)
package game_fla {
import flash.display.*;
public dynamic class triplePower_mc_25 extends MovieClip {
public function triplePower_mc_25(){
addFrameScript(0, frame1, 5, frame6, 17, frame18);
}
function frame18(){
gotoAndStop("empty");
}
function frame6(){
stop();
}
function frame1(){
stop();
}
}
}//package game_fla
Section 85
//doorWay_mc (doorWay_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class doorWay_mc extends Architecture {
public function doorWay_mc(){
addFrameScript(0, frame1, 56, frame57);
}
function frame1(){
stop();
}
function frame57(){
stop();
}
}
}//package
Section 86
//doorWayDelay_mc (doorWayDelay_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class doorWayDelay_mc extends DoorDelay {
public function doorWayDelay_mc(){
addFrameScript(0, frame1, 5, frame6, 13, frame14, 55, frame56);
}
function frame14(){
stop();
}
function frame6(){
new FireDragon_GateClose().play(0.3);
}
function frame1(){
stop();
}
function frame56(){
stop();
}
}
}//package
Section 87
//Dragon_Medal (Dragon_Medal)
package {
import com.fuelindustries.media.*;
public dynamic class Dragon_Medal extends FuelSound {
}
}//package
Section 88
//FireDragon_CastleBustFireUp (FireDragon_CastleBustFireUp)
package {
import com.fuelindustries.media.*;
public dynamic class FireDragon_CastleBustFireUp extends FuelSound {
}
}//package
Section 89
//FireDragon_GateClose (FireDragon_GateClose)
package {
import com.fuelindustries.media.*;
public dynamic class FireDragon_GateClose extends FuelSound {
}
}//package
Section 90
//Game_Start (Game_Start)
package {
import com.fuelindustries.media.*;
public dynamic class Game_Start extends FuelSound {
}
}//package
Section 91
//GameLastLifeWarning (GameLastLifeWarning)
package {
import com.fuelindustries.media.*;
public dynamic class GameLastLifeWarning extends FuelSound {
}
}//package
Section 92
//gameSection0_mc (gameSection0_mc)
package {
import flash.display.*;
import com.mcdonalds.castlebusters.objects.*;
public dynamic class gameSection0_mc extends MovieClip {
public var base2_mc:tower10bottom_mc;
public var tower2_mc:tower10top_mc;
public var base3_mc:tower8bottom_mc;
public var base1_mc:tower7bottom_mc;
public var tower3_mc:tower8top_mc;
public var powerup1_mc:Firepower;
public var tower1_mc:tower7top_mc;
public function gameSection0_mc(){
__setProp_tower2_mc_gameSection0_mc_towertop_1();
__setProp_powerup1_mc_gameSection0_mc_enemies_1();
__setProp_base3_mc_gameSection0_mc_towerbottom_1();
__setProp_tower1_mc_gameSection0_mc_towertop_1();
__setProp_base2_mc_gameSection0_mc_towerbottom_1();
__setProp_tower3_mc_gameSection0_mc_towertop_1();
__setProp_base1_mc_gameSection0_mc_towerbottom_1();
}
function __setProp_base3_mc_gameSection0_mc_towerbottom_1(){
try {
base3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base3_mc.Enemies = ["tower3_mc"];
base3_mc.HitPoints = 2;
base3_mc.Points = 1;
try {
base3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower3_mc_gameSection0_mc_towertop_1(){
try {
tower3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower3_mc.HitPoints = 1;
tower3_mc.Points = 0;
tower3_mc.Prisoners = ["powerup1_mc"];
tower3_mc.TowerDamage = ["base3_mc"];
try {
tower3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower1_mc_gameSection0_mc_towertop_1(){
try {
tower1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower1_mc.HitPoints = 1;
tower1_mc.Points = 0;
tower1_mc.TowerDamage = ["base1_mc"];
try {
tower1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_powerup1_mc_gameSection0_mc_enemies_1(){
try {
powerup1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
powerup1_mc.ItemObstacles = ["tower3_mc"];
try {
powerup1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base1_mc_gameSection0_mc_towerbottom_1(){
try {
base1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base1_mc.Enemies = ["tower1_mc"];
base1_mc.HitPoints = 1;
base1_mc.Points = 0;
try {
base1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower2_mc_gameSection0_mc_towertop_1(){
try {
tower2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower2_mc.HitPoints = 1;
tower2_mc.Points = 0;
tower2_mc.TowerDamage = ["base2_mc"];
try {
tower2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base2_mc_gameSection0_mc_towerbottom_1(){
try {
base2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base2_mc.Enemies = ["tower2_mc"];
base2_mc.HitPoints = 2;
base2_mc.Points = 1;
try {
base2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 93
//gameSection1_mc (gameSection1_mc)
package {
import flash.display.*;
import com.mcdonalds.castlebusters.objects.*;
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class gameSection1_mc extends MovieClip {
public var enemy1_mc:Catapult;
public var tower4_mc:tower14top_mc;
public var base2_mc:tower3bottom_mc;
public var tower2_mc:tower1top_mc;
public var coin1_mc:LargeCoin;
public var base3_mc:tower14bottom_mc;
public var base1_mc:tower7bottom_mc;
public var tower3_mc:tower7top_mc;
public var base4_mc:tower1bottom_mc;
public var tower1_mc:tower3top_mc;
public function gameSection1_mc(){
__setProp_base1_mc_gameSection1_mc_towers_1();
__setProp_tower2_mc_gameSection1_mc_towertop_1();
__setProp_tower1_mc_gameSection1_mc_towertop_1();
__setProp_coin1_mc_gameSection1_mc_items_1();
__setProp_base4_mc_gameSection1_mc_towers_1();
__setProp_base2_mc_gameSection1_mc_towers_1();
__setProp_tower4_mc_gameSection1_mc_towertop_1();
__setProp_base3_mc_gameSection1_mc_towers_1();
__setProp_enemy1_mc_gameSection1_mc_intower_1();
__setProp_tower3_mc_gameSection1_mc_towertop_1();
}
function __setProp_tower2_mc_gameSection1_mc_towertop_1(){
try {
tower2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower2_mc.Enemies = ["enemy1_mc"];
tower2_mc.HitPoints = 1;
tower2_mc.Points = 0;
tower2_mc.TowerDamage = ["base4_mc"];
try {
tower2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base3_mc_gameSection1_mc_towers_1(){
try {
base3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base3_mc.Enemies = ["tower4_mc"];
base3_mc.HitPoints = 2;
base3_mc.Points = 1;
try {
base3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base1_mc_gameSection1_mc_towers_1(){
try {
base1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base1_mc.Enemies = ["tower3_mc"];
base1_mc.HitPoints = 1;
base1_mc.Points = 0;
try {
base1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_enemy1_mc_gameSection1_mc_intower_1(){
try {
enemy1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
enemy1_mc.HitPoints = 1;
enemy1_mc.Points = 1;
try {
enemy1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower3_mc_gameSection1_mc_towertop_1(){
try {
tower3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower3_mc.HitPoints = 1;
tower3_mc.Points = 0;
tower3_mc.TowerDamage = ["base1_mc"];
try {
tower3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower4_mc_gameSection1_mc_towertop_1(){
try {
tower4_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower4_mc.HitPoints = 1;
tower4_mc.Points = 0;
tower4_mc.TowerDamage = ["base3_mc"];
try {
tower4_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base4_mc_gameSection1_mc_towers_1(){
try {
base4_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base4_mc.Enemies = ["tower2_mc"];
base4_mc.HitPoints = 2;
base4_mc.Points = 1;
try {
base4_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base2_mc_gameSection1_mc_towers_1(){
try {
base2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base2_mc.Enemies = ["tower1_mc"];
base2_mc.HitPoints = 2;
base2_mc.Points = 1;
try {
base2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower1_mc_gameSection1_mc_towertop_1(){
try {
tower1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower1_mc.HitPoints = 1;
tower1_mc.Points = 0;
tower1_mc.Prisoners = ["coin1_mc"];
tower1_mc.TowerDamage = ["base2_mc"];
try {
tower1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_coin1_mc_gameSection1_mc_items_1(){
try {
coin1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
coin1_mc.enabled = true;
coin1_mc.ItemObstacles = ["tower1_mc"];
try {
coin1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 94
//gameSection10_mc (gameSection10_mc)
package {
import flash.display.*;
import com.mcdonalds.castlebusters.objects.*;
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class gameSection10_mc extends MovieClip {
public var item1_mc:LargeCoin;
public var base2_mc:tower5bottom_mc;
public var weapon3_mc:Catapult;
public var tower2_mc:tower5top_mc;
public var weapon1_mc:Catapult;
public var base3_mc:tower5bottom_mc;
public var weapon4_mc:Catapult;
public var base1_mc:tower9bottom_mc;
public var tower3_mc:tower9top_mc;
public var tower1_mc:tower5top_mc;
public var weapon2_mc:Catapult;
public function gameSection10_mc(){
__setProp_weapon4_mc_gameSection10_mc_intower_1();
__setProp_weapon2_mc_gameSection10_mc_intower_1();
__setProp_weapon3_mc_gameSection10_mc_intower_1();
__setProp_weapon1_mc_gameSection10_mc_intower_1();
__setProp_base1_mc_gameSection10_mc_towers_1();
__setProp_item1_mc_gameSection10_mc_intower_1();
__setProp_tower2_mc_gameSection10_mc_towertop_1();
__setProp_base3_mc_gameSection10_mc_towers_1();
__setProp_base2_mc_gameSection10_mc_towers_1();
__setProp_tower3_mc_gameSection10_mc_towertop_1();
__setProp_tower1_mc_gameSection10_mc_towertop_1();
}
function __setProp_weapon1_mc_gameSection10_mc_intower_1(){
try {
weapon1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon1_mc.HitPoints = 1;
weapon1_mc.Points = 1;
try {
weapon1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower2_mc_gameSection10_mc_towertop_1(){
try {
tower2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower2_mc.Enemies = ["weapon3_mc", "weapon4_mc"];
tower2_mc.HitPoints = 2;
tower2_mc.Points = 0;
tower2_mc.TowerDamage = ["base3_mc"];
try {
tower2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower1_mc_gameSection10_mc_towertop_1(){
try {
tower1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower1_mc.Enemies = ["weapon1_mc", "weapon2_mc"];
tower1_mc.HitPoints = 2;
tower1_mc.Points = 0;
tower1_mc.TowerDamage = ["base2_mc"];
try {
tower1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base3_mc_gameSection10_mc_towers_1(){
try {
base3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base3_mc.Enemies = ["tower2_mc"];
base3_mc.HitPoints = 2;
base3_mc.Points = 1;
try {
base3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon2_mc_gameSection10_mc_intower_1(){
try {
weapon2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon2_mc.HitPoints = 1;
weapon2_mc.Points = 1;
try {
weapon2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon3_mc_gameSection10_mc_intower_1(){
try {
weapon3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon3_mc.HitPoints = 1;
weapon3_mc.Points = 1;
try {
weapon3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_item1_mc_gameSection10_mc_intower_1(){
try {
item1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
item1_mc.enabled = true;
item1_mc.ItemObstacles = ["tower3_mc"];
try {
item1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base2_mc_gameSection10_mc_towers_1(){
try {
base2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base2_mc.Enemies = ["tower1_mc"];
base2_mc.HitPoints = 2;
base2_mc.Points = 1;
try {
base2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon4_mc_gameSection10_mc_intower_1(){
try {
weapon4_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon4_mc.HitPoints = 1;
weapon4_mc.Points = 1;
try {
weapon4_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower3_mc_gameSection10_mc_towertop_1(){
try {
tower3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower3_mc.HitPoints = 1;
tower3_mc.Points = 0;
tower3_mc.Prisoners = ["item1_mc"];
tower3_mc.TowerDamage = ["base1_mc"];
try {
tower3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base1_mc_gameSection10_mc_towers_1(){
try {
base1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base1_mc.Enemies = ["tower3_mc"];
base1_mc.HitPoints = 2;
base1_mc.Points = 1;
try {
base1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 95
//gameSection11_mc (gameSection11_mc)
package {
import flash.display.*;
import com.mcdonalds.castlebusters.objects.*;
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class gameSection11_mc extends MovieClip {
public var tower4_mc:tower8bottom_mc;
public var powerup2_mc:CoinChest;
public var weapon3_mc:Ballista;
public var tower2_mc:tower6top_mc;
public var weapon1_mc:Cannon;
public var base3_mc:tower6bottom_mc;
public var weapon4_mc:Ballista;
public var base1_mc:tower1bottom_mc;
public var life_mc:ExtraLife;
public var tower3_mc:tower8top_mc;
public var powerup1_mc:Firepower;
public var tower1_mc:tower1top_mc;
public var weapon2_mc:Cannon;
public function gameSection11_mc(){
__setProp_base1_mc_gameSection11_mc_towers_1();
__setProp_tower2_mc_gameSection11_mc_towertop_1();
__setProp_weapon3_mc_gameSection11_mc_intower_1();
__setProp_weapon4_mc_gameSection11_mc_intower_1();
__setProp_weapon2_mc_gameSection11_mc_intower_1();
__setProp_weapon1_mc_gameSection11_mc_intower_1();
__setProp_powerup1_mc_gameSection11_mc_intower_1();
__setProp_base3_mc_gameSection11_mc_towers_1();
__setProp_tower3_mc_gameSection11_mc_towertop_1();
__setProp_tower1_mc_gameSection11_mc_towertop_1();
__setProp_life_mc_gameSection11_mc_Layer11_1();
__setProp_tower4_mc_gameSection11_mc_towers_1();
__setProp_powerup2_mc_gameSection11_mc_Layer11_1();
}
function __setProp_powerup2_mc_gameSection11_mc_Layer11_1(){
try {
powerup2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
powerup2_mc.ItemObstacles = ["tower4_mc"];
try {
powerup2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower3_mc_gameSection11_mc_towertop_1(){
try {
tower3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower3_mc.HitPoints = 1;
tower3_mc.Points = 0;
tower3_mc.TowerDamage = ["tower4_mc"];
try {
tower3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon3_mc_gameSection11_mc_intower_1(){
try {
weapon3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon3_mc.HitPoints = 1;
weapon3_mc.Points = 2;
try {
weapon3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower2_mc_gameSection11_mc_towertop_1(){
try {
tower2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower2_mc.Enemies = ["weapon3_mc", "weapon4_mc"];
tower2_mc.HitPoints = 2;
tower2_mc.Points = 0;
tower2_mc.TowerDamage = ["base3_mc"];
try {
tower2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon4_mc_gameSection11_mc_intower_1(){
try {
weapon4_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon4_mc.HitPoints = 1;
weapon4_mc.Points = 2;
try {
weapon4_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base1_mc_gameSection11_mc_towers_1(){
try {
base1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base1_mc.Enemies = ["tower1_mc"];
base1_mc.HitPoints = 2;
base1_mc.Points = 1;
try {
base1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower1_mc_gameSection11_mc_towertop_1(){
try {
tower1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower1_mc.Enemies = ["weapon1_mc", "weapon2_mc"];
tower1_mc.HitPoints = 2;
tower1_mc.Points = 0;
tower1_mc.Prisoners = ["powerup1_mc"];
tower1_mc.TowerDamage = ["base1_mc"];
try {
tower1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_life_mc_gameSection11_mc_Layer11_1(){
try {
life_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
life_mc.ItemObstacles = ["base3_mc"];
try {
life_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base3_mc_gameSection11_mc_towers_1(){
try {
base3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base3_mc.Enemies = ["tower2_mc"];
base3_mc.HitPoints = 3;
base3_mc.Points = 2;
base3_mc.Prisoners = ["life_mc"];
try {
base3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon1_mc_gameSection11_mc_intower_1(){
try {
weapon1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon1_mc.HitPoints = 1;
weapon1_mc.Points = 2;
try {
weapon1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower4_mc_gameSection11_mc_towers_1(){
try {
tower4_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower4_mc.Enemies = ["tower3_mc"];
tower4_mc.HitPoints = 2;
tower4_mc.Points = 1;
tower4_mc.Prisoners = ["powerup2_mc"];
try {
tower4_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon2_mc_gameSection11_mc_intower_1(){
try {
weapon2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon2_mc.HitPoints = 1;
weapon2_mc.Points = 2;
try {
weapon2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_powerup1_mc_gameSection11_mc_intower_1(){
try {
powerup1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
powerup1_mc.ItemObstacles = ["tower1_mc"];
try {
powerup1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 96
//gameSection12_mc (gameSection12_mc)
package {
import flash.display.*;
import com.mcdonalds.castlebusters.objects.*;
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class gameSection12_mc extends MovieClip {
public var tower4_mc:tower14bottom_mc;
public var base2_mc:tower14bottom_mc;
public var tower2_mc:tower14top_mc;
public var tower5_mc:tower11top_mc;
public var weapon1_mc:Cannon;
public var base3_mc:tower11bottom_mc;
public var base1_mc:tower14bottom_mc;
public var tower3_mc:tower14top_mc;
public var tower6_mc:tower11top_mc;
public var base4_mc:tower11bottom_mc;
public var powerup1_mc:ExtraLife;
public var tower1_mc:tower14top_mc;
public var weapon2_mc:Cannon;
public function gameSection12_mc(){
__setProp_base1_mc_gameSection12_mc_towers_1();
__setProp_powerup1_mc_gameSection12_mc_Layer11_1();
__setProp_tower2_mc_gameSection12_mc_towertop_1();
__setProp_weapon1_mc_gameSection12_mc_intower_1();
__setProp_weapon2_mc_gameSection12_mc_intower_1();
__setProp_base4_mc_gameSection12_mc_towers_1();
__setProp_tower1_mc_gameSection12_mc_towertop_1();
__setProp_base2_mc_gameSection12_mc_towers_1();
__setProp_tower5_mc_gameSection12_mc_towertop_1();
__setProp_tower3_mc_gameSection12_mc_towertop_1();
__setProp_tower6_mc_gameSection12_mc_towertop_1();
__setProp_base3_mc_gameSection12_mc_towers_1();
__setProp_tower4_mc_gameSection12_mc_towers_1();
}
function __setProp_tower6_mc_gameSection12_mc_towertop_1(){
try {
tower6_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower6_mc.Enemies = ["weapon2_mc"];
tower6_mc.HitPoints = 1;
tower6_mc.Points = 0;
tower6_mc.TowerDamage = ["base4_mc"];
try {
tower6_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon1_mc_gameSection12_mc_intower_1(){
try {
weapon1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon1_mc.HitPoints = 1;
weapon1_mc.Points = 2;
try {
weapon1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower5_mc_gameSection12_mc_towertop_1(){
try {
tower5_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower5_mc.Enemies = ["weapon1_mc"];
tower5_mc.HitPoints = 1;
tower5_mc.Points = 0;
tower5_mc.TowerDamage = ["base3_mc"];
try {
tower5_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower4_mc_gameSection12_mc_towers_1(){
try {
tower4_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower4_mc.Enemies = ["tower3_mc"];
tower4_mc.HitPoints = 2;
tower4_mc.Points = 1;
tower4_mc.Prisoners = ["powerup1_mc"];
try {
tower4_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower3_mc_gameSection12_mc_towertop_1(){
try {
tower3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower3_mc.HitPoints = 1;
tower3_mc.Points = 0;
tower3_mc.TowerDamage = ["tower4_mc"];
try {
tower3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon2_mc_gameSection12_mc_intower_1(){
try {
weapon2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon2_mc.HitPoints = 1;
weapon2_mc.Points = 2;
try {
weapon2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower2_mc_gameSection12_mc_towertop_1(){
try {
tower2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower2_mc.HitPoints = 1;
tower2_mc.Points = 0;
tower2_mc.TowerDamage = ["base2_mc"];
try {
tower2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower1_mc_gameSection12_mc_towertop_1(){
try {
tower1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower1_mc.HitPoints = 1;
tower1_mc.Points = 0;
tower1_mc.TowerDamage = ["base1_mc"];
try {
tower1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base2_mc_gameSection12_mc_towers_1(){
try {
base2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base2_mc.Enemies = ["tower2_mc"];
base2_mc.HitPoints = 2;
base2_mc.Points = 1;
try {
base2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base3_mc_gameSection12_mc_towers_1(){
try {
base3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base3_mc.Enemies = ["tower5_mc"];
base3_mc.HitPoints = 2;
base3_mc.Points = 1;
try {
base3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_powerup1_mc_gameSection12_mc_Layer11_1(){
try {
powerup1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
powerup1_mc.ItemObstacles = ["tower4_mc"];
try {
powerup1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base4_mc_gameSection12_mc_towers_1(){
try {
base4_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base4_mc.Enemies = ["tower6_mc"];
base4_mc.HitPoints = 2;
base4_mc.Points = 1;
try {
base4_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base1_mc_gameSection12_mc_towers_1(){
try {
base1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base1_mc.Enemies = ["tower1_mc"];
base1_mc.HitPoints = 2;
base1_mc.Points = 1;
try {
base1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 97
//gameSection13_mc (gameSection13_mc)
package {
import flash.display.*;
import com.mcdonalds.castlebusters.objects.*;
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class gameSection13_mc extends MovieClip {
public var tower4_mc:tower12bottom_mc;
public var base2_mc:tower13bottom_mc;
public var weapon3_mc:Ballista;
public var tower2_mc:tower12top_mc;
public var weapon1_mc:Cannon;
public var base1_mc:tower11bottom_mc;
public var tower3_mc:tower13top_mc;
public var powerup1_mc:Firepower;
public var weapon2_mc:Catapult;
public var tower1_mc:tower11top_mc;
public function gameSection13_mc(){
__setProp_base1_mc_gameSection13_mc_towers_1();
__setProp_powerup1_mc_gameSection13_mc_Layer11_1();
__setProp_weapon2_mc_gameSection13_mc_intower_1();
__setProp_weapon3_mc_gameSection13_mc_intower_1();
__setProp_weapon1_mc_gameSection13_mc_intower_1();
__setProp_tower3_mc_gameSection13_mc_towertop_1();
__setProp_base2_mc_gameSection13_mc_towers_1();
__setProp_tower1_mc_gameSection13_mc_towertop_1();
__setProp_tower4_mc_gameSection13_mc_towers_1();
__setProp_tower2_mc_gameSection13_mc_towertop_1();
}
function __setProp_base2_mc_gameSection13_mc_towers_1(){
try {
base2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base2_mc.Enemies = ["tower3_mc"];
base2_mc.HitPoints = 2;
base2_mc.Points = 1;
try {
base2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon3_mc_gameSection13_mc_intower_1(){
try {
weapon3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon3_mc.HitPoints = 1;
weapon3_mc.Points = 1;
try {
weapon3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base1_mc_gameSection13_mc_towers_1(){
try {
base1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base1_mc.Enemies = ["tower1_mc"];
base1_mc.HitPoints = 2;
base1_mc.Points = 1;
try {
base1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower3_mc_gameSection13_mc_towertop_1(){
try {
tower3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower3_mc.Enemies = ["weapon3_mc"];
tower3_mc.HitPoints = 1;
tower3_mc.Points = 0;
tower3_mc.TowerDamage = ["base2_mc"];
try {
tower3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower2_mc_gameSection13_mc_towertop_1(){
try {
tower2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower2_mc.Enemies = ["weapon2_mc"];
tower2_mc.HitPoints = 1;
tower2_mc.Points = 0;
try {
tower2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon1_mc_gameSection13_mc_intower_1(){
try {
weapon1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon1_mc.HitPoints = 1;
weapon1_mc.Points = 1;
try {
weapon1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower4_mc_gameSection13_mc_towers_1(){
try {
tower4_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower4_mc.Enemies = ["tower2_mc"];
tower4_mc.HitPoints = 3;
tower4_mc.Points = 1;
tower4_mc.Prisoners = ["powerup1_mc"];
try {
tower4_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower1_mc_gameSection13_mc_towertop_1(){
try {
tower1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower1_mc.Enemies = ["weapon1_mc"];
tower1_mc.HitPoints = 1;
tower1_mc.Points = 0;
tower1_mc.TowerDamage = ["base1_mc"];
try {
tower1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_powerup1_mc_gameSection13_mc_Layer11_1(){
try {
powerup1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
powerup1_mc.ItemObstacles = ["tower4_mc"];
try {
powerup1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon2_mc_gameSection13_mc_intower_1(){
try {
weapon2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon2_mc.HitPoints = 1;
weapon2_mc.Points = 1;
try {
weapon2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 98
//gameSection14_mc (gameSection14_mc)
package {
import flash.display.*;
import com.mcdonalds.castlebusters.objects.*;
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class gameSection14_mc extends MovieClip {
public var item1_mc:LargeCoin;
public var weapon5_mc:Ballista;
public var tower4_mc:tower1top_mc;
public var base2_mc:tower1bottom_mc;
public var weapon3_mc:Cannon;
public var tower2_mc:tower5top_mc;
public var weapon6_mc:Ballista;
public var weapon1_mc:Cannon;
public var base3_mc:tower9bottom_mc;
public var weapon4_mc:Cannon;
public var base1_mc:tower5bottom_mc;
public var tower3_mc:tower9top_mc;
public var base4_mc:tower5bottom_mc;
public var tower1_mc:tower5top_mc;
public var weapon2_mc:Cannon;
public function gameSection14_mc(){
__setProp_base1_mc_gameSection14_mc_towers_1();
__setProp_weapon4_mc_gameSection14_mc_intower_1();
__setProp_weapon2_mc_gameSection14_mc_intower_1();
__setProp_weapon3_mc_gameSection14_mc_intower_1();
__setProp_weapon1_mc_gameSection14_mc_intower_1();
__setProp_tower2_mc_gameSection14_mc_towertop_1();
__setProp_base3_mc_gameSection14_mc_towers_1();
__setProp_item1_mc_gameSection14_mc_intower_1();
__setProp_base4_mc_gameSection14_mc_towers_1();
__setProp_tower4_mc_gameSection14_mc_towertop_1();
__setProp_tower3_mc_gameSection14_mc_towertop_1();
__setProp_base2_mc_gameSection14_mc_towers_1();
__setProp_tower1_mc_gameSection14_mc_towertop_1();
}
function __setProp_base1_mc_gameSection14_mc_towers_1(){
try {
base1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base1_mc.Enemies = ["tower1_mc"];
base1_mc.HitPoints = 2;
base1_mc.Points = 1;
try {
base1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower1_mc_gameSection14_mc_towertop_1(){
try {
tower1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower1_mc.Enemies = ["weapon1_mc", "weapon2_mc"];
tower1_mc.HitPoints = 2;
tower1_mc.Points = 0;
tower1_mc.TowerDamage = ["base1_mc"];
try {
tower1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_item1_mc_gameSection14_mc_intower_1(){
try {
item1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
item1_mc.ItemObstacles = ["tower3_mc"];
try {
item1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon4_mc_gameSection14_mc_intower_1(){
try {
weapon4_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon4_mc.HitPoints = 1;
weapon4_mc.Points = 1;
try {
weapon4_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base3_mc_gameSection14_mc_towers_1(){
try {
base3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base3_mc.Enemies = ["tower3_mc"];
base3_mc.HitPoints = 2;
base3_mc.Points = 1;
try {
base3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base2_mc_gameSection14_mc_towers_1(){
try {
base2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base2_mc.Enemies = ["tower4_mc"];
base2_mc.HitPoints = 2;
base2_mc.Points = 1;
try {
base2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon1_mc_gameSection14_mc_intower_1(){
try {
weapon1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon1_mc.HitPoints = 1;
weapon1_mc.Points = 1;
try {
weapon1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower4_mc_gameSection14_mc_towertop_1(){
try {
tower4_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower4_mc.Enemies = ["weapon5_mc", "weapon6_mc"];
tower4_mc.HitPoints = 2;
tower4_mc.Points = 0;
tower4_mc.TowerDamage = ["base2_mc"];
try {
tower4_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon2_mc_gameSection14_mc_intower_1(){
try {
weapon2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon2_mc.HitPoints = 1;
weapon2_mc.Points = 1;
try {
weapon2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base4_mc_gameSection14_mc_towers_1(){
try {
base4_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base4_mc.Enemies = ["tower2_mc"];
base4_mc.HitPoints = 2;
base4_mc.Points = 1;
try {
base4_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower3_mc_gameSection14_mc_towertop_1(){
try {
tower3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower3_mc.HitPoints = 1;
tower3_mc.Points = 0;
tower3_mc.Prisoners = ["item1_mc"];
tower3_mc.TowerDamage = ["base3_mc"];
try {
tower3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon3_mc_gameSection14_mc_intower_1(){
try {
weapon3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon3_mc.HitPoints = 1;
weapon3_mc.Points = 1;
try {
weapon3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower2_mc_gameSection14_mc_towertop_1(){
try {
tower2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower2_mc.Enemies = ["weapon3_mc", "weapon4_mc"];
tower2_mc.HitPoints = 2;
tower2_mc.Points = 0;
tower2_mc.TowerDamage = ["base4_mc"];
try {
tower2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 99
//gameSection2_mc (gameSection2_mc)
package {
import flash.display.*;
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class gameSection2_mc extends MovieClip {
public var enemy1_mc:Catapult;
public var base2_mc:tower12bottom_mc;
public var tower2_mc:tower12top_mc;
public var base3_mc:tower7bottom_mc;
public var base1_mc:tower14bottom_mc;
public var tower3_mc:tower7top_mc;
public var tower1_mc:tower14top_mc;
public function gameSection2_mc(){
__setProp_base1_mc_gameSection2_mc_towers_1();
__setProp_tower3_mc_gameSection2_mc_towertop_1();
__setProp_base3_mc_gameSection2_mc_towertop_1();
__setProp_tower1_mc_gameSection2_mc_towertop_1();
__setProp_tower2_mc_gameSection2_mc_towertop_1();
__setProp_base2_mc_gameSection2_mc_towers_1();
__setProp_enemy1_mc_gameSection2_mc_intower_1();
}
function __setProp_tower1_mc_gameSection2_mc_towertop_1(){
try {
tower1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower1_mc.HitPoints = 1;
tower1_mc.Points = 0;
tower1_mc.TowerDamage = ["base1_mc"];
try {
tower1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base2_mc_gameSection2_mc_towers_1(){
try {
base2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base2_mc.Enemies = ["tower2_mc"];
base2_mc.HitPoints = 2;
base2_mc.Points = 1;
try {
base2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower2_mc_gameSection2_mc_towertop_1(){
try {
tower2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower2_mc.Enemies = ["enemy1_mc"];
tower2_mc.HitPoints = 1;
tower2_mc.Points = 0;
tower2_mc.TowerDamage = ["base2_mc"];
try {
tower2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower3_mc_gameSection2_mc_towertop_1(){
try {
tower3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower3_mc.HitPoints = 1;
tower3_mc.Points = 0;
tower3_mc.TowerDamage = ["base3_mc"];
try {
tower3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base3_mc_gameSection2_mc_towertop_1(){
try {
base3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base3_mc.Enemies = ["tower3_mc"];
base3_mc.HitPoints = 1;
base3_mc.Points = 0;
try {
base3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base1_mc_gameSection2_mc_towers_1(){
try {
base1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base1_mc.Enemies = ["tower1_mc"];
base1_mc.HitPoints = 2;
base1_mc.Points = 1;
try {
base1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_enemy1_mc_gameSection2_mc_intower_1(){
try {
enemy1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
enemy1_mc.HitPoints = 1;
enemy1_mc.Points = 1;
try {
enemy1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 100
//gameSection3_mc (gameSection3_mc)
package {
import flash.display.*;
import com.mcdonalds.castlebusters.objects.*;
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class gameSection3_mc extends MovieClip {
public var item1_mc:Shield;
public var tower4_mc:tower14top_mc;
public var tower2_mc:tower5top_mc;
public var base3_mc:tower5bottom_mc;
public var base1_mc:tower9bottom_mc;
public var tower3_mc:tower9top_mc;
public var base4_mc:tower14bottom_mc;
public var weapon2_mc:Catapult;
public function gameSection3_mc(){
__setProp_weapon2_mc_gameSection3_mc_intower_1();
__setProp_base4_mc_gameSection3_mc_towers_1();
__setProp_base1_mc_gameSection3_mc_towers_1();
__setProp_base3_mc_gameSection3_mc_towers_1();
__setProp_item1_mc_gameSection3_mc_intower_1();
__setProp_tower2_mc_gameSection3_mc_towertop_1();
__setProp_tower3_mc_gameSection3_mc_towertop_1();
__setProp_tower4_mc_gameSection3_mc_towertop_1();
}
function __setProp_base1_mc_gameSection3_mc_towers_1(){
try {
base1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base1_mc.Enemies = ["tower3_mc"];
base1_mc.HitPoints = 2;
base1_mc.Points = 1;
try {
base1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base3_mc_gameSection3_mc_towers_1(){
try {
base3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base3_mc.Enemies = ["tower2_mc"];
base3_mc.HitPoints = 2;
base3_mc.Points = 1;
try {
base3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_item1_mc_gameSection3_mc_intower_1(){
try {
item1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
item1_mc.ItemObstacles = ["tower3_mc"];
try {
item1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower2_mc_gameSection3_mc_towertop_1(){
try {
tower2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower2_mc.Enemies = ["weapon2_mc"];
tower2_mc.HitPoints = 1;
tower2_mc.Points = 0;
tower2_mc.TowerDamage = ["base3_mc"];
try {
tower2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower4_mc_gameSection3_mc_towertop_1(){
try {
tower4_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower4_mc.HitPoints = 1;
tower4_mc.Points = 0;
tower4_mc.TowerDamage = ["base4_mc"];
try {
tower4_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base4_mc_gameSection3_mc_towers_1(){
try {
base4_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base4_mc.Enemies = ["tower4_mc"];
base4_mc.HitPoints = 2;
base4_mc.Points = 1;
try {
base4_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower3_mc_gameSection3_mc_towertop_1(){
try {
tower3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower3_mc.HitPoints = 1;
tower3_mc.Points = 0;
tower3_mc.Prisoners = ["item1_mc"];
tower3_mc.TowerDamage = ["base1_mc"];
try {
tower3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon2_mc_gameSection3_mc_intower_1(){
try {
weapon2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon2_mc.HitPoints = 1;
weapon2_mc.Points = 1;
try {
weapon2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 101
//gameSection4_mc (gameSection4_mc)
package {
import flash.display.*;
import com.mcdonalds.castlebusters.objects.*;
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class gameSection4_mc extends MovieClip {
public var tower4_mc:tower4top_mc;
public var powerup2_mc:CoinChest;
public var base2_mc:tower11bottom_mc;
public var weapon3_mc:Ballista;
public var tower2_mc:tower11top_mc;
public var tower5_mc:tower4bottom_mc;
public var weapon1_mc:Catapult;
public var base3_mc:tower10bottom_mc;
public var base1_mc:tower2bottom_mc;
public var tower3_mc:tower10top_mc;
public var powerup1_mc:Spreadpower;
public var tower1_mc:tower2top_mc;
public function gameSection4_mc(){
__setProp_base1_mc_gameSection4_mc_towers_1();
__setProp_tower3_mc_gameSection4_mc_towertop_1();
__setProp_weapon1_mc_gameSection4_mc_intower_1();
__setProp_weapon3_mc_gameSection4_mc_intower_1();
__setProp_tower4_mc_gameSection4_mc_towertop_1();
__setProp_base3_mc_gameSection4_mc_towertop_1();
__setProp_tower2_mc_gameSection4_mc_towertop_1();
__setProp_powerup1_mc_gameSection4_mc_intower_1();
__setProp_base2_mc_gameSection4_mc_towers_1();
__setProp_tower1_mc_gameSection4_mc_towertop_1();
__setProp_powerup2_mc_gameSection4_mc_Layer11_1();
__setProp_tower5_mc_gameSection4_mc_towers_1();
}
function __setProp_weapon3_mc_gameSection4_mc_intower_1(){
try {
weapon3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon3_mc.HitPoints = 1;
weapon3_mc.Points = 1;
try {
weapon3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower3_mc_gameSection4_mc_towertop_1(){
try {
tower3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower3_mc.HitPoints = 1;
tower3_mc.Points = 0;
tower3_mc.TowerDamage = ["base3_mc"];
try {
tower3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base2_mc_gameSection4_mc_towers_1(){
try {
base2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base2_mc.Enemies = ["tower2_mc"];
base2_mc.HitPoints = 2;
base2_mc.Points = 1;
try {
base2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower4_mc_gameSection4_mc_towertop_1(){
try {
tower4_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower4_mc.Enemies = ["weapon3_mc"];
tower4_mc.HitPoints = 2;
tower4_mc.Points = 0;
tower4_mc.TowerDamage = ["tower5_mc"];
try {
tower4_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower1_mc_gameSection4_mc_towertop_1(){
try {
tower1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower1_mc.HitPoints = 1;
tower1_mc.Points = 0;
tower1_mc.Prisoners = ["powerup1_mc"];
tower1_mc.TowerDamage = ["base1_mc"];
try {
tower1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_powerup1_mc_gameSection4_mc_intower_1(){
try {
powerup1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
powerup1_mc.ItemObstacles = ["tower1_mc"];
try {
powerup1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base3_mc_gameSection4_mc_towertop_1(){
try {
base3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base3_mc.Enemies = ["tower3_mc"];
base3_mc.HitPoints = 2;
base3_mc.Points = 1;
try {
base3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base1_mc_gameSection4_mc_towers_1(){
try {
base1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base1_mc.Enemies = ["tower1_mc"];
base1_mc.HitPoints = 2;
base1_mc.Points = 1;
try {
base1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower5_mc_gameSection4_mc_towers_1(){
try {
tower5_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower5_mc.Enemies = ["tower4_mc"];
tower5_mc.HitPoints = 2;
tower5_mc.Points = 2;
tower5_mc.Prisoners = ["powerup2_mc"];
try {
tower5_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower2_mc_gameSection4_mc_towertop_1(){
try {
tower2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower2_mc.Enemies = ["weapon1_mc"];
tower2_mc.HitPoints = 1;
tower2_mc.Points = 0;
tower2_mc.TowerDamage = ["base2_mc"];
try {
tower2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_powerup2_mc_gameSection4_mc_Layer11_1(){
try {
powerup2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
powerup2_mc.ItemObstacles = ["tower5_mc"];
try {
powerup2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon1_mc_gameSection4_mc_intower_1(){
try {
weapon1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon1_mc.HitPoints = 1;
weapon1_mc.Points = 1;
try {
weapon1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 102
//gameSection5_mc (gameSection5_mc)
package {
import flash.display.*;
import com.mcdonalds.castlebusters.objects.*;
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class gameSection5_mc extends MovieClip {
public var tower4_mc:tower7top_mc;
public var base2_mc:tower10bottom_mc;
public var tower2_mc:tower15top_mc;
public var weapon1_mc:Ballista;
public var base3_mc:tower13bottom_mc;
public var base1_mc:tower7bottom_mc;
public var tower3_mc:tower10top_mc;
public var base4_mc:tower15bottom_mc;
public var powerup1_mc:Spreadpower;
public var tower1_mc:tower13top_mc;
public var weapon2_mc:Ballista;
public function gameSection5_mc(){
__setProp_tower2_mc_gameSection5_mc_towertop_1();
__setProp_weapon2_mc_gameSection5_mc_intower_1();
__setProp_weapon1_mc_gameSection5_mc_intower_1();
__setProp_powerup1_mc_gameSection5_mc_intower_1();
__setProp_base1_mc_gameSection5_mc_towers_1();
__setProp_base3_mc_gameSection5_mc_towers_1();
__setProp_tower1_mc_gameSection5_mc_towertop_1();
__setProp_base2_mc_gameSection5_mc_towers_1();
__setProp_base4_mc_gameSection5_mc_towers_1();
__setProp_tower4_mc_gameSection5_mc_towertop_1();
__setProp_tower3_mc_gameSection5_mc_towertop_1();
}
function __setProp_weapon2_mc_gameSection5_mc_intower_1(){
try {
weapon2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon2_mc.HitPoints = 1;
weapon2_mc.Points = 1;
try {
weapon2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower2_mc_gameSection5_mc_towertop_1(){
try {
tower2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower2_mc.Enemies = ["weapon2_mc"];
tower2_mc.HitPoints = 1;
tower2_mc.Points = 0;
tower2_mc.TowerDamage = ["base4_mc"];
try {
tower2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_powerup1_mc_gameSection5_mc_intower_1(){
try {
powerup1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
powerup1_mc.ItemObstacles = ["tower3_mc"];
try {
powerup1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base3_mc_gameSection5_mc_towers_1(){
try {
base3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base3_mc.Enemies = ["tower1_mc"];
base3_mc.HitPoints = 2;
base3_mc.Points = 1;
try {
base3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base1_mc_gameSection5_mc_towers_1(){
try {
base1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base1_mc.Enemies = ["tower4_mc"];
base1_mc.HitPoints = 1;
base1_mc.Points = 0;
try {
base1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower3_mc_gameSection5_mc_towertop_1(){
try {
tower3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower3_mc.HitPoints = 1;
tower3_mc.Points = 0;
tower3_mc.Prisoners = ["powerup1_mc"];
tower3_mc.TowerDamage = ["base2_mc"];
try {
tower3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower4_mc_gameSection5_mc_towertop_1(){
try {
tower4_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower4_mc.HitPoints = 1;
tower4_mc.Points = 0;
tower4_mc.TowerDamage = ["base1_mc"];
try {
tower4_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base2_mc_gameSection5_mc_towers_1(){
try {
base2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base2_mc.Enemies = ["tower3_mc"];
base2_mc.HitPoints = 2;
base2_mc.Points = 1;
try {
base2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon1_mc_gameSection5_mc_intower_1(){
try {
weapon1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon1_mc.HitPoints = 1;
weapon1_mc.Points = 1;
try {
weapon1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower1_mc_gameSection5_mc_towertop_1(){
try {
tower1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower1_mc.Enemies = ["weapon1_mc"];
tower1_mc.HitPoints = 1;
tower1_mc.Points = 0;
tower1_mc.TowerDamage = ["base3_mc"];
try {
tower1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base4_mc_gameSection5_mc_towers_1(){
try {
base4_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base4_mc.Enemies = ["tower2_mc"];
base4_mc.HitPoints = 2;
base4_mc.Points = 1;
try {
base4_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 103
//gameSection6_mc (gameSection6_mc)
package {
import flash.display.*;
import com.mcdonalds.castlebusters.objects.*;
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class gameSection6_mc extends MovieClip {
public var base2_mc:tower13bottom_mc;
public var lifeup_mc:ExtraLife;
public var weapon3_mc:Ballista;
public var tower2_mc:tower15top_mc;
public var weapon1_mc:Cannon;
public var base3_mc:tower15bottom_mc;
public var base1_mc:tower15bottom_mc;
public var tower3_mc:tower15top_mc;
public var tower1_mc:tower13top_mc;
public var weapon2_mc:Ballista;
public function gameSection6_mc(){
__setProp_weapon2_mc_gameSection6_mc_intower_1();
__setProp_weapon3_mc_gameSection6_mc_intower_1();
__setProp_base1_mc_gameSection6_mc_towers_1();
__setProp_lifeup_mc_gameSection6_mc_Layer11_1();
__setProp_weapon1_mc_gameSection6_mc_intower_1();
__setProp_base3_mc_gameSection6_mc_towers_1();
__setProp_tower3_mc_gameSection6_mc_towertop_1();
__setProp_tower2_mc_gameSection6_mc_towertop_1();
__setProp_tower1_mc_gameSection6_mc_towertop_1();
__setProp_base2_mc_gameSection6_mc_towers_1();
}
function __setProp_weapon1_mc_gameSection6_mc_intower_1(){
try {
weapon1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon1_mc.HitPoints = 1;
weapon1_mc.Points = 2;
try {
weapon1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower1_mc_gameSection6_mc_towertop_1(){
try {
tower1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower1_mc.Enemies = ["weapon1_mc"];
tower1_mc.HitPoints = 1;
tower1_mc.Points = 0;
tower1_mc.TowerDamage = ["base2_mc"];
try {
tower1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base2_mc_gameSection6_mc_towers_1(){
try {
base2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base2_mc.Enemies = ["tower1_mc"];
base2_mc.HitPoints = 2;
base2_mc.Points = 1;
base2_mc.Prisoners = ["lifeup_mc"];
try {
base2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower2_mc_gameSection6_mc_towertop_1(){
try {
tower2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower2_mc.Enemies = ["weapon2_mc"];
tower2_mc.HitPoints = 1;
tower2_mc.Points = 0;
tower2_mc.TowerDamage = ["base1_mc"];
try {
tower2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon3_mc_gameSection6_mc_intower_1(){
try {
weapon3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon3_mc.HitPoints = 1;
weapon3_mc.Points = 1;
try {
weapon3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower3_mc_gameSection6_mc_towertop_1(){
try {
tower3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower3_mc.Enemies = ["weapon3_mc"];
tower3_mc.HitPoints = 1;
tower3_mc.Points = 0;
tower3_mc.TowerDamage = ["base3_mc"];
try {
tower3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base1_mc_gameSection6_mc_towers_1(){
try {
base1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base1_mc.Enemies = ["tower2_mc"];
base1_mc.HitPoints = 2;
base1_mc.Points = 1;
try {
base1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base3_mc_gameSection6_mc_towers_1(){
try {
base3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base3_mc.Enemies = ["tower3_mc"];
base3_mc.HitPoints = 2;
base3_mc.Points = 1;
try {
base3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon2_mc_gameSection6_mc_intower_1(){
try {
weapon2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon2_mc.HitPoints = 1;
weapon2_mc.Points = 1;
try {
weapon2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_lifeup_mc_gameSection6_mc_Layer11_1(){
try {
lifeup_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
lifeup_mc.ItemObstacles = ["base2_mc"];
try {
lifeup_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 104
//gameSection7_mc (gameSection7_mc)
package {
import flash.display.*;
import com.mcdonalds.castlebusters.objects.*;
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class gameSection7_mc extends MovieClip {
public var tower4_mc:tower12bottom_mc;
public var base2_mc:tower13bottom_mc;
public var weapon3_mc:Ballista;
public var tower2_mc:tower12top_mc;
public var weapon1_mc:Cannon;
public var base1_mc:tower11bottom_mc;
public var tower3_mc:tower13top_mc;
public var powerup1_mc:Firepower;
public var weapon2_mc:Catapult;
public var tower1_mc:tower11top_mc;
public function gameSection7_mc(){
__setProp_base1_mc_gameSection7_mc_towers_1();
__setProp_powerup1_mc_gameSection7_mc_Layer11_1();
__setProp_weapon2_mc_gameSection7_mc_intower_1();
__setProp_weapon3_mc_gameSection7_mc_intower_1();
__setProp_weapon1_mc_gameSection7_mc_intower_1();
__setProp_tower3_mc_gameSection7_mc_towertop_1();
__setProp_base2_mc_gameSection7_mc_towers_1();
__setProp_tower1_mc_gameSection7_mc_towertop_1();
__setProp_tower2_mc_gameSection7_mc_towertop_1();
__setProp_tower4_mc_gameSection7_mc_towers_1();
}
function __setProp_base1_mc_gameSection7_mc_towers_1(){
try {
base1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base1_mc.Enemies = ["tower1_mc"];
base1_mc.HitPoints = 2;
base1_mc.Points = 1;
try {
base1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_powerup1_mc_gameSection7_mc_Layer11_1(){
try {
powerup1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
powerup1_mc.ItemObstacles = ["tower4_mc"];
try {
powerup1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower1_mc_gameSection7_mc_towertop_1(){
try {
tower1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower1_mc.Enemies = ["weapon1_mc"];
tower1_mc.HitPoints = 1;
tower1_mc.Points = 0;
tower1_mc.TowerDamage = ["base1_mc"];
try {
tower1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon2_mc_gameSection7_mc_intower_1(){
try {
weapon2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon2_mc.HitPoints = 1;
weapon2_mc.Points = 1;
try {
weapon2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower2_mc_gameSection7_mc_towertop_1(){
try {
tower2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower2_mc.Enemies = ["weapon2_mc"];
tower2_mc.HitPoints = 1;
tower2_mc.Points = 0;
tower2_mc.TowerDamage = ["tower4_mc"];
try {
tower2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower4_mc_gameSection7_mc_towers_1(){
try {
tower4_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower4_mc.Enemies = ["tower2_mc"];
tower4_mc.HitPoints = 2;
tower4_mc.Points = 1;
tower4_mc.Prisoners = ["powerup1_mc"];
try {
tower4_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base2_mc_gameSection7_mc_towers_1(){
try {
base2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base2_mc.Enemies = ["tower3_mc"];
base2_mc.HitPoints = 2;
base2_mc.Points = 1;
try {
base2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon1_mc_gameSection7_mc_intower_1(){
try {
weapon1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon1_mc.HitPoints = 1;
weapon1_mc.Points = 1;
try {
weapon1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower3_mc_gameSection7_mc_towertop_1(){
try {
tower3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower3_mc.Enemies = ["weapon3_mc"];
tower3_mc.HitPoints = 1;
tower3_mc.Points = 0;
tower3_mc.TowerDamage = ["base2_mc"];
try {
tower3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon3_mc_gameSection7_mc_intower_1(){
try {
weapon3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon3_mc.HitPoints = 1;
weapon3_mc.Points = 1;
try {
weapon3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 105
//gameSection8_mc (gameSection8_mc)
package {
import flash.display.*;
import com.mcdonalds.castlebusters.objects.*;
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class gameSection8_mc extends MovieClip {
public var tower4_mc:tower4top_mc;
public var powerup2_mc:CoinChest;
public var base2_mc:tower11bottom_mc;
public var weapon3_mc:Ballista;
public var tower2_mc:tower11top_mc;
public var tower5_mc:tower4bottom_mc;
public var weapon1_mc:Catapult;
public var base1_mc:tower11bottom_mc;
public var tower3_mc:tower11top_mc;
public var weapon2_mc:Catapult;
public function gameSection8_mc(){
__setProp_weapon1_mc_gameSection8_mc_intower_1();
__setProp_weapon2_mc_gameSection8_mc_intower_1();
__setProp_weapon3_mc_gameSection8_mc_intower_1();
__setProp_tower4_mc_gameSection8_mc_towertop_1();
__setProp_tower2_mc_gameSection8_mc_towertop_1();
__setProp_base1_mc_gameSection8_mc_towers_1();
__setProp_tower3_mc_gameSection8_mc_towertop_1();
__setProp_base2_mc_gameSection8_mc_towers_1();
__setProp_powerup2_mc_gameSection8_mc_Layer11_1();
__setProp_tower5_mc_gameSection8_mc_towers_1();
}
function __setProp_base2_mc_gameSection8_mc_towers_1(){
try {
base2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base2_mc.Enemies = ["tower3_mc"];
base2_mc.HitPoints = 2;
base2_mc.Points = 1;
try {
base2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower4_mc_gameSection8_mc_towertop_1(){
try {
tower4_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower4_mc.Enemies = ["weapon3_mc"];
tower4_mc.HitPoints = 2;
tower4_mc.Points = 0;
tower4_mc.TowerDamage = ["tower5_mc"];
try {
tower4_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_powerup2_mc_gameSection8_mc_Layer11_1(){
try {
powerup2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
powerup2_mc.ItemObstacles = ["tower5_mc"];
try {
powerup2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon1_mc_gameSection8_mc_intower_1(){
try {
weapon1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon1_mc.HitPoints = 1;
weapon1_mc.Points = 1;
try {
weapon1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower3_mc_gameSection8_mc_towertop_1(){
try {
tower3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower3_mc.Enemies = ["weapon2_mc"];
tower3_mc.HitPoints = 1;
tower3_mc.Points = 0;
tower3_mc.TowerDamage = ["base2_mc"];
try {
tower3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon3_mc_gameSection8_mc_intower_1(){
try {
weapon3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon3_mc.HitPoints = 1;
weapon3_mc.Points = 1;
try {
weapon3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base1_mc_gameSection8_mc_towers_1(){
try {
base1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base1_mc.Enemies = ["tower2_mc"];
base1_mc.HitPoints = 2;
base1_mc.Points = 1;
try {
base1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower5_mc_gameSection8_mc_towers_1(){
try {
tower5_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower5_mc.Enemies = ["tower4_mc"];
tower5_mc.HitPoints = 2;
tower5_mc.Points = 2;
tower5_mc.Prisoners = ["powerup2_mc"];
try {
tower5_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower2_mc_gameSection8_mc_towertop_1(){
try {
tower2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower2_mc.Enemies = ["weapon1_mc"];
tower2_mc.HitPoints = 1;
tower2_mc.Points = 0;
tower2_mc.TowerDamage = ["base1_mc"];
try {
tower2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon2_mc_gameSection8_mc_intower_1(){
try {
weapon2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon2_mc.HitPoints = 1;
weapon2_mc.Points = 1;
try {
weapon2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 106
//gameSection9_mc (gameSection9_mc)
package {
import flash.display.*;
import com.mcdonalds.castlebusters.objects.*;
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class gameSection9_mc extends MovieClip {
public var tower4_mc:tower6bottom_mc;
public var base2_mc:tower11bottom_mc;
public var tower2_mc:tower6top_mc;
public var weapon1_mc:Cannon;
public var base1_mc:tower11bottom_mc;
public var tower3_mc:tower11top_mc;
public var powerup1_mc:Shield;
public var weapon2_mc:Cannon;
public var tower1_mc:tower11top_mc;
public function gameSection9_mc(){
__setProp_base1_mc_gameSection9_mc_towers_1();
__setProp_powerup1_mc_gameSection9_mc_Layer11_1();
__setProp_weapon1_mc_gameSection9_mc_intower_1();
__setProp_weapon2_mc_gameSection9_mc_intower_1();
__setProp_tower3_mc_gameSection9_mc_towertop_1();
__setProp_tower2_mc_gameSection9_mc_towertop_1();
__setProp_base2_mc_gameSection9_mc_towers_1();
__setProp_tower4_mc_gameSection9_mc_towers_1();
__setProp_tower1_mc_gameSection9_mc_towertop_1();
}
function __setProp_base1_mc_gameSection9_mc_towers_1(){
try {
base1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base1_mc.Enemies = ["tower1_mc"];
base1_mc.HitPoints = 2;
base1_mc.Points = 1;
try {
base1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower3_mc_gameSection9_mc_towertop_1(){
try {
tower3_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower3_mc.Enemies = ["weapon2_mc"];
tower3_mc.HitPoints = 1;
tower3_mc.Points = 0;
tower3_mc.TowerDamage = ["base2_mc"];
try {
tower3_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_powerup1_mc_gameSection9_mc_Layer11_1(){
try {
powerup1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
powerup1_mc.ItemObstacles = ["tower4_mc"];
try {
powerup1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower2_mc_gameSection9_mc_towertop_1(){
try {
tower2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower2_mc.HitPoints = 2;
tower2_mc.Points = 0;
tower2_mc.TowerDamage = ["tower4_mc"];
try {
tower2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_base2_mc_gameSection9_mc_towers_1(){
try {
base2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
base2_mc.Enemies = ["tower3_mc"];
base2_mc.HitPoints = 2;
base2_mc.Points = 1;
try {
base2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon2_mc_gameSection9_mc_intower_1(){
try {
weapon2_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon2_mc.HitPoints = 1;
weapon2_mc.Points = 1;
try {
weapon2_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower4_mc_gameSection9_mc_towers_1(){
try {
tower4_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower4_mc.Enemies = ["tower2_mc"];
tower4_mc.HitPoints = 3;
tower4_mc.Points = 2;
tower4_mc.Prisoners = ["powerup1_mc"];
try {
tower4_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_tower1_mc_gameSection9_mc_towertop_1(){
try {
tower1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
tower1_mc.Enemies = ["weapon1_mc"];
tower1_mc.HitPoints = 1;
tower1_mc.Points = 0;
tower1_mc.TowerDamage = ["base1_mc"];
try {
tower1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_weapon1_mc_gameSection9_mc_intower_1(){
try {
weapon1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
weapon1_mc.HitPoints = 1;
weapon1_mc.Points = 1;
try {
weapon1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 107
//gateSection0_mc (gateSection0_mc)
package {
import flash.display.*;
public dynamic class gateSection0_mc extends MovieClip {
public var __id81_:gatewayBack_mc;
public function gateSection0_mc(){
__setProp___id81__gateSection0_mc_Layer1_1();
}
function __setProp___id81__gateSection0_mc_Layer1_1(){
try {
__id81_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id81_.HitPoints = 99;
__id81_.Points = 0;
try {
__id81_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 108
//gateSection1_mc (gateSection1_mc)
package {
import flash.display.*;
public dynamic class gateSection1_mc extends MovieClip {
public var __id80_:doorWay_mc;
public var __id79_:gatewayBack_mc;
public function gateSection1_mc(){
__setProp___id79__gateSection1_mc_Layer1_1();
__setProp___id80__gateSection1_mc_Layer1_1();
}
function __setProp___id80__gateSection1_mc_Layer1_1(){
try {
__id80_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id80_.HitPoints = 1;
__id80_.Points = 1;
try {
__id80_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id79__gateSection1_mc_Layer1_1(){
try {
__id79_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id79_.HitPoints = 20;
__id79_.Points = 0;
try {
__id79_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 109
//gateSection2_mc (gateSection2_mc)
package {
import flash.display.*;
public dynamic class gateSection2_mc extends MovieClip {
public var __id74_:gatewayBack_mc;
public var gate1_mc:doorWayDelay_mc;
public function gateSection2_mc(){
__setProp___id74__gateSection2_mc_Layer1_1();
__setProp_gate1_mc_gateSection2_mc_Layer1_1();
}
function __setProp___id74__gateSection2_mc_Layer1_1(){
try {
__id74_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id74_.HitPoints = 20;
__id74_.Points = 0;
__id74_.TowerDamage = ["gate1_mc"];
try {
__id74_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_gate1_mc_gateSection2_mc_Layer1_1(){
try {
gate1_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
gate1_mc.HitPoints = 1;
gate1_mc.Points = 1;
try {
gate1_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 110
//gateSection3_mc (gateSection3_mc)
package {
import flash.display.*;
public dynamic class gateSection3_mc extends MovieClip {
public var __id77_:gatewayBack_mc;
public var __id78_:doorWay_mc;
public function gateSection3_mc(){
__setProp___id77__gateSection3_mc_Layer1_1();
__setProp___id78__gateSection3_mc_Layer1_1();
}
function __setProp___id78__gateSection3_mc_Layer1_1(){
try {
__id78_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id78_.HitPoints = 2;
__id78_.Points = 1;
try {
__id78_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id77__gateSection3_mc_Layer1_1(){
try {
__id77_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id77_.HitPoints = 20;
__id77_.Points = 0;
try {
__id77_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 111
//gateSection4_mc (gateSection4_mc)
package {
import flash.display.*;
public dynamic class gateSection4_mc extends MovieClip {
public var __id73_:gatewayBack_mc;
public var gate_mc:doorWayDelay_mc;
public function gateSection4_mc(){
__setProp_gate_mc_gateSection4_mc_Layer1_1();
__setProp___id73__gateSection4_mc_Layer1_1();
}
function __setProp_gate_mc_gateSection4_mc_Layer1_1(){
try {
gate_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
gate_mc.HitPoints = 2;
gate_mc.Points = 1;
try {
gate_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id73__gateSection4_mc_Layer1_1(){
try {
__id73_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id73_.HitPoints = 20;
__id73_.Points = 0;
__id73_.TowerDamage = ["gate_mc"];
try {
__id73_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 112
//gateSection5_mc (gateSection5_mc)
package {
import flash.display.*;
public dynamic class gateSection5_mc extends MovieClip {
public var __id75_:gatewayBack_mc;
public var __id76_:doorWay_mc;
public function gateSection5_mc(){
__setProp___id75__gateSection5_mc_Layer1_1();
__setProp___id76__gateSection5_mc_Layer1_1();
}
function __setProp___id76__gateSection5_mc_Layer1_1(){
try {
__id76_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id76_.HitPoints = 3;
__id76_.Points = 2;
try {
__id76_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id75__gateSection5_mc_Layer1_1(){
try {
__id75_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id75_.HitPoints = 20;
__id75_.Points = 0;
try {
__id75_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 113
//gateSection6_mc (gateSection6_mc)
package {
import flash.display.*;
public dynamic class gateSection6_mc extends MovieClip {
public var __id72_:gatewayBack_mc;
public var gate_mc:doorWayDelay_mc;
public function gateSection6_mc(){
__setProp___id72__gateSection6_mc_Layer1_1();
__setProp_gate_mc_gateSection6_mc_Layer1_1();
}
function __setProp_gate_mc_gateSection6_mc_Layer1_1(){
try {
gate_mc["componentInspectorSetting"] = true;
} catch(e:Error) {
};
gate_mc.HitPoints = 3;
gate_mc.Points = 2;
try {
gate_mc["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id72__gateSection6_mc_Layer1_1(){
try {
__id72_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id72_.HitPoints = 20;
__id72_.Points = 0;
__id72_.TowerDamage = ["gate_mc"];
try {
__id72_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 114
//gatewayBack_mc (gatewayBack_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class gatewayBack_mc extends Architecture {
public function gatewayBack_mc(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 115
//gatewayFront_mc (gatewayFront_mc)
package {
import com.mcdonalds.castlebusters.objects.*;
public dynamic class gatewayFront_mc extends Foreground {
public function gatewayFront_mc(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 116
//Level_Complete (Level_Complete)
package {
import com.fuelindustries.media.*;
public dynamic class Level_Complete extends FuelSound {
}
}//package
Section 117
//Music_GameOver (Music_GameOver)
package {
import com.fuelindustries.media.*;
public dynamic class Music_GameOver extends FuelSound {
}
}//package
Section 118
//Music_Intro (Music_Intro)
package {
import com.fuelindustries.media.*;
public dynamic class Music_Intro extends FuelSound {
}
}//package
Section 119
//Music_Loop (Music_Loop)
package {
import com.fuelindustries.media.*;
public dynamic class Music_Loop extends FuelSound {
}
}//package
Section 120
//pressplay (pressplay)
package {
import com.fuelindustries.media.*;
public dynamic class pressplay extends FuelSound {
}
}//package
Section 121
//rollover (rollover)
package {
import com.fuelindustries.media.*;
public dynamic class rollover extends FuelSound {
}
}//package
Section 122
//Sound_Bell (Sound_Bell)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_Bell extends FuelSound {
}
}//package
Section 123
//Sound_BigCoin (Sound_BigCoin)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_BigCoin extends FuelSound {
}
}//package
Section 124
//Sound_Breath (Sound_Breath)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_Breath extends FuelSound {
}
}//package
Section 125
//Sound_ButtonThump (Sound_ButtonThump)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_ButtonThump extends FuelSound {
}
}//package
Section 126
//Sound_CatapultReload (Sound_CatapultReload)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_CatapultReload extends FuelSound {
}
}//package
Section 127
//Sound_Coin (Sound_Coin)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_Coin extends FuelSound {
}
}//package
Section 128
//Sound_Count (Sound_Count)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_Count extends FuelSound {
}
}//package
Section 129
//Sound_Crystal (Sound_Crystal)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_Crystal extends FuelSound {
}
}//package
Section 130
//Sound_DragonDie (Sound_DragonDie)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_DragonDie extends FuelSound {
}
}//package
Section 131
//Sound_DragonHit (Sound_DragonHit)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_DragonHit extends FuelSound {
}
}//package
Section 132
//Sound_Fireball (Sound_Fireball)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_Fireball extends FuelSound {
}
}//package
Section 133
//Sound_Impact1 (Sound_Impact1)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_Impact1 extends FuelSound {
}
}//package
Section 134
//Sound_Impact2 (Sound_Impact2)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_Impact2 extends FuelSound {
}
}//package
Section 135
//Sound_Impact3 (Sound_Impact3)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_Impact3 extends FuelSound {
}
}//package
Section 136
//Sound_Life (Sound_Life)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_Life extends FuelSound {
}
}//package
Section 137
//Sound_Propeller (Sound_Propeller)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_Propeller extends FuelSound {
}
}//package
Section 138
//Sound_ResultsPopUp (Sound_ResultsPopUp)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_ResultsPopUp extends FuelSound {
}
}//package
Section 139
//Sound_Shield (Sound_Shield)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_Shield extends FuelSound {
}
}//package
Section 140
//Sound_Tower1 (Sound_Tower1)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_Tower1 extends FuelSound {
}
}//package
Section 141
//Sound_Tower2 (Sound_Tower2)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_Tower2 extends FuelSound {
}
}//package
Section 142
//Sound_Tower3 (Sound_Tower3)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_Tower3 extends FuelSound {
}
}//package
Section 143
//Sound_Weapon1 (Sound_Weapon1)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_Weapon1 extends FuelSound {
}
}//package
Section 144
//Sound_Weapon2 (Sound_Weapon2)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_Weapon2 extends FuelSound {
}
}//package
Section 145
//Sound_Weapon3 (Sound_Weapon3)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_Weapon3 extends FuelSound {
}
}//package
Section 146
//Sound_Wind (Sound_Wind)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_Wind extends FuelSound {
}
}//package
Section 147
//Sound_Wingflap (Sound_Wingflap)
package {
import com.fuelindustries.media.*;
public dynamic class Sound_Wingflap extends FuelSound {
}
}//package
Section 148
//tower10bottom_mc (tower10bottom_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower10bottom_mc extends Architecture {
public function tower10bottom_mc(){
addFrameScript(0, frame1, 56, frame57);
}
function frame1(){
stop();
}
function frame57(){
stop();
}
}
}//package
Section 149
//tower10top_mc (tower10top_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower10top_mc extends Architecture {
public function tower10top_mc(){
addFrameScript(0, frame1, 55, frame56);
}
function frame1(){
stop();
}
function frame56(){
stop();
}
}
}//package
Section 150
//tower11bottom_mc (tower11bottom_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower11bottom_mc extends Architecture {
public function tower11bottom_mc(){
addFrameScript(0, frame1, 56, frame57);
}
function frame1(){
stop();
}
function frame57(){
stop();
}
}
}//package
Section 151
//tower11top_mc (tower11top_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower11top_mc extends Architecture {
public function tower11top_mc(){
addFrameScript(0, frame1, 55, frame56);
}
function frame1(){
stop();
}
function frame56(){
stop();
}
}
}//package
Section 152
//tower12bottom_mc (tower12bottom_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower12bottom_mc extends Architecture {
public function tower12bottom_mc(){
addFrameScript(0, frame1, 56, frame57);
}
function frame1(){
stop();
}
function frame57(){
stop();
}
}
}//package
Section 153
//tower12top_mc (tower12top_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower12top_mc extends Architecture {
public function tower12top_mc(){
addFrameScript(0, frame1, 55, frame56);
}
function frame1(){
stop();
}
function frame56(){
stop();
}
}
}//package
Section 154
//tower13bottom_mc (tower13bottom_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower13bottom_mc extends Architecture {
public function tower13bottom_mc(){
addFrameScript(0, frame1, 56, frame57);
}
function frame1(){
stop();
}
function frame57(){
stop();
}
}
}//package
Section 155
//tower13top_mc (tower13top_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower13top_mc extends Architecture {
public function tower13top_mc(){
addFrameScript(0, frame1, 55, frame56);
}
function frame1(){
stop();
}
function frame56(){
stop();
}
}
}//package
Section 156
//tower14bottom_mc (tower14bottom_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower14bottom_mc extends Architecture {
public function tower14bottom_mc(){
addFrameScript(0, frame1, 56, frame57);
}
function frame1(){
stop();
}
function frame57(){
stop();
}
}
}//package
Section 157
//tower14top_mc (tower14top_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower14top_mc extends Architecture {
public function tower14top_mc(){
addFrameScript(0, frame1, 55, frame56);
}
function frame1(){
stop();
}
function frame56(){
stop();
}
}
}//package
Section 158
//tower15bottom_mc (tower15bottom_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower15bottom_mc extends Architecture {
public function tower15bottom_mc(){
addFrameScript(0, frame1, 56, frame57);
}
function frame1(){
stop();
}
function frame57(){
stop();
}
}
}//package
Section 159
//tower15top_mc (tower15top_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower15top_mc extends Architecture {
public function tower15top_mc(){
addFrameScript(0, frame1, 55, frame56);
}
function frame1(){
stop();
}
function frame56(){
stop();
}
}
}//package
Section 160
//tower1bottom_mc (tower1bottom_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower1bottom_mc extends Architecture {
public function tower1bottom_mc(){
addFrameScript(0, frame1, 56, frame57);
}
function frame1(){
stop();
}
function frame57(){
stop();
}
}
}//package
Section 161
//tower1top_mc (tower1top_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower1top_mc extends Architecture {
public function tower1top_mc(){
addFrameScript(0, frame1, 55, frame56);
}
function frame1(){
stop();
}
function frame56(){
stop();
}
}
}//package
Section 162
//tower2bottom_mc (tower2bottom_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower2bottom_mc extends Architecture {
public function tower2bottom_mc(){
addFrameScript(0, frame1, 56, frame57);
}
function frame1(){
stop();
}
function frame57(){
stop();
}
}
}//package
Section 163
//tower2top_mc (tower2top_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower2top_mc extends Architecture {
public function tower2top_mc(){
addFrameScript(0, frame1, 55, frame56);
}
function frame1(){
stop();
}
function frame56(){
stop();
}
}
}//package
Section 164
//tower3bottom_mc (tower3bottom_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower3bottom_mc extends Architecture {
public function tower3bottom_mc(){
addFrameScript(0, frame1, 56, frame57);
}
function frame1(){
stop();
}
function frame57(){
stop();
}
}
}//package
Section 165
//tower3top_mc (tower3top_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower3top_mc extends Architecture {
public function tower3top_mc(){
addFrameScript(0, frame1, 55, frame56);
}
function frame1(){
stop();
}
function frame56(){
stop();
}
}
}//package
Section 166
//tower4bottom_mc (tower4bottom_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower4bottom_mc extends Architecture {
public function tower4bottom_mc(){
addFrameScript(0, frame1, 56, frame57);
}
function frame1(){
stop();
}
function frame57(){
stop();
}
}
}//package
Section 167
//tower4top_mc (tower4top_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower4top_mc extends Architecture {
public function tower4top_mc(){
addFrameScript(0, frame1, 55, frame56);
}
function frame1(){
stop();
}
function frame56(){
stop();
}
}
}//package
Section 168
//tower5bottom_mc (tower5bottom_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower5bottom_mc extends Architecture {
public function tower5bottom_mc(){
addFrameScript(0, frame1, 56, frame57);
}
function frame1(){
stop();
}
function frame57(){
stop();
}
}
}//package
Section 169
//tower5top_mc (tower5top_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower5top_mc extends Architecture {
public function tower5top_mc(){
addFrameScript(0, frame1, 55, frame56);
}
function frame1(){
stop();
}
function frame56(){
stop();
}
}
}//package
Section 170
//tower6bottom_mc (tower6bottom_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower6bottom_mc extends Architecture {
public function tower6bottom_mc(){
addFrameScript(0, frame1, 56, frame57);
}
function frame1(){
stop();
}
function frame57(){
stop();
}
}
}//package
Section 171
//tower6top_mc (tower6top_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower6top_mc extends Architecture {
public function tower6top_mc(){
addFrameScript(0, frame1, 75, frame76);
}
function frame1(){
stop();
}
function frame76(){
stop();
}
}
}//package
Section 172
//tower7bottom_mc (tower7bottom_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower7bottom_mc extends Architecture {
public function tower7bottom_mc(){
addFrameScript(0, frame1, 56, frame57);
}
function frame1(){
stop();
}
function frame57(){
stop();
}
}
}//package
Section 173
//tower7top_mc (tower7top_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower7top_mc extends Architecture {
public function tower7top_mc(){
addFrameScript(0, frame1, 55, frame56);
}
function frame1(){
stop();
}
function frame56(){
stop();
}
}
}//package
Section 174
//tower8bottom_mc (tower8bottom_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower8bottom_mc extends Architecture {
public function tower8bottom_mc(){
addFrameScript(0, frame1, 56, frame57);
}
function frame1(){
stop();
}
function frame57(){
stop();
}
}
}//package
Section 175
//tower8top_mc (tower8top_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower8top_mc extends Architecture {
public function tower8top_mc(){
addFrameScript(0, frame1, 55, frame56);
}
function frame1(){
stop();
}
function frame56(){
stop();
}
}
}//package
Section 176
//tower9bottom_mc (tower9bottom_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower9bottom_mc extends Architecture {
public function tower9bottom_mc(){
addFrameScript(0, frame1, 56, frame57);
}
function frame1(){
stop();
}
function frame57(){
stop();
}
}
}//package
Section 177
//tower9top_mc (tower9top_mc)
package {
import com.mcdonalds.castlebusters.enemies.*;
public dynamic class tower9top_mc extends Architecture {
public function tower9top_mc(){
addFrameScript(0, frame1, 55, frame56);
}
function frame1(){
stop();
}
function frame56(){
stop();
}
}
}//package
Section 178
//towerLevel_mc (towerLevel_mc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class towerLevel_mc extends MovieClip {
public var levelNumber_txt:TextField;
}
}//package