Section 1
//MochiAd (mochi.MochiAd)
package mochi {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
public class MochiAd {
public static function getVersion():String{
return ("2.7");
}
public static function showClickAwayAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_timeout:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var sendHostProgress:Boolean;
var options = _arg1;
DEFAULTS = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{
}, ad_finished:function ():void{
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
sendHostProgress = false;
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Number;
var _local3:Boolean;
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
return;
};
_local1 = this.parent._mochiad_ctr;
_local2 = (getTimer() - this.started);
_local3 = false;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
_local3 = true;
chk.started = getTimer();
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (this.root == null){
_local3 = true;
};
if (_local3){
delete this.onEnterFrame;
};
};
doOnEnterFrame(chk);
}
public static function _isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function _allowDomains(_arg1:String):String{
var _local2:String;
_local2 = _arg1.split("/")[2].split(":")[0];
Security.allowDomain("*");
Security.allowDomain(_local2);
Security.allowInsecureDomain("*");
Security.allowInsecureDomain(_local2);
return (_local2);
}
public static function unload(_arg1:Object):Boolean{
if (((_arg1.clip) && (_arg1.clip._mochiad))){
_arg1 = _arg1.clip;
};
if (_arg1.origFrameRate != undefined){
_arg1.stage.frameRate = _arg1.origFrameRate;
};
if (!_arg1._mochiad){
return (false);
};
if (_arg1._mochiad._containerLCName != undefined){
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"});
};
if (_arg1._mochiad.onUnload){
_arg1._mochiad.onUnload();
};
delete _arg1._mochiad_loaded;
delete _arg1._mochiad;
return (true);
}
public static function showInterLevelAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var options = _arg1;
DEFAULTS = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
_local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object;
_local2 = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = (_arg1 - 250);
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Number;
var _local3:Boolean;
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
_local1 = this.parent._mochiad_ctr;
_local2 = (getTimer() - this.started);
_local3 = false;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (_local2 > chk.ad_msec){
_local3 = true;
};
if (_local3){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function _parseOptions(_arg1:Object, _arg2:Object):Object{
var _local3:Object;
var _local4:String;
var _local5:Array;
var _local6:Number;
var _local7:Array;
_local3 = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
if (_arg1){
for (_local4 in _arg1) {
_local3[_local4] = _arg1[_local4];
};
};
if (_local3.clip == undefined){
throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite."));
};
_arg1 = _local3.clip.loaderInfo.parameters.mochiad_options;
if (_arg1){
_local5 = _arg1.split("&");
_local6 = 0;
while (_local6 < _local5.length) {
_local7 = _local5[_local6].split("=");
_local3[unescape(_local7[0])] = unescape(_local7[1]);
_local6++;
};
};
if (_local3.id == "test"){
};
return (_local3);
}
public static function _cleanup(_arg1:Object):void{
var idx:Number;
var k:String;
var lc:LocalConnection;
var f:Function;
var mc = _arg1;
if (("lc" in mc)){
lc = mc.lc;
f = function ():void{
try {
lc.client = null;
lc.close();
} catch(e:Error) {
};
};
setTimeout(f, 0);
};
idx = DisplayObjectContainer(mc).numChildren;
while (idx > 0) {
idx = (idx - 1);
DisplayObjectContainer(mc).removeChildAt(idx);
};
for (k in mc) {
delete mc[k];
};
}
public static function load(_arg1:Object):MovieClip{
var DEFAULTS:Object;
var clip:Object;
var depth:Number;
var mc:MovieClip;
var wh:Array;
var lv:URLVariables;
var k:String;
var server:String;
var hostname:String;
var lc:LocalConnection;
var name:String;
var loader:Loader;
var g:Function;
var req:URLRequest;
var v:Object;
var options = _arg1;
DEFAULTS = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = MochiAd._parseOptions(options, DEFAULTS);
options.swfv = 9;
options.mav = MochiAd.getVersion();
clip = options.clip;
if (!MochiAd._isNetworkAvailable()){
return (null);
};
try {
if (clip._mochiad_loaded){
return (null);
};
} catch(e:Error) {
throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
depth = options.depth;
delete options.depth;
mc = createEmptyMovieClip(clip, "_mochiad", depth);
wh = MochiAd._getRes(options, clip);
options.res = ((wh[0] + "x") + wh[1]);
options.server = (options.server + options.id);
delete options.id;
clip._mochiad_loaded = true;
if (clip.loaderInfo.loaderURL.indexOf("http") == 0){
options.as3_swf = clip.loaderInfo.loaderURL;
};
lv = new URLVariables();
for (k in options) {
v = options[k];
if (!(v is Function)){
lv[k] = v;
};
};
server = lv.server;
delete lv.server;
hostname = _allowDomains(server);
lc = new LocalConnection();
lc.client = mc;
name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_");
lc.allowDomain("*", "localhost");
lc.allowInsecureDomain("*", "localhost");
lc.connect(name);
mc.lc = lc;
mc.lcName = name;
lv.lc = name;
lv.st = getTimer();
loader = new Loader();
g = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
MochiAd.unload(clip);
};
loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g);
req = new URLRequest(((server + ".swf?cacheBust=") + new Date().getTime()));
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader.load(req);
mc.addChild(loader);
mc._mochiad_ctr = loader;
return (mc);
}
public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{
var _local4:Array;
var _local5:Number;
_local4 = _arg2.split(".");
_local5 = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
if (typeof(_arg1[_local4[_local5]]) == "function"){
return (_arg1[_local4[_local5]].apply(_arg1, _arg3));
};
return (undefined);
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{
var _local4:MovieClip;
_local4 = new MovieClip();
if (((false) && (_arg3))){
_arg1.addChildAt(_local4, _arg3);
} else {
_arg1.addChild(_local4);
};
_arg1[_arg2] = _local4;
_local4["_name"] = _arg2;
return (_local4);
}
public static function _getRes(_arg1:Object, _arg2:Object):Array{
var _local3:Object;
var _local4:Number;
var _local5:Number;
var _local6:Array;
_local3 = _arg2.getBounds(_arg2.root);
_local4 = 0;
_local5 = 0;
if (typeof(_arg1.res) != "undefined"){
_local6 = _arg1.res.split("x");
_local4 = parseFloat(_local6[0]);
_local5 = parseFloat(_local6[1]);
} else {
_local4 = (_local3.xMax - _local3.xMin);
_local5 = (_local3.yMax - _local3.yMin);
};
if ((((_local4 == 0)) || ((_local5 == 0)))){
_local4 = _arg2.stage.stageWidth;
_local5 = _arg2.stage.stageHeight;
};
return ([_local4, _local5]);
}
public static function adShowing(_arg1:Object):void{
_arg1.origFrameRate = _arg1.stage.frameRate;
_arg1.stage.frameRate = 30;
}
public static function getValue(_arg1:Object, _arg2:String):Object{
var _local3:Array;
var _local4:Number;
_local3 = _arg2.split(".");
_local4 = 0;
while (_local4 < (_local3.length - 1)) {
if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local3[_local4]];
_local4++;
};
return (_arg1[_local3[_local4]]);
}
public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{
var _local4:Object;
var _local5:Object;
switch (_arg3.id){
case "setValue":
MochiAd.setValue(_arg1, _arg3.objectName, _arg3.value);
break;
case "getValue":
_local4 = MochiAd.getValue(_arg1, _arg3.objectName);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4);
break;
case "runMethod":
_local5 = MochiAd.runMethod(_arg1, _arg3.method, _arg3.args);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5);
break;
};
}
public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Array;
var _local5:Number;
_local4 = _arg2.split(".");
_local5 = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return;
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
_arg1[_local4[_local5]] = _arg3;
}
public static function showPreGameAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var bar:MovieClip;
var bar_color:Number;
var bar_background:Number;
var bar_outline:Number;
var backing_mc:MovieClip;
var backing:Object;
var inside_mc:MovieClip;
var inside:Object;
var outline_mc:MovieClip;
var outline:Object;
var complete:Boolean;
var unloaded:Boolean;
var f:Function;
var sendHostProgress:Boolean;
var fn:Function;
var r:MovieClip;
var options = _arg1;
DEFAULTS = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
}, ad_skipped:function ():void{
}, ad_progress:function (_arg1:Number):void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){
options.ad_started();
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
return;
};
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
var fn:Function;
MochiAd._cleanup(mc);
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.x = (w * -0.5);
chk.y = (h * -0.5);
bar = createEmptyMovieClip(chk, "_mochiad_bar", 4);
if (options.no_progress_bar){
bar.visible = false;
delete options.no_progress_bar;
} else {
bar.x = 10;
bar.y = (h - 20);
};
bar_color = options.color;
delete options.color;
bar_background = options.background;
delete options.background;
bar_outline = options.outline;
delete options.outline;
backing_mc = createEmptyMovieClip(bar, "_outline", 1);
backing = backing_mc.graphics;
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo((w - 20), 0);
backing.lineTo((w - 20), 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
inside_mc = createEmptyMovieClip(bar, "_inside", 2);
inside = inside_mc.graphics;
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo((w - 20), 0);
inside.lineTo((w - 20), 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside_mc.scaleX = 0;
outline_mc = createEmptyMovieClip(bar, "_outline", 3);
outline = outline_mc.graphics;
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo((w - 20), 0);
outline.lineTo((w - 20), 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number;
_local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
complete = false;
unloaded = false;
f = function (_arg1:Event):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
complete = true;
if (unloaded){
MochiAd.unload(clip);
};
};
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
if ((clip.root is MovieClip)){
r = (clip.root as MovieClip);
if (r.framesLoaded >= r.totalFrames){
complete = true;
};
};
mc.unloadAd = function ():void{
unloaded = true;
if (complete){
MochiAd.unload(clip);
};
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object;
_local2 = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = _arg1;
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
mc.rpcTestFn = function (_arg1:String):Object{
return (_arg1);
};
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
sendHostProgress = false;
mc.sendHostLoadProgress = function (_arg1:String):void{
sendHostProgress = true;
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Object;
var _local3:Number;
var _local4:Boolean;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Object;
var _local10:Number;
var _local11:Number;
if (((!(this.parent)) || (!(this.parent.parent)))){
delete this["onEnterFrame"];
return;
};
_local1 = this.parent.parent.root;
_local2 = this.parent._mochiad_ctr;
_local3 = (getTimer() - this.started);
_local4 = false;
_local5 = _local1.loaderInfo.bytesTotal;
_local6 = _local1.loaderInfo.bytesLoaded;
if (complete){
_local6 = Math.max(1, _local6);
_local5 = _local6;
};
_local7 = ((100 * _local6) / _local5);
_local8 = ((100 * _local3) / chk.ad_msec);
_local9 = this._mochiad_bar._inside;
_local10 = Math.min(100, Math.min(((_local7) || (0)), _local8));
_local10 = Math.max(this.last_pcnt, _local10);
this.last_pcnt = _local10;
_local9.scaleX = (_local10 * 0.01);
options.ad_progress(_local10);
if (sendHostProgress){
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local7});
if (_local7 == 100){
sendHostProgress = false;
};
};
if (!chk.showing){
_local11 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local11 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if ((((_local3 > chk.ad_timeout)) && ((_local7 == 100)))){
options.ad_failed();
_local4 = true;
};
};
};
if (_local3 > chk.ad_msec){
_local4 = true;
};
if (((complete) && (_local4))){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function showPreloaderAd(_arg1:Object):void{
MochiAd.showPreGameAd(_arg1);
}
public static function showTimedAd(_arg1:Object):void{
MochiAd.showInterLevelAd(_arg1);
}
public static function doOnEnterFrame(_arg1:MovieClip):void{
var f:Function;
var mc = _arg1;
f = function (_arg1:Object):void{
if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){
mc.onEnterFrame();
} else {
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
};
mc.addEventListener(Event.ENTER_FRAME, f);
}
}
}//package mochi
Section 2
//MochiBot (mochi.MochiBot)
package mochi {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package mochi
Section 3
//MochiDigits (mochi.MochiDigits)
package mochi {
public final class MochiDigits {
private var Sibling:MochiDigits;
private var Fragment:Number;
private var Encoder:Number;
public function MochiDigits(_arg1:Number=0, _arg2:uint=0):void{
Encoder = 0;
setValue(_arg1, _arg2);
}
public function set value(_arg1:Number):void{
setValue(_arg1);
}
public function reencode():void{
var _local1:uint;
_local1 = int((2147483647 * Math.random()));
Fragment = (Fragment ^ (_local1 ^ Encoder));
Encoder = _local1;
}
public function toString():String{
var _local1:String;
_local1 = String.fromCharCode((Fragment ^ Encoder));
if (Sibling != null){
_local1 = (_local1 + Sibling.toString());
};
return (_local1);
}
public function get value():Number{
return (Number(this.toString()));
}
public function setValue(_arg1:Number=0, _arg2:uint=0):void{
var _local3:String;
_local3 = _arg1.toString();
var _temp1 = _arg2;
_arg2 = (_arg2 + 1);
Fragment = (_local3.charCodeAt(_temp1) ^ Encoder);
if (_arg2 < _local3.length){
Sibling = new MochiDigits(_arg1, _arg2);
} else {
Sibling = null;
};
reencode();
}
public function addValue(_arg1:Number):void{
value = (value + _arg1);
}
}
}//package mochi
Section 4
//MochiScores (mochi.MochiScores)
package mochi {
import flash.display.*;
import flash.text.*;
public class MochiScores {
private static var boardID:String;
public static var onErrorHandler:Object;
public static var onCloseHandler:Object;
public static function showLeaderboard(_arg1:Object=null):void{
var n:Number;
var options = _arg1;
if (options != null){
if (options.clip != null){
if ((options.clip is Sprite)){
MochiServices.setContainer(options.clip);
};
delete options.clip;
} else {
MochiServices.setContainer();
};
MochiServices.stayOnTop();
if (options.name != null){
if ((options.name is TextField)){
if (options.name.text.length > 0){
options.name = options.name.text;
};
};
};
if (options.score != null){
if ((options.score is TextField)){
if (options.score.text.length > 0){
options.score = options.score.text;
};
} else {
if ((options.score is MochiDigits)){
options.score = options.score.value;
};
};
n = Number(options.score);
if (isNaN(n)){
} else {
if ((((n == Number.NEGATIVE_INFINITY)) || ((n == Number.POSITIVE_INFINITY)))){
} else {
if (Math.floor(n) != n){
};
options.score = n;
};
};
};
if (options.onDisplay != null){
options.onDisplay();
} else {
if (MochiServices.clip != null){
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
//unresolved jump
};
};
};
} else {
options = {};
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
//unresolved jump
};
};
if (options.onClose != null){
onCloseHandler = options.onClose;
} else {
onCloseHandler = function ():void{
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.play();
//unresolved jump
};
};
};
if (options.onError != null){
onErrorHandler = options.onError;
} else {
onErrorHandler = null;
};
if (options.boardID == null){
if (MochiScores.boardID != null){
options.boardID = MochiScores.boardID;
};
};
MochiServices.send("scores_showLeaderboard", {options:options}, null, onClose);
}
public static function closeLeaderboard():void{
MochiServices.send("scores_closeLeaderboard");
}
public static function getPlayerInfo(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_getPlayerInfo", null, _arg1, _arg2);
}
public static function requestList(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_requestList", null, _arg1, _arg2);
}
public static function scoresArrayToObjects(_arg1:Object):Object{
var _local2:Object;
var _local3:Number;
var _local4:Number;
var _local5:Object;
var _local6:Object;
var _local7:String;
var _local8:String;
_local2 = {};
for (_local7 in _arg1) {
if (typeof(_arg1[_local7]) == "object"){
if (((!((_arg1[_local7].cols == null))) && (!((_arg1[_local7].rows == null))))){
_local2[_local7] = [];
_local5 = _arg1[_local7];
_local4 = 0;
while (_local4 < _local5.rows.length) {
_local6 = {};
_local3 = 0;
while (_local3 < _local5.cols.length) {
_local6[_local5.cols[_local3]] = _local5.rows[_local4][_local3];
_local3++;
};
_local2[_local7].push(_local6);
_local4++;
};
} else {
_local2[_local7] = {};
for (_local8 in _arg1[_local7]) {
_local2[_local7][_local8] = _arg1[_local7][_local8];
};
};
} else {
_local2[_local7] = _arg1[_local7];
};
};
return (_local2);
}
public static function submit(_arg1:Number, _arg2:String, _arg3:Object=null, _arg4:Object=null):void{
_arg1 = Number(_arg1);
if (isNaN(_arg1)){
} else {
if ((((_arg1 == Number.NEGATIVE_INFINITY)) || ((_arg1 == Number.POSITIVE_INFINITY)))){
} else {
if (Math.floor(_arg1) != _arg1){
};
_arg1 = Number(_arg1);
};
};
MochiServices.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4);
}
public static function onClose(_arg1:Object=null):void{
if (_arg1 != null){
if (_arg1.error != null){
if (_arg1.error == true){
if (onErrorHandler != null){
if (_arg1.errorCode == null){
_arg1.errorCode = "IOError";
};
onErrorHandler(_arg1.errorCode);
MochiServices.doClose();
return;
};
};
};
};
onCloseHandler();
MochiServices.doClose();
}
public static function setBoardID(_arg1:String):void{
MochiScores.boardID = _arg1;
MochiServices.send("scores_setBoardID", {boardID:_arg1});
}
}
}//package mochi
Section 5
//MochiServices (mochi.MochiServices)
package mochi {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.geom.*;
public class MochiServices {
private static var _container:Object;
private static var _connected:Boolean = false;
private static var _swfVersion:String;
public static var netupAttempted:Boolean = false;
private static var _sendChannel:LocalConnection;
private static var _clip:MovieClip;
private static var _loader:Loader;
private static var _id:String;
private static var _listenChannel:LocalConnection;
private static var _timer:Timer;
private static var _sendChannelName:String;
private static var _startTime:Number;
private static var _connecting:Boolean = false;
public static var onError:Object;
private static var _listenChannelName:String = "__ms_";
private static var _servicesURL:String = "http://www.mochiads.com/static/lib/services/services.swf";
public static var netup:Boolean = true;
public static function isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{
if (_connected){
_sendChannel.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID});
} else {
if ((((_clip == null)) || (!(_connecting)))){
onError("NotConnected");
handleError(_arg2, _arg3, _arg4);
flush(true);
return;
};
_clip._queue.push({methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID});
};
if (_clip != null){
if (((!((_clip._callbacks == null))) && (!((_clip._nextcallbackID == null))))){
_clip._callbacks[_clip._nextcallbackID] = {callbackObject:_arg3, callbackMethod:_arg4};
_clip._nextcallbackID++;
};
};
}
public static function get connected():Boolean{
return (_connected);
}
private static function flush(_arg1:Boolean):void{
var _local2:Object;
var _local3:Object;
if (_clip != null){
if (_clip._queue != null){
while (_clip._queue.length > 0) {
_local2 = _clip._queue.shift();
_local3 = null;
if (_local2 != null){
if (_local2.callbackID != null){
_local3 = _clip._callbacks[_local2.callbackID];
};
delete _clip._callbacks[_local2.callbackID];
if (((_arg1) && (!((_local3 == null))))){
handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod);
};
};
};
};
};
}
private static function clickMovie(_arg1:String, _arg2:Function):MovieClip{
var _local3:Array;
var _local4:int;
var _local5:Array;
var _local6:Array;
var _local7:MovieClip;
var _local8:LocalConnection;
var _local9:String;
var _local10:ByteArray;
var _local11:ByteArray;
var _local12:uint;
var _local13:uint;
var _local14:Loader;
_local3 = [150, 21, 0, 7, 1, 0, 0, 0, 0, 98, 116, 110, 0, 7, 2, 0, 0, 0, 0, 116, 104, 105, 115, 0, 28, 150, 22, 0, 0, 99, 114, 101, 97, 116, 101, 69, 109, 112, 116, 121, 77, 111, 118, 105, 101, 67, 108, 105, 112, 0, 82, 135, 1, 0, 0, 23, 150, 13, 0, 4, 0, 0, 111, 110, 82, 101, 108, 101, 97, 115, 101, 0, 142, 8, 0, 0, 0, 0, 2, 42, 0, 114, 0, 150, 17, 0, 0, 32, 0, 7, 1, 0, 0, 0, 8, 0, 0, 115, 112, 108, 105, 116, 0, 82, 135, 1, 0, 1, 23, 150, 7, 0, 4, 1, 7, 0, 0, 0, 0, 78, 150, 8, 0, 0, 95, 98, 108, 97, 110, 107, 0, 154, 1, 0, 0, 150, 7, 0, 0, 99, 108, 105, 99, 107, 0, 150, 7, 0, 4, 1, 7, 1, 0, 0, 0, 78, 150, 27, 0, 7, 2, 0, 0, 0, 7, 0, 0, 0, 0, 0, 76, 111, 99, 97, 108, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 0, 64, 150, 6, 0, 0, 115, 101, 110, 100, 0, 82, 79, 150, 15, 0, 4, 0, 0, 95, 97, 108, 112, 104, 97, 0, 7, 0, 0, 0, 0, 79, 150, 23, 0, 7, 0xFF, 0, 0xFF, 0, 7, 1, 0, 0, 0, 4, 0, 0, 98, 101, 103, 105, 110, 70, 105, 108, 108, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 109, 111, 118, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 16, 0, 7, 0, 0, 0, 0, 4, 0, 0, 101, 110, 100, 70, 105, 108, 108, 0, 82, 23];
_local5 = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3];
_local6 = [0, 64, 0, 0, 0];
_local7 = new MovieClip();
_local8 = new LocalConnection();
_local9 = ((("_click_" + Math.floor((Math.random() * 999999))) + "_") + Math.floor(new Date().getTime()));
_local8 = new LocalConnection();
_local7.lc = _local8;
_local7.click = _arg2;
_local8.client = _local7;
_local8.connect(_local9);
_local10 = new ByteArray();
_local11 = new ByteArray();
_local11.endian = Endian.LITTLE_ENDIAN;
_local11.writeShort(1);
_local11.writeUTFBytes(((_arg1 + " ") + _local9));
_local11.writeByte(0);
_local12 = ((_local3.length + _local11.length) + 4);
_local13 = (_local12 + 35);
_local10.endian = Endian.LITTLE_ENDIAN;
_local10.writeUTFBytes("FWS");
_local10.writeByte(8);
_local10.writeUnsignedInt(_local13);
for each (_local4 in _local5) {
_local10.writeByte(_local4);
};
_local10.writeUnsignedInt(_local12);
_local10.writeByte(136);
_local10.writeShort(_local11.length);
_local10.writeBytes(_local11);
for each (_local4 in _local3) {
_local10.writeByte(_local4);
};
for each (_local4 in _local6) {
_local10.writeByte(_local4);
};
_local14 = new Loader();
_local14.loadBytes(_local10);
_local7.addChild(_local14);
return (_local7);
}
private static function init(_arg1:String, _arg2:Object):void{
_id = _arg1;
if (_arg2 != null){
_container = _arg2;
loadCommunicator(_arg1, _container);
};
}
public static function get childClip():Object{
return (_clip);
}
public static function stayOnTop():void{
_container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true);
if (_clip != null){
_clip.visible = true;
};
}
public static function addLinkEvent(_arg1:String, _arg2:String, _arg3:DisplayObjectContainer, _arg4:Function=null):void{
var vars:Object;
var avm1Click:DisplayObject;
var s:String;
var i:Number;
var x:String;
var req:URLRequest;
var loader:Loader;
var setURL:Function;
var err:Function;
var complete:Function;
var url = _arg1;
var burl = _arg2;
var btn = _arg3;
var onClick = _arg4;
vars = new Object();
vars["mav"] = getVersion();
vars["swfv"] = "9";
vars["swfurl"] = btn.loaderInfo.loaderURL;
vars["fv"] = Capabilities.version;
vars["os"] = Capabilities.os;
vars["lang"] = Capabilities.language;
vars["scres"] = ((Capabilities.screenResolutionX + "x") + Capabilities.screenResolutionY);
s = "?";
i = 0;
for (x in vars) {
if (i != 0){
s = (s + "&");
};
i = (i + 1);
s = (((s + x) + "=") + escape(vars[x]));
};
req = new URLRequest("http://x.mochiads.com/linkping.swf");
loader = new Loader();
setURL = function (_arg1:String):void{
var _local2:Rectangle;
if (avm1Click){
btn.removeChild(avm1Click);
};
avm1Click = clickMovie(_arg1, onClick);
_local2 = btn.getBounds(btn);
btn.addChild(avm1Click);
avm1Click.x = _local2.x;
avm1Click.y = _local2.y;
avm1Click.scaleX = (0.01 * _local2.width);
avm1Click.scaleY = (0.01 * _local2.height);
};
err = function (_arg1:Object):void{
netup = false;
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
setURL(burl);
};
complete = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
if (netup){
setURL((url + s));
} else {
setURL(burl);
};
if (!((netupAttempted) || (_connected))){
netupAttempted = true;
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, err);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.load(req);
};
}
public static function disconnect():void{
if (((_connected) || (_connecting))){
if (_clip != null){
if (_clip.parent != null){
if ((_clip.parent is Sprite)){
Sprite(_clip.parent).removeChild(_clip);
_clip = null;
};
};
};
_connecting = (_connected = false);
flush(true);
try {
_listenChannel.close();
} catch(error:Error) {
};
};
if (_timer != null){
try {
_timer.stop();
} catch(error:Error) {
};
};
}
public static function allowDomains(_arg1:String):String{
var _local2:String;
if (Security.sandboxType != "application"){
Security.allowDomain("*");
Security.allowInsecureDomain("*");
};
if (_arg1.indexOf("http://") != -1){
_local2 = _arg1.split("/")[2].split(":")[0];
if (Security.sandboxType != "application"){
Security.allowDomain("*");
Security.allowInsecureDomain("*");
};
};
return (_local2);
}
public static function getVersion():String{
return ("1.43");
}
public static function doClose():void{
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
if (_clip.parent != null){
Sprite(_clip.parent).removeChild(_clip);
};
}
private static function onStatus(_arg1:StatusEvent):void{
switch (_arg1.level){
case "error":
_connected = false;
_listenChannel.connect(_listenChannelName);
break;
};
}
public static function get id():String{
return (_id);
}
private static function urlOptions(_arg1:Object):Object{
var _local2:Object;
var _local3:String;
var _local4:Array;
var _local5:Number;
var _local6:Array;
_local2 = {};
_local3 = _arg1.loaderInfo.parameters.mochiad_options;
if (_local3){
_local4 = _local3.split("&");
_local5 = 0;
while (_local5 < _local4.length) {
_local6 = _local4[_local5].split("=");
_local2[unescape(_local6[0])] = unescape(_local6[1]);
_local5++;
};
};
return (_local2);
}
public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{
if (_arg1 != null){
if ((_arg1 is Sprite)){
_container = _arg1;
};
};
if (_arg2){
if ((_container is Sprite)){
Sprite(_container).addChild(_clip);
};
};
}
private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{
var args = _arg1;
var callbackObject = _arg2;
var callbackMethod = _arg3;
if (args != null){
if (args.onError != null){
args.onError.apply(null, ["NotConnected"]);
};
if (((!((args.options == null))) && (!((args.options.onError == null))))){
args.options.onError.apply(null, ["NotConnected"]);
};
};
if (callbackMethod != null){
args = {};
args.error = true;
args.errorCode = "NotConnected";
if (((!((callbackObject == null))) && ((callbackMethod is String)))){
try {
var _local5 = callbackObject;
_local5[callbackMethod](args);
} catch(error:Error) {
};
} else {
if (callbackMethod != null){
try {
callbackMethod.apply(args);
} catch(error:Error) {
};
};
};
};
}
private static function initComChannels():void{
if (!_connected){
_sendChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus);
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_container, version:getVersion(), parentURL:_container.loaderInfo.loaderURL});
_listenChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus);
_clip.onReceive = function (_arg1:Object):void{
var cb:String;
var cblst:Object;
var method:*;
var methodName:String;
var obj:Object;
var pkg = _arg1;
cb = pkg.callbackID;
cblst = this.client._callbacks[cb];
if (!cblst){
return;
};
method = cblst.callbackMethod;
methodName = "";
obj = cblst.callbackObject;
if (((obj) && ((typeof(method) == "string")))){
methodName = method;
if (obj[method] != null){
method = obj[method];
//unresolved jump
};
};
if (method != undefined){
try {
method.apply(obj, pkg.args);
} catch(error:Error) {
};
} else {
if (obj != null){
try {
obj(pkg.args);
} catch(error:Error) {
};
};
};
delete this.client._callbacks[cb];
};
_clip.onError = function ():void{
MochiServices.onError("IOError");
};
_connecting = false;
_connected = true;
while (_clip._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _clip._queue.shift());
};
};
}
private static function listen():void{
_listenChannel = new LocalConnection();
_listenChannel.client = _clip;
_clip.handshake = function (_arg1:Object):void{
MochiServices.comChannelName = _arg1.newChannel;
};
_listenChannel.allowDomain("*", "localhost");
_listenChannel.allowInsecureDomain("*", "localhost");
_listenChannel.connect(_listenChannelName);
}
public static function set comChannelName(_arg1:String):void{
if (_arg1 != null){
if (_arg1.length > 3){
_sendChannelName = (_arg1 + "_fromgame");
initComChannels();
};
};
}
private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{
var clipname:String;
var f:Function;
var req:URLRequest;
var vars:URLVariables;
var id = _arg1;
var clip = _arg2;
clipname = ("_mochiservices_com_" + id);
if (_clip != null){
return (_clip);
};
if (!MochiServices.isNetworkAvailable()){
return (null);
};
if (urlOptions(clip).servicesURL != undefined){
_servicesURL = urlOptions(clip).servicesURL;
};
MochiServices.allowDomains(_servicesURL);
_clip = createEmptyMovieClip(clip, clipname, 10336, false);
_loader = new Loader();
_timer = new Timer(1000, 0);
_startTime = getTimer();
_timer.addEventListener(TimerEvent.TIMER, connectWait);
_timer.start();
f = function (_arg1:Object):void{
_clip._mochiad_ctr_failed = true;
MochiServices.disconnect();
MochiServices.onError("IOError");
};
_listenChannelName = (_listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor((Math.random() * 99999))));
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, f);
req = new URLRequest(_servicesURL);
vars = new URLVariables();
vars.listenLC = _listenChannelName;
vars.mochiad_options = clip.loaderInfo.parameters.mochiad_options;
req.data = vars;
_loader.load(req);
_clip.addChild(_loader);
_clip._mochiservices_com = _loader;
_sendChannel = new LocalConnection();
_clip._queue = [];
_clip._nextcallbackID = 0;
_clip._callbacks = {};
listen();
return (_clip);
}
public static function get clip():Object{
return (_container);
}
public static function bringToTop(_arg1:Event):void{
var e = _arg1;
if (MochiServices.clip != null){
if (MochiServices.childClip != null){
try {
if (MochiServices.clip.numChildren > 1){
MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1));
};
} catch(errorObject:Error) {
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
};
};
};
}
public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{
var id = _arg1;
var clip = _arg2;
var onError = _arg3;
if ((clip is DisplayObject)){
if (((!(_connected)) && ((_clip == null)))){
_connecting = true;
init(id, clip);
};
//unresolved jump
};
if (onError != null){
MochiServices.onError = onError;
} else {
if (MochiServices.onError == null){
MochiServices.onError = function (_arg1:String):void{
};
};
};
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Boolean=true):MovieClip{
var mc:MovieClip;
var parent = _arg1;
var name = _arg2;
var depth = _arg3;
var doAdd = _arg4;
mc = new MovieClip();
if (doAdd){
if (((false) && (depth))){
parent.addChildAt(mc, depth);
} else {
parent.addChild(mc);
};
};
try {
parent[name] = mc;
} catch(e:Error) {
throw (new Error("MochiServices requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
mc["_name"] = name;
return (mc);
}
public static function connectWait(_arg1:TimerEvent):void{
if ((getTimer() - _startTime) > 10000){
if (!_connected){
_clip._mochiad_ctr_failed = true;
MochiServices.disconnect();
MochiServices.onError("IOError");
};
_timer.stop();
};
}
}
}//package mochi
Section 6
//BtnMenu_200 (overmaze_fla.BtnMenu_200)
package overmaze_fla {
import flash.events.*;
import flash.display.*;
public dynamic class BtnMenu_200 extends MovieClip {
public function BtnMenu_200(){
addFrameScript(0, frame1);
}
function frame1(){
addEventListener(MouseEvent.CLICK, onClick);
buttonMode = true;
}
public function onClick(_arg1:MouseEvent){
Main(root).OnBnMenu(_arg1);
}
}
}//package overmaze_fla
Section 7
//BtnMute_210 (overmaze_fla.BtnMute_210)
package overmaze_fla {
import flash.events.*;
import flash.display.*;
import flash.ui.*;
public dynamic class BtnMute_210 extends MovieClip {
public function BtnMute_210(){
addFrameScript(0, frame1);
}
public function initFrame(){
if (Options.isMute){
gotoAndStop(2);
} else {
gotoAndStop(1);
};
}
public function toggle(){
Options.isMute = !(Options.isMute);
initFrame();
}
function frame1(){
stop();
addEventListener(MouseEvent.CLICK, onClick);
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDn);
useHandCursor = true;
buttonMode = true;
initFrame();
}
public function onKeyDn(_arg1:KeyboardEvent):void{
if ((((_arg1.keyCode == Keyboard.F12)) || ((_arg1.keyCode == Keyboard.NUMPAD_MULTIPLY)))){
toggle();
};
}
public function onClick(_arg1:MouseEvent):void{
toggle();
}
}
}//package overmaze_fla
Section 8
//BtnQuality_212 (overmaze_fla.BtnQuality_212)
package overmaze_fla {
import flash.events.*;
import flash.display.*;
import flash.ui.*;
public dynamic class BtnQuality_212 extends MovieClip {
public function BtnQuality_212(){
addFrameScript(0, frame1);
}
public function switchToNextMode(){
var _local1:String;
_local1 = stage.quality.toLowerCase();
if (_local1 == StageQuality.LOW){
stage.quality = StageQuality.BEST;
gotoAndStop(4);
} else {
if (_local1 == StageQuality.BEST){
stage.quality = StageQuality.HIGH;
gotoAndStop(3);
} else {
if (_local1 == StageQuality.HIGH){
stage.quality = StageQuality.MEDIUM;
gotoAndStop(2);
} else {
if (_local1 == StageQuality.MEDIUM){
stage.quality = StageQuality.LOW;
gotoAndStop(1);
};
};
};
};
}
public function initFrame():void{
var _local1:String;
_local1 = stage.quality.toLowerCase();
if (_local1 == StageQuality.LOW){
gotoAndStop(1);
} else {
if (_local1 == StageQuality.BEST){
gotoAndStop(4);
} else {
if (_local1 == StageQuality.HIGH){
gotoAndStop(3);
} else {
if (_local1 == StageQuality.MEDIUM){
gotoAndStop(2);
};
};
};
};
}
function frame1(){
addEventListener(MouseEvent.CLICK, onClick);
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDn);
useHandCursor = true;
buttonMode = true;
initFrame();
}
public function onKeyDn(_arg1:KeyboardEvent):void{
if ((((_arg1.keyCode == Keyboard.F11)) || ((_arg1.keyCode == Keyboard.NUMPAD_DIVIDE)))){
switchToNextMode();
};
}
public function onClick(_arg1:MouseEvent):void{
switchToNextMode();
}
}
}//package overmaze_fla
Section 9
//BtnVolume_211 (overmaze_fla.BtnVolume_211)
package overmaze_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.ui.*;
public dynamic class BtnVolume_211 extends MovieClip {
public var _isMDn:Boolean;
public function BtnVolume_211(){
addFrameScript(0, frame1);
}
public function onMDown(_arg1:MouseEvent):void{
_isMDn = true;
setVolumeByMouseX(_arg1.stageX);
}
public function setVolume(_arg1:Number){
if (_arg1 < 0){
_arg1 = 0;
} else {
if (_arg1 > 1){
_arg1 = 1;
};
};
Options.sfxTransform.volume = _arg1;
SoundMixer.soundTransform = Options.sfxTransform;
gotoAndStop(int((_arg1 * 100)));
}
public function onMMove(_arg1:MouseEvent):void{
if (_isMDn){
setVolumeByMouseX(_arg1.stageX);
};
}
function frame1(){
stop();
addEventListener(Event.ADDED_TO_STAGE, onAdded);
addEventListener(Event.REMOVED_FROM_STAGE, onRemoved);
onAdded(null);
setVolume(Options.sfxTransform.volume);
useHandCursor = true;
buttonMode = true;
_isMDn = false;
}
public function onAdded(_arg1:Event):void{
stage.addEventListener(MouseEvent.MOUSE_UP, onMUp);
stage.addEventListener(MouseEvent.MOUSE_MOVE, onMMove);
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDn);
addEventListener(MouseEvent.MOUSE_DOWN, onMDown);
addEventListener(MouseEvent.MOUSE_WHEEL, onMWheel);
}
public function onRemoved(_arg1:Event):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, onMUp);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMMove);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyDn);
removeEventListener(MouseEvent.MOUSE_DOWN, onMDown);
removeEventListener(MouseEvent.MOUSE_WHEEL, onMWheel);
}
public function onMUp(_arg1:MouseEvent):void{
_isMDn = false;
}
public function onMWheel(_arg1:MouseEvent):void{
setVolume((Options.sfxTransform.volume + (_arg1.delta * 0.01)));
}
public function onKeyDn(_arg1:KeyboardEvent):void{
var _local2:Number;
_local2 = 0.02;
switch (_arg1.keyCode){
case Keyboard.NUMPAD_ADD:
setVolume((Options.sfxTransform.volume + _local2));
break;
case Keyboard.NUMPAD_SUBTRACT:
setVolume((Options.sfxTransform.volume - _local2));
break;
};
}
public function setVolumeByMouseX(_arg1:Number){
var _local2:Number;
_local2 = ((_arg1 - x) / width);
setVolume(_local2);
}
}
}//package overmaze_fla
Section 10
//DlgContinue_199 (overmaze_fla.DlgContinue_199)
package overmaze_fla {
import flash.events.*;
import flash.display.*;
public dynamic class DlgContinue_199 extends MovieClip {
public var bnContinue:SimpleButton;
public var bnNew:SimpleButton;
public var bnCancel:SimpleButton;
public function DlgContinue_199(){
addFrameScript(0, frame1);
}
public function OnNew(_arg1:MouseEvent){
(root as Main).OnBnPlayNew(_arg1);
parent.removeChild(this);
}
function frame1(){
bnCancel.addEventListener(MouseEvent.CLICK, OnCancel);
bnContinue.addEventListener(MouseEvent.CLICK, OnContinue);
bnNew.addEventListener(MouseEvent.CLICK, OnNew);
}
public function OnCancel(_arg1:MouseEvent){
parent.removeChild(this);
}
public function OnContinue(_arg1:MouseEvent){
(root as Main).OnBnContinue(_arg1);
parent.removeChild(this);
}
}
}//package overmaze_fla
Section 11
//DlgCredits_195 (overmaze_fla.DlgCredits_195)
package overmaze_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public dynamic class DlgCredits_195 extends MovieClip {
public var message:TextField;
public var bnClose:SimpleButton;
public function DlgCredits_195(){
addFrameScript(0, frame1);
}
public function OnClose(_arg1:MouseEvent){
parent.removeChild(this);
}
function frame1(){
bnClose.addEventListener(MouseEvent.CLICK, OnClose);
}
}
}//package overmaze_fla
Section 12
//DlgError_193 (overmaze_fla.DlgError_193)
package overmaze_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public dynamic class DlgError_193 extends MovieClip {
public var message:TextField;
public var bnClose:SimpleButton;
public function DlgError_193(){
addFrameScript(0, frame1);
}
public function OnClose(_arg1:MouseEvent){
parent.removeChild(this);
}
function frame1(){
bnClose.addEventListener(MouseEvent.CLICK, OnClose);
}
}
}//package overmaze_fla
Section 13
//DlgGameComplete_194 (overmaze_fla.DlgGameComplete_194)
package overmaze_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
public dynamic class DlgGameComplete_194 extends MovieClip {
public var fldTryes:TextField;
public var loader:URLLoader;
public var bnClose:SimpleButton;
public var url:String;
public var bnSubmit:SimpleButton;
public var bnMoreGames:SimpleButton;
public var req:URLRequest;
public var bnReward:SimpleButton;
public var isLoading:Boolean;
public function DlgGameComplete_194(){
addFrameScript(0, frame1);
}
public function OnReward(_arg1:MouseEvent){
if (!isLoading){
isLoading = true;
req.data = "flash=1";
loader.load(req);
};
}
public function OnClose(_arg1:MouseEvent){
parent.removeChild(this);
Music.stop();
}
public function onError(_arg1:IOErrorEvent){
(root as Main).ShowError((_arg1.type + "\nYou have to be connected to the WEB!"));
isLoading = false;
}
public function onLoadID(_arg1:Event){
req.data = ("id=" + loader.data);
navigateToURL(req);
isLoading = false;
}
function frame1(){
bnClose.addEventListener(MouseEvent.CLICK, OnClose);
bnSubmit.addEventListener(MouseEvent.CLICK, Main(root).OnSendScores);
bnReward.addEventListener(MouseEvent.CLICK, OnReward);
bnMoreGames.addEventListener(MouseEvent.CLICK, Main(root).OnBnMoreGames);
url = "http://puzzlesea.com/overmaze-reward.php";
req = new URLRequest(url);
loader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onLoadID);
loader.addEventListener(IOErrorEvent.IO_ERROR, onError);
isLoading = false;
}
}
}//package overmaze_fla
Section 14
//DlgSelectLevel_196 (overmaze_fla.DlgSelectLevel_196)
package overmaze_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.geom.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class DlgSelectLevel_196 extends MovieClip {
public var n10:SimpleButton;
public var n11:SimpleButton;
public var n13:SimpleButton;
public var n12:SimpleButton;
public var n17:SimpleButton;
public var n14:SimpleButton;
public var n20:SimpleButton;
public var n21:SimpleButton;
public var n22:SimpleButton;
public var n25:SimpleButton;
public var n26:SimpleButton;
public var n27:SimpleButton;
public var n16:SimpleButton;
public var n29:SimpleButton;
public var n23:SimpleButton;
public var n24:SimpleButton;
public var bnClose:SimpleButton;
public var n18:SimpleButton;
public var n30:SimpleButton;
public var n15:SimpleButton;
public var message:TextField;
public var i:int;
public var n1:SimpleButton;
public var n2:SimpleButton;
public var n5:SimpleButton;
public var n8:SimpleButton;
public var n7:SimpleButton;
public var n4:SimpleButton;
public var n28:SimpleButton;
public var n9:SimpleButton;
public var n3:SimpleButton;
public var n6:SimpleButton;
public var n19:SimpleButton;
public function DlgSelectLevel_196(){
addFrameScript(0, frame1);
}
function frame1(){
bnClose.addEventListener(MouseEvent.CLICK, OnClose);
i = 1;
while (i < 31) {
this[("n" + i)].addEventListener(MouseEvent.CLICK, OnSelectLevel);
i++;
};
}
public function OnSelectLevel(_arg1:MouseEvent){
(root as Main).OnBnPlayLevel(_arg1);
}
public function OnClose(_arg1:MouseEvent){
(root as Main).OnBnCloseDlgSelectLevel(_arg1);
parent.removeChild(this);
}
}
}//package overmaze_fla
Section 15
//DlgWrongDomain_198 (overmaze_fla.DlgWrongDomain_198)
package overmaze_fla {
import flash.events.*;
import flash.display.*;
public dynamic class DlgWrongDomain_198 extends MovieClip {
public var bnClose:SimpleButton;
public function DlgWrongDomain_198(){
addFrameScript(0, frame1);
}
public function OnClose(_arg1:MouseEvent){
parent.removeChild(this);
}
function frame1(){
bnClose.addEventListener(MouseEvent.CLICK, OnClose);
}
}
}//package overmaze_fla
Section 16
//imgBnOver_192 (overmaze_fla.imgBnOver_192)
package overmaze_fla {
import flash.display.*;
public dynamic class imgBnOver_192 extends MovieClip {
public function imgBnOver_192(){
addFrameScript(29, frame30);
}
function frame30(){
gotoAndPlay("loop");
}
}
}//package overmaze_fla
Section 17
//imgLevelComplete_203 (overmaze_fla.imgLevelComplete_203)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class imgLevelComplete_203 extends MovieClip {
public var field:TextField;
public function imgLevelComplete_203(){
addFrameScript(0, frame1);
}
function frame1(){
mouseEnabled = false;
field.mouseEnabled = false;
}
}
}//package overmaze_fla
Section 18
//Level_10_38 (overmaze_fla.Level_10_38)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_10_38 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_10_38(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 19
//Level_11_43 (overmaze_fla.Level_11_43)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_11_43 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_11_43(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 20
//Level_12_46 (overmaze_fla.Level_12_46)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_12_46 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_12_46(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 21
//Level_13_51 (overmaze_fla.Level_13_51)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_13_51 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_13_51(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 22
//Level_14_56 (overmaze_fla.Level_14_56)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_14_56 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_14_56(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 23
//Level_15_62 (overmaze_fla.Level_15_62)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_15_62 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_15_62(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 24
//Level_16_66 (overmaze_fla.Level_16_66)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_16_66 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_16_66(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 25
//Level_17_69 (overmaze_fla.Level_17_69)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_17_69 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_17_69(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 26
//Level_18_74 (overmaze_fla.Level_18_74)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_18_74 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_18_74(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 27
//Level_19_79 (overmaze_fla.Level_19_79)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_19_79 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_19_79(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 28
//Level_2_10 (overmaze_fla.Level_2_10)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_2_10 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_2_10(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 29
//Level_2_wall_11 (overmaze_fla.Level_2_wall_11)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_2_wall_11 extends MovieClip {
public function Level_2_wall_11(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 30
//Level_20_86 (overmaze_fla.Level_20_86)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_20_86 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_20_86(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 31
//Level_21_93 (overmaze_fla.Level_21_93)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_21_93 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_21_93(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 32
//Level_22_97 (overmaze_fla.Level_22_97)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_22_97 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_22_97(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 33
//Level_23_109 (overmaze_fla.Level_23_109)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_23_109 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_23_109(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 34
//Level_24_112 (overmaze_fla.Level_24_112)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_24_112 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_24_112(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 35
//Level_25_125 (overmaze_fla.Level_25_125)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_25_125 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_25_125(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 36
//Level_26_139 (overmaze_fla.Level_26_139)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_26_139 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_26_139(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 37
//Level_27_146 (overmaze_fla.Level_27_146)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_27_146 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_27_146(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 38
//Level_28_156 (overmaze_fla.Level_28_156)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_28_156 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_28_156(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 39
//Level_29_163 (overmaze_fla.Level_29_163)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_29_163 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_29_163(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 40
//Level_3_13 (overmaze_fla.Level_3_13)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_3_13 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_3_13(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 41
//Level_3_wall_14 (overmaze_fla.Level_3_wall_14)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_3_wall_14 extends MovieClip {
public function Level_3_wall_14(){
addFrameScript(0, frame1, 59, frame60);
}
function frame1(){
stop();
}
function frame60(){
stop();
}
}
}//package overmaze_fla
Section 42
//Level_30_173 (overmaze_fla.Level_30_173)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_30_173 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_30_173(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 43
//Level_4_16 (overmaze_fla.Level_4_16)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_4_16 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_4_16(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 44
//Level_4_wall_17 (overmaze_fla.Level_4_wall_17)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_4_wall_17 extends MovieClip {
public function Level_4_wall_17(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 45
//Level_5_19 (overmaze_fla.Level_5_19)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_5_19 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_5_19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 46
//Level_5_wall_20 (overmaze_fla.Level_5_wall_20)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_5_wall_20 extends MovieClip {
public var box:MovieClip;
public function Level_5_wall_20(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
box.gotoAndStop(1);
}
function frame2(){
box.gotoAndPlay(1);
stop();
}
}
}//package overmaze_fla
Section 47
//Level_6_24 (overmaze_fla.Level_6_24)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_6_24 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_6_24(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 48
//Level_6_wall_25 (overmaze_fla.Level_6_wall_25)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_6_wall_25 extends MovieClip {
public function Level_6_wall_25(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 49
//Level_7_27 (overmaze_fla.Level_7_27)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_7_27 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_7_27(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 50
//Level_8_30 (overmaze_fla.Level_8_30)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_8_30 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_8_30(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 51
//Level_9_33 (overmaze_fla.Level_9_33)
package overmaze_fla {
import flash.display.*;
public dynamic class Level_9_33 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_9_33(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 52
//LevelsList_4 (overmaze_fla.LevelsList_4)
package overmaze_fla {
import flash.display.*;
public dynamic class LevelsList_4 extends MovieClip {
public var _26:MovieClip;
public var _27:MovieClip;
public var _29:MovieClip;
public var _30:MovieClip;
public var _2:MovieClip;
public var _4:MovieClip;
public var _8:MovieClip;
public var _9:MovieClip;
public var _3:MovieClip;
public var _5:MovieClip;
public var _10:MovieClip;
public var _14:MovieClip;
public var _15:MovieClip;
public var _17:MovieClip;
public var _11:MovieClip;
public var _12:MovieClip;
public var _7:MovieClip;
public var _1:Level_1;
public var _18:MovieClip;
public var _19:MovieClip;
public var _13:MovieClip;
public var _20:MovieClip;
public var _21:MovieClip;
public var _23:MovieClip;
public var _24:MovieClip;
public var _28:MovieClip;
public var _22:MovieClip;
public var _25:MovieClip;
public var _16:MovieClip;
public var _6:MovieClip;
}
}//package overmaze_fla
Section 53
//mc26_circle_143 (overmaze_fla.mc26_circle_143)
package overmaze_fla {
import flash.display.*;
public dynamic class mc26_circle_143 extends MovieClip {
public var mc0:MovieClip;
public var i:int;
public var ich:int;
public var mc:MovieClip;
public function mc26_circle_143(){
addFrameScript(0, frame1, 1, frame2, 199, frame200);
}
function frame200(){
gotoAndPlay(3);
}
function frame1(){
stop();
mc0 = (getChildAt(0) as MovieClip);
i = 0;
while (i < mc0.numChildren) {
mc = (mc0.getChildAt(i) as MovieClip);
if (mc){
mc.gotoAndStop(1);
};
i++;
};
}
function frame2(){
mc0 = (getChildAt(0) as MovieClip);
ich = 0;
while (ich < mc0.numChildren) {
mc = (mc0.getChildAt(ich) as MovieClip);
if (mc){
mc.play();
};
ich++;
};
}
}
}//package overmaze_fla
Section 54
//mc28_perimeter_158 (overmaze_fla.mc28_perimeter_158)
package overmaze_fla {
import flash.display.*;
public dynamic class mc28_perimeter_158 extends MovieClip {
public function mc28_perimeter_158(){
addFrameScript(309, frame310);
}
function frame310(){
gotoAndPlay(2);
}
}
}//package overmaze_fla
Section 55
//mc29_pacman_move_165 (overmaze_fla.mc29_pacman_move_165)
package overmaze_fla {
import flash.display.*;
public dynamic class mc29_pacman_move_165 extends MovieClip {
public function mc29_pacman_move_165(){
addFrameScript(599, frame600);
}
function frame600(){
stop();
}
}
}//package overmaze_fla
Section 56
//mc30_BOSS_175 (overmaze_fla.mc30_BOSS_175)
package overmaze_fla {
import flash.display.*;
public dynamic class mc30_BOSS_175 extends MovieClip {
public function mc30_BOSS_175(){
addFrameScript(599, frame600);
}
function frame600(){
stop();
}
}
}//package overmaze_fla
Section 57
//mc30_face_udivlenie_188 (overmaze_fla.mc30_face_udivlenie_188)
package overmaze_fla {
import flash.display.*;
public dynamic class mc30_face_udivlenie_188 extends MovieClip {
public function mc30_face_udivlenie_188(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package overmaze_fla
Section 58
//mcChar_9 (overmaze_fla.mcChar_9)
package overmaze_fla {
import flash.display.*;
public dynamic class mcChar_9 extends MovieClip {
public function mcChar_9(){
addFrameScript(0, frame1, 24, frame25, 59, frame60);
}
function frame1(){
stop();
}
function frame25(){
gotoAndPlay("start");
}
function frame60(){
stop();
}
}
}//package overmaze_fla
Section 59
//mcLevelComplete_202 (overmaze_fla.mcLevelComplete_202)
package overmaze_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.geom.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class mcLevelComplete_202 extends MovieClip {
public var label:MovieClip;
public function mcLevelComplete_202(){
addFrameScript(0, frame1, 54, frame55);
}
function frame1(){
mouseEnabled = false;
}
function frame55(){
stop();
if (parent){
parent.removeChild(this);
if (this.callback){
this.callback();
};
};
}
}
}//package overmaze_fla
Section 60
//mcPress_15_64 (overmaze_fla.mcPress_15_64)
package overmaze_fla {
import flash.display.*;
public dynamic class mcPress_15_64 extends MovieClip {
public function mcPress_15_64(){
addFrameScript(129, frame130);
}
function frame130(){
stop();
}
}
}//package overmaze_fla
Section 61
//mcTarget_8 (overmaze_fla.mcTarget_8)
package overmaze_fla {
import flash.display.*;
public dynamic class mcTarget_8 extends MovieClip {
public function mcTarget_8(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
gotoAndPlay("start");
}
}
}//package overmaze_fla
Section 62
//Menu_205 (overmaze_fla.Menu_205)
package overmaze_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
import flash.geom.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Menu_205 extends MovieClip {
public var bnContinue:SimpleButton;
public var banner:MovieClip;
public var bnMoreGames:SimpleButton;
public var bnReloadBanner:SimpleButton;
public var bnLevel:SimpleButton;
public var mcBack:MovieClip;
public var bnPlay:SimpleButton;
public var disableContinue:MovieClip;
public var bnCredits:SimpleButton;
public var main:Main;
public var bnScores:SimpleButton;
public var domLock:Array;
public function Menu_205(){
addFrameScript(0, frame1);
}
public function OnShowDlgWrongDom(_arg1:MouseEvent){
var _local2:Main;
_local2 = Main(root);
_local2.addChild(_local2.res.dlgDomain);
}
function frame1(){
main = Main(root);
domLock = null;
if (domLock){
if (main.isDomIn(domLock)){
bnPlay.addEventListener(MouseEvent.CLICK, main.OnBnPlay);
bnLevel.addEventListener(MouseEvent.CLICK, main.OnBnSelectLevel);
bnContinue.addEventListener(MouseEvent.CLICK, main.OnBnContinue);
} else {
bnPlay.addEventListener(MouseEvent.CLICK, OnShowDlgWrongDom);
bnLevel.addEventListener(MouseEvent.CLICK, OnShowDlgWrongDom);
bnContinue.addEventListener(MouseEvent.CLICK, OnShowDlgWrongDom);
};
} else {
bnPlay.addEventListener(MouseEvent.CLICK, main.OnBnPlay);
bnLevel.addEventListener(MouseEvent.CLICK, main.OnBnSelectLevel);
bnContinue.addEventListener(MouseEvent.CLICK, main.OnBnContinue);
};
bnScores.addEventListener(MouseEvent.CLICK, main.OnShowScores);
bnReloadBanner.addEventListener(MouseEvent.CLICK, main.OnBnReloadBanner);
bnMoreGames.addEventListener(MouseEvent.CLICK, main.OnBnMoreGames);
bnCredits.addEventListener(MouseEvent.CLICK, OnBnCredits);
}
public function OnBnCredits(_arg1:MouseEvent){
var _local2:Main;
_local2 = Main(root);
_local2.addChild(_local2.res.dlgCredits);
}
}
}//package overmaze_fla
Section 63
//MochiBannerAD_207 (overmaze_fla.MochiBannerAD_207)
package overmaze_fla {
import flash.display.*;
import mochi.*;
public dynamic class MochiBannerAD_207 extends MovieClip {
public function MochiBannerAD_207(){
addFrameScript(0, frame1);
}
function frame1(){
if (Options.isMochiAD){
update();
};
}
public function update(){
if (Options.isMochiAD){
MochiAd.unload(this);
MochiAd.showClickAwayAd({clip:this, id:"9d412007f3592ea7"});
};
}
}
}//package overmaze_fla
Section 64
//MochiPreloadAD_2 (overmaze_fla.MochiPreloadAD_2)
package overmaze_fla {
import flash.display.*;
import mochi.*;
public dynamic class MochiPreloadAD_2 extends MovieClip {
public function MochiPreloadAD_2(){
addFrameScript(0, frame1);
}
function frame1(){
if (Options.isMochiAD){
MochiAd.showPreGameAd({clip:root, id:"9d412007f3592ea7", res:"550x400"});
};
}
}
}//package overmaze_fla
Section 65
//MochiScores_190 (overmaze_fla.MochiScores_190)
package overmaze_fla {
import flash.events.*;
import flash.display.*;
import mochi.*;
public dynamic class MochiScores_190 extends MovieClip {
public var main:Main;
public var bnCancel:SimpleButton;
public var board:String;
public function MochiScores_190(){
addFrameScript(0, frame1, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
public function cancelScores(){
if (Options.isMochiScores){
MochiScores.closeLeaderboard();
};
}
function frame3(){
MochiScores.showLeaderboard({boardID:board, onClose:main.HideScores, onError:main.HideScores});
}
function frame6(){
stop();
}
function frame1(){
board = "ac35a40f09f5bd1a";
bnCancel.addEventListener(MouseEvent.CLICK, main.OnCancelScores);
stop();
}
function frame4(){
stop();
}
function frame5(){
MochiScores.closeLeaderboard();
}
public function showScores(){
if (Options.isMochiScores){
MochiScores.showLeaderboard({boardID:board, onClose:main.HideScores, onError:OnScoresError});
};
}
public function sendScores(_arg1:String, _arg2:Number){
if (Options.isMochiScores){
MochiScores.showLeaderboard({boardID:board, score:_arg2, name:_arg1, onClose:main.HideScores, onError:main.OnScoresError});
};
}
public function OnScoresError(_arg1:Object=null){
main.OnScoresError(_arg1);
}
}
}//package overmaze_fla
Section 66
//MochiServices_1 (overmaze_fla.MochiServices_1)
package overmaze_fla {
import flash.display.*;
import mochi.*;
public dynamic class MochiServices_1 extends MovieClip {
public function MochiServices_1(){
addFrameScript(0, frame1);
}
function frame1(){
if (((Options.isMochiScores) || (Options.isMochiAD))){
MochiServices.connect("9d412007f3592ea7", root);
};
}
}
}//package overmaze_fla
Section 67
//Path_1_7 (overmaze_fla.Path_1_7)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_1_7 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_1_7(){
addFrameScript(0, frame1, 60, frame61);
}
function frame1(){
stop();
}
function frame61(){
stop();
}
}
}//package overmaze_fla
Section 68
//Path_10_42 (overmaze_fla.Path_10_42)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_10_42 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_10_42(){
addFrameScript(0, frame1, 149, frame150);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame150(){
stop();
}
}
}//package overmaze_fla
Section 69
//Path_11_45 (overmaze_fla.Path_11_45)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_11_45 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_11_45(){
addFrameScript(0, frame1, 239, frame240);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame240(){
stop();
}
}
}//package overmaze_fla
Section 70
//Path_12_50 (overmaze_fla.Path_12_50)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_12_50 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_12_50(){
addFrameScript(0, frame1, 209, frame210);
}
function frame210(){
stop();
}
function frame1(){
info.mouseEnabled = false;
stop();
}
}
}//package overmaze_fla
Section 71
//Path_13_55 (overmaze_fla.Path_13_55)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_13_55 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_13_55(){
addFrameScript(0, frame1, 359, frame360);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame360(){
stop();
}
}
}//package overmaze_fla
Section 72
//Path_14_61 (overmaze_fla.Path_14_61)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_14_61 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_14_61(){
addFrameScript(0, frame1, 299, frame300);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame300(){
stop();
}
}
}//package overmaze_fla
Section 73
//Path_15_65 (overmaze_fla.Path_15_65)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_15_65 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_15_65(){
addFrameScript(0, frame1, 119, frame120);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame120(){
stop();
}
}
}//package overmaze_fla
Section 74
//Path_16_68 (overmaze_fla.Path_16_68)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_16_68 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_16_68(){
addFrameScript(0, frame1, 119, frame120);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame120(){
stop();
}
}
}//package overmaze_fla
Section 75
//Path_17_73 (overmaze_fla.Path_17_73)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_17_73 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_17_73(){
addFrameScript(0, frame1, 209, frame210);
}
function frame210(){
stop();
}
function frame1(){
info.mouseEnabled = false;
stop();
}
}
}//package overmaze_fla
Section 76
//Path_18_78 (overmaze_fla.Path_18_78)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_18_78 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_18_78(){
addFrameScript(0, frame1, 229, frame230);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame230(){
stop();
}
}
}//package overmaze_fla
Section 77
//Path_19_85 (overmaze_fla.Path_19_85)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_19_85 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_19_85(){
addFrameScript(0, frame1, 299, frame300);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame300(){
stop();
}
}
}//package overmaze_fla
Section 78
//Path_2_12 (overmaze_fla.Path_2_12)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_2_12 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_2_12(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
stop();
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 79
//Path_20_92 (overmaze_fla.Path_20_92)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_20_92 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_20_92(){
addFrameScript(0, frame1, 299, frame300);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame300(){
stop();
}
}
}//package overmaze_fla
Section 80
//Path_21_96 (overmaze_fla.Path_21_96)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_21_96 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_21_96(){
addFrameScript(0, frame1, 319, frame320);
}
function frame320(){
stop();
}
function frame1(){
info.mouseEnabled = false;
stop();
}
}
}//package overmaze_fla
Section 81
//Path_22_108 (overmaze_fla.Path_22_108)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_22_108 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_22_108(){
addFrameScript(0, frame1, 599, frame600);
}
function frame600(){
stop();
}
function frame1(){
info.mouseEnabled = false;
stop();
}
}
}//package overmaze_fla
Section 82
//Path_23_111 (overmaze_fla.Path_23_111)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_23_111 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_23_111(){
addFrameScript(0, frame1, 599, frame600);
}
function frame600(){
stop();
}
function frame1(){
info.mouseEnabled = false;
stop();
}
}
}//package overmaze_fla
Section 83
//Path_24_124 (overmaze_fla.Path_24_124)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_24_124 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_24_124(){
addFrameScript(0, frame1, 599, frame600);
}
function frame600(){
stop();
}
function frame1(){
info.mouseEnabled = false;
stop();
}
}
}//package overmaze_fla
Section 84
//Path_25_138 (overmaze_fla.Path_25_138)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_25_138 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_25_138(){
addFrameScript(0, frame1, 629, frame630);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame630(){
stop();
}
}
}//package overmaze_fla
Section 85
//Path_26_145 (overmaze_fla.Path_26_145)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_26_145 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_26_145(){
addFrameScript(0, frame1, 899, frame900);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame900(){
stop();
}
}
}//package overmaze_fla
Section 86
//Path_27_155 (overmaze_fla.Path_27_155)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_27_155 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_27_155(){
addFrameScript(0, frame1, 699, frame700);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame700(){
stop();
}
}
}//package overmaze_fla
Section 87
//Path_28_162 (overmaze_fla.Path_28_162)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_28_162 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_28_162(){
addFrameScript(0, frame1, 699, frame700);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame700(){
stop();
}
}
}//package overmaze_fla
Section 88
//Path_29_172 (overmaze_fla.Path_29_172)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_29_172 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_29_172(){
addFrameScript(0, frame1, 699, frame700);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame700(){
stop();
}
}
}//package overmaze_fla
Section 89
//Path_3_15 (overmaze_fla.Path_3_15)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_3_15 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_3_15(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
stop();
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 90
//Path_30_189 (overmaze_fla.Path_30_189)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_30_189 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_30_189(){
addFrameScript(0, frame1, 599, frame600);
}
function frame600(){
stop();
}
function frame1(){
info.mouseEnabled = false;
stop();
}
}
}//package overmaze_fla
Section 91
//Path_4_18 (overmaze_fla.Path_4_18)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_4_18 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_4_18(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
stop();
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 92
//Path_5_23 (overmaze_fla.Path_5_23)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_5_23 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_5_23(){
addFrameScript(0, frame1, 119, frame120);
}
function frame1(){
stop();
}
function frame120(){
stop();
}
}
}//package overmaze_fla
Section 93
//Path_6_26 (overmaze_fla.Path_6_26)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_6_26 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_6_26(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
stop();
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 94
//Path_7_29 (overmaze_fla.Path_7_29)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_7_29 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_7_29(){
addFrameScript(0, frame1, 69, frame70);
}
function frame70(){
stop();
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 95
//Path_8_32 (overmaze_fla.Path_8_32)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_8_32 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_8_32(){
addFrameScript(0, frame1, 109, frame110);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame110(){
stop();
}
}
}//package overmaze_fla
Section 96
//Path_9_37 (overmaze_fla.Path_9_37)
package overmaze_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_9_37 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_9_37(){
addFrameScript(0, frame1, 99, frame100);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame100(){
stop();
}
}
}//package overmaze_fla
Section 97
//Res_3 (overmaze_fla.Res_3)
package overmaze_fla {
import flash.display.*;
import flash.media.*;
public dynamic class Res_3 extends MovieClip {
public var gmLevel:GameLevel;
public var mcScores:MovieClip;
public var dlgError:MovieClip;
public var musicLoop:Sound;
public var moreGames:String;
public var dlgDomain:MovieClip;
public var levels:MovieClip;
public var dlgSelectLevel:MovieClip;
public var dlgContinue:MovieClip;
public var dlgCredits:MovieClip;
public var dlgGameComplete:MovieClip;
public var bnMenu:MovieClip;
public var game:GameAdventure;
public function Res_3(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
visible = false;
moreGames = "http://puzzlesea.com/";
musicLoop = new CMusicLoop();
}
function frame2(){
stop();
}
}
}//package overmaze_fla
Section 98
//Wall_10_39 (overmaze_fla.Wall_10_39)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_10_39 extends MovieClip {
public var dorR:MovieClip;
public var dorL:MovieClip;
public function Wall_10_39(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
dorL.gotoAndStop(1);
dorR.gotoAndStop(1);
}
function frame2(){
dorL.gotoAndPlay(1);
dorR.gotoAndPlay(1);
stop();
}
}
}//package overmaze_fla
Section 99
//Wall_11_44 (overmaze_fla.Wall_11_44)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_11_44 extends MovieClip {
public function Wall_11_44(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 100
//Wall_12_47 (overmaze_fla.Wall_12_47)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_12_47 extends MovieClip {
public var ball:MovieClip;
public function Wall_12_47(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
ball.gotoAndStop(1);
}
function frame2(){
ball.gotoAndPlay(1);
stop();
}
}
}//package overmaze_fla
Section 101
//Wall_13_52 (overmaze_fla.Wall_13_52)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_13_52 extends MovieClip {
public var ball1:MovieClip;
public var ball2:MovieClip;
public function Wall_13_52(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
ball1.gotoAndStop((ball1.totalFrames / 2));
ball2.gotoAndStop(1);
}
function frame2(){
stop();
ball1.gotoAndPlay((ball1.totalFrames / 2));
ball2.gotoAndPlay(1);
}
}
}//package overmaze_fla
Section 102
//Wall_14_57 (overmaze_fla.Wall_14_57)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_14_57 extends MovieClip {
public var prLT:MovieClip;
public var door:MovieClip;
public var prRT:MovieClip;
public function Wall_14_57(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
door.gotoAndStop(1);
prLT.gotoAndStop((prLT.totalFrames / 2));
prRT.gotoAndStop(1);
}
function frame2(){
stop();
door.gotoAndPlay(1);
prLT.gotoAndPlay((prLT.totalFrames / 2));
prRT.gotoAndPlay(1);
}
}
}//package overmaze_fla
Section 103
//Wall_15_63 (overmaze_fla.Wall_15_63)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_15_63 extends MovieClip {
public var davilka:MovieClip;
public function Wall_15_63(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
davilka.gotoAndStop(1);
}
function frame2(){
davilka.gotoAndPlay(1);
stop();
}
}
}//package overmaze_fla
Section 104
//Wall_16_67 (overmaze_fla.Wall_16_67)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_16_67 extends MovieClip {
public function Wall_16_67(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package overmaze_fla
Section 105
//Wall_17_70 (overmaze_fla.Wall_17_70)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_17_70 extends MovieClip {
public var floor:MovieClip;
public function Wall_17_70(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
floor.gotoAndStop(1);
}
function frame2(){
floor.gotoAndPlay(1);
stop();
}
}
}//package overmaze_fla
Section 106
//Wall_18_75 (overmaze_fla.Wall_18_75)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_18_75 extends MovieClip {
public var fill:MovieClip;
public function Wall_18_75(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
fill.gotoAndStop(1);
}
function frame2(){
fill.gotoAndPlay(1);
stop();
}
}
}//package overmaze_fla
Section 107
//Wall_19_80 (overmaze_fla.Wall_19_80)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_19_80 extends MovieClip {
public var room2:MovieClip;
public var room1:MovieClip;
public function Wall_19_80(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
room1.gotoAndStop(1);
room2.gotoAndStop(1);
}
function frame2(){
room1.gotoAndPlay(1);
room2.gotoAndPlay(1);
stop();
}
}
}//package overmaze_fla
Section 108
//Wall_20_87 (overmaze_fla.Wall_20_87)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_20_87 extends MovieClip {
public var arrMin:MovieClip;
public var arrHour:MovieClip;
public function Wall_20_87(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
arrMin.gotoAndStop(1);
arrHour.gotoAndStop(1);
}
function frame2(){
arrMin.gotoAndPlay(1);
arrHour.gotoAndPlay(1);
stop();
}
}
}//package overmaze_fla
Section 109
//Wall_21_94 (overmaze_fla.Wall_21_94)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_21_94 extends MovieClip {
public var block:MovieClip;
public function Wall_21_94(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
block.gotoAndStop(1);
}
function frame2(){
block.gotoAndPlay(1);
stop();
}
}
}//package overmaze_fla
Section 110
//Wall_22_98 (overmaze_fla.Wall_22_98)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_22_98 extends MovieClip {
public var i:int;
public var mc:MovieClip;
public function Wall_22_98(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
i = 0;
while (i < numChildren) {
mc = (getChildAt(i) as MovieClip);
if (mc){
mc.gotoAndStop(1);
};
i++;
};
}
function frame2(){
stop();
i = 0;
while (i < numChildren) {
mc = (getChildAt(i) as MovieClip);
if (mc){
mc.gotoAndPlay(1);
};
i++;
};
}
}
}//package overmaze_fla
Section 111
//Wall_23_110 (overmaze_fla.Wall_23_110)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_23_110 extends MovieClip {
public var i:int;
public function Wall_23_110(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
i = 0;
while (i < numChildren) {
MovieClip(getChildAt(i)).gotoAndStop(1);
i++;
};
}
function frame2(){
stop();
i = 0;
while (i < numChildren) {
MovieClip(getChildAt(i)).gotoAndPlay(1);
i++;
};
}
}
}//package overmaze_fla
Section 112
//Wall_24_113 (overmaze_fla.Wall_24_113)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_24_113 extends MovieClip {
public var i:int;
public var ich:int;
public var mc:MovieClip;
public function Wall_24_113(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
i = 0;
while (i < numChildren) {
mc = (getChildAt(i) as MovieClip);
if (mc){
mc.gotoAndStop(1);
};
i++;
};
}
function frame2(){
stop();
ich = 0;
while (ich < numChildren) {
mc = (getChildAt(ich) as MovieClip);
if (mc){
mc.play();
};
ich++;
};
}
}
}//package overmaze_fla
Section 113
//Wall_25_126 (overmaze_fla.Wall_25_126)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_25_126 extends MovieClip {
public var i:int;
public var ich:int;
public var mc:MovieClip;
public function Wall_25_126(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
i = 0;
while (i < numChildren) {
mc = (getChildAt(i) as MovieClip);
if (mc){
mc.gotoAndStop(1);
};
i++;
};
}
function frame2(){
stop();
ich = 0;
while (ich < numChildren) {
mc = (getChildAt(ich) as MovieClip);
if (mc){
mc.play();
};
ich++;
};
}
}
}//package overmaze_fla
Section 114
//Wall_26_140 (overmaze_fla.Wall_26_140)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_26_140 extends MovieClip {
public var i:int;
public var ich:int;
public var mc:MovieClip;
public function Wall_26_140(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
i = 0;
while (i < numChildren) {
mc = (getChildAt(i) as MovieClip);
if (mc){
mc.gotoAndStop(1);
};
i++;
};
}
function frame2(){
stop();
ich = 0;
while (ich < numChildren) {
mc = (getChildAt(ich) as MovieClip);
if (mc){
mc.play();
};
ich++;
};
}
}
}//package overmaze_fla
Section 115
//Wall_27_147 (overmaze_fla.Wall_27_147)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_27_147 extends MovieClip {
public var i:int;
public var ich:int;
public var mc:MovieClip;
public function Wall_27_147(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
i = 0;
while (i < numChildren) {
mc = (getChildAt(i) as MovieClip);
if (mc){
mc.gotoAndStop(1);
};
i++;
};
}
function frame2(){
stop();
ich = 0;
while (ich < numChildren) {
mc = (getChildAt(ich) as MovieClip);
if (mc){
mc.play();
};
ich++;
};
}
}
}//package overmaze_fla
Section 116
//Wall_28_157 (overmaze_fla.Wall_28_157)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_28_157 extends MovieClip {
public var i:int;
public var ich:int;
public var mc:MovieClip;
public function Wall_28_157(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
i = 0;
while (i < numChildren) {
mc = (getChildAt(i) as MovieClip);
if (mc){
mc.gotoAndStop(1);
};
i++;
};
}
function frame2(){
stop();
ich = 0;
while (ich < numChildren) {
mc = (getChildAt(ich) as MovieClip);
if (mc){
mc.play();
};
ich++;
};
}
}
}//package overmaze_fla
Section 117
//Wall_29_164 (overmaze_fla.Wall_29_164)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_29_164 extends MovieClip {
public var i:int;
public var ich:int;
public var mc:MovieClip;
public function Wall_29_164(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
i = 0;
while (i < numChildren) {
mc = (getChildAt(i) as MovieClip);
if (mc){
mc.gotoAndStop(1);
};
i++;
};
}
function frame2(){
stop();
ich = 0;
while (ich < numChildren) {
mc = (getChildAt(ich) as MovieClip);
if (mc){
mc.play();
};
ich++;
};
}
}
}//package overmaze_fla
Section 118
//Wall_30_174 (overmaze_fla.Wall_30_174)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_30_174 extends MovieClip {
public var i:int;
public var ich:int;
public var mc:MovieClip;
public function Wall_30_174(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
i = 0;
while (i < numChildren) {
mc = (getChildAt(i) as MovieClip);
if (mc){
mc.gotoAndStop(1);
};
i++;
};
}
function frame2(){
stop();
ich = 0;
while (ich < numChildren) {
mc = (getChildAt(ich) as MovieClip);
if (mc){
mc.play();
};
ich++;
};
}
}
}//package overmaze_fla
Section 119
//Wall_7_28 (overmaze_fla.Wall_7_28)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_7_28 extends MovieClip {
public function Wall_7_28(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package overmaze_fla
Section 120
//Wall_8_31 (overmaze_fla.Wall_8_31)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_8_31 extends MovieClip {
public function Wall_8_31(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
stop();
}
function frame1(){
stop();
}
}
}//package overmaze_fla
Section 121
//Wall_9_34 (overmaze_fla.Wall_9_34)
package overmaze_fla {
import flash.display.*;
public dynamic class Wall_9_34 extends MovieClip {
public var d4:MovieClip;
public var d8:MovieClip;
public var d2:MovieClip;
public var d5:MovieClip;
public var d6:MovieClip;
public var d7:MovieClip;
public var d9:MovieClip;
public var d3:MovieClip;
public var d10:MovieClip;
public var d11:MovieClip;
public var d14:MovieClip;
public var d17:MovieClip;
public var d16:MovieClip;
public var d13:MovieClip;
public var d15:MovieClip;
public var d12:MovieClip;
public var d1:MovieClip;
public function Wall_9_34(){
addFrameScript(0, frame1, 1, frame2, 8, frame9);
}
function frame9(){
stop();
}
function frame1(){
stop();
d1.gotoAndStop(35);
d2.gotoAndStop(30);
d3.gotoAndStop(25);
d4.gotoAndStop(20);
d5.gotoAndStop(15);
d6.gotoAndStop(10);
d7.gotoAndStop(5);
d8.gotoAndStop(40);
d9.gotoAndStop(35);
d10.gotoAndStop(30);
d11.gotoAndStop(25);
d12.gotoAndStop(20);
d13.gotoAndStop(15);
d14.gotoAndStop(10);
d15.gotoAndStop(5);
d16.gotoAndStop(40);
d17.gotoAndStop(35);
}
function frame2(){
d1.gotoAndPlay(35);
d2.gotoAndPlay(30);
d3.gotoAndPlay(25);
d4.gotoAndPlay(20);
d5.gotoAndPlay(15);
d6.gotoAndPlay(10);
d7.gotoAndPlay(5);
d8.gotoAndPlay(40);
d9.gotoAndPlay(35);
d10.gotoAndPlay(30);
d11.gotoAndPlay(25);
d12.gotoAndPlay(20);
d13.gotoAndPlay(15);
d14.gotoAndPlay(10);
d15.gotoAndPlay(5);
d16.gotoAndPlay(40);
d17.gotoAndPlay(35);
}
}
}//package overmaze_fla
Section 122
//CMusicLoop (CMusicLoop)
package {
import flash.media.*;
public class CMusicLoop extends Sound {
}
}//package
Section 123
//Game (Game)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import flash.ui.*;
public class Game extends MovieClip {
var _path:MovieClip;
var _num_level:int;
var _isComplete:Boolean;
var _last_x:Number;
var _char:MovieClip;
var _isActive:Boolean;
var _last_y:Number;
var _my:Number;
var _wall_x:Number;
var _mx:Number;
var _wall_y:Number;
var _so:SharedObject;
var _vopli:Array;
var _level:MovieClip;
var _mcComplete:MovieClip;
var _wall:MovieClip;
var onCompleteMessage:Function;
var _tryes:int;// = 1
public function Game(){
_vopli = new Array("Nice!", "Awesome!", "Very Well!", "Well Done!", "Super!", "Fine!", "You Are Super!", "You Are Great!", "You Are Awesome!", "Pretty Well!", "You Are Genius!", "Is Einstein Your Grandpa?", "Fantastic!", "You Are The Best!", "You Are So Cool!", "You Is My Hero!", "Wow!", "You Are So Smart!", "You Are So Good!", "You Are Eeverything I Could Ever Wish For!", "You Are The Greatest!");
_tryes = 1;
_so = SharedObject.getLocal("overmaze_save");
super();
}
function init(){
_mcComplete = this["mcComplete"];
removeChild(_mcComplete);
_mcComplete.stop();
}
private function onMMove(_arg1:MouseEvent):void{
var _local2:Array;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Point;
if (_isActive){
_local3 = (mouseX - _last_x);
_local4 = (mouseY - _last_y);
_local5 = _wall.x;
_local6 = _wall.y;
if (((!(_isComplete)) && ((MX.magnitudeByDeltas(_local3, _local4) > 8)))){
_local2 = MX.deltasFromTo(mouseX, mouseY, _last_x, _last_y, 4);
for each (_local7 in _local2) {
if (_wall.hitTestPoint((_char.x + _local7.x), (_char.y + _local7.y), true)){
replayLevel();
return;
};
};
};
_wall.x = (_local5 + _local3);
_wall.y = (_local6 + _local4);
_last_x = mouseX;
_last_y = mouseY;
};
}
function resetLevel(){
graphics.clear();
_isActive = false;
stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMMove);
removeEventListener(Event.ENTER_FRAME, update);
_wall.x = _wall_x;
_wall.y = _wall_y;
_wall.gotoAndStop("stop");
_level.path.gotoAndStop(1);
_char.gotoAndStop(1);
_level.path.target.gotoAndStop(1);
Mouse.show();
}
function nextLevel(){
resetLevel();
removeChild(_level);
if (_num_level < 30){
_num_level++;
_so.data.level = _num_level;
playLevel(_num_level);
} else {
_so.data.tryes = 1;
_so.data.level = 1;
Mouse.show();
Main(root).OnGameComplete();
};
}
function playLevel(_arg1:int):void{
Mouse.show();
_num_level = _arg1;
_level = Main(root).res.levels[("_" + _num_level)];
_level.x = 0;
_level.y = 0;
addChild(_level);
_wall = _level.wall;
_wall.addEventListener(MouseEvent.CLICK, onMClick);
_wall_x = _wall.x;
_wall_y = _wall.y;
_path = _level.path;
_char = _path.cube;
_isComplete = false;
_isActive = false;
popupMessage(("Level " + _num_level));
this["fldTryes"].text = ("Attempts: " + _tryes);
(root as Main).ShowOptionsPanel();
}
function playSaved(){
if (_so.data.tryes){
_tryes = _so.data.tryes;
_num_level = _so.data.level;
playLevel(_num_level);
} else {
playNew();
};
}
function popupMessage(_arg1:String, _arg2:Function=null){
addChild(_mcComplete);
TextField(_mcComplete.label.field).text = _arg1;
_mcComplete.gotoAndPlay("start");
_mcComplete.callback = _arg2;
}
function checkCollisions(){
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
if (!_isComplete){
_local1 = (((_char.width * 0.5) * _char.scaleX) - 2);
_local2 = (_char.x + _local1);
_local1 = (_char.x - _local1);
_local3 = (((_char.height * 0.5) * _char.scaleY) - 2);
_local4 = (_char.y + _local3);
_local3 = (_char.y - _local3);
if (((((((((((((((((_wall.hitTestPoint(_char.x, _char.y, true)) || (_wall.hitTestPoint(_local1, _local3, true)))) || (_wall.hitTestPoint(_local2, _local4, true)))) || (_wall.hitTestPoint(_local1, _local4, true)))) || (_wall.hitTestPoint(_local2, _local3, true)))) || (_wall.hitTestPoint(_char.x, _local3, true)))) || (_wall.hitTestPoint(_char.x, _local4, true)))) || (_wall.hitTestPoint(_local1, _char.y, true)))) || (_wall.hitTestPoint(_local2, _char.y, true)))){
replayLevel();
return;
};
};
}
private function update(_arg1:Event):void{
onMMove(null);
checkCollisions();
if (((_isActive) && (!(_isComplete)))){
if (_path.currentFrame == _path.totalFrames){
completeLevel();
};
};
}
function playNew(){
_tryes = 1;
playLevel(1);
_so.data.tryes = 1;
_so.data.level = _num_level;
}
function completeLevel(){
_isComplete = true;
_char.gotoAndPlay("win");
popupMessage(_vopli[int((Math.random() * (_vopli.length - 1)))], nextLevel);
}
private function onMClick(_arg1:MouseEvent):void{
_isActive = true;
Mouse.hide();
_mx = (mouseX + _wall.x);
_my = (mouseY - _wall.y);
_last_x = mouseX;
_last_y = mouseY;
_wall.removeEventListener(MouseEvent.CLICK, onMClick);
_wall.gotoAndPlay("start");
_level.path.gotoAndPlay("start");
_char.gotoAndPlay("start");
_level.path.target.gotoAndPlay("start");
addEventListener(Event.ENTER_FRAME, update);
(root as Main).HideOptionsPanel();
}
function replayLevel(){
resetLevel();
_tryes++;
if ((this as GameAdventure)){
_so.data.tryes = _tryes;
};
playLevel(_num_level);
}
}
}//package
Section 124
//GameAdventure (GameAdventure)
package {
import flash.display.*;
import flash.text.*;
public class GameAdventure extends Game {
public var fldTryes:TextField;
public var mcComplete:MovieClip;
public function GameAdventure(){
addFrameScript(0, frame1);
}
function frame1(){
init();
}
}
}//package
Section 125
//GameLevel (GameLevel)
package {
import flash.display.*;
import flash.text.*;
import flash.ui.*;
public class GameLevel extends Game {
public var fldTryes:TextField;
public var mcComplete:MovieClip;
public function GameLevel(){
addFrameScript(0, frame1);
}
function frame1(){
init();
}
override function nextLevel(){
resetLevel();
removeChild(_level);
Mouse.show();
Main(root).OnLevelGameComplete();
}
override function playLevel(_arg1:int):void{
Music.play(CMusicLoop);
super.playLevel(_arg1);
}
}
}//package
Section 126
//Level_1 (Level_1)
package {
import flash.display.*;
public dynamic class Level_1 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 127
//Main (Main)
package {
import flash.events.*;
import flash.display.*;
import mochi.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
public dynamic class Main extends MovieClip {
public var mcMenu:MovieClip;
var banner:MovieClip;
var _menu:MovieClip;
public var pnlOptions:MovieClip;
public var res:MovieClip;
var _mcScores:MovieClip;
var _dlgError:MovieClip;
public static var WIDTH:Number = 550;
public static var WIDTHdiv2:Number = 225;
public static var HEIGHTdiv2:Number = 200;
static var domLocal:Array = ["file:///H|/FlasH/prj", "H:\\FlasH\\prj", "H:/FlasH/prj"];
public static var HEIGHT:Number = 400;
public function Main(){
addFrameScript(2, frame3);
CustomizePopupMenu();
}
public function OnBnMoreGames(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest(res.moreGames);
navigateToURL(_local2);
}
public function OnBnCloseDlgSelectLevel(_arg1:Event){
Music.stop();
}
public function ShowError(_arg1:Object){
_dlgError.message.text = _arg1;
addChild(_dlgError);
}
private function init():void{
var _local1:SharedObject;
if (Options.isAllowMochibot){
if (!isDomIn(domLocal)){
MochiBot.track(this, "4019d45f");
//unresolved jump
};
};
_menu = mcMenu;
_local1 = SharedObject.getLocal("overmaze_save");
if (_local1.data.level){
_menu.removeChild(_menu.disableContinue);
};
res.game.x = 0;
res.game.y = 0;
_mcScores = res.mcScores;
_mcScores.x = (_mcScores.y = 0);
_mcScores.main = this;
res.removeChild(_mcScores);
_dlgError = res.dlgError;
res.removeChild(_dlgError);
banner = mcMenu.banner;
}
public function HideScores(){
removeChild(_mcScores);
}
public function OnBnSelectLevel(_arg1:MouseEvent){
addChildAt(res.dlgSelectLevel, (numChildren - 1));
removeChild(pnlOptions);
addChild(pnlOptions);
ShowOptionsPanel();
}
public function OnBnPlayLevel(_arg1:MouseEvent){
var _local2:int;
var _local3:Game;
_local2 = int(_arg1.target.name.substring(1, _arg1.target.name.length));
removeChild(res.dlgSelectLevel);
pnlOptions.addChild(res.bnMenu);
_local3 = res.gmLevel;
_local3._tryes = 1;
addChildAt(_local3, getChildIndex(pnlOptions));
_local3.playLevel(_local2);
}
function CustomizePopupMenu(){
var _local1:ContextMenu;
_local1 = new ContextMenu();
contextMenu = _local1;
_local1.builtInItems.forwardAndBack = false;
_local1.builtInItems.loop = false;
_local1.builtInItems.play = false;
_local1.builtInItems.rewind = false;
_local1.builtInItems.zoom = false;
}
function frame3(){
stop();
init();
}
function restoreBanner(){
if (banner){
if (banner.parent == this){
mcMenu.addChild(banner);
};
};
}
public function OnBnReloadBanner(_arg1:MouseEvent){
updateBanner();
}
function updateBanner(_arg1:Boolean=false){
if (banner){
if (_arg1){
};
banner.update();
Mouse.show();
};
}
public function OnBnPlay(_arg1:MouseEvent):void{
var _local2:SharedObject;
_local2 = SharedObject.getLocal("overmaze_save");
if (!_local2.data.level){
_menu.removeChild(_menu.disableContinue);
};
OnBnPlayNew(_arg1);
}
public function OnBnContinue(_arg1:MouseEvent):void{
var _local2:Game;
removeChild(_menu);
pnlOptions.addChild(res.bnMenu);
_local2 = res.game;
addChildAt(_local2, 0);
_local2.playSaved();
Mouse.show();
Music.play(CMusicLoop);
}
public function OnBnPlayNew(_arg1:MouseEvent):void{
var _local2:Game;
removeChild(_menu);
pnlOptions.addChild(res.bnMenu);
_local2 = res.game;
addChildAt(_local2, 0);
Music.play(CMusicLoop);
_local2.playNew();
Mouse.show();
}
public function OnSendScores(_arg1:MouseEvent){
addChild(_mcScores);
_mcScores.sendScores(null, Game(res.game)._tryes);
}
public function OnLevelGameComplete(){
removeChild(res.gmLevel);
addChildAt(res.dlgSelectLevel, (numChildren - 1));
pnlOptions.removeChild(res.bnMenu);
ShowOptionsPanel();
}
public function OnBnMenu(_arg1:MouseEvent){
var _local2:Game;
if (res.game.parent == this){
_local2 = res.game;
_local2.resetLevel();
_local2.removeChild(_local2._level);
removeChild(_local2);
addChildAt(mcMenu, 0);
pnlOptions.removeChild(res.bnMenu);
ShowOptionsPanel();
Music.stop();
} else {
if (res.gmLevel.parent == this){
_local2 = res.gmLevel;
_local2.resetLevel();
_local2.removeChild(_local2._level);
removeChild(_local2);
pnlOptions.removeChild(res.bnMenu);
addChildAt(res.dlgSelectLevel, (numChildren - 1));
ShowOptionsPanel();
};
};
}
public function HideOptionsPanel(){
(pnlOptions as DisplayObject).visible = false;
}
public function ShowOptionsPanel(){
(pnlOptions as DisplayObject).visible = true;
}
public function OnCancelScores(_arg1:MouseEvent){
removeChild(_mcScores);
_mcScores.cancelScores();
}
public function OnShowScores(_arg1:MouseEvent):void{
addChild(_mcScores);
_mcScores.showScores();
}
public function OnScoresError(_arg1:Object=null){
removeChild(_mcScores);
ShowError(_arg1);
}
public function OnGameComplete(){
var _local1:Game;
pnlOptions.removeChild(res.bnMenu);
ShowOptionsPanel();
addChildAt(mcMenu, 0);
_local1 = res.game;
removeChild(_local1);
res.dlgGameComplete.fldTryes.text = _local1._tryes;
addChild(res.dlgGameComplete);
}
public function isDomIn(_arg1:Array):Boolean{
var _local2:String;
for each (_local2 in _arg1) {
if (loaderInfo.url.indexOf(_local2) > -1){
return (true);
};
};
return (false);
}
}
}//package
Section 128
//Music (Music)
package {
import flash.events.*;
import flash.media.*;
import flash.utils.*;
public class Music {
static var channel:SoundChannel;
static var timer:Timer;
static var sndt:SoundTransform = new SoundTransform();
static var sound:Sound;
static function onFadeIN(_arg1:TimerEvent){
if (sndt.volume == 0){
SoundMixer.soundTransform = Options.sfxTransform;
};
sndt.volume = (sndt.volume + 0.01);
channel.soundTransform = sndt;
}
static function onSoundComplete(_arg1:Event){
channel.removeEventListener(Event.SOUND_COMPLETE, onSoundComplete);
channel = sound.play();
channel.addEventListener(Event.SOUND_COMPLETE, onSoundComplete);
}
public static function stop(){
if (sound != null){
channel.stop();
channel.removeEventListener(Event.SOUND_COMPLETE, onSoundComplete);
channel = null;
sound = null;
};
}
public static function play(_arg1:Class){
if (!Options.isMute){
if (sound == null){
sound = new (_arg1);
sndt.volume = 0;
SoundMixer.soundTransform = sndt;
channel = sound.play(2, 0, sndt);
channel.soundTransform = sndt;
channel.addEventListener(Event.SOUND_COMPLETE, onSoundComplete);
timer = new Timer(10, 100);
timer.addEventListener(TimerEvent.TIMER, onFadeIN);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete);
timer.start();
};
};
}
static function onTimerComplete(_arg1:TimerEvent){
timer.removeEventListener(TimerEvent.TIMER, onFadeIN);
timer.removeEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete);
timer.stop();
}
}
}//package
Section 129
//MX (MX)
package {
import flash.display.*;
import flash.geom.*;
public class MX {
public static const rad2deg:Number = (180 / Math.PI);
public static const deg2rad:Number = (Math.PI / 180);
public static function magnitudeByDeltas(_arg1:Number, _arg2:Number):Number{
return (Math.sqrt(((_arg1 * _arg1) + (_arg2 * _arg2))));
}
public static function random(_arg1:Number, _arg2:Number):Number{
return ((_arg1 + (Math.random() * (_arg2 - _arg1))));
}
public static function magnitude(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Number;
var _local6:Number;
_local5 = (_arg3 - _arg1);
_local6 = (_arg4 - _arg2);
return (Math.sqrt(((_local5 * _local5) + (_local6 * _local6))));
}
public static function pointsFromTo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Array{
var _local6:Array;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:int;
var _local14:int;
_local6 = new Array();
_local7 = magnitude(_arg1, _arg2, _arg3, _arg4);
_local8 = _arg1;
_local9 = _arg2;
_local6.push(new Point(_local8, _local9));
if (_local7 >= _arg5){
_local10 = angleToPos_rad(_arg1, _arg2, _arg3, _arg4);
_local11 = (Math.cos(_local10) * _arg5);
_local12 = (Math.sin(_local10) * _arg5);
_local13 = Math.floor((_local7 / _arg5));
_local14 = 0;
while (_local14 < _local13) {
_local8 = (_local8 + _local11);
_local9 = (_local9 + _local12);
_local6.push(new Point(_local8, _local9));
_local14++;
};
};
return (_local6);
}
public static function angleToPos_rad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (Math.atan2((_arg4 - _arg2), (_arg3 - _arg1)));
}
public static function magnitudeApproxByDO(_arg1:DisplayObject, _arg2:DisplayObject):Number{
var _local3:Number;
var _local4:Number;
_local3 = Math.abs((_arg2.x - _arg1.x));
_local4 = Math.abs((_arg2.y - _arg1.y));
if (_local3 == 0){
return (_local4);
};
if (_local4 == 0){
return (_local3);
};
if (_local3 > _local4){
return (((_local4 * 0.41) + (_local3 * 0.941246)));
};
return (((_local3 * 0.41) + (_local4 * 0.941246)));
}
public static function deltasFromTo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Array{
var _local6:Array;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:int;
var _local14:int;
_local6 = new Array();
_local7 = magnitude(_arg1, _arg2, _arg3, _arg4);
_local8 = 0;
_local9 = 0;
_local6.push(new Point(_local8, _local9));
if (_local7 >= _arg5){
_local10 = angleToPos_rad(_arg1, _arg2, _arg3, _arg4);
_local11 = (Math.cos(_local10) * _arg5);
_local12 = (Math.sin(_local10) * _arg5);
_local13 = Math.floor((_local7 / _arg5));
_local14 = 0;
while (_local14 < _local13) {
_local8 = (_local8 + _local11);
_local9 = (_local9 + _local12);
_local6.push(new Point(_local8, _local9));
_local14++;
};
};
return (_local6);
}
}
}//package
Section 130
//Options (Options)
package {
import flash.media.*;
public class Options {
public static var isAllowMochibot:Boolean = true;
public static var sfxTransform:SoundTransform = new SoundTransform(0.5);
private static var _isMute:Boolean = false;
public static var isMochiScores:Boolean = true;
public static var isMochiAD:Boolean = true;
public static function get isMute():Boolean{
return (_isMute);
}
public static function set isMute(_arg1:Boolean):void{
_isMute = _arg1;
if (_isMute){
Music.stop();
} else {
Music.play(CMusicLoop);
};
}
}
}//package