Section 1
//GCSWFConnection (gc.utils.GCSWFConnection)
package gc.utils {
import flash.events.*;
import flash.net.*;
public class GCSWFConnection extends EventDispatcher {
protected var _host:Boolean;
protected var _connected:Boolean;
protected var _baseID:String;
public var clientVersion:String;
protected var _callbackObjects:Array;
protected var _lc:LocalConnection;
protected var _version:String;
protected var _myID:String;
protected var _client:Object;
protected var _logName:String;// = "GC-API"
protected var _close:Boolean;
protected var _extID:String;
protected var _queuedMessages:Array;
public static const CONNECTED:String = "CONNECTED";
public function GCSWFConnection(_arg1:String, _arg2:Object, _arg3:String="unknown"){
var connectionID = _arg1;
var client = _arg2;
var version = _arg3;
super();
_connected = false;
_host = true;
_queuedMessages = [];
_close = false;
_client = client;
_version = version;
_baseID = connectionID.split(":").join("");
_lc = new LocalConnection();
_lc.allowDomain("*");
_lc.allowInsecureDomain("*");
_lc.client = this;
_lc.addEventListener(StatusEvent.STATUS, onStatus);
try {
_lc.connect((_baseID + "_HOST"));
} catch(e:ArgumentError) {
_host = false;
};
_myID = (_baseID + (_host) ? "_HOST" : "_CLIENT");
_extID = (_baseID + (_host) ? "_CLIENT" : "_HOST");
if (!_host){
try {
_lc.connect(_myID);
} catch(e:ArgumentError) {
trace((("[" + _logName) + "] [GCSWFConnection] ERROR! Failed to connect"));
};
_lc.send(_extID, "GC_utils_GCSWFConnection_init", _version);
trace((("[" + _logName) + "] [GCSWFConnection] Connected as client.."));
} else {
trace((("[" + _logName) + "] [GCSWFConnection] Connected as host.."));
};
}
protected function bridgeConnected():void{
var _local2:String;
var _local3:Array;
var _local4:Array;
var _local1:int;
while (_local1 < _queuedMessages.length) {
_local2 = _queuedMessages[_local1].methodName;
_local3 = _queuedMessages[_local1].methodArgs;
_local4 = [_local2];
if (_local3){
_local4 = _local4.concat(_local3);
};
send.apply(null, _local4);
_local1++;
};
_queuedMessages = [];
if (_close){
close();
};
}
public function GC_utils_GCSWFConnection_init(_arg1:String):void{
trace((("[" + _logName) + "] [GCSWFConnection] Reccieved Init"));
if (_host){
_lc.send(_extID, "GC_utils_GCSWFConnection_init", _version);
};
_connected = true;
clientVersion = _arg1;
bridgeConnected();
dispatchEvent(new Event(CONNECTED));
}
public function send(_arg1:String, ... _args):void{
if (_connected){
_args.unshift(_arg1);
_args.unshift("GC_utils_GCSWFConnection_receive");
_args.unshift(_extID);
_lc.send.apply(_lc, _args);
} else {
_queuedMessages.push({methodName:_arg1, methodArgs:_args});
};
}
public function get connected():Boolean{
return (_connected);
}
public function get id():String{
return (_baseID);
}
private function onStatus(_arg1:StatusEvent):void{
if (_arg1.level == "error"){
};
}
public function GC_utils_GCSWFConnection_receive(_arg1:String, ... _args):void{
var methodName = _arg1;
var args = _args;
try {
_client[methodName].apply(_client, args);
} catch(e) {
};
}
public function close():void{
trace((("[" + _logName) + "] [GCSWFConnection] Connection Closing"));
if (_queuedMessages.length != 0){
_close = true;
return;
};
try {
_lc.close();
} catch(e) {
};
_lc = null;
_connected = false;
}
}
}//package gc.utils
Section 2
//ActiveX (mdm.ActiveX)
package mdm {
public final class ActiveX {
private var resolver:mdm_ActiveX;// = null
public function ActiveX(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:String):void{
resolver = null;
super();
resolver = new mdm_ActiveX(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function get y():Number{
return (resolver.y);
}
public function hide(_arg1:Boolean=true):void{
resolver.hide();
}
public function loadObject(_arg1:String, _arg2:Boolean=true):void{
resolver.loadObject(_arg1);
}
public function set y(_arg1:Number):void{
resolver.y = _arg1;
}
public function doVerbInPlaceActivate(_arg1:Boolean=true):void{
resolver.doVerbInPlaceActivate();
}
public function runMethod(_arg1:String, _arg2:Number, _arg3:Boolean=true):void{
resolver.runMethod(_arg1, _arg2);
}
public function get width():Number{
return (resolver.width);
}
public function set height(_arg1:Number):void{
resolver.height = _arg1;
}
public function addMethodParam(_arg1:Number, _arg2:String, _arg3:String, _arg4:Boolean=true):void{
resolver.addMethodParam(_arg1, _arg2, _arg3);
}
public function setProperty(_arg1:String, _arg2:String, _arg3:String, _arg4:Boolean):void{
resolver.setProperty(_arg1, _arg2, _arg3);
}
public function doVerbPrimary(_arg1:Boolean=true):void{
resolver.doVerbPrimary();
}
public function getProperty(_arg1:String):String{
return (resolver.getProperty(_arg1));
}
public function doVerbCustom(_arg1:String, _arg2:Boolean=true):void{
resolver.doVerbCustom(_arg1);
}
public function saveObject(_arg1:String, _arg2:Boolean=true):void{
resolver.saveObject(_arg1);
}
public function set width(_arg1:Number):void{
resolver.width = _arg1;
}
public function set visible(_arg1:Boolean):void{
resolver.visible = _arg1;
}
public function doVerbShow(_arg1:Boolean=true):void{
resolver.doVerbShow();
}
public function doVerbHide(_arg1:Boolean=true):void{
resolver.doVerbHide();
}
public function get height():Number{
return (resolver.height);
}
public function set x(_arg1:Number):void{
resolver.x = _arg1;
}
public function doVerbUIActivate(_arg1:Boolean=true):void{
resolver.doVerbUIActivate();
}
public function get visible():Boolean{
return (resolver.visible);
}
public function doVerbOpen(_arg1:Boolean=true):void{
resolver.doVerbOpen();
}
public function runMethodRet(_arg1:String, _arg2:Number):String{
return (resolver.runMethodRet(_arg1, _arg2));
}
public function close(_arg1:Boolean=true):void{
resolver.close();
}
public function doVerbDiscardUndoState(_arg1:Boolean=true):void{
resolver.doVerbDiscardUndoState();
}
public function saveDoc(_arg1:String, _arg2:Boolean=true):void{
resolver.saveDoc(_arg1);
}
public function show(_arg1:Boolean=true):void{
resolver.show();
}
public function get x():Number{
return (resolver.x);
}
}
}//package mdm
dynamic class mdm_ActiveX extends mdm_resolver {
private function mdm_ActiveX(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:String):void{
var _local6:Array;
super();
SetClassName("mdm.ActiveX");
_local6 = new Array();
_local6.push(-1, _arg1, _arg2, _arg3, _arg4, _arg5);
SetDynamic(CallSync("create", _local6));
}
}
Section 3
//AppleScript (mdm.AppleScript)
package mdm {
public final class AppleScript {
private static var resolver:mdm_AppleScript = null;
public function AppleScript():void{
}
private static function internal_resolver():mdm_AppleScript{
if (resolver == null){
resolver = new mdm_AppleScript();
};
return (resolver);
}
public static function getProperty(_arg1:String):String{
return (internal_resolver().getProperty(_arg1));
}
public static function setScript(_arg1:String):void{
internal_resolver().setScript(_arg1);
}
public static function runEvent(_arg1:String, ... _args):String{
return (internal_resolver().runEvent(_arg1, _args));
}
public static function run():Boolean{
return (internal_resolver().run());
}
public static function getResult():String{
return (internal_resolver().getResult());
}
public static function setProperty(_arg1:String, _arg2:String):void{
internal_resolver().setProperty(_arg1, _arg2);
}
public static function getCompilationError():String{
return (internal_resolver().getCompilationError());
}
public static function getLastError():String{
return (internal_resolver().getLastError());
}
public static function compileScript():Boolean{
return (internal_resolver().compileScript());
}
}
}//package mdm
dynamic class mdm_AppleScript extends mdm_resolver {
private function mdm_AppleScript():void{
SetClassName("mdm.AppleScript");
}
}
Section 4
//Application (mdm.Application)
package mdm {
import flash.display.*;
public final class Application {
private static var resolver:mdm_Application = null;
public function Application():void{
}
public static function set onAppExit(_arg1:Function):void{
internal_resolver().onAppExit = _arg1;
}
public static function set onTopHit(_arg1:Function):void{
internal_resolver().onTopHit = _arg1;
}
public static function set onFormMinimize(_arg1:Function):void{
internal_resolver().onFormMinimize = _arg1;
}
public static function delay(_arg1:Number, _arg2:Boolean=true):void{
internal_resolver().delay(_arg1);
}
public static function set onDragDrop(_arg1:Function):void{
internal_resolver().onDragDrop = _arg1;
}
public static function set onAppMinimize(_arg1:Function):void{
internal_resolver().onAppMinimize = _arg1;
}
public static function get Screensaver():mdm_resolver{
return (internal_resolver().Screensaver);
}
public static function set onFormChangeFocus(_arg1:Function):void{
internal_resolver().onFormChangeFocus = _arg1;
}
public static function doEvents(_arg1:Boolean=true):void{
internal_resolver().doEvents();
}
public static function exitWithModalResult(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().exitWithModalResult(_arg1);
}
public static function restore(_arg1:Boolean=true):void{
internal_resolver().restore();
}
public static function minimizeToTray(_arg1:Boolean, _arg2:Boolean=true):void{
internal_resolver().minimizeToTray(_arg1);
}
public static function init(_arg1:DisplayObject, _arg2:Function=null):void{
internal_resolver().init(_arg1, _arg2);
}
public static function exitWithCode(_arg1:Number, _arg2:Boolean=true):void{
internal_resolver().exitWithCode(_arg1);
}
public static function set onBottomHit(_arg1:Function):void{
internal_resolver().onBottomHit = _arg1;
}
public static function get isMinimized():Boolean{
return (internal_resolver().isMinimized);
}
public static function shake(_arg1:Number, _arg2:Boolean=true):void{
internal_resolver().shake(_arg1);
}
public static function set onFormRestore(_arg1:Function):void{
internal_resolver().onFormRestore = _arg1;
}
public static function get Library():mdm_resolver{
return (internal_resolver().Library);
}
public static function exit(_arg1:Boolean=true):void{
internal_resolver().exit();
}
public static function get filename():String{
return (internal_resolver().filename);
}
public static function minimize(_arg1:Boolean=true):void{
internal_resolver().minimize();
}
public static function bringToFront(_arg1:Boolean=true):void{
internal_resolver().bringToFront();
}
public static function getCMDParams(_arg1:Number):String{
return (internal_resolver().getCMDParams(_arg1));
}
public static function set onRightHit(_arg1:Function):void{
internal_resolver().onRightHit = _arg1;
}
public static function set onFormResize(_arg1:Function):void{
internal_resolver().onFormResize = _arg1;
}
public static function get filenameUnix():String{
return (internal_resolver().filenameUnix);
}
public static function set title(_arg1:String):void{
internal_resolver().title = _arg1;
}
public static function sendToBack(_arg1:Boolean=true):void{
internal_resolver().sendToBack();
}
public static function get path():String{
return (internal_resolver().path);
}
public static function printVar(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=true):void{
internal_resolver().printVar(_arg1, _arg2);
}
public static function get Timer():mdm_resolver{
return (internal_resolver().Timer);
}
private static function internal_resolver():mdm_Application{
if (resolver == null){
resolver = new mdm_Application();
};
return (resolver);
}
public static function enableExitHandler(_arg1:Boolean=true):void{
internal_resolver().enableExitHandler();
}
public static function set onAppChangeFocus(_arg1:Function):void{
internal_resolver().onAppChangeFocus = _arg1;
}
public static function get pathUnix():String{
return (internal_resolver().pathUnix);
}
public static function maximize(_arg1:Boolean=true):void{
internal_resolver().maximize();
}
public static function showTips(_arg1:String):Boolean{
return (internal_resolver().showTips(_arg1));
}
public static function get filenameUnicode():String{
return (internal_resolver().filenameUnicode);
}
public static function set onAppRestore(_arg1:Function):void{
internal_resolver().onAppRestore = _arg1;
}
public static function set onMDMScriptException(_arg1:Function):void{
internal_resolver().onMDMScriptException = _arg1;
}
public static function set onArrowKeyPress(_arg1:Function):void{
internal_resolver().onArrowKeyPress = _arg1;
}
public static function set onFormMaximize(_arg1:Function):void{
internal_resolver().onFormMaximize = _arg1;
}
public static function set onLeftHit(_arg1:Function):void{
internal_resolver().onLeftHit = _arg1;
}
public static function set onSplashClosed(_arg1:Function):void{
internal_resolver().onSplashClosed = _arg1;
}
public static function set onFormClose(_arg1:Function):void{
internal_resolver().onFormClose = _arg1;
}
public static function say(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().say(_arg1);
}
public static function exitWithDialog(_arg1:String, _arg2:Boolean):void{
internal_resolver().exitWithDialog(_arg1);
}
public static function getEnvVar(_arg1:String):String{
return (internal_resolver().getEnvVar(_arg1));
}
public static function textAreaEnhance(_arg1:Boolean, _arg2:Boolean=true):void{
internal_resolver().textAreaEnhance(_arg1);
}
public static function get Trial():mdm_resolver{
return (internal_resolver().Trial);
}
public static function get pathUnicode():String{
return (internal_resolver().pathUnicode);
}
public static function getSecureVar(_arg1:String):String{
return (internal_resolver().getSecureVar(_arg1));
}
public static function setEnvVar(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
internal_resolver().setEnvVar(_arg1, _arg2);
}
public static function set onFormReposition(_arg1:Function):void{
internal_resolver().onFormReposition = _arg1;
}
}
}//package mdm
import flash.display.*;
import flash.events.*;
dynamic class mdm_Application extends mdm_resolver {
private var m_onInitCallback:Function;// = null
private var m_bInitDispatched:Boolean;// = false
private function mdm_Application():void{
m_onInitCallback = null;
m_bInitDispatched = false;
super();
SetClassName("mdm.Application");
AddEvents();
AddObject("Library", null);
AddObject("Screensaver", null);
AddObject("Timer", new mdm_Timer());
AddObject("Trial", null);
}
public function init(_arg1:DisplayObject, _arg2:Function=null):void{
var strURL:String;
var dispObj = _arg1;
var onInitCallback = _arg2;
strURL = null;
try {
strURL = dispObj.root.loaderInfo.url;
} catch(e:Error) {
} finally {
if (strURL == null){
try {
!ERROR! strURL = (dispObj as Object).url;
} catch(e:Error) {
};
};
};
AssocURL(strURL);
mdmSetup();
if (onInitCallback != null){
m_onInitCallback = onInitCallback;
dispObj.addEventListener("enterFrame", onInitialise);
};
}
private function onInitialise(_arg1:Event):void{
if (((!(m_bInitDispatched)) && (!((m_onInitCallback == null))))){
m_bInitDispatched = true;
m_onInitCallback();
};
}
private function AddEvents():void{
AddEvent("onAppChangeFocus", false);
AddEvent("onAppExit", false);
AddEvent("onAppMinimize", false);
AddEvent("onAppRestore", false);
AddEvent("onArrowKeyPress", true);
AddEvent("onBottomHit", false);
AddEvent("onDragDrop", true);
AddEvent("onFormChangeFocus", true);
AddEvent("onFormClose", false);
AddEvent("onFormMaximize", true);
AddEvent("onFormMinimize", true);
AddEvent("onFormReposition", true);
AddEvent("onFormResize", true);
AddEvent("onFormRestore", true);
AddEvent("onLeftHit", false);
AddEvent("onMDMScriptException", true);
AddEvent("onRightHit", false);
AddEvent("onSplashClosed", false);
AddEvent("onTopHit", false);
}
}
dynamic class mdm_Timer extends mdm_resolver {
private function mdm_Timer():void{
SetClassName("mdm.Application.Timer");
AddEvents();
}
private function AddEvents():void{
AddEvent("onTimer0", false);
AddEvent("onTimer1", false);
AddEvent("onTimer2", false);
AddEvent("onTimer3", false);
AddEvent("onTimer4", false);
AddEvent("onTimer5", false);
AddEvent("onTimer6", false);
AddEvent("onTimer7", false);
AddEvent("onTimer8", false);
AddEvent("onTimer9", false);
AddEvent("onTimer10", false);
}
}
Section 5
//ASYNC (mdm.ASYNC)
package mdm {
public var ASYNC = {async:true};
}//package mdm
Section 6
//Audio (mdm.Audio)
package mdm {
public final class Audio {
private static var resolver:mdm_Audio = null;
public function Audio():void{
}
public static function isRecording():Boolean{
return (internal_resolver().isRecording());
}
private static function internal_resolver():mdm_Audio{
if (resolver == null){
resolver = new mdm_Audio();
};
return (resolver);
}
public static function startRecordingWithAutoOff(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):void{
internal_resolver().startRecordingWithAudioOff(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public static function stopRecording(_arg1):void{
internal_resolver().stopRecording(_arg1);
}
public static function startRecording(_arg1:String, _arg2:Number, _arg3:Number):void{
internal_resolver().startRecording(_arg1, _arg2, _arg3);
}
}
}//package mdm
dynamic class mdm_Audio extends mdm_resolver {
private function mdm_Audio():void{
SetClassName("mdm.Audio");
}
}
Section 7
//Browser (mdm.Browser)
package mdm {
public final class Browser {
private var resolver:mdm_Browser;// = null
public function Browser(_arg1, _arg2, _arg3, _arg4, _arg5:String, _arg6:Boolean=false):void{
resolver = null;
super();
resolver = new mdm_Browser(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
public function get y():Number{
return (resolver.y);
}
public function hide(_arg1:Boolean=true):void{
resolver.hide();
}
public function get isBusy():Boolean{
return (resolver.isBusy);
}
public function forward(_arg1:Boolean=true):void{
resolver.forward();
}
public function internal_resolver():mdm_Browser{
return (resolver);
}
public function stop(_arg1:Boolean=true):void{
resolver.stop();
}
public function set y(_arg1:Number):void{
resolver.y = _arg1;
}
public function get width():Number{
return (resolver.width);
}
public function get favorities():Array{
return (resolver.favourites);
}
public function setSourceInTarget(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
resolver.setSourceInTarget(_arg1, _arg2);
}
public function printHTMLHeader(_arg1:String, _arg2:Boolean=true):void{
resolver.printHTMLHeader(_arg1);
}
public function set height(_arg1:Number):void{
resolver.height = _arg1;
}
public function printMargins(_arg1:Number=1, _arg2:Number=1, _arg3:Number=1, _arg4:Number=1, _arg5:Boolean=true):void{
resolver.printMargins(_arg1, _arg2, _arg3, _arg4);
}
public function printHeader(_arg1:String, _arg2:Boolean=true):void{
resolver.printHeader(_arg1);
}
public function gotoTarget(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
resolver.gotoTarget(_arg1, _arg2);
}
public function addFavorite(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
resolver.addFavourite(_arg1, _arg2);
}
public function set url(_arg1:String):void{
resolver.url = _arg1;
}
public function get title():String{
return (resolver.title);
}
public function printCopies(_arg1:Number, _arg2:Boolean=true):void{
resolver.printCopies(_arg1);
}
public function refresh(_arg1:Boolean=true):void{
resolver.refresh();
}
public function printPreview(_arg1:Boolean=true):void{
resolver.printPreview();
}
public function goto(_arg1:String, _arg2:Boolean=true):void{
resolver.goto(_arg1);
}
public function set visible(_arg1:Boolean):void{
resolver.visible = _arg1;
}
public function set onDocumentComplete(_arg1:Function):void{
resolver.onDocumentComplete = _arg1;
}
public function back(_arg1:Boolean=true):void{
resolver.back();
}
public function printFooter(_arg1:String, _arg2:Boolean=true):void{
resolver.printCopies(_arg1);
}
public function printOrientation(_arg1:String="portrait", _arg2:Boolean=true):void{
resolver.printfOrientation(_arg1);
}
public function print(_arg1:Boolean=false, _arg2:Boolean=true):void{
resolver.print(_arg1);
}
public function get height():Number{
return (resolver.height);
}
public function get source():String{
return (resolver.source);
}
public function set x(_arg1:Number):void{
resolver.x = _arg1;
}
public function get visible():Boolean{
return (resolver.visible);
}
public function set userAgent(_arg1:String):void{
resolver.userAgent = _arg1;
}
public function set source(_arg1:String):void{
resolver.source = _arg1;
}
public function close(_arg1:Boolean=true):void{
resolver.close();
}
public function set width(_arg1:Number):void{
resolver.width = _arg1;
}
public function show(_arg1:Boolean=true):void{
resolver.show();
}
public function get url():String{
return (resolver.url);
}
public function get x():Number{
return (resolver.x);
}
}
}//package mdm
dynamic class mdm_Browser extends mdm_resolver {
private function mdm_Browser(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean):void{
var _local7:Array;
var _local8:int;
super();
SetClassName("mdm.Browser");
AddEvents();
_local7 = new Array();
_local7.push(-1, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
SetDynamic(CallSync("create", _local7));
_local8 = m_dynamicID;
m_dynBrowsers[_local8] = this;
}
private function AddEvents():void{
AddDynamicEvent("onDocumentComplete", true);
}
}
Section 8
//Clipboard (mdm.Clipboard)
package mdm {
public final class Clipboard {
private static var resolver:mdm_Clipboard = new (null);
;
public function Clipboard():void{
}
public static function paste(_arg1:Boolean=true):void{
internal_resolver().paste();
}
public static function copy(_arg1:Boolean=true):void{
internal_resolver().copy();
}
private static function internal_resolver():mdm_Clipboard{
if (resolver == null){
resolver = new mdm_Clipboard();
};
return (resolver);
}
public static function cut(_arg1:Boolean=true):void{
internal_resolver().cut();
}
public static function clear(_arg1:Boolean=true):void{
internal_resolver().clear();
}
public static function copyString(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().copyString(_arg1);
}
}
}//package mdm
dynamic class mdm_Clipboard extends mdm_resolver {
private function mdm_Clipboard():void{
SetClassName("mdm.Clipboard");
}
}
Section 9
//COMPort (mdm.COMPort)
package mdm {
public final class COMPort {
private static var resolver:mdm_COMPort = null;
public function COMPort():void{
}
public static function set onCOMPortHEXData(_arg1:Function):void{
internal_resolver().onCOMPortHEXData = _arg1;
}
public static function send(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().send(_arg1);
}
public static function set onCOMPortError(_arg1:Function):void{
internal_resolver().onCOMPortError = _arg1;
}
public static function get initialRTS():String{
return (internal_resolver().initialRTS);
}
public static function unsetRTS(_arg1:Boolean=true):void{
internal_resolver().unsetRTS();
}
public static function set onCOMPortDataSent(_arg1:Function):void{
internal_resolver().onCOMPortDataSent = _arg1;
}
public static function get ports():String{
return (internal_resolver().ports);
}
public static function set rxBuffer(_arg1:Number):void{
internal_resolver().rxBuffer = _arg1;
}
public static function setXON(_arg1:Boolean=true):void{
internal_resolver().setXON();
}
public static function unsetBreak(_arg1:Boolean=true):void{
internal_resolver().unsetBreak();
}
private static function internal_resolver():mdm_COMPort{
if (resolver == null){
resolver = new mdm_COMPort();
};
return (resolver);
}
public static function open(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:String, _arg5:Number, _arg6:String, _arg7:Boolean=true):void{
internal_resolver().open(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
public static function set onCOMPortData(_arg1:Function):void{
internal_resolver().onCOMPortData = _arg1;
}
public static function userTreshold(_arg1:Boolean, _arg2:Number, _arg3:Boolean=true):void{
internal_resolver().userTreshold(_arg1, _arg2);
}
public static function sendFileContents(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().sendFileContents(_arg1);
}
public static function sendHEXData(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().sendHEXData(_arg1);
}
public static function setDTR(_arg1:Boolean=true):void{
internal_resolver().setDTR();
}
public static function get txBuffer():Number{
return (internal_resolver().txBuffer);
}
public static function useLineMode(_arg1:Boolean, _arg2:String, _arg3:Boolean=true):void{
internal_resolver().useLineMOde(_arg1, _arg2);
}
public static function get rxBuffer():Number{
return (internal_resolver().rxBuffer);
}
public static function setEcho(_arg1:Boolean, _arg2:Boolean=true):void{
internal_resolver().setEcho(_arg1);
}
public static function set onCOMPortDSRChanged(_arg1:Function):void{
internal_resolver().onCOMPortDSRChanged = _arg1;
}
public static function set onCOMPortCTSChanged(_arg1:Function):void{
internal_resolver().onCOMPortCTSChanged = _arg1;
}
public static function setRTS(_arg1:Boolean=true):void{
internal_resolver().setRTS();
}
public static function set onCOMPortSendProgress(_arg1:Function):void{
internal_resolver().onCOMPortSendProgress = _arg1;
}
public static function setXOFF(_arg1:Boolean=true):void{
internal_resolver().setXOFF();
}
public static function set txBuffer(_arg1:Number):void{
internal_resolver().txBuffer = _arg1;
}
public static function close(_arg1:Boolean=true):void{
internal_resolver().close();
}
public static function unsetDTR(_arg1:Boolean=true):void{
internal_resolver().unsetDTR();
}
public static function setBreak(_arg1:Boolean=true):void{
internal_resolver().setBreak();
}
public static function get initialDTR():String{
return (internal_resolver().initialDTR);
}
}
}//package mdm
dynamic class mdm_COMPort extends mdm_resolver {
private function mdm_COMPort():void{
SetClassName("mdm.COMPort");
AddEvents();
}
private function AddEvents():void{
AddEvent("onCOMPortCTSChanged", true);
AddEvent("onCOMPortDSRChanged", true);
AddEvent("onCOMPortData", true);
AddEvent("onCOMPortHEXData", true);
AddEvent("onCOMPortDataSent", true);
AddEvent("onCOMPortError", true);
AddEvent("onCOMPortSendProgress", true);
}
}
Section 10
//Database (mdm.Database)
package mdm {
public final class Database {
private static var resolver:mdm_Database = null;
private static function internal_resolver():mdm_Database{
if (resolver == null){
resolver = new mdm_Database();
};
return (resolver);
}
public static function get MySQL():mdm_resolver{
return (internal_resolver().MySQL);
}
public static function get MSAccess():mdm_resolver{
return (internal_resolver().MSAccess);
}
public static function get SQLite():mdm_resolver{
return (internal_resolver().SQLite);
}
public static function get ADO():mdm_resolver{
return (internal_resolver().ADO);
}
}
}//package mdm
dynamic class mdm_Database extends mdm_resolver {
private function mdm_Database():void{
SetClassName("mdm.Database");
AddObject("ADO", null);
AddObject("MSAccess", null);
AddObject("MySQL", null);
AddObject("SQLite", null);
}
}
Section 11
//Dialogs (mdm.Dialogs)
package mdm {
public final class Dialogs {
private static var resolver:mdm_Dialogs = null;
public static function inputBox(_arg1:String, _arg2:String):String{
return (internal_resolver().inputBox(_arg1, _arg2));
}
public static function prompt(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().prompt(_arg1);
}
private static function internal_resolver():mdm_Dialogs{
if (resolver == null){
resolver = new mdm_Dialogs();
};
return (resolver);
}
public static function promptModal(_arg1:String, _arg2:String=null, _arg3:String=null, _arg4:Boolean=true):Boolean{
return (internal_resolver().promptModal(_arg1, _arg2, _arg3, _arg4));
}
public static function get BrowseFile():mdm_resolver{
return (internal_resolver().BrowseFile);
}
public static function promptAdvUnicode(_arg1:String, _arg2:String):Boolean{
return (internal_resolver().promptAdvUnicode(_arg1, _arg2));
}
public static function promptAdv(_arg1:String, _arg2:String=null):Boolean{
return (internal_resolver().promptAdv(_arg1, _arg2));
}
public static function promptModalUnicode(_arg1:String, _arg2:String, _arg3:String):Boolean{
return (internal_resolver().promptModalUnicode(_arg1, _arg2, _arg3));
}
public static function get BrowseFileUnicode():mdm_resolver{
return (internal_resolver().BrowseFileUnicode);
}
public static function get BrowseFolder():mdm_resolver{
return (internal_resolver().BrowseFolder);
}
public static function promptUnicode(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().promptUnicode(_arg1);
}
public static function get BrowseFileToSave():mdm_resolver{
return (internal_resolver().BrowseFileToSave);
}
}
}//package mdm
dynamic class mdm_Dialogs extends mdm_resolver {
private function mdm_Dialogs():void{
SetClassName("mdm.Dialogs");
AddObject("BrowseFile", null);
AddObject("BrowseFileUnicode", null);
AddObject("BrowseFileToSave", null);
AddObject("BrowseFolder", null);
}
}
Section 12
//DLL (mdm.DLL)
package mdm {
public final class DLL {
private var resolver:mdm_DLL;// = null
public function DLL(_arg1:String):void{
resolver = null;
super();
resolver = new mdm_DLL(_arg1);
}
public function close(_arg1:Boolean=true):void{
resolver.close();
}
public function addParameter(_arg1:String, _arg2:String):Number{
return (resolver.addParameter(_arg1, _arg2));
}
public function clear(_arg1:Boolean=true):void{
resolver.clear();
}
public function call(_arg1:String, _arg2:String){
return (resolver.call(_arg1, _arg2));
}
}
}//package mdm
dynamic class mdm_DLL extends mdm_resolver {
private function mdm_DLL(_arg1:String):void{
var _local2:Array;
super();
SetClassName("mdm.DLL");
_local2 = new Array();
_local2.push(-1, _arg1);
SetDynamic(CallSync("create", _local2));
}
}
Section 13
//Encryption (mdm.Encryption)
package mdm {
public final class Encryption {
private static var resolver:mdm_Encryption = null;
public function Encryption():void{
}
public static function encryptFile(_arg1:String, _arg2:String, _arg3:String, _arg4:Boolean=true):void{
internal_resolver().encryptFile(_arg1, _arg2, _arg3);
}
private static function internal_resolver():mdm_Encryption{
if (resolver == null){
resolver = new mdm_Encryption();
};
return (resolver);
}
public static function decryptFile(_arg1:String, _arg2:String, _arg3:String, _arg4:Boolean=true):void{
internal_resolver().decryptFile(_arg1, _arg2, _arg3);
}
public static function encryptString(_arg1:String, _arg2:String):String{
return (internal_resolver().encryptString(_arg1, _arg2));
}
public static function decryptString(_arg1:String, _arg2:String):String{
return (internal_resolver().decryptString(_arg1, _arg2));
}
}
}//package mdm
dynamic class mdm_Encryption extends mdm_resolver {
private function mdm_Encryption():void{
SetClassName("mdm.Encryption");
}
}
Section 14
//Exception (mdm.Exception)
package mdm {
public final class Exception {
private static var resolver:mdm_Exception = null;
public function Exception():void{
}
public static function trapErrors(_arg1:Boolean=true):void{
internal_resolver().trapErrors();
}
public static function disableHandler(_arg1:Boolean=true):void{
internal_resolver().disableHandler();
}
public static function get DebugWindow():mdm_resolver{
return (internal_resolver().DebugWindow);
}
public static function enableHandler(_arg1:Boolean=true):void{
internal_resolver().enableHandler();
}
private static function internal_resolver():mdm_Exception{
if (resolver == null){
resolver = new mdm_Exception();
};
return (resolver);
}
public static function resetHandler(_arg1:Boolean=true):void{
internal_resolver().resetHandler();
}
public static function showErrors(_arg1:Boolean=true):void{
internal_resolver().showErrors();
}
}
}//package mdm
dynamic class mdm_Exception extends mdm_resolver {
private function mdm_Exception():void{
SetClassName("mdm.Exception");
AddObject("DebugWindow", null);
}
}
Section 15
//ExtensionsArray (mdm.ExtensionsArray)
package mdm {
public var ExtensionsArray:Array = new Array();
}//package mdm
Section 16
//FileExplorer (mdm.FileExplorer)
package mdm {
public final class FileExplorer {
private static var resolver:mdm_FileExplorer = null;
public function mdm_FileExplorer():void{
}
public static function init(_arg1:Boolean=true):void{
internal_resolver().init();
}
public static function get ListView():mdm_resolver{
return (internal_resolver().ListView);
}
public static function set onFileListViewDblClick(_arg1:Function):void{
internal_resolver().onFileListViewDblClick = _arg1;
}
private static function internal_resolver():mdm_FileExplorer{
if (resolver == null){
resolver = new mdm_FileExplorer();
};
return (resolver);
}
public static function get TreeView():mdm_resolver{
return (internal_resolver().TreeView);
}
public static function get ComboBox():mdm_resolver{
return (internal_resolver().ComboBox);
}
}
}//package mdm
dynamic class mdm_FileExplorer extends mdm_resolver {
private function mdm_FileExplorer():void{
SetClassName("mdm.FileExplorer");
AddEvents();
AddObject("ComboBox", null);
AddObject("ListView", null);
AddObject("TreeView", null);
}
private function AddEvents():void{
AddEvent("onFileListViewDblClick", true);
}
}
Section 17
//FileSystem (mdm.FileSystem)
package mdm {
public final class FileSystem {
private static var resolver:mdm_FileSystem = null;
public function mdm_FileSystem():void{
}
public static function getFileDate(_arg1:String):String{
return (internal_resolver().getFileDate(_arg1));
}
public static function makeFolderUnicode(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().makeFolderUnicode(_arg1);
}
public static function loadFile(_arg1:String):String{
return (internal_resolver().loadFile(_arg1));
}
public static function copyFolder(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
internal_resolver().copyFolder(_arg1, _arg2);
}
public static function saveFileUnicode(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
internal_resolver().saveFileUnicode(_arg1, _arg2);
}
public static function fileExistsUnicode(_arg1:String):Boolean{
return (internal_resolver().fileExistsUnicode(_arg1));
}
public static function appendFileUnicode(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
internal_resolver().appendFileUnicode(_arg1, _arg2);
}
private static function internal_resolver():mdm_FileSystem{
if (resolver == null){
resolver = new mdm_FileSystem();
};
return (resolver);
}
public static function saveFileHEX(_arg1:String, _arg2:String, _arg3:Boolean):void{
internal_resolver().saveFileHEX(_arg1, _arg2);
}
public static function getCurrentDir():String{
return (internal_resolver().getCurrentDir());
}
public static function getAssociation(_arg1:String):String{
return (internal_resolver().getAssociation(_arg1));
}
public static function copyFileUnicode(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
internal_resolver().copyFileUnicode(_arg1, _arg2);
}
public static function deleteFile(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().deleteFile(_arg1);
}
public static function copyFile(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
internal_resolver().copyFile(_arg1, _arg2);
}
public static function setFileAttribs(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
internal_resolver().setFileAttribs(_arg1, _arg2);
}
public static function getFolderSize(_arg1:String):Number{
return (internal_resolver().getFolderSize(_arg1));
}
public static function findFile(_arg1:String):String{
return (internal_resolver().findFile(_arg1));
}
public static function deleteFileUnicode(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().deleteFileUnicode(_arg1);
}
public static function getFileAttribs(_arg1:String):Array{
return (internal_resolver().getFileAttribs(_arg1));
}
public static function saveFile(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
internal_resolver().saveFile(_arg1, _arg2);
}
public static function getFileCreator(_arg1:String):String{
return (internal_resolver().getFileCreator(_arg1));
}
public static function getFileType(_arg1:String):String{
return (internal_resolver().getFileType(_arg1));
}
public static function nativePathToUnixPath(_arg1:String):String{
return (internal_resolver().nativePathToUnixPath(_arg1));
}
public static function getFileTime(_arg1:String):String{
return (internal_resolver().getFileTime(_arg1));
}
public static function get BinaryFile():mdm_resolver{
return (internal_resolver().BinaryFile);
}
public static function deleteFolderUnicode(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().deleteFolderUnicode(_arg1, _arg2);
}
public static function setCurrentDir(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().setCurrentDir(_arg1);
}
public static function loadFileHEX(_arg1:String):String{
return (internal_resolver().loadFileHEX(_arg1));
}
public static function setCurrentDirUnicode(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().setCurrentDirUnicode(_arg1);
}
public static function createShortcut(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:String, _arg7:Boolean=true):void{
internal_resolver().createShortcut(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
public static function folderExists(_arg1:String):Boolean{
return (internal_resolver().folderExists(_arg1));
}
public static function folderExistsUnicode(_arg1:String):Boolean{
return (internal_resolver().folderExistsUnicode(_arg1));
}
public static function getFileList(_arg1:String, _arg2:String):Array{
return (internal_resolver().getFileList(_arg1, _arg2));
}
public static function getFolderList(_arg1:String):Array{
return (internal_resolver().getFolderList(_arg1));
}
public static function getCurrentDirUnicode():String{
return (internal_resolver().getCurrentDirUnicode());
}
public static function getFileSize(_arg1:String):Number{
return (internal_resolver().getFileSize(_arg1));
}
public static function appendFile(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
internal_resolver().appendFile(_arg1, _arg2);
}
public static function fileExists(_arg1:String):Boolean{
return (internal_resolver().filePath(_arg1));
}
public static function deleteFolder(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
internal_resolver().deleteFolder(_arg1, _arg2);
}
public static function getLongPathName(_arg1:String):String{
return (internal_resolver().getLongPathName(_arg1));
}
public static function loadFileUnicode(_arg1:String):String{
return (internal_resolver().loadFileUnicode(_arg1));
}
public static function makeFolder(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().makeFolder(_arg1);
}
public static function getShortPathName(_arg1:String):String{
return (internal_resolver().getShortPathName(_arg1));
}
}
}//package mdm
dynamic class mdm_FileSystem extends mdm_resolver {
private function mdm_FileSystem():void{
SetClassName("mdm.FileSystem");
AddObject("BinaryFile", null);
}
}
Section 18
//Flash (mdm.Flash)
package mdm {
public final class Flash {
private static var resolver:mdm_Flash = null;
public function Flash():void{
}
public static function allowScale(_arg1:Boolean, _arg2:Boolean, _arg3:Boolean=true):void{
internal_resolver().allowScale(_arg1, _arg2);
}
public static function setShowAllMode(_arg1:Boolean=true):void{
internal_resolver().setShowAllMode();
}
public static function callFunctionUnicode(_arg1:String, _arg2:String, _arg3:String, _arg4:Boolean=true):void{
internal_resolver().callFunctionUnicode(_arg1, _arg2, _arg3);
}
private static function internal_resolver():mdm_Flash{
if (resolver == null){
resolver = new mdm_Flash();
};
return (resolver);
}
public static function loadMovie(_arg1:Number, _arg2:String, _arg3:Boolean=true):void{
internal_resolver().loadMovie(_arg1, _arg2);
}
public static function getVarUnicode(_arg1:String):String{
return (internal_resolver().getVarUnicode(_arg1));
}
public static function setSWFDir(_arg1:Boolean=true):void{
internal_resolver().setSWFDir();
}
public static function getVar(_arg1:String):String{
return (internal_resolver().getVar(_arg1));
}
public static function setVar(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
internal_resolver().setVar(_arg1, _arg2);
}
public static function setSWFDirAdv(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().setSWFDirAdv(_arg1);
}
public static function callFunction(_arg1:String, _arg2:String, _arg3:String, _arg4:Boolean=true):void{
internal_resolver().callFunction(_arg1, _arg2, _arg3);
}
public static function setVarUnicode(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
internal_resolver().setVarUnicode(_arg1, _arg2);
}
public static function baseURL(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().baseURL(_arg1);
}
}
}//package mdm
dynamic class mdm_Flash extends mdm_resolver {
private function mdm_Flash():void{
SetClassName("mdm.Flash");
}
}
Section 19
//Forms (mdm.Forms)
package mdm {
public final class Forms {
private static var resolver:mdm_Forms = null;
public function Forms():void{
}
private static function internal_resolver():mdm_Forms{
if (resolver == null){
resolver = new mdm_Forms();
};
return (resolver);
}
public static function getFormByName(_arg1:String):mdm_Form{
return (internal_resolver().getFormByName(_arg1));
}
}
}//package mdm
import flash.external.*;
dynamic class mdm_FormBase extends mdm_resolver {
private function mdm_FormBase(_arg1:String):void{
SetClassName(("mdm.Forms." + _arg1));
}
}
dynamic class mdm_Forms extends mdm_resolver {
private var m_forms:Object;
private var strForms:String;// = "MainForm<{!z!}>normal<{!z!}>thisForm<{!z!!}>SubForm1<{!z!}>transparent<{!z!}><{!z!!}>"
private function mdm_Forms():void{
var _local1:String;
strForms = "MainForm<{!z!}>normal<{!z!}>thisForm<{!z!!}>SubForm1<{!z!}>transparent<{!z!}><{!z!!}>";
super();
m_forms = new Object();
SetClassName("mdm.Forms");
if (!m_bSimulate){
_local1 = ExternalInterface.call("mdm.initforms", m_strFormID, "");
} else {
_local1 = strForms;
};
if (_local1 != null){
InitialiseForms(_local1);
};
}
private function InitialiseForms(_arg1:String):void{
var _local2:Array;
var _local3:int;
_local2 = _arg1.split("<{!z!!}>");
_local3 = 0;
while (_local3 < _local2.length) {
InitialiseForm(_local2[_local3]);
_local3++;
};
}
public function getFormByName(_arg1:String):mdm_Form{
if (m_forms[_arg1] == null){
return (null);
};
return (m_forms[_arg1]);
}
private function InitialiseForm(_arg1:String):void{
var _local2:Array;
var _local3:String;
_local2 = _arg1.split("<{!z!}>");
_local3 = _local2[0];
m_forms[_local3] = new mdm_Form(_local3);
}
}
final class mdm_Form {
private var resolver:mdm_FormBase;// = null
private function mdm_Form(_arg1:String):void{
resolver = null;
super();
resolver = new mdm_FormBase(_arg1);
}
public function get isCreated():Boolean{
return (resolver.getIsCreated());
}
public function hide(_arg1:Boolean=true):void{
resolver.hide();
}
public function dndEnable(_arg1:Boolean=true):void{
resolver.dndEnable();
}
public function hideCaption(_arg1:Boolean, _arg2:Boolean=true):void{
resolver.hideCaptionFlag(_arg1);
}
public function startDrag(_arg1:Boolean=true):void{
resolver.startDrag();
}
public function get windowState():String{
return (resolver.windowState);
}
public function showMask(_arg1:String, _arg2:Boolean=true):void{
resolver.showMask(_arg1);
}
public function set titleUnicode(_arg1:String):void{
resolver.setTitleUnicode(_arg1);
}
public function showStatusBar(_arg1:Boolean=true):void{
resolver.showStatusBar();
}
public function shake(_arg1:Number, _arg2:Boolean=true):void{
resolver.shakeTime(_arg1);
}
public function restore(_arg1:Boolean=true):void{
resolver.restore();
}
public function get x():Number{
return (resolver.getX());
}
public function get y():Number{
return (resolver.getY());
}
public function set x(_arg1:Number):void{
resolver.setX(_arg1);
}
public function setStatusBarText(_arg1:String, _arg2:Boolean=true):void{
resolver.setStatusBarText(_arg1);
}
public function set baseURL(_arg1:String):void{
resolver.setBaseURL(_arg1);
}
public function hideMask(_arg1:Boolean=true):void{
resolver.hideMask();
}
public function callFunction(_arg1:String, _arg2:String, _arg3:String, _arg4:Boolean=true):void{
resolver.callFunction(_arg1, _arg2, _arg3);
}
public function maximize(_arg1:Boolean=true):void{
resolver.maximize();
}
public function setFocus(_arg1:Boolean=true):void{
resolver.setFocus();
}
public function minimize(_arg1:Boolean=true):void{
resolver.minimize();
}
public function hideStatusBar(_arg1:Boolean=true):void{
resolver.hideStatusBar();
}
public function set visible(_arg1:Boolean):void{
resolver.setVisible(_arg1);
}
public function stopDrag(_arg1:Boolean=true):void{
resolver.stopDrag();
}
public function showInScreen(_arg1:Number, _arg2:Boolean=true):void{
resolver.showInScreen(_arg1);
}
public function callFunctionUnicode(_arg1:String, _arg2:String, _arg3:String, _arg4:Boolean=true):void{
resolver.callFunctionUnicode(_arg1, _arg2, _arg3);
}
public function get width():Number{
return (resolver.getWidth());
}
public function set bgColor(_arg1:Number):void{
resolver.setBgColor(_arg1);
}
public function goToFrame(_arg1:Number, _arg2:Boolean=true):void{
resolver.goToFrame(_arg1);
}
public function set y(_arg1:Number):void{
resolver.setY(_arg1);
}
public function addMask(_arg1:Number, _arg2:Number, _arg3:String, _arg4:Boolean=true):void{
resolver.addMask(_arg1, _arg2, _arg3);
}
public function dndDisable(_arg1:Boolean=true):void{
resolver.dndDisable();
}
public function showModal():String{
return (resolver.showModal());
}
public function goToLabel(_arg1:Number, _arg2:Boolean=true):void{
resolver.goToLabel(_arg1);
}
public function get visible():Boolean{
return (resolver.getVisible());
}
public function constraints(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Boolean=true):void{
resolver.constraints(_arg1, _arg2, _arg3, _arg4);
}
public function set title(_arg1:String):void{
resolver.setTitle(_arg1);
}
public function showFullScreen(_arg1:Boolean, _arg2:Boolean=true):void{
resolver.showFullScreen(_arg1);
}
public function set width(_arg1:Number):void{
resolver.setWidth(_arg1);
}
public function set height(_arg1:Number):void{
resolver.setHeight(_arg1);
}
public function set alpha(_arg1:Number):void{
resolver.setAlpha(_arg1);
}
public function show(_arg1:Boolean=true):void{
resolver.show();
}
public function get height():Number{
return (resolver.getHeight());
}
}
Section 20
//FTP (mdm.FTP)
package mdm {
public final class FTP {
private var resolver:mdm_FTP;// = null
public function FTP(_arg1:String, _arg2:Number):void{
resolver = null;
super();
resolver = new mdm_FTP(_arg1, _arg2);
}
public function get success():Boolean{
return (resolver.success);
}
public function get error():String{
return (resolver.error);
}
public function set onListingDone(_arg1:Function):void{
resolver.onListingDone = _arg1;
}
public function set async(_arg1:Boolean):void{
resolver.async = _arg1;
}
public function getDirAttribs(_arg1:String):String{
return (resolver.getDirAttribs(_arg1));
}
public function getFileSize(_arg1:String):Number{
return (resolver.getFileSize(_arg1));
}
public function set onDirDeleted(_arg1:Function):void{
resolver.onDirDeleted = _arg1;
}
public function getFileAttribs(_arg1:String):String{
return (resolver.getFileAttribs(_arg1));
}
public function getDirDateTime(_arg1:String):String{
return (resolver.getDirDateTime(_arg1));
}
public function close(_arg1:Boolean=true):void{
resolver.close();
}
public function set onLoggedIn(_arg1:Function):void{
resolver.onLoggedIn = _arg1;
}
public function set onQuit(_arg1:Function):void{
resolver.onQuit = _arg1;
}
public function set onFileTransferred(_arg1:Function):void{
resolver.onFileTransferred = _arg1;
}
public function set onIndexFileReceived(_arg1:Function):void{
resolver.onIndexFileReceived = _arg1;
}
public function getFolderList():Array{
return (resolver.getFolderList());
}
public function sendCommand(_arg1:String):String{
return (resolver.sendCommand(_arg1));
}
public function sendFile(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
resolver.sendFile(_arg1, _arg2);
}
public function set onFileReceived(_arg1:Function):void{
resolver.onFileReceived = _arg1;
}
public function set currentDir(_arg1:String):void{
resolver.currentDir = _arg1;
}
public function set onReady(_arg1:Function):void{
resolver.onReady = _arg1;
}
public function setProxy(_arg1:String, _arg2:String, _arg3:Number, _arg4:String, _arg5:String, _arg6:Boolean=true):void{
resolver.setProxy(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function getFileDateTime(_arg1:String):String{
return (resolver.getFileDateTime(_arg1));
}
public function abort(_arg1:Boolean=true):void{
resolver.abort();
}
public function set onDirCreated(_arg1:Function):void{
resolver.onDirCreated = _arg1;
}
public function getFileList():Array{
return (resolver.getFileList());
}
public function set serverType(_arg1:String):void{
resolver.serverType = _arg1;
}
public function set onFileDeleted(_arg1:Function):void{
resolver.onFileDeleted = _arg1;
}
public function makeDir(_arg1:String, _arg2:Boolean=true):void{
resolver.makeDir(_arg1);
}
public function set timeout(_arg1:Number):void{
resolver.timeout = _arg1;
}
public function get isBusy():Boolean{
return (resolver.isBusy);
}
public function set NOOP(_arg1:Boolean):void{
resolver.NOOP = _arg1;
}
public function deleteFile(_arg1:String, _arg2:Boolean):void{
resolver.deleteFile(_arg1);
}
public function internal_resolver():mdm_FTP{
return (resolver);
}
public function dirExists(_arg1:String):Boolean{
return (resolver.dirExists(_arg1));
}
public function set onDirChanged(_arg1:Function):void{
resolver.onDirChanges = _arg1;
}
public function set passive(_arg1:Boolean):void{
resolver.passive = _arg1;
}
public function get supportsResume():Boolean{
return (resolver.supportsResume);
}
public function set initialDir(_arg1:String):void{
resolver.initialDir = _arg1;
}
public function get currentDir():String{
return (resolver.currentDir);
}
public function set onFileRenamed(_arg1:Function):void{
resolver.onFileRenamed = _arg1;
}
public function get transferTime():Number{
return (resolver.transferTime);
}
public function set onError(_arg1:Function):void{
resolver.onError = _arg1;
}
public function renameFile(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
resolver.renameFile(_arg1, _arg2);
}
public function refresh(_arg1:Boolean=true):void{
resolver.refresh();
}
public function set transferMode(_arg1:String):void{
resolver.transferMode = _arg1;
}
public function set onResolveLinks(_arg1:Function):void{
resolver.onResolveLinks = _arg1;
}
public function set onAborted(_arg1:Function):void{
resolver.onAborted = _arg1;
}
public function set account(_arg1:String):void{
resolver.account = _arg1;
}
public function deleteDir(_arg1:String, _arg2:Boolean=true):void{
resolver.deleteDir(_arg1);
}
public function set onConnected(_arg1:Function):void{
resolver.onConnected = _arg1;
}
public function set onFileSent(_arg1:Function):void{
resolver.onFileSent = _arg1;
}
public function chDir(_arg1:String, _arg2:Boolean=true):void{
resolver.chDir(_arg1);
}
public function login(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
resolver.login(_arg1, _arg2);
}
public function get bytesTransferred():Number{
return (resolver.bytesTransferred);
}
public function moveFile(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
resolver.moveFile(_arg1, _arg2);
}
public function set onBusy(_arg1:Function):void{
resolver.onBusy = _arg1;
}
public function getFile(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
resolver.getFile(_arg1, _arg2);
}
public function get lastReply():String{
return (resolver.lastReply);
}
public function resumePosition():Number{
return (resolver.resumePosition());
}
public function fileExists(_arg1:String):Boolean{
return (resolver.fileExists(_arg1));
}
public function get loggerData():String{
return (resolver.loggerData);
}
public function get isConnected():Boolean{
return (resolver.isConnected);
}
}
}//package mdm
dynamic class mdm_FTP extends mdm_resolver {
private function mdm_FTP(_arg1:String, _arg2:Number):void{
var _local3:Array;
var _local4:int;
super();
SetClassName("mdm.FTP");
AddEvents();
_local3 = new Array();
_local3.push(-1, _arg1, _arg2);
SetDynamic(CallSync("create", _local3));
_local4 = m_dynamicID;
m_dynFTP[_local4] = this;
}
private function AddEvents():void{
AddDynamicEvent("onAborted", false);
AddDynamicEvent("onBusy", false);
AddDynamicEvent("onConnected", false);
AddDynamicEvent("onDirChanged", false);
AddDynamicEvent("onDirCreated", false);
AddDynamicEvent("onDirDeleted", false);
AddDynamicEvent("onError", false);
AddDynamicEvent("onFileDeleted", false);
AddDynamicEvent("onFileReceived", false);
AddDynamicEvent("onFileRenamed", false);
AddDynamicEvent("onFileSent", false);
AddDynamicEvent("onFileTransferred", false);
AddDynamicEvent("onIndexFileReceived", false);
AddDynamicEvent("onListingDone", false);
AddDynamicEvent("onLoggedIn", false);
AddDynamicEvent("onQuit", false);
AddDynamicEvent("onReady", false);
AddDynamicEvent("onResolveLinks", false);
}
}
Section 21
//HTTP (mdm.HTTP)
package mdm {
public final class HTTP {
private var resolver:mdm_HTTP;// = null
public function HTTP():void{
resolver = null;
super();
resolver = new mdm_HTTP();
}
public function internal_resolver():mdm_HTTP{
return (resolver);
}
public function set onTransferComplete(_arg1:Function):void{
resolver.onTransferComplete = _arg1;
}
public function getString(_arg1:String, _arg2:String="", _arg3:String="", _arg4:Boolean=true):void{
resolver.getString(_arg1, _arg2, _arg3);
}
public function abort(_arg1:Boolean=true):void{
resolver.abort();
}
public function getFile(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Boolean=true):void{
resolver.getFile(_arg1, _arg2, _arg3, _arg4);
}
public function set onBinaryTransferComplete(_arg1:Function):void{
resolver.onBinaryTransferComplete = _arg1;
}
public function close(_arg1:Boolean=true):void{
resolver.close();
}
public function set onError(_arg1:Function):void{
resolver.onError = _arg1;
}
private function AddEvents():void{
resolver.AddDynamicEvent("onBinaryTransferComplete", true);
resolver.AddDynamicEvent("onError", false);
resolver.AddDynamicEvent("onProgress", true);
resolver.AddDynamicEvent("onTransferComplete", true);
}
public function set onProgress(_arg1:Function):void{
resolver.onProgress = _arg1;
}
}
}//package mdm
dynamic class mdm_HTTP extends mdm_resolver {
private function mdm_HTTP():void{
var _local1:Array;
var _local2:int;
super();
SetClassName("mdm.HTTP");
AddEvents();
_local1 = new Array();
_local1.push(-1);
SetDynamic(CallSync("create", _local1));
_local2 = m_dynamicID;
m_dynHTTP[_local2] = this;
}
private function AddEvents():void{
AddDynamicEvent("onBinaryTransferComplete", true);
AddDynamicEvent("onError", false);
AddDynamicEvent("onProgress", true);
AddDynamicEvent("onTransferComplete", true);
}
}
Section 22
//Image (mdm.Image)
package mdm {
public final class Image {
private static var resolver:mdm_Image = null;
public function mdm_Image():void{
}
public static function setJpgSize(_arg1:String, _arg2:Number, _arg3:Number, _arg4:String, _arg5:Number, _arg6:Boolean=true):void{
internal_resolver().setJpgSize(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public static function bmpToJpg(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().bmpToJpg(_arg1);
}
public static function jpgToSwfSlideShow(_arg1:Number, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:Number, _arg7:Boolean=true):void{
internal_resolver().jpgToSwfSlideShow(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
}
public static function jpgToBmp(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().jpgToBmp(_arg1);
}
public static function getJpgSize(_arg1:String):Array{
return (internal_resolver().getJpgSize(_arg1));
}
public static function jpgToSwf(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().jpgToSwf(_arg1, _arg2);
}
private static function internal_resolver():mdm_Image{
if (resolver == null){
resolver = new mdm_Image();
};
return (resolver);
}
public static function bmpToJpgAdv(_arg1:String, _arg2:Number, _arg3:Boolean=true):void{
internal_resolver().bmpToJpgAdv(_arg1, _arg2);
}
public static function pngToSwfTransparent(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().pngToSwfTransparent(_arg1);
}
public static function getSwfHeader(_arg1:String):Array{
return (internal_resolver().getSwfHeader(_arg1));
}
public static function get ScreenCapture():mdm_resolver{
return (internal_resolver().ScreenCapture);
}
public static function pngToSwf(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().pngToSwf(_arg1);
}
public static function bmptToPng(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String, _arg5:Boolean=true):void{
internal_resolver().bmpToPng(_arg1, _arg2, _arg3, _arg4);
}
}
}//package mdm
dynamic class mdm_Image extends mdm_resolver {
private function mdm_Image():void{
SetClassName("mdm.Image");
AddObject("ScreenCapture", null);
}
}
Section 23
//Input (mdm.Input)
package mdm {
public final class Input {
private static var resolver:mdm_Input = null;
public function mdm_Input():void{
}
public static function get Mouse():mdm_resolver{
return (internal_resolver().Mouse);
}
private static function internal_resolver():mdm_Input{
if (resolver == null){
resolver = new mdm_Input();
};
return (resolver);
}
public static function get Twain():mdm_resolver{
return (internal_resolver().Twain);
}
public static function get Joystick():mdm_resolver{
return (internal_resolver().Joystick);
}
public static function get Tablet():mdm_resolver{
return (internal_resolver().Tablet);
}
}
}//package mdm
dynamic class mdm_Tablet extends mdm_resolver {
private function mdm_Tablet():void{
SetClassName("mdm.Input.Tablet");
AddEvents();
}
private function AddEvents():void{
AddEvent("onTabletEvent", true);
}
}
dynamic class mdm_Joystick extends mdm_resolver {
private function mdm_Joystick():void{
SetClassName("mdm.Input.Joystick");
AddEvents();
}
private function AddEvents():void{
AddEvent("onJoystick1ButtonDown", true);
AddEvent("onJoystick1Move", true);
AddEvent("onJoystick2ButtonDown", true);
AddEvent("onJoystick2Move", true);
}
}
dynamic class mdm_Input extends mdm_resolver {
private function mdm_Input():void{
SetClassName("mdm.Input");
AddObject("Joystick", new mdm_Joystick());
AddObject("Mouse", null);
AddObject("Tablet", new mdm_Tablet());
AddObject("Twain", null);
}
}
Section 24
//MacShell (mdm.MacShell)
package mdm {
public final class MacShell {
private static var resolver:mdm_MacShell = null;
public function MacShell():void{
resolver.SetClassName("mdm.MacShell");
}
public static function get output():String{
return (internal_resolver().output);
}
public static function exec(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().exec(_arg1);
}
public static function get isRunning():Boolean{
return (internal_resolver().isRunning);
}
private static function internal_resolver():mdm_MacShell{
if (resolver == null){
resolver = new mdm_MacShell();
};
return (resolver);
}
public static function get exitCode():String{
return (internal_resolver().exitCode);
}
public static function close(_arg1:Boolean=true):void{
internal_resolver().close();
}
}
}//package mdm
dynamic class mdm_MacShell extends mdm_resolver {
private function mdm_MacShell():void{
SetClassName("mdm.MacShell");
}
}
Section 25
//MediaPlayer6 (mdm.MediaPlayer6)
package mdm {
public final class MediaPlayer6 {
private var resolver:mdm_MediaPlayer6;// = null
public function MediaPlayer6(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:String):void{
resolver = null;
super();
resolver = new mdm_MediaPlayer6(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function noMenu(_arg1:Boolean=true):void{
resolver.noMenu();
}
public function hide(_arg1:Boolean=true):void{
resolver.hide();
}
public function set volume(_arg1:Number):void{
resolver.volume = _arg1;
}
public function internal_resolver():mdm_MediaPlayer6{
return (resolver);
}
public function fastForward(_arg1:Boolean=true):void{
resolver.fastForward();
}
public function set y(_arg1:Number):void{
resolver.y = _arg1;
}
public function get width():Number{
return (resolver.width);
}
public function set height(_arg1:Number):void{
resolver.height = _arg1;
}
public function get x():Number{
return (resolver.x);
}
public function stop(_arg1:Boolean=true):void{
resolver.stop();
}
public function set position(_arg1:Number):void{
resolver.position = _arg1;
}
public function set width(_arg1:Number):void{
resolver.width = _arg1;
}
public function get duration():Number{
return (resolver.duration);
}
public function mute(_arg1:Boolean, _arg2:Boolean=true):void{
resolver.mute(_arg1);
}
public function get volume():Number{
return (resolver.volume);
}
public function get balance():Number{
return (resolver.balance);
}
public function set visible(_arg1:Boolean):void{
resolver.visible = _arg1;
}
public function fastReverse(_arg1:Boolean=true):void{
resolver.fastReverse();
}
public function get height():Number{
return (resolver.height);
}
public function get canSeek():Boolean{
return (resolver.canSeek);
}
public function get position():Number{
return (resolver.position);
}
public function get canScan():Boolean{
return (resolver.canScan);
}
public function get isInstalled():Boolean{
return (resolver.isInstalled);
}
public function get visible():Boolean{
return (resolver.visible);
}
public function play(_arg1:Boolean=true):void{
resolver.play();
}
public function pause(_arg1:Boolean=true):void{
resolver.pause();
}
public function set x(_arg1:Number):void{
resolver.x = _arg1;
}
public function close(_arg1:Boolean=true):void{
resolver.close();
}
public function get y():Number{
return (resolver.y);
}
public function fullscreen(_arg1:Boolean=true):void{
resolver.fullscreen();
}
public function show(_arg1:Boolean=true):void{
resolver.show();
}
public function set onMPChangeState(_arg1:Function):void{
resolver.onMPChangeState = _arg1;
}
public function set balance(_arg1:Number):void{
resolver.balance = _arg1;
}
}
}//package mdm
dynamic class mdm_MediaPlayer6 extends mdm_resolver {
private function mdm_MediaPlayer6(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:String):void{
var _local6:Array;
var _local7:int;
super();
SetClassName("mdm.MediaPlayer6");
AddEvents();
_local6 = new Array();
_local6.push(-1, _arg1, _arg2, _arg3, _arg4, _arg5);
SetDynamic(CallSync("create", _local6));
_local7 = m_dynamicID;
m_dynMP6[_local7] = this;
}
private function AddEvents():void{
AddDynamicEvent("onMPChangeState", true);
}
}
Section 26
//MediaPlayer9 (mdm.MediaPlayer9)
package mdm {
public final class MediaPlayer9 {
private var resolver:mdm_MediaPlayer9;// = null
public function MediaPlayer9(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean, _arg7:Boolean, _arg8:String):void{
resolver = null;
super();
resolver = new mdm_MediaPlayer9(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
}
public function hide(_arg1:Boolean=true):void{
resolver.hide();
}
public function set source(_arg1:String):void{
resolver.source = _arg1;
}
public function internal_resolver():mdm_MediaPlayer9{
return (resolver);
}
public function fastForward(_arg1:Boolean=true):void{
resolver.fastForward();
}
public function set y(_arg1:Number):void{
resolver.y = _arg1;
}
public function get width():Number{
return (resolver.width);
}
public function set height(_arg1:Number):void{
resolver.height = _arg1;
}
public function get x():Number{
return (resolver.x);
}
public function stop(_arg1:Boolean=true):void{
resolver.stop();
}
public function set position(_arg1:Number):void{
resolver.position = _arg1;
}
public function get currentMarker():Number{
return (resolver.currentMarker);
}
public function get duration():Number{
return (resolver.duration);
}
public function set onWMP9ChangeState(_arg1:Function):void{
resolver.onWMP9ChangeState = _arg1;
}
public function get mediaName():String{
return (resolver.mediaName);
}
public function set onWMP9Buffering(_arg1:Function):void{
resolver.onWMP9Buffering = _arg1;
}
public function mute(_arg1:Boolean, _arg2:Boolean=true):void{
resolver.mute(_arg1);
}
public function get mediaWidth():Number{
return (resolver.mediaWidth);
}
public function get source():String{
return (resolver.source);
}
public function get balance():Number{
return (resolver.balance);
}
public function set onWMP9PositionChanged(_arg1:Function):void{
resolver.onWMP9PositionChanged = _arg1;
}
public function get volume():Number{
return (resolver.volume);
}
public function set onWMP9Error(_arg1:Function):void{
resolver.onWMP9Error = _arg1;
}
public function set visible(_arg1:Boolean):void{
resolver.visible = _arg1;
}
public function fastReverse(_arg1:Boolean=true):void{
resolver.fastReverse();
}
public function get height():Number{
return (resolver.height);
}
public function get canSeek():Boolean{
return (resolver.canSeek);
}
public function get position():Number{
return (resolver.position);
}
public function get mediaHeight():Number{
return (resolver.mediaHeight);
}
public function get canScan():Boolean{
return (resolver.canScan);
}
public function set width(_arg1:Number):void{
resolver.width = _arg1;
}
public function get isInstalled():Boolean{
return (resolver.isInstalled);
}
public function get visible():Boolean{
return (resolver.visible);
}
public function play(_arg1:Boolean=true):void{
resolver.play();
}
public function set currentMarker(_arg1:Number):void{
resolver.currentMarker = _arg1;
}
public function pause(_arg1:Boolean=true):void{
resolver.pause();
}
public function set x(_arg1:Number):void{
resolver.x = _arg1;
}
public function close(_arg1:Boolean=true):void{
resolver.close();
}
public function get y():Number{
return (resolver.y);
}
public function featureAvailable(_arg1:String):Boolean{
return (resolver.featureAvailable(_arg1));
}
public function set volume(_arg1:Number):void{
resolver.volume = _arg1;
}
public function get markerCount():Number{
return (resolver.markerCount);
}
public function show(_arg1:Boolean=true):void{
resolver.show();
}
public function set balance(_arg1:Number):void{
resolver.balance = _arg1;
}
}
}//package mdm
dynamic class mdm_MediaPlayer9 extends mdm_resolver {
private function mdm_MediaPlayer9(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean, _arg7:Boolean, _arg8:String):void{
var _local9:Array;
var _local10:int;
super();
SetClassName("mdm.MediaPlayer9");
AddEvents();
_local9 = new Array();
_local9.push(-1, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
SetDynamic(CallSync("create", _local9));
_local10 = m_dynamicID;
m_dynMP9[_local10] = this;
}
private function AddEvents():void{
AddDynamicEvent("onWMP9ChangeState", true);
AddDynamicEvent("onWMP9Buffering", true);
AddDynamicEvent("onWMP9Error", true);
AddDynamicEvent("onWMP9PositionChanged", true);
}
}
Section 27
//Menu (mdm.Menu)
package mdm {
public final class Menu {
private static var resolver:mdm_Menu = null;
public function mdm_Menu():void{
}
private static function internal_resolver():mdm_Menu{
if (resolver == null){
resolver = new mdm_Menu();
};
return (resolver);
}
public static function get Main():mdm_resolver{
return (internal_resolver().Main);
}
public static function get Tray():mdm_resolver{
return (internal_resolver().Tray);
}
public static function get Context():mdm_resolver{
return (internal_resolver().Context);
}
}
}//package mdm
dynamic class mdm_Menu extends mdm_resolver {
private function mdm_Menu():void{
SetClassName("mdm.Menu");
AddObject("Context", null);
AddObject("Main", null);
AddObject("Tray", null);
}
}
Section 28
//Network (mdm.Network)
package mdm {
public final class Network {
private static var resolver:mdm_Network = null;
public function mdm_Network():void{
}
public static function get TCP():mdm_resolver{
return (internal_resolver().TCP);
}
public static function getIPByHost(_arg1:String):String{
return (internal_resolver().getIPByHost(_arg1));
}
public static function checkConnection():Boolean{
return (internal_resolver().checkConnection());
}
private static function internal_resolver():mdm_Network{
if (resolver == null){
resolver = new mdm_Network();
};
return (resolver);
}
public static function get HTTPD():mdm_resolver{
return (internal_resolver().HTTPD);
}
public static function checkConnectionAdv():String{
return (internal_resolver().checkConnectionAdv());
}
public static function get UDP():mdm_resolver{
return (internal_resolver().UDP);
}
public static function get isPresent():Boolean{
return (internal_resolver().isPresent);
}
public static function get IPAddress():String{
return (internal_resolver().IPAddress);
}
public static function get Mail():mdm_resolver{
return (internal_resolver().Mail);
}
public static function checkConnectionPing(_arg1:String, _arg2:Number):Boolean{
return (internal_resolver().checkConnectionPing(_arg1, _arg2));
}
public static function getURL(_arg1:String, _arg2:Boolean=true):String{
return (internal_resolver().getURL(_arg1));
}
public static function getMACAddress(_arg1:Number):String{
return (internal_resolver().getMACAddress(_arg1));
}
public static function getHostByIP(_arg1:String):String{
return (internal_resolver().getHostByIP(_arg1));
}
}
}//package mdm
dynamic class mdm_UDP_Socket extends mdm_resolver {
private function mdm_UDP_Socket():void{
SetClassName("mdm.Network.UDP.Socket");
AddEvents();
}
private function AddEvents():void{
AddEvent("onData", true);
}
}
dynamic class mdm_Network extends mdm_resolver {
private function mdm_Network():void{
SetClassName("mdm.Network");
AddObject("HTTPD", new mdm_HTTPD());
AddObject("Mail", null);
AddObject("TCP", new mdm_TCP());
AddObject("UDP", new mdm_UDP());
}
}
dynamic class mdm_HTTPD extends mdm_resolver {
private function mdm_HTTPD():void{
SetClassName("mdm.Network.HTTPD");
AddEvents();
}
private function AddEvents():void{
AddEvent("onRequest", true);
}
}
dynamic class mdm_UDP extends mdm_resolver {
private function mdm_UDP():void{
SetClassName("mdm.Network.UDP");
AddObject("Socket", new mdm_UDP_Socket());
AddObject("TFTP", null);
}
}
dynamic class mdm_TCP extends mdm_resolver {
private function mdm_TCP():void{
SetClassName("mdm.Network.TCP");
AddObject("FileServer", null);
AddObject("ProxyHTTP", null);
}
}
Section 29
//packager (mdm.packager)
package mdm {
import flash.display.*;
public class packager extends MovieClip {
private var dummySystem:System;
private var dummyInput:Input;
private var dummyAudio:Audio;
private var dummyRealMedia:RealMedia;
private var dummyDll:DLL;
private var dummyMenu:Menu;
private var dummyHTTP:HTTP;
private var dummyDatabase:Database;
private var dummyPDF6:PDF6;
private var ASYNC;
private var dummyNetwork:Network;
private var dummyDialogs:Dialogs;
private var dummyEncryption:Encryption;
private var dummyRosetta:Rosetta;
private var dummyForms:Forms;
public var boundingBoxClip:MovieClip;
private var dummyFlash:Flash;
private var dummyActiveX:ActiveX;
private var dummyException:Exception;
private var dummyApplication:Application;
private var dummyBrowser:Browser;
private var dummyFileSystem:FileSystem;
private var dummyFTP:FTP;
private var dummyProcess:Process;
private var dummyPDF7:PDF7;
private var SYNC;
private var dummyImage:Image;
private var dummyMediaPlayer6:MediaPlayer6;
private var dummyStrings:Strings;
private var dummyMediaPlayer9:MediaPlayer9;
private var dummyFileExplorer:FileExplorer;
private var dummyClipboard:Clipboard;
private var dummyShockwave:Shockwave;
private var dummyCOMPort:COMPort;
private var dummyQuickTime:QuickTime;
private var dummyMacShell:MacShell;
private var dummyAppleScript:AppleScript;
public function packager(){
ASYNC = ASYNC;
SYNC = SYNC;
}
}
}//package mdm
Section 30
//PDF6 (mdm.PDF6)
package mdm {
public final class PDF6 {
private var resolver:mdm_PDF6;// = null
public function PDF6(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String):void{
resolver = null;
super();
resolver = new mdm_PDF6(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function hide(_arg1:Boolean=true):void{
resolver.hide();
}
public function lastPage(_arg1:Boolean=true):void{
resolver.lastPage();
}
public function loadFile(_arg1:String, _arg2:Boolean=true):void{
resolver.loadFile(_arg1);
}
public function printWithDialog(_arg1:Boolean=true):void{
resolver.printWithDialog();
}
public function get scrollbars():Boolean{
return (resolver.scrollbars);
}
public function set height(_arg1:Number):void{
resolver.height = _arg1;
}
public function set width(_arg1:Number):void{
resolver.width = _arg1;
}
public function set y(_arg1:Number):void{
resolver.y = _arg1;
}
public function get width():Number{
return (resolver.width);
}
public function printPages(_arg1:Number, _arg2:Number, _arg3:Boolean=true):void{
resolver.printPages(_arg1, _arg2);
}
public function set scrollbars(_arg1:Boolean):void{
resolver.scrollbars = _arg1;
}
public function firstPage(_arg1:Boolean=true):void{
resolver.firstPage();
}
public function nextPage(_arg1:Boolean=true):void{
resolver.nextPage();
}
public function set visible(_arg1:Boolean):void{
resolver.visible = _arg1;
}
public function previousPage(_arg1:Boolean=true):void{
resolver.previousPage();
}
public function get height():Number{
return (resolver.height);
}
public function print(_arg1:Boolean=true):void{
resolver.print();
}
public function set x(_arg1:Number):void{
resolver.x = _arg1;
}
public function get visible():Boolean{
return (resolver.visible);
}
public function printAll(_arg1:Boolean=true):void{
resolver.printAll();
}
public function setCurrentPage(_arg1:Number, _arg2:Boolean=true):void{
resolver.setCurrentPage(_arg1);
}
public function set toolbar(_arg1:Boolean):void{
resolver.toolbar = _arg1;
}
public function close(_arg1:Boolean=true):void{
resolver.close();
}
public function get y():Number{
return (resolver.y);
}
public function get toolbar():Boolean{
return (resolver.toolbar);
}
public function show(_arg1:Boolean=true):void{
resolver.show();
}
public function get x():Number{
return (resolver.x);
}
}
}//package mdm
dynamic class mdm_PDF6 extends mdm_resolver {
private function mdm_PDF6(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String):void{
var _local6:Array;
super();
SetClassName("mdm.PDF6");
_local6 = new Array();
_local6.push(-1, _arg1, _arg2, _arg3, _arg4, _arg5);
SetDynamic(CallSync("create", _local6));
}
}
Section 31
//PDF7 (mdm.PDF7)
package mdm {
public final class PDF7 {
private var resolver:mdm_PDF7;// = null
public function PDF7(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String):void{
resolver = null;
super();
resolver = new mdm_PDF7(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function hide(_arg1:Boolean=true):void{
resolver.hide();
}
public function lastPage(_arg1:Boolean=true):void{
resolver.lastPage();
}
public function loadFile(_arg1:String, _arg2:Boolean=true):void{
resolver.loadFile(_arg1);
}
public function printWithDialog(_arg1:Boolean=true):void{
resolver.printWithDialog();
}
public function get scrollbars():Boolean{
return (resolver.scrollbars);
}
public function set height(_arg1:Number):void{
resolver.height = _arg1;
}
public function set width(_arg1:Number):void{
resolver.width = _arg1;
}
public function set y(_arg1:Number):void{
resolver.y = _arg1;
}
public function get width():Number{
return (resolver.width);
}
public function printPages(_arg1:Number, _arg2:Number, _arg3:Boolean=true):void{
resolver.printPages(_arg1, _arg2);
}
public function set scrollbars(_arg1:Boolean):void{
resolver.scrollbars = _arg1;
}
public function firstPage(_arg1:Boolean=true):void{
resolver.firstPage();
}
public function nextPage(_arg1:Boolean=true):void{
resolver.nextPage();
}
public function set visible(_arg1:Boolean):void{
resolver.visible = _arg1;
}
public function previousPage(_arg1:Boolean=true):void{
resolver.previousPage();
}
public function get height():Number{
return (resolver.height);
}
public function print(_arg1:Boolean=true):void{
resolver.print();
}
public function set x(_arg1:Number):void{
resolver.x = _arg1;
}
public function get visible():Boolean{
return (resolver.visible);
}
public function printAll(_arg1:Boolean=true):void{
resolver.printAll();
}
public function setCurrentPage(_arg1:Number, _arg2:Boolean=true):void{
resolver.setCurrentPage(_arg1);
}
public function set toolbar(_arg1:Boolean):void{
resolver.toolbar = _arg1;
}
public function close(_arg1:Boolean=true):void{
resolver.close();
}
public function get y():Number{
return (resolver.y);
}
public function get toolbar():Boolean{
return (resolver.toolbar);
}
public function show(_arg1:Boolean=true):void{
resolver.show();
}
public function get x():Number{
return (resolver.x);
}
}
}//package mdm
dynamic class mdm_PDF7 extends mdm_resolver {
private function mdm_PDF7(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:String):void{
var _local6:Array;
super();
SetClassName("mdm.PDF7");
_local6 = new Array();
_local6.push(-1, _arg1, _arg2, _arg3, _arg4, _arg5);
SetDynamic(CallSync("create", _local6));
}
}
Section 32
//Process (mdm.Process)
package mdm {
public final class Process {
private static var resolver:mdm_Process = null;
public function mdm_Process():void{
resolver.SetClassName("mdm.Process");
}
public static function killById(_arg1:Number, _arg2:Number, _arg3:Boolean=true):void{
internal_resolver().killById(_arg1, _arg2);
}
public static function get lastId():Number{
return (internal_resolver().lastId);
}
public static function get isOpen():Boolean{
return (internal_resolver().isOpen);
}
private static function internal_resolver():mdm_Process{
if (resolver == null){
resolver = new mdm_Process();
};
return (resolver);
}
public static function create(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String, _arg9:Number, _arg10:Number, _arg11:Boolean=true):void{
internal_resolver().create(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10);
}
public static function kill(_arg1:Boolean=true):void{
internal_resolver().kill();
}
public static function close(_arg1:Boolean=true):void{
internal_resolver().close();
}
}
}//package mdm
dynamic class mdm_Process extends mdm_resolver {
private function mdm_Process():void{
SetClassName("mdm.Process");
}
}
Section 33
//QuickTime (mdm.QuickTime)
package mdm {
public final class QuickTime {
private var resolver:mdm_QuickTime;// = null
public function QuickTime(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:String):void{
resolver = null;
super();
resolver = new mdm_QuickTime(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function hide(_arg1:Boolean=true):void{
resolver.hide();
}
public function stop(_arg1:Boolean=true):void{
resolver.stop();
}
public function set y(_arg1:Number):void{
resolver.y = _arg1;
}
public function set width(_arg1:Number):void{
resolver.width = _arg1;
}
public function get width():Number{
return (resolver.width);
}
public function set height(_arg1:Number):void{
resolver.height = _arg1;
}
public function set position(_arg1:Number):void{
resolver.position = _arg1;
}
public function get duration():Number{
return (resolver.duration);
}
public function mute(_arg1:Boolean, _arg2:Boolean=true):void{
resolver.mute(_arg1);
}
public function showControl(_arg1:Boolean=true):void{
resolver.showControl();
}
public function set visible(_arg1:Boolean):void{
resolver.visible = _arg1;
}
public function get height():Number{
return (resolver.height);
}
public function get position():Number{
return (resolver.position);
}
public function get isInstalled():Boolean{
return (resolver.isInstalled);
}
public function get visible():Boolean{
return (resolver.visible);
}
public function play(_arg1:Boolean=true):void{
resolver.play();
}
public function pause(_arg1:Boolean=true):void{
resolver.pause();
}
public function set x(_arg1:Number):void{
resolver.x = _arg1;
}
public function close(_arg1:Boolean=true):void{
resolver.close();
}
public function get y():Number{
return (resolver.y);
}
public function hideControl(_arg1:Boolean=true):void{
resolver.hideControl();
}
public function show(_arg1:Boolean=true):void{
resolver.show();
}
public function get x():Number{
return (resolver.x);
}
}
}//package mdm
dynamic class mdm_QuickTime extends mdm_resolver {
private function mdm_QuickTime(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:String):void{
var _local6:Array;
super();
SetClassName("mdm.QuickTime");
_local6 = new Array();
_local6.push(-1, _arg1, _arg2, _arg3, _arg4, _arg5);
SetDynamic(CallSync("create", _local6));
}
}
Section 34
//RealMedia (mdm.RealMedia)
package mdm {
public final class RealMedia {
private var resolver:mdm_RealMedia;// = null
public function RealMedia(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:String):void{
resolver = null;
super();
resolver = new mdm_RealMedia(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function hide(_arg1:Boolean=true):void{
resolver.hide();
}
public function normalSize(_arg1:Boolean=true):void{
resolver.normalSize();
}
public function stop(_arg1:Boolean=true):void{
resolver.stop();
}
public function set y(_arg1:Number):void{
resolver.y = _arg1;
}
public function set width(_arg1:Number):void{
resolver.width = _arg1;
}
public function get width():Number{
return (resolver.width);
}
public function set height(_arg1:Number):void{
resolver.height = _arg1;
}
public function set position(_arg1:Number):void{
resolver.position = _arg1;
}
public function get duration():Number{
return (resolver.duration);
}
public function mute(_arg1:Boolean, _arg2:Boolean=true):void{
resolver.mute(_arg1);
}
public function set visible(_arg1:Boolean):void{
resolver.visible = _arg1;
}
public function get height():Number{
return (resolver.height);
}
public function get position():Number{
return (resolver.position);
}
public function get isInstalled():Boolean{
return (resolver.isInstalled);
}
public function get visible():Boolean{
return (resolver.visible);
}
public function play(_arg1:Boolean=true):void{
resolver.play();
}
public function pause(_arg1:Boolean=true):void{
resolver.pause();
}
public function set x(_arg1:Number):void{
resolver.x = _arg1;
}
public function close(_arg1:Boolean=true):void{
resolver.close();
}
public function get y():Number{
return (resolver.y);
}
public function fullscreen(_arg1:Boolean=true):void{
resolver.fullscreen();
}
public function show(_arg1:Boolean=true):void{
resolver.show();
}
public function get x():Number{
return (resolver.x);
}
}
}//package mdm
dynamic class mdm_RealMedia extends mdm_resolver {
private function mdm_RealMedia(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:String):void{
var _local6:Array;
super();
SetClassName("mdm.RealMedia");
_local6 = new Array();
_local6.push(-1, _arg1, _arg2, _arg3, _arg4, _arg5);
SetDynamic(CallSync("create", _local6));
}
}
Section 35
//Rosetta (mdm.Rosetta)
package mdm {
public final class Rosetta {
private static var resolver:mdm_Rosetta = null;
public function Rosetta():void{
}
private static function internal_resolver():mdm_Rosetta{
if (resolver == null){
resolver = new mdm_Rosetta();
};
return (resolver);
}
}
}//package mdm
dynamic class mdm_Rosetta extends mdm_resolver {
private function mdm_Rosetta():void{
SetClassName("mdm.Rosetta");
}
}
Section 36
//Shockwave (mdm.Shockwave)
package mdm {
public final class Shockwave {
private var resolver:mdm_Shockwave;// = null
public function Shockwave(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:String):void{
resolver = null;
super();
resolver = new mdm_Shockwave(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function stop(_arg1:Boolean=true):void{
resolver.stop();
}
public function swForeColor(_arg1:Number, _arg2:Boolean=true):void{
resolver.swForeColor(_arg1);
}
public function evaluateScript(_arg1:String, _arg2:Boolean=true):void{
resolver.evaluateScript(_arg1);
}
public function gotoFrame(_arg1:Number, _arg2:Boolean=true):void{
resolver.gotoFrame(_arg1);
}
public function swSound(_arg1:String, _arg2:Boolean=true):void{
resolver.swSound(_arg1);
}
public function gotoMovie(_arg1:String, _arg2:Boolean=true):void{
resolver.gotoMovie(_arg1);
}
public function set height(_arg1:Number):void{
resolver.height = _arg1;
}
public function get x():Number{
return (resolver.x);
}
public function swAudio(_arg1:String, _arg2:Boolean=true):void{
resolver.swAudio(_arg1);
}
public function set width(_arg1:Number):void{
resolver.width = _arg1;
}
public function set y(_arg1:Number):void{
resolver.y = _arg1;
}
public function get width():Number{
return (resolver.width);
}
public function swName(_arg1:String, _arg2:Boolean=true):void{
resolver.swName(_arg1);
}
public function swPreLoadTime(_arg1:Number, _arg2:Boolean=true):void{
resolver.swPreLoadTime(_arg1);
}
public function swVolume(_arg1:Number, _arg2:Boolean=true):void{
resolver.swVolume(_arg1);
}
public function swColor(_arg1:Number, _arg2:Boolean=true):void{
resolver.swColor(_arg1);
}
public function get currentFrame():Number{
return (resolver.currentFrame);
}
public function swList(_arg1:String, _arg2:Boolean=true):void{
resolver.swList(_arg1);
}
public function set visible(_arg1:Boolean):void{
resolver.visible = _arg1;
}
public function swPassword(_arg1:String, _arg2:Boolean=true):void{
resolver.swPassword(_arg1);
}
public function get height():Number{
return (resolver.height);
}
public function swFrame(_arg1:Number, _arg2:Boolean=true):void{
resolver.swFrame(_arg1);
}
public function swBanner(_arg1:String, _arg2:Boolean=true):void{
resolver.swBanner(_arg1);
}
public function swText(_arg1:String, _arg2:Boolean=true):void{
resolver.swText(_arg1);
}
public function get visible():Boolean{
return (resolver.visible);
}
public function play(_arg1:Boolean=true):void{
resolver.play();
}
public function set x(_arg1:Number):void{
resolver.x = _arg1;
}
public function close(_arg1:Boolean=true):void{
resolver.close();
}
public function get y():Number{
return (resolver.y);
}
public function rewind(_arg1:Boolean=true):void{
resolver.rewind();
}
public function set bgcolor(_arg1:String):void{
resolver.bgColor = _arg1;
}
public function swBackColor(_arg1:Number, _arg2:Boolean=true):void{
resolver.swBackColor(_arg1);
}
}
}//package mdm
dynamic class mdm_Shockwave extends mdm_resolver {
private function mdm_Shockwave(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:String):void{
var _local6:Array;
super();
SetClassName("mdm.Shockwave");
_local6 = new Array();
_local6.push(-1, _arg1, _arg2, _arg3, _arg4, _arg5);
SetDynamic(CallSync("create", _local6));
}
}
Section 37
//Strings (mdm.Strings)
package mdm {
public final class Strings {
private static var resolver:mdm_Strings = null;
public function Strings():void{
}
public function position(_arg1:String, _arg2:String, _arg3:Boolean=true):int{
return (internal_resolver().position(_arg1, _arg2));
}
public function replace(_arg1:String, _arg2:String, _arg3:String, _arg4:Boolean=true):String{
return (internal_resolver().replace(_arg1, _arg2, _arg3));
}
private static function internal_resolver():mdm_Strings{
if (resolver == null){
resolver = new mdm_Strings();
};
return (resolver);
}
}
}//package mdm
dynamic class mdm_Strings extends mdm_resolver {
private function mdm_Strings():void{
SetClassName("mdm.Strings");
}
}
Section 38
//SYNC (mdm.SYNC)
package mdm {
public var SYNC = {async:false};
}//package mdm
Section 39
//System (mdm.System)
package mdm {
public final class System {
private static var resolver:mdm_System = null;
public function mdm_System():void{
}
public static function openCDTray(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().openCDTray(_arg1);
}
public static function getDisplayModes():Array{
return (internal_resolver().getDisplayModes());
}
public static function get macVerString():String{
return (internal_resolver().macVerString);
}
public static function get winVerStringDetail():String{
return (internal_resolver().winVerStringDetail);
}
public static function logOff(_arg1:String, _arg2:String, _arg3:Boolean):void{
internal_resolver().logOff(_arg1, _arg2);
}
public static function execUnicode(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().execUnicode(_arg1);
}
public static function setWindowFocus(_arg1:Number, _arg2:Boolean=true):void{
internal_resolver().setWindowFocus(_arg1);
}
public static function restart(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
internal_resolver().restart(_arg1, _arg2);
}
public static function exec(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().exec(_arg1);
}
public static function getMasterVolume():Number{
return (internal_resolver().getMasterVolume());
}
public static function get VBScript():mdm_resolver{
return (internal_resolver().VBScript);
}
public static function getTotalSpace(_arg1:String):Number{
return (internal_resolver().getTotalSpace(_arg1));
}
public static function execStdOut(_arg1:String):String{
return (internal_resolver().execStdOut(_arg1));
}
public static function setMasterVolume(_arg1:Number, _arg2:Boolean=true):void{
internal_resolver().setMasterVolume(_arg1);
}
public static function get RAMSize():Number{
return (internal_resolver().RAMSize);
}
public static function showTaskBar(_arg1:Boolean=true):void{
internal_resolver().showTaskBar();
}
public static function getWindowList():Array{
return (internal_resolver().getWindowList());
}
public static function get CPUSpeed():Number{
return (internal_resolver().CPUSpeed);
}
public static function get winVerString():String{
return (internal_resolver().winVerString);
}
public static function get CDDrive():String{
return (internal_resolver().CDDrive);
}
public static function powerOff(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
internal_resolver().powerOff(_arg1, _arg2);
}
public static function hideTaskBar(_arg1:Boolean=true):void{
internal_resolver().hideTaskBar();
}
public static function setResolution(_arg1:Number, _arg2:Number, _arg3:Number=-1, _arg4:Boolean=true):void{
internal_resolver().setResolution(_arg1, _arg2, _arg3);
}
public static function closeCDTray(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().closeCDTray(_arg1);
}
public static function getResolution():Array{
return (internal_resolver().getResolution());
}
public static function get screenHeight():Number{
return (internal_resolver().screenHeight);
}
public static function taskBarBlink(_arg1:Boolean=true):void{
internal_resolver().taskBarBlink();
}
public static function get screenWidth():Number{
return (internal_resolver().screenWidth);
}
public static function getVolumeName(_arg1:Number):String{
return (internal_resolver().getVolumeName(_arg1));
}
public static function suspend(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
internal_resolver().suspend(_arg1, _arg2);
}
public static function setWallpaper(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().setWallpaper(_arg1);
}
public static function getNumberOfVolumes():Number{
return (internal_resolver().getNumberOfVolumes());
}
public static function getFreeSpace(_arg1:String):Number{
return (internal_resolver().getFreeSpace(_arg1));
}
public static function get isAdmin():Boolean{
return (internal_resolver().isAdmin);
}
public static function get computerName():String{
return (internal_resolver().computerName);
}
public static function postMessage(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Boolean=true):void{
internal_resolver().postMessage(_arg1, _arg2, _arg3, _arg4);
}
private static function internal_resolver():mdm_System{
if (resolver == null){
resolver = new mdm_System();
};
return (resolver);
}
public static function setWallpaperAlt(_arg1:String, _arg2:Boolean=true):void{
internal_resolver().setWallpaperAlt(_arg1);
}
public static function get JScript():mdm_resolver{
return (internal_resolver().JScript);
}
public static function get Paths():mdm_resolver{
return (internal_resolver().Paths);
}
public static function hibernate(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
internal_resolver().hibernate(_arg1, _arg2);
}
public static function get language():String{
return (internal_resolver().language);
}
public static function get Registry():mdm_resolver{
return (internal_resolver().Registry);
}
public static function get localTime():String{
return (internal_resolver().localTime);
}
public static function setWaveBalance(_arg1:Number, _arg2:Boolean=true):void{
internal_resolver().setWaveBalance(_arg1);
}
public static function get computerCompany():String{
return (internal_resolver().computerCompany);
}
public static function sendMessage(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Boolean=true):void{
internal_resolver().sendMessage(_arg1, _arg2, _arg3, _arg4);
}
public static function get computerOwner():String{
return (internal_resolver().computerOwner);
}
public static function getWaveVolume():Number{
return (internal_resolver().getWaveVolume());
}
public static function getHDSerial(_arg1:String):String{
return (internal_resolver().getHDSerial(_arg1));
}
public static function get servicePack():String{
return (internal_resolver().servicePack);
}
public static function get DirectX():mdm_resolver{
return (internal_resolver().DirectX);
}
public static function getWaveBalance():Number{
return (internal_resolver().getWaveBalance());
}
public static function setWaveVolume(_arg1:Number, _arg2:Boolean=true):void{
internal_resolver().setWaveVolume(_arg1);
}
public static function shutDown(_arg1:String, _arg2:String, _arg3:Boolean=true):void{
internal_resolver().shutDown(_arg1, _arg2);
}
public static function setWaveVolumeAdv(_arg1:Number, _arg2:Number, _arg3:Boolean=true):void{
internal_resolver().setWaveVolumeAdv(_arg1, _arg2);
}
}
}//package mdm
dynamic class mdm_System extends mdm_resolver {
private function mdm_System():void{
SetClassName("mdm.System");
AddObject("DirectX", null);
AddObject("JScript", null);
AddObject("Paths", null);
AddObject("Registry", null);
AddObject("VBScript", null);
}
}
Section 40
//MochiAd (mochi.as3.MochiAd)
package mochi.as3 {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class MochiAd {
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function doOnEnterFrame(_arg1:MovieClip):void{
var mc = _arg1;
var f:Function = function (_arg1:Object):void{
if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){
mc.onEnterFrame();
} else {
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
};
mc.addEventListener(Event.ENTER_FRAME, f);
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{
var _local4:MovieClip = new MovieClip();
if (((false) && (_arg3))){
_arg1.addChildAt(_local4, _arg3);
} else {
_arg1.addChild(_local4);
};
_arg1[_arg2] = _local4;
_local4["_name"] = _arg2;
return (_local4);
}
public static function showPreGameAd(_arg1:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var complete:Boolean;
var unloaded:Boolean;
var sendHostProgress:Boolean;
var fn:Function;
var r:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}, ad_progress:function (_arg1:Number):void{
}, progress_override:function (_arg1:Object):Number{
return (NaN);
}, bar_offset:0};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){
options.ad_started();
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
return;
};
clip = options.clip;
var ad_msec:Number = 11000;
var ad_timeout:Number = options.ad_timeout;
if (options.skip){
ad_timeout = 0;
};
delete options.ad_timeout;
var fadeout_time:Number = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
var fn:Function = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
};
var wh:Array = MochiAd._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.x = (w * -0.5);
chk.y = (h * -0.5);
var bar:MovieClip = createEmptyMovieClip(chk, "_mochiad_bar", 4);
if (options.no_progress_bar){
bar.visible = false;
delete options.no_progress_bar;
} else {
bar.x = (10 + options.bar_offset);
bar.y = (h - 20);
};
var bar_w:Number = ((w - bar.x) - 10);
var bar_color:Number = options.color;
delete options.color;
var bar_background:Number = options.background;
delete options.background;
var bar_outline:Number = options.outline;
delete options.outline;
var backing_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 1);
var backing:Object = backing_mc.graphics;
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(bar_w, 0);
backing.lineTo(bar_w, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var inside_mc:MovieClip = createEmptyMovieClip(bar, "_inside", 2);
var inside:Object = inside_mc.graphics;
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo(bar_w, 0);
inside.lineTo(bar_w, 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside_mc.scaleX = 0;
var outline_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 3);
var outline:Object = outline_mc.graphics;
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(bar_w, 0);
outline.lineTo(bar_w, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
complete = false;
unloaded = false;
var progress:Number = Math.min(1, options.progress_override(clip));
var f:Function = function (_arg1:Event):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
complete = true;
if (unloaded){
MochiAd.unload(clip);
};
};
if (!isNaN(progress)){
complete = (progress == 1);
} else {
if (clip.loaderInfo.bytesLoaded == clip.loaderInfo.bytesTotal){
complete = true;
} else {
if ((clip.root is MovieClip)){
r = (clip.root as MovieClip);
if (r.framesLoaded >= r.totalFrames){
complete = true;
} else {
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
};
} else {
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
};
};
};
mc.unloadAd = function ():void{
unloaded = true;
if (complete){
MochiAd.unload(clip);
};
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = _arg1;
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
mc.rpcTestFn = function (_arg1:String):Object{
trace(("[MOCHIAD rpcTestFn] " + _arg1));
return (_arg1);
};
sendHostProgress = false;
mc.sendHostLoadProgress = function (_arg1:String):void{
sendHostProgress = true;
};
chk["onEnterFrame"] = function ():void{
var _local12:Number;
if (((!(this.parent)) || (!(this.parent.parent)))){
delete this["onEnterFrame"];
return;
};
var _local1:Object = this.parent.parent.root;
var _local2:Object = this.parent._mochiad_ctr;
var _local3:Number = (getTimer() - this.started);
var _local4:Boolean;
var _local5:Number = _local1.loaderInfo.bytesTotal;
var _local6:Number = _local1.loaderInfo.bytesLoaded;
var _local7:Number = Math.min(1, options.progress_override(_local1));
if (_local7 == 1){
complete = true;
};
if (complete){
_local6 = Math.max(1, _local6);
_local5 = _local6;
};
var _local8:Number = ((100 * _local6) / _local5);
if (!isNaN(_local7)){
_local8 = (100 * _local7);
};
var _local9:Number = ((100 * _local3) / chk.ad_msec);
var _local10:Object = this._mochiad_bar._inside;
var _local11:Number = Math.min(100, Math.min(((_local8) || (0)), _local9));
_local11 = Math.max(this.last_pcnt, _local11);
this.last_pcnt = _local11;
_local10.scaleX = (_local11 * 0.01);
options.ad_progress(_local11);
if (sendHostProgress){
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local8});
if (_local8 >= 100){
sendHostProgress = false;
};
};
if (!chk.showing){
_local12 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local12 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if ((((_local3 > chk.ad_timeout)) && ((_local8 == 100)))){
options.ad_failed();
_local4 = true;
};
};
};
if (_local3 > chk.ad_msec){
_local4 = true;
};
if (((complete) && (_local4))){
if (unloaded){
MochiAd.unload(_local1);
} else {
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
};
};
};
};
doOnEnterFrame(chk);
}
public static function showClickAwayAd(_arg1:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{
}, ad_finished:function ():void{
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
var wh:Array = MochiAd._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
chk["onEnterFrame"] = function ():void{
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
return;
};
var _local1:Object = this.parent._mochiad_ctr;
var _local2:Number = (getTimer() - this.started);
var _local3:Boolean;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
_local3 = true;
chk.started = getTimer();
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (this.root == null){
_local3 = true;
};
if (_local3){
delete this.onEnterFrame;
};
};
doOnEnterFrame(chk);
}
public static function showInterLevelAd(_arg1:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
var ad_msec:Number = 11000;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time:Number = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
var wh:Array = MochiAd._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = (_arg1 - 250);
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
chk["onEnterFrame"] = function ():void{
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
var _local1:Object = this.parent._mochiad_ctr;
var _local2:Number = (getTimer() - this.started);
var _local3:Boolean;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (_local2 > chk.ad_msec){
_local3 = true;
};
if (_local3){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function showPreloaderAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
MochiAd.showPreGameAd(_arg1);
}
public static function showTimedAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
MochiAd.showInterLevelAd(_arg1);
}
public static function _allowDomains(_arg1:String):String{
var _local2:String = _arg1.split("/")[2].split(":")[0];
if (Security.sandboxType == "application"){
return (_local2);
};
Security.allowDomain("*");
Security.allowDomain(_local2);
Security.allowInsecureDomain("*");
Security.allowInsecureDomain(_local2);
return (_local2);
}
public static function load(_arg1:Object):MovieClip{
var clip:Object;
var mc:MovieClip;
var k:String;
var server:String;
var hostname:String;
var lc:LocalConnection;
var name:String;
var loader:Loader;
var g:Function;
var req:URLRequest;
var v:Object;
var options = _arg1;
var DEFAULTS:Object = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = MochiAd._parseOptions(options, DEFAULTS);
options.swfv = 9;
options.mav = MochiAd.getVersion();
clip = options.clip;
if (!(clip is DisplayObject)){
trace("Warning: Object passed as container clip not a descendant of the DisplayObject type");
return (null);
};
if (MovieClip(clip).stage == null){
trace("Warning: Container clip for ad is not attached to the stage");
return (null);
};
if (!MochiAd._isNetworkAvailable()){
return (null);
};
try {
if (clip._mochiad_loaded){
return (null);
};
} catch(e:Error) {
throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
var depth:Number = options.depth;
delete options.depth;
mc = createEmptyMovieClip(clip, "_mochiad", depth);
var wh:Array = MochiAd._getRes(options, clip);
options.res = ((wh[0] + "x") + wh[1]);
options.server = (options.server + options.id);
delete options.id;
clip._mochiad_loaded = true;
if (clip.loaderInfo.loaderURL.indexOf("http") == 0){
options.as3_swf = clip.loaderInfo.loaderURL;
} else {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
};
var lv:URLVariables = new URLVariables();
for (k in options) {
v = options[k];
if (!(v is Function)){
lv[k] = v;
};
};
server = lv.server;
delete lv.server;
hostname = _allowDomains(server);
lc = new LocalConnection();
lc.client = mc;
name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_");
lc.allowDomain("*", "localhost");
lc.allowInsecureDomain("*", "localhost");
lc.connect(name);
mc.lc = lc;
mc.lcName = name;
lv.lc = name;
lv.st = getTimer();
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
loader = new Loader();
g = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
MochiAd.unload(clip);
};
loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g);
req = new URLRequest(((server + ".swf?cacheBust=") + new Date().getTime()));
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function (_arg1:IOErrorEvent):void{
trace("[MochiAds] Blocked URL");
});
if (!options.skip){
loader.load(req);
};
mc.addChild(loader);
mc._mochiad_ctr = loader;
return (mc);
}
public static function unload(_arg1:Object):Boolean{
if (((_arg1.clip) && (_arg1.clip._mochiad))){
_arg1 = _arg1.clip;
};
if (_arg1.origFrameRate != undefined){
_arg1.stage.frameRate = _arg1.origFrameRate;
};
if (!_arg1._mochiad){
return (false);
};
if (_arg1._mochiad._containerLCName != undefined){
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"});
};
if (_arg1._mochiad.onUnload){
_arg1._mochiad.onUnload();
};
delete _arg1._mochiad_loaded;
delete _arg1._mochiad;
return (true);
}
public static function _cleanup(_arg1:Object):void{
var k:String;
var lc:LocalConnection;
var f:Function;
var mc = _arg1;
if (("lc" in mc)){
lc = mc.lc;
f = function ():void{
try {
lc.client = null;
lc.close();
} catch(e:Error) {
};
};
setTimeout(f, 0);
};
var idx:Number = DisplayObjectContainer(mc).numChildren;
while (idx > 0) {
idx = (idx - 1);
DisplayObjectContainer(mc).removeChildAt(idx);
};
for (k in mc) {
delete mc[k];
};
}
public static function _isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function _getRes(_arg1:Object, _arg2:Object):Array{
var _local6:Array;
var _local3:Object = _arg2.getBounds(_arg2.root);
var _local4:Number = 0;
var _local5:Number = 0;
if (typeof(_arg1.res) != "undefined"){
_local6 = _arg1.res.split("x");
_local4 = parseFloat(_local6[0]);
_local5 = parseFloat(_local6[1]);
} else {
_local4 = (_local3.xMax - _local3.xMin);
_local5 = (_local3.yMax - _local3.yMin);
};
if ((((_local4 == 0)) || ((_local5 == 0)))){
_local4 = _arg2.stage.stageWidth;
_local5 = _arg2.stage.stageHeight;
};
return ([_local4, _local5]);
}
public static function _parseOptions(_arg1:Object, _arg2:Object):Object{
var _local4:String;
var _local5:Array;
var _local6:Number;
var _local7:Array;
var _local3:Object = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
if (_arg1){
for (_local4 in _arg1) {
_local3[_local4] = _arg1[_local4];
};
};
if (_local3.clip == undefined){
throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite."));
};
_arg1 = _local3.clip.loaderInfo.parameters.mochiad_options;
if (_arg1){
_local5 = _arg1.split("&");
_local6 = 0;
while (_local6 < _local5.length) {
_local7 = _local5[_local6].split("=");
_local3[unescape(_local7[0])] = unescape(_local7[1]);
_local6++;
};
};
if (_local3.id == "test"){
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
};
return (_local3);
}
public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{
var _local4:Object;
var _local5:Object;
switch (_arg3.id){
case "setValue":
MochiAd.setValue(_arg1, _arg3.objectName, _arg3.value);
break;
case "getValue":
_local4 = MochiAd.getValue(_arg1, _arg3.objectName);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4);
break;
case "runMethod":
_local5 = MochiAd.runMethod(_arg1, _arg3.method, _arg3.args);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5);
break;
default:
trace(("[mochiads rpc] unknown rpc id: " + _arg3.id));
};
}
public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Array = _arg2.split(".");
var _local5:Number = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return;
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
_arg1[_local4[_local5]] = _arg3;
}
public static function getValue(_arg1:Object, _arg2:String):Object{
var _local3:Array = _arg2.split(".");
var _local4:Number = 0;
while (_local4 < (_local3.length - 1)) {
if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local3[_local4]];
_local4++;
};
return (_arg1[_local3[_local4]]);
}
public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{
var _local4:Array = _arg2.split(".");
var _local5:Number = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
if (typeof(_arg1[_local4[_local5]]) == "function"){
return (_arg1[_local4[_local5]].apply(_arg1, _arg3));
};
return (undefined);
}
public static function adShowing(_arg1:Object):void{
_arg1.origFrameRate = _arg1.stage.frameRate;
_arg1.stage.frameRate = 30;
}
}
}//package mochi.as3
Section 41
//MochiCoins (mochi.as3.MochiCoins)
package mochi.as3 {
public class MochiCoins {
public static const STORE_SHOW:String = "StoreShow";
public static const STORE_HIDE:String = "StoreHide";
public static const ITEM_OWNED:String = "ItemOwned";
public static const ITEM_NEW:String = "ItemNew";
public static const STORE_ITEMS:String = "StoreItems";
public static const ERROR:String = "Error";
public static const IO_ERROR:String = "IOError";
public static const NO_USER:String = "NoUser";
public static var _inventory:MochiInventory;
public static function get inventory():MochiInventory{
return (_inventory);
}
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function showStore(_arg1:Object=null):void{
MochiServices.bringToTop();
MochiServices.send("coins_showStore", {options:_arg1}, null, null);
}
public static function showItem(_arg1:Object=null):void{
if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){
trace("ERROR: showItem call must pass an Object with an item key");
return;
};
MochiServices.bringToTop();
MochiServices.send("coins_showItem", {options:_arg1}, null, null);
}
public static function showVideo(_arg1:Object=null):void{
if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){
trace("ERROR: showVideo call must pass an Object with an item key");
return;
};
MochiServices.bringToTop();
MochiServices.send("coins_showVideo", {options:_arg1}, null, null);
}
public static function getStoreItems():void{
MochiServices.send("coins_getStoreItems");
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
MochiSocial.addEventListener(_arg1, _arg2);
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
MochiSocial.triggerEvent(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
MochiSocial.removeEventListener(_arg1, _arg2);
}
MochiSocial.addEventListener(MochiSocial.LOGGED_IN, function (_arg1:Object):void{
_inventory = new MochiInventory();
});
MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, function (_arg1:Object):void{
_inventory = null;
});
}
}//package mochi.as3
Section 42
//MochiDigits (mochi.as3.MochiDigits)
package mochi.as3 {
public final class MochiDigits {
private var Fragment:Number;
private var Sibling:MochiDigits;
private var Encoder:Number;
public function MochiDigits(_arg1:Number=0, _arg2:uint=0):void{
Encoder = 0;
setValue(_arg1, _arg2);
}
public function get value():Number{
return (Number(this.toString()));
}
public function set value(_arg1:Number):void{
setValue(_arg1);
}
public function addValue(_arg1:Number):void{
value = (value + _arg1);
}
public function setValue(_arg1:Number=0, _arg2:uint=0):void{
var _local3:String = _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 reencode():void{
var _local1:uint = int((2147483647 * Math.random()));
Fragment = (Fragment ^ (_local1 ^ Encoder));
Encoder = _local1;
}
public function toString():String{
var _local1:String = String.fromCharCode((Fragment ^ Encoder));
if (Sibling != null){
_local1 = (_local1 + Sibling.toString());
};
return (_local1);
}
}
}//package mochi.as3
Section 43
//MochiEventDispatcher (mochi.as3.MochiEventDispatcher)
package mochi.as3 {
public class MochiEventDispatcher {
private var eventTable:Object;
public function MochiEventDispatcher():void{
eventTable = {};
}
public function addEventListener(_arg1:String, _arg2:Function):void{
removeEventListener(_arg1, _arg2);
eventTable[_arg1].push(_arg2);
}
public function removeEventListener(_arg1:String, _arg2:Function):void{
var _local3:Object;
if (eventTable[_arg1] == undefined){
eventTable[_arg1] = [];
return;
};
for (_local3 in eventTable[_arg1]) {
if (eventTable[_arg1][_local3] != _arg2){
} else {
eventTable[_arg1].splice(Number(_local3), 1);
};
};
}
public function triggerEvent(_arg1:String, _arg2:Object):void{
var _local3:Object;
if (eventTable[_arg1] == undefined){
return;
};
for (_local3 in eventTable[_arg1]) {
var _local6 = eventTable[_arg1];
_local6[_local3](_arg2);
};
}
}
}//package mochi.as3
Section 44
//MochiEvents (mochi.as3.MochiEvents)
package mochi.as3 {
import flash.display.*;
public class MochiEvents {
public static const ACHIEVEMENT_RECEIVED:String = "AchievementReceived";
public static const ALIGN_TOP_LEFT:String = "ALIGN_TL";
public static const ALIGN_TOP:String = "ALIGN_T";
public static const ALIGN_TOP_RIGHT:String = "ALIGN_TR";
public static const ALIGN_LEFT:String = "ALIGN_L";
public static const ALIGN_CENTER:String = "ALIGN_C";
public static const ALIGN_RIGHT:String = "ALIGN_R";
public static const ALIGN_BOTTOM_LEFT:String = "ALIGN_BL";
public static const ALIGN_BOTTOM:String = "ALIGN_B";
public static const ALIGN_BOTTOM_RIGHT:String = "ALIGN_BR";
public static const FORMAT_SHORT:String = "ShortForm";
public static const FORMAT_LONG:String = "LongForm";
private static var gameStart:Number;
private static var levelStart:Number;
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function startSession(_arg1:String):void{
MochiServices.send("events_beginSession", {achievementID:_arg1}, null, null);
}
public static function setNotifications(_arg1:MovieClip, _arg2:Object):void{
var _local4:Object;
var _local3:Object = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
_local3.clip = _arg1;
MochiServices.send("events_setNotifications", _local3, null, null);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function startPlay(_arg1:String="gameplay"):void{
MochiServices.send("events_setRoundID", {tag:String(_arg1)}, null, null);
}
public static function endPlay():void{
MochiServices.send("events_clearRoundID", null, null, null);
}
public static function trackEvent(_arg1:String, _arg2=null):void{
MochiServices.send("events_trackEvent", {tag:_arg1, value:_arg2}, null, null);
}
}
}//package mochi.as3
Section 45
//MochiInventory (mochi.as3.MochiInventory)
package mochi.as3 {
import flash.events.*;
import flash.utils.*;
public dynamic class MochiInventory extends Proxy {
private var _timer:Timer;
private var _consumableProperties:Object;
private var _syncPending:Boolean;
private var _outstandingID:Number;
private var _syncID:Number;
private var _names:Array;
private var _storeSync:Object;
private static const CONSUMER_KEY:String = "MochiConsumables";
private static const KEY_SALT:String = " syncMaint";
public static const READY:String = "InvReady";
public static const WRITTEN:String = "InvWritten";
public static const ERROR:String = "Error";
public static const IO_ERROR:String = "IoError";
public static const VALUE_ERROR:String = "InvValueError";
public static const NOT_READY:String = "InvNotReady";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
public function MochiInventory():void{
MochiCoins.addEventListener(MochiCoins.ITEM_OWNED, itemOwned);
MochiCoins.addEventListener(MochiCoins.ITEM_NEW, newItems);
MochiSocial.addEventListener(MochiSocial.LOGGED_IN, loggedIn);
MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, loggedOut);
_storeSync = new Object();
_syncPending = false;
_outstandingID = 0;
_syncID = 0;
_timer = new Timer(1000);
_timer.addEventListener(TimerEvent.TIMER, sync);
_timer.start();
if (MochiSocial.loggedIn){
loggedIn();
} else {
loggedOut();
};
}
public function release():void{
MochiCoins.removeEventListener(MochiCoins.ITEM_NEW, newItems);
MochiSocial.removeEventListener(MochiSocial.LOGGED_IN, loggedIn);
MochiSocial.removeEventListener(MochiSocial.LOGGED_OUT, loggedOut);
}
private function loggedOut(_arg1:Object=null):void{
_consumableProperties = null;
}
private function loggedIn(_arg1:Object=null):void{
MochiUserData.get(CONSUMER_KEY, getConsumableBag);
}
private function newItems(_arg1:Object):void{
if (!this[(_arg1.id + KEY_SALT)]){
this[(_arg1.id + KEY_SALT)] = 0;
};
if (!this[_arg1.id]){
this[_arg1.id] = 0;
};
this[(_arg1.id + KEY_SALT)] = (this[(_arg1.id + KEY_SALT)] + _arg1.count);
this[_arg1.id] = (this[_arg1.id] + _arg1.count);
if (_arg1.privateProperties.consumable){
if (!this[_arg1.privateProperties.tag]){
this[_arg1.privateProperties.tag] = 0;
};
this[_arg1.privateProperties.tag] = (this[_arg1.privateProperties.tag] + (_arg1.privateProperties.inc * _arg1.count));
};
}
private function itemOwned(_arg1:Object):void{
_storeSync[_arg1.id] = {properties:_arg1.properties, count:_arg1.count};
}
private function getConsumableBag(_arg1:MochiUserData):void{
var _local2:String;
var _local3:Number;
if (_arg1.error){
triggerEvent(ERROR, {type:IO_ERROR, error:_arg1.error});
return;
};
_consumableProperties = {};
_names = new Array();
if (_arg1.data){
for (_local2 in _arg1.data) {
_names.push(_local2);
_consumableProperties[_local2] = new MochiDigits(_arg1.data[_local2]);
};
};
for (_local2 in _storeSync) {
_local3 = _storeSync[_local2].count;
if (_consumableProperties[(_local2 + KEY_SALT)]){
_local3 = (_local3 - _consumableProperties[_local2]);
};
if (_local3 == 0){
} else {
newItems({id:_local2, count:_local3, properties:_storeSync[_local2].properties});
};
};
triggerEvent(READY, {});
}
private function putConsumableBag(_arg1:MochiUserData):void{
_syncPending = false;
if (_arg1.error){
triggerEvent(ERROR, {type:IO_ERROR, error:_arg1.error});
_outstandingID = -1;
};
triggerEvent(WRITTEN, {});
}
private function sync(_arg1:Event=null):void{
var _local3:String;
if (((_syncPending) || ((_syncID == _outstandingID)))){
return;
};
_outstandingID = _syncID;
var _local2:Object = {};
for (_local3 in _consumableProperties) {
_local2[_local3] = MochiDigits(_consumableProperties[_local3]).value;
};
MochiUserData.put(CONSUMER_KEY, _local2, putConsumableBag);
_syncPending = true;
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return (-1);
};
if (_consumableProperties[_arg1]){
return (MochiDigits(_consumableProperties[_arg1]).value);
};
return (undefined);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function deleteProperty(_arg1):Boolean{
if (!_consumableProperties[_arg1]){
return (false);
};
_names.splice(_names.indexOf(_arg1), 1);
delete _consumableProperties[_arg1];
return (true);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function hasProperty(_arg1):Boolean{
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return (false);
};
if (_consumableProperties[_arg1] == undefined){
return (false);
};
return (true);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{
var _local3:MochiDigits;
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return;
};
if (!(_arg2 is Number)){
triggerEvent(ERROR, {type:VALUE_ERROR, error:"Invalid type", arg:_arg2});
return;
};
if (_consumableProperties[_arg1]){
_local3 = MochiDigits(_consumableProperties[_arg1]);
if (_local3.value == _arg2){
return;
};
_local3.value = _arg2;
} else {
_names.push(_arg1);
_consumableProperties[_arg1] = new MochiDigits(_arg2);
};
_syncID++;
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextNameIndex(_arg1:int):int{
return (((_arg1)>=_names.length) ? 0 : (_arg1 + 1));
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextName(_arg1:int):String{
return (_names[(_arg1 - 1)]);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
}
}//package mochi.as3
Section 46
//MochiScores (mochi.as3.MochiScores)
package mochi.as3 {
import flash.display.*;
import flash.text.*;
public class MochiScores {
public static var onCloseHandler:Object;
public static var onErrorHandler:Object;
private static var boardID:String;
public static function onClose(_arg1:Object=null):void{
if (((((_arg1) && ((_arg1.error == true)))) && (onErrorHandler))){
if (_arg1.errorCode == null){
_arg1.errorCode = "IOError";
};
onErrorHandler(_arg1.errorCode);
MochiServices.doClose();
return;
};
onCloseHandler();
MochiServices.doClose();
}
public static function setBoardID(_arg1:String):void{
MochiServices.warnID(_arg1, true);
MochiScores.boardID = _arg1;
MochiServices.send("scores_setBoardID", {boardID:_arg1});
}
public static function showLeaderboard(_arg1:Object=null):void{
var n:Number;
var options = _arg1;
if (options != null){
delete options.clip;
MochiServices.setContainer();
MochiServices.bringToTop();
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)){
trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'"));
} else {
if ((((n == Number.NEGATIVE_INFINITY)) || ((n == Number.POSITIVE_INFINITY)))){
trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite"));
} else {
if (Math.floor(n) != n){
trace((("WARNING: Submitted score '" + options.score) + "' will be truncated"));
};
options.score = n;
};
};
};
if (options.onDisplay != null){
options.onDisplay();
} else {
if (MochiServices.clip != null){
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onDisplay.");
};
};
};
} else {
options = {};
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onDisplay.");
};
};
if (options.onClose != null){
onCloseHandler = options.onClose;
} else {
onCloseHandler = function ():void{
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.play();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onClose.");
};
};
};
if (options.onError != null){
onErrorHandler = options.onError;
} else {
onErrorHandler = null;
};
if (options.boardID == null){
if (MochiScores.boardID != null){
options.boardID = MochiScores.boardID;
};
};
MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
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 submit(_arg1:Number, _arg2:String, _arg3:Object=null, _arg4:Object=null):void{
_arg1 = Number(_arg1);
if (isNaN(_arg1)){
trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is 'Not a Number'"));
} else {
if ((((_arg1 == Number.NEGATIVE_INFINITY)) || ((_arg1 == Number.POSITIVE_INFINITY)))){
trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is an infinite"));
} else {
if (Math.floor(_arg1) != _arg1){
trace((("WARNING: Submitted score '" + String(_arg1)) + "' will be truncated"));
};
_arg1 = Number(_arg1);
};
};
MochiServices.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4);
}
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 _local3:Number;
var _local4:Number;
var _local5:Object;
var _local6:Object;
var _local7:String;
var _local8:String;
var _local2:Object = {};
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);
}
}
}//package mochi.as3
Section 47
//MochiServices (mochi.as3.MochiServices)
package mochi.as3 {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.geom.*;
public class MochiServices {
private static var _id:String;
private static var _container:Object;
private static var _clip:MovieClip;
private static var _loader:Loader;
private static var _timer:Timer;
private static var _preserved:Object;
private static var _servURL:String = "http://www.mochiads.com/static/lib/services/";
private static var _services:String = "services.swf";
private static var _mochiLC:String = "MochiLC.swf";
private static var _swfVersion:String;
private static var _listenChannelName:String = "__ms_";
private static var _sendChannel:LocalConnection;
private static var _sendChannelName:String;
private static var _connecting:Boolean = false;
private static var _connected:Boolean = false;
public static var netup:Boolean = true;
public static var netupAttempted:Boolean = false;
public static var onError:Object;
public static var widget:Boolean = false;
public static var servicesSync:MochiSync = new MochiSync();
private static var _mochiLocalConnection:MovieClip;
private static var _queue:Array;
private static var _nextCallbackID:Number;
private static var _callbacks:Object;
public static function get id():String{
return (_id);
}
public static function get clip():Object{
return (_container);
}
public static function get childClip():Object{
return (_clip);
}
public static function getVersion():String{
return ("3.8 as3");
}
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(_local2);
Security.allowInsecureDomain(_local2);
};
};
return (_local2);
}
public static function isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function set comChannelName(_arg1:String):void{
if (_arg1 != null){
if (_arg1.length > 3){
_sendChannelName = (_arg1 + "_fromgame");
initComChannels();
};
};
}
public static function get connected():Boolean{
return (_connected);
}
public static function warnID(_arg1:String, _arg2:Boolean):void{
_arg1 = _arg1.toLowerCase();
if (_arg1.length != 16){
trace((("WARNING: " + (_arg2) ? "board" : "game") + " ID is not the appropriate length"));
return;
} else {
if (_arg1 == "1e113c7239048b3f"){
if (_arg2){
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
};
return;
} else {
if (_arg1 == "84993a1de4031cd8"){
if (_arg2){
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
};
return;
};
};
};
var _local3:Number = 0;
while (_local3 < _arg1.length) {
switch (_arg1.charAt(_local3)){
case "0":
case "1":
case "2":
case "3":
case "4":
case "5":
case "6":
case "7":
case "8":
case "9":
case "a":
case "b":
case "c":
case "d":
case "e":
case "f":
break;
default:
trace(("WARNING: Board ID contains illegal characters: " + _arg1));
return;
};
_local3++;
};
}
public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{
var id = _arg1;
var clip = _arg2;
var onError = _arg3;
warnID(id, false);
if ((clip is DisplayObject)){
if (clip.stage == null){
trace("MochiServices connect requires the containing clip be attached to the stage");
};
if (((!(_connected)) && ((_clip == null)))){
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
};
} else {
trace("Error, MochiServices requires a Sprite, Movieclip or instance of the stage.");
};
if (onError != null){
MochiServices.onError = onError;
} else {
if (MochiServices.onError == null){
MochiServices.onError = function (_arg1:String):void{
trace(_arg1);
};
};
};
}
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 {
_mochiLocalConnection.close();
} catch(error:Error) {
};
};
if (_timer != null){
try {
_timer.stop();
} catch(error:Error) {
};
};
}
public static function stayOnTop():void{
_container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true);
if (_clip != null){
_clip.visible = true;
};
}
public static function doClose():void{
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
}
public static function bringToTop(_arg1:Event=null):void{
var e = _arg1;
if (((!((MochiServices.clip == null))) && (!((MochiServices.childClip == null))))){
try {
if (MochiServices.clip.numChildren > 1){
MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1));
};
} catch(errorObject:Error) {
trace("Warning: Depth sort error.");
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
};
};
}
private static function init(_arg1:String, _arg2:Object):void{
_id = _arg1;
if (_arg2 != null){
_container = _arg2;
loadCommunicator(_arg1, _container);
};
}
public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{
if (_clip.parent){
_clip.parent.removeChild(_clip);
};
if (_arg1 != null){
if ((_arg1 is DisplayObjectContainer)){
_container = _arg1;
};
};
if (_arg2){
if ((_container is DisplayObjectContainer)){
DisplayObjectContainer(_container).addChild(_clip);
};
};
}
private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{
if (_clip != null){
return (_clip);
};
if (!MochiServices.isNetworkAvailable()){
return (null);
};
if (urlOptions(_arg2).servURL){
_servURL = urlOptions(_arg2).servURL;
};
var _local3:String = (_servURL + _services);
if (urlOptions(_arg2).servicesURL){
_local3 = urlOptions(_arg2).servicesURL;
};
_listenChannelName = (_listenChannelName + ((Math.floor(new Date().time) + "_") + Math.floor((Math.random() * 99999))));
MochiServices.allowDomains(_local3);
_clip = new MovieClip();
loadLCBridge(_clip);
_loader = new Loader();
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
var _local4:URLRequest = new URLRequest(_local3);
var _local5:URLVariables = new URLVariables();
_local5.listenLC = _listenChannelName;
_local5.mochiad_options = _arg2.loaderInfo.parameters.mochiad_options;
_local5.api_version = getVersion();
if (widget){
_local5.widget = true;
};
_local4.data = _local5;
_loader.load(_local4);
_clip.addChild(_loader);
_sendChannel = new LocalConnection();
_queue = [];
_nextCallbackID = 0;
_callbacks = {};
_timer = new Timer(10000, 1);
_timer.addEventListener(TimerEvent.TIMER, connectWait);
_timer.start();
return (_clip);
}
private static function loadLCBridge(_arg1:Object):void{
var loader:Loader;
var clip = _arg1;
loader = new Loader();
var mochiLCURL:String = (_servURL + _mochiLC);
var req:URLRequest = new URLRequest(mochiLCURL);
var complete:Function = function (_arg1:Object):void{
_mochiLocalConnection = MovieClip(loader.content);
listen();
};
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
loader.load(req);
clip.addChild(loader);
}
private static function loadError(_arg1:Object):void{
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load.");
MochiServices.disconnect();
MochiServices.onError("IOError");
}
public static function connectWait(_arg1:TimerEvent):void{
if (!_connected){
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load. (timeout)");
MochiServices.disconnect();
MochiServices.onError("IOError");
};
}
private static function listen():void{
_mochiLocalConnection.connect(_listenChannelName);
_clip.handshake = function (_arg1:Object):void{
MochiServices.comChannelName = _arg1.newChannel;
};
trace("Waiting for MochiAds services to connect...");
}
private static function initComChannels():void{
if (!_connected){
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"registerGame", preserved:_preserved, id:_id, version:getVersion(), parentURL:_container.loaderInfo.loaderURL});
_clip.onReceive = onReceive;
_clip.onEvent = onEvent;
_clip.onError = function ():void{
MochiServices.onError("IOError");
};
while (_queue.length > 0) {
_mochiLocalConnection.send(_sendChannelName, "onReceive", _queue.shift());
};
};
}
private static function onReceive(_arg1:Object):void{
var methodName:String;
var pkg = _arg1;
var cb:String = pkg.callbackID;
var cblst:Object = _callbacks[cb];
if (!cblst){
return;
};
var method:* = cblst.callbackMethod;
methodName = "";
var obj:Object = cblst.callbackObject;
if (((obj) && ((typeof(method) == "string")))){
methodName = method;
if (obj[method] != null){
method = obj[method];
} else {
trace((("Error: Method " + method) + " does not exist."));
};
};
if (method != undefined){
try {
method.apply(obj, pkg.args);
} catch(error:Error) {
trace(((("Error invoking callback method '" + methodName) + "': ") + error.toString()));
};
} else {
if (obj != null){
try {
obj(pkg.args);
} catch(error:Error) {
trace(("Error invoking method on object: " + error.toString()));
};
};
};
delete _callbacks[cb];
}
private static function onEvent(_arg1:Object):void{
var _local2:String = _arg1.target;
var _local3:String = _arg1.event;
switch (_local2){
case "events":
MochiEvents.triggerEvent(_arg1.event, _arg1.args);
break;
case "coins":
MochiCoins.triggerEvent(_arg1.event, _arg1.args);
break;
case "sync":
servicesSync.triggerEvent(_arg1.event, _arg1.args);
break;
};
}
public static function updateCopy(_arg1:Object):void{
MochiServices.send("coins_updateCopy", _arg1, null, null);
}
private static function flush(_arg1:Boolean):void{
var _local2:Object;
var _local3:Object;
if (((_clip) && (_queue))){
while (_queue.length > 0) {
_local2 = _queue.shift();
_local3 = null;
if (_local2 != null){
if (_local2.callbackID != null){
_local3 = _callbacks[_local2.callbackID];
};
delete _callbacks[_local2.callbackID];
if (((_arg1) && (!((_local3 == null))))){
handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod);
};
};
};
};
}
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) {
};
};
};
};
}
public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{
if (_connected){
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_nextCallbackID});
} else {
if ((((_clip == null)) || (!(_connecting)))){
trace(("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + _arg1));
handleError(_arg2, _arg3, _arg4);
flush(true);
return;
};
_queue.push({methodName:_arg1, args:_arg2, callbackID:_nextCallbackID});
};
if (_clip != null){
if (_callbacks != null){
_callbacks[_nextCallbackID] = {callbackObject:_arg3, callbackMethod:_arg4};
_nextCallbackID++;
};
};
}
private static function urlOptions(_arg1:Object):Object{
var _local3:String;
var _local4:Array;
var _local5:Number;
var _local6:Array;
var _local2:Object = {};
if (_arg1.stage){
_local3 = _arg1.stage.loaderInfo.parameters.mochiad_options;
} else {
_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 addLinkEvent(_arg1:String, _arg2:String, _arg3:DisplayObjectContainer, _arg4:Function=null):void{
var avm1Click:DisplayObject;
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;
var vars:Object = 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);
var s = "?";
var i:Number = 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{
if (avm1Click){
btn.removeChild(avm1Click);
};
avm1Click = clickMovie(_arg1, onClick);
var _local2:Rectangle = 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);
};
}
private static function clickMovie(_arg1:String, _arg2:Function):MovieClip{
var _local4:int;
var _local14:Loader;
var _local3:Array = [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];
var _local5:Array = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3];
var _local6:Array = [0, 64, 0, 0, 0];
var _local7:MovieClip = new MovieClip();
var _local8:LocalConnection = new LocalConnection();
var _local9:String = ((("_click_" + Math.floor((Math.random() * 999999))) + "_") + Math.floor(new Date().time));
_local8 = new LocalConnection();
_local7.lc = _local8;
_local7.click = _arg2;
_local8.client = _local7;
_local8.connect(_local9);
var _local10:ByteArray = new ByteArray();
var _local11:ByteArray = new ByteArray();
_local11.endian = Endian.LITTLE_ENDIAN;
_local11.writeShort(1);
_local11.writeUTFBytes(((_arg1 + " ") + _local9));
_local11.writeByte(0);
var _local12:uint = ((_local3.length + _local11.length) + 4);
var _local13:uint = (_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);
}
}
}//package mochi.as3
Section 48
//MochiSocial (mochi.as3.MochiSocial)
package mochi.as3 {
public class MochiSocial {
public static const LOGGED_IN:String = "LoggedIn";
public static const LOGGED_OUT:String = "LoggedOut";
public static const LOGIN_SHOW:String = "LoginShow";
public static const LOGIN_HIDE:String = "LoginHide";
public static const LOGIN_SHOWN:String = "LoginShown";
public static const PROFILE_SHOW:String = "ProfileShow";
public static const PROFILE_HIDE:String = "ProfileHide";
public static const PROPERTIES_SAVED:String = "PropertySaved";
public static const WIDGET_LOADED:String = "WidgetLoaded";
public static const USER_INFO:String = "UserInfo";
public static const ERROR:String = "Error";
public static const IO_ERROR:String = "IOError";
public static const NO_USER:String = "NoUser";
public static const PROPERTIES_SIZE:String = "PropertiesSize";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
public static var _user_info:Object = null;
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function getAPIURL():String{
if (!_user_info){
return (null);
};
return (_user_info.api_url);
}
public static function getAPIToken():String{
if (!_user_info){
return (null);
};
return (_user_info.api_token);
}
public static function showLoginWidget(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("coins_showLoginWidget", {options:_arg1});
}
public static function hideLoginWidget():void{
MochiServices.send("coins_hideLoginWidget");
}
public static function requestLogin():void{
MochiServices.send("coins_requestLogin");
}
public static function getUserInfo():void{
MochiServices.send("coins_getUserInfo");
}
public static function saveUserProperties(_arg1:Object):void{
MochiServices.send("coins_saveUserProperties", _arg1);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
public static function get loggedIn():Boolean{
return (!((_user_info == null)));
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
MochiSocial.addEventListener(MochiSocial.LOGGED_IN, function (_arg1:Object):void{
_user_info = _arg1;
});
MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, function (_arg1:Object):void{
_user_info = null;
});
}
}//package mochi.as3
Section 49
//MochiSync (mochi.as3.MochiSync)
package mochi.as3 {
import flash.utils.*;
public dynamic class MochiSync extends Proxy {
private var _syncContainer:Object;
public static var SYNC_REQUEST:String = "SyncRequest";
public static var SYNC_PROPERTY:String = "UpdateProperty";
public function MochiSync():void{
_syncContainer = {};
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){
return (_syncContainer[_arg1]);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{
if (_syncContainer[_arg1] == _arg2){
return;
};
var _local3:String = _arg1.toString();
_syncContainer[_local3] = _arg2;
MochiServices.send("sync_propUpdate", {name:_local3, value:_arg2});
}
public function triggerEvent(_arg1:String, _arg2:Object):void{
switch (_arg1){
case SYNC_REQUEST:
MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY:
_syncContainer[_arg2.name] = _arg2.value;
break;
};
}
}
}//package mochi.as3
Section 50
//MochiUserData (mochi.as3.MochiUserData)
package mochi.as3 {
import flash.events.*;
import flash.utils.*;
import flash.net.*;
public class MochiUserData extends EventDispatcher {
public var _loader:URLLoader;
public var key:String;// = null
public var data;// = null
public var error:Event;// = null
public var operation:String;// = null
public var callback:Function;// = null
public function MochiUserData(_arg1:String="", _arg2:Function=null){
this.key = _arg1;
this.callback = _arg2;
}
public function serialize(_arg1):ByteArray{
var _local2:ByteArray = new ByteArray();
_local2.objectEncoding = ObjectEncoding.AMF3;
_local2.writeObject(_arg1);
_local2.compress();
return (_local2);
}
public function deserialize(_arg1:ByteArray){
_arg1.objectEncoding = ObjectEncoding.AMF3;
_arg1.uncompress();
return (_arg1.readObject());
}
public function request(_arg1:String, _arg2:ByteArray):void{
var _operation = _arg1;
var _data = _arg2;
operation = _operation;
var api_url:String = MochiSocial.getAPIURL();
var api_token:String = MochiSocial.getAPIToken();
if ((((api_url == null)) || ((api_token == null)))){
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, "not logged in"));
return;
};
_loader = new URLLoader();
var args:URLVariables = new URLVariables();
args.op = _operation;
args.key = key;
var req:URLRequest = new URLRequest((((MochiSocial.getAPIURL() + "/") + "MochiUserData?") + args.toString()));
req.method = URLRequestMethod.POST;
req.contentType = "application/x-mochi-userdata";
req.requestHeaders = [new URLRequestHeader("x-mochi-services-version", MochiServices.getVersion()), new URLRequestHeader("x-mochi-api-token", api_token)];
req.data = _data;
_loader.dataFormat = URLLoaderDataFormat.BINARY;
_loader.addEventListener(Event.COMPLETE, completeHandler);
_loader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
_loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
try {
_loader.load(req);
} catch(e:SecurityError) {
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + e.toString())));
};
}
public function completeHandler(_arg1:Event):void{
var event = _arg1;
try {
if (_loader.data.length){
data = deserialize(_loader.data);
} else {
data = null;
};
} catch(e:Error) {
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("deserialize error: " + e.toString())));
return;
};
if (callback != null){
performCallback();
} else {
dispatchEvent(event);
};
close();
}
public function errorHandler(_arg1:IOErrorEvent):void{
data = null;
error = _arg1;
if (callback != null){
performCallback();
} else {
dispatchEvent(_arg1);
};
close();
}
public function securityErrorHandler(_arg1:SecurityErrorEvent):void{
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + _arg1.toString())));
}
public function performCallback():void{
try {
callback(this);
} catch(e:Error) {
trace(("[MochiUserData] exception during callback: " + e));
};
}
public function close():void{
if (_loader){
_loader.removeEventListener(Event.COMPLETE, completeHandler);
_loader.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler);
_loader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
_loader.close();
_loader = null;
};
error = null;
callback = null;
}
public function getEvent():void{
request("get", serialize(null));
}
public function putEvent(_arg1):void{
request("put", serialize(_arg1));
}
override public function toString():String{
return ((((((((("[MochiUserData operation=" + operation) + " key=\"") + key) + "\" data=") + data) + " error=\"") + error) + "\"]"));
}
public static function get(_arg1:String, _arg2:Function):void{
var _local3:MochiUserData = new MochiUserData(_arg1, _arg2);
_local3.getEvent();
}
public static function put(_arg1:String, _arg2, _arg3:Function):void{
var _local4:MochiUserData = new MochiUserData(_arg1, _arg3);
_local4.putEvent(_arg2);
}
}
}//package mochi.as3
Section 51
//AbstractCollection (org.cove.ape.AbstractCollection)
package org.cove.ape {
import flash.display.*;
import flash.utils.*;
public class AbstractCollection {
private var _sprite:Sprite;
private var _particles:Array;
private var _constraints:Array;
private var _isParented:Boolean;
public function AbstractCollection(){
if (getQualifiedClassName(this) == "org.cove.ape::AbstractCollection"){
throw (new ArgumentError("AbstractCollection can't be instantiated directly"));
};
_isParented = false;
_particles = new Array();
_constraints = new Array();
}
public function get particles():Array{
return (_particles);
}
public function get constraints():Array{
return (_constraints);
}
public function addParticle(_arg1:AbstractParticle):void{
particles.push(_arg1);
if (isParented){
_arg1.init();
};
}
public function removeParticle(_arg1:AbstractParticle):void{
var _local2:int = particles.indexOf(_arg1);
if (_local2 == -1){
return;
};
particles.splice(_local2, 1);
_arg1.cleanup();
}
public function addConstraint(_arg1:AbstractConstraint):void{
constraints.push(_arg1);
if (isParented){
_arg1.init();
};
}
public function removeConstraint(_arg1:AbstractConstraint):void{
var _local2:int = constraints.indexOf(_arg1);
if (_local2 == -1){
return;
};
constraints.splice(_local2, 1);
_arg1.cleanup();
}
public function init():void{
var _local1:int;
while (_local1 < particles.length) {
particles[_local1].init();
_local1++;
};
_local1 = 0;
while (_local1 < constraints.length) {
constraints[_local1].init();
_local1++;
};
}
public function paint():void{
var _local1:AbstractParticle;
var _local4:SpringConstraint;
var _local2:int = _particles.length;
var _local3:int;
while (_local3 < _local2) {
_local1 = _particles[_local3];
if (((!(_local1.fixed)) || (_local1.alwaysRepaint))){
_local1.paint();
};
_local3++;
};
_local2 = _constraints.length;
_local3 = 0;
while (_local3 < _local2) {
_local4 = _constraints[_local3];
if (((!(_local4.fixed)) || (_local4.alwaysRepaint))){
_local4.paint();
};
_local3++;
};
}
public function cleanup():void{
var _local1:int;
while (_local1 < particles.length) {
particles[_local1].cleanup();
_local1++;
};
_local1 = 0;
while (_local1 < constraints.length) {
constraints[_local1].cleanup();
_local1++;
};
}
public function get sprite():Sprite{
if (_sprite != null){
return (_sprite);
};
if (APEngine.container == null){
throw (new Error("The container property of the APEngine class has not been set"));
};
_sprite = new Sprite();
APEngine.container.addChild(_sprite);
return (_sprite);
}
public function getAll():Array{
return (particles.concat(constraints));
}
function get isParented():Boolean{
return (_isParented);
}
function set isParented(_arg1:Boolean):void{
_isParented = _arg1;
}
function integrate(_arg1:Number):void{
var _local4:AbstractParticle;
var _local2:int = _particles.length;
var _local3:int;
while (_local3 < _local2) {
_local4 = _particles[_local3];
_local4.update(_arg1);
_local3++;
};
}
function satisfyConstraints():void{
var _local3:AbstractConstraint;
var _local1:int = _constraints.length;
var _local2:int;
while (_local2 < _local1) {
_local3 = _constraints[_local2];
_local3.resolve();
_local2++;
};
}
function checkInternalCollisions():void{
var _local3:AbstractParticle;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:AbstractParticle;
var _local8:SpringConstraint;
var _local1:int = _particles.length;
var _local2:int;
while (_local2 < _local1) {
_local3 = _particles[_local2];
if (!_local3.collidable){
} else {
_local4 = (_local2 + 1);
while (_local4 < _local1) {
_local7 = _particles[_local4];
if (_local7.collidable){
CollisionDetector.test(_local3, _local7);
};
_local4++;
};
_local5 = _constraints.length;
_local6 = 0;
while (_local6 < _local5) {
_local8 = _constraints[_local6];
if (((_local8.collidable) && (!(_local8.isConnectedTo(_local3))))){
_local8.scp.updatePosition();
CollisionDetector.test(_local3, _local8.scp);
};
_local6++;
};
};
_local2++;
};
}
function checkCollisionsVsCollection(_arg1:AbstractCollection):void{
var _local5:AbstractParticle;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:AbstractParticle;
var _local10:SpringConstraint;
var _local11:SpringConstraint;
var _local12:int;
var _local2:int = _particles.length;
var _local3:int;
while (_local3 < _local2) {
_local5 = _particles[_local3];
if (!_local5.collidable){
} else {
_local6 = _arg1.particles.length;
_local7 = 0;
while (_local7 < _local6) {
_local9 = _arg1.particles[_local7];
if (_local9.collidable){
CollisionDetector.test(_local5, _local9);
};
_local7++;
};
_local8 = _arg1.constraints.length;
_local7 = 0;
while (_local7 < _local8) {
_local10 = _arg1.constraints[_local7];
if (((_local10.collidable) && (!(_local10.isConnectedTo(_local5))))){
_local10.scp.updatePosition();
CollisionDetector.test(_local5, _local10.scp);
};
_local7++;
};
};
_local3++;
};
var _local4:int = _constraints.length;
_local3 = 0;
while (_local3 < _local4) {
_local11 = _constraints[_local3];
if (!_local11.collidable){
} else {
_local6 = _arg1.particles.length;
_local12 = 0;
while (_local12 < _local6) {
_local9 = _arg1.particles[_local12];
if (((_local9.collidable) && (!(_local11.isConnectedTo(_local9))))){
_local11.scp.updatePosition();
CollisionDetector.test(_local9, _local11.scp);
};
_local12++;
};
};
_local3++;
};
}
}
}//package org.cove.ape
Section 52
//AbstractConstraint (org.cove.ape.AbstractConstraint)
package org.cove.ape {
import flash.utils.*;
public class AbstractConstraint extends AbstractItem {
private var _stiffness:Number;
public function AbstractConstraint(_arg1:Number){
if (getQualifiedClassName(this) == "org.cove.ape::AbstractConstraint"){
throw (new ArgumentError("AbstractConstraint can't be instantiated directly"));
};
this.stiffness = _arg1;
setStyle();
}
public function get stiffness():Number{
return (_stiffness);
}
public function set stiffness(_arg1:Number):void{
_stiffness = _arg1;
}
function resolve():void{
}
}
}//package org.cove.ape
Section 53
//AbstractItem (org.cove.ape.AbstractItem)
package org.cove.ape {
import flash.display.*;
public class AbstractItem {
private var _sprite:Sprite;
private var _visible:Boolean;
private var _alwaysRepaint:Boolean;
var lineThickness:Number;
var lineColor:uint;
var lineAlpha:Number;
var fillColor:uint;
var fillAlpha:Number;
var displayObject:DisplayObject;
var displayObjectOffset:Vector;
var displayObjectRotation:Number;
public function AbstractItem(){
_visible = true;
_alwaysRepaint = false;
}
public function init():void{
}
public function paint():void{
}
public function cleanup():void{
sprite.graphics.clear();
var _local1:int;
while (_local1 < sprite.numChildren) {
sprite.removeChildAt(_local1);
_local1++;
};
}
final public function get alwaysRepaint():Boolean{
return (_alwaysRepaint);
}
final public function set alwaysRepaint(_arg1:Boolean):void{
_alwaysRepaint = _arg1;
}
public function get visible():Boolean{
return (_visible);
}
public function set visible(_arg1:Boolean):void{
_visible = _arg1;
sprite.visible = _arg1;
}
public function setStyle(_arg1:Number=0, _arg2:uint=0, _arg3:Number=1, _arg4:uint=0xFFFFFF, _arg5:Number=1):void{
setLine(_arg1, _arg2, _arg3);
setFill(_arg4, _arg5);
}
public function setLine(_arg1:Number=0, _arg2:uint=0, _arg3:Number=1):void{
lineThickness = _arg1;
lineColor = _arg2;
lineAlpha = _arg3;
}
public function setFill(_arg1:uint=0xFFFFFF, _arg2:Number=1):void{
fillColor = _arg1;
fillAlpha = _arg2;
}
public function get sprite():Sprite{
if (_sprite != null){
return (_sprite);
};
if (APEngine.container == null){
throw (new Error("The container property of the APEngine class has not been set"));
};
_sprite = new Sprite();
APEngine.container.addChild(_sprite);
return (_sprite);
}
}
}//package org.cove.ape
Section 54
//AbstractParticle (org.cove.ape.AbstractParticle)
package org.cove.ape {
import flash.display.*;
import flash.utils.*;
public class AbstractParticle extends AbstractItem {
var curr:Vector;
var prev:Vector;
var samp:Vector;
var interval:Interval;
private var forces:Vector;
private var temp:Vector;
private var collision:Collision;
private var _kfr:Number;
private var _mass:Number;
private var _invMass:Number;
private var _friction:Number;
private var _fixed:Boolean;
private var _collidable:Boolean;
private var _center:Vector;
private var _multisample:int;
public function AbstractParticle(_arg1:Number, _arg2:Number, _arg3:Boolean, _arg4:Number, _arg5:Number, _arg6:Number){
if (getQualifiedClassName(this) == "org.cove.ape::AbstractParticle"){
throw (new ArgumentError("AbstractParticle can't be instantiated directly"));
};
interval = new Interval(0, 0);
curr = new Vector(_arg1, _arg2);
prev = new Vector(_arg1, _arg2);
samp = new Vector();
temp = new Vector();
fixed = _arg3;
forces = new Vector();
collision = new Collision(new Vector(), new Vector());
collidable = true;
this.mass = _arg4;
this.elasticity = _arg5;
this.friction = _arg6;
setStyle();
_center = new Vector();
_multisample = 0;
}
public function get mass():Number{
return (_mass);
}
public function set mass(_arg1:Number):void{
if (_arg1 <= 0){
throw (new ArgumentError("mass may not be set <= 0"));
};
_mass = _arg1;
_invMass = (1 / _mass);
}
public function get elasticity():Number{
return (_kfr);
}
public function set elasticity(_arg1:Number):void{
_kfr = _arg1;
}
public function get multisample():int{
return (_multisample);
}
public function set multisample(_arg1:int):void{
_multisample = _arg1;
}
public function get center():Vector{
_center.setTo(px, py);
return (_center);
}
public function get friction():Number{
return (_friction);
}
public function set friction(_arg1:Number):void{
if ((((_arg1 < 0)) || ((_arg1 > 1)))){
throw (new ArgumentError("Legal friction must be >= 0 and <=1"));
};
_friction = _arg1;
}
public function get fixed():Boolean{
return (_fixed);
}
public function set fixed(_arg1:Boolean):void{
_fixed = _arg1;
}
public function get position():Vector{
return (new Vector(curr.x, curr.y));
}
public function set position(_arg1:Vector):void{
curr.copy(_arg1);
prev.copy(_arg1);
}
public function get px():Number{
return (curr.x);
}
public function set px(_arg1:Number):void{
curr.x = _arg1;
prev.x = _arg1;
}
public function get py():Number{
return (curr.y);
}
public function set py(_arg1:Number):void{
curr.y = _arg1;
prev.y = _arg1;
}
public function get velocity():Vector{
return (curr.minus(prev));
}
public function set velocity(_arg1:Vector):void{
prev = curr.minus(_arg1);
}
public function get collidable():Boolean{
return (_collidable);
}
public function set collidable(_arg1:Boolean):void{
_collidable = _arg1;
}
public function setDisplay(_arg1:DisplayObject, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0):void{
displayObject = _arg1;
displayObjectRotation = _arg4;
displayObjectOffset = new Vector(_arg2, _arg3);
}
public function addForce(_arg1:Vector):void{
forces.plusEquals(_arg1.mult(invMass));
}
public function addMasslessForce(_arg1:Vector):void{
forces.plusEquals(_arg1);
}
public function update(_arg1:Number):void{
if (fixed){
return;
};
addForce(APEngine.force);
addMasslessForce(APEngine.masslessForce);
temp.copy(curr);
var _local2:Vector = velocity.plus(forces.multEquals(_arg1));
curr.plusEquals(_local2.multEquals(APEngine.damping));
prev.copy(temp);
forces.setTo(0, 0);
}
function initDisplay():void{
displayObject.x = displayObjectOffset.x;
displayObject.y = displayObjectOffset.y;
displayObject.rotation = displayObjectRotation;
sprite.addChild(displayObject);
}
function getComponents(_arg1:Vector):Collision{
var _local2:Vector = velocity;
var _local3:Number = _arg1.dot(_local2);
collision.vn = _arg1.mult(_local3);
collision.vt = _local2.minus(collision.vn);
return (collision);
}
function resolveCollision(_arg1:Vector, _arg2:Vector, _arg3:Vector, _arg4:Number, _arg5:int, _arg6:AbstractParticle):void{
curr.plusEquals(_arg1);
velocity = _arg2;
}
function get invMass():Number{
return ((fixed) ? 0 : _invMass);
}
}
}//package org.cove.ape
Section 55
//APEngine (org.cove.ape.APEngine)
package org.cove.ape {
import flash.display.*;
public final class APEngine {
static var force:Vector;
static var masslessForce:Vector;
private static var groups:Array;
private static var numGroups:int;
private static var timeStep:Number;
private static var _damping:Number;
private static var _container:DisplayObjectContainer;
private static var _constraintCycles:int;
private static var _constraintCollisionCycles:int;
private static var _forzaH:Number;
private static var _forzaV:Number;
private static var _direzione;
private static var _idrante1;
private static var _idrante2;
private static var _idrante3;
private static var _bonus;
public static function init(_arg1:Number=0.25):void{
timeStep = (_arg1 * _arg1);
numGroups = 0;
groups = new Array();
force = new Vector(0, 0);
masslessForce = new Vector(0, 0);
damping = 1;
_constraintCycles = 0;
_constraintCollisionCycles = 1;
}
public static function get damping():Number{
return (_damping);
}
public static function set damping(_arg1:Number):void{
_damping = _arg1;
}
public static function get constraintCycles():int{
return (_constraintCycles);
}
public static function set constraintCycles(_arg1:int):void{
_constraintCycles = _arg1;
}
public static function get constraintCollisionCycles():int{
return (_constraintCollisionCycles);
}
public static function set constraintCollisionCycles(_arg1:int):void{
_constraintCollisionCycles = _arg1;
}
public static function get container():DisplayObjectContainer{
return (_container);
}
public static function set container(_arg1:DisplayObjectContainer):void{
_container = _arg1;
}
public static function get idrante1(){
return (_idrante1);
}
public static function set idrante1(_arg1):void{
_idrante1 = _arg1;
}
public static function get idrante2(){
return (_idrante2);
}
public static function set idrante2(_arg1):void{
_idrante2 = _arg1;
}
public static function get idrante3(){
return (_idrante3);
}
public static function set idrante3(_arg1):void{
_idrante3 = _arg1;
}
public static function get __bonus(){
return (_bonus);
}
public static function set __bonus(_arg1):void{
_bonus = _arg1;
}
public static function addForce(_arg1:Vector):void{
force.plusEquals(_arg1);
}
public static function addMasslessForce(_arg1:Vector):void{
masslessForce.plusEquals(_arg1);
}
public static function addGroup(_arg1:Group):void{
groups.push(_arg1);
_arg1.isParented = true;
numGroups++;
_arg1.init();
}
public static function removeGroup(_arg1:Group):void{
var _local2:int = groups.indexOf(_arg1);
if (_local2 == -1){
return;
};
groups.splice(_local2, 1);
_arg1.isParented = false;
numGroups--;
_arg1.cleanup();
}
public static function step():void{
integrate();
var _local1:int;
while (_local1 < _constraintCycles) {
satisfyConstraints();
_local1++;
};
var _local2:int;
while (_local2 < _constraintCollisionCycles) {
satisfyConstraints();
checkCollisions();
_local2++;
};
}
public static function paint():void{
var _local2:Group;
var _local1:int;
while (_local1 < numGroups) {
_local2 = groups[_local1];
_local2.paint();
_local1++;
};
}
private static function integrate():void{
var _local2:Group;
var _local1:int;
while (_local1 < numGroups) {
_local2 = groups[_local1];
_local2.integrate(timeStep);
_local1++;
};
}
private static function satisfyConstraints():void{
var _local2:Group;
var _local1:int;
while (_local1 < numGroups) {
_local2 = groups[_local1];
_local2.satisfyConstraints();
_local1++;
};
}
private static function checkCollisions():void{
var _local2:Group;
var _local1:int;
while (_local1 < numGroups) {
_local2 = groups[_local1];
_local2.checkCollisions();
_local1++;
};
}
}
}//package org.cove.ape
Section 56
//CircleParticle (org.cove.ape.CircleParticle)
package org.cove.ape {
public class CircleParticle extends AbstractParticle {
private var _radius:Number;
public function CircleParticle(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Number=1, _arg6:Number=0.3, _arg7:Number=0){
super(_arg1, _arg2, _arg4, _arg5, _arg6, _arg7);
_radius = _arg3;
}
public function get radius():Number{
return (_radius);
}
public function set radius(_arg1:Number):void{
_radius = _arg1;
}
override public function init():void{
cleanup();
if (displayObject != null){
initDisplay();
} else {
sprite.graphics.clear();
sprite.graphics.lineStyle(lineThickness, lineColor, lineAlpha);
sprite.graphics.beginFill(fillColor, fillAlpha);
sprite.graphics.drawCircle(0, 0, radius);
sprite.graphics.endFill();
};
paint();
}
override public function paint():void{
sprite.x = curr.x;
sprite.y = curr.y;
}
function getProjection(_arg1:Vector):Interval{
var _local2:Number = samp.dot(_arg1);
interval.min = (_local2 - _radius);
interval.max = (_local2 + _radius);
return (interval);
}
function getIntervalX():Interval{
interval.min = (curr.x - _radius);
interval.max = (curr.x + _radius);
return (interval);
}
function getIntervalY():Interval{
interval.min = (curr.y - _radius);
interval.max = (curr.y + _radius);
return (interval);
}
}
}//package org.cove.ape
Section 57
//Collision (org.cove.ape.Collision)
package org.cove.ape {
import org.cove.ape.*;
final class Collision {
var vn:Vector;
var vt:Vector;
function Collision(_arg1:Vector, _arg2:Vector){
this.vn = _arg1;
this.vt = _arg2;
}
}
}//package org.cove.ape
Section 58
//CollisionDetector (org.cove.ape.CollisionDetector)
package org.cove.ape {
import org.cove.ape.*;
import flash.utils.*;
final class CollisionDetector {
static function test(_arg1:AbstractParticle, _arg2:AbstractParticle):void{
if (((_arg1.fixed) && (_arg2.fixed))){
return;
};
if ((((_arg1.multisample == 0)) && ((_arg2.multisample == 0)))){
normVsNorm(_arg1, _arg2);
} else {
if ((((_arg1.multisample > 0)) && ((_arg2.multisample == 0)))){
sampVsNorm(_arg1, _arg2);
} else {
if ((((_arg2.multisample > 0)) && ((_arg1.multisample == 0)))){
sampVsNorm(_arg2, _arg1);
} else {
if (_arg1.multisample == _arg2.multisample){
sampVsSamp(_arg1, _arg2);
} else {
normVsNorm(_arg1, _arg2);
};
};
};
};
}
private static function normVsNorm(_arg1:AbstractParticle, _arg2:AbstractParticle):void{
_arg1.samp.copy(_arg1.curr);
_arg2.samp.copy(_arg2.curr);
testTypes(_arg1, _arg2);
}
private static function sampVsNorm(_arg1:AbstractParticle, _arg2:AbstractParticle):void{
var _local3:Number = (1 / (_arg1.multisample + 1));
var _local4:Number = _local3;
_arg2.samp.copy(_arg2.curr);
var _local5:int;
while (_local5 <= _arg1.multisample) {
_arg1.samp.setTo((_arg1.prev.x + (_local4 * (_arg1.curr.x - _arg1.prev.x))), (_arg1.prev.y + (_local4 * (_arg1.curr.y - _arg1.prev.y))));
if (testTypes(_arg1, _arg2)){
return;
};
_local4 = (_local4 + _local3);
_local5++;
};
}
private static function sampVsSamp(_arg1:AbstractParticle, _arg2:AbstractParticle):void{
var _local3:Number = (1 / (_arg1.multisample + 1));
var _local4:Number = _local3;
var _local5:int;
while (_local5 <= _arg1.multisample) {
_arg1.samp.setTo((_arg1.prev.x + (_local4 * (_arg1.curr.x - _arg1.prev.x))), (_arg1.prev.y + (_local4 * (_arg1.curr.y - _arg1.prev.y))));
_arg2.samp.setTo((_arg2.prev.x + (_local4 * (_arg2.curr.x - _arg2.prev.x))), (_arg2.prev.y + (_local4 * (_arg2.curr.y - _arg2.prev.y))));
if (testTypes(_arg1, _arg2)){
return;
};
_local4 = (_local4 + _local3);
_local5++;
};
}
private static function testTypes(_arg1:AbstractParticle, _arg2:AbstractParticle):Boolean{
if ((((_arg1 is RectangleParticle)) && ((_arg2 is RectangleParticle)))){
return (testOBBvsOBB((_arg1 as RectangleParticle), (_arg2 as RectangleParticle)));
};
if ((((_arg1 is CircleParticle)) && ((_arg2 is CircleParticle)))){
return (testCirclevsCircle((_arg1 as CircleParticle), (_arg2 as CircleParticle)));
};
if ((((_arg1 is RectangleParticle)) && ((_arg2 is CircleParticle)))){
return (testOBBvsCircle((_arg1 as RectangleParticle), (_arg2 as CircleParticle)));
};
if ((((_arg1 is CircleParticle)) && ((_arg2 is RectangleParticle)))){
return (testOBBvsCircle((_arg2 as RectangleParticle), (_arg1 as CircleParticle)));
};
return (false);
}
private static function testOBBvsOBB(_arg1:RectangleParticle, _arg2:RectangleParticle):Boolean{
var _local3:Vector;
var _local6:Vector;
var _local7:Number;
var _local8:Vector;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Boolean;
var _local4:Number = Number.POSITIVE_INFINITY;
var _local5:int;
while (_local5 < 2) {
_local6 = _arg1.axes[_local5];
_local7 = testIntervals(_arg1.getProjection(_local6), _arg2.getProjection(_local6));
if (_local7 == 0){
return (false);
};
_local8 = _arg2.axes[_local5];
_local9 = testIntervals(_arg1.getProjection(_local8), _arg2.getProjection(_local8));
if (_local9 == 0){
return (false);
};
_local10 = Math.abs(_local7);
_local11 = Math.abs(_local9);
if ((((_local10 < Math.abs(_local4))) || ((_local11 < Math.abs(_local4))))){
_local12 = (_local10 < _local11);
_local3 = (_local12) ? _local6 : _local8;
_local4 = (_local12) ? _local7 : _local9;
};
_local5++;
};
CollisionResolver.resolveParticleParticle(_arg1, _arg2, _local3, _local4);
return (true);
}
private static function testOBBvsCircle(_arg1:RectangleParticle, _arg2:CircleParticle):Boolean{
var _local3:Vector;
var _local8:Vector;
var _local9:Number;
var _local10:Vector;
var _local11:Number;
var _local4:Number = Number.POSITIVE_INFINITY;
var _local5:Array = new Array(2);
var _local6:int;
while (_local6 < 2) {
_local8 = _arg1.axes[_local6];
_local9 = testIntervals(_arg1.getProjection(_local8), _arg2.getProjection(_local8));
if (_local9 == 0){
return (false);
};
if (Math.abs(_local9) < Math.abs(_local4)){
_local3 = _local8;
_local4 = _local9;
};
_local5[_local6] = _local9;
_local6++;
};
var _local7:Number = _arg2.radius;
if ((((Math.abs(_local5[0]) < _local7)) && ((Math.abs(_local5[1]) < _local7)))){
_local10 = closestVertexOnOBB(_arg2.samp, _arg1);
_local3 = _local10.minus(_arg2.samp);
_local11 = _local3.magnitude();
_local4 = (_local7 - _local11);
if (_local4 > 0){
_local3.divEquals(_local11);
} else {
return (false);
};
};
if (_arg1.sprite.name == "idrante1"){
APEngine.idrante1.gotoAndPlay(2);
if (_arg2.py < _arg1.py){
_arg2.addForce(new Vector(0, -200));
};
} else {
if (_arg1.sprite.name == "idrante2"){
APEngine.idrante2.gotoAndPlay(2);
if (_arg2.py < _arg1.py){
_arg2.addForce(new Vector(0, -200));
};
} else {
if (_arg1.sprite.name == "idrante3"){
APEngine.idrante3.gotoAndPlay(2);
if (_arg2.py < _arg1.py){
_arg2.addForce(new Vector(0, -200));
};
};
};
};
CollisionResolver.resolveParticleParticle(_arg1, _arg2, _local3, _local4);
return (true);
}
private static function testCirclevsCircle(_arg1:CircleParticle, _arg2:CircleParticle):Boolean{
var ca = _arg1;
var cb = _arg2;
var depthX:Number = testIntervals(ca.getIntervalX(), cb.getIntervalX());
if (depthX == 0){
return (false);
};
var depthY:Number = testIntervals(ca.getIntervalY(), cb.getIntervalY());
if (depthY == 0){
return (false);
};
var collisionNormal:Vector = ca.samp.minus(cb.samp);
var mag:Number = collisionNormal.magnitude();
var collisionDepth:Number = ((ca.radius + cb.radius) - mag);
if (collisionDepth > 0){
trace(ca.sprite.name);
trace(cb.sprite.name);
if (cb.sprite.name != "bonus"){
trace("....");
collisionNormal.divEquals(mag);
CollisionResolver.resolveParticleParticle(ca, cb, collisionNormal, collisionDepth);
return (true);
};
trace("BONUSSS");
ca.fixed = true;
cb.collidable = false;
ca.px = (ca.sprite.x = (cb.px - 100));
APEngine.__bonus.visible = false;
setTimeout(function (){
ca.velocity = new Vector(0, 0);
ca.fixed = false;
var _local1:* = int((Math.random() * 80));
var _local2:* = int((Math.random() * 80));
ca.addForce(new Vector(-((260 - _local1)), -((160 - _local2))));
}, 10);
return (false);
};
return (false);
}
private static function testIntervals(_arg1:Interval, _arg2:Interval):Number{
if (_arg1.max < _arg2.min){
return (0);
};
if (_arg2.max < _arg1.min){
return (0);
};
var _local3:Number = (_arg2.max - _arg1.min);
var _local4:Number = (_arg2.min - _arg1.max);
return (((Math.abs(_local3))<Math.abs(_local4)) ? _local3 : _local4);
}
private static function closestVertexOnOBB(_arg1:Vector, _arg2:RectangleParticle):Vector{
var _local6:Number;
var _local3:Vector = _arg1.minus(_arg2.samp);
var _local4:Vector = new Vector(_arg2.samp.x, _arg2.samp.y);
var _local5:int;
while (_local5 < 2) {
_local6 = _local3.dot(_arg2.axes[_local5]);
if (_local6 >= 0){
_local6 = _arg2.extents[_local5];
} else {
if (_local6 < 0){
_local6 = -(_arg2.extents[_local5]);
};
};
_local4.plusEquals(_arg2.axes[_local5].mult(_local6));
_local5++;
};
return (_local4);
}
}
}//package org.cove.ape
Section 59
//CollisionResolver (org.cove.ape.CollisionResolver)
package org.cove.ape {
import org.cove.ape.*;
final class CollisionResolver {
static function resolveParticleParticle(_arg1:AbstractParticle, _arg2:AbstractParticle, _arg3:Vector, _arg4:Number):void{
_arg1.curr.copy(_arg1.samp);
_arg2.curr.copy(_arg2.samp);
var _local5:Vector = _arg3.mult(_arg4);
var _local6:Number = (_arg1.elasticity + _arg2.elasticity);
var _local7:Number = (_arg1.invMass + _arg2.invMass);
var _local8:Number = clamp((1 - (_arg1.friction + _arg2.friction)), 0, 1);
var _local9:Collision = _arg1.getComponents(_arg3);
var _local10:Collision = _arg2.getComponents(_arg3);
var _local11:Vector = _local10.vn.mult(((_local6 + 1) * _arg1.invMass)).plus(_local9.vn.mult((_arg2.invMass - (_local6 * _arg1.invMass)))).divEquals(_local7);
var _local12:Vector = _local9.vn.mult(((_local6 + 1) * _arg2.invMass)).plus(_local10.vn.mult((_arg1.invMass - (_local6 * _arg2.invMass)))).divEquals(_local7);
_local9.vt.multEquals(_local8);
_local10.vt.multEquals(_local8);
var _local13:Vector = _local5.mult((_arg1.invMass / _local7));
var _local14:Vector = _local5.mult((-(_arg2.invMass) / _local7));
_local11.plusEquals(_local9.vt);
_local12.plusEquals(_local10.vt);
if (!_arg1.fixed){
_arg1.resolveCollision(_local13, _local11, _arg3, _arg4, -1, _arg2);
};
if (!_arg2.fixed){
_arg2.resolveCollision(_local14, _local12, _arg3, _arg4, 1, _arg1);
};
}
static function clamp(_arg1:Number, _arg2:Number, _arg3:Number):Number{
if (_arg1 > _arg3){
return (_arg3);
};
if (_arg1 < _arg2){
return (_arg2);
};
return (_arg1);
}
}
}//package org.cove.ape
Section 60
//Composite (org.cove.ape.Composite)
package org.cove.ape {
public class Composite extends AbstractCollection {
private var delta:Vector;
public function Composite(){
delta = new Vector();
}
public function rotateByRadian(_arg1:Number, _arg2:Vector):void{
var _local3:AbstractParticle;
var _local7:Number;
var _local8:Number;
var _local4:Array = particles;
var _local5:int = _local4.length;
var _local6:int;
while (_local6 < _local5) {
_local3 = _local4[_local6];
_local7 = _local3.center.distance(_arg2);
_local8 = (getRelativeAngle(_arg2, _local3.center) + _arg1);
_local3.px = ((Math.cos(_local8) * _local7) + _arg2.x);
_local3.py = ((Math.sin(_local8) * _local7) + _arg2.y);
_local6++;
};
}
public function rotateByAngle(_arg1:Number, _arg2:Vector):void{
var _local3:Number = (_arg1 * MathUtil.PI_OVER_ONE_EIGHTY);
rotateByRadian(_local3, _arg2);
}
public function get fixed():Boolean{
var _local1:int;
while (_local1 < particles.length) {
if (!particles[_local1].fixed){
return (false);
};
_local1++;
};
return (true);
}
public function set fixed(_arg1:Boolean):void{
var _local2:int;
while (_local2 < particles.length) {
particles[_local2].fixed = _arg1;
_local2++;
};
}
private function getRelativeAngle(_arg1:Vector, _arg2:Vector):Number{
delta.setTo((_arg2.x - _arg1.x), (_arg2.y - _arg1.y));
return (Math.atan2(delta.y, delta.x));
}
}
}//package org.cove.ape
Section 61
//Group (org.cove.ape.Group)
package org.cove.ape {
public class Group extends AbstractCollection {
private var _composites:Array;
private var _collisionList:Array;
private var _collideInternal:Boolean;
public function Group(_arg1:Boolean=false){
_composites = new Array();
_collisionList = new Array();
this.collideInternal = _arg1;
}
override public function init():void{
super.init();
var _local1:int;
while (_local1 < composites.length) {
composites[_local1].init();
_local1++;
};
}
public function get composites():Array{
return (_composites);
}
public function addComposite(_arg1:Composite):void{
composites.push(_arg1);
_arg1.isParented = true;
if (isParented){
_arg1.init();
};
}
public function removeComposite(_arg1:Composite):void{
var _local2:int = composites.indexOf(_arg1);
if (_local2 == -1){
return;
};
composites.splice(_local2, 1);
_arg1.isParented = false;
_arg1.cleanup();
}
override public function paint():void{
var _local3:Composite;
super.paint();
var _local1:int = _composites.length;
var _local2:int;
while (_local2 < _local1) {
_local3 = _composites[_local2];
_local3.paint();
_local2++;
};
}
public function addCollidable(_arg1:Group):void{
collisionList.push(_arg1);
}
public function removeCollidable(_arg1:Group):void{
var _local2:int = collisionList.indexOf(_arg1);
if (_local2 == -1){
return;
};
collisionList.splice(_local2, 1);
}
public function addCollidableList(_arg1:Array):void{
var _local3:Group;
var _local2:int;
while (_local2 < _arg1.length) {
_local3 = _arg1[_local2];
collisionList.push(_local3);
_local2++;
};
}
public function get collisionList():Array{
return (_collisionList);
}
override public function getAll():Array{
return (particles.concat(constraints).concat(composites));
}
public function get collideInternal():Boolean{
return (_collideInternal);
}
public function set collideInternal(_arg1:Boolean):void{
_collideInternal = _arg1;
}
override public function cleanup():void{
super.cleanup();
var _local1:int;
while (_local1 < composites.length) {
composites[_local1].cleanup();
_local1++;
};
}
override function integrate(_arg1:Number):void{
var _local4:Composite;
super.integrate(_arg1);
var _local2:int = _composites.length;
var _local3:int;
while (_local3 < _local2) {
_local4 = _composites[_local3];
_local4.integrate(_arg1);
_local3++;
};
}
override function satisfyConstraints():void{
var _local3:Composite;
super.satisfyConstraints();
var _local1:int = _composites.length;
var _local2:int;
while (_local2 < _local1) {
_local3 = _composites[_local2];
_local3.satisfyConstraints();
_local2++;
};
}
function checkCollisions():void{
var _local3:Group;
if (collideInternal){
checkCollisionGroupInternal();
};
var _local1:int = collisionList.length;
var _local2:int;
while (_local2 < _local1) {
_local3 = collisionList[_local2];
checkCollisionVsGroup(_local3);
_local2++;
};
}
private function checkCollisionGroupInternal():void{
var _local3:Composite;
var _local4:int;
var _local5:Composite;
checkInternalCollisions();
var _local1:int = _composites.length;
var _local2:int;
while (_local2 < _local1) {
_local3 = _composites[_local2];
_local3.checkCollisionsVsCollection(this);
_local4 = (_local2 + 1);
while (_local4 < _local1) {
_local5 = _composites[_local4];
_local3.checkCollisionsVsCollection(_local5);
_local4++;
};
_local2++;
};
}
private function checkCollisionVsGroup(_arg1:Group):void{
var _local5:Composite;
var _local6:int;
var _local7:Composite;
checkCollisionsVsCollection(_arg1);
var _local2:int = _composites.length;
var _local3:int = _arg1.composites.length;
var _local4:int;
while (_local4 < _local2) {
_local5 = _composites[_local4];
_local5.checkCollisionsVsCollection(_arg1);
_local6 = 0;
while (_local6 < _local3) {
_local7 = _arg1.composites[_local6];
_local5.checkCollisionsVsCollection(_local7);
_local6++;
};
_local4++;
};
_local6 = 0;
while (_local6 < _local3) {
_local7 = _arg1.composites[_local6];
checkCollisionsVsCollection(_local7);
_local6++;
};
}
}
}//package org.cove.ape
Section 62
//Interval (org.cove.ape.Interval)
package org.cove.ape {
final class Interval {
var min:Number;
var max:Number;
function Interval(_arg1:Number, _arg2:Number){
this.min = _arg1;
this.max = _arg2;
}
function toString():String{
return (((min + " : ") + max));
}
}
}//package org.cove.ape
Section 63
//MathUtil (org.cove.ape.MathUtil)
package org.cove.ape {
final class MathUtil {
static var ONE_EIGHTY_OVER_PI:Number = 57.2957795130823;
static var PI_OVER_ONE_EIGHTY:Number = 0.0174532925199433;
static function clamp(_arg1:Number, _arg2:Number, _arg3:Number):Number{
if (_arg1 < _arg2){
return (_arg2);
};
if (_arg1 > _arg3){
return (_arg3);
};
return (_arg1);
}
static function sign(_arg1:Number):int{
if (_arg1 < 0){
return (-1);
};
return (1);
}
}
}//package org.cove.ape
Section 64
//RectangleParticle (org.cove.ape.RectangleParticle)
package org.cove.ape {
public class RectangleParticle extends AbstractParticle {
private var _extents:Array;
private var _axes:Array;
private var _radian:Number;
public function RectangleParticle(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Boolean=false, _arg7:Number=1, _arg8:Number=0.3, _arg9:Number=0){
super(_arg1, _arg2, _arg6, _arg7, _arg8, _arg9);
_extents = new Array((_arg3 / 2), (_arg4 / 2));
_axes = new Array(new Vector(0, 0), new Vector(0, 0));
radian = _arg5;
}
public function get radian():Number{
return (_radian);
}
public function set radian(_arg1:Number):void{
_radian = _arg1;
setAxes(_arg1);
}
public function get angle():Number{
return ((radian * MathUtil.ONE_EIGHTY_OVER_PI));
}
public function set angle(_arg1:Number):void{
radian = (_arg1 * MathUtil.PI_OVER_ONE_EIGHTY);
}
override public function init():void{
var _local1:Number;
var _local2:Number;
cleanup();
if (displayObject != null){
initDisplay();
} else {
_local1 = (extents[0] * 2);
_local2 = (extents[1] * 2);
sprite.graphics.clear();
sprite.graphics.lineStyle(lineThickness, lineColor, lineAlpha);
sprite.graphics.beginFill(fillColor, fillAlpha);
sprite.graphics.drawRect((-(_local1) / 2), (-(_local2) / 2), _local1, _local2);
sprite.graphics.endFill();
};
paint();
}
override public function paint():void{
sprite.x = curr.x;
sprite.y = curr.y;
sprite.rotation = angle;
}
public function set width(_arg1:Number):void{
_extents[0] = (_arg1 / 2);
}
public function get width():Number{
return ((_extents[0] * 2));
}
public function set height(_arg1:Number):void{
_extents[1] = (_arg1 / 2);
}
public function get height():Number{
return ((_extents[1] * 2));
}
function get axes():Array{
return (_axes);
}
function get extents():Array{
return (_extents);
}
function getProjection(_arg1:Vector):Interval{
var _local2:Number = ((extents[0] * Math.abs(_arg1.dot(axes[0]))) + (extents[1] * Math.abs(_arg1.dot(axes[1]))));
var _local3:Number = samp.dot(_arg1);
interval.min = (_local3 - _local2);
interval.max = (_local3 + _local2);
return (interval);
}
private function setAxes(_arg1:Number):void{
var _local2:Number = Math.sin(_arg1);
var _local3:Number = Math.cos(_arg1);
axes[0].x = _local3;
axes[0].y = _local2;
axes[1].x = -(_local2);
axes[1].y = _local3;
}
}
}//package org.cove.ape
Section 65
//SpringConstraint (org.cove.ape.SpringConstraint)
package org.cove.ape {
import flash.display.*;
public class SpringConstraint extends AbstractConstraint {
private var p1:AbstractParticle;
private var p2:AbstractParticle;
private var _restLength:Number;
private var _collidable:Boolean;
private var _scp:SpringConstraintParticle;
public function SpringConstraint(_arg1:AbstractParticle, _arg2:AbstractParticle, _arg3:Number=0.5, _arg4:Boolean=false, _arg5:Number=1, _arg6:Number=1, _arg7:Boolean=false){
super(_arg3);
this.p1 = _arg1;
this.p2 = _arg2;
checkParticlesLocation();
_restLength = currLength;
setCollidable(_arg4, _arg5, _arg6, _arg7);
}
public function get radian():Number{
var _local1:Vector = delta;
return (Math.atan2(_local1.y, _local1.x));
}
public function get angle():Number{
return ((radian * MathUtil.ONE_EIGHTY_OVER_PI));
}
public function get center():Vector{
return (p1.curr.plus(p2.curr).divEquals(2));
}
public function set rectScale(_arg1:Number):void{
if (scp == null){
return;
};
scp.rectScale = _arg1;
}
public function get rectScale():Number{
return (scp.rectScale);
}
public function get currLength():Number{
return (p1.curr.distance(p2.curr));
}
public function get rectHeight():Number{
return (scp.rectHeight);
}
public function set rectHeight(_arg1:Number):void{
if (scp == null){
return;
};
scp.rectHeight = _arg1;
}
public function get restLength():Number{
return (_restLength);
}
public function set restLength(_arg1:Number):void{
if (_arg1 <= 0){
throw (new ArgumentError("restLength must be greater than 0"));
};
_restLength = _arg1;
}
public function get collidable():Boolean{
return (_collidable);
}
public function get fixedEndLimit():Number{
return (scp.fixedEndLimit);
}
public function set fixedEndLimit(_arg1:Number):void{
if (scp == null){
return;
};
scp.fixedEndLimit = _arg1;
}
public function setCollidable(_arg1:Boolean, _arg2:Number, _arg3:Number, _arg4:Boolean=false):void{
_collidable = _arg1;
_scp = null;
if (_collidable){
_scp = new SpringConstraintParticle(p1, p2, this, _arg2, _arg3, _arg4);
};
}
public function isConnectedTo(_arg1:AbstractParticle):Boolean{
return ((((_arg1 == p1)) || ((_arg1 == p2))));
}
public function get fixed():Boolean{
return (((p1.fixed) && (p2.fixed)));
}
override public function init():void{
cleanup();
if (collidable){
scp.init();
} else {
if (displayObject != null){
initDisplay();
};
};
paint();
}
override public function paint():void{
var _local1:Vector;
if (collidable){
scp.paint();
} else {
if (displayObject != null){
_local1 = center;
sprite.x = _local1.x;
sprite.y = _local1.y;
sprite.rotation = angle;
} else {
sprite.graphics.clear();
sprite.graphics.lineStyle(lineThickness, lineColor, lineAlpha);
sprite.graphics.moveTo(p1.px, p1.py);
sprite.graphics.lineTo(p2.px, p2.py);
};
};
}
public function setDisplay(_arg1:DisplayObject, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0):void{
if (collidable){
scp.setDisplay(_arg1, _arg2, _arg3, _arg4);
} else {
displayObject = _arg1;
displayObjectRotation = _arg4;
displayObjectOffset = new Vector(_arg2, _arg3);
};
}
function initDisplay():void{
if (collidable){
scp.initDisplay();
} else {
displayObject.x = displayObjectOffset.x;
displayObject.y = displayObjectOffset.y;
displayObject.rotation = displayObjectRotation;
sprite.addChild(displayObject);
};
}
function get delta():Vector{
return (p1.curr.minus(p2.curr));
}
function get scp():SpringConstraintParticle{
return (_scp);
}
override function resolve():void{
if (((p1.fixed) && (p2.fixed))){
return;
};
var _local1:Number = currLength;
var _local2:Number = ((_local1 - restLength) / (_local1 * (p1.invMass + p2.invMass)));
var _local3:Vector = delta.mult((_local2 * stiffness));
p1.curr.minusEquals(_local3.mult(p1.invMass));
p2.curr.plusEquals(_local3.mult(p2.invMass));
}
private function checkParticlesLocation():void{
if ((((p1.curr.x == p2.curr.x)) && ((p1.curr.y == p2.curr.y)))){
p2.curr.x = (p2.curr.x + 0.0001);
};
}
}
}//package org.cove.ape
Section 66
//SpringConstraintParticle (org.cove.ape.SpringConstraintParticle)
package org.cove.ape {
import flash.display.*;
import org.cove.ape.*;
class SpringConstraintParticle extends RectangleParticle {
private var p1:AbstractParticle;
private var p2:AbstractParticle;
private var avgVelocity:Vector;
private var lambda:Vector;
private var parent:SpringConstraint;
private var scaleToLength:Boolean;
private var rca:Vector;
private var rcb:Vector;
private var s:Number;
private var _rectScale:Number;
private var _rectHeight:Number;
private var _fixedEndLimit:Number;
function SpringConstraintParticle(_arg1:AbstractParticle, _arg2:AbstractParticle, _arg3:SpringConstraint, _arg4:Number, _arg5:Number, _arg6:Boolean){
super(0, 0, 0, 0, 0, false);
this.p1 = _arg1;
this.p2 = _arg2;
lambda = new Vector(0, 0);
avgVelocity = new Vector(0, 0);
parent = _arg3;
this.rectScale = _arg5;
this.rectHeight = _arg4;
this.scaleToLength = _arg6;
fixedEndLimit = 0;
rca = new Vector();
rcb = new Vector();
}
function set rectScale(_arg1:Number):void{
_rectScale = _arg1;
}
function get rectScale():Number{
return (_rectScale);
}
function set rectHeight(_arg1:Number):void{
_rectHeight = _arg1;
}
function get rectHeight():Number{
return (_rectHeight);
}
function set fixedEndLimit(_arg1:Number):void{
_fixedEndLimit = _arg1;
}
function get fixedEndLimit():Number{
return (_fixedEndLimit);
}
override public function get mass():Number{
return (((p1.mass + p2.mass) / 2));
}
override public function get elasticity():Number{
return (((p1.elasticity + p2.elasticity) / 2));
}
override public function get friction():Number{
return (((p1.friction + p2.friction) / 2));
}
override public function get velocity():Vector{
var _local1:Vector = p1.velocity;
var _local2:Vector = p2.velocity;
avgVelocity.setTo(((_local1.x + _local2.x) / 2), ((_local1.y + _local2.y) / 2));
return (avgVelocity);
}
override public function init():void{
var _local1:Sprite;
var _local2:Number;
var _local3:Number;
if (displayObject != null){
initDisplay();
} else {
_local1 = new Sprite();
parent.sprite.addChild(_local1);
_local1.name = "inner";
_local2 = (parent.currLength * rectScale);
_local3 = rectHeight;
_local1.graphics.clear();
_local1.graphics.lineStyle(parent.lineThickness, parent.lineColor, parent.lineAlpha);
_local1.graphics.beginFill(parent.fillColor, parent.fillAlpha);
_local1.graphics.drawRect((-(_local2) / 2), (-(_local3) / 2), _local2, _local3);
_local1.graphics.endFill();
};
paint();
}
override public function paint():void{
var _local1:Vector = parent.center;
var _local2:Sprite = parent.sprite;
if (scaleToLength){
_local2.getChildByName("inner").width = (parent.currLength * rectScale);
} else {
if (displayObject != null){
_local2.getChildByName("inner").width = (parent.restLength * rectScale);
};
};
_local2.x = _local1.x;
_local2.y = _local1.y;
_local2.rotation = parent.angle;
}
override function initDisplay():void{
displayObject.x = displayObjectOffset.x;
displayObject.y = displayObjectOffset.y;
displayObject.rotation = displayObjectRotation;
var _local1:Sprite = new Sprite();
_local1.name = "inner";
_local1.addChild(displayObject);
parent.sprite.addChild(_local1);
}
override function get invMass():Number{
if (((p1.fixed) && (p2.fixed))){
return (0);
};
return ((1 / ((p1.mass + p2.mass) / 2)));
}
function updatePosition():void{
var _local1:Vector = parent.center;
curr.setTo(_local1.x, _local1.y);
width = (scaleToLength) ? (parent.currLength * rectScale) : (parent.restLength * rectScale);
height = rectHeight;
radian = parent.radian;
}
override function resolveCollision(_arg1:Vector, _arg2:Vector, _arg3:Vector, _arg4:Number, _arg5:int, _arg6:AbstractParticle):void{
var _local10:Number;
var _local11:AbstractParticle;
var _local7:Number = getContactPointParam(_arg6);
var _local8:Number = (1 - _local7);
var _local9:Number = _local7;
if (p1.fixed){
if (_local9 <= fixedEndLimit){
return;
};
lambda.setTo((_arg1.x / _local9), (_arg1.y / _local9));
p2.curr.plusEquals(lambda);
p2.velocity = _arg2;
} else {
if (p2.fixed){
if (_local8 <= fixedEndLimit){
return;
};
lambda.setTo((_arg1.x / _local8), (_arg1.y / _local8));
p1.curr.plusEquals(lambda);
p1.velocity = _arg2;
} else {
_local10 = ((_local8 * _local8) + (_local9 * _local9));
if (_local10 == 0){
return;
};
lambda.setTo((_arg1.x / _local10), (_arg1.y / _local10));
p1.curr.plusEquals(lambda.mult(_local8));
p2.curr.plusEquals(lambda.mult(_local9));
if (_local7 == 0.5){
p1.velocity = _arg2;
p2.velocity = _arg2;
} else {
_local11 = ((_local7)<0.5) ? p1 : p2;
_local11.velocity = _arg2;
};
};
};
}
private function closestParamPoint(_arg1:Vector):Number{
var _local2:Vector = p2.curr.minus(p1.curr);
var _local3:Number = (_local2.dot(_arg1.minus(p1.curr)) / _local2.dot(_local2));
return (MathUtil.clamp(_local3, 0, 1));
}
private function getContactPointParam(_arg1:AbstractParticle):Number{
var _local2:Number;
var _local3:Number;
var _local4:Array;
var _local5:Number;
var _local6:int;
var _local7:Number;
if ((_arg1 is CircleParticle)){
_local2 = closestParamPoint(_arg1.curr);
} else {
if ((_arg1 is RectangleParticle)){
_local4 = new Array(4);
_local5 = Number.POSITIVE_INFINITY;
_local6 = 0;
while (_local6 < 4) {
setCorners((_arg1 as RectangleParticle), _local6);
_local7 = closestPtSegmentSegment();
if (_local7 < _local5){
_local5 = _local7;
_local3 = _local6;
_local4[_local6] = s;
};
_local6++;
};
_local2 = _local4[_local3];
};
};
return (_local2);
}
private function setCorners(_arg1:RectangleParticle, _arg2:int):void{
var _local3:Number = _arg1.curr.x;
var _local4:Number = _arg1.curr.y;
var _local5:Array = _arg1.axes;
var _local6:Array = _arg1.extents;
var _local7:Number = (_local5[0].x * _local6[0]);
var _local8:Number = (_local5[0].y * _local6[0]);
var _local9:Number = (_local5[1].x * _local6[1]);
var _local10:Number = (_local5[1].y * _local6[1]);
var _local11:Number = (_local7 - _local9);
var _local12:Number = (_local8 - _local10);
var _local13:Number = (_local7 + _local9);
var _local14:Number = (_local8 + _local10);
if (_arg2 == 0){
rca.x = (_local3 - _local13);
rca.y = (_local4 - _local14);
rcb.x = (_local3 + _local11);
rcb.y = (_local4 + _local12);
} else {
if (_arg2 == 1){
rca.x = (_local3 + _local11);
rca.y = (_local4 + _local12);
rcb.x = (_local3 + _local13);
rcb.y = (_local4 + _local14);
} else {
if (_arg2 == 2){
rca.x = (_local3 + _local13);
rca.y = (_local4 + _local14);
rcb.x = (_local3 - _local11);
rcb.y = (_local4 - _local12);
} else {
if (_arg2 == 3){
rca.x = (_local3 - _local11);
rca.y = (_local4 - _local12);
rcb.x = (_local3 - _local13);
rcb.y = (_local4 - _local14);
};
};
};
};
}
private function closestPtSegmentSegment():Number{
var _local8:Number;
var _local1:Vector = p1.curr;
var _local2:Vector = p2.curr;
var _local3:Vector = rca;
var _local4:Vector = rcb;
var _local5:Vector = _local2.minus(_local1);
var _local6:Vector = _local4.minus(_local3);
var _local7:Vector = _local1.minus(_local3);
var _local9:Number = _local5.dot(_local5);
var _local10:Number = _local6.dot(_local6);
var _local11:Number = _local6.dot(_local7);
var _local12:Number = _local5.dot(_local7);
var _local13:Number = _local5.dot(_local6);
var _local14:Number = ((_local9 * _local10) - (_local13 * _local13));
if (_local14 != 0){
s = MathUtil.clamp((((_local13 * _local11) - (_local12 * _local10)) / _local14), 0, 1);
} else {
s = 0.5;
};
_local8 = (((_local13 * s) + _local11) / _local10);
if (_local8 < 0){
_local8 = 0;
s = MathUtil.clamp((-(_local12) / _local9), 0, 1);
} else {
if (_local8 > 0){
_local8 = 1;
s = MathUtil.clamp(((_local13 - _local12) / _local9), 0, 1);
};
};
var _local15:Vector = _local1.plus(_local5.mult(s));
var _local16:Vector = _local3.plus(_local6.mult(_local8));
var _local17:Vector = _local15.minus(_local16);
return (_local15.minus(_local16).dot(_local17));
}
}
}//package org.cove.ape
Section 67
//Vector (org.cove.ape.Vector)
package org.cove.ape {
public class Vector {
public var x:Number;
public var y:Number;
public function Vector(_arg1:Number=0, _arg2:Number=0){
x = _arg1;
y = _arg2;
}
public function setTo(_arg1:Number, _arg2:Number):void{
x = _arg1;
y = _arg2;
}
public function copy(_arg1:Vector):void{
x = _arg1.x;
y = _arg1.y;
}
public function dot(_arg1:Vector):Number{
return (((x * _arg1.x) + (y * _arg1.y)));
}
public function cross(_arg1:Vector):Number{
return (((x * _arg1.y) - (y * _arg1.x)));
}
public function plus(_arg1:Vector):Vector{
return (new Vector((x + _arg1.x), (y + _arg1.y)));
}
public function plusEquals(_arg1:Vector):Vector{
x = (x + _arg1.x);
y = (y + _arg1.y);
return (this);
}
public function minus(_arg1:Vector):Vector{
return (new Vector((x - _arg1.x), (y - _arg1.y)));
}
public function minusEquals(_arg1:Vector):Vector{
x = (x - _arg1.x);
y = (y - _arg1.y);
return (this);
}
public function mult(_arg1:Number):Vector{
return (new Vector((x * _arg1), (y * _arg1)));
}
public function multEquals(_arg1:Number):Vector{
x = (x * _arg1);
y = (y * _arg1);
return (this);
}
public function times(_arg1:Vector):Vector{
return (new Vector((x * _arg1.x), (y * _arg1.y)));
}
public function divEquals(_arg1:Number):Vector{
if (_arg1 == 0){
_arg1 = 0.0001;
};
x = (x / _arg1);
y = (y / _arg1);
return (this);
}
public function magnitude():Number{
return (Math.sqrt(((x * x) + (y * y))));
}
public function distance(_arg1:Vector):Number{
var _local2:Vector = this.minus(_arg1);
return (_local2.magnitude());
}
public function normalize():Vector{
var _local1:Number = magnitude();
if (_local1 == 0){
_local1 = 0.0001;
};
return (mult((1 / _local1)));
}
public function toString():String{
return (((x + " : ") + y));
}
}
}//package org.cove.ape
Section 68
//Amico_Testa1_118 (Powershot_fla.Amico_Testa1_118)
package Powershot_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Amico_Testa1_118 extends MovieClip {
public function Amico_Testa1_118(){
addFrameScript(0, frame1, 20, frame21);
}
function frame1(){
stop();
}
function frame21(){
var _local1 = root;
_local1["colpo_testa1"]();
}
}
}//package Powershot_fla
Section 69
//Amico_Testa2_114 (Powershot_fla.Amico_Testa2_114)
package Powershot_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Amico_Testa2_114 extends MovieClip {
public function Amico_Testa2_114(){
addFrameScript(0, frame1, 20, frame21);
}
function frame1(){
stop();
}
function frame21(){
var _local1 = root;
_local1["colpo_testa2"]();
}
}
}//package Powershot_fla
Section 70
//AmicoRovesciataNEW_116 (Powershot_fla.AmicoRovesciataNEW_116)
package Powershot_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class AmicoRovesciataNEW_116 extends MovieClip {
public function AmicoRovesciataNEW_116(){
addFrameScript(0, frame1, 21, frame22);
}
function frame1(){
stop();
}
function frame22(){
var _local1 = root;
_local1["esegui_rovesciata"]();
}
}
}//package Powershot_fla
Section 71
//Cordinomongolfiera_127 (Powershot_fla.Cordinomongolfiera_127)
package Powershot_fla {
import flash.display.*;
public dynamic class Cordinomongolfiera_127 extends MovieClip {
public var pallone:Palla;
public function Cordinomongolfiera_127(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Powershot_fla
Section 72
//Idrante_103 (Powershot_fla.Idrante_103)
package Powershot_fla {
import flash.display.*;
public dynamic class Idrante_103 extends MovieClip {
public function Idrante_103(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Powershot_fla
Section 73
//KAka_123 (Powershot_fla.KAka_123)
package Powershot_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class KAka_123 extends MovieClip {
public function KAka_123(){
addFrameScript(0, frame1, 35, frame36, 36, frame37);
}
function frame1(){
stop();
}
function frame36(){
var _local1 = root;
_local1["sostituzione_palla"]();
}
function frame37(){
stop();
}
}
}//package Powershot_fla
Section 74
//Kid_124 (Powershot_fla.Kid_124)
package Powershot_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Kid_124 extends MovieClip {
public function Kid_124(){
addFrameScript(0, frame1, 1, frame2, 12, frame13);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame13(){
var _local1 = root;
_local1["effettua_tiro"]();
}
}
}//package Powershot_fla
Section 75
//ko_137 (Powershot_fla.ko_137)
package Powershot_fla {
import flash.display.*;
import flash.events.*;
import mochi.as3.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class ko_137 extends MovieClip {
public var send_score:SimpleButton;
public var promo:MovieClip;
public var end_game:SimpleButton;
public var playerscore;
public function ko_137(){
addFrameScript(0, frame1, 17, frame18);
}
public function riparti(_arg1:MouseEvent){
var _local2 = root;
_local2["riavvia"](1);
}
public function sendScore(_arg1:MouseEvent):void{
var evt = _arg1;
var o:Object = {n:[2, 10, 3, 1, 2, 12, 9, 4, 5, 6, 10, 10, 12, 7, 2, 14], f:function (_arg1:Number, _arg2:String):String{
if (_arg2.length == 16){
return (_arg2);
};
return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16))));
}};
var boardID:String = o.f(0, "");
MochiScores.showLeaderboard({boardID:boardID, score:playerscore});
var _local3 = root;
_local3["riavvia"](0);
}
function frame1(){
stop();
}
function frame18(){
MochiAd.showClickAwayAd({clip:promo, id:"9fb8d4a90636f043"});
stop();
stop();
playerscore = Math.round((MovieClip(root).distanza_percorsa / 10));
end_game.addEventListener(MouseEvent.CLICK, riparti);
send_score.addEventListener(MouseEvent.CLICK, sendScore);
}
}
}//package Powershot_fla
Section 76
//MainTimeline (Powershot_fla.MainTimeline)
package Powershot_fla {
import flash.display.*;
import flash.events.*;
import org.cove.ape.*;
import mochi.as3.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var mappa:MovieClip;
public var game_over:MovieClip;
public var __id0_:GamesChartAPI_AS3;
public var suono:MovieClip;
public var info:MovieClip;
public var sfondo:MovieClip;
public var _secondi;
public var tempo;
public var tempo_gioco;
public var minuti;
public var secondi;
public var __overopzione;
public var _skinoggetti;
public var _gruppoterra;
public var _ostacoli;
public var _gruppobonus;
public var _terreno;
public var _cartello;
public var _albero0;
public var _cestino;
public var _bus_sotto;
public var _bonus;
public var _skinbonus;
public var _bus_sopra;
public var _macchina1;
public var _idrante;
public var _cespuglio1;
public var _cespuglio2;
public var _cartello1;
public var _cestino1;
public var _cartello2;
public var _bidone;
public var _albero2;
public var _albero3;
public var _idrante2;
public var _idrante3;
public var _cespuglio3;
public var _cespuglio4;
public var _bidone2;
public var _gruppoplayer;
public var _palla;
public var _skinpalla;
public var __rapporto;
public var __rapportoP;
public var __rapportoP2;
public var __rapportoH;
public var __rapportoW;
public var ___differenza;
public var tiri_disponibili;
public var tiri_effettuati;
public var rovesciato;
public var colpotesta1;
public var colpotesta2;
public var distanza_percorsa;
public var mongolfierato;
public var moltiplicatore;
public var forza_tiro;
public var forza_H;
public var forza_V;
public var rapporto;
public var ha_tirato;
public var temppow;
public var forza_Vert:Number;
public var direzione_rotazione;
public var step_rotazione;
public var __direzione_forza;
public var __step_forza;
public var step_tiro;
public var iniXvecch;
public var rndmXvecch;
public var _turnback;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2);
__setProp___id0__Scene1_Vittoria_0();
}
public function timer_livello(){
_secondi++;
minuti = int((_secondi / 60));
secondi = (_secondi - (minuti * 60));
if (secondi < 10){
secondi = ("0" + secondi);
};
if (minuti < 10){
minuti = ("0" + minuti);
};
}
public function riavvia(_arg1){
game_over.visible = false;
removeChild(game_over);
stage.removeEventListener(Event.ENTER_FRAME, aggiorna);
_palla.sprite.removeEventListener(Event.ENTER_FRAME, gira);
_palla.sprite.removeEventListener(Event.ENTER_FRAME, trasporto_mongolfiera);
sfondo.mirino.removeEventListener(Event.ENTER_FRAME, ruota);
sfondo.potenza.removeEventListener(Event.ENTER_FRAME, forza);
if (_arg1 == 1){
gotoAndStop(1);
};
}
public function sostituzione_palla(){
sfondo.mirino.rotation = 0;
trace("CAMBIA");
_palla.sprite.visible = true;
trace(_palla.sprite.visible);
sfondo.mirino.visible = true;
sfondo.kid.gotoAndStop(2);
sfondo.mirino.addEventListener(Event.ENTER_FRAME, ruota);
stage.addEventListener(MouseEvent.MOUSE_DOWN, tira);
}
public function aggiorna(_arg1:Event){
if (tiri_effettuati > 0){
___differenza = 40;
};
sfondo.x = -((_palla.px - 550));
mappa.x = (sfondo.x / __rapporto);
mappa.palla.x = (_palla.sprite.x / __rapportoP);
mappa.palla.y = (_palla.sprite.y / __rapportoH);
APEngine.step();
APEngine.paint();
}
public function trasporto_mongolfiera(_arg1:Event){
_palla.px = (_palla.px - 8);
_palla.py = (_palla.sprite.y = (sfondo.mongolfiera.y + 60));
distanza_percorsa = (22400 - _palla.sprite.x);
info.distanza.text = Math.round((distanza_percorsa / 10));
}
public function lascia_palla(){
_palla.fixed = false;
_palla.sprite.removeEventListener(Event.ENTER_FRAME, trasporto_mongolfiera);
_palla.px = (_palla.sprite.x = 6150);
_palla.py = (_palla.sprite.y = 400);
sfondo.mongolfiera.cordino.pallone.visible = false;
_palla.sprite.visible = true;
_palla.sprite.addEventListener(Event.ENTER_FRAME, gira);
mappa.palla.visible = true;
}
public function gira(_arg1:Event){
distanza_percorsa = (22400 - _palla.sprite.x);
info.distanza.text = Math.round((distanza_percorsa / 10));
_palla.sprite.rotation = (_palla.sprite.rotation + 10);
if ((((((_palla.sprite.x > sfondo.bus.x)) && ((_palla.sprite.x < (sfondo.bus.x + sfondo.bus.width))))) && ((_palla.sprite.y > sfondo.bus.y)))){
_palla.sprite.alpha = 0.5;
} else {
_palla.sprite.alpha = 1;
};
if ((((((((_palla.sprite.x > (sfondo.mongolfiera.x - (sfondo.mongolfiera.width / 2)))) && ((_palla.sprite.x < (sfondo.mongolfiera.x + (sfondo.mongolfiera.width / 2)))))) && ((_palla.sprite.y < 500)))) && (!(mongolfierato)))){
_palla.fixed = true;
_palla.px = (_palla.sprite.x = (sfondo.mongolfiera.x + 50));
_palla.py = (_palla.sprite.y = (sfondo.mongolfiera.y + 60));
_palla.sprite.visible = false;
_palla.sprite.removeEventListener(Event.ENTER_FRAME, gira);
_palla.sprite.addEventListener(Event.ENTER_FRAME, trasporto_mongolfiera);
sfondo.mongolfiera.cordino.pallone.visible = true;
mongolfierato = true;
sfondo.mongolfiera.gotoAndPlay(2);
sfondo.mongolfiera.cordino.gotoAndPlay(2);
mappa.mapmong.gotoAndPlay(2);
mappa.palla.visible = false;
};
if ((((((((_palla.sprite.x > (sfondo.amico_rovesciata.x - 200))) && ((_palla.sprite.x < (sfondo.amico_rovesciata.x + 200))))) && (((sfondo.amico_rovesciata.y - _palla.sprite.y) < 100)))) && (!(rovesciato)))){
trace(_palla.px);
_palla.px = (_palla.sprite.x = (sfondo.amico_rovesciata.x - 10));
trace(_palla.px);
trace(sfondo.amico_rovesciata.x);
_palla.py = (_palla.sprite.y = (sfondo.amico_rovesciata.y - 30));
_palla.fixed = true;
_palla.sprite.removeEventListener(Event.ENTER_FRAME, gira);
sfondo.amico_rovesciata.gotoAndPlay(2);
trace("Rovesciati tutto");
rovesciato = true;
};
if ((((((((_palla.sprite.x > (sfondo.amico_testa1.x - 100))) && ((_palla.sprite.x < (sfondo.amico_testa1.x + 100))))) && (((sfondo.amico_testa1.y - _palla.sprite.y) < 100)))) && (!(colpotesta1)))){
_palla.px = (_palla.sprite.x = (sfondo.amico_testa1.x - 30));
_palla.py = (_palla.sprite.y = (sfondo.amico_testa1.y - 25));
_palla.fixed = true;
_palla.sprite.removeEventListener(Event.ENTER_FRAME, gira);
sfondo.amico_testa1.gotoAndPlay(2);
colpotesta1 = true;
};
if ((((((((_palla.sprite.x > (sfondo.amico_testa2.x - 100))) && ((_palla.sprite.x < (sfondo.amico_testa2.x + 100))))) && (((sfondo.amico_testa2.y - _palla.sprite.y) < 100)))) && (!(colpotesta2)))){
_palla.px = (_palla.sprite.x = (sfondo.amico_testa2.x - 30));
_palla.py = (_palla.sprite.y = (sfondo.amico_testa2.y - 25));
_palla.fixed = true;
_palla.sprite.removeEventListener(Event.ENTER_FRAME, gira);
sfondo.amico_testa2.gotoAndPlay(2);
colpotesta2 = true;
};
if ((((((_palla.sprite.x > (sfondo.vecchietta.x - 50))) && ((_palla.sprite.x < (sfondo.vecchietta.x + 50))))) && (((sfondo.vecchietta.y - _palla.sprite.y) < 100)))){
_palla.fixed = true;
sfondo.vecchietta.removeEventListener(Event.ENTER_FRAME, cammina);
_palla.sprite.removeEventListener(Event.ENTER_FRAME, gira);
sfondo.vecchietta.gotoAndPlay(3);
} else {
trace(_palla.sprite.y);
if ((((((((Math.abs(_palla.velocity.x) < 0.3)) && ((Math.abs(_palla.velocity.x) < 0.3)))) && ((_palla.sprite.y > 630)))) && (!(_palla.fixed)))){
tiri_effettuati++;
tiri_disponibili--;
info[("tiro" + tiri_effettuati)].alpha = 0.5;
ha_tirato = false;
_palla.sprite.removeEventListener(Event.ENTER_FRAME, gira);
trace(("RIMANGONO:" + tiri_disponibili));
if (tiri_disponibili > 0){
step_tiro = 1;
sfondo.kid.alpha = 0;
sfondo.kid.visible = true;
sfondo.kid.x = (_palla.sprite.x + 50);
sfondo.kid.gotoAndStop(2);
sfondo.mirino.x = _palla.sprite.x;
sfondo.potenza.x = (sfondo.kid.x + 160);
sfondo.potenza.visible = false;
sfondo.kid.addEventListener(Event.ENTER_FRAME, appari);
} else {
clearTimeout(tempo_gioco);
addChild(game_over);
game_over.visible = true;
game_over.gotoAndPlay(2);
};
};
};
}
public function esegui_rovesciata(){
_palla.fixed = false;
_palla.addForce(new Vector(-250, -240));
_palla.sprite.addEventListener(Event.ENTER_FRAME, gira);
}
public function colpo_testa1(){
var _local1:* = int((Math.random() * 50));
var _local2:* = int((Math.random() * 30));
_palla.fixed = false;
_palla.addForce(new Vector(-((190 - _local1)), -((220 - _local2))));
_palla.sprite.addEventListener(Event.ENTER_FRAME, gira);
}
public function colpo_testa2(){
_palla.fixed = false;
if (tiri_disponibili > 1){
_palla.addForce(new Vector(-125, -170));
} else {
_palla.addForce(new Vector(-160, -180));
};
_palla.sprite.addEventListener(Event.ENTER_FRAME, gira);
}
public function appari(_arg1:Event){
_arg1.target.alpha = (_arg1.target.alpha + 0.1);
if (_arg1.target.alpha >= 1){
sfondo.mirino.visible = true;
sfondo.mirino.rotation = 0;
sfondo.mirino.addEventListener(Event.ENTER_FRAME, ruota);
sfondo.kid.removeEventListener(Event.ENTER_FRAME, appari);
stage.addEventListener(MouseEvent.MOUSE_DOWN, tira);
};
}
public function effettua_tiro(){
moltiplicatore = (sfondo.mirino.rotation + 90);
forza_tiro = sfondo.potenza.barra.height;
var differenza:* = (90 - moltiplicatore);
temppow = ((forza_tiro / 90) + 0.5);
forza_H = Math.abs((((91 - moltiplicatore) * temppow) / -4));
forza_V = Math.abs(((moltiplicatore * temppow) / -5));
_palla.velocity = new Vector(0, 0);
trace(differenza);
trace(("MOLTIPLICATORE:" + moltiplicatore));
trace(("FORZA ORIZZONTALE:" + forza_H));
trace(("FORZA VERTICALE:" + forza_V));
_palla.addForce(new Vector((-(forza_H) * 12), (-(forza_V) * 12)));
trace(("FORZA ORIZZONTALE:" + forza_H));
trace(("FORZA VERTICALE:" + forza_V));
_palla.sprite.addEventListener(Event.ENTER_FRAME, gira);
ha_tirato = true;
stage.removeEventListener(MouseEvent.MOUSE_DOWN, tira);
setTimeout(function (){
sfondo.mirino.visible = (sfondo.potenza.visible = false);
}, 100);
}
public function ruota(_arg1:Event){
_arg1.target.rotation = (_arg1.target.rotation + (step_rotazione * direzione_rotazione));
if (_arg1.target.rotation >= 0){
direzione_rotazione = -1;
};
if (_arg1.target.rotation <= -90){
direzione_rotazione = 1;
};
}
public function tira(_arg1:MouseEvent){
if (__overopzione == false){
if (step_tiro == 1){
sfondo.potenza.visible = true;
sfondo.potenza.barra.height = 0;
sfondo.mirino.removeEventListener(Event.ENTER_FRAME, ruota);
sfondo.potenza.removeEventListener(Event.ENTER_FRAME, forza);
sfondo.potenza.barra.height = 0;
sfondo.potenza.addEventListener(Event.ENTER_FRAME, forza);
step_tiro = 2;
} else {
if (step_tiro == 2){
sfondo.potenza.removeEventListener(Event.ENTER_FRAME, forza);
sfondo.kid.gotoAndPlay(2);
};
};
};
}
public function forza(_arg1:Event){
trace(__step_forza);
trace(__direzione_forza);
_arg1.target.barra.height = (_arg1.target.barra.height + (__step_forza * __direzione_forza));
_arg1.target.freccia.y = -(_arg1.target.barra.height);
if (_arg1.target.barra.height >= 100){
__direzione_forza = -1;
};
if (_arg1.target.barra.height <= 0){
__direzione_forza = 1;
};
}
public function cammina(_arg1:Event){
if (_arg1.target.x > 14550){
_turnback = true;
_arg1.target.gotoAndStop(2);
};
if (_arg1.target.x < 13500){
_turnback = false;
_arg1.target.gotoAndStop(1);
};
if (_turnback == false){
_arg1.target.x = (_arg1.target.x + 2);
} else {
_arg1.target.x = (_arg1.target.x - 2);
};
}
public function vecchietta_respinge(){
_palla.fixed = false;
_palla.velocity = new Vector(0, 0);
_palla.addForce(new Vector(100, 70));
_palla.sprite.addEventListener(Event.ENTER_FRAME, gira);
}
public function vecchietta_riparte(){
if (_turnback == false){
sfondo.vecchietta.gotoAndStop(1);
} else {
sfondo.vecchietta.gotoAndStop(2);
};
sfondo.vecchietta.addEventListener(Event.ENTER_FRAME, cammina);
}
function __setProp___id0__Scene1_Vittoria_0(){
try {
__id0_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id0_.gameKey = "fdc3bdaf8a6686cdbed5b1cd806c7d0c";
try {
__id0_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
MochiServices.connect("9fb8d4a90636f043", root);
MochiAd.showPreGameAd({clip:root, id:"9fb8d4a90636f043", res:"800x600"});
stop();
}
function frame2(){
game_over.visible = false;
removeChild(game_over);
_secondi = 0;
__overopzione = false;
stop();
info.distanza.text = "0";
APEngine.init((1 / 2));
APEngine.container = sfondo;
_skinoggetti = new Nulla();
_gruppoterra = new Group();
_gruppoterra.collideInternal = false;
_ostacoli = new Group();
_ostacoli.collideInternal = false;
_gruppobonus = new Group();
_gruppobonus.collideInternal = false;
_terreno = new RectangleParticle(11000, 730, 24000, 150, 0, true, 1, 0.3, 0.3);
_terreno.sprite.name = "terreno";
_terreno.setDisplay(_skinoggetti);
_gruppoterra.addParticle(_terreno);
_cartello = new RectangleParticle(22240, 360, 80, 760, 0, true);
_cartello.sprite.name = "cartello";
_cartello.setDisplay(_skinoggetti);
_ostacoli.addParticle(_cartello);
_albero0 = new RectangleParticle(21170, 555, 100, 300, 0, true);
_albero0.sprite.name = "albero0";
_albero0.setDisplay(_skinoggetti);
_ostacoli.addParticle(_albero0);
_cestino = new RectangleParticle(20400, 620, 50, 120, 0, true);
_cestino.setDisplay(_skinoggetti);
_ostacoli.addParticle(_cestino);
_bus_sotto = new RectangleParticle(19580, 600, 270, 190, 0, true);
_bus_sotto.setDisplay(_skinoggetti);
_ostacoli.addParticle(_bus_sotto);
_bonus = new CircleParticle(19575, 449, 40, true);
_skinbonus = new Bonus();
_bonus.sprite.name = "bonus";
_bonus.setDisplay(_skinoggetti);
_gruppobonus.addParticle(_bonus);
APEngine.__bonus = sfondo.__bonus;
_bus_sopra = new RectangleParticle(19580, 355, 270, 50, 0, true);
_bus_sopra.setDisplay(_skinoggetti);
_ostacoli.addParticle(_bus_sopra);
_macchina1 = new RectangleParticle(18623, 595, 245, 180, 0, true);
_macchina1.setDisplay(_skinoggetti);
_ostacoli.addParticle(_macchina1);
_idrante = new RectangleParticle(18040, 625, 50, 100, 0, true);
_idrante.sprite.name = "idrante1";
_idrante.setDisplay(_skinoggetti);
_ostacoli.addParticle(_idrante);
_cespuglio1 = new RectangleParticle(16755, 650, 130, 200, 0, true);
_cespuglio1.setDisplay(_skinoggetti);
_ostacoli.addParticle(_cespuglio1);
_cespuglio2 = new RectangleParticle(16400, 650, 130, 200, 0, true);
_cespuglio2.setDisplay(_skinoggetti);
_ostacoli.addParticle(_cespuglio2);
_cartello1 = new RectangleParticle(15440, 545, 80, 290, 0, true);
_cartello1.sprite.name = "cartello1";
_cartello1.setDisplay(_skinoggetti);
_ostacoli.addParticle(_cartello1);
_cestino1 = new RectangleParticle(15000, 620, 50, 120, 0, true);
_cestino1.setDisplay(_skinoggetti);
_ostacoli.addParticle(_cestino1);
_cartello2 = new RectangleParticle(13232, 545, 80, 290, 0, true);
_cartello2.sprite.name = "cartello2";
_cartello2.setDisplay(_skinoggetti);
_ostacoli.addParticle(_cartello2);
_bidone = new RectangleParticle(11850, 595, 200, 150, 0, true);
_bidone.setDisplay(_skinoggetti);
_ostacoli.addParticle(_bidone);
_albero2 = new RectangleParticle(0x2828, 555, 100, 300, 0, true);
_albero2.setDisplay(_skinoggetti);
_albero2.sprite.name = "albero2";
_ostacoli.addParticle(_albero2);
_albero3 = new RectangleParticle(8440, 555, 100, 300, 0, true);
_albero3.setDisplay(_skinoggetti);
_albero3.sprite.name = "albero3";
_ostacoli.addParticle(_albero3);
_idrante2 = new RectangleParticle(7400, 630, 50, 120, 0, true);
_idrante2.sprite.name = "idrante2";
_idrante2.setDisplay(_skinoggetti);
_ostacoli.addParticle(_idrante2);
_idrante3 = new RectangleParticle(5582, 630, 50, 120, 0, true);
_idrante3.sprite.name = "idrante3";
_idrante3.setDisplay(_skinoggetti);
_ostacoli.addParticle(_idrante3);
_cespuglio3 = new RectangleParticle(4110, 650, 130, 200, 0, true);
_cespuglio3.setDisplay(_skinoggetti);
_ostacoli.addParticle(_cespuglio3);
_cespuglio4 = new RectangleParticle(3770, 650, 130, 200, 0, true);
_cespuglio4.setDisplay(_skinoggetti);
_ostacoli.addParticle(_cespuglio4);
_bidone2 = new RectangleParticle(3080, 595, 200, 150, 0, true);
_bidone2.setDisplay(_skinoggetti);
_ostacoli.addParticle(_bidone2);
_gruppoplayer = new Group();
_gruppoplayer.collideInternal = false;
_gruppoplayer.addCollidable(_gruppoterra);
_gruppoplayer.addCollidable(_ostacoli);
_gruppoplayer.addCollidable(_gruppobonus);
APEngine.addGroup(_gruppoplayer);
APEngine.addGroup(_gruppoterra);
APEngine.addGroup(_ostacoli);
APEngine.addGroup(_gruppobonus);
_palla = new CircleParticle(22050, 610, 16, false);
_skinpalla = new Palla();
_palla.setDisplay(_skinpalla);
_gruppoplayer.addParticle(_palla);
_palla.sprite.visible = false;
sfondo.mirino.visible = false;
setTimeout(function (){
sfondo.kaka.gotoAndPlay(2);
}, 2000);
APEngine.addMasslessForce(new Vector(0, 10));
__rapporto = (sfondo.x / mappa.x);
__rapportoW = (sfondo.width / mappa.width);
__rapportoP = (_palla.sprite.x / mappa.palla.x);
__rapportoH = (_palla.sprite.y / mappa.palla.y);
trace(("S:" + sfondo.width));
trace(("M:" + mappa.width));
trace(("palla:" + _palla.sprite.x));
trace(__rapporto);
trace(__rapportoP);
sfondo.addChild(sfondo.frontale);
sfondo.addChild(sfondo.potenza);
stage.addEventListener(Event.ENTER_FRAME, aggiorna);
___differenza = 20;
trace(("PALLA ORIGINALE:" + _palla.sprite.x));
trace(("PALLA MAPPA:" + mappa.palla.x));
trace(("RAPPORTO:" + __rapportoP));
tiri_disponibili = 5;
tiri_effettuati = 0;
sfondo.mongolfiera.cordino.pallone.visible = false;
colpotesta1 = (mongolfierato = (rovesciato = (colpotesta2 = false)));
APEngine.idrante1 = sfondo.idrante1;
APEngine.idrante2 = sfondo.idrante2;
APEngine.idrante3 = sfondo.idrante3;
forza_Vert = 0;
direzione_rotazione = -1;
step_rotazione = 3;
__direzione_forza = 1;
__step_forza = 5;
step_tiro = 1;
sfondo.potenza.visible = 0;
trace(("X vecchietta:" + sfondo.vecchietta.x));
iniXvecch = sfondo.vecchietta.x;
rndmXvecch = int((Math.random() * 1000));
sfondo.vecchietta.x = (iniXvecch + rndmXvecch);
trace(("nuova X vecchietta:" + sfondo.vecchietta.x));
sfondo.vecchietta.addEventListener(Event.ENTER_FRAME, cammina);
_turnback = false;
}
}
}//package Powershot_fla
Section 77
//Mongolfiera_125 (Powershot_fla.Mongolfiera_125)
package Powershot_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Mongolfiera_125 extends MovieClip {
public var cordino:MovieClip;
public function Mongolfiera_125(){
addFrameScript(0, frame1, 117, frame118);
}
function frame1(){
stop();
}
function frame118(){
stop();
var _local1 = root;
_local1["lascia_palla"]();
}
}
}//package Powershot_fla
Section 78
//Mongolfieramap_135 (Powershot_fla.Mongolfieramap_135)
package Powershot_fla {
import flash.display.*;
public dynamic class Mongolfieramap_135 extends MovieClip {
public var cordino:MovieClip;
public function Mongolfieramap_135(){
addFrameScript(0, frame1, 93, frame94);
}
function frame1(){
stop();
}
function frame94(){
stop();
}
}
}//package Powershot_fla
Section 79
//Suono_1 (Powershot_fla.Suono_1)
package Powershot_fla {
import flash.display.*;
public dynamic class Suono_1 extends MovieClip {
public function Suono_1(){
addFrameScript(0, frame1, 859, frame860);
}
function frame1(){
stop();
}
function frame860(){
gotoAndPlay(2);
}
}
}//package Powershot_fla
Section 80
//Vecchietta_119 (Powershot_fla.Vecchietta_119)
package Powershot_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Vecchietta_119 extends MovieClip {
public var __clip:MovieClip;
public var clip:MovieClip;
public function Vecchietta_119(){
addFrameScript(0, frame1, 1, frame2, 3, frame4);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame4(){
stop();
__clip.gotoAndPlay(2);
var _local1 = root;
_local1["vecchietta_respinge"]();
}
}
}//package Powershot_fla
Section 81
//VecchiettaHit_122 (Powershot_fla.VecchiettaHit_122)
package Powershot_fla {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import flash.geom.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class VecchiettaHit_122 extends MovieClip {
public function VecchiettaHit_122(){
addFrameScript(0, frame1, 49, frame50);
}
function frame1(){
stop();
}
function frame50(){
stop();
var _local1 = root;
_local1["vecchietta_riparte"]();
}
}
}//package Powershot_fla
Section 82
//Bonus (Bonus)
package {
import flash.display.*;
public dynamic class Bonus extends MovieClip {
}
}//package
Section 83
//GamesChart (GamesChart)
package {
import flash.display.*;
public class GamesChart {
public static var onGCEvent:Function = null;
private static var _errors:Object = {noInterface:"[GC-API] ERROR! Please call gc.setup() first. See: http://wiki.gameschart.com/index.php/Static_Functions", alreadyDefinedInterface:"[GC-API] ERROR! Can only call setup once! See: http://wiki.gameschart.com/index.php/Static_Functions", noContainerMC:"[GC-API] ERROR! You must supply a container to hold GamesChart! See: http://wiki.gameschart.com/index.php/Static_Functions#Setup", noGameIDHash:"[GC-API] ERROR! You must supply the game ID key associated with this game! http://wiki.gameschart.com/index.php/Static_Functions#Setup"};
private static var _interface:GCBrainInterface;
public static var VERSION:String = "0.2.0";
public static function openCharts():void{
if (_interface == null){
trace(_errors.noInterface);
return;
};
_interface.sendNotification(GCNotificationTypes.SHOW_CHART_LISTS, {});
}
public static function hideTab():void{
if (_interface == null){
trace(_errors.noInterface);
return;
};
_interface.sendNotification(GCNotificationTypes.HIDE_TAB, {});
}
public static function showTab(_arg1:Number, _arg2:Number):void{
if (_interface == null){
trace(_errors.noInterface);
return;
};
_interface.sendNotification(GCNotificationTypes.SHOW_TAB, {xPos:_arg1, yPos:_arg2});
}
public static function setup(_arg1:Stage, _arg2:String):void{
if (_interface == null){
if (_arg1 == null){
trace(_errors.noContainerMC);
return;
};
if ((((_arg2 == null)) || ((_arg2 == "")))){
trace(_errors.noGameIDHash);
return;
};
_interface = new GCBrainInterface(_arg1);
_interface.begin(_arg2);
} else {
trace(_errors.alreadyDefinedInterface);
};
}
}
}//package
Section 84
//GamesChartAPI_AS3 (GamesChartAPI_AS3)
package {
import flash.display.*;
import flash.utils.*;
public class GamesChartAPI_AS3 extends MovieClip {
public var _preview:MovieClip;
private var _GC:GamesChart;
private var _gameKey:String;// = ""
public function GamesChartAPI_AS3(){
GCBrainInterface.apiType = "AS3-MXP";
gameKey = "";
}
public function set gameKey(_arg1:String):void{
_gameKey = _arg1;
if ((((_gameKey == null)) || ((_gameKey == "")))){
_preview.txt.text = "You need to set your gameID for the API to work.";
} else {
if (((!((parent == null))) && ((getQualifiedClassName(parent) == "fl.livepreview::LivePreviewParent")))){
_preview.txt.text = (("Your gameID has been set to '" + _gameKey) + "'. This message will be hidden when the game is run.");
} else {
GamesChart.setup(stage, _gameKey);
_preview.visible = false;
};
};
}
public function get gameKey():String{
return (_gameKey);
}
}
}//package
Section 85
//GCBrainInterface (GCBrainInterface)
package {
import flash.display.*;
import flash.events.*;
import gc.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
public class GCBrainInterface {
private var _lcID:int;
private var _container:Sprite;
private var _notificationBuffer:Array;
private var _conn:GCSWFConnection;
private var _brainLoader:Loader;
private var _brainLoaded:Boolean;
private var _stage:Stage;
public static var apiType:String = "AS3-API";
private static var BRAIN_URL:String = "http://gameschart.com/flash_client/getBrain.php";
public function GCBrainInterface(_arg1:Stage){
_stage = _arg1;
_container = new Sprite();
_container.addEventListener(Event.ENTER_FRAME, onFrameEntered);
_stage.addChild(_container);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
trace(("[GC-API] Games Chart v." + GamesChart.VERSION));
_lcID = (Math.random() * 10000);
loadBrain();
startLC();
}
public function begin(_arg1:String):void{
sendNotification(GCNotificationTypes.BEGIN_LOAD, {gameIDHash:_arg1, apiType:apiType, apiVersion:GamesChart.VERSION, swfURL:getURL()});
}
public function onGCEvent(_arg1:String, _arg2:Object):void{
if (GamesChart.onGCEvent != null){
GamesChart.onGCEvent.apply(null, [_arg1, _arg2]);
};
}
private function getURL():String{
var pageURL:String;
try {
pageURL = String(ExternalInterface.call("window.location.href.toString"));
if (pageURL == "null"){
return (_container.stage.loaderInfo.url);
} else {
return (pageURL);
};
} catch(e:Error) {
};
return (_container.stage.loaderInfo.url);
}
private function onFrameEntered(_arg1:Event):void{
if (!_stage.contains(_container)){
_stage.addChild(_container);
} else {
if (_stage.getChildIndex(_container) != (_stage.numChildren - 1)){
_stage.setChildIndex(_container, (_stage.numChildren - 1));
};
};
}
private function onFinishedLoading(_arg1:Event):void{
_brainLoaded = true;
trace("[GC-API] Brain Loaded!");
}
public function sendNotification(_arg1:String, _arg2:Object, _arg3:String=""):void{
if (_conn.connected){
_conn.send("sendNotification", _arg1, _arg2, _arg3);
} else {
_notificationBuffer.push({name:_arg1, body:_arg2, type:_arg3});
};
}
private function loadBrain():void{
_brainLoaded = false;
_brainLoader = new Loader();
_brainLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onFinishedLoading);
_brainLoader.load(new URLRequest(((BRAIN_URL + "?r=") + _lcID)));
_container.addChild(_brainLoader);
trace("[GC-API] Loading Brain.. ");
}
private function startLC():void{
_notificationBuffer = [];
_conn = new GCSWFConnection(("_GamesChartLC" + _lcID), this, GamesChart.VERSION);
_conn.addEventListener(GCSWFConnection.CONNECTED, onLCConnected);
}
private function onLCConnected(_arg1:Event):void{
var _local2:Object;
trace("[GC-API] API Connected to Brain!");
while (_notificationBuffer.length > 0) {
_local2 = _notificationBuffer.pop();
sendNotification(_local2.name, _local2.body, _local2.type);
};
}
}
}//package
Section 86
//GCNotificationTypes (GCNotificationTypes)
package {
public class GCNotificationTypes {
public static var LOAD_SKIN_AND_STYLE:String = "LOAD_SKIN_AND_STYLE";
public static var BEGIN_LOAD:String = "BEGIN_LOAD";
public static var STARTUP:String = "STARTUP";
public static var SHOW_CHART_LISTS:String = "SHOW_CHART_LISTS";
public static var SHOW_TAB:String = "SHOW_TAB";
public static var SKIN_AND_STYLE_LOADED:String = "SKIN_AND_STYLE_LOADED";
public static var LAUNCH_GAME:String = "LAUNCH_GAME";
public static var HIDE_TAB:String = "HIDE_TAB";
}
}//package
Section 87
//mdm_resolver (mdm_resolver)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import mdm.*;
import flash.system.*;
import flash.external.*;
public dynamic class mdm_resolver extends Proxy {
private var m_strClassName:String;// = null
private var strPropsMac:String;// = "Application<{!!z!!}>path<{z}>string<{z}>ppsv<{z}>Macintosh HD:<{!z!}>pathUnix<{z}>string<{z}>ppsv<{z}>/<{!z!}>openedFilename<{z}>string<{z}>get<{z}><{!z!}>openedFilenameUnix<{z}>string<{z}>get<{z}><{!z!}>filename<{z}>string<{z}>ppsv<{z}>Macintosh HD:Users:<{!z!}>filenameUnix<{z}>string<{z}>ppsv<{z}>/Users/Contents/MacOS/files<{!z!}><{!z!!}>System<{!!z!!}>screenWidth<{z}>string<{z}>ppsv<{z}>1024<{!z!}>screenHeight<{z}>string<{z}>ppsv<{z}>768<{!z!}>localTime<{z}>string<{z}>get<{z}><{!z!}>macVerString<{z}>string<{z}>ppsv<{z}>Mac OS X 10.4.7<{!z!}><{!z!!}>System.Paths<{!!z!!}>fonts<{z}>string<{z}>ppsv<{z}>Macintosh HD:System:Library:Fonts:<{!z!}>desktop<{z}>string<{z}>ppsv<{z}>Macintosh HD:Users:user:Desktop:<{!z!}>temp<{z}>string<{z}>ppsv<{z}>Macintosh HD:private:var:tmp:folders.501:TemporaryItems:<{!z!}>desktopUnix<{z}>string<{z}>ppsv<{z}>/Users/user/Desktop<{!z!}>tempUnix<{z}>string<{z}>ppsv<{z}>/private/var/tmp/folders.501/TemporaryItems<{!z!}>fontsUnix<{z}>string<{z}>ppsv<{z}>/System/Library/Fonts<{!z!}>preferences<{z}>string<{z}>ppsv<{z}>Macintosh HD:Users:user:Library:Preferences:<{!z!}>preferencesUnix<{z}>string<{z}>ppsv<{z}>/Users/user/Library/Preferences<{!z!}><{!z!!}>MacShell<{!!z!!}>exitCode<{z}>string<{z}>get<{z}> <{!z!}>output<{z}>string<{z}>get<{z}> <{!z!}>isRunning<{z}>boolean<{z}>get<{z}> <{!z!}><{!z!!}>AppleScript<{!!z!!}><{!z!!}>Application.Library<{!!z!!}><{!z!!}>Encryption<{!!z!!}><{!z!!}>Network.Mail<{!!z!!}><{!z!!}>Image<{!!z!!}><{!z!!}>Dialogs<{!!z!!}><{!z!!}>Image.ScreenCapture<{!!z!!}><{!z!!}>Database<{!!z!!}><{!z!!}>Database.MySQL<{!!z!!}><{!z!!}>Exception<{!!z!!}><{!z!!}>Input<{!!z!!}><{!z!!}>Input.Mouse<{!!z!!}><{!z!!}>Dialogs.BrowseFolder<{!!z!!}>defaultDirectory<{z}>string<{z}>getset<{z}> <{!z!}>title<{z}>string<{z}>getset<{z}> <{!z!}><{!z!!}>Dialogs.BrowseFile<{!!z!!}>defaultDirectory<{z}>string<{z}>getset<{z}> <{!z!}>filterList<{z}>string<{z}>getset<{z}> <{!z!}>title<{z}>string<{z}>getset<{z}> <{!z!}>creatorCode<{z}>string<{z}>getset<{z}> <{!z!}>buttonText<{z}>string<{z}>getset<{z}> <{!z!}>dialogText<{z}>string<{z}>getset<{z}> <{!z!}>allowMultiple<{z}>boolean<{z}>getset<{z}> <{!z!}><{!z!!}>Dialogs.BrowseFileToSave<{!!z!!}>defaultDirectory<{z}>string<{z}>getset<{z}> <{!z!}>title<{z}>string<{z}>getset<{z}> <{!z!}>creatorCode<{z}>string<{z}>getset<{z}> <{!z!}><{!z!!}>Menu.Main<{!!z!!}>menuType<{z}>string<{z}>getset<{z}> <{!z!}><{!z!!}>Network<{!!z!!}>IPAddress<{z}>string<{z}>getset<{z}> <{!z!}>isPresent<{z}>string<{z}>ppsv<{z}>true<{!z!}><{!z!!}>FileSystem<{!!z!!}><{!z!!}>@Browser<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}>width<{z}>integer<{z}>getset<{z}>300<{!z!}>height<{z}>integer<{z}>getset<{z}>200<{!z!}>x<{z}>integer<{z}>getset<{z}>0<{!z!}>y<{z}>integer<{z}>getset<{z}>0<{!z!}>url<{z}>string<{z}>getset<{z}>0<{!z!}>visible<{z}>boolean<{z}>getset<{z}>true<{!z!}>source<{z}>string<{z}>getset<{z}>0<{!z!}>title<{z}>string<{z}>get<{z}>0<{!z!}>isBusy<{z}>boolean<{z}>get<{z}>false<{!z!}>favorites<{z}>array<{z}>get<{z}>[]<{!z!}>useragent<{z}>string<{z}>set<{z}>0<{!z!}><{!z!!}>@Forms<{!!z!!}>id<{z}>string<{z}>@set<{z}>0<{!z!}>type<{z}>string<{z}>@set<{z}>standard<{!z!}>isCreated<{z}>string<{z}>getset<{!z!}>x<{z}>string<{z}>getset<{!z!}>y<{z}>string<{z}>getset<{!z!}>width<{z}>string<{z}>getset<{!z!}>height<{z}>string<{z}>getset<{!z!}>title<{z}>string<{z}>getset<{!z!}>visible<{z}>boolean<{z}>getset<{!z!}><{!z!!}>@HTTP<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}><{!z!!}>"
protected var m_dynEvents:Object;
private var strProps:String;// = "Extensions<{!!z!!}><{!z!!}>Extensions.kernel32<{!!z!!}><{!z!!}>GlobalVariables<{!!z!!}><{z}>string<{z}>ppsv<{z}><{!z!}><{!z!!}>@Browser<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}>width<{z}>integer<{z}>getset<{z}>300<{!z!}>height<{z}>integer<{z}>getset<{z}>200<{!z!}>x<{z}>integer<{z}>getset<{z}>0<{!z!}>y<{z}>integer<{z}>getset<{z}>0<{!z!}>url<{z}>string<{z}>getset<{z}>0<{!z!}>visible<{z}>boolean<{z}>getset<{z}>true<{!z!}>source<{z}>string<{z}>getset<{z}>0<{!z!}>title<{z}>string<{z}>get<{z}>0<{!z!}>isBusy<{z}>boolean<{z}>get<{z}>false<{!z!}>favorites<{z}>array<{z}>get<{z}>[]<{!z!}>useragent<{z}>string<{z}>set<{z}>0<{!z!}><{!z!!}>@ActiveX<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}>width<{z}>integer<{z}>getset<{z}>300<{!z!}>height<{z}>integer<{z}>getset<{z}>200<{!z!}>x<{z}>integer<{z}>getset<{z}>0<{!z!}>y<{z}>integer<{z}>getset<{z}>0<{!z!}>visible<{z}>boolean<{z}>getset<{z}>true<{!z!}><{!z!!}>@MediaPlayer6<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}>width<{z}>integer<{z}>getset<{z}>300<{!z!}>height<{z}>integer<{z}>getset<{z}>200<{!z!}>x<{z}>integer<{z}>getset<{z}>0<{!z!}>y<{z}>integer<{z}>getset<{z}>0<{!z!}>visible<{z}>boolean<{z}>getset<{z}>true<{!z!}>duration<{z}>string<{z}>getset<{z}>0<{!z!}>position<{z}>string<{z}>getset<{z}>0<{!z!}>balance<{z}>string<{z}>getset<{z}>0<{!z!}>volume<{z}>string<{z}>getset<{z}>0<{!z!}>isInstalled<{z}>boolean<{z}>getset<{z}>true<{!z!}>canSeek<{z}>boolean<{z}>getset<{z}>false<{!z!}>canScan<{z}>boolean<{z}>getset<{z}>false<{!z!}><{!z!!}>@MediaPlayer9<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}>width<{z}>integer<{z}>getset<{z}>300<{!z!}>height<{z}>integer<{z}>getset<{z}>200<{!z!}>x<{z}>integer<{z}>getset<{z}>0<{!z!}>y<{z}>integer<{z}>getset<{z}>0<{!z!}>visible<{z}>boolean<{z}>getset<{z}>0<{!z!}>duration<{z}>string<{z}>getset<{z}>0<{!z!}>position<{z}>string<{z}>getset<{z}>0<{!z!}>currentMarker<{z}>string<{z}>getset<{z}>0<{!z!}>volume<{z}>string<{z}>getset<{z}>0<{!z!}>balance<{z}>string<{z}>getset<{z}>0<{!z!}>markerCount<{z}>string<{z}>getset<{z}>0<{!z!}>source<{z}>string<{z}>getset<{z}>0<{!z!}>mediaName<{z}>string<{z}>getset<{z}>0<{!z!}>mediaWidth<{z}>string<{z}>getset<{z}>0<{!z!}>mediaHeight<{z}>string<{z}>getset<{z}>0<{!z!}>isInstalled<{z}>boolean<{z}>getset<{z}>0<{!z!}>canSeek<{z}>boolean<{z}>getset<{z}>false<{!z!}>canScan<{z}>boolean<{z}>getset<{z}>false<{!z!}><{!z!!}>@QuickTime<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}>width<{z}>integer<{z}>getset<{z}>300<{!z!}>height<{z}>integer<{z}>getset<{z}>200<{!z!}>x<{z}>integer<{z}>getset<{z}>0<{!z!}>y<{z}>integer<{z}>getset<{z}>0<{!z!}>visible<{z}>boolean<{z}>getset<{z}>0<{!z!}>duration<{z}>string<{z}>getset<{z}>0<{!z!}>position<{z}>string<{z}>getset<{z}>0<{!z!}>isInstalled<{z}>boolean<{z}>getset<{z}>0<{!z!}><{!z!!}>@RealMedia<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}>width<{z}>integer<{z}>getset<{z}>300<{!z!}>height<{z}>integer<{z}>getset<{z}>200<{!z!}>x<{z}>integer<{z}>getset<{z}>0<{!z!}>y<{z}>integer<{z}>getset<{z}>0<{!z!}>visible<{z}>boolean<{z}>getset<{z}>0<{!z!}>duration<{z}>string<{z}>getset<{z}>0<{!z!}>position<{z}>string<{z}>getset<{z}>0<{!z!}>isInstalled<{z}>boolean<{z}>getset<{z}>0<{!z!}><{!z!!}>@Shockwave<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}>width<{z}>integer<{z}>getset<{z}>300<{!z!}>height<{z}>integer<{z}>getset<{z}>200<{!z!}>x<{z}>integer<{z}>getset<{z}>0<{!z!}>y<{z}>integer<{z}>getset<{z}>0<{!z!}>visible<{z}>boolean<{z}>getset<{z}>0<{!z!}>bgcolor<{z}>string<{z}>getset<{z}>0<{!z!}>currentFrame<{z}>string<{z}>getset<{z}>0<{!z!}><{!z!!}>@PDF7<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}>width<{z}>integer<{z}>getset<{z}>300<{!z!}>height<{z}>integer<{z}>getset<{z}>200<{!z!}>x<{z}>integer<{z}>getset<{z}>0<{!z!}>y<{z}>integer<{z}>getset<{z}>0<{!z!}>visible<{z}>boolean<{z}>getset<{z}>0<{!z!}>scrollbars<{z}>string<{z}>getset<{z}>0<{!z!}>toolbar<{z}>string<{z}>getset<{z}>0<{!z!}><{!z!!}>@PDF6<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}>width<{z}>integer<{z}>getset<{z}>300<{!z!}>height<{z}>integer<{z}>getset<{z}>200<{!z!}>x<{z}>integer<{z}>getset<{z}>0<{!z!}>y<{z}>integer<{z}>getset<{z}>0<{!z!}>visible<{z}>boolean<{z}>getset<{z}>0<{!z!}>scrollbars<{z}>string<{z}>getset<{z}>0<{!z!}>toolbar<{z}>string<{z}>getset<{z}>0<{!z!}><{!z!!}>Application<{!!z!!}>title<{z}>string<{z}>getset<{z}> <{!z!}>isMinimized<{z}>boolean<{z}>get<{z}> <{!z!}>path<{z}>string<{z}>ppsv<{z}>C:\projects\fsp2.0\fsp2.0wrap_newtrans\<{!z!}>pathUnicode<{z}>string<{z}>ppsv<{z}>C:projectssp2.0sp2.0wrap_newtrans<{!z!}>filename<{z}>string<{z}>ppsv<{z}>fwrapper.exe<{!z!}>filenameUnicode<{z}>string<{z}>ppsv<{z}>fwrapper.exe<{!z!}><{!z!!}>Application.Screensaver<{!!z!!}><{!z!!}>System<{!!z!!}>localTime<{z}>string<{z}>getset<{z}> <{!z!}>CPUSpeed<{z}>string<{z}>getset<{z}> <{!z!}>RAMSize<{z}>string<{z}>getset<{z}> <{!z!}>screenWidth<{z}>string<{z}>ppsv<{z}>1280<{!z!}>screenHeight<{z}>string<{z}>ppsv<{z}>1024<{!z!}>computerName<{z}>string<{z}>ppsv<{z}>STAV<{!z!}>computerCompany<{z}>string<{z}>ppsv<{z}><{!z!}>computerOwner<{z}>string<{z}>ppsv<{z}> <{!z!}>winVerString<{z}>string<{z}>ppsv<{z}>Windows XP<{!z!}>language<{z}>string<{z}>ppsv<{z}>English (United Kingdom)<{!z!}>winVerStringDetail<{z}>string<{z}>ppsv<{z}>Microsoft Windows XP Professional<{!z!}>osVersion<{z}>string<{z}>getset<{z}> <{!z!}>CDDrive<{z}>string<{z}>getset<{z}> <{!z!}>servicePack<{z}>string<{z}>ppsv<{z}>Service Pack 2<{!z!}>isAdmin<{z}>boolean<{z}>ppsv<{z}>true<{!z!}><{!z!!}>System.Paths<{!!z!!}>programs<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsOwnerStart MenuPrograms<{!z!}>programFiles<{z}>string<{z}>ppsv<{z}>C:Program Files<{!z!}>windows<{z}>string<{z}>ppsv<{z}>C:WINDOWS<{!z!}>system<{z}>string<{z}>ppsv<{z}>C:WINDOWSsystem32<{!z!}>temp<{z}>string<{z}>ppsv<{z}>C:DOCUME~1OwnerLOCALS~1Temp<{!z!}>desktop<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsOwnerDesktop<{!z!}>personal<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsOwnerMy Documents<{!z!}>favorites<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsOwnerFavorites<{!z!}>startup<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsOwnerStart MenuProgramsStartup<{!z!}>recent<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsOwnerRecent<{!z!}>fonts<{z}>string<{z}>ppsv<{z}>C:WINDOWSFonts<{!z!}>history<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsOwnerLocal SettingsHistory<{!z!}>cookies<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsOwnerCookies<{!z!}>network<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsOwnerNetHood<{!z!}>startMenu<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsOwnerStart Menu<{!z!}>appData<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsOwnerApplication Data<{!z!}>commonAdminTools<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsAll UsersStart MenuProgramsAdministrative Tools<{!z!}>commonAppData<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsAll UsersApplication Data<{!z!}>commonPrograms<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsAll UsersStart MenuPrograms<{!z!}>commonStartMenu<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsAll UsersStart Menu<{!z!}>commonStartup<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsAll UsersStart MenuProgramsStartup<{!z!}>allUsersAppData<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsAll UsersApplication Data<{!z!}>allUsersPrograms<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsAll UsersStart MenuPrograms<{!z!}>allUsersStartMenu<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsAll UsersStart Menu<{!z!}>allUsersStartup<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsAll UsersStart MenuProgramsStartup<{!z!}><{!z!!}>Dialogs.BrowseFile<{!!z!!}>defaultDirectory<{z}>string<{z}>getset<{z}> <{!z!}>title<{z}>string<{z}>getset<{z}> <{!z!}>filterList<{z}>string<{z}>getset<{z}> <{!z!}>defaultExtension<{z}>string<{z}>getset<{z}> <{!z!}>buttonText<{z}>string<{z}>getset<{z}> <{!z!}>filterText<{z}>string<{z}>getset<{z}> <{!z!}>defaultFilename<{z}>string<{z}>getset<{z}> <{!z!}>allowMultiple<{z}>boolean<{z}>getset<{z}> <{!z!}><{!z!!}>Dialogs<{!z!!}>Dialogs.BrowseFileUnicode<{!!z!!}>defaultDirectory<{z}>string<{z}>getset<{z}> <{!z!}>title<{z}>string<{z}>getset<{z}> <{!z!}>filterList<{z}>string<{z}>getset<{z}> <{!z!}>defaultExtension<{z}>string<{z}>getset<{z}> <{!z!}>defaultFilename<{z}>string<{z}>getset<{z}> <{!z!}>allowMultiple<{z}>boolean<{z}>getset<{z}> <{!z!}><{!z!!}>Menu<{!!z!!}><{!z!!}>Menu.Tray<{!!z!!}>iconHint<{z}>string<{z}>set<{z}> <{!z!}>menuType<{z}>string<{z}>set<{z}> <{!z!}><{!z!!}>Menu.Main<{!!z!!}>menuType<{z}>string<{z}>set<{z}> <{!z!}><{!z!!}>Menu.Context<{!!z!!}>menuType<{z}>string<{z}>set<{z}> <{!z!}><{!z!!}>Database.MySQL<{!!z!!}><{!z!!}>Database<{!!z!!}><{!z!!}>Database.MSAccess<{!!z!!}><{!z!!}>Database.ADO<{!!z!!}><{!z!!}>FileExplorer<{!!z!!}><{!z!!}>FileExplorer.ComboBox<{!!z!!}><{!z!!}>FileExplorer.ListView<{!!z!!}><{!z!!}>FileExplorer.TreeView<{!!z!!}><{!z!!}>Input.Mouse<{!!z!!}><{!z!!}>Input.Joystick<{!!z!!}><{!z!!}>Input.Tablet<{!!z!!}><{!z!!}>String<{!!z!!}><{!z!!}>@DLL<{!!z!!}><{!z!!}>Network<{!!z!!}>IPAddress<{z}>string<{z}>getset<{z}> <{!z!}>isPresent<{z}>string<{z}>ppsv<{z}>true<{!z!}><{!z!!}>Process<{!!z!!}>lastId<{z}>integer<{z}>get<{z}>-1<{!z!}>isOpen<{z}>boolean<{z}>get<{z}>false<{!z!}><{!z!!}>@FTP<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}>initialDir<{z}>string<{z}>getset<{z}> <{!z!}>currentDir<{z}>string<{z}>getset<{z}> <{!z!}>isConnected<{z}>boolean<{z}>getset<{z}> <{!z!}>account<{z}>string<{z}>getset<{z}> <{!z!}>async<{z}>boolean<{z}>getset<{z}> <{!z!}>error<{z}>string<{z}>getset<{z}> <{!z!}>success<{z}>boolean<{z}>getset<{z}> <{!z!}>loggerData<{z}>string<{z}>getset<{z}> <{!z!}>isBusy<{z}>boolean<{z}>getset<{z}> <{!z!}>lastReply<{z}>string<{z}>getset<{z}> <{!z!}>noop<{z}>string<{z}>getset<{z}> <{!z!}>passive<{z}>string<{z}>getset<{z}> <{!z!}>serverType<{z}>string<{z}>getset<{z}> <{!z!}>supportsResume<{z}>boolean<{z}>getset<{z}> <{!z!}>timeout<{z}>string<{z}>getset<{z}> <{!z!}>transferMode<{z}>string<{z}>getset<{z}> <{!z!}>transferTime<{z}>string<{z}>getset<{z}> <{!z!}>bytesTransferred<{z}>string<{z}>getset<{z}> <{!z!}><{!z!!}>@Forms<{!!z!!}>id<{z}>string<{z}>@set<{z}>0<{!z!}>type<{z}>string<{z}>@set<{z}>standard<{!z!}>title<{z}>string<{z}>@set<{!z!}>titleUnicode<{z}>string<{z}>@set<{!z!}>alpha<{z}>number<{z}>getset<{!z!}>baseURL<{z}>string<{z}>getset<{!z!}>bgColor<{z}>string<{z}>getset<{!z!}>isCreated<{z}>boolean<{z}>get<{!z!}>windowState<{z}>string<{z}>getset<{!z!}>x<{z}>string<{z}>getset<{!z!}>y<{z}>string<{z}>getset<{!z!}>width<{z}>string<{z}>getset<{!z!}>height<{z}>string<{z}>getset<{!z!}>visible<{z}>boolean<{z}>getset<{!z!}><{!z!!}>COMPort<{!!z!!}>initialDTR<{z}>string<{z}>getset<{z}>-1<{!z!}>initialRTS<{z}>string<{z}>getset<{z}> <{!z!}>txBuffer<{z}>integer<{z}>set<{z}> <{!z!}>rxBuffer<{z}>integer<{z}>set<{z}> <{!z!}>ports<{z}>string<{z}>getset<{z}> <{!z!}><{!z!!}>Flash<{!z!!}>FileSystem<{!z!!}>Network.UDP.Socket<{!z!!}>System.DirectX<{!z!!}>Network.Mail<{!z!!}>Dialogs.BrowseFolder<{!!z!!}>defaultDirectory<{z}>string<{z}>getset<{z}> <{!z!}>title<{z}>string<{z}>getset<{z}> <{!z!}><{!z!!}>System.JScript<{!z!!}>System.VBScript<{!z!!}>Encryption<{!z!!}>Image<{!z!!}>Image.ScreenCapture<{!z!!}>Exception<{!z!!}>Exception.DebugWindow<{!z!!}>Network.UDP.TFTP<{!z!!}>Network.HTTPD<{!z!!}>System.Registry<{!z!!}>Network.TCP.ProxyHTTP<{!z!!}>Clipboard<{!z!!}>Input.Twain<{!z!!}>Application.Library<{!z!!}>Network.TCP.FileServer<{!z!!}>Application.Timer<{!z!!}>Application.Trial<{!!z!!}>usesLeft<{z}>integer<{z}>ppsv<{z}><{!z!}>daysLeft<{z}>integer<{z}>ppsv<{z}><{!z!}>tampered<{z}>boolean<{z}>get<{z}><{!z!}>expired<{z}>boolean<{z}>get<{z}><{!z!}><{!z!!}>FileSystem.BinaryFile<{!z!!}>@HTTP<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}><{!z!!}>"
protected var m_dynamicID:int;// = -1
private var alert:MovieClip;
private var m_dynamic:Boolean;// = false
protected var m_objs:Object;
private static var m_doneInit:Boolean = false;
private static var m_properties:Object;
protected static var m_dynMP9:Object = new Object();
private static var m_cbID:int = 0;
protected static var m_macSocket:XMLSocket;
protected static var m_dynBrowsers:Object = new Object();
protected static var m_bSimulate:Boolean = false;
private static var m_strURL:String = null;
protected static var m_strFormID:String = "!}id}!";
public static var m_spr:Sprite;
protected static var m_events:Object = new Object();
protected static var m_dynMP6:Object = new Object();
protected static var m_macPort:int = -1;
protected static var m_dynHTTP:Object = new Object();
private static var m_cmdCounter:int = 0;
public static var ids:int = 0;
protected static var m_dynFTP:Object = new Object();
public function mdm_resolver():void{
m_strClassName = null;
m_dynamic = false;
m_dynamicID = -1;
strProps = "Extensions<{!!z!!}><{!z!!}>Extensions.kernel32<{!!z!!}><{!z!!}>GlobalVariables<{!!z!!}><{z}>string<{z}>ppsv<{z}><{!z!}><{!z!!}>@Browser<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}>width<{z}>integer<{z}>getset<{z}>300<{!z!}>height<{z}>integer<{z}>getset<{z}>200<{!z!}>x<{z}>integer<{z}>getset<{z}>0<{!z!}>y<{z}>integer<{z}>getset<{z}>0<{!z!}>url<{z}>string<{z}>getset<{z}>0<{!z!}>visible<{z}>boolean<{z}>getset<{z}>true<{!z!}>source<{z}>string<{z}>getset<{z}>0<{!z!}>title<{z}>string<{z}>get<{z}>0<{!z!}>isBusy<{z}>boolean<{z}>get<{z}>false<{!z!}>favorites<{z}>array<{z}>get<{z}>[]<{!z!}>useragent<{z}>string<{z}>set<{z}>0<{!z!}><{!z!!}>@ActiveX<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}>width<{z}>integer<{z}>getset<{z}>300<{!z!}>height<{z}>integer<{z}>getset<{z}>200<{!z!}>x<{z}>integer<{z}>getset<{z}>0<{!z!}>y<{z}>integer<{z}>getset<{z}>0<{!z!}>visible<{z}>boolean<{z}>getset<{z}>true<{!z!}><{!z!!}>@MediaPlayer6<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}>width<{z}>integer<{z}>getset<{z}>300<{!z!}>height<{z}>integer<{z}>getset<{z}>200<{!z!}>x<{z}>integer<{z}>getset<{z}>0<{!z!}>y<{z}>integer<{z}>getset<{z}>0<{!z!}>visible<{z}>boolean<{z}>getset<{z}>true<{!z!}>duration<{z}>string<{z}>getset<{z}>0<{!z!}>position<{z}>string<{z}>getset<{z}>0<{!z!}>balance<{z}>string<{z}>getset<{z}>0<{!z!}>volume<{z}>string<{z}>getset<{z}>0<{!z!}>isInstalled<{z}>boolean<{z}>getset<{z}>true<{!z!}>canSeek<{z}>boolean<{z}>getset<{z}>false<{!z!}>canScan<{z}>boolean<{z}>getset<{z}>false<{!z!}><{!z!!}>@MediaPlayer9<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}>width<{z}>integer<{z}>getset<{z}>300<{!z!}>height<{z}>integer<{z}>getset<{z}>200<{!z!}>x<{z}>integer<{z}>getset<{z}>0<{!z!}>y<{z}>integer<{z}>getset<{z}>0<{!z!}>visible<{z}>boolean<{z}>getset<{z}>0<{!z!}>duration<{z}>string<{z}>getset<{z}>0<{!z!}>position<{z}>string<{z}>getset<{z}>0<{!z!}>currentMarker<{z}>string<{z}>getset<{z}>0<{!z!}>volume<{z}>string<{z}>getset<{z}>0<{!z!}>balance<{z}>string<{z}>getset<{z}>0<{!z!}>markerCount<{z}>string<{z}>getset<{z}>0<{!z!}>source<{z}>string<{z}>getset<{z}>0<{!z!}>mediaName<{z}>string<{z}>getset<{z}>0<{!z!}>mediaWidth<{z}>string<{z}>getset<{z}>0<{!z!}>mediaHeight<{z}>string<{z}>getset<{z}>0<{!z!}>isInstalled<{z}>boolean<{z}>getset<{z}>0<{!z!}>canSeek<{z}>boolean<{z}>getset<{z}>false<{!z!}>canScan<{z}>boolean<{z}>getset<{z}>false<{!z!}><{!z!!}>@QuickTime<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}>width<{z}>integer<{z}>getset<{z}>300<{!z!}>height<{z}>integer<{z}>getset<{z}>200<{!z!}>x<{z}>integer<{z}>getset<{z}>0<{!z!}>y<{z}>integer<{z}>getset<{z}>0<{!z!}>visible<{z}>boolean<{z}>getset<{z}>0<{!z!}>duration<{z}>string<{z}>getset<{z}>0<{!z!}>position<{z}>string<{z}>getset<{z}>0<{!z!}>isInstalled<{z}>boolean<{z}>getset<{z}>0<{!z!}><{!z!!}>@RealMedia<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}>width<{z}>integer<{z}>getset<{z}>300<{!z!}>height<{z}>integer<{z}>getset<{z}>200<{!z!}>x<{z}>integer<{z}>getset<{z}>0<{!z!}>y<{z}>integer<{z}>getset<{z}>0<{!z!}>visible<{z}>boolean<{z}>getset<{z}>0<{!z!}>duration<{z}>string<{z}>getset<{z}>0<{!z!}>position<{z}>string<{z}>getset<{z}>0<{!z!}>isInstalled<{z}>boolean<{z}>getset<{z}>0<{!z!}><{!z!!}>@Shockwave<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}>width<{z}>integer<{z}>getset<{z}>300<{!z!}>height<{z}>integer<{z}>getset<{z}>200<{!z!}>x<{z}>integer<{z}>getset<{z}>0<{!z!}>y<{z}>integer<{z}>getset<{z}>0<{!z!}>visible<{z}>boolean<{z}>getset<{z}>0<{!z!}>bgcolor<{z}>string<{z}>getset<{z}>0<{!z!}>currentFrame<{z}>string<{z}>getset<{z}>0<{!z!}><{!z!!}>@PDF7<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}>width<{z}>integer<{z}>getset<{z}>300<{!z!}>height<{z}>integer<{z}>getset<{z}>200<{!z!}>x<{z}>integer<{z}>getset<{z}>0<{!z!}>y<{z}>integer<{z}>getset<{z}>0<{!z!}>visible<{z}>boolean<{z}>getset<{z}>0<{!z!}>scrollbars<{z}>string<{z}>getset<{z}>0<{!z!}>toolbar<{z}>string<{z}>getset<{z}>0<{!z!}><{!z!!}>@PDF6<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}>width<{z}>integer<{z}>getset<{z}>300<{!z!}>height<{z}>integer<{z}>getset<{z}>200<{!z!}>x<{z}>integer<{z}>getset<{z}>0<{!z!}>y<{z}>integer<{z}>getset<{z}>0<{!z!}>visible<{z}>boolean<{z}>getset<{z}>0<{!z!}>scrollbars<{z}>string<{z}>getset<{z}>0<{!z!}>toolbar<{z}>string<{z}>getset<{z}>0<{!z!}><{!z!!}>Application<{!!z!!}>title<{z}>string<{z}>getset<{z}> <{!z!}>isMinimized<{z}>boolean<{z}>get<{z}> <{!z!}>path<{z}>string<{z}>ppsv<{z}>C:\\projects\\fsp2.0\\fsp2.0wrap_newtrans\\<{!z!}>pathUnicode<{z}>string<{z}>ppsv<{z}>C:projects\fsp2.0\fsp2.0wrap_newtrans<{!z!}>filename<{z}>string<{z}>ppsv<{z}>fwrapper.exe<{!z!}>filenameUnicode<{z}>string<{z}>ppsv<{z}>fwrapper.exe<{!z!}><{!z!!}>Application.Screensaver<{!!z!!}><{!z!!}>System<{!!z!!}>localTime<{z}>string<{z}>getset<{z}> <{!z!}>CPUSpeed<{z}>string<{z}>getset<{z}> <{!z!}>RAMSize<{z}>string<{z}>getset<{z}> <{!z!}>screenWidth<{z}>string<{z}>ppsv<{z}>1280<{!z!}>screenHeight<{z}>string<{z}>ppsv<{z}>1024<{!z!}>computerName<{z}>string<{z}>ppsv<{z}>STAV<{!z!}>computerCompany<{z}>string<{z}>ppsv<{z}><{!z!}>computerOwner<{z}>string<{z}>ppsv<{z}> <{!z!}>winVerString<{z}>string<{z}>ppsv<{z}>Windows XP<{!z!}>language<{z}>string<{z}>ppsv<{z}>English (United Kingdom)<{!z!}>winVerStringDetail<{z}>string<{z}>ppsv<{z}>Microsoft Windows XP Professional<{!z!}>osVersion<{z}>string<{z}>getset<{z}> <{!z!}>CDDrive<{z}>string<{z}>getset<{z}> <{!z!}>servicePack<{z}>string<{z}>ppsv<{z}>Service Pack 2<{!z!}>isAdmin<{z}>boolean<{z}>ppsv<{z}>true<{!z!}><{!z!!}>System.Paths<{!!z!!}>programs<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsOwnerStart MenuPrograms<{!z!}>programFiles<{z}>string<{z}>ppsv<{z}>C:Program Files<{!z!}>windows<{z}>string<{z}>ppsv<{z}>C:WINDOWS<{!z!}>system<{z}>string<{z}>ppsv<{z}>C:WINDOWSsystem32<{!z!}>temp<{z}>string<{z}>ppsv<{z}>C:DOCUME~1OwnerLOCALS~1Temp<{!z!}>desktop<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsOwnerDesktop<{!z!}>personal<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsOwnerMy Documents<{!z!}>favorites<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsOwnerFavorites<{!z!}>startup<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsOwnerStart MenuProgramsStartup<{!z!}>recent<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsOwnerRecent<{!z!}>fonts<{z}>string<{z}>ppsv<{z}>C:WINDOWSFonts<{!z!}>history<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsOwnerLocal SettingsHistory<{!z!}>cookies<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsOwnerCookies<{!z!}>network<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsOwnerNetHood<{!z!}>startMenu<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsOwnerStart Menu<{!z!}>appData<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsOwnerApplication Data<{!z!}>commonAdminTools<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsAll UsersStart MenuProgramsAdministrative Tools<{!z!}>commonAppData<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsAll UsersApplication Data<{!z!}>commonPrograms<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsAll UsersStart MenuPrograms<{!z!}>commonStartMenu<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsAll UsersStart Menu<{!z!}>commonStartup<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsAll UsersStart MenuProgramsStartup<{!z!}>allUsersAppData<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsAll UsersApplication Data<{!z!}>allUsersPrograms<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsAll UsersStart MenuPrograms<{!z!}>allUsersStartMenu<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsAll UsersStart Menu<{!z!}>allUsersStartup<{z}>string<{z}>ppsv<{z}>C:Documents and SettingsAll UsersStart MenuProgramsStartup<{!z!}><{!z!!}>Dialogs.BrowseFile<{!!z!!}>defaultDirectory<{z}>string<{z}>getset<{z}> <{!z!}>title<{z}>string<{z}>getset<{z}> <{!z!}>filterList<{z}>string<{z}>getset<{z}> <{!z!}>defaultExtension<{z}>string<{z}>getset<{z}> <{!z!}>buttonText<{z}>string<{z}>getset<{z}> <{!z!}>filterText<{z}>string<{z}>getset<{z}> <{!z!}>defaultFilename<{z}>string<{z}>getset<{z}> <{!z!}>allowMultiple<{z}>boolean<{z}>getset<{z}> <{!z!}><{!z!!}>Dialogs<{!z!!}>Dialogs.BrowseFileUnicode<{!!z!!}>defaultDirectory<{z}>string<{z}>getset<{z}> <{!z!}>title<{z}>string<{z}>getset<{z}> <{!z!}>filterList<{z}>string<{z}>getset<{z}> <{!z!}>defaultExtension<{z}>string<{z}>getset<{z}> <{!z!}>defaultFilename<{z}>string<{z}>getset<{z}> <{!z!}>allowMultiple<{z}>boolean<{z}>getset<{z}> <{!z!}><{!z!!}>Menu<{!!z!!}><{!z!!}>Menu.Tray<{!!z!!}>iconHint<{z}>string<{z}>set<{z}> <{!z!}>menuType<{z}>string<{z}>set<{z}> <{!z!}><{!z!!}>Menu.Main<{!!z!!}>menuType<{z}>string<{z}>set<{z}> <{!z!}><{!z!!}>Menu.Context<{!!z!!}>menuType<{z}>string<{z}>set<{z}> <{!z!}><{!z!!}>Database.MySQL<{!!z!!}><{!z!!}>Database<{!!z!!}><{!z!!}>Database.MSAccess<{!!z!!}><{!z!!}>Database.ADO<{!!z!!}><{!z!!}>FileExplorer<{!!z!!}><{!z!!}>FileExplorer.ComboBox<{!!z!!}><{!z!!}>FileExplorer.ListView<{!!z!!}><{!z!!}>FileExplorer.TreeView<{!!z!!}><{!z!!}>Input.Mouse<{!!z!!}><{!z!!}>Input.Joystick<{!!z!!}><{!z!!}>Input.Tablet<{!!z!!}><{!z!!}>String<{!!z!!}><{!z!!}>@DLL<{!!z!!}><{!z!!}>Network<{!!z!!}>IPAddress<{z}>string<{z}>getset<{z}> <{!z!}>isPresent<{z}>string<{z}>ppsv<{z}>true<{!z!}><{!z!!}>Process<{!!z!!}>lastId<{z}>integer<{z}>get<{z}>-1<{!z!}>isOpen<{z}>boolean<{z}>get<{z}>false<{!z!}><{!z!!}>@FTP<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}>initialDir<{z}>string<{z}>getset<{z}> <{!z!}>currentDir<{z}>string<{z}>getset<{z}> <{!z!}>isConnected<{z}>boolean<{z}>getset<{z}> <{!z!}>account<{z}>string<{z}>getset<{z}> <{!z!}>async<{z}>boolean<{z}>getset<{z}> <{!z!}>error<{z}>string<{z}>getset<{z}> <{!z!}>success<{z}>boolean<{z}>getset<{z}> <{!z!}>loggerData<{z}>string<{z}>getset<{z}> <{!z!}>isBusy<{z}>boolean<{z}>getset<{z}> <{!z!}>lastReply<{z}>string<{z}>getset<{z}> <{!z!}>noop<{z}>string<{z}>getset<{z}> <{!z!}>passive<{z}>string<{z}>getset<{z}> <{!z!}>serverType<{z}>string<{z}>getset<{z}> <{!z!}>supportsResume<{z}>boolean<{z}>getset<{z}> <{!z!}>timeout<{z}>string<{z}>getset<{z}> <{!z!}>transferMode<{z}>string<{z}>getset<{z}> <{!z!}>transferTime<{z}>string<{z}>getset<{z}> <{!z!}>bytesTransferred<{z}>string<{z}>getset<{z}> <{!z!}><{!z!!}>@Forms<{!!z!!}>id<{z}>string<{z}>@set<{z}>0<{!z!}>type<{z}>string<{z}>@set<{z}>standard<{!z!}>title<{z}>string<{z}>@set<{!z!}>titleUnicode<{z}>string<{z}>@set<{!z!}>alpha<{z}>number<{z}>getset<{!z!}>baseURL<{z}>string<{z}>getset<{!z!}>bgColor<{z}>string<{z}>getset<{!z!}>isCreated<{z}>boolean<{z}>get<{!z!}>windowState<{z}>string<{z}>getset<{!z!}>x<{z}>string<{z}>getset<{!z!}>y<{z}>string<{z}>getset<{!z!}>width<{z}>string<{z}>getset<{!z!}>height<{z}>string<{z}>getset<{!z!}>visible<{z}>boolean<{z}>getset<{!z!}><{!z!!}>COMPort<{!!z!!}>initialDTR<{z}>string<{z}>getset<{z}>-1<{!z!}>initialRTS<{z}>string<{z}>getset<{z}> <{!z!}>txBuffer<{z}>integer<{z}>set<{z}> <{!z!}>rxBuffer<{z}>integer<{z}>set<{z}> <{!z!}>ports<{z}>string<{z}>getset<{z}> <{!z!}><{!z!!}>Flash<{!z!!}>FileSystem<{!z!!}>Network.UDP.Socket<{!z!!}>System.DirectX<{!z!!}>Network.Mail<{!z!!}>Dialogs.BrowseFolder<{!!z!!}>defaultDirectory<{z}>string<{z}>getset<{z}> <{!z!}>title<{z}>string<{z}>getset<{z}> <{!z!}><{!z!!}>System.JScript<{!z!!}>System.VBScript<{!z!!}>Encryption<{!z!!}>Image<{!z!!}>Image.ScreenCapture<{!z!!}>Exception<{!z!!}>Exception.DebugWindow<{!z!!}>Network.UDP.TFTP<{!z!!}>Network.HTTPD<{!z!!}>System.Registry<{!z!!}>Network.TCP.ProxyHTTP<{!z!!}>Clipboard<{!z!!}>Input.Twain<{!z!!}>Application.Library<{!z!!}>Network.TCP.FileServer<{!z!!}>Application.Timer<{!z!!}>Application.Trial<{!!z!!}>usesLeft<{z}>integer<{z}>ppsv<{z}><{!z!}>daysLeft<{z}>integer<{z}>ppsv<{z}><{!z!}>tampered<{z}>boolean<{z}>get<{z}><{!z!}>expired<{z}>boolean<{z}>get<{z}><{!z!}><{!z!!}>FileSystem.BinaryFile<{!z!!}>@HTTP<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}><{!z!!}>";
strPropsMac = "Application<{!!z!!}>path<{z}>string<{z}>ppsv<{z}>Macintosh HD:<{!z!}>pathUnix<{z}>string<{z}>ppsv<{z}>/<{!z!}>openedFilename<{z}>string<{z}>get<{z}><{!z!}>openedFilenameUnix<{z}>string<{z}>get<{z}><{!z!}>filename<{z}>string<{z}>ppsv<{z}>Macintosh HD:Users:<{!z!}>filenameUnix<{z}>string<{z}>ppsv<{z}>/Users/Contents/MacOS/files<{!z!}><{!z!!}>System<{!!z!!}>screenWidth<{z}>string<{z}>ppsv<{z}>1024<{!z!}>screenHeight<{z}>string<{z}>ppsv<{z}>768<{!z!}>localTime<{z}>string<{z}>get<{z}><{!z!}>macVerString<{z}>string<{z}>ppsv<{z}>Mac OS X 10.4.7<{!z!}><{!z!!}>System.Paths<{!!z!!}>fonts<{z}>string<{z}>ppsv<{z}>Macintosh HD:System:Library:Fonts:<{!z!}>desktop<{z}>string<{z}>ppsv<{z}>Macintosh HD:Users:user:Desktop:<{!z!}>temp<{z}>string<{z}>ppsv<{z}>Macintosh HD:private:var:tmp:folders.501:TemporaryItems:<{!z!}>desktopUnix<{z}>string<{z}>ppsv<{z}>/Users/user/Desktop<{!z!}>tempUnix<{z}>string<{z}>ppsv<{z}>/private/var/tmp/folders.501/TemporaryItems<{!z!}>fontsUnix<{z}>string<{z}>ppsv<{z}>/System/Library/Fonts<{!z!}>preferences<{z}>string<{z}>ppsv<{z}>Macintosh HD:Users:user:Library:Preferences:<{!z!}>preferencesUnix<{z}>string<{z}>ppsv<{z}>/Users/user/Library/Preferences<{!z!}><{!z!!}>MacShell<{!!z!!}>exitCode<{z}>string<{z}>get<{z}> <{!z!}>output<{z}>string<{z}>get<{z}> <{!z!}>isRunning<{z}>boolean<{z}>get<{z}> <{!z!}><{!z!!}>AppleScript<{!!z!!}><{!z!!}>Application.Library<{!!z!!}><{!z!!}>Encryption<{!!z!!}><{!z!!}>Network.Mail<{!!z!!}><{!z!!}>Image<{!!z!!}><{!z!!}>Dialogs<{!!z!!}><{!z!!}>Image.ScreenCapture<{!!z!!}><{!z!!}>Database<{!!z!!}><{!z!!}>Database.MySQL<{!!z!!}><{!z!!}>Exception<{!!z!!}><{!z!!}>Input<{!!z!!}><{!z!!}>Input.Mouse<{!!z!!}><{!z!!}>Dialogs.BrowseFolder<{!!z!!}>defaultDirectory<{z}>string<{z}>getset<{z}> <{!z!}>title<{z}>string<{z}>getset<{z}> <{!z!}><{!z!!}>Dialogs.BrowseFile<{!!z!!}>defaultDirectory<{z}>string<{z}>getset<{z}> <{!z!}>filterList<{z}>string<{z}>getset<{z}> <{!z!}>title<{z}>string<{z}>getset<{z}> <{!z!}>creatorCode<{z}>string<{z}>getset<{z}> <{!z!}>buttonText<{z}>string<{z}>getset<{z}> <{!z!}>dialogText<{z}>string<{z}>getset<{z}> <{!z!}>allowMultiple<{z}>boolean<{z}>getset<{z}> <{!z!}><{!z!!}>Dialogs.BrowseFileToSave<{!!z!!}>defaultDirectory<{z}>string<{z}>getset<{z}> <{!z!}>title<{z}>string<{z}>getset<{z}> <{!z!}>creatorCode<{z}>string<{z}>getset<{z}> <{!z!}><{!z!!}>Menu.Main<{!!z!!}>menuType<{z}>string<{z}>getset<{z}> <{!z!}><{!z!!}>Network<{!!z!!}>IPAddress<{z}>string<{z}>getset<{z}> <{!z!}>isPresent<{z}>string<{z}>ppsv<{z}>true<{!z!}><{!z!!}>FileSystem<{!!z!!}><{!z!!}>@Browser<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}>width<{z}>integer<{z}>getset<{z}>300<{!z!}>height<{z}>integer<{z}>getset<{z}>200<{!z!}>x<{z}>integer<{z}>getset<{z}>0<{!z!}>y<{z}>integer<{z}>getset<{z}>0<{!z!}>url<{z}>string<{z}>getset<{z}>0<{!z!}>visible<{z}>boolean<{z}>getset<{z}>true<{!z!}>source<{z}>string<{z}>getset<{z}>0<{!z!}>title<{z}>string<{z}>get<{z}>0<{!z!}>isBusy<{z}>boolean<{z}>get<{z}>false<{!z!}>favorites<{z}>array<{z}>get<{z}>[]<{!z!}>useragent<{z}>string<{z}>set<{z}>0<{!z!}><{!z!!}>@Forms<{!!z!!}>id<{z}>string<{z}>@set<{z}>0<{!z!}>type<{z}>string<{z}>@set<{z}>standard<{!z!}>isCreated<{z}>string<{z}>getset<{!z!}>x<{z}>string<{z}>getset<{!z!}>y<{z}>string<{z}>getset<{!z!}>width<{z}>string<{z}>getset<{!z!}>height<{z}>string<{z}>getset<{!z!}>title<{z}>string<{z}>getset<{!z!}>visible<{z}>boolean<{z}>getset<{!z!}><{!z!!}>@HTTP<{!!z!!}>id<{z}>integer<{z}>set<{z}>-1<{!z!}><{!z!!}>";
super();
m_objs = new Object();
m_dynEvents = new Object();
}
private function InitialiseObject(_arg1:String):void{
var _local2:Array;
var _local3:String;
var _local4:Object;
var _local5:int;
var _local6:String;
var _local7:Array;
var _local8:int;
_local2 = _arg1.split("<{!!z!!}>");
_local3 = _local2[0];
_local4 = m_properties;
_local5 = ((_local3.charAt(0))=="@") ? 1 : 0;
_local6 = String(("mdm." + _local3.substring(_local5)));
if (_local3.substring(0, 11) == "Extensions."){
ExtensionsArray.push(_local3.slice(11));
} else {
m_properties[_local6] = new Array();
if (_local2[1] != null){
_local7 = _local2[1].split("<{!z!}>");
_local8 = 0;
while (_local8 < _local7.length) {
m_properties[_local6][_local8] = _local7[_local8].split("<{z}>");
_local8++;
};
};
};
}
private function Deserialise(_arg1:String){
var index:int;
var ch:String;
var GetNextChar:Function;
var TrimWhiteSpace:Function;
var DeserialiseString:Function;
var DeserialiseArray:Function;
var DeserialiseObject:Function;
var DeserialiseNumber:Function;
var DeserialiseDate:Function;
var DeserialiseXML:Function;
var DeserialiseBoolean:Function;
var DeserialiseValue:Function;
var strInput = _arg1;
GetNextChar = function ():String{
ch = strInput.charAt(index);
index = (index + 1);
return (ch);
};
TrimWhiteSpace = function ():void{
while (ch) {
if (ch <= " "){
GetNextChar();
} else {
if (ch == "/"){
switch (GetNextChar()){
case "/":
do {
} while (((((GetNextChar()) && (!((ch == "\n"))))) && (!((ch == "\r")))));
break;
case "*":
GetNextChar();
while (true) {
if (ch){
if (ch == "*"){
if (GetNextChar() == "/"){
GetNextChar();
break;
};
} else {
GetNextChar();
};
};
};
break;
default:
break;
};
} else {
break;
};
};
};
};
DeserialiseString = function ():String{
var _local1:int;
var _local2:String;
var _local3:int;
var _local4:int;
var _local5:Boolean;
_local2 = "";
_local5 = false;
if (ch == "\""){
while (GetNextChar()) {
if ((((index == strInput.length)) || ((ch == "\"")))){
if (ch == "\""){
GetNextChar();
};
return (_local2.split("@q@").join("\""));
} else {
_local2 = (_local2 + ch);
};
};
};
return (new String());
};
DeserialiseArray = function ():Array{
var _local1:Array;
_local1 = [];
if (ch == "["){
GetNextChar();
TrimWhiteSpace();
if (ch == "]"){
GetNextChar();
return (_local1);
};
while (ch) {
_local1.push(DeserialiseValue());
TrimWhiteSpace();
if (ch == "]"){
GetNextChar();
return (_local1);
};
if (ch != ","){
break;
};
GetNextChar();
TrimWhiteSpace();
};
};
return (new Array());
};
DeserialiseObject = function ():Object{
var _local1:String;
var _local2:Object;
_local2 = {};
if (ch == "{"){
GetNextChar();
TrimWhiteSpace();
if (ch == "}"){
GetNextChar();
return (_local2);
};
while (ch) {
_local1 = DeserialiseString();
TrimWhiteSpace();
if (ch != ":"){
break;
};
GetNextChar();
_local2[_local1] = DeserialiseValue();
TrimWhiteSpace();
if (ch == "}"){
GetNextChar();
return (_local2);
};
if (ch != ","){
break;
};
GetNextChar();
TrimWhiteSpace();
};
};
return (new Object());
};
DeserialiseNumber = function ():Number{
var _local1:String;
var _local2:Number;
_local1 = "";
if (ch == "-"){
_local1 = "-";
GetNextChar();
};
while ((((ch >= "0")) && ((ch <= "9")))) {
_local1 = (_local1 + ch);
GetNextChar();
};
if (ch == "."){
_local1 = (_local1 + ".");
while (((((GetNextChar()) && ((ch >= "0")))) && ((ch <= "9")))) {
_local1 = (_local1 + ch);
};
};
_local2 = Number(_local1);
if (!isFinite(_local2)){
return (Number(0));
};
return (Number(_local2));
};
DeserialiseDate = function ():Date{
var _local1:String;
_local1 = "";
if (ch == "#"){
while (GetNextChar()) {
if (ch == "#"){
GetNextChar();
return (new Date(parseInt(_local1)));
};
_local1 = (_local1 + ch);
};
};
return (new Date());
};
DeserialiseXML = function ():XML{
var _local1:String;
var _local2:int;
_local1 = "";
if (ch == "<"){
GetNextChar();
GetNextChar();
_local2 = strInput.indexOf("</*>");
while (GetNextChar()) {
if (index == (_local2 - 1)){
while (index < (_local2 + 5)) {
GetNextChar();
};
return (new XML(_local1));
} else {
_local1 = (_local1 + ch);
};
};
};
return (new XML());
};
DeserialiseBoolean = function (){
switch (ch){
case "t":
if ((((((GetNextChar() == "r")) && ((GetNextChar() == "u")))) && ((GetNextChar() == "e")))){
GetNextChar();
return (true);
};
break;
case "f":
if ((((((((GetNextChar() == "a")) && ((GetNextChar() == "l")))) && ((GetNextChar() == "s")))) && ((GetNextChar() == "e")))){
GetNextChar();
return (false);
};
break;
case "n":
if ((((((GetNextChar() == "u")) && ((GetNextChar() == "l")))) && ((GetNextChar() == "l")))){
GetNextChar();
return (null);
};
break;
};
return ("");
};
DeserialiseValue = function (){
TrimWhiteSpace();
switch (ch){
case "{":
return (DeserialiseObject());
case "[":
return (DeserialiseArray());
case "\"":
return (DeserialiseString());
case "-":
return (DeserialiseNumber());
case "#":
return (DeserialiseDate());
case "<":
return (DeserialiseXML());
default:
return (((((ch >= "0")) && ((ch <= "9")))) ? DeserialiseNumber() : DeserialiseBoolean());
};
};
index = 0;
ch = " ";
return (DeserialiseValue());
}
protected function SetClassName(_arg1:String):void{
m_strClassName = _arg1;
}
private function SendCmdMac(_arg1:String):void{
var _local2:String;
var _local3:String;
var _local4:int;
var _local5:String;
var _local6:int;
var _local7:int;
var _local8:SharedObject;
var _local9:String;
var _local10:int;
var _local11:String;
var _local12:String;
if (GetHostPlatform() == "Mac"){
_local2 = "xppcmd";
_local3 = "s000000000000";
_local4 = ++m_cmdCounter;
_local5 = (_arg1 + _local4.toString());
_local6 = 0xFA00;
_local7 = (Math.round((_local5.length / _local6)) + 1);
_local8 = SharedObject.getLocal(_local2, "/", false);
_local9 = _local7.toString();
_local8.data.v = "\r";
_local8.data.v = (_local8.data.v + "s000000000000");
_local8.data.v = (_local8.data.v + "\x02");
_local8.data.v = (_local8.data.v + "\x00");
_local8.data.v = (_local8.data.v + "\x01");
_local8.data.v = (_local8.data.v + _local7.toString());
_local8.data.v = (_local8.data.v + "\x00");
_local8.data.v = (_local8.data.v + "\x00");
_local8.data.v = (_local8.data.v + "\r");
_local10 = 1;
while (_local10 <= _local7) {
_local11 = _local10.toString();
while (_local11.length < 3) {
_local11 = ("0" + _local11);
};
_local12 = String(_local5.substr(((_local10 - 1) * _local6), _local6));
_local8.data.v = (_local8.data.v + (("s" + _local11) + "000000000"));
_local8.data.v = (_local8.data.v + "\x02");
_local8.data.v = (_local8.data.v + "ú");
_local8.data.v = (_local8.data.v + "\x00");
_local8.data.v = (_local8.data.v + _local12);
_local10++;
};
_local8.flush();
};
}
protected function GetClassName():String{
return (m_strClassName);
}
protected function GetHostPlatform():String{
return (Capabilities.os.substring(0, 3));
}
protected function IsDynamic():Boolean{
return (m_dynamic);
}
protected function AddEvent(_arg1:String, _arg2:Boolean):void{
m_events[_arg1] = (_arg2) ? dummyCBParams : dummyCB;
}
private function WorkOutFormID():void{
var _local1:String;
var _local2:Array;
var _local3:int;
_local1 = null;
if (m_strURL != null){
_local1 = m_strURL;
};
if (_local1 != null){
if (GetHostPlatform() == "Win"){
_local2 = _local1.split("~swd");
if (_local2.length == 2){
_local1 = _local2[1];
_local2 = _local1.split(".");
if (_local2.length == 2){
_local3 = (_local2[0].valueOf() - 1);
m_strFormID = _local3.toString();
while (m_strFormID.length < 6) {
m_strFormID = ("0" + m_strFormID);
};
};
};
} else {
if (GetHostPlatform() == "Mac"){
_local2 = _local1.split("/");
if (_local2.length){
_local1 = _local2[(_local2.length - 1)];
_local2 = _local1.split(".");
if (_local2.length == 2){
_local3 = (_local2[0].valueOf() - 1);
m_strFormID = _local3.toString();
while (m_strFormID.length < 6) {
m_strFormID = ("0" + m_strFormID);
};
};
};
};
};
};
if (m_strFormID == "!}id}!"){
m_strFormID = "000000";
};
}
protected function SetDynamic(_arg1:int):void{
m_dynamic = true;
m_dynamicID = _arg1;
}
private function SetupRealBasicSocket():void{
var onConnect:Function;
var onClose:Function;
var onData:Function;
var onSecurityError:Function;
var onIOError:Function;
m_macPort = (50000 + int(m_strFormID));
m_macSocket = new XMLSocket();
onConnect = function (_arg1:Event):void{
};
onClose = function (_arg1:Event):void{
};
onData = function (_arg1:DataEvent):void{
var _local2:Array;
var _local3:Array;
var _local4:String;
_local2 = _arg1.data.split("!}}^{}!");
if (_local2[0] == "mdm.__callFunction"){
_local3 = _local2[1].split("!}}v{}!");
if (_local3[0] != "mdm.__dispatchEvent"){
_local4 = _local3.join("!}}v{}!");
OnEvent(_local4);
};
if (GetHostPlatform() == "Mac"){
if ((((_local3.length > 1)) && ((((_local3[0] == "mdm.__dispatchEvent")) && ((_local3[1] == "AppExit")))))){
_local3.shift();
_local4 = _local3.join("!}}v{}!");
OnEvent(_local4);
};
};
};
};
onSecurityError = function (_arg1:SecurityErrorEvent):void{
};
onIOError = function (_arg1:SecurityErrorEvent):void{
};
m_macSocket.addEventListener(Event.CONNECT, onConnect);
m_macSocket.addEventListener(Event.CLOSE, onClose);
m_macSocket.addEventListener(DataEvent.DATA, onData);
m_macSocket.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError);
m_macSocket.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
m_macSocket.connect("127.0.0.1", m_macPort);
}
protected function AddObject(_arg1:String, _arg2:mdm_resolver):void{
if (_arg2 == null){
m_objs[_arg1] = new mdm_resolver();
m_objs[_arg1].m_strClassName = String(((m_strClassName + ".") + _arg1));
} else {
m_objs[_arg1] = _arg2;
};
}
protected function ShowMessage(_arg1:String):void{
}
private function HaveEI():Boolean{
return (ExternalInterface.available);
}
protected function CallAsync(_arg1:String, _arg2:Array):void{
var _local3:Array;
var _local4:String;
var _local5:String;
var _local6:String;
var _local7:Array;
var _local8:String;
_local3 = _arg2;
_local5 = "";
if (_local3[(_local3.length - 1)] === ASYNC){
_local3.pop();
};
_local6 = ((m_strClassName + ".") + _arg1);
if (IsDynamic()){
_local5 = m_dynamicID.toString();
};
_local7 = _local6.split(".");
if ((((_local7[0] == "mdm")) && ((_local7[1] == "Forms")))){
_local6 = ((((_local7[0] + ".") + _local7[1]) + ".") + _local7[3]);
_local5 = _local7[2];
};
if (_local5 != ""){
_local3.unshift(_local5);
};
_local8 = ("mdmCB" + m_cbID.toString());
m_cbID = (m_cbID + 1);
ExternalInterface.addCallback(_local8, _local3[(_local3.length - 1)]);
_local3.pop();
_local3.push(_local8);
_local3 = esc(_local3);
_local4 = (_local3.length) ? (("\"" + _local3.join("\",\"")) + "\"") : "";
if ((((GetHostPlatform() == "Win")) && (HaveEI()))){
fscommand(_local6, _local4);
} else {
if (GetHostPlatform() == "Mac"){
};
};
}
protected function CallSyncNoReturn(_arg1:String, _arg2:Array):void{
var _local3:*;
_local3 = CallSync(_arg1, _arg2);
}
protected function CallSync(_arg1:String, _arg2:Array){
var _local3:Array;
var _local4:String;
var _local5:String;
var _local6:String;
var _local7:String;
var _local8:String;
var _local9:Array;
_local3 = _arg2;
_local5 = "";
if (_local3[(_local3.length - 1)] === SYNC){
_local3.pop();
};
_local8 = ((m_strClassName + ".") + _arg1);
if (IsDynamic()){
_local5 = m_dynamicID.toString();
};
_local9 = _local8.split(".");
if ((((_local9[0] == "mdm")) && ((_local9[1] == "Forms")))){
_local8 = ((((_local9[0] + ".") + _local9[1]) + ".") + _local9[3]);
_local5 = _local9[2];
};
if (_local5 != ""){
_local3.unshift(_local5);
};
if ((((GetHostPlatform() == "Win")) || ((GetHostPlatform() == "Lin")))){
_local3 = esc(_local3);
_local4 = (_local3.length) ? ("<{zinc}>" + (("\"" + _local3.join("\",\"")) + "\"")) : "";
} else {
if (GetHostPlatform() == "Mac"){
if (HaveEI()){
_local3 = esc(_local3);
_local4 = (_local3.length) ? ("<{zinc}>" + (("\"" + _local3.join("\",\"")) + "\"")) : "";
} else {
_local6 = (new Date().getTime() + "<{zinc}>");
_local4 = (_local3.length) ? ("<{zinc}>" + _local3.join("<{zincp}>")) : "";
};
};
};
if ((((((GetHostPlatform() == "Win")) || ((GetHostPlatform() == "Lin")))) && (HaveEI()))){
_local7 = ExternalInterface.call(_local8, m_strFormID, _local4);
if (_local7 != null){
return (Deserialise(_local7));
};
} else {
if (GetHostPlatform() == "Mac"){
if (HaveEI()){
_local7 = ExternalInterface.call(_local8, m_strFormID, _local4);
if (_local7 != null){
return (Deserialise(_local7));
};
} else {
SendCmdMac((((((m_strFormID + "<{zinc}>") + _local8) + _local4) + "<{zinc}>") + _local6));
_local7 = WaitReturnMac();
if (_local7 != null){
return (Deserialise(_local7));
};
};
};
};
return ("");
}
protected function AddDynamicEvent(_arg1:String, _arg2:Boolean):void{
m_dynEvents[_arg1] = (_arg2) ? dummyCBParams : dummyCB;
}
private function InitialiseObjects(_arg1:String):void{
var _local2:Array;
var _local3:int;
_local2 = _arg1.split("<{!z!!}>");
_local3 = 0;
while (_local3 < _local2.length) {
InitialiseObject(_local2[_local3]);
_local3++;
};
}
protected function MakeFormProperties(_arg1:String):void{
m_properties[_arg1] = new Array();
m_properties[_arg1] = m_properties["mdm.forms"];
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){
var _local2:Array;
var _local3:int;
var _local4:String;
var _local5:Array;
if (!m_doneInit){
return ("");
};
if (m_objs[_arg1] != null){
return (m_objs[_arg1]);
};
_local2 = m_properties[m_strClassName];
if (_local2 == null){
return ("");
};
_local3 = 0;
while (_local3 < _local2.length) {
if (_local2[_local3][0] == _arg1){
if ((((_local2[_local3][2] == "get")) || ((_local2[_local3][2] == "getset")))){
_local4 = String(("get" + _arg1));
_local5 = new Array();
return (CallSync(_local4, _local5));
};
if (_local2[_local3][2] == "ppsv"){
if (_local2[_local3][1] == "integer"){
return (new int(_local2[_local3][3]));
};
if (_local2[_local3][1] == "string"){
return (new String(_local2[_local3][3]));
};
if (_local2[_local3][1] == "boolean"){
return (new Boolean(_local2[_local3][3]));
};
} else {
break;
};
};
_local3++;
};
return ("");
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function callProperty(_arg1, ... _args){
var _local3:Array;
if (!m_doneInit){
return ("");
};
_local3 = _args;
if (_local3[(_local3.length - 1)] !== ASYNC){
return (CallSync(_arg1, _local3));
};
return (CallAsync(_arg1, _local3));
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextNameIndex(_arg1:int):int{
return (0);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{
var _local3:Array;
var _local4:int;
var _local5:String;
var _local6:Array;
if (!m_doneInit){
return;
};
_local3 = m_properties[m_strClassName];
if (_local3 != null){
_local4 = 0;
while (_local4 < _local3.length) {
if (_local3[_local4][0] == _arg1){
if ((((_local3[_local4][2] == "set")) || ((_local3[_local4][2] == "getset")))){
_local5 = String(("set" + _arg1));
_local6 = new Array();
_local6.push(_arg2);
CallSync(_local5, _local6);
break;
} else {
break;
};
};
_local4++;
};
};
if (m_strClassName == "mdm.Menu.Context"){
if (_arg1 != "menuType"){
Menu.Context.AddEvent(_arg1, false);
Menu.Context.SetEvent(_arg1, _arg2);
};
} else {
if (m_strClassName == "mdm.Menu.Main"){
if (_arg1 != "menuType"){
Menu.Main.AddEvent(_arg1, false);
Menu.Main.SetEvent(_arg1, _arg2);
};
} else {
if (m_strClassName == "mdm.Menu.Tray"){
if (((!((_arg1 == "menuType"))) && (!((_arg1 == "iconHint"))))){
Menu.Tray.AddEvent(_arg1, false);
Menu.Tray.SetEvent(_arg1, _arg2);
};
} else {
if (IsDynamic()){
if (m_dynEvents[_arg1] != null){
SetDynamicEvent(_arg1, _arg2);
};
} else {
if (m_events[_arg1] != null){
SetEvent(_arg1, _arg2);
};
};
};
};
};
}
private function WriteSO(_arg1:String):void{
var _local2:SharedObject;
if (GetHostPlatform() == "Mac"){
_local2 = SharedObject.getLocal(_arg1, "/");
if (_local2.data.v != "<init />"){
_local2.data.v = "<init />";
};
_local2.flush();
};
}
private function dlm(_arg1:String, _arg2:String):String{
return ((((_arg1 + "!}}^") + _arg2) + "^{}!"));
}
protected function mdmSetup():void{
var _local1:String;
var _local2:String;
var _local3:String;
if (!m_doneInit){
if (!m_bSimulate){
WorkOutFormID();
};
if ((((((GetHostPlatform() == "Win")) || ((GetHostPlatform() == "Lin")))) && (HaveEI()))){
if (!m_bSimulate){
_local1 = ExternalInterface.call("mdm.initialise", m_strFormID, "");
} else {
_local1 = strProps;
};
};
if (GetHostPlatform() == "Mac"){
if (!m_bSimulate){
if (HaveEI()){
_local1 = ExternalInterface.call("mdm.initialise", m_strFormID, "");
} else {
SetupRealBasicSocket();
_local2 = (new Date().getTime() + "<{zinc}>");
_local3 = "";
SendCmdMac((((((m_strFormID + "<{zinc}>") + "mdm.initialise") + _local3) + "<{zinc}>") + _local2));
_local1 = WaitReturnMac();
};
} else {
_local1 = strPropsMac;
};
};
m_properties = new Object();
if (_local1 != null){
InitialiseObjects(_local1);
};
if (GetHostPlatform() == "Win"){
if (((!(m_bSimulate)) && (HaveEI()))){
ExternalInterface.addCallback("MDMAS3EVENTCALLBACK", eventCallback);
ExternalInterface.call("mdm.flash9ready", m_strFormID, "");
};
};
if ((((GetHostPlatform() == "Mac")) || ((GetHostPlatform() == "Lin")))){
if (((!(m_bSimulate)) && (HaveEI()))){
ExternalInterface.call("mdm.flash9ready", m_strFormID, "");
};
};
if ((((((GetHostPlatform() == "Mac")) || ((GetHostPlatform() == "Lin")))) && (HaveEI()))){
InitEventsGatherer();
};
m_doneInit = true;
};
}
private function WaitReturnMac():String{
var _local1:String;
var _local2:String;
var _local3:String;
var _local4:SharedObject;
var _local5:Number;
var _local6:int;
var _local7:String;
if (GetHostPlatform() == "Mac"){
_local1 = "xppres";
_local2 = "s000000000000";
_local3 = "";
_local4 = SharedObject.getLocal((_local1 + m_cmdCounter), "/", false);
_local5 = (Number(_local4.data[_local2]) + 1);
_local6 = 1;
while (_local6 < _local5) {
_local7 = _local6.toString();
while (_local7.length < 3) {
_local7 = ("0" + _local7);
};
_local2 = (("s" + _local7) + "000000000");
_local3 = (_local3 + _local4.data[_local2]);
_local6++;
};
return (_local3);
//unresolved jump
};
return ("");
}
private function InitEventsGatherer():void{
var f:Function;
f = function ():void{
var _local1:String;
var _local2:Array;
var _local3:int;
if ((((((GetHostPlatform() == "Mac")) || ((GetHostPlatform() == "Lin")))) && (HaveEI()))){
_local1 = ExternalInterface.call("mdm.Application.collectEvents", m_strFormID, "");
if (_local1 != ""){
_local2 = _local1.split("!!!{}event{{!!!");
if (_local2.length > 0){
_local3 = 0;
while (_local3 < _local2.length) {
OnEvent(_local2[_local3]);
_local3++;
};
};
};
};
};
setInterval(f, (1000 / 20));
}
private function esc(_arg1:Array):Array{
var _local2:int;
_local2 = 0;
while (_local2 < _arg1.length) {
if (typeof(_arg1[_local2]) == "string"){
_arg1[_local2] = _arg1[_local2].split(",").join("@co@").split("\"").join("@dq@").split("&").join("@amp@");
};
_local2++;
};
return (_arg1);
}
private function Serialise():void{
}
protected function SetEvent(_arg1:String, _arg2:Function):void{
m_events[_arg1] = _arg2;
}
protected function SetDynamicEvent(_arg1:String, _arg2:Function):void{
m_dynEvents[_arg1] = _arg2;
}
private static function OnEvent(_arg1:String):void{
var _local2:Boolean;
var _local3:String;
var _local4:Array;
var _local5:String;
var _local6:Boolean;
var _local7:String;
var _local8:int;
var _local9:Object;
var _local10:FTP;
var _local11:Browser;
var _local12:HTTP;
var _local13:MediaPlayer6;
var _local14:MediaPlayer9;
var _local15:String;
var _local16:String;
var _local17:Array;
var _local18:Array;
_local2 = m_doneInit;
_local3 = _arg1;
_local4 = _local3.split("!}}v{}!");
_local5 = _local4[0];
if (_local4.length){
_local4.shift();
};
_local6 = false;
_local7 = "";
_local8 = 0;
_local9 = new Object();
if (_local5.substr(0, 5) == "onFTP"){
_local6 = true;
if (_local4.length){
_local8 = _local4.shift();
};
if (_local8 >= 0){
_local7 = ("on" + _local5.slice(5));
_local10 = m_dynFTP[_local8];
if (_local10 != null){
if (_local10.internal_resolver().m_dynEvents[_local7] != null){
var _local19 = _local10.internal_resolver().m_dynEvents;
_local19[_local7]();
};
};
};
} else {
if (_local5.substr(0, 9) == "onBrowser"){
_local6 = true;
if (_local4.length){
_local8 = _local4.shift();
};
if (_local8 >= 0){
_local7 = ("on" + _local5.slice(9));
_local11 = m_dynBrowsers[_local8];
if (_local11 != null){
if (_local11.internal_resolver().m_dynEvents[_local7] != null){
if (_local7 == "onDocumentComplete"){
_local9["url"] = _local4[0];
_local19 = _local11.internal_resolver().m_dynEvents;
_local19[_local7](_local9);
};
};
};
};
} else {
if (_local5.substr(0, 6) == "onHTTP"){
_local6 = true;
if (_local4.length){
_local8 = _local4.shift();
};
if (_local8 >= 0){
_local7 = ("on" + _local5.slice(6));
_local12 = m_dynHTTP[_local8];
if (_local12 != null){
if (_local12.internal_resolver().m_dynEvents[_local7] != null){
if (_local7 == "onBinaryTransferComplete"){
_local9["filename"] = _local4[0];
_local19 = _local12.internal_resolver().m_dynEvents;
_local19[_local7](_local9);
} else {
if (_local7 == "onError"){
_local19 = _local12.internal_resolver().m_dynEvents;
_local19[_local7]();
} else {
if (_local7 == "onProgress"){
_local9["bytesTotal"] = _local4[0];
_local9["bytesTransferred"] = _local4[1];
_local19 = _local12.internal_resolver().m_dynEvents;
_local19[_local7](_local9);
} else {
if (_local7 == "onTransferComplete"){
_local9["data"] = _local4[0];
_local19 = _local12.internal_resolver().m_dynEvents;
_local19[_local7](_local9);
};
};
};
};
};
};
};
} else {
if (_local5.substr(0, 5) == "onMP6"){
_local6 = true;
if (_local4.length){
_local8 = _local4.shift();
};
if (_local8 >= 0){
_local7 = ("on" + _local5.slice(5));
_local13 = m_dynMP6[_local8];
if (_local13 != null){
if (_local13.internal_resolver().m_dynEvents[_local7] != null){
if (_local7 == "onMPChangeState"){
_local9["oldState"] = _local4[0];
_local9["newState"] = _local4[1];
_local19 = _local13.internal_resolver().m_dynEvents;
_local19[_local7](_local9);
};
};
};
};
} else {
if (_local5.substr(0, 5) == "onMP9"){
_local6 = true;
if (_local4.length){
_local8 = _local4.shift();
};
if (_local8 >= 0){
_local7 = ("on" + _local5.slice(5));
_local14 = m_dynMP9[_local8];
if (_local14 != null){
if (_local14.internal_resolver().m_dynEvents[_local7] != null){
if (_local7 == "onWMP9Buffering"){
_local9["status"] = _local4[0];
_local19 = _local14.internal_resolver().m_dynEvents;
_local19[_local7](_local9);
} else {
if (_local7 == "onWMP9ChangeState"){
_local9["newState"] = _local4[0];
_local19 = _local14.internal_resolver().m_dynEvents;
_local19[_local7](_local9);
} else {
if (_local7 == "onWMP9Error"){
_local9["error"] = _local4[0];
_local19 = _local14.internal_resolver().m_dynEvents;
_local19[_local7](_local9);
} else {
if (_local7 == "onWMP9PositionChanged"){
_local9["newPosition"] = _local4[0];
_local19 = _local14.internal_resolver().m_dynEvents;
_local19[_local7](_local9);
};
};
};
};
};
};
};
};
};
};
};
};
if (!_local6){
_local7 = _local5;
if (_local5.substr(0, 11) == "onMenuClick"){
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7]();
};
} else {
if (_local5.substr(0, 18) == "onContextMenuClick"){
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7]();
};
} else {
if (_local5.substr(0, 15) == "onTrayMenuClick"){
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7]();
};
};
};
};
if (_local5.substr(0, 6) == "onForm"){
if (_local7 == "onFormChangeFocus"){
_local9["status"] = _local4[0];
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7](_local9);
};
} else {
if (_local7 == "onFormClose"){
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7]();
};
} else {
if (_local7 == "onFormMaximize"){
_local9["clientWidth"] = _local4[0];
_local9["clientHeight"] = _local4[1];
_local9["width"] = _local4[2];
_local9["height"] = _local4[3];
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7](_local9);
};
} else {
if (_local7 == "onFormMinimize"){
_local9["clientWidth"] = _local4[0];
_local9["clientHeight"] = _local4[1];
_local9["width"] = _local4[2];
_local9["height"] = _local4[3];
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7](_local9);
};
} else {
if (_local7 == "onFormReposition"){
_local9["x"] = _local4[0];
_local9["y"] = _local4[1];
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7](_local9);
};
} else {
if (_local7 == "onFormResize"){
_local15 = _local4.shift();
_local9["clientWidth"] = _local4[0];
_local9["clientHeight"] = _local4[1];
_local9["width"] = _local4[2];
_local9["height"] = _local4[3];
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7](_local9);
};
} else {
if (_local7 == "onFormRestore"){
_local9["clientWidth"] = _local4[0];
_local9["clientHeight"] = _local4[1];
_local9["width"] = _local4[2];
_local9["height"] = _local4[3];
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7](_local9);
};
};
};
};
};
};
};
};
} else {
if ((((((((((((((((((_local7 == "onAppChangeFocus")) || ((_local7 == "onAppExit")))) || ((_local7 == "onAppMinimize")))) || ((_local7 == "onAppRestore")))) || ((_local7 == "onBottomHit")))) || ((_local7 == "onLeftHit")))) || ((_local7 == "onRightHit")))) || ((_local7 == "onSplashClosed")))) || ((_local7 == "onTopHit")))){
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7]();
};
} else {
if (_local7.substr(0, 10) == "onAppTimer"){
} else {
if (_local7 == "AppExit"){
if (m_events["onAppExit"] != null){
_local19 = m_events;
_local19["onAppExit"]();
};
} else {
if (_local7 == "onArrowKeyPress"){
_local9["status"] = _local4[0];
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7](_local9);
};
} else {
if (_local7 == "onDragDrop"){
_local16 = _arg1;
_local17 = _local16.split("!}}v{}!");
_local18 = _local17[1].split("|");
_local9["files"] = _local18;
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7](_local9);
};
_local9["files"] = null;
} else {
if (_local7 == "onMDMScriptException"){
_local9["formType"] = _local4[0];
_local9["command"] = _local4[1];
_local9["message"] = _local4[2];
_local9["frameNumber"] = _local4[3];
_local9["parameter"] = _local4[4];
_local9["value"] = _local4[5];
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7](_local9);
};
} else {
if (_local5.substr(0, 5) == "onCOM"){
if (_local7 == "onCOMPortCTSChanged"){
_local9["timeCode"] = _local4[0];
_local9["state"] = _local4[1];
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7](_local9);
};
} else {
if (_local7 == "onCOMPortDSRChanged"){
_local9["timeCode"] = _local4[0];
_local9["state"] = _local4[1];
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7](_local9);
};
} else {
if (_local7 == "onCOMPortData"){
_local9["timeCode"] = _local4[0];
_local9["data"] = _local4[1];
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7](_local9);
};
} else {
if (_local7 == "onCOMPortHEXData"){
_local9["timeCode"] = _local4[0];
_local9["hexData"] = _local4[1];
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7](_local9);
};
} else {
if (_local7 == "onCOMPortDataSent"){
_local9["timeCode"] = _local4[0];
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7](_local9);
};
} else {
if (_local7 == "onCOMPortError"){
_local9["timeCode"] = _local4[0];
_local9["error"] = _local4[1];
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7](_local9);
};
} else {
if (_local7 == "onCOMPortSendProgress"){
_local9["timeCode"] = _local4[0];
_local9["bytes"] = _local4[1];
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7](_local9);
};
};
};
};
};
};
};
};
} else {
if (_local7 == "onFileListViewDblClick"){
_local9["type"] = _local4[0];
_local9["name"] = _local4[1];
_local9["association"] = _local4[2];
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7](_local9);
};
} else {
if ((((((((_local7 == "onJoystick1ButtonDown")) || ((_local7 == "onJoystick1Move")))) || ((_local7 == "onJoystick2ButtonDown")))) || ((_local7 == "onJoystick2Move")))){
_local9["x"] = _local4[0];
_local9["y"] = _local4[1];
_local9["b1"] = _local4[2];
_local9["b2"] = _local4[3];
_local9["b3"] = _local4[4];
_local9["b4"] = _local4[5];
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7](_local9);
};
} else {
if (_local7 == "onTabletEvent"){
_local9["x"] = _local4[0];
_local9["y"] = _local4[1];
_local9["pressure"] = _local4[2];
_local9["buttons"] = _local4[3];
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7](_local9);
};
} else {
if (_local7 == "onRequest"){
_local9["document"] = _local4[0];
_local9["parameters"] = _local4[1];
_local9["remoteIP"] = _local4[2];
if (m_events[_local7] != null){
_local19 = m_events;
_local19[_local7](_local9);
};
} else {
if (_local5.substr(0, 5) == "onUDP"){
if (_local7 == "onUDPSocketData"){
_local9["data"] = _local4[0];
if (m_events["onData"] != null){
_local19 = m_events;
_local19["onData"](_local9);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
_local9 = null;
}
public static function AssocURL(_arg1:String):void{
m_strURL = _arg1;
}
public static function InitCallbacks():void{
ExternalInterface.addCallback("MDMAS3EVENTCALLBACK", eventCallback);
}
public static function eventCallback(_arg1:String):void{
OnEvent(_arg1);
}
}
}//package
import flash.display.*;
import flash.text.*;
class AlertBox extends MovieClip {
private function AlertBox(_arg1:String){
var _local2:SimpleButton;
var _local3:TextField;
var _local4:Sprite;
var _local5:Sprite;
super();
_local2 = new SimpleButton();
_local4 = new Sprite();
_local4.graphics.lineStyle(2, 0x202020);
_local4.graphics.beginFill(0xFF00FF);
_local4.graphics.drawRect(10, 10, 300, 200);
_local5 = new Sprite();
_local5.graphics.lineStyle(2, 0x202020);
_local5.graphics.beginFill(0xFF0000);
_local5.graphics.drawRect(10, 10, 300, 200);
_local2.upState = _local5;
_local2.overState = _local5;
_local2.downState = _local4;
_local2.useHandCursor = true;
_local2.hitTestState = _local5;
addChild(_local2);
_local3 = new TextField();
_local3.autoSize = TextFieldAutoSize.LEFT;
_local3.selectable = false;
_local3.textColor = 0xFFFFFF;
_local3.text = _arg1;
_local3.x = ((_local2.width - _local3.width) / 2);
_local3.y = ((_local2.height - _local3.height) / 2);
addChild(_local3);
}
}
private const dummyCB:Function = function ():void{
};
private const dummyCBParams:Function = function (_arg1:Object):void{
};
Section 88
//Nulla (Nulla)
package {
import flash.display.*;
public dynamic class Nulla extends MovieClip {
}
}//package
Section 89
//Palla (Palla)
package {
import flash.display.*;
public dynamic class Palla extends MovieClip {
}
}//package