Frame 1
fscommand ("trapallkeys", "true");
preloader = gdp.preloader.AnimPreloader.create(this);
stop();
Frame 10
preloader.getContainer().callFrame("SessionStart");
Frame 20
preloader.getContainer().callFrame("GameStart");
Frame 29
preloader.getContainer().callFrame("GameContinue", "GameContinueData", this.GameContinueData);
Frame 40
preloader.getContainer().callFrame("MuteOn");
Frame 47
preloader.getContainer().callFrame("MuteOff");
Frame 54
preloader.getContainer().callFrame("PauseOn");
Frame 62
preloader.getContainer().callFrame("PauseOff");
Frame 70
preloader.getContainer().callFrame("GameMenu");
Frame 79
preloader.getContainer().callFrame("CustomReturn", "CustomData", this.CustomData);
Symbol 5 MovieClip [AnimPreloader] Frame 1
#initclip 60
Object.registerClass("AnimPreloader", gdp.preloader.AnimPreloader);
#endinitclip
Symbol 6 MovieClip [__Packages.gdp.core.base.BaseMovieClip] Frame 0
class gdp.core.base.BaseMovieClip extends MovieClip
{
static var sClassName, sPackageName, sClassNameWithPackage;
var _yscale, _xscale, _alpha, _height, _width, _name;
function BaseMovieClip () {
super();
}
function init() {
return(this);
}
function description() {
var _local2 = {_name:_name, _width:_width, _height:_height, _alpha:_alpha, _xscale:_xscale, _yscale:_yscale};
return("BaseMovieClip " + gdp.utils.ObjectUtil.classToString(_local2, true));
}
function toString() {
return(description());
}
function getClass() {
return(Object(this).__constructor__);
}
function getClassName(bClean) {
if ((sClassName == undefined) || (bClean)) {
sClassName = gdp.utils.ObjectUtil.getClassName(getClass());
}
return(sClassName);
}
function getPackageName() {
if (sPackageName == undefined) {
sPackageName = gdp.utils.ObjectUtil.getClassPackage(getClass());
}
return(sPackageName);
}
function getClassNameWithPackage() {
if (sClassNameWithPackage == undefined) {
sClassNameWithPackage = (getPackageName() + ".") + getClassName();
}
return(sClassNameWithPackage);
}
function isEqual(anObject) {
return(this == anObject);
}
function createEmptyMovieClip(sName, nDepth, oParams) {
var _local3 = super.createEmptyMovieClip(sName, nDepth);
for (var _local4 in oParams) {
_local3[_local4] = oParams[_local4];
}
return(_local3);
}
}
Symbol 7 MovieClip [__Packages.gdp.utils.ObjectUtil] Frame 0
class gdp.utils.ObjectUtil
{
function ObjectUtil () {
}
static function initClasses() {
var _local2 = 0;
while (_local2 < arguments.length) {
if (arguments[_local2] == undefined) {
trace(("Class not found [" + _local2) + "]");
}
_local2++;
}
}
static function classToString(oClass, bNotWrap) {
if (oClass == undefined) {
return("{}");
}
var _local4 = ((!bNotWrap) ? newline : "");
var _local2 = getPrimitivesOnly(oClass);
var _local1 = 0;
while (_local1 < _local2.length) {
var _local3 = ((_local1 == 0) ? "{" : ", ") + ((!bNotWrap) ? "\n\t" : "");
if (_local2[_local1].data instanceof String) {
_local4 = _local4 + ((((_local3 + _local2[_local1].sName) + ":\"") + _local2[_local1].data) + "\"");
} else if (_local2[_local1].data instanceof Array) {
_local4 = _local4 + ((((_local3 + _local2[_local1].sName) + ":[") + _local2[_local1].data) + "]");
} else {
_local4 = _local4 + (((_local3 + _local2[_local1].sName) + ":") + _local2[_local1].data);
}
_local1++;
}
_local4 = _local4 + ((_local4 == "") ? "{}" : (((!bNotWrap) ? "\n}" : "}")));
return(_local4);
}
static function clone(value) {
if (value.clone instanceof Function) {
return(value.clone());
}
var _local2 = new Object();
for (var _local3 in value) {
if (typeof(value[_local3]) == "object") {
_local2[_local3] = copy(value[_local3]);
} else {
_local2[_local3] = value[_local3];
}
}
return(_local2);
}
static function copy(value) {
return(clone(value));
}
static function mergeObjects(oParent, oChild, ow) {
var _local3;
var _local4;
for (var _local6 in oChild) {
_local3 = oParent[_local6] != undefined;
if (typeof(oChild[_local6].toString()) == "object") {
if (!_local3) {
oParent[_local6] = oChild[_local6];
}
_local4 = oParent[_local6];
_local4 = _local4.mergeObjects(oChild[_local6], ow);
} else {
if (!_local3) {
oParent[_local6] = oChild[_local6];
}
if (_local3 && (ow)) {
oParent[_local6] = oChild[_local6];
}
}
}
}
static function getPrimitivesOnly(oObject, aWithout) {
var _local3 = new Array();
for (var _local7 in oObject) {
if (gdp.utils.ArrayUtil.contains(aWithout, _local7)) {
continue;
}
var _local2 = {sName:_local7, data:oObject[_local7]};
switch (typeof(oObject[_local7])) {
case "string" :
case "boolean" :
case "number" :
_local3.push(_local2);
break;
case "object" :
if (!(oObject[_local7] instanceof Array)) {
break;
}
_local3.push(_local2);
}
}
return(_local3);
}
static function toXML(oData) {
var _local2 = "";
for (var _local3 in oData) {
if (typeof(oData[_local3]) == "object") {
_local2 = _local2 + (((((("<" + _local3) + ">") + toXML(oData[_local3])) + "</") + _local3) + ">");
} else if ((typeof(oData[_local3]) == "number") || (typeof(oData[_local3]) == "string")) {
_local2 = _local2 + (((((("<" + _local3) + ">") + oData[_local3]) + "</") + _local3) + ">");
} else if (oData[_local3] == undefined) {
_local2 = _local2 + (((("<" + _local3) + "></") + _local3) + ">");
}
}
return(new XML(_local2));
}
static function findNameOfObject(oWhat, oWhere, bWithPackage, sCurrentPackage) {
_global.ASSetPropFlags(oWhere, null, 0, true);
_global.ASSetPropFlags(oWhere, ["__proto__", "prototype", "__constructor__", "constructor"], 7, true);
sCurrentPackage = sCurrentPackage || "";
for (var _local7 in oWhere) {
if (typeof(oWhere[_local7]) == "object") {
var _local3 = findNameOfObject(oWhat, oWhere[_local7], bWithPackage, (sCurrentPackage + _local7) + ".");
if (_local3 != null) {
return(_local3);
}
}
if (oWhere[_local7] === oWhat) {
return((bWithPackage ? (sCurrentPackage + _local7) : (_local7)));
}
}
_global.ASSetPropFlags(oWhere, null, 1, true);
return(null);
}
static function getClassName(oClass) {
return(findNameOfObject(oClass, _global, false));
}
static function getClassPackage(oClass) {
var _local2 = findNameOfObject(oClass, _global, true);
return(_local2.substring(0, _local2.lastIndexOf(".")));
}
static function getClassNameWithPackage(oClass) {
return(findNameOfObject(oClass, _global, true));
}
static function typesMatch(object, type) {
if (type === Object) {
return(true);
}
if (isPrimitiveType(object)) {
var _local2 = typeof(object);
if (((type === String) || (gdp.utils.ClassUtil.isSubClassOf(type, String))) && (_local2 == TYPE_STRING)) {
return(true);
}
if (((type === Boolean) || (gdp.utils.ClassUtil.isSubClassOf(type, Boolean))) && (_local2 == TYPE_BOOLEAN)) {
return(true);
}
if (((type === Number) || (gdp.utils.ClassUtil.isSubClassOf(type, Number))) && (_local2 == TYPE_NUMBER)) {
return(true);
}
return(false);
}
return(isInstanceOf(object, type));
}
static function isPrimitiveType(object) {
var _local1 = typeof(object);
return(((_local1 == TYPE_STRING) || (_local1 == TYPE_NUMBER)) || (_local1 == TYPE_BOOLEAN));
}
static function isTypeOf(object, type) {
return(typeof(object) == type);
}
static function isInstanceOf(object, type) {
if (type === Object) {
return(true);
}
return(object instanceof type);
}
static function isExplicitInstanceOf(object, clazz) {
if (clazz == String) {
return(typeof(object) == TYPE_STRING);
}
if (clazz == Number) {
return(typeof(object) == TYPE_NUMBER);
}
if (clazz == Boolean) {
return(typeof(object) == TYPE_BOOLEAN);
}
return((object instanceof clazz) && (!(object.__proto__ instanceof clazz)));
}
static var TYPE_STRING = "string";
static var TYPE_NUMBER = "number";
static var TYPE_OBJECT = "object";
static var TYPE_BOOLEAN = "boolean";
static var TYPE_MOVIECLIP = "movieclip";
static var TYPE_FUNCTION = "function";
static var TYPE_UNDEFINED = "undefined";
static var TYPE_NULL = "null";
}
Symbol 8 MovieClip [__Packages.gdp.utils.ArrayUtil] Frame 0
class gdp.utils.ArrayUtil
{
function ArrayUtil () {
}
static function fillArray(nSize, value) {
var _local2 = new Array();
var _local1 = 0;
while (_local1 < nSize) {
_local2.push(value);
_local1++;
}
return(_local2);
}
static function getRandElem(aArray, nSt, nEnd) {
var _local1 = aArray.slice(nSt, nEnd);
return(_local1[random(_local1.length)]);
}
static function getActualNumbers(aValues, nMinNumber, nMaxNumber) {
var _local6 = aValues.length;
var _local5 = aValues[0];
var _local7 = aValues[_local6 - 1];
if ((_local5 == nMinNumber) && (_local7 == nMaxNumber)) {
return(aValues);
}
var _local4 = new Array();
var _local2;
var _local1 = 0;
while (_local1 < _local6) {
_local2 = (aValues[_local1] - _local5) + nMinNumber;
_local4.push((_local2 / _local7) * nMaxNumber);
_local1++;
}
return(_local4);
}
static function contains(aArray, object) {
for (var _local3 in aArray) {
if (aArray[_local3] === object) {
return(true);
}
}
return(false);
}
static function allItemsToNumber(aArray) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < aArray.length) {
_local3.push(Number(aArray[_local1]));
_local1++;
}
return(_local3);
}
function trim(aArray) {
return(leftTrim(rightTrim(aArray)));
}
static function leftTrim(aArray) {
return(leftTrimForValues(aArray, [null, undefined]));
}
static function rightTrim(aArray) {
return(rightTrimForValues(aArray, [null, undefined]));
}
static function leftTrimForValues(aArray, aValues) {
var _local3 = aArray.concat();
var _local2 = 0;
while (_local2 < _local3.length) {
var _local1 = 0;
while (_local1 < aValues.length) {
if (_local3[_local2] == aValues[_local1]) {
_local3.splice(_local2, 1);
} else {
return(_local3);
}
_local1++;
}
_local2--;
_local2++;
}
return(_local3);
}
static function rightTrimForValues(aArray, aValues) {
var _local3 = aArray.concat();
var _local2 = _local3.length - 1;
while (_local2 >= 0) {
var _local1 = 0;
while (_local1 < aValues.length) {
if (_local3[_local2] == aValues[_local1]) {
_local3.splice(_local2, 1);
} else {
return(_local3);
}
_local1++;
}
_local2--;
}
return(_local3);
}
}
Symbol 9 MovieClip [__Packages.gdp.core.base.BaseClass] Frame 0
class gdp.core.base.BaseClass
{
static var sClassName, sPackageName, sClassNameWithPackage;
function BaseClass () {
}
function description() {
return("BaseClass");
}
function toString() {
return(description());
}
function getClass() {
return(Object(this).__constructor__);
}
function getClassName() {
if (sClassName == undefined) {
sClassName = gdp.utils.ObjectUtil.getClassName(getClass());
}
return(sClassName);
}
function getPackageName() {
if (sPackageName == undefined) {
sPackageName = gdp.utils.ObjectUtil.getClassPackage(getClass());
}
return(sPackageName);
}
function getClassNameWithPackage() {
if (sClassNameWithPackage == undefined) {
sClassNameWithPackage = (getPackageName() + ".") + getClassName();
}
return(sClassNameWithPackage);
}
function isEqual(anObject) {
return(this == anObject);
}
function memberWiseClone() {
var _local2 = new Object();
var _local4 = getClass();
_local2.__proto__ = _local4.prototype;
_local2.__constructor__ = _local4;
_local4.apply(_local2);
for (var _local3 in this) {
_local2[_local3] = this[_local3];
}
return(gdp.core.base.BaseClass(_local2));
}
function addListener() {
}
function removeListener() {
}
}
Symbol 10 MovieClip [__Packages.gdp.utils.ClassUtil] Frame 0
class gdp.utils.ClassUtil extends gdp.core.base.BaseClass
{
function ClassUtil () {
super();
}
static function isSubClassOf(subClass, superClass) {
var _local1 = subClass.prototype;
while (!(_local1 === undefined)) {
_local1 = _local1.__proto__;
if (_local1 === superClass.prototype) {
return(true);
}
}
return(false);
}
static function isImplementationOf(clazz, interfaze) {
var _local2 = clazz.prototype;
if (isSubClassOf(clazz, interfaze)) {
return(false);
}
return(createCleanInstance(clazz) instanceof interfaze);
}
static function createCleanInstance(clazz) {
var _local1 = new Object();
_local1.__proto__ = clazz.prototype;
_local1.__constructor__ = clazz;
return(_local1);
}
static function createInstance(clazz, args) {
if (!clazz) {
return(null);
}
var _local1 = new Object();
_local1.__proto__ = clazz.prototype;
_local1.__constructor__ = clazz;
clazz.apply(_local1, args);
return(_local1);
}
}
Symbol 11 MovieClip [__Packages.gdp.preloader.AbstractPreloader] Frame 0
class gdp.preloader.AbstractPreloader extends gdp.core.base.BaseMovieClip
{
static var sMovieURL;
var mclLoader, cfgLoader, sConfigURL, mcContainer, oListener, createEmptyMovieClip, getNextHighestDepth;
function AbstractPreloader () {
super();
trace(("AbstractPreloader.enclosing_method(" + [arguments]) + ")");
mclLoader = new MovieClipLoader();
cfgLoader = new gdp.preloader.config.ConfigLoader(sConfigURL, gdp.utils.Delegate.create(this, onConfigLoad));
setEvents();
}
function getContainer() {
return(mcContainer);
}
function setEvents() {
oListener = new Object();
oListener.onLoadStart = gdp.utils.Delegate.create(this, onLoadStart);
oListener.onLoadComplete = gdp.utils.Delegate.create(this, onLoadComplete);
oListener.onLoadProgress = gdp.utils.Delegate.create(this, onLoadProgress);
oListener.onLoadInit = gdp.utils.Delegate.create(this, onLoadInit);
oListener.onLoadError = gdp.utils.Delegate.create(this, onLoadError);
mclLoader.addListener(oListener);
}
function onConfigLoad(bSuccess) {
trace(("AbstractPreloader.onConfigLoad(" + [arguments]) + ")");
if (!bSuccess) {
return(undefined);
}
mcContainer = createEmptyMovieClip("mcContainer", getNextHighestDepth(), {_visible:false});
mcContainer._lockroot = true;
mclLoader.loadClip(sMovieURL, mcContainer);
}
function addFlashVars(mcTarget) {
var _local2 = gdp.utils.ObjectUtil.getPrimitivesOnly(_level0, ["$version"]);
var _local1 = 0;
while (_local1 < _local2.length) {
gdp.core.ExternalVars.set(_local2[_local1].sName, _local2[_local1].data);
if (bOnlyExternalVars) {
} else {
mcTarget[_local2[_local1].sName] = _local2[_local1].data;
}
_local1++;
}
}
function onLoadStart(mcTarget) {
addFlashVars(mcTarget);
}
function onLoadComplete(mcTarget) {
}
function onLoadProgress(mcTarget, nLoadedBytes, nTotalBytes) {
}
function onLoadInit(mcTarget) {
}
function onLoadError(mcTarget, sErrorCode, nHttpStatus) {
}
static var bOnlyExternalVars = false;
}
Symbol 12 MovieClip [__Packages.gdp.preloader.config.ConfigLoader] Frame 0
class gdp.preloader.config.ConfigLoader
{
var sConfigFile, xml, fCallback;
function ConfigLoader (sConfigFile, fCallback, bNotAutoLoad) {
this.sConfigFile = sConfigFile;
xml = new XML();
xml.onLoad = gdp.utils.Delegate.create(this, onXMLLoad);
xml.ignoreWhite = true;
if (!bNotAutoLoad) {
load();
}
this.fCallback = fCallback;
}
function load() {
xml.load(sConfigFile);
}
function parse() {
var oRes = new Object();
var parser = (new gdp.preloader.config.XMLParser(xml, oRes));
parser.run();
for (var i in oRes.config) {
for (var j in oRes.config[i]) {
var parent = eval (i);
if (parent == undefined) {
throw new gdp.config.IllegalNameOfObjectException(((("Illegal name of class [" + i) + "] in config file [") + sConfigFile) + "]", this, arguments);
}
if ((parent[j] == undefined) || (typeof(parent[j]) != "object")) {
parent[j] = oRes.config[i][j];
} else {
gdp.utils.ObjectUtil.mergeObjects(parent[j], oRes.config[i][j]);
}
}
}
}
function onXMLLoad(bSuccess) {
if (bSuccess) {
parse();
} else {
throw new gdp.evn.except.FileNotFoundException(("File [" + sConfigFile) + "] is not found", this, arguments);
}
gdp.utils.Executor.endTask();
fCallback(bSuccess);
}
}
Symbol 13 MovieClip [__Packages.gdp.utils.Delegate] Frame 0
class gdp.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(oClass, fFunc, aArgs, bMerge) {
var _local2 = function () {
var _local3 = arguments.callee.target;
var _local2 = arguments.callee.func;
var _local4 = arguments.callee.bMerge;
if (_local4) {
var _local5 = gdp.utils.Delegate.merge(arguments, arguments.callee.aArgs);
} else {
var _local5 = ((arguments.length > 0) ? arguments : (arguments.callee.aArgs));
}
_local2.___nCount = arguments.callee.nCount;
return(_local2.apply(_local3, _local5));
};
_local2.type = "Delegate";
_local2.target = oClass;
_local2.func = fFunc;
_local2.nCount = ++nCount;
if (_local2.func.___aInnerValues == undefined) {
_local2.func.___aInnerValues = new Array();
}
_local2.func.___aInnerValues[nCount] = new Object();
_local2.aArgs = aArgs;
_local2.bMerge = bMerge;
return(_local2);
}
static function set(sValueName, value) {
return((arguments.caller.___aInnerValues[arguments.caller.___nCount][sValueName] = value));
}
static function get(sValueName) {
return(arguments.caller.___aInnerValues[arguments.caller.___nCount][sValueName]);
}
static function merge(aA, aB) {
var _local1 = 0;
while (_local1 < aB.length) {
aA.push(aB[_local1]);
_local1++;
}
return(aA);
}
static function clone(fDelegate) {
if ((fDelegate.target != undefined) && (fDelegate.func != undefined)) {
return(create(fDelegate.target, fDelegate.func, fDelegate.aArgs, fDelegate.bMerge));
}
return(fDelegate);
}
function createDelegate(obj) {
return(create(obj, func));
}
static var nCount = 0;
}
Symbol 14 MovieClip [__Packages.gdp.preloader.config.XMLParser] Frame 0
class gdp.preloader.config.XMLParser
{
static var aModules;
var xmlString, oRes;
function XMLParser (xmlString, oRes) {
this.xmlString = xmlString;
this.oRes = oRes;
if (!aModules) {
initModules();
}
}
static function addModule(oModuleClass, nPriority) {
if (aModules == undefined) {
initModules();
}
if (nPriority == undefined) {
aModules.push(oModuleClass);
} else {
aModules.splice(nPriority, 0, oModuleClass);
}
}
static function initModules() {
aModules = new Array();
addModule(gdp.config.modules.XML2Beans);
addModule(gdp.config.modules.XML2TypedData);
addModule(gdp.config.modules.XML2Array);
addModule(gdp.config.modules.XML2Struct);
addModule(gdp.config.modules.XML2Object);
}
function run() {
var _local2 = xmlString.childNodes.length - 1;
while (_local2 >= 0) {
var _local3 = xmlString.childNodes[_local2];
matches(_local3);
_local2--;
}
}
function matches(xmlCurrentNode) {
var _local2 = 0;
while (_local2 < aModules.length) {
if (aModules[_local2].match(xmlCurrentNode)) {
var _local3 = new aModules[_local2](xmlCurrentNode, oRes);
break;
}
_local2++;
}
}
}
Symbol 15 MovieClip [__Packages.gdp.config.modules.AbstractModule] Frame 0
class gdp.config.modules.AbstractModule extends gdp.core.base.BaseClass
{
var xmlNode, oRes;
function AbstractModule (xmlNode, oRes) {
super();
if (!xmlNode) {
throw new gdp.evn.except.IllegalArgumentException("Undefined xmlNode", this, arguments);
}
if (!oRes) {
throw new gdp.evn.except.IllegalArgumentException("Undefined oRes", this, arguments);
}
this.xmlNode = xmlNode;
this.oRes = oRes;
convert();
}
static function match(xmlNode, oRes) {
throw new gdp.evn.except.AbstractOperationException("match() is abstract and has to be implemented.", null, arguments);
return(null);
}
function convert() {
throw new gdp.evn.except.AbstractOperationException("convert() is abstract and has to be implemented.", this, arguments);
}
}
Symbol 16 MovieClip [__Packages.gdp.evn.except.AbstractThrowable] Frame 0
class gdp.evn.except.AbstractThrowable extends Error
{
static var sClassName, sPackageName, sClassNameWithPackage;
var message, thrower, aArgs, name;
function AbstractThrowable (message, thrower, aArgs) {
super();
this.message = message;
this.thrower = thrower;
this.aArgs = aArgs;
name = getClassName();
}
function getMessage() {
return(message);
}
function getThrowerName() {
if (thrower instanceof gdp.core.base.BaseClass) {
return(thrower.getClassName());
}
return(gdp.utils.ObjectUtil.getClassName(thrower));
}
function getThrowerNameWithPackage() {
if (thrower instanceof gdp.core.base.BaseClass) {
return(thrower.getClassNameWithPackage());
}
return(gdp.utils.ObjectUtil.getClassNameWithPackage(thrower));
}
function getArguments() {
return(aArgs);
}
function getClass() {
return(Object(this).__constructor__);
}
function getClassName() {
if (sClassName == undefined) {
sClassName = gdp.utils.ObjectUtil.getClassName(getClass());
}
return(sClassName);
}
function getPackageName() {
if (sPackageName == undefined) {
sPackageName = gdp.utils.ObjectUtil.getClassPackage(getClass());
}
return(sPackageName);
}
function getClassNameWithPackage() {
if (sClassNameWithPackage == undefined) {
sClassNameWithPackage = (getPackageName() + ".") + getClassName();
}
return(sClassNameWithPackage);
}
function toString() {
return((((("[" + getClassName()) + " in ") + getThrowerName()) + "] :: ") + getMessage());
}
}
Symbol 17 MovieClip [__Packages.gdp.evn.except.Throwable] Frame 0
interface gdp.evn.except.Throwable
{
}
Symbol 18 MovieClip [__Packages.gdp.evn.except.FatalException] Frame 0
class gdp.evn.except.FatalException extends gdp.evn.except.AbstractThrowable implements gdp.evn.except.Throwable
{
function FatalException (message, thrower, aArgs) {
super(message, thrower, aArgs);
}
}
Symbol 19 MovieClip [__Packages.gdp.evn.except.IllegalArgumentException] Frame 0
class gdp.evn.except.IllegalArgumentException extends gdp.evn.except.FatalException
{
var aArgs;
function IllegalArgumentException (message, thrower, args) {
super(message, thrower, aArgs);
}
}
Symbol 20 MovieClip [__Packages.gdp.evn.except.AbstractOperationException] Frame 0
class gdp.evn.except.AbstractOperationException extends gdp.evn.except.FatalException
{
function AbstractOperationException (message, thrower, aArgs) {
super(message, thrower, aArgs);
}
}
Symbol 21 MovieClip [__Packages.gdp.config.modules.XML2Beans] Frame 0
class gdp.config.modules.XML2Beans extends gdp.config.modules.AbstractModule
{
static var oBreansFactory;
var xmlNode;
function XML2Beans (xmlNode, oRes) {
super(xmlNode, oRes);
}
static function setFactory(oBreansFactory) {
gdp.config.modules.XML2Beans.oBreansFactory = oBreansFactory;
}
static function getFactory() {
return(oBreansFactory);
}
static function match(xmlNode) {
return((xmlNode.nodeName == BEANS_NODE) || (xmlNode.nodeName == REF_ATTRIBUTE));
}
function convert() {
switch (xmlNode.nodeName) {
case BEANS_NODE :
parseBeanDefinitions(xmlNode);
break;
case REF_ATTRIBUTE :
}
}
function parseBeanDefinitions(xmlRoot) {
var _local4 = 0;
var _local2 = 0;
while (_local2 < xmlRoot.childNodes.length) {
if (xmlRoot.childNodes[_local2].nodeName == BEAN_ELEMENT) {
_local4++;
parseBeanDefinitionElement(xmlRoot.childNodes[_local2]);
}
_local2++;
}
return(_local4);
}
function parseBeanDefinitionElement(xmlElement) {
var _local4 = xmlElement.attributes[ID_ATTRIBUTE];
var _local15 = xmlElement.attributes[NAME_ATTRIBUTE];
var _local6 = xmlElement.attributes[CLASS_ATTRIBUTE];
var _local8 = xmlElement.attributes[PARENT_ATTRIBUTE];
var _local10 = gdp.utils.StringUtil.toBoolean(xmlElement.attributes[SINGLETON_ATTRIBUTE]);
var _local11 = gdp.utils.StringUtil.toBoolean(xmlElement.attributes[LAZY_INIT_ATTRIBUTE]);
var _local12 = xmlElement.attributes[PARENT_ATTRIBUTE];
var _local13 = xmlElement.attributes[FACTORY_METHOD_ATTRIBUTE];
var _local14 = xmlElement.attributes[DESTROY_METHOD_ATTRIBUTE];
var _local7 = parseConstructorArgElements(xmlElement, _local4);
var _local5 = parsePropertyElements(xmlElement, _local4);
var _local3;
if (_local6 != null) {
_local3 = new gdp.beans.factory.support.RootBean(_local4, _local6, _local7, _local5);
_local3.setLazyInit(_local11);
} else if (_local8 != null) {
_local3 = new gdp.beans.factory.support.ChildBean(_local4, _local8, _local7, _local5);
}
_local3.setSingleton(_local10);
var _local9 = getFactory();
_local9.addBean(_local3);
}
function parseConstructorArgElements(xmlElement, sBeanName) {
var _local6 = new gdp.beans.factory.support.ConstructorArgumentValues(xmlElement.childNodes.length);
var _local2 = 0;
while (_local2 < xmlElement.childNodes.length) {
var _local1 = xmlElement.childNodes[_local2];
if (_local1.nodeName == CONSTRUCTOR_ARG_ELEMENT) {
var _local3 = new Object();
var _local4 = new gdp.config.XMLParser(_local1, _local3);
_local4.run();
_local6.addArgument(_local1.attributes[INDEX_ATTRIBUTE], _local3[VALUE_ATTRIBUTE]);
}
_local2++;
}
return(_local6);
}
function parsePropertyElements(xmlElement, sBeanName) {
var _local6 = new gdp.utils.Properties();
var _local2 = 0;
while (_local2 < xmlElement.childNodes.length) {
var _local1 = xmlElement.childNodes[_local2];
if (_local1.nodeName == PROPERTY_ELEMENT) {
var _local3 = new Object();
var _local4 = new gdp.config.XMLParser(_local1, _local3);
_local4.run();
_local6.setProperty(_local1.attributes[NAME_ATTRIBUTE], _local3);
}
_local2++;
}
return(_local6);
}
static var BEAN_NAME_DELIMITERS = ",; ";
static var BEANS_NODE = "beans";
static var ALIAS_ELEMENT = "alias";
static var NAME_ATTRIBUTE = "name";
static var ALIAS_ATTRIBUTE = "alias";
static var BEAN_ELEMENT = "bean";
static var ID_ATTRIBUTE = "id";
static var PARENT_ATTRIBUTE = "parent";
static var CLASS_ATTRIBUTE = "class";
static var ABSTRACT_ATTRIBUTE = "abstract";
static var SINGLETON_ATTRIBUTE = "singleton";
static var LAZY_INIT_ATTRIBUTE = "lazy-init";
static var AUTOWIRE_ATTRIBUTE = "autowire";
static var DEPENDENCY_CHECK_ATTRIBUTE = "dependency-check";
static var DEPENDS_ON_ATTRIBUTE = "depends-on";
static var INIT_METHOD_ATTRIBUTE = "init-method";
static var DESTROY_METHOD_ATTRIBUTE = "destroy-method";
static var FACTORY_METHOD_ATTRIBUTE = "factory-method";
static var FACTORY_BEAN_ATTRIBUTE = "factory-bean";
static var CONSTRUCTOR_ARG_ELEMENT = "constructor-arg";
static var INDEX_ATTRIBUTE = "index";
static var TYPE_ATTRIBUTE = "type";
static var PROPERTY_ELEMENT = "property";
static var REF_ATTRIBUTE = "ref";
static var VALUE_ATTRIBUTE = "value";
static var LOOKUP_METHOD_ELEMENT = "lookup-method";
}
Symbol 22 MovieClip [__Packages.gdp.beans.factory.BeanFactory] Frame 0
interface gdp.beans.factory.BeanFactory
{
}
Symbol 23 MovieClip [__Packages.gdp.beans.factory.support.AbstractBeanFactory] Frame 0
class gdp.beans.factory.support.AbstractBeanFactory extends gdp.core.base.BaseClass implements gdp.beans.factory.BeanFactory
{
var oBeans, oSingletonCache;
function AbstractBeanFactory () {
super();
oBeans = new Object();
oSingletonCache = new Object();
}
function addBean(bean) {
trace(("gdp.beans.factory.support.AbstractBeanFactory.addBean(" + [arguments]) + ")");
oBeans[bean.getBeanName()] = bean;
}
function getObjectFromBean(sName) {
return(oBeans[sName].build());
}
function getBean(sName) {
return(oBeans[sName]);
}
function getBeanFromClass(sName, oClass) {
return(null);
}
function containsBeans() {
return(null);
}
function isSingleton(sName) {
return(null);
}
function getType(sName) {
return(null);
}
function getAliases(sName) {
return(null);
}
}
Symbol 24 MovieClip [__Packages.gdp.beans.factory.BeanDefinition] Frame 0
interface gdp.beans.factory.BeanDefinition
{
}
Symbol 25 MovieClip [__Packages.gdp.utils.Properties] Frame 0
class gdp.utils.Properties extends gdp.core.base.BaseClass
{
var oProps;
function Properties () {
super();
oProps = new Object();
}
function setProperty(sKey, value) {
if ((sKey != undefined) && (value != undefined)) {
oProps[sKey] = value;
}
}
function getProperty(sKey) {
return(oProps[sKey]);
}
function setPropertyForClass(sKey, oClass) {
oClass[SETTER_PREFIX + gdp.utils.StringUtil.ucFirst(sKey)](oProps[sKey]);
}
function setAllPropertiesForClass(oClass) {
for (var _local3 in oProps) {
setPropertyForClass(_local3, oClass);
}
}
function description() {
var _local2 = new gdp.data.holder.map.HashMap(oProps);
return(_local2.toString());
}
static var SETTER_PREFIX = "set";
}
Symbol 26 MovieClip [__Packages.gdp.utils.StringUtil] Frame 0
class gdp.utils.StringUtil
{
function StringUtil () {
}
static function addCharsToRight(sString, sChars, nCount) {
var _local1 = 0;
while (_local1 < nCount) {
sString = sString + sChars;
_local1++;
}
return(sString);
}
static function addCharsToLeft(sString, sChars, nCount) {
var _local1 = 0;
while (_local1 < nCount) {
sString = sChars + sString;
_local1++;
}
return(sString);
}
static function isNumber(sString) {
return(((Number(sString) == sString) ? true : false));
}
static function replace(sString, sWhat, sTo) {
return(new String(sString.split(sWhat).join(sTo)));
}
static function trim(sString) {
return(leftTrim(rightTrim(sString)));
}
static function leftTrim(sString) {
return(leftTrimForChars(sString, "\n\t\n "));
}
static function rightTrim(sString) {
return(rightTrimForChars(sString, "\n\t\n "));
}
static function leftTrimForChars(sString, sChars) {
var _local1 = 0;
var _local3 = sString.length;
while ((_local1 < _local3) && (sChars.indexOf(sString.charAt(_local1)) >= 0)) {
_local1++;
}
return(new String(((_local1 > 0) ? (sString.substr(_local1, _local3)) : (sString))));
}
static function rightTrimForChars(sString, sChars) {
var _local2 = 0;
var _local1 = sString.length - 1;
while ((_local2 < _local1) && (sChars.indexOf(sString.charAt(_local1)) >= 0)) {
_local1--;
}
return(new String(((_local1 >= 0) ? (sString.substr(_local2, _local1 + 1)) : (sString))));
}
static function checkEmail(sEmail) {
if (sEmail.length < 6) {
return(false);
}
if ((sEmail.split("@").length > 2) || (sEmail.indexOf("@") < 0)) {
return(false);
}
if (sEmail.lastIndexOf("@") > sEmail.lastIndexOf(".")) {
return(false);
}
if (sEmail.lastIndexOf(".") > (sEmail.length - 3)) {
return(false);
}
if (sEmail.lastIndexOf(".") <= (sEmail.lastIndexOf("@") + 1)) {
return(false);
}
return(true);
}
static function assureLength(sString, nLength) {
if ((nLength < 0) || ((!nLength) && (!(nLength === 0)))) {
return(sString.length >= nLength);
}
}
static function contains(sString, sChars) {
if (((sChars == null) || (sString == null)) || (sChars.length > sString.length)) {
return(false);
}
if (sString.indexOf(sChars) >= 0) {
return(true);
}
return(false);
}
static function startsWith(sString, sSearchString) {
if (sString.indexOf(sSearchString) == 0) {
return(true);
}
return(false);
}
static function endsWith(sString, sSearchString) {
if (sString.lastIndexOf(sSearchString) == (sString.length - sSearchString.length)) {
return(true);
}
return(false);
}
static function addSpaceIndent(sString, nSize) {
if (sString == null) {
sString = "";
}
if (nSize < 0) {
return(new String(""));
}
var _local1 = multiply(" ", nSize);
return(_local1 + replace(sString, newline, newline + _local1));
}
static function multiply(sString, nFactor) {
var _local2 = "";
var _local1 = nFactor;
while (_local1 > 0) {
_local2 = _local2 + sString;
_local1--;
}
return(_local2);
}
static function ucFirst(sString) {
return(new String(sString.charAt(0).toUpperCase() + sString.substr(1)));
}
static function ucWords(sString) {
var _local2 = sString.split(" ");
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
_local2[_local1] = ucFirst(_local2[_local1]);
_local1++;
}
return(new String(_local2.join(" ")));
}
static function firstChar(sString) {
return(new String(sString.charAt(0)));
}
static function lastChar(sString) {
return(new String(sString.charAt(sString.length - 1)));
}
static function toBoolean(value) {
if ((value == "1") || (value == "true")) {
return(true);
}
return(false);
}
static function toArray(sString, sDelimeters, bTrim, bIgnoreEmpty) {
var _local7 = new Array();
var _local5 = sDelimeters.split("");
var _local6 = -1;
var _local3 = 0;
while (_local3 < sString.length) {
var _local2 = 0;
while (_local2 < _local5.length) {
if (sString.substr(_local3, 1) == _local5[_local2]) {
var _local1 = sString.slice(_local6 + 1, _local3);
if (bTrim) {
_local1 = trim(_local1);
}
if (!(bIgnoreEmpty && (_local1.length == 0))) {
_local7.push(_local1);
}
_local6 = _local3;
break;
}
_local2++;
}
_local3++;
}
return(_local7);
}
}
Symbol 27 MovieClip [__Packages.gdp.data.holder.map.AbstractMap] Frame 0
class gdp.data.holder.map.AbstractMap extends gdp.core.base.BaseClass
{
var put;
function AbstractMap () {
super();
}
function populate(source) {
if (source) {
for (var _local3 in source) {
put(_local3, source[_local3]);
}
}
}
function description() {
var _local5 = gdp.data.holder.Map(this);
var _local3 = "{";
var _local4 = new gdp.data.holder.array.ArrayIterator(_local5.getValues());
var _local2 = new gdp.data.holder.array.ArrayIterator(_local5.getKeys());
while (_local2.hasNext()) {
_local3 = _local3 + ((_local2.next().toString() + "=") + _local4.next().toString());
if (_local2.hasNext()) {
_local3 = _local3 + ", ";
}
}
_local3 = _local3 + "}";
return(_local3);
}
}
Symbol 28 MovieClip [__Packages.gdp.core.base.BaseInterface] Frame 0
interface gdp.core.base.BaseInterface
{
}
Symbol 29 MovieClip [__Packages.gdp.data.holder.Map] Frame 0
interface gdp.data.holder.Map extends gdp.core.base.BaseInterface
{
}
Symbol 30 MovieClip [__Packages.gdp.data.holder.Iterator] Frame 0
interface gdp.data.holder.Iterator
{
}
Symbol 31 MovieClip [__Packages.gdp.data.holder.array.ArrayIterator] Frame 0
class gdp.data.holder.array.ArrayIterator extends gdp.core.base.BaseClass implements gdp.data.holder.Iterator
{
var t, i, __proto__;
function ArrayIterator (target) {
super();
if (!target) {
throw new gdp.evn.except.IllegalArgumentException(("Argument 'target' [" + target) + "] must not be 'null' nor 'undefined'.", this, arguments);
}
t = target;
i = -1;
var t = target;
var g = -1;
var p = gdp.data.holder.array.ArrayIterator.prototype;
var s = this;
if ((__proto__ == p) && (t.length > 25)) {
var y = function () {
if (g < (t.length - 1)) {
arguments.callee = p.next;
throw new gdp.data.holder.NoSuchElementException("There is no more element.", this, arguments);
}
return(t[++g]);
};
var x = function () {
s.next = y;
return(t[++g]);
};
var z = function () {
s.next = y;
arguments.callee = p.next;
throw new gdp.data.holder.NoSuchElementException("There is no more element.", this, arguments);
};
next = y;
hasNext = function () {
if (g < (t.length - 1)) {
s.next = x;
return(true);
}
s.next = z;
return(false);
};
remove = function () {
if (g < 0) {
arguments.callee = p.remove;
throw new gdp.evn.except.IllegalStateException("You tried to remove an element before calling the 'next' method. There is thus no element selected to remove.", this, arguments);
}
t.splice(g--, 1);
};
}
}
function hasNext() {
return(i < (t.length - 1));
}
function next() {
if (!hasNext()) {
throw new gdp.data.holder.NoSuchElementException("There is no more element.", this, arguments);
}
return(t[++i]);
}
function remove() {
if (i < 0) {
throw new gdp.evn.except.IllegalStateException("You tried to remove an element before calling the 'next' method. There is thus no element selected to remove.", this, arguments);
}
t.splice(i--, 1);
}
}
Symbol 32 MovieClip [__Packages.gdp.evn.except.Exception] Frame 0
class gdp.evn.except.Exception extends gdp.evn.except.AbstractThrowable implements gdp.evn.except.Throwable
{
var aArgs;
function Exception (message, thrower, args) {
super(message, thrower, aArgs);
}
}
Symbol 33 MovieClip [__Packages.gdp.data.holder.DataHolderException] Frame 0
class gdp.data.holder.DataHolderException extends gdp.evn.except.Exception
{
function DataHolderException (message, thrower, args) {
super(message, thrower, args);
}
}
Symbol 34 MovieClip [__Packages.gdp.data.holder.NoSuchElementException] Frame 0
class gdp.data.holder.NoSuchElementException extends gdp.data.holder.DataHolderException
{
function NoSuchElementException (message, thrower, args) {
super(message, thrower, args);
}
}
Symbol 35 MovieClip [__Packages.gdp.evn.except.IllegalStateException] Frame 0
class gdp.evn.except.IllegalStateException extends gdp.evn.except.FatalException
{
var __proto__, message;
function IllegalStateException (message, thrower, args) {
super();
__proto__.__proto__ = gdp.evn.except.FatalException.prototype;
this.message = message;
}
}
Symbol 36 MovieClip [__Packages.gdp.data.holder.map.HashMap] Frame 0
class gdp.data.holder.map.HashMap extends gdp.data.holder.map.AbstractMap implements gdp.data.holder.Map
{
var keys, values, populate;
function HashMap (source) {
super();
keys = new Array();
values = new Array();
populate(source);
}
function containsKey(key) {
return(findKey(key) > -1);
}
function containsValue(value) {
return(findValue(value) > -1);
}
function getKeys() {
return(keys.slice());
}
function getValues() {
return(values.slice());
}
function get(key) {
return(values[findKey(key)]);
}
function put(key, value) {
var _local3;
var _local2 = findKey(key);
if (_local2 < 0) {
keys.push(key);
values.push(value);
} else {
_local3 = values[_local2];
values[_local2] = value;
}
return(_local3);
}
function putAll(map) {
var _local4 = map.getValues();
var _local3 = map.getKeys();
var _local5 = _local3.length;
var _local2 = 0;
while (_local2 < _local5) {
put(_local3[_local2], _local4[_local2]);
_local2 = _local2 - -1;
}
}
function clear() {
keys = new Array();
values = new Array();
}
function remove(key) {
var _local2 = findKey(key);
if (_local2 > -1) {
var _local3 = values[_local2];
values.splice(_local2, 1);
keys.splice(_local2, 1);
return(_local3);
}
return(undefined);
}
function iterator() {
return(new gdp.data.holder.map.ValueMapIterator(this));
}
function valueIterator() {
return(iterator());
}
function keyIterator() {
return(new gdp.data.holder.map.KeyMapIterator(this));
}
function size() {
return(keys.length);
}
function isEmpty() {
return(size() < 1);
}
function findValue(value) {
var _local2 = values.length;
_local2--;
while ((!(values[_local2] === value)) && (_local2 > -1)) {
}
return(_local2);
}
function findKey(key) {
var _local2 = keys.length;
_local2--;
while ((!(keys[_local2] === key)) && (_local2 > -1)) {
}
return(_local2);
}
static var __proto__ = gdp.data.holder.map.AbstractMap;
}
Symbol 37 MovieClip [__Packages.gdp.data.holder.map.ValueMapIterator] Frame 0
class gdp.data.holder.map.ValueMapIterator extends gdp.core.base.BaseClass implements gdp.data.holder.Iterator
{
var target, iterator, key;
function ValueMapIterator (target) {
super();
if (!target) {
throw new gdp.evn.except.IllegalArgumentException(("The passed-in target map '" + target) + "' is not allowed to be null or undefined.", this, arguments);
}
this.target = target;
iterator = new gdp.data.holder.array.ArrayIterator(target.getKeys());
}
function hasNext() {
return(iterator.hasNext());
}
function next() {
key = iterator.next();
return(target.get(key));
}
function remove() {
iterator.remove();
target.remove(key);
}
}
Symbol 38 MovieClip [__Packages.gdp.data.holder.map.KeyMapIterator] Frame 0
class gdp.data.holder.map.KeyMapIterator extends gdp.core.base.BaseClass implements gdp.data.holder.Iterator
{
var target, iterator, key;
function KeyMapIterator (target) {
super();
if (!target) {
throw new gdp.evn.except.IllegalArgumentException(("The passed-in target map '" + target) + "' is not allowed to be null or undefined.", this, arguments);
}
this.target = target;
iterator = new gdp.data.holder.array.ArrayIterator(target.getKeys());
}
function hasNext() {
return(iterator.hasNext());
}
function next() {
key = iterator.next();
return(key);
}
function remove() {
iterator.remove();
target.remove(key);
}
}
Symbol 39 MovieClip [__Packages.gdp.beans.factory.support.ConstructorArgumentValues] Frame 0
class gdp.beans.factory.support.ConstructorArgumentValues extends gdp.core.base.BaseClass
{
var aArgs;
function ConstructorArgumentValues (nArgsCount) {
super();
aArgs = new Array(nArgsCount);
}
function addArgument(nIndex, value) {
aArgs.splice(((nIndex == null) ? (nArgsCount++) : (nIndex)), 1, value);
}
function getArgumentsForApply() {
return(gdp.utils.ArrayUtil.rightTrim(aArgs));
}
function description() {
return(("[" + getArgumentsForApply().toString()) + "]");
}
var nArgsCount = 0;
}
Symbol 40 MovieClip [__Packages.gdp.beans.factory.support.AbstractBean] Frame 0
class gdp.beans.factory.support.AbstractBean extends gdp.core.base.BaseClass implements gdp.beans.factory.BeanDefinition
{
var sBeanName, sBeanClassName, oBeanClass, propertiesValues, constuctorArgs;
function AbstractBean (sName, constArgs, propValues) {
super();
setBeanName(sName);
setConstructorArgumentValues(constArgs);
setPropertyValues(propValues);
}
function build() {
return(null);
}
function getBeanName() {
return(sBeanName);
}
function setBeanName(sValue) {
sBeanName = sValue;
}
function setBeanClassName(sClassName) {
sBeanClassName = sClassName;
oBeanClass = sBeanClassName;
}
function hasBeanClass() {
return(oBeanClass instanceof gdp.core.base.BaseClass);
}
function getBeanClass() {
if (!hasBeanClass()) {
throw new gdp.evn.except.IllegalStateException("Bean definition does not carry a resolved bean class", this, arguments);
}
return(oBeanClass);
}
function setSingleton(bValue) {
bSingleton = bValue;
}
function isSingleton() {
return(bSingleton);
}
function setLazyInit(bValue) {
bLazyInit = bValue;
}
function isLazyInit() {
return(bLazyInit);
}
function setPropertyValues(propValues) {
propertiesValues = propValues;
}
function getPropertyValues() {
return(propertiesValues);
}
function setConstructorArgumentValues(constArgs) {
constuctorArgs = constArgs;
}
function getConstructorArgumentValues() {
return(constuctorArgs);
}
function setInitMethod(sValue) {
}
function setFactoryMethod(sValue) {
}
function setDestroyMethod(sValue) {
}
function description() {
var _local1 = "Bean ";
return(_local1);
}
var bSingleton = true;
var bLazyInit = false;
}
Symbol 41 MovieClip [__Packages.gdp.beans.factory.xml.XmlBeanFactory] Frame 0
class gdp.beans.factory.xml.XmlBeanFactory extends gdp.beans.factory.support.AbstractBeanFactory
{
var sXmlFileName, beansXmlLoader;
function XmlBeanFactory (sXmlFileName) {
super();
this.sXmlFileName = sXmlFileName;
beansXmlLoader = new XML();
beansXmlLoader.onLoad = gdp.utils.Delegate.create(this, onXmlLoaded);
beansXmlLoader.ignoreWhite = true;
beansXmlLoader.load(sXmlFileName);
}
function onXmlLoaded(bSuccess) {
if (!bSuccess) {
throw new gdp.evn.except.FileNotFoundException(("File [" + sXmlFileName) + "] is not found", this, arguments);
}
var _local4 = new Object();
var _local3 = new gdp.config.XMLParser(beansXmlLoader, _local4);
gdp.config.modules.XML2Beans.setFactory(this);
_local3.run();
}
}
Symbol 42 MovieClip [__Packages.gdp.evn.except.FileNotFoundException] Frame 0
class gdp.evn.except.FileNotFoundException extends gdp.evn.except.FatalException
{
function FileNotFoundException (message, thrower, aArgs) {
super(message, thrower, aArgs);
}
}
Symbol 43 MovieClip [__Packages.gdp.config.XMLParser] Frame 0
class gdp.config.XMLParser
{
static var aModules;
var xmlString, oRes;
function XMLParser (xmlString, oRes) {
this.xmlString = xmlString;
this.oRes = oRes;
if (!aModules) {
initModules();
}
}
static function addModule(oModuleClass, nPriority) {
if (aModules == undefined) {
initModules();
}
if (nPriority == undefined) {
aModules.push(oModuleClass);
} else {
aModules.splice(nPriority, 0, oModuleClass);
}
}
static function initModules() {
aModules = new Array();
addModule(gdp.config.modules.XML2Beans);
addModule(gdp.config.modules.XML2TypedData);
addModule(gdp.config.modules.XML2Array);
addModule(gdp.config.modules.XML2Struct);
addModule(gdp.config.modules.XML2Object);
}
function run() {
var _local2 = xmlString.childNodes.length - 1;
while (_local2 >= 0) {
var _local3 = xmlString.childNodes[_local2];
matches(_local3);
_local2--;
}
}
function matches(xmlCurrentNode) {
var _local2 = 0;
while (_local2 < aModules.length) {
if (aModules[_local2].match(xmlCurrentNode)) {
var _local3 = new aModules[_local2](xmlCurrentNode, oRes);
break;
}
_local2++;
}
}
}
Symbol 44 MovieClip [__Packages.gdp.config.modules.XML2TypedData] Frame 0
class gdp.config.modules.XML2TypedData extends gdp.config.modules.AbstractModule
{
static var oModulesTypes;
var xmlNode, oRes;
function XML2TypedData (xmlNode, oRes) {
super(xmlNode, oRes);
}
static function match(xmlNode) {
return(((xmlNode.firstChild.nodeType == 3) && (xmlNode.attributes.type == undefined)) || (xmlNode.attributes.type != undefined));
}
static function addType(sTypeName, oClass) {
if (oModulesTypes == undefined) {
initModules();
}
oModulesTypes[sTypeName] = oClass;
}
static function initModules() {
oModulesTypes = new Object();
addType("Boolean", gdp.config.modules.type.BooleanType);
addType("Number", gdp.config.modules.type.NumberType);
addType("Array", gdp.config.modules.type.ArrayType);
addType("Matrix", gdp.config.modules.type.MatrixType);
addType("StringNode", gdp.config.modules.type.StringNodeType);
}
function convert() {
if (oModulesTypes == undefined) {
initModules();
}
var _local4;
var _local3 = xmlNode.attributes.type;
if (_local3 == undefined) {
_local4 = xmlNode.firstChild.nodeValue;
} else {
var _local5 = oModulesTypes[_local3];
if (_local5 == undefined) {
throw new gdp.config.modules.type.IllegalTypeException(("Illegal name of type [" + _local3) + "]", this, arguments);
}
_local4 = (new _local5[undefined](xmlNode)).getValue();
}
oRes[xmlNode.nodeName] = _local4;
}
}
Symbol 45 MovieClip [__Packages.gdp.config.modules.type.AbstractType] Frame 0
class gdp.config.modules.type.AbstractType extends gdp.core.base.BaseClass
{
var xmlNode, value;
function AbstractType (xmlNode) {
super();
this.xmlNode = xmlNode;
value = convert();
}
function getValue() {
return(value);
}
function convert() {
throw new gdp.evn.except.AbstractOperationException("convert() is abstract and has to be implemented.", this, arguments);
}
}
Symbol 46 MovieClip [__Packages.gdp.config.modules.type.BooleanType] Frame 0
class gdp.config.modules.type.BooleanType extends gdp.config.modules.type.AbstractType
{
var xmlNode;
function BooleanType (xmlNode) {
super(xmlNode);
}
function convert() {
return(gdp.utils.StringUtil.toBoolean(xmlNode.firstChild.nodeValue));
}
}
Symbol 47 MovieClip [__Packages.gdp.config.modules.type.NumberType] Frame 0
class gdp.config.modules.type.NumberType extends gdp.config.modules.type.AbstractType
{
var xmlNode;
function NumberType (xmlNode) {
super(xmlNode);
}
function convert() {
return(Number(xmlNode.firstChild.nodeValue));
}
}
Symbol 48 MovieClip [__Packages.gdp.config.modules.type.ArrayType] Frame 0
class gdp.config.modules.type.ArrayType extends gdp.config.modules.type.AbstractType
{
var xmlNode;
function ArrayType (xmlNode) {
super(xmlNode);
}
function convert() {
var _local6 = xmlNode.attributes.itemType;
var _local7 = xmlNode.attributes.separator || ",";
var _local4 = xmlNode.firstChild.nodeValue.split(_local7);
if (_local6 != undefined) {
var _local2 = 0;
while (_local2 < _local4.length) {
var _local5 = new XML(((("<value type=\"" + _local6) + "\">") + _local4[_local2]) + "</value>");
var _local3 = new Object();
new gdp.config.modules.XML2TypedData(_local5.firstChild, _local3);
_local4[_local2] = _local3.value;
_local2++;
}
}
return(_local4);
}
}
Symbol 49 MovieClip [__Packages.gdp.config.modules.type.MatrixType] Frame 0
class gdp.config.modules.type.MatrixType extends gdp.config.modules.type.AbstractType
{
var xmlNode;
function MatrixType (xmlNode) {
super(xmlNode);
}
function convert() {
var _local7 = xmlNode.attributes.itemType;
var _local8 = xmlNode.attributes.rowSeparator || "|";
var _local6 = xmlNode.attributes.colSeparator || ",";
var _local3 = xmlNode.firstChild.nodeValue.split(_local8);
var _local2 = 0;
while (_local2 < _local3.length) {
var _local4 = new XML(((((("<value type='Array' itemType='" + _local7) + "' separator='") + _local6) + "'>") + _local3[_local2]) + "</value>");
var _local5 = new gdp.config.modules.type.ArrayType(_local4.firstChild);
_local3[_local2] = _local5.getValue();
_local2++;
}
return(_local3);
}
}
Symbol 50 MovieClip [__Packages.gdp.config.modules.type.StringNodeType] Frame 0
class gdp.config.modules.type.StringNodeType extends gdp.config.modules.type.AbstractType
{
var xmlNode;
function StringNodeType (xmlNode) {
super(xmlNode);
}
function convert() {
return(xmlNode.firstChild.toString());
}
}
Symbol 51 MovieClip [__Packages.gdp.config.modules.type.IllegalTypeException] Frame 0
class gdp.config.modules.type.IllegalTypeException extends gdp.evn.except.FatalException
{
function IllegalTypeException (message, thrower, aArgs) {
super(message, thrower, aArgs);
}
}
Symbol 52 MovieClip [__Packages.gdp.config.modules.XML2Array] Frame 0
class gdp.config.modules.XML2Array extends gdp.config.modules.AbstractModule
{
var xmlNode, oRes;
function XML2Array (xmlNode, oRes) {
super(xmlNode, oRes);
}
static function match(xmlNode) {
return(((xmlNode.nextSibling.nodeName == xmlNode.nodeName) || (xmlNode.previousSibling.nodeName == xmlNode.nodeName)) && (!gdp.utils.XMLUtil.isHasAttributes(xmlNode)));
}
function convert() {
var _local2 = new Object();
if (!(oRes[xmlNode.nodeName] instanceof Array)) {
oRes[xmlNode.nodeName] = new Array();
}
if (xmlNode.firstChild.nodeType == 1) {
var _local3 = new gdp.config.XMLParser(xmlNode, _local2);
_local3.run();
} else if ((xmlNode.firstChild.nodeType == 3) && (xmlNode.childNodes.length == 1)) {
_local2 = xmlNode.firstChild.nodeValue;
}
oRes[xmlNode.nodeName].unshift(_local2);
}
}
Symbol 53 MovieClip [__Packages.gdp.utils.XMLUtil] Frame 0
class gdp.utils.XMLUtil extends gdp.core.base.BaseClass
{
function XMLUtil () {
super();
}
static function isHasAttributes(node) {
for (var _local2 in node.attributes) {
return(true);
}
return(false);
}
function description() {
return("XMLUtil");
}
}
Symbol 54 MovieClip [__Packages.gdp.config.modules.XML2Struct] Frame 0
class gdp.config.modules.XML2Struct extends gdp.config.modules.AbstractModule
{
var xmlNode, oRes;
function XML2Struct (xmlNode, oRes) {
super(xmlNode, oRes);
}
static function match(xmlNode) {
return((gdp.utils.XMLUtil.isHasAttributes(xmlNode) && (xmlNode.childNodes.length == 0)) && (xmlNode.nodeValue == undefined));
}
function convert() {
if (!(oRes[xmlNode.nodeName] instanceof gdp.core.type.Struct)) {
oRes[xmlNode.nodeName] = new gdp.core.type.Struct();
}
oRes[xmlNode.nodeName].set(xmlNode.attributes, true);
}
}
Symbol 55 MovieClip [__Packages.gdp.core.type.Struct] Frame 0
class gdp.core.type.Struct extends Array
{
var length, unshift, push, bDelete, splice;
function Struct () {
super();
}
function clone() {
var _local3 = new gdp.core.type.Struct();
var _local2 = 0;
while (_local2 < length) {
_local3.push(gdp.utils.ObjectUtil.copy(this[_local2]));
_local2++;
}
return(_local3);
}
function set(oFields, bUnShift) {
if (bUnShift) {
unshift(gdp.utils.ObjectUtil.copy(oFields));
} else {
push(gdp.utils.ObjectUtil.copy(oFields));
}
return(length - 1);
}
function remove() {
if (typeof(arguments[0]) == "string") {
findByString(arguments[0], arguments[1], true);
} else if (typeof(arguments[0]) == "object") {
findByMap(arguments[0], true);
} else {
return(false);
}
var _local3 = 0;
while (_local3 < length) {
if (bDelete) {
splice(_local3--, 1);
}
_local3++;
}
}
function find() {
if (typeof(arguments[0]) == "string") {
return(findBy(arguments[0], arguments[1]));
}
if (typeof(arguments[0]) == "object") {
return(findByMap(arguments[0]));
}
}
function findBy(key, value, bDelete) {
var _local5 = new gdp.core.type.Struct();
var _local2 = 0;
while (_local2 < length) {
if (bDelete) {
this[_local2].bDelete = bDelete;
}
if ((this[_local2][key] == value) || (value == undefined)) {
_local5.push(gdp.utils.ObjectUtil.copy(this[_local2]));
}
_local2++;
}
return(_local5);
}
function findByMap(oMap, bDelete) {
var _local2 = clone();
for (var _local5 in oMap) {
_local2 = _local2.findBy(_local5, oMap[_local5], bDelete);
}
return(_local2);
}
function isContain(oMap) {
if (find(oMap).length > 0) {
return(true);
}
return(false);
}
function clear() {
this=new gdp.core.type.Struct();//parameter overwritten
new gdp.core.type.Struct();
}
function toString() {
var _local3 = "[CStruct] \n[";
var _local2 = 0;
while (_local2 < length) {
_local3 = _local3 + ("\n\t" + gdp.utils.ObjectUtil.classToString(this[_local2], true));
_local2++;
}
return(_local3 + "\n]");
}
}
Symbol 56 MovieClip [__Packages.gdp.config.modules.XML2Object] Frame 0
class gdp.config.modules.XML2Object extends gdp.config.modules.AbstractModule
{
var xmlNode, oRes;
function XML2Object (xmlNode, oRes) {
super(xmlNode, oRes);
}
static function match(xmlNode) {
return((xmlNode.firstChild.nodeValue == undefined) && (xmlNode.attributes.type == undefined));
}
function convert() {
var _local2 = new Object();
if (gdp.utils.XMLUtil.isHasAttributes(xmlNode)) {
_local2.attributes = gdp.utils.ObjectUtil.clone(xmlNode.attributes);
}
var _local3 = new gdp.config.XMLParser(xmlNode, _local2);
_local3.run();
oRes[xmlNode.nodeName] = _local2;
}
}
Symbol 57 MovieClip [__Packages.gdp.beans.factory.support.RootBean] Frame 0
class gdp.beans.factory.support.RootBean extends gdp.beans.factory.support.AbstractBean
{
var setBeanClassName, propertiesValues, constuctorArgs, sBeanClassName, bLazyInit, bSingleton, sBeanName;
function RootBean (sBeanName, sClassName, constArgs, propValues) {
super(sBeanName, constArgs, propValues);
setBeanClassName(sClassName);
}
function description() {
var _local2 = {beanName:sBeanName, singleton:bSingleton, lazyinit:bLazyInit, beanClassName:sBeanClassName, constuctorArguments:constuctorArgs.toString(), propertiesValues:propertiesValues.toString()};
return("Bean Root" + gdp.utils.ObjectUtil.classToString(_local2));
}
}
Symbol 58 MovieClip [__Packages.gdp.beans.factory.support.ChildBean] Frame 0
class gdp.beans.factory.support.ChildBean extends gdp.beans.factory.support.AbstractBean
{
var sParentName, propertiesValues, constuctorArgs, bSingleton, sBeanName;
function ChildBean (sBeanName, sParentName, constArgs, propValues) {
super(sBeanName, constArgs, propValues);
this.sParentName = sParentName;
}
function getParentName() {
return(sParentName);
}
function description() {
var _local2 = {beanName:sBeanName, parentName:sParentName, singleton:bSingleton, constuctorArguments:constuctorArgs.toString(), propertiesValues:propertiesValues.toString()};
return("Bean Child" + gdp.utils.ObjectUtil.classToString(_local2));
}
}
Symbol 59 MovieClip [__Packages.gdp.config.IllegalNameOfObjectException] Frame 0
class gdp.config.IllegalNameOfObjectException extends gdp.evn.except.FatalException
{
function IllegalNameOfObjectException (message, thrower, aArgs) {
super(message, thrower, aArgs);
}
}
Symbol 60 MovieClip [__Packages.gdp.utils.Executor] Frame 0
class gdp.utils.Executor extends gdp.core.base.BaseClass
{
static var currentExecutor;
var aTasks, parentExecutor;
function Executor () {
super();
nCount++;
aTasks = new Array();
}
function description() {
return(("[CExecutor " + nCount) + "]");
}
function process() {
if (getTimer() > (nStDelay + nDelayLength)) {
return(endTask());
}
}
function addTask(fTask, aArgs, bWaitCallback) {
var _local2 = {func:fTask, args:aArgs, bWaitCallback:bWaitCallback};
if (bInverse) {
aTasks.unshift(_local2);
} else {
aTasks.push(_local2);
}
}
function addDelay(nMs) {
trace(("gdp.utils.Executor.addDelay(" + [arguments]) + ")");
addTask(gdp.utils.Delegate.create(this, wait), [nMs], true);
}
function wait(nMs) {
nStDelay = getTimer();
nDelayLength = nMs;
gdp.core.base.Process.start(gdp.utils.Delegate.create(this, process), [], gdp.core.base.Process.keepId());
}
function start() {
if (aTasks.length == 0) {
return(endExecutor());
}
if (parentExecutor == undefined) {
parentExecutor = currentExecutor;
}
currentExecutor = this;
if (bSyn) {
var _local2 = 0;
while (_local2 < aTasks.length) {
var _local3 = aTasks.splice(_local2--, 1)[0];
var _local4 = _local3.func.apply(null, _local3.args);
nTasksCount++;
if (!_local3.bWaitCallback) {
taskCallback();
}
_local2++;
}
} else {
var _local3 = aTasks.splice(0, 1)[0];
var _local4 = _local3.func.apply(null, _local3.args);
if (!_local3.bWaitCallback) {
taskCallback();
}
}
}
function breaking() {
aTasks = new Array();
nTasksCount = 0;
onBreak();
}
function taskCallback() {
trace(("gdp.utils.Executor.taskCallback(" + [nTasksCount]) + ")");
if (nTasksCount < 0) {
return(undefined);
}
if (bSyn) {
nTasksCount--;
if (nTasksCount == 0) {
return(endExecutor());
}
} else {
if (aTasks.length == 0) {
return(endExecutor());
}
start();
}
}
function endExecutor() {
currentExecutor = parentExecutor;
return(onComplete());
}
static function endTask() {
currentExecutor.taskCallback();
return(0);
}
static function breakExecutor() {
currentExecutor.breaking();
}
static var nCount = 0;
var nTasksCount = 0;
var nStDelay = -1;
var nDelayLength = 0;
var bInverse = false;
var bSyn = false;
var onComplete = null;
var onBreak = null;
}
Symbol 61 MovieClip [__Packages.gdp.core.base.Process] Frame 0
class gdp.core.base.Process
{
static var PROCESSES, oListener, EventMgr;
function Process () {
}
static function init() {
PROCESSES = new Array();
oListener = new Object();
EventMgr = new gdp.events.EventManager(oListener);
bInit = true;
}
static function main() {
if (!bInit) {
init();
}
if (PROCESSES.length <= 0) {
return(0);
}
var _local1 = 0;
while (_local1 < PROCESSES.length) {
var _local2 = PROCESSES[_local1][0].apply(null, PROCESSES[_local1][1]);
if ((_local2 == KILL) || (typeof(PROCESSES[_local1][0]) != "function")) {
var _local3 = PROCESSES[_local1][2];
PROCESSES.splice(_local1--, 1);
EventMgr.dispatch("onProcessKill", _local3);
} else if (_local2 == HOLD) {
return(undefined);
}
_local1++;
}
}
static function start(ps, args, id, priority) {
if (!bInit) {
init();
}
id = id || (lastId++);
if (priority == undefined) {
PROCESSES.push([ps, args, id]);
} else {
PROCESSES.splice(priority, 0, [ps, args, id]);
}
EventMgr.dispatch("onProcessStart", args, id, priority);
return(id);
}
static function kill(ps, id) {
if (!bInit) {
init();
}
id = ((id == undefined) ? -1 : (id));
var _local1 = 0;
while (_local1 < PROCESSES.length) {
if (((PROCESSES[_local1][0] == ps) || ((PROCESSES[_local1][0].func == ps.func) && (ps.func != undefined))) && (PROCESSES[_local1][2] == id)) {
PROCESSES.splice(_local1--, 1);
}
_local1++;
}
EventMgr.dispatch("onProcessKill", id);
return(0);
}
static function killAll() {
PROCESSES = new Array();
EventMgr.dispatch("onAllProcessKill");
}
static function is(ps, id) {
id = ((id == undefined) ? -1 : (id));
var _local1 = 0;
while (_local1 < PROCESSES.length) {
if (((PROCESSES[_local1][0] == ps) || ((PROCESSES[_local1][0].func == ps.func) && (ps.func != undefined))) && (PROCESSES[_local1][2] == id)) {
return(true);
}
_local1++;
}
return(false);
}
static function toString() {
return("[CProcess] length:" + PROCESSES.length);
}
static function keepId() {
return(lastId++);
}
static function addListener() {
if (!bInit) {
init();
}
oListener.addListener.apply(oListener, arguments);
}
static function removeListener() {
if (!bInit) {
init();
}
oListener.addListener.apply(oListener, arguments);
}
static var lastId = 1;
static var KILL = 0;
static var HOLD = -1;
static var bInit = false;
}
Symbol 62 MovieClip [__Packages.gdp.events.EventManager] Frame 0
class gdp.events.EventManager extends AsBroadcaster
{
static var oLastClass;
var oClass;
function EventManager (oObj) {
super();
oClass = oObj;
AsBroadcaster.initialize(oClass);
}
function dispatch(sEventName) {
oLastClass = oClass;
oClass.broadcastMessage.apply(oClass, arguments);
}
function getListeners() {
return(oClass._listeners);
}
static function getTarget() {
return(oLastClass);
}
}
Symbol 63 MovieClip [__Packages.gdp.core.ExternalVars] Frame 0
class gdp.core.ExternalVars
{
function ExternalVars () {
}
static function set(sName, value) {
oVars[sName] = value;
}
static function get(sName) {
return(oVars[sName]);
}
static function getAll() {
return(oVars);
}
static function clear() {
oVars = new Object();
}
static var oVars = new Object();
}
Symbol 64 MovieClip [__Packages.gdp.preloader.AnimPreloader] Frame 0
class gdp.preloader.AnimPreloader extends gdp.preloader.AbstractPreloader
{
var tfLoaded, mcBar;
function AnimPreloader () {
super();
}
static function create(mcParent) {
return(mcParent.attachMovie("AnimPreloader", "preLoader" + (nCount++), mcParent.getNextHighestDepth()));
}
function onLoadProgress(mcTarget, nLoadedBytes, nTotalBytes) {
var _local2 = int((nLoadedBytes / nTotalBytes) * 100);
tfLoaded.selectable = false;
tfLoaded.text = _local2 + "%";
mcBar.gotoAndStop(_local2);
}
function onLoadComplete(mcTarget) {
mcBar._visible = false;
}
static var nCount = 0;
var sConfigURL = "./xml/config_preloader.xml";
}