Section 1
//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 2
//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 3
//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 4
//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 5
//BtnMenu_204 (overmaze_fg_fla.BtnMenu_204)
package overmaze_fg_fla {
import flash.events.*;
import flash.display.*;
public dynamic class BtnMenu_204 extends MovieClip {
public function BtnMenu_204(){
addFrameScript(0, frame1);
}
function frame1(){
addEventListener(MouseEvent.CLICK, onClick);
buttonMode = true;
}
public function onClick(_arg1:MouseEvent){
Main(root).OnBnMenu(_arg1);
}
}
}//package overmaze_fg_fla
Section 6
//BtnMute_214 (overmaze_fg_fla.BtnMute_214)
package overmaze_fg_fla {
import flash.events.*;
import flash.display.*;
import flash.ui.*;
public dynamic class BtnMute_214 extends MovieClip {
public function BtnMute_214(){
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_fg_fla
Section 7
//BtnQuality_216 (overmaze_fg_fla.BtnQuality_216)
package overmaze_fg_fla {
import flash.events.*;
import flash.display.*;
import flash.ui.*;
public dynamic class BtnQuality_216 extends MovieClip {
public function BtnQuality_216(){
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_fg_fla
Section 8
//BtnVolume_215 (overmaze_fg_fla.BtnVolume_215)
package overmaze_fg_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.ui.*;
public dynamic class BtnVolume_215 extends MovieClip {
public var _isMDn:Boolean;
public function BtnVolume_215(){
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_fg_fla
Section 9
//DlgContinue_203 (overmaze_fg_fla.DlgContinue_203)
package overmaze_fg_fla {
import flash.events.*;
import flash.display.*;
public dynamic class DlgContinue_203 extends MovieClip {
public var bnContinue:SimpleButton;
public var bnNew:SimpleButton;
public var bnCancel:SimpleButton;
public function DlgContinue_203(){
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_fg_fla
Section 10
//DlgCredits_199 (overmaze_fg_fla.DlgCredits_199)
package overmaze_fg_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public dynamic class DlgCredits_199 extends MovieClip {
public var message:TextField;
public var bnClose:SimpleButton;
public function DlgCredits_199(){
addFrameScript(0, frame1);
}
public function OnClose(_arg1:MouseEvent){
parent.removeChild(this);
}
function frame1(){
bnClose.addEventListener(MouseEvent.CLICK, OnClose);
}
}
}//package overmaze_fg_fla
Section 11
//DlgError_197 (overmaze_fg_fla.DlgError_197)
package overmaze_fg_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public dynamic class DlgError_197 extends MovieClip {
public var message:TextField;
public var bnClose:SimpleButton;
public function DlgError_197(){
addFrameScript(0, frame1);
}
public function OnClose(_arg1:MouseEvent){
parent.removeChild(this);
}
function frame1(){
bnClose.addEventListener(MouseEvent.CLICK, OnClose);
}
}
}//package overmaze_fg_fla
Section 12
//DlgGameComplete_198 (overmaze_fg_fla.DlgGameComplete_198)
package overmaze_fg_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
public dynamic class DlgGameComplete_198 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_198(){
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_fg_fla
Section 13
//DlgSelectLevel_200 (overmaze_fg_fla.DlgSelectLevel_200)
package overmaze_fg_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_200 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_200(){
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_fg_fla
Section 14
//DlgWrongDomain_202 (overmaze_fg_fla.DlgWrongDomain_202)
package overmaze_fg_fla {
import flash.events.*;
import flash.display.*;
public dynamic class DlgWrongDomain_202 extends MovieClip {
public var bnClose:SimpleButton;
public function DlgWrongDomain_202(){
addFrameScript(0, frame1);
}
public function OnClose(_arg1:MouseEvent){
parent.removeChild(this);
}
function frame1(){
bnClose.addEventListener(MouseEvent.CLICK, OnClose);
}
}
}//package overmaze_fg_fla
Section 15
//imgBnOver_196 (overmaze_fg_fla.imgBnOver_196)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class imgBnOver_196 extends MovieClip {
public function imgBnOver_196(){
addFrameScript(29, frame30);
}
function frame30(){
gotoAndPlay("loop");
}
}
}//package overmaze_fg_fla
Section 16
//imgLevelComplete_207 (overmaze_fg_fla.imgLevelComplete_207)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class imgLevelComplete_207 extends MovieClip {
public var field:TextField;
public function imgLevelComplete_207(){
addFrameScript(0, frame1);
}
function frame1(){
mouseEnabled = false;
field.mouseEnabled = false;
}
}
}//package overmaze_fg_fla
Section 17
//Level_10_42 (overmaze_fg_fla.Level_10_42)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_10_42 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_10_42(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 18
//Level_11_47 (overmaze_fg_fla.Level_11_47)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_11_47 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_11_47(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 19
//Level_12_50 (overmaze_fg_fla.Level_12_50)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_12_50 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_12_50(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 20
//Level_13_55 (overmaze_fg_fla.Level_13_55)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_13_55 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_13_55(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 21
//Level_14_60 (overmaze_fg_fla.Level_14_60)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_14_60 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_14_60(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 22
//Level_15_66 (overmaze_fg_fla.Level_15_66)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_15_66 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_15_66(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 23
//Level_16_70 (overmaze_fg_fla.Level_16_70)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_16_70 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_16_70(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 24
//Level_17_73 (overmaze_fg_fla.Level_17_73)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_17_73 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_17_73(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 25
//Level_18_78 (overmaze_fg_fla.Level_18_78)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_18_78 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_18_78(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 26
//Level_19_83 (overmaze_fg_fla.Level_19_83)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_19_83 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_19_83(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 27
//Level_2_14 (overmaze_fg_fla.Level_2_14)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_2_14 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_2_14(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 28
//Level_2_wall_15 (overmaze_fg_fla.Level_2_wall_15)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_2_wall_15 extends MovieClip {
public function Level_2_wall_15(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 29
//Level_20_90 (overmaze_fg_fla.Level_20_90)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_20_90 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_20_90(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 30
//Level_21_97 (overmaze_fg_fla.Level_21_97)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_21_97 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_21_97(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 31
//Level_22_101 (overmaze_fg_fla.Level_22_101)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_22_101 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_22_101(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 32
//Level_23_113 (overmaze_fg_fla.Level_23_113)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_23_113 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_23_113(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 33
//Level_24_116 (overmaze_fg_fla.Level_24_116)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_24_116 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_24_116(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 34
//Level_25_129 (overmaze_fg_fla.Level_25_129)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_25_129 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_25_129(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 35
//Level_26_143 (overmaze_fg_fla.Level_26_143)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_26_143 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_26_143(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 36
//Level_27_150 (overmaze_fg_fla.Level_27_150)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_27_150 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_27_150(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 37
//Level_28_160 (overmaze_fg_fla.Level_28_160)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_28_160 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_28_160(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 38
//Level_29_167 (overmaze_fg_fla.Level_29_167)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_29_167 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_29_167(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 39
//Level_3_17 (overmaze_fg_fla.Level_3_17)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_3_17 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_3_17(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 40
//Level_3_wall_18 (overmaze_fg_fla.Level_3_wall_18)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_3_wall_18 extends MovieClip {
public function Level_3_wall_18(){
addFrameScript(0, frame1, 59, frame60);
}
function frame1(){
stop();
}
function frame60(){
stop();
}
}
}//package overmaze_fg_fla
Section 41
//Level_30_177 (overmaze_fg_fla.Level_30_177)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_30_177 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_30_177(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 42
//Level_4_20 (overmaze_fg_fla.Level_4_20)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_4_20 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_4_20(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 43
//Level_4_wall_21 (overmaze_fg_fla.Level_4_wall_21)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_4_wall_21 extends MovieClip {
public function Level_4_wall_21(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 44
//Level_5_23 (overmaze_fg_fla.Level_5_23)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_5_23 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_5_23(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 45
//Level_5_wall_24 (overmaze_fg_fla.Level_5_wall_24)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_5_wall_24 extends MovieClip {
public var box:MovieClip;
public function Level_5_wall_24(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
box.gotoAndStop(1);
}
function frame2(){
box.gotoAndPlay(1);
stop();
}
}
}//package overmaze_fg_fla
Section 46
//Level_6_28 (overmaze_fg_fla.Level_6_28)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_6_28 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_6_28(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 47
//Level_6_wall_29 (overmaze_fg_fla.Level_6_wall_29)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_6_wall_29 extends MovieClip {
public function Level_6_wall_29(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 48
//Level_7_31 (overmaze_fg_fla.Level_7_31)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_7_31 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_7_31(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 49
//Level_8_34 (overmaze_fg_fla.Level_8_34)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_8_34 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_8_34(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 50
//Level_9_37 (overmaze_fg_fla.Level_9_37)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Level_9_37 extends MovieClip {
public var path:MovieClip;
public var wall:MovieClip;
public function Level_9_37(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 51
//LevelsList_8 (overmaze_fg_fla.LevelsList_8)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class LevelsList_8 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_fg_fla
Section 52
//LOADER_2 (overmaze_fg_fla.LOADER_2)
package overmaze_fg_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class LOADER_2 extends MovieClip {
public var bnLogo:SimpleButton;
public var bar:MovieClip;
public var loader:LoaderInfo;
public var bnPlay:SimpleButton;
public function LOADER_2(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
bnPlay.addEventListener(MouseEvent.CLICK, OnBnPlay);
}
function frame1(){
(root as MovieClip).stop();
this.stop();
loader = (root as Main).loaderInfo;
loader.addEventListener(ProgressEvent.PROGRESS, OnUpdateLoadingProgress);
bnLogo.addEventListener(MouseEvent.CLICK, OnBnLogo);
}
public function OnBnPlay(_arg1:MouseEvent){
(root as MovieClip).play();
}
function frame2(){
gotoAndPlay(1);
}
public function OnUpdateLoadingProgress(_arg1:ProgressEvent){
var _local2:Number;
_local2 = (_arg1.bytesLoaded / _arg1.bytesTotal);
if (_local2 < 1){
(bar as MovieClip).scaleX = _local2;
} else {
gotoAndStop("loaded");
};
}
public function OnBnLogo(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.funny-games.biz/main.html");
navigateToURL(_local2);
}
}
}//package overmaze_fg_fla
Section 53
//mc26_circle_147 (overmaze_fg_fla.mc26_circle_147)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class mc26_circle_147 extends MovieClip {
public var mc0:MovieClip;
public var i:int;
public var ich:int;
public var mc:MovieClip;
public function mc26_circle_147(){
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_fg_fla
Section 54
//mc28_perimeter_162 (overmaze_fg_fla.mc28_perimeter_162)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class mc28_perimeter_162 extends MovieClip {
public function mc28_perimeter_162(){
addFrameScript(309, frame310);
}
function frame310(){
gotoAndPlay(2);
}
}
}//package overmaze_fg_fla
Section 55
//mc29_pacman_move_169 (overmaze_fg_fla.mc29_pacman_move_169)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class mc29_pacman_move_169 extends MovieClip {
public function mc29_pacman_move_169(){
addFrameScript(599, frame600);
}
function frame600(){
stop();
}
}
}//package overmaze_fg_fla
Section 56
//mc30_BOSS_179 (overmaze_fg_fla.mc30_BOSS_179)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class mc30_BOSS_179 extends MovieClip {
public function mc30_BOSS_179(){
addFrameScript(599, frame600);
}
function frame600(){
stop();
}
}
}//package overmaze_fg_fla
Section 57
//mc30_face_udivlenie_192 (overmaze_fg_fla.mc30_face_udivlenie_192)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class mc30_face_udivlenie_192 extends MovieClip {
public function mc30_face_udivlenie_192(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package overmaze_fg_fla
Section 58
//mcChar_13 (overmaze_fg_fla.mcChar_13)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class mcChar_13 extends MovieClip {
public function mcChar_13(){
addFrameScript(0, frame1, 24, frame25, 59, frame60);
}
function frame1(){
stop();
}
function frame25(){
gotoAndPlay("start");
}
function frame60(){
stop();
}
}
}//package overmaze_fg_fla
Section 59
//mcLevelComplete_206 (overmaze_fg_fla.mcLevelComplete_206)
package overmaze_fg_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_206 extends MovieClip {
public var label:MovieClip;
public function mcLevelComplete_206(){
addFrameScript(0, frame1, 54, frame55);
}
function frame1(){
mouseEnabled = false;
}
function frame55(){
stop();
if (parent){
parent.removeChild(this);
if (this.callback){
this.callback();
};
};
}
}
}//package overmaze_fg_fla
Section 60
//mcPress_15_68 (overmaze_fg_fla.mcPress_15_68)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class mcPress_15_68 extends MovieClip {
public function mcPress_15_68(){
addFrameScript(129, frame130);
}
function frame130(){
stop();
}
}
}//package overmaze_fg_fla
Section 61
//mcTarget_12 (overmaze_fg_fla.mcTarget_12)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class mcTarget_12 extends MovieClip {
public function mcTarget_12(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
gotoAndPlay("start");
}
}
}//package overmaze_fg_fla
Section 62
//Menu_209 (overmaze_fg_fla.Menu_209)
package overmaze_fg_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_209 extends MovieClip {
public var bnLogo:SimpleButton;
public var bnContinue: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_209(){
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 = ["http://puzzlesea.com/", "http://vladku.com/", "http://www.puzzlesea.com/", "http://www.vladku.com/"];
domLock.push("file:///H|/FlasH/prj");
domLock.push("H:\\FlasH\\prj");
domLock.push("H:/FlasH/prj");
domLock.push("http://funny-games.biz");
domLock.push("http://www.funny-games.biz");
domLock.push("content.funny-base.com");
domLock.push("fggames.simplecdn.net");
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);
bnCredits.addEventListener(MouseEvent.CLICK, OnBnCredits);
bnLogo.addEventListener(MouseEvent.CLICK, OnBnLogo);
}
public function OnBnCredits(_arg1:MouseEvent){
var _local2:Main;
_local2 = Main(root);
_local2.addChild(_local2.res.dlgCredits);
}
public function OnBnLogo(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.funny-games.biz/main.html");
navigateToURL(_local2);
}
}
}//package overmaze_fg_fla
Section 63
//MochiScores_194 (overmaze_fg_fla.MochiScores_194)
package overmaze_fg_fla {
import flash.events.*;
import flash.display.*;
import mochi.*;
public dynamic class MochiScores_194 extends MovieClip {
public var main:Main;
public var bnCancel:SimpleButton;
public var board:String;
public function MochiScores_194(){
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_fg_fla
Section 64
//MochiServices_1 (overmaze_fg_fla.MochiServices_1)
package overmaze_fg_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_fg_fla
Section 65
//Path_1_11 (overmaze_fg_fla.Path_1_11)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_1_11 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_1_11(){
addFrameScript(0, frame1, 60, frame61);
}
function frame1(){
stop();
}
function frame61(){
stop();
}
}
}//package overmaze_fg_fla
Section 66
//Path_10_46 (overmaze_fg_fla.Path_10_46)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_10_46 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_10_46(){
addFrameScript(0, frame1, 149, frame150);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame150(){
stop();
}
}
}//package overmaze_fg_fla
Section 67
//Path_11_49 (overmaze_fg_fla.Path_11_49)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_11_49 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_11_49(){
addFrameScript(0, frame1, 239, frame240);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame240(){
stop();
}
}
}//package overmaze_fg_fla
Section 68
//Path_12_54 (overmaze_fg_fla.Path_12_54)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_12_54 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_12_54(){
addFrameScript(0, frame1, 209, frame210);
}
function frame210(){
stop();
}
function frame1(){
info.mouseEnabled = false;
stop();
}
}
}//package overmaze_fg_fla
Section 69
//Path_13_59 (overmaze_fg_fla.Path_13_59)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_13_59 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_13_59(){
addFrameScript(0, frame1, 359, frame360);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame360(){
stop();
}
}
}//package overmaze_fg_fla
Section 70
//Path_14_65 (overmaze_fg_fla.Path_14_65)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_14_65 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_14_65(){
addFrameScript(0, frame1, 299, frame300);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame300(){
stop();
}
}
}//package overmaze_fg_fla
Section 71
//Path_15_69 (overmaze_fg_fla.Path_15_69)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_15_69 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_15_69(){
addFrameScript(0, frame1, 119, frame120);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame120(){
stop();
}
}
}//package overmaze_fg_fla
Section 72
//Path_16_72 (overmaze_fg_fla.Path_16_72)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_16_72 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_16_72(){
addFrameScript(0, frame1, 119, frame120);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame120(){
stop();
}
}
}//package overmaze_fg_fla
Section 73
//Path_17_77 (overmaze_fg_fla.Path_17_77)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_17_77 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_17_77(){
addFrameScript(0, frame1, 209, frame210);
}
function frame210(){
stop();
}
function frame1(){
info.mouseEnabled = false;
stop();
}
}
}//package overmaze_fg_fla
Section 74
//Path_18_82 (overmaze_fg_fla.Path_18_82)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_18_82 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_18_82(){
addFrameScript(0, frame1, 229, frame230);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame230(){
stop();
}
}
}//package overmaze_fg_fla
Section 75
//Path_19_89 (overmaze_fg_fla.Path_19_89)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_19_89 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_19_89(){
addFrameScript(0, frame1, 299, frame300);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame300(){
stop();
}
}
}//package overmaze_fg_fla
Section 76
//Path_2_16 (overmaze_fg_fla.Path_2_16)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_2_16 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_2_16(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
stop();
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 77
//Path_20_96 (overmaze_fg_fla.Path_20_96)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_20_96 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_20_96(){
addFrameScript(0, frame1, 299, frame300);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame300(){
stop();
}
}
}//package overmaze_fg_fla
Section 78
//Path_21_100 (overmaze_fg_fla.Path_21_100)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_21_100 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_21_100(){
addFrameScript(0, frame1, 319, frame320);
}
function frame320(){
stop();
}
function frame1(){
info.mouseEnabled = false;
stop();
}
}
}//package overmaze_fg_fla
Section 79
//Path_22_112 (overmaze_fg_fla.Path_22_112)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_22_112 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_22_112(){
addFrameScript(0, frame1, 599, frame600);
}
function frame600(){
stop();
}
function frame1(){
info.mouseEnabled = false;
stop();
}
}
}//package overmaze_fg_fla
Section 80
//Path_23_115 (overmaze_fg_fla.Path_23_115)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_23_115 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_23_115(){
addFrameScript(0, frame1, 599, frame600);
}
function frame600(){
stop();
}
function frame1(){
info.mouseEnabled = false;
stop();
}
}
}//package overmaze_fg_fla
Section 81
//Path_24_128 (overmaze_fg_fla.Path_24_128)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_24_128 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_24_128(){
addFrameScript(0, frame1, 599, frame600);
}
function frame600(){
stop();
}
function frame1(){
info.mouseEnabled = false;
stop();
}
}
}//package overmaze_fg_fla
Section 82
//Path_25_142 (overmaze_fg_fla.Path_25_142)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_25_142 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_25_142(){
addFrameScript(0, frame1, 629, frame630);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame630(){
stop();
}
}
}//package overmaze_fg_fla
Section 83
//Path_26_149 (overmaze_fg_fla.Path_26_149)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_26_149 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_26_149(){
addFrameScript(0, frame1, 899, frame900);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame900(){
stop();
}
}
}//package overmaze_fg_fla
Section 84
//Path_27_159 (overmaze_fg_fla.Path_27_159)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_27_159 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_27_159(){
addFrameScript(0, frame1, 699, frame700);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame700(){
stop();
}
}
}//package overmaze_fg_fla
Section 85
//Path_28_166 (overmaze_fg_fla.Path_28_166)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_28_166 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_28_166(){
addFrameScript(0, frame1, 699, frame700);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame700(){
stop();
}
}
}//package overmaze_fg_fla
Section 86
//Path_29_176 (overmaze_fg_fla.Path_29_176)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_29_176 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_29_176(){
addFrameScript(0, frame1, 699, frame700);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame700(){
stop();
}
}
}//package overmaze_fg_fla
Section 87
//Path_3_19 (overmaze_fg_fla.Path_3_19)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_3_19 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_3_19(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
stop();
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 88
//Path_30_193 (overmaze_fg_fla.Path_30_193)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_30_193 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_30_193(){
addFrameScript(0, frame1, 599, frame600);
}
function frame600(){
stop();
}
function frame1(){
info.mouseEnabled = false;
stop();
}
}
}//package overmaze_fg_fla
Section 89
//Path_4_22 (overmaze_fg_fla.Path_4_22)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_4_22 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_4_22(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
stop();
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 90
//Path_5_27 (overmaze_fg_fla.Path_5_27)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_5_27 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_5_27(){
addFrameScript(0, frame1, 119, frame120);
}
function frame1(){
stop();
}
function frame120(){
stop();
}
}
}//package overmaze_fg_fla
Section 91
//Path_6_30 (overmaze_fg_fla.Path_6_30)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_6_30 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_6_30(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
stop();
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 92
//Path_7_33 (overmaze_fg_fla.Path_7_33)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_7_33 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_7_33(){
addFrameScript(0, frame1, 69, frame70);
}
function frame70(){
stop();
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 93
//Path_8_36 (overmaze_fg_fla.Path_8_36)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_8_36 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_8_36(){
addFrameScript(0, frame1, 109, frame110);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame110(){
stop();
}
}
}//package overmaze_fg_fla
Section 94
//Path_9_41 (overmaze_fg_fla.Path_9_41)
package overmaze_fg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Path_9_41 extends MovieClip {
public var cube:MovieClip;
public var target:MovieClip;
public var info:TextField;
public function Path_9_41(){
addFrameScript(0, frame1, 99, frame100);
}
function frame1(){
info.mouseEnabled = false;
stop();
}
function frame100(){
stop();
}
}
}//package overmaze_fg_fla
Section 95
//Res_7 (overmaze_fg_fla.Res_7)
package overmaze_fg_fla {
import flash.display.*;
import flash.media.*;
public dynamic class Res_7 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_7(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
visible = false;
moreGames = "http://puzzlesea.com/";
musicLoop = new CMusicLoop();
}
function frame2(){
stop();
}
}
}//package overmaze_fg_fla
Section 96
//Wall_10_43 (overmaze_fg_fla.Wall_10_43)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_10_43 extends MovieClip {
public var dorR:MovieClip;
public var dorL:MovieClip;
public function Wall_10_43(){
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_fg_fla
Section 97
//Wall_11_48 (overmaze_fg_fla.Wall_11_48)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_11_48 extends MovieClip {
public function Wall_11_48(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 98
//Wall_12_51 (overmaze_fg_fla.Wall_12_51)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_12_51 extends MovieClip {
public var ball:MovieClip;
public function Wall_12_51(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
ball.gotoAndStop(1);
}
function frame2(){
ball.gotoAndPlay(1);
stop();
}
}
}//package overmaze_fg_fla
Section 99
//Wall_13_56 (overmaze_fg_fla.Wall_13_56)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_13_56 extends MovieClip {
public var ball1:MovieClip;
public var ball2:MovieClip;
public function Wall_13_56(){
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_fg_fla
Section 100
//Wall_14_61 (overmaze_fg_fla.Wall_14_61)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_14_61 extends MovieClip {
public var prLT:MovieClip;
public var door:MovieClip;
public var prRT:MovieClip;
public function Wall_14_61(){
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_fg_fla
Section 101
//Wall_15_67 (overmaze_fg_fla.Wall_15_67)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_15_67 extends MovieClip {
public var davilka:MovieClip;
public function Wall_15_67(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
davilka.gotoAndStop(1);
}
function frame2(){
davilka.gotoAndPlay(1);
stop();
}
}
}//package overmaze_fg_fla
Section 102
//Wall_16_71 (overmaze_fg_fla.Wall_16_71)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_16_71 extends MovieClip {
public function Wall_16_71(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package overmaze_fg_fla
Section 103
//Wall_17_74 (overmaze_fg_fla.Wall_17_74)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_17_74 extends MovieClip {
public var floor:MovieClip;
public function Wall_17_74(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
floor.gotoAndStop(1);
}
function frame2(){
floor.gotoAndPlay(1);
stop();
}
}
}//package overmaze_fg_fla
Section 104
//Wall_18_79 (overmaze_fg_fla.Wall_18_79)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_18_79 extends MovieClip {
public var fill:MovieClip;
public function Wall_18_79(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
fill.gotoAndStop(1);
}
function frame2(){
fill.gotoAndPlay(1);
stop();
}
}
}//package overmaze_fg_fla
Section 105
//Wall_19_84 (overmaze_fg_fla.Wall_19_84)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_19_84 extends MovieClip {
public var room2:MovieClip;
public var room1:MovieClip;
public function Wall_19_84(){
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_fg_fla
Section 106
//Wall_20_91 (overmaze_fg_fla.Wall_20_91)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_20_91 extends MovieClip {
public var arrMin:MovieClip;
public var arrHour:MovieClip;
public function Wall_20_91(){
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_fg_fla
Section 107
//Wall_21_98 (overmaze_fg_fla.Wall_21_98)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_21_98 extends MovieClip {
public var block:MovieClip;
public function Wall_21_98(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
block.gotoAndStop(1);
}
function frame2(){
block.gotoAndPlay(1);
stop();
}
}
}//package overmaze_fg_fla
Section 108
//Wall_22_102 (overmaze_fg_fla.Wall_22_102)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_22_102 extends MovieClip {
public var i:int;
public var mc:MovieClip;
public function Wall_22_102(){
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_fg_fla
Section 109
//Wall_23_114 (overmaze_fg_fla.Wall_23_114)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_23_114 extends MovieClip {
public var i:int;
public function Wall_23_114(){
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_fg_fla
Section 110
//Wall_24_117 (overmaze_fg_fla.Wall_24_117)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_24_117 extends MovieClip {
public var i:int;
public var ich:int;
public var mc:MovieClip;
public function Wall_24_117(){
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_fg_fla
Section 111
//Wall_25_130 (overmaze_fg_fla.Wall_25_130)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_25_130 extends MovieClip {
public var i:int;
public var ich:int;
public var mc:MovieClip;
public function Wall_25_130(){
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_fg_fla
Section 112
//Wall_26_144 (overmaze_fg_fla.Wall_26_144)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_26_144 extends MovieClip {
public var i:int;
public var ich:int;
public var mc:MovieClip;
public function Wall_26_144(){
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_fg_fla
Section 113
//Wall_27_151 (overmaze_fg_fla.Wall_27_151)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_27_151 extends MovieClip {
public var i:int;
public var ich:int;
public var mc:MovieClip;
public function Wall_27_151(){
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_fg_fla
Section 114
//Wall_28_161 (overmaze_fg_fla.Wall_28_161)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_28_161 extends MovieClip {
public var i:int;
public var ich:int;
public var mc:MovieClip;
public function Wall_28_161(){
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_fg_fla
Section 115
//Wall_29_168 (overmaze_fg_fla.Wall_29_168)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_29_168 extends MovieClip {
public var i:int;
public var ich:int;
public var mc:MovieClip;
public function Wall_29_168(){
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_fg_fla
Section 116
//Wall_30_178 (overmaze_fg_fla.Wall_30_178)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_30_178 extends MovieClip {
public var i:int;
public var ich:int;
public var mc:MovieClip;
public function Wall_30_178(){
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_fg_fla
Section 117
//Wall_7_32 (overmaze_fg_fla.Wall_7_32)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_7_32 extends MovieClip {
public function Wall_7_32(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package overmaze_fg_fla
Section 118
//Wall_8_35 (overmaze_fg_fla.Wall_8_35)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_8_35 extends MovieClip {
public function Wall_8_35(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
stop();
}
function frame1(){
stop();
}
}
}//package overmaze_fg_fla
Section 119
//Wall_9_38 (overmaze_fg_fla.Wall_9_38)
package overmaze_fg_fla {
import flash.display.*;
public dynamic class Wall_9_38 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_38(){
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_fg_fla
Section 120
//CMusicLoop (CMusicLoop)
package {
import flash.media.*;
public class CMusicLoop extends Sound {
}
}//package
Section 121
//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 122
//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 123
//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 124
//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 125
//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 126
//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 127
//MX (MX)
package {
import flash.display.*;
import flash.geom.*;
public class MX {
public static const rad2deg:Number = 57.2957795130823;
public static const deg2rad:Number = 0.0174532925199433;
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 128
//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