Frame 1
this.mcProgress.onMouseDown = function () {
Helper.MoreGames();
};
_root.onEnterFrame = function () {
var swf_loaded = _root.getBytesLoaded();
var swf_total = _root.getBytesTotal();
percs = Math.floor((swf_loaded * 100) / swf_total);
this.mcProgress.gotoAndStop(percs);
this.mcProgress.txtPerc.text = percs + "%";
if (percs >= 100) {
delete this.mcProgress.onMouseDown;
delete _root.onEnterFrame;
gotoAndPlay ("MOCHIPRE");
}
};
stop();
Frame 2
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("ef8ead50", this, 10301, true);
if (Helper.SHOWMOCHIPRELOADER == true) {
com.base.ads.MochiAd.showPreGameAd({id:Helper.MOCHIID, res:Helper.GAME_RESOLUTION});
}
Frame 3
if (Game) {
var reload = true;
Game = null;
delete Game;
}
Frame 4
var Game;
if ((!Game) || (reload)) {
reload = false;
Game = new Main();
}
b_realore.onRelease = function () {
Helper.MoreGames();
};
stop();
Frame 5
Game.gotoMap();
stop();
Symbol 6 MovieClip [PersCreator] Frame 1
#initclip 10
Object.registerClass("PersCreator", net.toflash.PersDebugger);
#endinitclip
var vv = "stand";
upd = function () {
_parent.scope.setAnimByName(vv);
};
Symbol 10 MovieClip [floor] Frame 1
Symbol 22 MovieClip [Defaults] Frame 1
#initclip 1
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 23 MovieClip [UIObjectExtensions] Frame 1
#initclip 2
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 24 MovieClip [UIObject] Frame 1
#initclip 3
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 27 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 28 MovieClip Frame 1
#initclip 4
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 29 MovieClip [FocusRect] Frame 1
#initclip 5
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 30 MovieClip [FocusManager] Frame 1
#initclip 6
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 31 MovieClip [UIComponentExtensions] Frame 1
#initclip 7
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 32 MovieClip [UIComponent] Frame 1
#initclip 8
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 35 MovieClip [ProgBarCapThemeColor] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 43 MovieClip [ProgBarMiddleThemeColor] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 48 MovieClip [ProgBarIndThemeColor] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 49 MovieClip [ProgBarIndMiddleThemeColor] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 59 MovieClip [ProgressBar] Frame 1
#initclip 9
Object.registerClass("ProgressBar", mx.controls.ProgressBar);
#endinitclip
stop();
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 101
stop();
_parent.gotoAndPlay(3);
Symbol 105 MovieClip [GetFullMenu] Frame 1
#initclip 124
Object.registerClass("GetFullMenu", com.base.ads.GetFullMenu);
#endinitclip
Symbol 110 MovieClip [game_fog] Frame 1
this.onRollOver = function () {
};
this.useHandCursor = false;
Symbol 234 MovieClip [GameZone] Frame 1
#initclip 118
Object.registerClass("GameZone", com.game.GameZone);
#endinitclip
Symbol 235 MovieClip [Map] Frame 1
#initclip 119
Object.registerClass("Map", com.game.Map);
#endinitclip
Symbol 236 MovieClip [Place] Frame 1
#initclip 120
Object.registerClass("Place", com.game.places.Place);
#endinitclip
Symbol 237 MovieClip [SimpleAnim] Frame 1
#initclip 121
Object.registerClass("SimpleAnim", com.base.anim.SimpleAnim);
#endinitclip
Symbol 244 MovieClip [cloudSegment] Frame 1
stop();
Symbol 245 MovieClip [cloude] Frame 1
#initclip 122
Object.registerClass("cloude", com.game.CCloud);
#endinitclip
stop();
Symbol 270 MovieClip [brifLoadBar] Frame 101
stop();
Symbol 707 MovieClip [_ads] Frame 1
#initclip 123
Object.registerClass("_ads", com.base.ads.ADS);
#endinitclip
Symbol 750 MovieClip [__Packages.Helper] Frame 0
class Helper
{
function Helper () {
}
static function getRoot() {
var retStr = _root._url;
if (retStr.indexOf("file:") != -1) {
retStr = "localFile";
}
return(retStr);
}
static function inArray(aVal, array) {
for (var key in array) {
if (array[key] == aVal) {
return(true);
}
}
return(false);
}
static function GetIt() {
getURL (DNLDLINK, "_blank");
}
static function MoreGames() {
getURL (ADSLINK, "_blank");
}
static var DEBUG_XML_MODE = false;
static var USEMOCHIBOT = true;
static var MOCHIARRAY = new Array(1, 4, 7, 10);
static var REALOREARRAY = new Array(3, 6, 9);
static var GETFULLARRAY = new Array(2, 5, 8, 11, 12, 13);
static var INGAMECLICK = true;
static var MOCHISCORES = true;
static var SHOWMOCHIPRELOADER = true;
static var SHOWMOCHIADS = true;
static var MOCHIID = "a62d293584fbca19";
static var GAME_RESOLUTION = "640x480";
static var GAMEID = "FarmManiaOnline";
static var EXTURL = false;
static var EXTLANG = false;
static var BTN_MOREGAMES = true;
static var BTN_GETIT = true;
static var LANGUAGE = "EN";
static var GOTOPATH = "http://realore.com";
static var DOWNLOADPATH = "http://www.realore.com/games/farmmania/";
static var ADSLINK = (((("http://realore.com/bitrix/redirect.php?event1=FLA_ADS&event2=" + getRoot()) + "&event3=") + GAMEID) + "&goto=") + GOTOPATH;
static var DNLDLINK = (((("http://realore.com/bitrix/redirect.php?event1=FLA_GET&event2=" + getRoot()) + "&event3=") + GAMEID) + "&goto=") + DOWNLOADPATH;
}
Symbol 751 MovieClip [__Packages.net.toflash.PersDebugger] Frame 0
class net.toflash.PersDebugger extends MovieClip
{
var persDepth, timeDrink, timeEat, onEnterFrame, _parent;
function PersDebugger () {
super();
persDepth.text = "!20";
timeDrink.setStyle("color", 10027008);
timeEat.setStyle("color", 10027008);
onEnterFrame = mx.utils.Delegate.create(this, updDepth);
}
function updDrinkTime(e) {
var timer = e.target;
timeDrink.setProgress(timer.currTime, timer.time);
}
function updEatTime(e) {
var timer = e.target;
timeEat.setProgress(timer.currTime, timer.time);
}
function updDepth() {
persDepth.text = (("y: " + Math.round(_parent._y)) + "\t d: ") + String(_parent.getDepth());
}
function _destroy() {
}
}
Symbol 18 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var __methodTable = methodTable;
methodTable = new Array();
if (__methodTable.length > 0) {
var m;
while (((m = __methodTable.shift())) != undefined) {
m.obj[m.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var i;
for (i in tfList) {
tfList[i].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var oldX = _x;
var oldY = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:oldX, oldY:oldY});
}
}
function setSize(w, h, noEvent) {
var oldWidth = __width;
var oldHeight = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:oldWidth, oldHeight:oldHeight});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var o = this[name];
o._color = textColorList;
o._visible = false;
o.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = o;
o.invalidateStyle();
invalidate();
o.styleName = this;
return(o);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var bSubClass = (className.symbolName == undefined);
if (bSubClass) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var o = mx.core.UIObject(createObject(className.symbolOwner.symbolName, id, depth, initobj));
if (bSubClass) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(o);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var o = this[id];
if (o.getDepth() < 0) {
var dt = buildDepthTable();
var i = findNextAvailableDepth(0, dt, "up");
var temp = i;
o.swapDepths(temp);
}
o.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var id = getSkinIDName(tag);
createEmptyObject(id, tag);
return(this[id]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var bFound = false;
var i;
for (i in clipParameters) {
if (hasOwnProperty(i)) {
bFound = true;
this["def_" + i] = this[i];
delete this[i];
}
}
if (bFound) {
for (i in clipParameters) {
var v = this["def_" + i];
if (v != undefined) {
this[i] = v;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var o = this;
var c = className;
while (c != undefined) {
if (ignoreClassStyleDeclaration[c] == undefined) {
if (_global.styles[c] != undefined) {
return(_global.styles[c]);
}
}
o = o.__proto__;
c = o.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var o = stylecache.tf;
if (o != undefined) {
var j;
for (j in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[j])) {
if (tf[j] == undefined) {
tf[j] = o[j];
}
}
}
return(false);
}
var bUndefined = false;
var j;
for (j in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[j])) {
if (tf[j] == undefined) {
var v = _tf[j];
if (v != undefined) {
tf[j] = v;
} else if ((j == "font") && (fontFamily != undefined)) {
tf[j] = fontFamily;
} else if ((j == "size") && (fontSize != undefined)) {
tf[j] = fontSize;
} else if ((j == "color") && (color != undefined)) {
tf[j] = color;
} else if ((j == "leftMargin") && (marginLeft != undefined)) {
tf[j] = marginLeft;
} else if ((j == "rightMargin") && (marginRight != undefined)) {
tf[j] = marginRight;
} else if ((j == "italic") && (fontStyle != undefined)) {
tf[j] = fontStyle == j;
} else if ((j == "bold") && (fontWeight != undefined)) {
tf[j] = fontWeight == j;
} else if ((j == "align") && (textAlign != undefined)) {
tf[j] = textAlign;
} else if ((j == "indent") && (textIndent != undefined)) {
tf[j] = textIndent;
} else if ((j == "underline") && (textDecoration != undefined)) {
tf[j] = textDecoration == j;
} else if ((j == "embedFonts") && (embedFonts != undefined)) {
tf[j] = embedFonts;
} else {
bUndefined = true;
}
}
}
}
if (bUndefined) {
var name = styleName;
if (name != undefined) {
if (typeof(name) != "string") {
bUndefined = name.__getTextFormat(tf, true, this);
} else if (_global.styles[name] != undefined) {
bUndefined = _global.styles[name].__getTextFormat(tf, true, this);
}
}
}
if (bUndefined) {
var ss = getClassStyleDeclaration();
if (ss != undefined) {
bUndefined = ss.__getTextFormat(tf, true, this);
}
}
if (bUndefined) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
bUndefined = _parent.__getTextFormat(tf, false);
}
}
}
if (bUndefined) {
bUndefined = _global.style.__getTextFormat(tf, true, this);
}
return(bUndefined);
}
function _getTextFormat(Void) {
var tf = stylecache.tf;
if (tf != undefined) {
return(tf);
}
tf = new TextFormat();
__getTextFormat(tf, true);
stylecache.tf = tf;
if (enabled == false) {
var c = getStyle("disabledColor");
tf.color = c;
}
return(tf);
}
function getStyleName(Void) {
var name = styleName;
if (name != undefined) {
if (typeof(name) != "string") {
return(name.getStyleName());
}
return(name);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var v = undefined;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var name = styleName;
if (name != undefined) {
if (typeof(name) != "string") {
v = name.getStyle(styleProp);
} else {
var ss = _global.styles[name];
v = ss.getStyle(styleProp);
}
}
if (v != undefined) {
return(v);
}
var ss = getClassStyleDeclaration();
if (ss != undefined) {
v = ss[styleProp];
}
if (v != undefined) {
return(v);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var b = stylecache;
if (b != undefined) {
if (b[styleProp] != undefined) {
return(b[styleProp]);
}
}
if (_parent != undefined) {
v = _parent.getStyle(styleProp);
} else {
v = _global.style[styleProp];
}
if (b != undefined) {
b[styleProp] = v;
}
return(v);
}
}
if (v == undefined) {
v = _global.style[styleProp];
}
return(v);
}
static function mergeClipParameters(o, p) {
for (var i in p) {
o[i] = p[i];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.127";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 60 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 61 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 63 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var bUndefined = false;
if (_tf != undefined) {
var j;
for (j in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[j])) {
if (tf[j] == undefined) {
var v = _tf[j];
if (v != undefined) {
tf[j] = v;
} else {
bUndefined = true;
}
}
}
}
} else {
bUndefined = true;
}
return(bUndefined);
}
function getStyle(styleProp) {
var val = this[styleProp];
var c = mx.styles.StyleManager.getColorName(val);
return(((c == undefined) ? (val) : (c)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 62 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 19 MovieClip [__Packages.mx.controls.ProgressBar] Frame 0
class mx.controls.ProgressBar extends mx.core.UIObject
{
var _xscale, _yscale, tabEnabled, boundingBox_mc, progTrackLeft_mc, setSkin, progTrackMiddle_mc, progTrackRight_mc, progBarLeft_mc, progBarMiddle_mc, progBarRight_mc, progIndBar_mc, mask_mc, createObject, labelPath, createLabel, setSize, __width, __height, invalidate, __source, __stringSource, si, dispatchEvent;
function ProgressBar () {
super();
}
function init(Void) {
super.init();
_xscale = (_yscale = 100);
tabEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function createChildren(Void) {
if (progTrackLeft_mc == undefined) {
setSkin(skinIDProgTrackLeft, progTrackLeftName);
}
if (progTrackMiddle_mc == undefined) {
setSkin(skinIDProgTrackMiddle, progTrackMiddleName);
}
if (progTrackRight_mc == undefined) {
setSkin(skinIDProgTrackRight, progTrackRightName);
}
if (progBarLeft_mc == undefined) {
setSkin(skinIDProgBarLeft, progBarLeftName);
}
if (progBarMiddle_mc == undefined) {
setSkin(skinIDProgBarMiddle, progBarMiddleName);
}
if (progBarRight_mc == undefined) {
setSkin(skinIDProgBarRight, progBarRightName);
}
if (progIndBar_mc == undefined) {
setSkin(skinIDProgIndBar, progIndBarName);
progIndBar_mc._visible = false;
}
if (mask_mc == undefined) {
mask_mc = createObject("BoundingBox", "mask_mc", skinIDMask);
mask_mc._visible = false;
progIndBar_mc.setMask(mask_mc);
}
if (labelPath == undefined) {
labelPath = createLabel("labelPath", skinIDLabel);
labelPath.tabEnabled = false;
labelPath.selectable = false;
labelPath.styleName = this;
}
setSize(__width, __height);
}
function size(Void) {
invalidate();
}
function draw(Void) {
if ((__source == undefined) && (__stringSource != undefined)) {
setSource(__stringSource);
__stringSource = undefined;
}
var pb__width = __width;
var pb__height = __height;
var widthLeftGreater = ((progBarLeft_mc._width > progTrackLeft_mc._width) ? (progBarLeft_mc._width) : (progTrackLeft_mc._width));
var heightLeftGreater = ((progBarLeft_mc._height > progTrackLeft_mc._height) ? (progBarLeft_mc._height) : (progTrackLeft_mc._height));
var widthRightGreater = ((progBarRight_mc._width > progTrackRight_mc._width) ? (progBarRight_mc._width) : (progTrackRight_mc._width));
var newWidth = pb__width;
var vOffset = 0;
var hOffset = 0;
if (__labelPlacement == "top") {
vOffset = pb__height - heightLeftGreater;
}
if ((__label != undefined) && (__label != "")) {
labelPath._visible = false;
var xDisplacement = 1;
var yDisplacement = 1;
var xPad = 5;
var yPad = 4;
var current = (__value - __minimum);
if (current < 0) {
current = 0;
}
var total = (__maximum - __minimum);
if (total < 0) {
total = 0;
}
if ((__labelPlacement == "left") || (__labelPlacement == "right")) {
var widthCalcText = __label;
if (!__indeterminate) {
widthCalcText = replace(widthCalcText, "%1", String(Math.floor(total / __conversion)));
widthCalcText = replace(widthCalcText, "%2", String(Math.floor(total / __conversion)));
widthCalcText = replace(widthCalcText, "%3", String(100));
widthCalcText = replace(widthCalcText, "%%", "%");
} else {
widthCalcText = replace(widthCalcText, "%1", String(Math.floor(current / __conversion)));
widthCalcText = replace(widthCalcText, "%2", "??");
widthCalcText = replace(widthCalcText, "%3", "");
widthCalcText = replace(widthCalcText, "%%", "");
}
labelPath.text = widthCalcText;
newWidth = pb__width - ((labelPath.textWidth + xPad) + xDisplacement);
if (newWidth < (widthLeftGreater + widthRightGreater)) {
newWidth = 0;
}
if (__labelPlacement == "left") {
hOffset = pb__width - newWidth;
}
}
var labelText = __label;
if (!__indeterminate) {
labelText = replace(labelText, "%1", String(Math.floor(current / __conversion)));
labelText = replace(labelText, "%2", String(Math.floor(total / __conversion)));
labelText = replace(labelText, "%3", String(Math.floor(percentComplete)));
labelText = replace(labelText, "%%", "%");
} else {
labelText = replace(labelText, "%1", String(Math.floor(current / __conversion)));
labelText = replace(labelText, "%2", "??");
labelText = replace(labelText, "%3", "");
labelText = replace(labelText, "%%", "");
}
labelPath.text = labelText;
var avail = 0;
if ((__labelPlacement == "left") || (__labelPlacement == "right")) {
avail = (pb__width - newWidth) - xDisplacement;
} else {
avail = pb__width - xDisplacement;
}
if (avail < (labelPath.textWidth + xPad)) {
labelPath._width = avail;
} else {
labelPath._width = labelPath.textWidth + xPad;
}
if (((__labelPlacement == "left") || (__labelPlacement == "right")) || (__labelPlacement == "center")) {
avail = pb__height;
} else {
avail = (pb__height - yDisplacement) - heightLeftGreater;
}
if (avail < (labelPath.textHeight + yPad)) {
labelPath._height = avail;
} else {
labelPath._height = labelPath.textHeight + yPad;
}
if (__labelPlacement == "left") {
labelPath._x = xDisplacement;
} else if (__labelPlacement == "right") {
labelPath._x = newWidth + xDisplacement;
} else {
labelPath._x = xDisplacement;
}
if (((__labelPlacement == "center") || (__labelPlacement == "left")) || (__labelPlacement == "right")) {
labelPath._y = (heightLeftGreater / 2) - (labelPath.height / 2);
} else if (__labelPlacement == "top") {
labelPath._y = (vOffset - yDisplacement) - labelPath.height;
} else {
labelPath._y = heightLeftGreater + yDisplacement;
}
labelPath._visible = true;
} else {
labelPath.text = "";
labelPath._visible = false;
}
if (newWidth >= (widthLeftGreater + widthRightGreater)) {
var bounds = progTrackLeft_mc.getBounds(progTrackLeft_mc);
var progTrackLeftRegPointX = (-bounds.xMin);
var progTrackLeftRegPointY = (-bounds.yMin);
progTrackLeft_mc.move(((hOffset + widthLeftGreater) - progTrackLeft_mc._width) + progTrackLeftRegPointX, (vOffset + ((heightLeftGreater - progTrackLeft_mc._height) / 2)) + progTrackLeftRegPointY);
bounds = progTrackMiddle_mc.getBounds(progTrackMiddle_mc);
var progTrackMiddleRegPointX = (-bounds.xMin);
var progTrackMiddleRegPointY = (-bounds.yMin);
progTrackMiddle_mc.setSize((newWidth - widthLeftGreater) - widthRightGreater, progTrackMiddle_mc._height);
progTrackMiddle_mc.move((hOffset + widthLeftGreater) + progTrackMiddleRegPointX, (vOffset + ((heightLeftGreater - progTrackLeft_mc._height) / 2)) + progTrackMiddleRegPointY);
bounds = progTrackRight_mc.getBounds(progTrackRight_mc);
var progTrackRightRegPointX = (-bounds.xMin);
var progTrackRightRegPointY = (-bounds.yMin);
progTrackRight_mc.move(((hOffset + widthLeftGreater) + progTrackMiddle_mc._width) + progTrackRightRegPointX, (vOffset + ((heightLeftGreater - progTrackRight_mc._height) / 2)) + progTrackRightRegPointY);
var remWidth = ((newWidth - widthLeftGreater) - widthRightGreater);
var midSize = ((remWidth * percentComplete) / 100);
var dirOffset = 0;
if (__indeterminate == true) {
midSize = remWidth;
mask_mc._width = midSize;
mask_mc._height = progIndBar_mc._height;
mask_mc._x = hOffset + widthLeftGreater;
mask_mc._y = vOffset + ((heightLeftGreater - progIndBar_mc._height) / 2);
progIndBar_mc._width = (newWidth * 200) / 150;
var indLoc = progIndBar_mc._x;
bounds = progIndBar_mc.getBounds(progIndBar_mc);
var progIndBarRegPointX = (-bounds.xMin);
var progIndBarRegPointY = (-bounds.yMin);
var leftEdge = ((hOffset + widthLeftGreater) + progIndBarRegPointX);
var leftMost = ((progIndBar_mc._width * 50) / 200);
var rightMost = ((progIndBar_mc._width * 20) / 200);
var change = 3;
var startSide = leftMost;
if (__direction == "left") {
leftMost = (progIndBar_mc._width * 30) / 200;
rightMost = 0;
change = -3;
startSide = rightMost;
}
if ((indLoc <= (leftEdge - leftMost)) || (indLoc >= (leftEdge - rightMost))) {
progIndBar_mc._x = (leftEdge - startSide) + change;
} else {
progIndBar_mc._x = progIndBar_mc._x + change;
}
progIndBar_mc._y = (vOffset + ((heightLeftGreater - progIndBar_mc._height) / 2)) + progIndBarRegPointY;
progIndBar_mc._visible = true;
invalidate();
} else {
progIndBar_mc._visible = false;
if (__direction == "left") {
dirOffset = remWidth - midSize;
}
}
bounds = progBarMiddle_mc.getBounds(progBarMiddle_mc);
var progBarMiddleRegPointX = (-bounds.xMin);
var progBarMiddleRegPointY = (-bounds.yMin);
progBarMiddle_mc.setSize(midSize, progBarMiddle_mc._height);
progBarMiddle_mc.move(((dirOffset + hOffset) + widthLeftGreater) + progBarMiddleRegPointX, (vOffset + ((heightLeftGreater - progBarLeft_mc._height) / 2)) + progBarMiddleRegPointY);
bounds = progBarLeft_mc.getBounds(progBarLeft_mc);
var progBarLeftRegPointX = (-bounds.xMin);
var progBarLeftRegPointY = (-bounds.yMin);
progBarLeft_mc.move((((dirOffset + hOffset) + widthLeftGreater) - progBarLeft_mc._width) + progBarLeftRegPointX, (vOffset + ((heightLeftGreater - progBarLeft_mc._height) / 2)) + progBarLeftRegPointY);
bounds = progBarRight_mc.getBounds(progBarRight_mc);
var progBarRightRegPointX = (-bounds.xMin);
var progBarRightRegPointY = (-bounds.yMin);
progBarRight_mc.move((((dirOffset + hOffset) + widthLeftGreater) + progBarMiddle_mc._width) + progBarRightRegPointX, (vOffset + ((heightLeftGreater - progBarRight_mc._height) / 2)) + progBarRightRegPointY);
progTrackLeft_mc._visible = true;
progTrackMiddle_mc._visible = true;
progTrackRight_mc._visible = true;
progBarLeft_mc._visible = true;
progBarMiddle_mc._visible = true;
progBarRight_mc._visible = true;
} else {
progTrackLeft_mc._visible = false;
progTrackMiddle_mc._visible = false;
progTrackRight_mc._visible = false;
progBarLeft_mc._visible = false;
progBarMiddle_mc._visible = false;
progBarRight_mc._visible = false;
}
}
function replace(str, from, to) {
var arrStr = str.split(from);
var repStr = arrStr.join(to);
return(repStr);
}
function getMode(Void) {
return(__mode);
}
function setMode(val) {
if ((val == "polled") || (val == "manual")) {
__mode = val;
} else {
delete __mode;
}
invalidate();
}
function getDirection(Void) {
return(__direction);
}
function setDirection(val) {
if (val == "left") {
__direction = val;
} else {
delete __direction;
}
invalidate();
}
function getLabelPlacement(Void) {
return(__labelPlacement);
}
function setLabelPlacement(val) {
if ((((val == "top") || (val == "center")) || (val == "left")) || (val == "right")) {
__labelPlacement = val;
} else {
delete __labelPlacement;
}
invalidate();
}
function getIndeterminate(Void) {
return(__indeterminate);
}
function setIndeterminate(val) {
if (val == true) {
__indeterminate = true;
} else {
delete __indeterminate;
}
invalidate();
}
function getLabel(Void) {
return(__label);
}
function setLabel(val) {
__label = val;
invalidate();
}
function getConversion(Void) {
return(__conversion);
}
function setConversion(val) {
if ((!_global.isNaN(val)) && (Number(val) > 0)) {
__conversion = Number(val);
invalidate();
}
}
function getSource(Void) {
return(__source);
}
function setSource(val) {
if (typeof(val) == "string") {
__stringSource = val;
val = eval (val);
}
if (((val != null) && (val != undefined)) && (val != "")) {
__source = val;
if (__mode == "event") {
if (__source.addEventListener) {
__source.addEventListener("progress", this);
__source.addEventListener("complete", this);
} else {
__source = undefined;
}
}
if (__mode == "polled") {
si = setInterval(this, "update", __interval);
}
} else if (__source != null) {
delete __source;
clearInterval(si);
delete si;
}
}
function update(Void) {
var comp = __source;
var bytesLoaded = comp.getBytesLoaded();
var bytesTotal = comp.getBytesTotal();
_setProgress(bytesLoaded, bytesTotal);
if ((percentComplete >= 100) && (__value > 0)) {
clearInterval(si);
}
}
function progress(pEvent) {
var comp = pEvent.target;
var bytesLoaded = comp.bytesLoaded;
var bytesTotal = comp.bytesTotal;
_setProgress(bytesLoaded, bytesTotal);
}
function complete(pEvent) {
}
function _setProgress(completed, total) {
if ((!_global.isNaN(completed)) && (!_global.isNaN(total))) {
__value = Number(completed);
__maximum = Number(total);
dispatchEvent({type:"progress", current:completed, total:total});
if ((__value == __maximum) && (__value > 0)) {
dispatchEvent({type:"complete", current:completed, total:total});
}
invalidate();
}
}
function setProgress(completed, total) {
if (__mode == "manual") {
_setProgress(completed, total);
}
}
function getPercentComplete(Void) {
if ((__value < __minimum) || (__maximum < __minimum)) {
return(0);
}
var perc = ((100 * (__value - __minimum)) / (__maximum - __minimum));
if (_global.isNaN(perc) || (perc < 0)) {
return(0);
}
if (perc > 100) {
return(100);
}
return(perc);
}
function getMaximum(Void) {
return(__maximum);
}
function setMaximum(val) {
if ((!_global.isNaN(val)) && (__mode == "manual")) {
__maximum = Number(val);
invalidate();
}
}
function getMinimum(Void) {
return(__minimum);
}
function setMinimum(val) {
if ((!_global.isNaN(val)) && (__mode == "manual")) {
__minimum = Number(val);
invalidate();
}
}
function getVal(Void) {
return(__value);
}
function get mode() {
return(getMode());
}
function set mode(x) {
setMode(x);
//return(mode);
}
function get source() {
return(getSource());
}
function set source(x) {
setSource(x);
//return(source);
}
function get direction() {
return(getDirection());
}
function set direction(x) {
setDirection(x);
//return(direction);
}
function get label() {
return(getLabel());
}
function set label(x) {
setLabel(x);
//return(label);
}
function get labelPlacement() {
return(getLabelPlacement());
}
function set labelPlacement(x) {
setLabelPlacement(x);
//return(labelPlacement);
}
function get indeterminate() {
return(getIndeterminate());
}
function set indeterminate(x) {
setIndeterminate(x);
//return(indeterminate);
}
function get conversion() {
return(getConversion());
}
function set conversion(x) {
setConversion(x);
//return(conversion);
}
function get percentComplete() {
return(getPercentComplete());
}
function get maximum() {
return(getMaximum());
}
function set maximum(x) {
setMaximum(x);
//return(maximum);
}
function get minimum() {
return(getMinimum());
}
function set minimum(x) {
setMinimum(x);
//return(minimum);
}
function get value() {
return(getVal());
}
static var symbolName = "ProgressBar";
static var symbolOwner = Object(mx.controls.ProgressBar);
var className = "ProgressBar";
static var version = "2.0.2.127";
var __mode = "event";
var __direction = "right";
var __labelPlacement = "bottom";
var __label = "LOADING %3%% ";
var __conversion = 1;
var __maximum = 0;
var __minimum = 0;
var __value = 0;
var __indeterminate = false;
var progTrackLeftName = "ProgTrackLeft";
var progTrackMiddleName = "ProgTrackMiddle";
var progTrackRightName = "ProgTrackRight";
var progBarLeftName = "ProgBarLeft";
var progBarMiddleName = "ProgBarMiddle";
var progBarRightName = "ProgBarRight";
var progIndBarName = "ProgIndBar";
var idNames = new Array("progTrackLeft_mc", "progTrackMiddle_mc", "progTrackRight_mc", "progBarLeft_mc", "progBarMiddle_mc", "progBarRight_mc", "progIndBar_mc");
var skinIDProgTrackLeft = 0;
var skinIDProgTrackMiddle = 1;
var skinIDProgTrackRight = 2;
var skinIDProgBarLeft = 3;
var skinIDProgBarMiddle = 4;
var skinIDProgBarRight = 5;
var skinIDProgIndBar = 6;
var skinIDMask = 100;
var skinIDLabel = 200;
var __interval = 30;
var __leave = 2;
var clipParameters = {mode:1, source:1, direction:1, label:1, labelPlacement:1, conversion:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.ProgressBar.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 752 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var f = function () {
var target = arguments.callee.target;
var func = arguments.callee.func;
return(func.apply(target, arguments));
};
f.target = obj;
f.func = func;
return(f);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 753 MovieClip [__Packages.com.game.Alarm] Frame 0
class com.game.Alarm
{
var type, scope, _timer_id, obj, interval, intID, pt, dispatchEvent, currTime;
function Alarm (scope, obj, time, type) {
mx.events.EventDispatcher.initialize(this);
this.time = time;
this.type = type;
pauseTime = 0;
this.scope = scope.createEmptyMovieClip("timer_" + TIMER_ID, scope.getNextHighestDepth());
_timer_id = TIMER_ID;
TIMER_ID++;
this.obj = obj;
alarmArr = new Array();
paused = false;
}
function addAlarmParam(time, callback) {
alarmArr.push([time, callback]);
}
function start() {
interval = getTimer();
scope.onEnterFrame = mx.utils.Delegate.create(this, update);
}
function resume() {
clearInterval(intID);
if (paused) {
paused = false;
pauseTime = pauseTime + (getTimer() - pt);
scope.onEnterFrame = mx.utils.Delegate.create(this, update);
}
update();
}
function reset() {
interval = getTimer();
pauseTime = 0;
pt = getTimer();
paused = true;
resume();
}
function pause() {
if (!paused) {
dispatchEvent({type:"action", event:"time"});
paused = true;
scope.onEnterFrame = mx.utils.Delegate.create(this, null);
pt = getTimer();
}
}
function _destroy() {
scope.onEnterFrame = mx.utils.Delegate.create(this, null);
clearInterval(intID);
delete alarmArr;
alarmArr = null;
scope.removeMovieClip();
delete this;
}
function update() {
currTime = (Math.round(((getTimer() - interval) - pauseTime) / 100) * 100) / 1000;
if (currTime >= time) {
currTime = time;
}
if (_timer_id < 2) {
}
dispatchEvent({type:"action", event:"time"});
if (type == "LOOP") {
if (currTime >= time) {
obj[alarmArr[0][1]].call(obj);
interval = getTimer();
}
} else {
var i = 0;
while (i < alarmArr.length) {
if (currTime >= Number(alarmArr[i][0])) {
obj[alarmArr[i][1]].call(obj);
}
i++;
}
if (currTime >= time) {
_destroy();
}
}
}
var time = 0;
var pauseTime = 0;
var alarmArr = new Array();
static var TIMER_ID = 0;
var paused = false;
}
Symbol 65 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var l = queue.length;
var i;
i = 0;
while (i < l) {
var o = queue[i];
if (o == handler) {
queue.splice(i, 1);
return(undefined);
}
i++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var queueName = ("__q_" + eventObj.type);
var queue = queueObj[queueName];
if (queue != undefined) {
var i;
for (i in queue) {
var o = queue[i];
var oType = typeof(o);
if ((oType == "object") || (oType == "movieclip")) {
if (o.handleEvent != undefined) {
o.handleEvent(eventObj);
}
if (o[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
o[eventObj.type](eventObj);
}
}
} else {
o.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var queueName = ("__q_" + event);
if (this[queueName] == undefined) {
this[queueName] = new Array();
}
_global.ASSetPropFlags(this, queueName, 1);
_removeEventListener(this[queueName], event, handler);
this[queueName].push(handler);
}
function removeEventListener(event, handler) {
var queueName = ("__q_" + event);
_removeEventListener(this[queueName], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 754 MovieClip [__Packages.com.base.ads.MochiAd] Frame 0
class com.base.ads.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.7");
}
static function showPreGameAd(options) {
var DEFAULTS = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = _getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = w * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
bar._visible = false;
delete options.no_progress_bar;
} else {
bar._x = 10;
bar._y = h - 20;
}
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(w - 20, 0);
backing.lineTo(w - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var inside = bar.createEmptyMovieClip("_inside", 2);
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo(w - 20, 0);
inside.lineTo(w - 20, 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(w - 20, 0);
outline.lineTo(w - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var p = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (p > 0) {
this._parent._alpha = p;
} else {
var _clip = this._parent._parent;
com.base.ads.MochiAd.unload(_clip);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _chk = this.mc._mochiad_wait;
_chk.server_control = true;
_chk.started = getTimer();
_chk.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
com.base.ads.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
return(s);
};
chk.onEnterFrame = function () {
var _clip = this._parent._parent;
var ad_clip = this._parent._mochiad_ctr;
var elapsed = (getTimer() - this.started);
var finished = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var clip_pcnt = ((100 * clip_loaded) / clip_total);
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = this._mochiad_bar._inside;
var pcnt = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
pcnt = Math.max(this.last_pcnt, pcnt);
this.last_pcnt = pcnt;
_inside._xscale = pcnt;
options.ad_progress(pcnt);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:clip_pcnt});
if (clip_pcnt == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((elapsed > chk.ad_timeout) && (clip_pcnt == 100)) {
options.ad_failed();
finished = true;
}
}
if (elapsed > chk.ad_msec) {
finished = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (finished)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
}, ad_skipped:function () {
}};
options = _parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = _getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
com.base.ads.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
return(s);
};
var sendHostProgress = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var ad_clip = this._parent._mochiad_ctr;
var elapsed = (getTimer() - this.started);
var finished = false;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
finished = true;
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
finished = true;
}
}
if (finished) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished.apply(options.sc);
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished.apply(options.sc);
};
var wh = _getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_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 () {
var p = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (p > 0) {
this._parent._alpha = p;
} else {
var _clip = this._parent._parent;
com.base.ads.MochiAd.unload(_clip);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _chk = this.mc._mochiad_wait;
_chk.server_control = true;
_chk.started = getTimer();
_chk.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
com.base.ads.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
return(s);
};
chk.onEnterFrame = function () {
var ad_clip = this._parent._mochiad_ctr;
var elapsed = (getTimer() - this.started);
var finished = false;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
finished = true;
}
}
if (elapsed > chk.ad_msec) {
finished = true;
}
if (finished) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function _allowDomains(server) {
var hostname = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(hostname);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(hostname);
}
}
return(hostname);
}
static function load(options) {
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, DEFAULTS);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var clip = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = options.depth;
delete options.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = _getRes(options);
options.res = (wh[0] + "x") + wh[1];
options.server = options.server + options.id;
delete options.id;
clip._mochiad_loaded = true;
var lv = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in options) {
lv[k] = options[k];
}
var server = lv.server;
delete lv.server;
var hostname = _allowDomains(server);
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
com.base.ads.MochiAd.unload(this._parent);
}
};
}
};
var lc = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.hostname = hostname;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lv.st = getTimer();
lv.loadMovie(server + ".swf", "POST");
return(mc);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var o = System.security;
if (o.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var b = options.clip.getBounds();
var w = 0;
var h = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
w = parseFloat(xy[0]);
h = parseFloat(xy[1]);
} else {
w = b.xMax - b.xMin;
h = b.yMax - b.yMin;
}
if ((w == 0) || (h == 0)) {
w = Stage.width;
h = Stage.height;
}
return([w, h]);
}
static function _parseOptions(options, defaults) {
var optcopy = {};
for (var k in defaults) {
optcopy[k] = defaults[k];
}
if (options) {
for (var k in options) {
optcopy[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var i = 0;
while (i < pairs.length) {
var kv = pairs[i].split("=");
optcopy[unescape(kv[0])] = unescape(kv[1]);
i++;
}
}
if (optcopy.id == "test") {
}
return(optcopy);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
return;
case "getValue" :
var val = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, val);
return;
case "runMethod" :
var ret = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, ret);
}
}
static function setValue(base, objectName, value) {
var nameArray = objectName.split(".");
var i;
i = 0;
while (i < (nameArray.length - 1)) {
if ((base[nameArray[i]] == undefined) || (base[nameArray[i]] == null)) {
return(undefined);
}
base = base[nameArray[i]];
i++;
}
base[nameArray[i]] = value;
}
static function getValue(base, objectName) {
var nameArray = objectName.split(".");
var i;
i = 0;
while (i < (nameArray.length - 1)) {
if ((base[nameArray[i]] == undefined) || (base[nameArray[i]] == null)) {
return(undefined);
}
base = base[nameArray[i]];
i++;
}
return(base[nameArray[i]]);
}
static function runMethod(base, methodName, argsArray) {
var nameArray = methodName.split(".");
var i;
i = 0;
while (i < (nameArray.length - 1)) {
if ((base[nameArray[i]] == undefined) || (base[nameArray[i]] == null)) {
return(undefined);
}
base = base[nameArray[i]];
i++;
}
if (typeof(base[nameArray[i]]) == "function") {
return(base[nameArray[i]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 755 MovieClip [__Packages.com.game.GameZone] Frame 0
class com.game.GameZone extends MovieClip
{
static var GAME_ZONE_CLASS, GAME_MC;
var focuseGroupVegSlot, cloudList, lvlComplete, gamePlayIsActivated, srcXML, link, activObjList, soldedObjArr, game_mc, createEmptyMovieClip, getNextHighestDepth, mc_waitAnimalsCloudes, cashSlot, vegTab_mc, levContr, vegBtn, gameGoal, gameStat, bike, summ, vegPlaceArr, gameOpt, mc_GoalBG, mcFog, eskListner, autoPauseIntervalID, menu, vegPlaces, vegTab, grandChild, sellArrow, newHare, hareIntID, grFather, newGosling, newGoose, newWhiteLamb, newWhiteSheep, winint, removeMovieClip;
function GameZone () {
super();
GAME_ZONE_CLASS = this;
focuseGroupVegSlot = new com.utils.FocusManager();
com.utils.Destructor.baseClass = this;
cloudList = new Array();
lvlComplete = false;
isPaused = false;
com.game.CCloud.cloudList = 0;
com.game.pers.animals.production.AnimalsProductionPlace.zonedPlaceArr = new Array();
com.game.pers.animals.Animals.createdObjCounter = 0;
gamePlayIsActivated = false;
}
function createByXML(xml, link) {
srcXML = xml;
this.link = link;
init();
}
function init() {
var i;
var itemsMax = srcXML.firstChild.childNodes.length;
var node;
var objCounter = new Array();
activObjList = new Array();
soldedObjArr = new Array();
createGoal();
game_mc = createEmptyMovieClip("game_mc", srcXML.firstChild.attributes.layer || (getNextHighestDepth()));
GAME_MC = game_mc;
game_mc._visible = false;
mc_waitAnimalsCloudes = game_mc.createEmptyMovieClip("mc_waitACloudes", DEPTH_WAIT_CLOUDE);
i = 0;
while (i < itemsMax) {
node = srcXML.firstChild.childNodes[i];
switch (node.nodeName) {
case "Place" :
createPlace(node, game_mc);
break;
case "Trash" :
createTrash(node, game_mc);
break;
case "GrainPlace" :
createGrainPlace(node, game_mc);
break;
case "Bike" :
createBike(node, game_mc);
break;
case "Button" :
createButtons(node, game_mc);
break;
case "VegSlotButton" :
var vegBtn = (new com.base.VegSlotButton());
vegBtn.create(node, game_mc);
vegBtn.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
break;
case "CashSlot" :
cashSlot = new com.base.CashSlot();
cashSlot.create(node, game_mc);
cashSlot.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
break;
case "VegPlaces" :
createVegPlace(node, game_mc);
}
i++;
}
createVegButSlot();
vegTab_mc = game_mc.createEmptyMovieClip("vegTab_mc", DEPTH_VEG_TAB);
createGirl("Girl", game_mc);
createGrFather("grFather", game_mc);
var standArr;
if ((Main.userProfile.getItemsCount("lamb") > 0) || (Main.userProfile.getItemsCount("sheep") > 0)) {
createSheepPlace();
standArr = new Array([80, 170, 80, 170, 80, 170], [-20, -20, -40, -40, -40, -40]);
addPlaceField("clover_place", "CloverField", "CloverPlace", standArr);
}
if ((Main.userProfile.getItemsCount("goose") > 0) || (Main.userProfile.getItemsCount("gosling") > 0)) {
createGoosePlace();
standArr = new Array([90, 170, 70, 170, 50, 170], [25, -10, 0, -20, 0, -20]);
addPlaceField("grain_place", "GrainField", "GrainPlace", standArr);
}
if (Main.userProfile.getItemsList("gosling").nodeName && (Main.userProfile.getItemsCount("gosling") > 0)) {
var i = 0;
while (i < Main.userProfile.getItemsCount("gosling")) {
createGosling("Gosling", game_mc);
i++;
}
}
if (Main.userProfile.getItemsList("goose").nodeName && (Main.userProfile.getItemsCount("goose") > 0)) {
var i = 0;
while (i < Main.userProfile.getItemsCount("goose")) {
createGoose("Goose", game_mc);
i++;
}
}
if (Main.userProfile.getItemsList("lamb").nodeName && (Main.userProfile.getItemsCount("lamb") > 0)) {
var i = 0;
while (i < Main.userProfile.getItemsCount("lamb")) {
createWhiteLamb("WhiteLamb", game_mc);
i++;
}
}
if (Main.userProfile.getItemsList("sheep").nodeName && (Main.userProfile.getItemsCount("sheep") > 0)) {
var i = 0;
while (i < Main.userProfile.getItemsCount("sheep")) {
createWhiteSheep("WhiteSheep", game_mc);
i++;
}
}
if (Main.userProfile.getItemsList("well2").nodeName) {
upgradeWell();
}
levContr = new com.game.LevelController(this);
}
function upgradeWell() {
var node = com.data.GUIxml.getXML("getGui", "Well_2").firstChild;
createPlace(node, game_mc);
node = com.data.GUIxml.getXML("getGui", "BuckPlace_2").firstChild;
var place = (new com.game.places.WaterPlace());
place.create(node, game_mc);
place.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
}
function createGrainPlace(node, conteiner) {
var place = (new com.game.places.GrainPlace());
place.create(node, conteiner);
place.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
}
function addPlaceField(fieldId, fieldName, placeID, standArr) {
var node;
node = com.data.GUIxml.getXML("getGui", placeID).firstChild;
var prodoductPl = createPlace(node, game_mc);
switch (placeID) {
case "GrainPlace" :
var GrainProductMC = game_mc.createEmptyMovieClip("GrainProductMC", 601);
GrainProductMC._x = prodoductPl.scope._x;
GrainProductMC._y = prodoductPl.scope._y;
prodoductPl.addProductViewMC(GrainProductMC);
break;
case "CloverPlace" :
var CloverProductMC = game_mc.createEmptyMovieClip("CloverProductMC", 602);
CloverProductMC._x = prodoductPl.scope._x;
CloverProductMC._y = prodoductPl.scope._y;
prodoductPl.addProductViewMC(CloverProductMC);
com.game.logic.AStarMap(link.girlMap).registerObj(CloverProductMC._x + 40, CloverProductMC._y);
com.game.logic.AStarMap(link.girlMap).registerObj(CloverProductMC._x + 40, CloverProductMC._y + 20);
}
node = com.data.GUIxml.getXML("animations", fieldName).firstChild;
var place = com.game.places.GrainPlace(game_mc[fieldId].scope);
var mc = place.addGrainField(node, standArr);
place.applyOverEffect(mc);
place.addHendlers(mc, node);
place.productPlaceTo = prodoductPl;
}
function bayGrain(link, grainField) {
grainField.removeMarker();
if (moneyEarned > 0) {
moneyEarned = moneyEarned - 100;
levContr.complete(-100, moneyEarned);
cashSlot.__set__title(String(moneyEarned));
var flyFrom = (new flash.geom.Point(58, 494));
var xx = grainField.grainTab_mc._x;
var yy = grainField.grainTab_mc._y;
var flyTo = (new flash.geom.Point(xx, yy));
CreateTrailToPoint(game_mc, flyFrom, flyTo);
grainField.resetStage();
} else {
com.base.SoundPlayer.play("MoneyOut");
if ((!com.mosesSupposes.fuse.ZigoEngine.isTweening(grainField.grainTab_mc)) && (!com.mosesSupposes.fuse.ZigoEngine.isTweening(cashSlot.scope))) {
com.mosesSupposes.fuse.ZigoEngine.doTween(grainField.grainTab_mc, ["_tint"], {tint:10027008, percent:60}, 0.4, "linear", 0, {cycles:6});
com.mosesSupposes.fuse.ZigoEngine.doTween(cashSlot.scope, ["_tint"], {tint:10027008, percent:60}, 0.4, "linear", 0, {cycles:6});
}
}
}
function createGoosePlace() {
var panName;
if (Main.userProfile.getItemsList("waterpans").nodeName) {
panName = "BirdDrinkPan";
} else {
panName = "BirdDrinkPanOld";
}
var node = com.data.GUIxml.getXML("getGui", panName).firstChild;
createWaterPan(node, game_mc);
if (Main.userProfile.getItemsList("foodpans").nodeName) {
panName = "BirdEatPan";
} else {
panName = "BirdEatPanOld";
}
node = com.data.GUIxml.getXML("getGui", panName).firstChild;
createGrainPan(node, game_mc);
game_mc.Goose_Place.First_Goose_Place.removeMovieClip();
node = com.data.GUIxml.getXML("getGui", "gooseEggsPlace").firstChild;
createAnimalPlace(node, game_mc, 280, 424);
}
function createSheepPlace() {
var panName;
if (Main.userProfile.getItemsList("waterpans").nodeName) {
panName = "SheepDrinkPan";
} else {
panName = "SheepDrinkPanOld";
}
var node = com.data.GUIxml.getXML("getGui", panName).firstChild;
createWaterPan(node, game_mc);
if (Main.userProfile.getItemsList("foodpans").nodeName) {
panName = "SheepEatPan";
} else {
panName = "SheepEatPanOld";
}
node = com.data.GUIxml.getXML("getGui", panName).firstChild;
createGrainPan(node, game_mc);
game_mc.Sheep_Place.First_Sheep_Place.removeMovieClip();
}
function createWaterPan(node, conteiner) {
var pan = (new com.game.places.WaterPan());
pan.create(node, conteiner);
pan.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
}
function createGrainPan(node, conteiner) {
var pan = (new com.game.places.GrainPan());
pan.create(node, conteiner);
pan.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
}
function createAnimalPlace(node, conteiner, xPos, yPos, objNode, zoneType) {
var place = (new com.game.pers.animals.production.AnimalsProductionPlace(null, zoneType || "bird"));
place.inDepth = true;
place.create(node, conteiner);
place.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
if (xPos) {
place.scope._x = xPos;
}
if (yPos) {
place.scope._y = yPos;
}
}
function createVegButSlot() {
vegBtn = new com.base.VegSlotButton();
var node = com.data.GUIxml.getXML("getGui", "VegetablesTab").firstChild;
vegBtn.create(node, game_mc);
var tmpBUT;
tmpBUT = vegBtn.addToggle("VegPumpkinButton", this);
if (Main.userProfile.getItemsList("pumpkin").nodeName != "pumpkin") {
tmpBUT.removeHandler();
}
tmpBUT = vegBtn.addToggle("VegCabbageButton", this);
tmpBUT.scope._x = tmpBUT.scope._x + 36;
if (Main.userProfile.getItemsList("cabbage").nodeName != "cabbage") {
tmpBUT.removeHandler();
}
tmpBUT = vegBtn.addToggle("VegWatermelonButton", this);
tmpBUT.scope._x = tmpBUT.scope._x + 72;
if (Main.userProfile.getItemsList("watermelon").nodeName != "watermelon") {
tmpBUT.removeHandler();
}
tmpBUT = vegBtn.addToggle("VegWatermelonButton", this);
tmpBUT.scope._x = tmpBUT.scope._x + 108;
tmpBUT.removeHandler();
vegBtn.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
}
function createGoal() {
gameGoal = new com.dialogs.Goal(this);
gameGoal.create();
gameGoal.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
showGoalBG();
}
function createStat() {
pauseGame();
gameStat = new com.dialogs.StatWindow(this);
var money = (bike.__get__extra_earnings() || 0);
var extraMoney = summ;
extraMoney = extraMoney + money;
gameStat.create(extraMoney, moneyEarned, soldedObjArr);
gameStat.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
}
function getExtraMoney() {
var price;
var pl;
var flyFrom;
var flyTo = (new flash.geom.Point(340, 200));
ShowStartTextAnimation(com.data.Strings.getText("EXTRA MONEY"), "createStat", 1000, 180, 2);
flyFrom = new flash.geom.Point(bike.__get__xPos(), bike.__get__yPos());
CreateTrailToPoint(game_mc, flyFrom, flyTo);
bike.coin.coin.removeMovieClip();
bike.__set__count(0);
var extraBike = ((bike.__get__extra_earnings() + bike.__get__earnings()) || 0);
var extraVeg = 0;
price = 0;
var veg;
var pr;
var i = 0;
while (i < 8) {
veg = com.game.places.VegPlace(vegPlaceArr[i]);
if (veg.getPlacedObj().evolutionStage == 2) {
pr = int(com.data.GUIxml.getXML("price", veg.takeObjOutPlace(null, true).firstChild.attributes.objName).attributes.Sell);
price = price + (pr || 0);
com.game.Evolution(veg.getPlacedObj()).cloudID.cloudRemove();
flyFrom = new flash.geom.Point(veg.__get__xPos(), veg.__get__yPos());
if (pr) {
CreateTrailToPoint(game_mc, flyFrom, flyTo);
}
}
i++;
}
var extraVeg = price;
flyFrom = new flash.geom.Point(10, 10);
CreateTrailToPoint(game_mc, flyFrom, flyTo);
var extraTime = ((levContr.alarmClock.__get__timeToEnd() * Main.userProfile.moneyPerSecond) || 0);
pl = com.game.pers.animals.production.AnimalsProductionPlace.zonedPlaceArr.bird[1];
price = int(com.data.GUIxml.getXML("price", pl.takeObjOutPlace(null, true).attributes.objName).attributes.Sell);
flyFrom = new flash.geom.Point(pl.xPos, pl.yPos);
if (price) {
CreateTrailToPoint(game_mc, flyFrom, flyTo);
}
var extraEggs = (price || 0);
var extraWool = 0;
summ = (((extraBike + extraVeg) + extraTime) + extraEggs) + extraWool;
}
function createOptions() {
gameOpt = new com.dialogs.Options(this, link.gameMusicPlayer, Main.showHints);
gameOpt.create(false);
gameOpt.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
}
function showGoalBG() {
mc_GoalBG = createEmptyMovieClip("mc_GoalBG", gameGoal.scope.getDepth() - 2);
var itemsMax = srcXML.firstChild.childNodes.length;
var node;
var i = 0;
while (i < itemsMax) {
node = srcXML.firstChild.childNodes[i];
if ((!node.attributes.action) && (node.attributes.visible != "false")) {
switch (node.nodeName) {
case "Place" :
createPlace(node, mc_GoalBG);
break;
case "GrainPlace" :
createGrainPlace(node, mc_GoalBG);
break;
case "VegPlaces" :
createVegPlace(node, mc_GoalBG);
}
}
i++;
}
}
function hideGoalBG() {
if (mc_GoalBG) {
com.mosesSupposes.fuse.ZigoEngine.doTween(mc_GoalBG, ["_brightness"], [-100], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:_destroyGoalBG});
} else {
_destroyGoalBG();
}
}
function _destroyGoalBG() {
mc_GoalBG.removeMovieClip();
delete mc_GoalBG;
showGame();
}
function showGame() {
com.base.SoundHelper.musicPlay("music");
levContr.checkAction("start");
game_mc._visible = true;
activateObjs();
com.mosesSupposes.fuse.ZigoEngine.doTween(game_mc, ["_brightness"], [-100], 0, com.mosesSupposes.fuse.PennerEasing.linear, 0);
com.mosesSupposes.fuse.ZigoEngine.doTween(game_mc, ["_brightness"], [0], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:ShowStartTextAnimation, args:[com.data.Strings.getText("READY"), "afterGetReady", 1500, 180]});
mcFog = game_mc.attachMovie("game_fog", "game_fog", FOG_DEPTH, {_alpha:0});
eskListner = new Object();
eskListner.onKeyDown = function () {
if (Key.isDown(27)) {
com.game.GameZone.GAME_ZONE_CLASS.showIngameMenu();
}
};
Key.addListener(eskListner);
}
function activateGamePlay() {
gamePlayIsActivated = true;
levContr.alarmClock.start();
activObjList.push(levContr.alarmClock);
mcFog.removeMovieClip();
_root.onMouseMove = mx.utils.Delegate.create(this, mouseMoveAction);
mouseMoveAction();
levContr.startHint();
}
function mouseMoveAction(debug) {
if (autoPauseIntervalID) {
clearInterval(autoPauseIntervalID);
}
if (debug) {
}
if ((((!menu.scope) || (menu.action == "resumeObjs")) && (com.game.CCloud.cloudList > 0)) && (!lvlComplete)) {
autoPauseIntervalID = setInterval(this, "showIngameMenu", AUTOPAUSE_TIME);
}
}
function playGame(link, mc) {
gameGoal.hide();
hideGoalBG();
}
function eraseAnim(aMc, f) {
f.stop();
f.destroy();
delete f;
aMc.removeMovieClip();
delete aMc;
}
function afterGetReady() {
ShowStartTextAnimation(com.data.Strings.getText("GO"), "activateGamePlay", 1500, 180);
}
function ShowStartTextAnimation(aText, nextFunc, animTime, charY, pauseTime, txtObj) {
com.utils.ObjFactory.ShowStartTextAnimation(game_mc, this, aText, nextFunc, animTime, charY, pauseTime, txtObj);
}
function createVegPlace(node, conteiner) {
var layer = node.attributes.layer;
vegPlaces = conteiner.createEmptyMovieClip("vegPlaces", layer || (conteiner.getNextHighestDepth()));
vegPlaces._x = node.attributes.xPos;
vegPlaces._y = node.attributes.yPos;
vegPlaceArr = new Array();
var tmpNode = null;
var i = 0;
var id = 0;
while (i < node.childNodes.length) {
tmpNode = node.childNodes[i];
switch (tmpNode.nodeName) {
case "Place" :
var mcPlace = vegPlaces.createEmptyMovieClip("map_mc", tmpNode.attributes.layer || (vegPlaces.getNextHighestDepth()));
var vegPlace = (new com.game.places.Place(mcPlace));
vegPlace.addObj(tmpNode);
break;
case "VegPlace" :
var vegPlase = (new com.game.places.VegPlace());
vegPlase.create(tmpNode, vegPlaces);
vegPlase.removeHendlers();
vegPlase.placeID = id;
vegPlase.filterType = tmpNode.attributes.overFilter;
vegPlase.setImage(tmpNode.attributes.src);
vegPlase.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
vegPlaceArr.push(vegPlase);
id++;
}
i++;
}
}
function createBike(node, conteiner) {
bike = new com.game.places.Bike();
bike.create(node, conteiner);
bike.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
}
function abortGame() {
Main.userProfile.restoreProfile();
_root.gotoAndStop(4);
_destroy();
}
function showVegTab(link, mcVeg) {
vegTab = new com.base.VegTab(vegTab_mc, "ripple");
var node = com.data.GUIxml.getXML("animations", activeVeg, mcVeg.placeID);
vegTab.addAnimObj(node.firstChild);
vegTab_mc._x = (vegPlaces._x + mcVeg.scope._x) + 10;
vegTab_mc._y = (vegPlaces._y + mcVeg.scope._y) - (vegTab_mc._height / 2);
if ((vegTab_mc._y < (grandChild.scope._y + 30)) && (vegTab_mc.getDepth() == DEPTH_VEG_TAB)) {
vegTab_mc.swapDepths(grandChild.scope.getDepth() - 1);
} else if ((vegTab_mc._y > (grandChild.scope._y + 30)) && (vegTab_mc.getDepth() != DEPTH_VEG_TAB)) {
vegTab_mc.swapDepths(DEPTH_VEG_TAB);
}
}
function hideVegTab() {
vegTab_mc.vegTab_mc.removeMovieClip();
}
function sellShipment(link, mcSellArrow) {
if (!sellArrow) {
sellArrow = mcSellArrow.scope;
bike.btn_sell = sellArrow;
}
if (bike.objCounter > 0) {
bike.gotoSell();
}
}
function gotoSetVeg(link, mcVeg) {
mcVeg.activeVeg = activeVeg;
vegTab.fadeOut();
grandChild.addApplingAction(mcVeg);
}
function placeIntoSoil(link, mcVegCaller) {
var placeID = mcVegCaller.placeID;
var vegName = vegPlaceArr[placeID].activeVeg;
var vegSrc = null;
if (vegName == "PumpkinTab") {
vegSrc = "PumpkinAnimation01";
}
if (vegName == "CabbageTab") {
vegSrc = "CabbageAnimation01";
}
if (vegName == "WatermelonTab") {
vegSrc = "WatermelonAnimation01";
}
var layer = (317 + placeID);
var vegObj = game_mc.createEmptyMovieClip((("vegObj_" + vegSrc) + "_") + layer, layer || (game_mc.getNextHighestDepth()));
var veg = (new com.game.Evolution(vegObj));
veg.placeID = placeID;
veg.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
activObjList.push(veg);
com.utils.Destructor.registerObj(veg);
veg.actionList = String(com.data.GUIxml.getXML("animations", vegSrc).firstChild.attributes.actionList).split(",");
veg.create(vegSrc);
vegPlaceArr[placeID].placeObj(veg);
vegObj._x = (vegPlaces._x + vegPlaceArr[placeID].scope._x) + (vegPlaceArr[placeID].scope._width / 2);
veg.__set__yPos(vegPlaces._y + vegPlaceArr[placeID].scope._y);
vegObj._y = (vegPlaces._y + vegPlaceArr[placeID].scope._y) + (vegPlaceArr[placeID].scope._height / 2);
}
function addCloud(link, mcVegCaller) {
var placeID = mcVegCaller.placeID;
var cloude = mcVegCaller.scope.attachMovie("cloude", "cloude" + placeID, mcVegCaller.scope.getNextHighestDepth());
activObjList.push(cloude);
mcVegCaller.cloudID = cloude;
var iconArr = new Array("iconWaterBucket", "iconPick", "iconHand");
var iconName = iconArr[mcVegCaller.evolutionStage];
var hareCount = com.utils.XMLObjFinder.findNode(com.data.GUIxml.getXML("level", levContr.levelNum), "Hare").attributes.Count;
if (((mcVegCaller.evolutionStage >= 1) && (hareCount > 0)) && (!newHare.scope)) {
clearInterval(hareIntID);
hareIntID = setInterval(this, "createHare", 5000, "Hare", game_mc);
}
var iconObj = {objName:mcVegCaller.objName, phaseName:mcVegCaller.phaseName[int(mcVegCaller.evolutionStage)]};
levContr.checkAction(mcVegCaller.phaseName[int(mcVegCaller.evolutionStage)]);
cloude.create(iconName, vegPlaceArr[placeID], iconObj);
var w = (com.game.places.VegPlace(vegPlaceArr[placeID]).getPlacedObj().scope._width / 2);
switch (com.game.places.VegPlace(vegPlaceArr[placeID]).getPlacedObj().iconName) {
case "PumpkinAnimation01" :
cloude._x = -12;
break;
case "CabbageAnimation01" :
case "WatermelonAnimation01" :
cloude._x = 3;
}
cloude._x = -20;
cloude._y = -48;
}
function addAnimalsCloud(link, animal) {
var depth = mc_waitAnimalsCloudes.getNextHighestDepth();
var cloude = mc_waitAnimalsCloudes.attachMovie("cloude", (("cloude_" + animal.type) + "_") + depth, depth);
cloude.cloudType = "reverse";
activObjList.push(cloude);
var iconName = animal.waitStatus;
cloude.create(iconName, animal);
cloude._x = int(animal.X_CLOUDE_POS) + (20 * depth);
cloude._y = animal.Y_CLOUDE_POS;
}
function getWater(link, mcWhellCaller) {
if ((grandChild.isHandsFree() < 3) && (mcWhellCaller.objCounter > 0)) {
grandChild.addApplingAction(mcWhellCaller);
} else if ((grandChild.isHandsFree() > 0) && (mcWhellCaller.objCounter == 0)) {
grandChild.addApplingAction(mcWhellCaller);
}
}
function GrandCutDownGrain(link, mcCaller) {
grFather.addApplingAction(mcCaller);
}
function putGrainToPlace() {
}
function GrandSetWater(link, mcWhellCaller) {
var node = com.data.GUIxml.getXML("obj", "Bucket", "toPlace").firstChild;
grFather.addApplingAction(mcWhellCaller);
}
function putWaterToPlace() {
var i = 0;
while (i < com.game.places.Place(game_mc.BuckPlace.scope).upgrade) {
var node = com.data.GUIxml.getXML("obj", "Bucket", "toPlace").firstChild;
com.game.places.Place(game_mc.BuckPlace.scope).addObjToPlace(node);
i++;
}
}
function createPlace(node, conteiner) {
var place = (new com.game.places.Place());
place.create(node, conteiner);
place.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
return(place);
}
function createTrash(node, conteiner) {
var place = (new com.game.places.Trash());
place.create(node, conteiner);
place.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
return(place);
}
function createButtons(node, conteiner) {
if (node.attributes.type != "toggle") {
var newBtn = (new com.base.GameButton());
newBtn.create(node, conteiner);
newBtn.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
} else {
var togBtn = (new com.base.ToggleButton(conteiner));
togBtn.setImage(String(node.childNodes[0].attributes.src));
togBtn.__set__setSelection(Boolean(node.childNodes[0].attributes.selected));
togBtn.__set__setAction("setVeg");
togBtn.setXML(node);
togBtn.__set__xPos(node.attributes.xPos);
togBtn.__set__yPos(node.attributes.yPos);
togBtn.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
focuseGroupVegSlot.registerObj(togBtn);
}
}
function createGirl(name, conteiner) {
var girlXML = com.data.GUIxml.getXML("pers", "girl");
var layer = girlXML.firstChild.attributes.layer;
var mc_Girl = conteiner.createEmptyMovieClip("mc_" + name, layer || (conteiner.getNextHighestDepth()));
grandChild = new com.game.pers.Girl(mc_Girl, this);
activObjList.push(grandChild);
grandChild.create(girlXML);
grandChild.pathMap = com.game.logic.AStarMap(link.girlMap);
grandChild.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
}
function createGrFather(name, conteiner) {
var grXML = com.data.GUIxml.getXML("pers", "grFather");
var layer = grXML.firstChild.attributes.layer;
var mc_grFather = conteiner.createEmptyMovieClip("mc_grFather", layer || (conteiner.getNextHighestDepth()));
grFather = new com.game.pers.GrFather(mc_grFather, this);
activObjList.push(grFather);
grFather.create(grXML);
grFather.pathMap = com.game.logic.AStarMap(link.girlMap);
grFather.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
}
function createHare(name, conteiner) {
clearInterval(hareIntID);
var grXML = com.data.GUIxml.getXML("pers", "Hare");
var layer = int(grXML.firstChild.attributes.layer);
var mc_Hare = conteiner.createEmptyMovieClip("mc_Hare_" + com.game.pers.animals.Animals.createdObjCounter, (layer + com.game.pers.animals.Animals.createdObjCounter) || (conteiner.getNextHighestDepth()));
newHare = new com.game.pers.animals.Hare(mc_Hare, this);
newHare.pathMap = com.game.logic.AStarMap(link.hareMap);
newHare.create(grXML);
newHare.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
activObjList.push(newHare);
newHare.startAnimations();
return(newHare);
}
function createGosling(name, conteiner) {
var grXML = com.data.GUIxml.getXML("pers", "Gosling");
var layer = int(grXML.firstChild.attributes.layer);
var mc_Gosling = conteiner.createEmptyMovieClip("mc_Gosling_" + com.game.pers.animals.Animals.createdObjCounter, (layer + com.game.pers.animals.Animals.createdObjCounter) || (conteiner.getNextHighestDepth()));
newGosling = new com.game.pers.animals.Gosling(mc_Gosling, this);
newGosling.pathMap = com.game.logic.AStarMap(link.birdMap);
newGosling.eatPan = game_mc.Bird_EatPan;
newGosling.drinkPan = game_mc.Bird_DrinkPan;
newGosling.create(grXML);
newGosling.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
activObjList.push(newGosling);
}
function createGoose(name, conteiner) {
var grXML = com.data.GUIxml.getXML("pers", "Goose");
var layer = int(grXML.firstChild.attributes.layer);
var mc_Goose = conteiner.createEmptyMovieClip("mc_Goose_" + com.game.pers.animals.Animals.createdObjCounter, (layer + com.game.pers.animals.Animals.createdObjCounter) || (conteiner.getNextHighestDepth()));
newGoose = new com.game.pers.animals.Goose(mc_Goose, this);
newGoose.pathMap = com.game.logic.AStarMap(link.birdMap);
newGoose.eatPan = game_mc.Bird_EatPan;
newGoose.drinkPan = game_mc.Bird_DrinkPan;
newGoose.create(grXML);
newGoose.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
activObjList.push(newGoose);
return(newGoose);
}
function createWhiteLamb(name, conteiner) {
var grXML = com.data.GUIxml.getXML("pers", "WhiteLamb");
var layer = int(grXML.firstChild.attributes.layer);
var mc_WhiteLamb = conteiner.createEmptyMovieClip("mc_WhiteLamb_" + com.game.pers.animals.Animals.createdObjCounter, (layer + com.game.pers.animals.Animals.createdObjCounter) || (conteiner.getNextHighestDepth()));
newWhiteLamb = new com.game.pers.animals.WhiteLamb(mc_WhiteLamb, this);
newWhiteLamb.pathMap = com.game.logic.AStarMap(link.stockMap);
newWhiteLamb.eatPan = game_mc.Sheep_EatPan;
newWhiteLamb.drinkPan = game_mc.Sheep_DrinkPan;
newWhiteLamb.create(grXML);
newWhiteLamb.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
activObjList.push(newWhiteLamb);
return(newWhiteLamb);
}
function createWhiteSheep(name, conteiner) {
var grXML = com.data.GUIxml.getXML("pers", "WhiteSheep");
var layer = int(grXML.firstChild.attributes.layer);
var mc_WhiteLamb = conteiner.createEmptyMovieClip("mc_WhiteSheep_" + com.game.pers.animals.Animals.createdObjCounter, (layer + com.game.pers.animals.Animals.createdObjCounter) || (conteiner.getNextHighestDepth()));
newWhiteSheep = new com.game.pers.animals.WhiteSheep(mc_WhiteLamb, this);
newWhiteSheep.pathMap = com.game.logic.AStarMap(link.stockMap);
newWhiteSheep.eatPan = game_mc.Sheep_EatPan;
newWhiteSheep.drinkPan = game_mc.Sheep_DrinkPan;
newWhiteSheep.create(grXML);
newWhiteSheep.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
activObjList.push(newWhiteSheep);
return(newWhiteSheep);
}
function pauseGame() {
isPaused = true;
for (var o in activObjList) {
activObjList[o].pauseAnimations();
}
}
function resumeObjs() {
isPaused = false;
for (var o in activObjList) {
activObjList[o].resumeAnimations();
}
mouseMoveAction();
}
function activateObjs() {
for (var o in activObjList) {
activObjList[o].startAnimations();
}
}
function removeActObjFromList(obj) {
for (var o in activObjList) {
if (activObjList[o] == obj) {
delete activObjList[o];
}
}
}
function girlWalkToObj(link, mcPlace) {
}
function gotoMap(link, mc) {
if (link) {
com.mosesSupposes.fuse.ZigoEngine.doTween(link, ["kk"], 0, 0, com.mosesSupposes.fuse.PennerEasing.linear, 0.1, {func:"gotoMap"});
_destroy();
} else {
com.mosesSupposes.fuse.ZigoEngine.doTween(this.link, ["kk"], 0, 0, com.mosesSupposes.fuse.PennerEasing.linear, 0.1, {func:"gotoMap"});
_destroy();
}
}
function enableVegPlaces() {
var i = 0;
while (i < vegPlaceArr.length) {
vegPlaceArr[i].active = true;
vegPlaceArr[i].addHendler();
i++;
}
}
function disableVegPlaces() {
var i = 0;
while (i < vegPlaceArr.length) {
vegPlaceArr[i].active = false;
vegPlaceArr[i].removeHendlers();
i++;
}
hideVegTab();
}
function setVeg(link, mcVeg) {
if (!mcVeg.getSelection) {
enableVegPlaces();
activeVeg = mcVeg.xml.attributes.veg;
mcVeg.setImage(String(mcVeg.xml.childNodes[1].attributes.src));
} else {
disableVegPlaces();
activeVeg = null;
mcVeg.setImage(String(mcVeg.xml.childNodes[0].attributes.src));
}
mcVeg.setSelection = !Boolean(mcVeg.getSelection);
}
function clickHandler(eventObj) {
levContr.checkAction(eventObj.event);
switch (eventObj.event) {
case "click" :
if ((eventObj.target.action != "gotoSetVeg") && (eventObj.target.action == "persApplyObj")) {
vegBtn.focuseGroupVegSlot.callBackFocus(null);
disableVegPlaces();
}
levContr.checkAction(eventObj.target.action);
this[eventObj.target.action].call(this, link, eventObj.target);
return;
case "over" :
this[eventObj.target.actionOver].call(this, link, eventObj.target);
return;
case "out" :
levContr.checkAction(eventObj.target.actionOut);
this[eventObj.target.actionOut].call(this, link, eventObj.target);
return;
case "placeIntoSoil" :
placeIntoSoil(link, eventObj.target);
return;
case "evolutionDone" :
addCloud(link, eventObj.target);
return;
case "persApplyObj" :
persApplyObj(link, eventObj.target);
return;
}
}
function showIngameMenu() {
if (!menu.scope) {
menu = new com.dialogs.MenuInGame(this);
menu.create();
menu.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
pauseGame();
}
}
function cashToSlot(link, target) {
if (target.getCoin()) {
var money = target.getCoin();
target.__set__earnings(0);
moneyEarned = moneyEarned + money;
cashSlot.__set__title(String(moneyEarned));
var flyFrom = (new flash.geom.Point(494, 206));
var flyTo = (new flash.geom.Point(58, 494));
CreateTrailToPoint(game_mc, flyFrom, flyTo);
checkLevelGoal(money);
}
}
function checkLevelGoal(money) {
if (levContr.complete(money || 0, moneyEarned) && (!lvlComplete)) {
lvlComplete = true;
mouseMoveAction();
com.base.SoundHelper.stopMusic();
winint = setInterval(this, "playWinSound", 100);
ShowStartTextAnimation(com.data.Strings.getText("LEVEL COMPLETE"), "levelComplete", 2500, 180, 2);
}
}
function playWinSound() {
clearInterval(winint);
com.base.SoundPlayer.play("GameWin");
}
function levelComplete() {
getExtraMoney();
}
function persApplyObj(link, target) {
grandChild.addApplingAction(target);
}
static function CreateTrailToPoint(parentmc, fly_from, fly_to) {
var d = parentmc.getNextHighestDepth();
var animNode = XML(com.data.GUIxml.getXML("animations", "coin")).firstChild;
var head_mc = parentmc.attachMovie("SimpleAnim", "aCoin" + d, d);
head_mc.xPos_ = fly_from.x;
head_mc.yPos_ = fly_from.y;
head_mc.setPosition(fly_from.x, fly_from.y);
head_mc.scope = parentmc;
head_mc.direct = -1.47112767430373;
head_mc._x = fly_from.x;
head_mc.yPos_ = fly_from.y;
head_mc.fly_to = fly_to;
head_mc.speed = 500;
head_mc.fly_distance = 0;
head_mc.trail_distance = 0;
head_mc.finish_phase = 0;
head_mc.ang_change_summ = 0;
head_mc.rotate = 0;
head_mc.onEnterFrame = function () {
if (this.finish_phase > 0) {
if (this.finish_phase == 1) {
this.xPos_ = fly_to.x;
this.yPos_ = fly_to.y;
this._alpha = 60;
this.finish_phase = 2;
} else if (this.finish_phase == 2) {
this.finish_phase = 3;
MovieClip(this).removeMovieClip();
this = undefined;
}
return(undefined);
}
var targ_ang = Math.atan2(this.fly_to.y - this.yPos_, this.fly_to.x - this.xPos);
var diff_ang = (targ_ang - this.direct);
if (Math.abs(diff_ang) > Math.PI) {
diff_ang = ((diff_ang > 0) ? -1 : 1) * ((Math.PI*2) - Math.abs(diff_ang));
}
this.direct = this.direct + (diff_ang * com.utils.Fx.ANIM_TRAIL_ANGLE_CHANGE_COEFF);
if (this.direct > Math.PI) {
this.direct = this.direct - (Math.PI*2);
} else if (this.direct < -3.14159265358979) {
this.direct = this.direct + (Math.PI*2);
}
var targ_dist1 = Math.sqrt(((this.fly_to.x - this.xPos_) * (this.fly_to.x - this.xPos_)) + ((this.fly_to.y - this.yPos_) * (this.fly_to.y - this.yPos_)));
if (this._prev_time == undefined) {
this._prev_time = getTimer();
}
var dtime = (getTimer() - this._prev_time);
this._prev_time = getTimer();
var speed2 = ((this.speed * ((Math.PI*2) - Math.abs(diff_ang * com.utils.Fx.ANIM_TRAIL_ANGLE_CHANGE_COEFF_FOR_SPEED))) / (Math.PI*2));
var fly_length = ((speed2 * dtime) / 1000);
this.xPos_ = this.xPos_ + (Math.cos(this.direct) * fly_length);
this.yPos_ = this.yPos_ + (Math.sin(this.direct) * fly_length);
this.fly_distance = this.fly_distance + fly_length;
this.trail_distance = this.trail_distance + fly_length;
this.ang_change_summ = this.ang_change_summ + Math.abs(diff_ang);
if (this.trail_distance > com.utils.Fx.ANIM_TRAIL_TRAIL_EACH_DISTANCE) {
this.trail_distance = this.trail_distance - 25;
var animNode = XML(com.data.GUIxml.getXML("animations", "coin")).firstChild;
var tmc = this.scope.attachMovie("SimpleAnim", "aCoin" + this.scope.getNextHighestDepth(), this.scope.getNextHighestDepth());
tmc.createByXML(animNode, this.scope);
tmc.cacheAsBitmap = true;
tmc.xPos_ = this.xPos_ - (Math.cos(this.direct) * com.utils.Fx.ANIM_TRAIL_TRAIL_DIST_DELAY);
tmc.yPos_ = this.yPos_ - (Math.sin(this.direct) * com.utils.Fx.ANIM_TRAIL_TRAIL_DIST_DELAY);
tmc.setPosition(tmc.xPos_, tmc.yPos_);
tmc.playCycle();
tmc._quality = "BEST";
var trail_to_x = (tmc.xPos_ + (Math.cos(this.direct) * fly_length));
var trail_to_y = (tmc.yPos_ + (Math.sin(this.direct) * fly_length));
com.mosesSupposes.fuse.ZigoEngine.doTween(tmc, "_alpha,xPos_,yPos_", [0, trail_to_x, trail_to_y], com.utils.Fx.ANIM_TRAIL_TRAIL_LIFE_TIME, com.mosesSupposes.fuse.PennerEasing.easeInQuad, 0, {scope:com.utils.Fx, func:"RemoveMeCallback", args:tmc});
}
var targ_dist2 = Math.sqrt(((this.fly_to.x - this.xPos_) * (this.fly_to.x - this.xPos_)) + ((this.fly_to.y - this.yPos_) * (this.fly_to.y - this.yPos_)));
if (((targ_dist2 > targ_dist1) && (targ_dist2 < (fly_length * 2.5))) || (this.ang_change_summ > 30)) {
this.finish_phase = 1;
}
};
}
function timesUp() {
lvlComplete = true;
mouseMoveAction();
Main.userProfile.restoreProfile();
ShowStartTextAnimation(com.data.Strings.getText("TIME'S UP"), "gotoMap", 2000, 180, 3);
}
function _destroy() {
grFather._destroy();
grandChild._destroy();
newGosling._destroy();
newHare._destroy();
com.base.SoundPlayer.stopSound("GameWin");
com.base.SoundHelper.stopMusic();
delete grFather;
delete grandChild;
delete newGosling;
delete newHare;
delete com.game.CCloud.cloudList;
Key.removeListener(eskListner);
_root.onMouseMove = mx.utils.Delegate.create(this, null);
clearInterval(autoPauseIntervalID);
activObjList = null;
delete activObjList;
levContr.alarmClock._destroy();
com.utils.Destructor._destroy();
game_mc.removeMovieClip();
delete game_mc;
removeMovieClip();
return(true);
}
var moneyEarned = 0;
var isPaused = false;
var activeVeg = null;
var FOG_DEPTH = 9024;
var DEPTH_GRAIN_SHEAF = 349;
var DEPTH_VEG_TAB = 1000;
var AUTOPAUSE_TIME = 5000;
var DEPTH_WAIT_CLOUDE = 7991;
}
Symbol 756 MovieClip [__Packages.com.game.LevelController] Frame 0
class com.game.LevelController
{
var scope, actionBuf, actionCounter, levelNum, alarmClock, actionList, mcWindCont, goalsTab, aTip, hintIntID;
function LevelController (scope) {
this.scope = scope;
actionBuf = new Array();
actionCounter = 0;
levelNum = Main.userProfile.level;
loadLevelData();
var levelTime = com.utils.XMLObjFinder.findNode(com.data.GUIxml.getXML("level", levelNum), "Time").attributes.Value;
alarmClock = new com.game.AnalogClock(scope.game_mc, levelTime);
alarmClock.callbCL = scope;
}
function loadLevelData() {
actionList = com.data.GUIxml.getXML("level", levelNum).firstChild.childNodes[0];
createContrWindow();
}
function createContrWindow() {
mcWindCont = scope.game_mc.createEmptyMovieClip("mcWindCont", 8010);
mcWindCont._x = 164;
mcWindCont._y = 442;
createTabItems().scope._x = 120;
}
function createTabItems() {
goalsTab = new com.base.GoalTab(mcWindCont);
}
function complete(money, earned) {
var sold = new Array();
sold = scope.soldedObjArr;
var node = com.utils.XMLObjFinder.findNode(com.data.GUIxml.getXML("level", levelNum), "Goal");
var sellNode = com.utils.XMLObjFinder.findNode(node, "Sell");
var objArr = String(sellNode.attributes.objNames).split(",");
var numArr = String(sellNode.attributes.count).split(",");
var solded = 0;
var totalObj;
var selledAllObjCounter = 0;
var m = 0;
while (m < objArr.length) {
totalObj = numArr[m];
solded = 0;
var i = 0;
while (i < sold.length) {
solded = solded + (int(sold[i][objArr[m]]) || 0);
i++;
}
if (solded >= totalObj) {
selledAllObjCounter++;
}
goalsTab.update(objArr[m], solded);
m++;
}
var growNode = com.utils.XMLObjFinder.findNode(node, "Grow");
var objArr2 = String(growNode.attributes.objNames).split(",");
numArr = String(growNode.attributes.count).split(",");
var m = 0;
while (m < objArr2.length) {
totalObj = numArr[m];
solded = 0;
var i = 0;
while (i < sold.length) {
solded = solded + (int(sold[i][objArr2[m]]) || 0);
i++;
}
if (solded >= totalObj) {
selledAllObjCounter++;
}
goalsTab.update(objArr2[m], solded);
m++;
}
var earnNode = com.utils.XMLObjFinder.findNode(node, "Earn");
goalsTab.update("BriefingCoin", money);
if ((selledAllObjCounter >= (objArr.length + objArr2.length)) && (earned >= int(earnNode.attributes.Money))) {
alarmClock.pause();
return(true);
}
return(false);
}
function updHints() {
aTip = new com.dialogs.Hint(scope.game_mc);
var num = ((levelNum + "_") + int(10 * actionCounter));
var xpos = Number(com.data.GUIxml.getXML("hints", num).attributes.X);
var ypos = Number(com.data.GUIxml.getXML("hints", num).attributes.Y);
var hintType = actionList.childNodes[actionCounter - 1].attributes.action;
if (hintType == "wait") {
var time = actionList.childNodes[actionCounter - 1].attributes.time;
hintIntID = setInterval(this, "checkAction", time * 1000, hintType);
}
var htintText = com.data.Strings.getXML("HINT " + num).attributes.text;
var hideFog = false;
if (com.data.GUIxml.getXML("hints", num).attributes.Stop == "0") {
hideFog = true;
}
aTip.create("exitFunc", scope, htintText, new flash.geom.Point(xpos, ypos), new flash.geom.Point(0, 0), hideFog);
aTip.setPos(xpos, ypos);
}
function checkAction(actName) {
if (scope.gamePlayIsActivated) {
if (startAction(actName)) {
clearInterval(hintIntID);
actionCounter++;
if (Main.showHints) {
updHints();
} else if (aTip.scope) {
aTip.hide();
}
}
if (endAction(actName)) {
if (aTip.scope) {
aTip.hide();
} else {
clearInterval(hintIntID);
}
}
} else {
actionBuf.push(actName);
}
}
function startHint() {
var i = 0;
while (i < actionBuf.length) {
checkAction(actionBuf[i]);
i++;
}
actionBuf = [];
delete actionBuf;
}
function startAction(actName) {
if (actionList.childNodes[actionCounter].attributes.event == actName) {
return(true);
}
return(false);
}
function endAction(actName) {
if (actionList.childNodes[actionCounter - 1].attributes.action == actName) {
return(true);
}
return(false);
}
}
Symbol 757 MovieClip [__Packages.com.dialogs.Hint] Frame 0
class com.dialogs.Hint
{
var action, scope, exitProc_, exitProcScope_, hlPos_, mcHintPointer, tipFormat, chBut;
function Hint (scope) {
mx.events.EventDispatcher.initialize(this);
action = "nextAction";
this.scope = scope.createEmptyMovieClip("Hint", DEPTH);
this.scope.scope = this;
this.scope._visible = false;
this.scope._alpha = 0;
}
function create(nextFunction, link, text, hlPos, thisPos, hideFog) {
exitProc_ = nextFunction;
exitProcScope_ = scope;
hlPos_ = hlPos;
var mc;
var node;
if (!hideFog) {
mc = scope.attachMovie("darkLight", "light", scope.getNextHighestDepth());
}
var xWind = 80;
var yWind = -80;
node = com.data.GUIxml.getXML("getGui", "HintWindowSmallPage").firstChild;
mc = addObj(node);
if (((hlPos.x + xWind) + mc._width) > (STAGE_WIDTH - 20)) {
xWind = STAGE_WIDTH - ((hlPos.x + mc._width) + 20);
}
mc._x = xWind;
mc._y = yWind;
createTipText(mc, text);
if (!hideFog) {
mcHintPointer = addAnimObj(scope, "HintPointer");
mcHintPointer._x = 50;
mcHintPointer._y = 30;
}
addCheckBut(mc);
addContinBut(mc, "HintContButton");
show();
}
function addContinBut(sc, src) {
var node = com.data.GUIxml.getXML("getGui", src).firstChild;
var newBtn = (new com.base.GameButton());
newBtn.create(node, sc || (scope));
newBtn.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
var contButText = newBtn.scope.createTextField("contButText", newBtn.scope.getNextHighestDepth(), -68, 0, 200, 100);
contButText.selectable = false;
contButText.embedFonts = true;
contButText.autoSize = true;
contButText.text = com.data.Strings.getText("CONTINUE");
tipFormat.color = 3250139 /* 0x3197DB */;
tipFormat.size = 11;
tipFormat.bold = false;
contButText.setTextFormat(tipFormat);
}
function setPos(xpos, ypos) {
scope._x = xpos;
scope._y = ypos;
}
function show() {
com.game.GameZone.GAME_ZONE_CLASS.levContr.alarmClock.pauseAnimations();
scope._visible = true;
com.mosesSupposes.fuse.ZigoEngine.doTween(scope, ["_alpha"], [100], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0);
}
function hide() {
com.game.GameZone.GAME_ZONE_CLASS.levContr.alarmClock.resumeAnimations();
com.mosesSupposes.fuse.ZigoEngine.doTween(scope, ["_alpha"], [0], 1, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"_destroy"});
}
function txtFormat() {
tipFormat = new TextFormat();
tipFormat.color = 1184274 /* 0x121212 */;
tipFormat.font = "titleFont";
tipFormat.size = 12;
}
function applingFilter(txtField) {
var myDropFilter = (new flash.filters.DropShadowFilter());
myDropFilter.alpha = 10;
myDropFilter.distance = 2;
var myGlowFilter = (new flash.filters.GlowFilter());
myGlowFilter.color = 9918976 /* 0x975A00 */;
myGlowFilter.strength = 0.336;
myGlowFilter.blurX = (myGlowFilter.blurY = 2);
var myFilters = txtField.filters;
myFilters.push(myDropFilter);
myFilters.push(myGlowFilter);
txtField.filters = myFilters;
}
function createTipText(scope, txt) {
txtFormat();
var tipText = scope.createTextField("tipText", scope.getNextHighestDepth(), 20, 10, 200, 100);
tipText.selectable = false;
tipText.embedFonts = true;
tipText.autoSize = false;
tipText.multiline = true;
tipText.wordWrap = true;
tipText.text = txt;
tipText.setTextFormat(tipFormat);
}
function addCheckBut(sc) {
var node = com.data.GUIxml.getXML("getGui", "HintCheck").firstChild;
chBut = new com.base.ToggleButton(sc || (scope));
chBut.setImage(String(node.childNodes[0].attributes.src));
chBut.__set__setSelection(Boolean(node.childNodes[0].attributes.selected));
createTipText(chBut, "");
chBut.__set__xPos(node.attributes.xPos);
chBut.__set__yPos(node.attributes.yPos);
chBut.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
if (Main.showHints) {
hintsOn();
} else {
hintsOff();
}
var chButText = chBut.scope.createTextField("chButText", chBut.scope.getNextHighestDepth(), 18, 0, 200, 100);
chButText.selectable = false;
chButText.embedFonts = true;
chButText.autoSize = true;
chButText.text = com.data.Strings.getText("SHOW HINTS");
tipFormat.color = 42579;
tipFormat.size = 11;
tipFormat.bold = false;
chButText.setTextFormat(tipFormat);
}
function hintsOn() {
var node = com.data.GUIxml.getXML("getGui", "HintCheck").firstChild;
chBut.setImage(String(node.childNodes[1].attributes.src));
chBut.__set__setAction("hintsOff");
Main.showHints = true;
}
function hintsOff() {
var node = com.data.GUIxml.getXML("getGui", "HintCheck").firstChild;
chBut.setImage(String(node.childNodes[0].attributes.src));
chBut.__set__setAction("hintsOn");
Main.showHints = false;
}
function clickHandler(eventObj) {
if (!(eventObj.event === "click")) {
} else {
this[eventObj.target.action].call(this);
}
}
function addObj(node) {
var tmp = scope.createEmptyMovieClip(node.attributes.ID, node.attributes.layer || (scope.getNextHighestDepth()));
var src = (node.attributes.src || (node.attributes.ID));
var bmp = flash.display.BitmapData.loadBitmap(src);
tmp.attachBitmap(bmp, node.attributes.layer || (tmp.getNextHighestDepth()), "auto", true);
tmp._x = node.attributes.xPos || 0;
tmp._y = node.attributes.yPos || 0;
return(tmp);
}
function addAnimObj(mc, src) {
var animNode = XML(com.data.GUIxml.getXML("animations", src)).firstChild;
var mcAnim = com.base.anim.SimpleAnim(mc.attachMovie("SimpleAnim", "overAnim", mc.getNextHighestDepth()));
mcAnim.createByXML(animNode, mc);
mcAnim.nextCycle();
return(mcAnim);
}
function _destroy() {
com.mosesSupposes.fuse.ZigoEngine.removeTween(scope);
com.base.anim.SimpleAnim(mcHintPointer)._destroy();
mcHintPointer.removeMovieClip();
scope.removeMovieClip();
delete mcHintPointer;
delete scope;
delete this;
}
static var STAGE_WIDTH = 640;
static var DEPTH = 9133;
}
Symbol 758 MovieClip [__Packages.com.base.anim.SimpleAnim] Frame 0
class com.base.anim.SimpleAnim extends MovieClip
{
var currFrame_, mpYOffset_, _y, data_, frames_, playTime_, loops_, srcBitmap_, looptype_, startingFrame_, frameWidth_, frameHeight_, frameBitmap_, attachBitmap, posCorner_, yPos_, xPos_, _x, _width, removeMovieClip;
function SimpleAnim () {
super();
}
function set currFrame(aNumber) {
drawFrame(aNumber);
//return(currFrame);
}
function get currFrame() {
return(currFrame_);
}
function getMPY() {
return(_y + mpYOffset_);
}
function createByXML(aXML, parentGame_) {
data_ = new Array();
frames_ = Number(aXML.attributes.frames);
playTime_ = Number(aXML.attributes.playtime);
loops_ = Number(aXML.attributes.loops);
srcBitmap_ = flash.display.BitmapData.loadBitmap(aXML.attributes.src);
looptype_ = Number(aXML.attributes.looptype);
startingFrame_ = Number(aXML.attributes.startingframe) || 0;
mpYOffset_ = Number(aXML.attributes.mpy);
currFrame_ = -1;
frameWidth_ = srcBitmap_.width / frames_;
frameHeight_ = srcBitmap_.height;
frameBitmap_ = new flash.display.BitmapData(frameWidth_, frameHeight_, true, 0);
attachBitmap(frameBitmap_, FRAMEBMPDEPTH);
drawFrame(startingFrame_);
switch (aXML.attributes.poscorner) {
case "ra" :
posCorner_ = CORNERRA;
return;
case "la" :
posCorner_ = CORNERLA;
}
}
function get yPos() {
return(yPos_);
}
function get xPos() {
return(xPos_);
}
function set xPos(aVal) {
switch (posCorner_) {
case CORNERRA :
_x = aVal - _width;
xPos_ = aVal;
break;
case CORNERLA :
_x = aVal;
xPos_ = aVal;
}
//return(xPos);
}
function set yPos(aVal) {
switch (posCorner_) {
case CORNERRA :
case CORNERLA :
_y = aVal;
yPos_ = aVal;
}
//return(yPos);
}
function setPosition(x, y) {
switch (posCorner_) {
case CORNERRA :
_x = x - _width;
_y = y;
return;
case CORNERLA :
xPos = (x);
yPos = (y);
_x = x;
_y = y;
}
}
function drawFrame(aNumber) {
if (currFrame_ != Math.abs(Math.floor(aNumber))) {
currFrame_ = Math.abs(Math.floor(aNumber));
frameBitmap_.copyPixels(srcBitmap_, new flash.geom.Rectangle(frameWidth_ * (currFrame_ - 1), 1, frameWidth_ * currFrame_, frameHeight_), new flash.geom.Point(0, 0));
setPosition(xPos_, yPos_);
}
}
function nextCycle() {
next();
}
function next() {
currFrame = (1);
playCycle();
}
function playCycle() {
com.mosesSupposes.fuse.ZigoEngine.doTween(this, "currFrame", [frames_ + 1], playTime_, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"next"});
}
function playForward(startFrame, endFrame, playTime, sc, callBackFn) {
if (startFrame != undefined) {
currFrame = (startFrame);
}
if (endFrame == undefined) {
endFrame = frames_ - 1;
}
if (playTime == undefined) {
playTime = playTime_;
}
com.mosesSupposes.fuse.ZigoEngine.doTween(this, "currFrame", [endFrame], playTime, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:sc, func:callBackFn});
}
function playBack(startFrame, endFrame, playTime) {
if (startFrame != undefined) {
currFrame = (startFrame);
}
if (endFrame == undefined) {
endFrame = frames_ - 1;
}
if (playTime == undefined) {
playTime = playTime_;
}
com.mosesSupposes.fuse.ZigoEngine.doTween(this, "currFrame", [0], playTime, com.mosesSupposes.fuse.PennerEasing.linear, 0);
}
function play() {
currFrame = (1);
com.mosesSupposes.fuse.ZigoEngine.doTween(this, "currFrame", [frames_], playTime_, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"firstFrame"});
}
function playOnce() {
currFrame = (1);
com.mosesSupposes.fuse.ZigoEngine.doTween(this, "currFrame", [frames_], playTime_, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"_delete"});
}
function _delete() {
_destroy();
frameBitmap_.dispose();
removeMovieClip();
}
function firstFrame() {
currFrame = (1);
}
function stop() {
com.mosesSupposes.fuse.ZigoEngine.removeTween(this);
}
function _destroy() {
com.mosesSupposes.fuse.ZigoEngine.removeTween(this);
return(true);
}
static var LOOP_FWD_BACK = 0;
static var FRAMEBMPDEPTH = 10;
static var CORNERRA = 0;
static var CORNERLA = 1;
}
Symbol 759 MovieClip [__Packages.com.mosesSupposes.fuse.FuseKitCommon] Frame 0
class com.mosesSupposes.fuse.FuseKitCommon
{
static var logOutput;
function FuseKitCommon () {
}
static function _cts() {
return("|_tint|_tintPercent|_brightness|_brightOffset|_contrast|_invertColor|_colorReset|_colorTransform|");
}
static function _resetTo100() {
return("|_alpha|_contrast|_invertColor|_tintPercent|_xscale|_yscale|_scale|");
}
static function _resetTo0() {
return("|_brightness|_brightOffset|_colorReset|_rotation|");
}
static function _underscoreable() {
return(_cts() + "_frame|_x|_y|_xscale|_yscale|_scale|_width|_height|_size|_rotation|_alpha|_fade|_visible|");
}
static function _cbprops() {
return("|skipLevel|cycles|roundResults|extra1|extra2|func|scope|args|startfunc|startscope|startargs|updfunc|updscope|updargs|");
}
static function _fuseEvents() {
return("|onStart|onStop|onPause|onResume|onAdvance|onComplete|");
}
static function _fuseprops() {
return("|command|label|delay|event|eventparams|target|addTarget|trigger|startAt|ease|easing|seconds|duration|time|");
}
static function _validateFuseCommand(c, inGroup, hasArg, outputLevel, simple) {
var valid = false;
var misplaced = false;
switch (c) {
case "start" :
case "stop" :
case "pause" :
case "resume" :
case "setStartProps" :
if (inGroup != true) {
valid = true;
}
break;
case "delay" :
case "trigger" :
if (simple == true) {
if (hasArg == true) {
valid = true;
}
} else {
misplaced = true;
}
inGroup = false;
break;
case "skipTo" :
if (!((hasArg == true) && (inGroup != true))) {
break;
}
valid = true;
}
if ((outputLevel > 0) && (valid == false)) {
error("109", c, inGroup, misplaced);
}
return(valid);
}
static function output(s) {
if (typeof(logOutput) == "function") {
logOutput(s);
}
}
static function error(errorCode) {
var a1 = arguments[1];
var a2 = arguments[2];
var a3 = arguments[3];
if (VERBOSE != true) {
output(("[FuseKitCommon#" + errorCode) + "]");
return(undefined);
}
var es = "";
var _newline = newline;
switch (errorCode) {
case "001" :
es = es + "** ERROR: When using simpleSetup to extend prototypes, you must pass the Shortcuts class. **";
es = es + (_newline + " import com.mosesSupposes.fuse.*;");
es = es + ((_newline + " ZigoEngine.simpleSetup(Shortcuts);") + _newline);
break;
case "002" :
es = es + "** ZigoEngine.doShortcut: shortcuts missing. Use the setup commands: import com.mosesSupposes.fuse.*; ZigoEngine.register(Shortcuts); **";
break;
case "003" :
es = es + ((_newline + "*** Error: DO NOT use #include \"lmc_tween.as\" with this version of ZigoEngine! ***") + _newline);
break;
case "004" :
es = es + (("** ZigoEngine.doTween - too few arguments [" + a1) + "].");
if (Boolean(a2) == true) {
es = es + " If you are trying to use Object Syntax without Fuse, pass FuseItem in your register() or simpleSetup() call. **";
} else {
es = es + " Object syntax call failed. **";
}
break;
case "005" :
es = es + (((("** ZigoEngine.doTween - missing targets[" + a1) + "] and/or props[") + a2) + "] **");
break;
case "006" :
es = es + (("** Error: easing shortcut string not recognized (\"" + a1) + "\"). You may need to pass the in PennerEasing class during register or simpleSetup. **");
break;
case "007" :
es = es + (((("- ZigoEngine: Target locked [" + a1) + "], ignoring tween call [") + a2) + "]");
break;
case "008" :
es = es + "** You must register the Shortcuts class in order to use easy string-type callback parsing. **";
break;
case "009" :
es = es + (("** ZigoEngine: A callback parameter \"" + a1) + "\" was not recognized. **");
break;
case "010" :
es = es + ((((("** " + ((a1 == true) ? "ZigoEngine" : "FuseItem")) + " unable to parse ") + ((a2 == 1) ? "callback[" : (String(a2) + " callbacks["))) + a3) + "]. Try using the syntax {scope:this, func:\"myFunction\"} **");
break;
case "011" :
es = es + (((("- ZigoEngine: Callbacks discarded via skipLevel 2 option [" + a1) + "|") + a2) + "].");
break;
case "012" :
es = es + (((((("- Engine set props or ignored no-change tween on: " + a1) + ", props passed:[") + a2) + "], endvals passed:[") + a3) + "]");
break;
case "013" :
es = es + (((((("- Engine added tween on:\n\ttargets:[" + a1) + "]\n\tprops:[") + a2) + "]\n\tendvals:[") + a3) + "]");
break;
case "014" :
es = es + "** Error: easing function passed is not usable with this engine. Functions need to follow the Robert Penner model. **";
break;
case "015" :
es = es + "** Error: The CustomEasing class must be passed during setup (register or simpleSetup) to use custom easing Arrays. **";
break;
case "016" :
es = es + (("[ ZigoEngine.TIME_MULTIPLIER: " + String(Number(Number(a1) * 100))) + "% ]");
break;
case "101" :
es = es + "** ERROR: Fuse simpleSetup was removed in version 2.0! **";
es = es + (_newline + " You must now use the following commands:");
es = es + ((_newline + _newline) + "\timport com.mosesSupposes.fuse.*;");
es = es + (_newline + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);");
es = es + ((_newline + "Note that PennerEasing is optional, and FuseFMP is also accepted. (FuseFMP.simpleSetup is run automatically if included.)") + _newline);
break;
case "102" :
es = es + (((("** Fuse " + a1) + " index or label not found (") + a2) + ") or out of range. **");
break;
case "103" :
es = es + (((("** Fuse skipTo (" + a1) + ") ignored - targets the current index (") + a2) + "). **");
break;
case "104" :
es = es + (("** Fuse fastForward index out of play range (" + a1) + ") - skipTo has been called instead. **");
break;
case "105" :
es = es + "** An unsupported Array method was called on Fuse. **";
break;
case "106" :
es = es + "** ERROR: You have not set up Fuse correctly. **";
es = es + (_newline + "You must now use the following commands (PennerEasing is optional).");
es = es + (_newline + "\timport com.mosesSupposes.fuse.*;");
es = es + ((_newline + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);") + _newline);
break;
case "107" :
es = es + "** Fuse :: id not found - Aborting open(). **";
break;
case "108" :
es = es + "** Fuse.startRecent: No recent Fuse found to start! **";
break;
case "109" :
es = es + (("** Command \"" + a1) + "\" discarded. ");
if (a2 == true) {
es = es + "Not allowed within a group. **";
} else if (a3 == true) {
es = es + (("Not supported in Object Syntax, use the " + a1) + " property instead. **");
} else {
es = es + "The command may be unrecognized or missing an argument. **";
}
break;
case "110" :
es = es + (((("** " + a1) + " illegal Fuse property discarded:\"") + a2) + "\". Bezier keywords other than x and y cannot be set as start values. **");
break;
case "112" :
es = es + "** Fuse: missing com.mosesSupposes.fuse.ZigoEngine! Cannot tween. **";
break;
case "113" :
es = es + "** FuseItem: A callback has been discarded. Actions with a command may only contain: label, delay, scope, args. **";
break;
case "115" :
es = es + ((a1 + " overlapping prop discarded: ") + a2);
break;
case "116" :
es = es + ("** FuseItem Error: Delays within groups (arrays) and start/update callbacks are not supported when using Fuse without ZigoEngine. Although you need to restructure your Fuse, it should be possible to achieve the same results. **" + _newline);
break;
case "117" :
es = es + (("** " + a1) + ": infinite cycles are not allowed within Fuses - discarded. **");
break;
case "118" :
es = es + ((("** " + a1) + ": No targets found!") + ((a2 == true) ? " [Unable to set start props] **" : " [Skipping tween parameters in this action] **"));
break;
case "119" :
es = es + ((((("** " + a1) + ": ") + ((a2 == 1) ? "" : (a2 + " actions in the group"))) + " missing targets") + ((a3 == true) ? " during setStartProps **" : " **"));
break;
case "120" :
es = es + (((("** " + a1) + ": conflict with \"") + a2) + "\". Property might be doubled within a grouped-action array. **");
break;
case "121" :
es = es + "** Fuse timecode formatting requires \"00:\" formatting (example:\"01:01:33\" yields 61.33 seconds.) **";
break;
case "122" :
es = es + (("** Event \"" + a1) + "\" reserved by Fuse. **");
break;
case "123" :
es = es + (("** A Fuse event parameter failed in " + a1) + " **");
break;
case "124" :
es = es + (((("** " + a1) + ": trigger:") + a2) + " ignored - only one trigger is allowed per action **");
break;
case "125" :
es = es + (a1 + " Warning - fastForward hit an item during its tween cycle, may malfunction.");
break;
case "201" :
es = es + (("**** FuseFMP cannot initialize argument " + a1) + " (BitmapFilters cannot be applied to this object type) ****");
break;
case "202" :
es = es + (((("** FuseFMP error: A " + a1) + " could not be created for ") + a2) + " **");
break;
case "203" :
es = es + (("** FuseFMP.setFilterProps - too few arguments passed (" + a1) + ") - minimum 2 required. **");
break;
case "204" :
es = es + (("** FuseFMP.setFilterProps could not locate the filter passed. (" + a1) + ") **");
}
output(es);
}
static function parseCallback(callback, targets, outputLevel, callerIsEngine, addprefix) {
if (callback._vcb == true) {
return(callback);
}
var validCBs = {_vcb:true, skipLevel:_global.com.mosesSupposes.fuse.ZigoEngine.SKIP_LEVEL, cycles:1};
if (callback == undefined) {
return(validCBs);
}
var cbErrors = [];
if (typeof(callback) == "object") {
if (((callback.skipLevel != undefined) && (typeof(callback.skipLevel) == "number")) && (callback.skipLevel != _global.com.mosesSupposes.fuse.ZigoEngine.SKIP_LEVEL)) {
if ((callback.skipLevel >= 0) && (callback.skipLevel <= 2)) {
validCBs.skipLevel = callback.skipLevel;
}
}
if (callback.cycles != undefined) {
if ((typeof(callback.cycles) == "number") && (callback.cycles > -1)) {
validCBs.cycles = callback.cycles;
} else if (callback.cycles.toUpperCase() == "LOOP") {
validCBs.cycles = 0;
}
}
if (callback.extra1 != undefined) {
validCBs.extra1 = callback.extra1;
}
if (callback.extra2 != undefined) {
validCBs.extra2 = callback.extra2;
}
if ((callback.roundResults === true) || (callback.roundResults === false)) {
validCBs.roundResults = callback.roundResults;
}
} else {
callback = {func:callback};
}
var prefixes = ["start", "upd", ""];
var easyfuncparse = _global.com.mosesSupposes.fuse.Shortcuts.parseStringTypeCallback;
for (var i in prefixes) {
var prefix = prefixes[i];
var fstr = callback[prefix + "func"];
if (((fstr != undefined) && (typeof(fstr) == "string")) && (fstr.indexOf("(") > -1)) {
if (easyfuncparse != undefined) {
var efc = easyfuncparse(fstr);
if (efc.func != undefined) {
callback[prefix + "scope"] = efc.scope;
callback[prefix + "func"] = efc.func;
callback[prefix + "args"] = efc.args;
}
} else if (outputLevel > 0) {
error("008");
}
}
}
var basescope = callback.scope;
for (var i in callback) {
var fi = i.toLowerCase().indexOf("func");
if (fi > -1) {
var prefix = i.slice(0, fi);
var func = callback[i];
var args = callback[prefix + "args"];
var scope = ((callback[prefix + "scope"] == undefined) ? (basescope) : (callback[prefix + "scope"]));
if ((typeof(func) == "string") && (scope[func] == undefined)) {
for (var j in targets) {
var targ = targets[j];
if (typeof(targ[func]) == "function") {
scope = targ;
break;
}
if (typeof(targ._parent[func]) == "function") {
scope = targ._parent;
break;
}
}
if ((scope == undefined) && (_level0[func] != undefined)) {
scope = _level0;
}
if ((scope == undefined) && (_global[func] != undefined)) {
scope = _global;
}
}
if (typeof(func) != "function") {
if (typeof(scope[String(func)]) == "function") {
func = scope[String(func)];
} else {
func = eval (String(func));
}
}
if (func == undefined) {
cbErrors.push(String((((((((addprefix == null) ? (i) : (addprefix + i)) + ":") + ((typeof(callback[i]) == "string") ? (("\"" + callback[i]) + "\"") : (callback[i]))) + "/") + prefix) + "scope:") + scope));
} else {
if ((args != undefined) && (!(args instanceof Array))) {
args = [args];
}
if (prefix == "") {
prefix = "end";
}
validCBs[prefix] = {s:scope, f:func, a:args};
if (callerIsEngine == true) {
validCBs[prefix].id = ++cbTicker;
}
if (prefix == "start") {
validCBs.start.fired = false;
}
}
} else if (_cbprops().indexOf(("|" + i) + "|") == -1) {
error("009", i);
}
}
if ((cbErrors.length > 0) && (outputLevel > 0)) {
if (outputLevel > 0) {
error("010", callerIsEngine, cbErrors.length, cbErrors.toString());
}
}
return(validCBs);
}
static var VERSION = "Fuse Kit 2.1.4 Copyright (c) 2006 Moses Gunesch, MosesSupposes.com under MIT Open Source License";
static var VERBOSE = true;
static var ALL = "ALL";
static var ALLCOLOR = "ALLCOLOR";
static var cbTicker = 0;
}
Symbol 760 MovieClip [__Packages.com.mosesSupposes.fuse.ZigoEngine] Frame 0
class com.mosesSupposes.fuse.ZigoEngine
{
static var extensions, updateTime, tweenHolder, instance, _listeners, broadcastMessage, updateIntId;
function ZigoEngine () {
}
static function addListener(handler) {
AsBroadcaster.initialize(com.mosesSupposes.fuse.ZigoEngine);
addListener(handler);
}
static function removeListener(handler) {
}
static function isPlaying() {
return(_playing);
}
static function simpleSetup(shortcutsClass) {
if (arguments.length > 0) {
register.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
}
_global.ZigoEngine = com.mosesSupposes.fuse.ZigoEngine;
if (extensions.fuse != undefined) {
_global.Fuse = extensions.fuse;
}
if (extensions.fuseFMP != undefined) {
extensions.fuseFMP.simpleSetup();
}
initialize(MovieClip.prototype, Button.prototype, TextField.prototype);
if (extensions.shortcuts == undefined) {
com.mosesSupposes.fuse.FuseKitCommon.error("001");
}
}
static function register(classReference) {
if (extensions == undefined) {
extensions = {};
}
var supported = "|fuse|fuseItem|fuseFMP|shortcuts|pennerEasing|customEasing|";
for (var i in arguments) {
var key = arguments[i].registryKey;
if ((extensions[key] == undefined) && (supported.indexOf(("|" + key) + "|") > -1)) {
extensions[key] = arguments[i];
if ((key == "fuseFMP") || (key == "shortcuts")) {
Object(extensions[key]).initialize();
}
}
}
}
static function initialize(target) {
if (arguments.length > 0) {
initializeTargets.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
if (extensions.shortcuts != undefined) {
extensions.shortcuts.addShortcutsTo.apply(extensions.shortcuts, arguments);
}
}
}
static function deinitialize(target) {
if ((arguments.length == 0) || (target == null)) {
arguments.push(MovieClip.prototype, Button.prototype, TextField.prototype);
}
deinitializeTargets.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
if (extensions.shortcuts != undefined) {
extensions.shortcuts.removeShortcutsFrom.apply(extensions.shortcuts, arguments);
}
}
static function getUpdateInterval() {
return(updateTime);
}
static function setUpdateInterval(time) {
if (_playing) {
setup(true);
updateTime = time;
setup();
} else {
updateTime = time;
}
}
static function getControllerDepth() {
return(tweenHolder.getDepth());
}
static function setControllerDepth(depth) {
if ((depth == null) || (_global.isNaN(depth) == true)) {
depth = 6789;
}
if (Object(tweenHolder).proof != null) {
tweenHolder.swapDepths(depth);
} else {
tweenHolder = _root.createEmptyMovieClip("ZigoEnginePulse", depth);
}
}
static function doShortcut(targets, methodName) {
if (extensions.shortcuts == undefined) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("002");
}
return(null);
}
return(extensions.shortcuts.doShortcut.apply(extensions.shortcuts, arguments));
}
static function doTween(targets, props, endvals, seconds, ease, delay, callback) {
if (extensions.fuse.addBuildItem(arguments) == true) {
return(null);
}
if (TIME_MULTIPLIER != prevTimeMult) {
TIME_MULTIPLIER = Math.abs(TIME_MULTIPLIER);
if (_global.isNaN(TIME_MULTIPLIER) == true) {
TIME_MULTIPLIER = 1;
}
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("016", TIME_MULTIPLIER);
}
prevTimeMult = TIME_MULTIPLIER;
}
if ((instance == undefined) || ((Object(tweenHolder).proof == undefined) && (updateTime == undefined))) {
if ((MovieClip.prototype.tween != null) && (typeof(_global.$tweenManager) == "object")) {
com.mosesSupposes.fuse.FuseKitCommon.error("003");
}
instance = new com.mosesSupposes.fuse.ZManager();
_playing = false;
}
var params = instance.paramsObj(targets, props, endvals, true);
var ta = (((params.tg[0] == null) || (params.tg.length == 0)) ? undefined : (params.tg));
if (((params.pa == undefined) || (ta == undefined)) || (arguments.length < 3)) {
if (((extensions.fuseItem != null) && (arguments.length == 1)) && (typeof(arguments[0]) == "object")) {
return(extensions.fuseItem.doTween(arguments[0]));
}
if (OUTPUT_LEVEL > 0) {
if (arguments.length < 3) {
com.mosesSupposes.fuse.FuseKitCommon.error("004", (((arguments.length == 1) && (arguments[0] == null)) ? "1 (null)" : (String(arguments.length))), Boolean(extensions.fuseItem == null));
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("005", ta.toString(), params.pa.toString());
}
}
return(null);
}
if (_playing != true) {
setup();
}
if ((seconds == null) || (_global.isNaN(seconds) == true)) {
seconds = DURATION || 1;
} else if (seconds < 0.01) {
seconds = 0;
}
seconds = seconds * TIME_MULTIPLIER;
if (((delay < 0.01) || (delay == null)) || (_global.isNaN(delay) == true)) {
delay = 0;
}
delay = delay * TIME_MULTIPLIER;
var validCBs = com.mosesSupposes.fuse.FuseKitCommon.parseCallback(callback, ta, OUTPUT_LEVEL, true);
var eqf;
if (typeof(ease) == "function") {
if (typeof(Function(ease).call(null, 1, 1, 1, 1)) == "number") {
eqf = Function(ease);
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("014", ease);
}
} else if ((ease == null) || (ease == "")) {
if (EASING instanceof Function) {
eqf = Function(EASING);
} else if (extensions.pennerEasing != undefined) {
ease = EASING;
}
}
if ((typeof(ease) == "string") && (ease != "")) {
if (extensions.pennerEasing[ease] != undefined) {
eqf = extensions.pennerEasing[ease];
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("006", ease);
}
} else if (ease instanceof Array) {
if (extensions.customEasing != undefined) {
validCBs.extra1 = ease;
if (typeof(ease[0]) == "number") {
eqf = extensions.customEasing.precalced;
} else {
eqf = extensions.customEasing.fromCurve;
}
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("015", ease);
}
}
if (typeof(eqf) != "function") {
eqf = function (t, b, c, d) {
return((c * (((((((t = (t / d) - 1)) * t) * t) * t) * t) + 1)) + b);
};
}
if (_listeners.length > 0) {
broadcastMessage.call(com.mosesSupposes.fuse.ZigoEngine, "onTweenAdd", ta, params.pa, params.va, seconds, eqf, delay, validCBs);
}
var propsAdded = "";
for (var i in ta) {
var o = ta[i];
if (o.__zigoID__ == null) {
initializeTargets(o);
} else if (instance.getStatus("locked", o) == true) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("007", ((o._name != undefined) ? (o._name) : (o.toString())), params.pa.toString());
}
continue;
}
var pStr = instance.addTween(o, params.pa, params.va, seconds, eqf, delay, validCBs);
propsAdded = ((pStr == null) ? "|" : (pStr + "|")) + propsAdded;
}
propsAdded = propsAdded.slice(0, -1);
return((((propsAdded == "") || (propsAdded == "|")) ? null : (propsAdded)));
}
static function removeTween(targs, props) {
instance.removeTween(targs, props);
}
static function isTweening(targ, prop) {
return(Boolean(instance.getStatus("active", targ, prop)));
}
static function getTweens(targ) {
if (instance == undefined) {
return(0);
}
return(Number(instance.getStatus("count", targ)));
}
static function lockTween(targ, setLocked) {
instance.alterTweens("lock", targ, setLocked == true);
}
static function isTweenLocked(targ) {
return(Boolean(instance.getStatus("locked", targ)));
}
static function ffTween(targs, props, suppressEndEvents) {
instance.alterTweens("ff", targs, props, null, suppressEndEvents);
}
static function skipTweenTo(seconds, targs, props) {
instance.alterTweens("skipTo", targs, props, false, false, seconds);
}
static function rewTween(targs, props, pauseFlag, suppressStartEvents) {
instance.alterTweens("rewind", targs, props, pauseFlag, suppressStartEvents);
}
static function isTweenPaused(targ, prop) {
return(Boolean(instance.getStatus("paused", targ, prop)));
}
static function pauseTween(targs, props) {
instance.alterTweens("pause", targs, props);
}
static function unpauseTween(targs, props) {
instance.alterTweens("unpause", targs, props);
}
static function resumeTween(targs, props) {
instance.alterTweens("unpause", targs, props);
}
static function setColorByKey(targetObj, type, amt, rgb) {
new Color(targetObj).setTransform(getColorTransObj(type, amt, rgb));
}
static function getColorTransObj(type, amt, rgb) {
switch (type) {
case "brightness" :
var percent = (100 - Math.abs(amt));
var offset = ((amt > 0) ? (255 * (amt / 100)) : 0);
return({ra:percent, rb:offset, ga:percent, gb:offset, ba:percent, bb:offset});
case "brightOffset" :
return({ra:100, rb:255 * (amt / 100), ga:100, gb:255 * (amt / 100), ba:100, bb:255 * (amt / 100)});
case "contrast" :
return({ra:amt, rb:128 - (1.28 * amt), ga:amt, gb:128 - (1.28 * amt), ba:amt, bb:128 - (1.28 * amt)});
case "invertColor" :
return({ra:100 - (2 * amt), rb:amt * 2.55, ga:100 - (2 * amt), gb:amt * 2.55, ba:100 - (2 * amt), bb:amt * 2.55});
case "tint" :
if (rgb == null) {
break;
}
var rgbnum;
if (typeof(rgb) == "string") {
if (rgb.charAt(0) == "#") {
rgb = rgb.slice(1);
}
rgb = ((rgb.charAt(1).toLowerCase() != "x") ? ("0x" + rgb) : (rgb));
}
rgbnum = Number(rgb);
return({ra:100 - amt, rb:(rgbnum >> 16) * (amt / 100), ga:100 - amt, gb:((rgbnum >> 8) & 255) * (amt / 100), ba:100 - amt, bb:(rgbnum & 255) * (amt / 100)});
}
return({rb:0, ra:100, gb:0, ga:100, bb:0, ba:100});
}
static function getColorKeysObj(targOrTransObj) {
var trans = ((targOrTransObj.ra != undefined) ? (targOrTransObj) : (new Color(targOrTransObj).getTransform()));
var sim_a = ((trans.ra == trans.ga) && (trans.ga == trans.ba));
var sim_b = ((trans.rb == trans.gb) && (trans.gb == trans.bb));
var o = {tintPercent:Number(((sim_a == true) ? (100 - trans.ra) : 0))};
if (o.tintPercent != 0) {
var ratio = (100 / o.tintPercent);
o.tint = (((trans.rb * ratio) << 16) | ((trans.gb * ratio) << 8)) | (trans.bb * ratio);
var hexStr = o.tint.toString(16);
var toFill = (6 - hexStr.length);
while ((toFill--) > 0) {
hexStr = "0" + hexStr;
}
o.tintString = "0x" + hexStr.toUpperCase();
}
if ((sim_a == true) && (sim_b == true)) {
if (trans.ra < 0) {
o.invertColor = trans.rb * 0.392156862745098;
} else if ((trans.ra == 100) && (trans.rb != 0)) {
o.brightOffset = trans.rb * 0.392156862745098;
}
if (trans.ra != 100) {
if ((trans.rb == 0) || ((trans.rb != 0) && (((255 * ((100 - trans.ra) / 100)) - trans.rb) <= 1))) {
o.brightness = ((trans.rb != 0) ? (100 - trans.ra) : (trans.ra - 100));
}
if (((128 - (1.28 * trans.ra)) - trans.rb) <= 1) {
o.contrast = trans.ra;
}
}
}
return(o);
}
static function initializeTargets() {
for (var i in arguments) {
var obj = arguments[i];
if ((((obj == MovieClip.prototype) || (obj == Button.prototype)) || (obj == TextField.prototype)) || (obj == Object.prototype)) {
if (obj.oldAddListener == undefined) {
if (obj == TextField.prototype) {
obj.oldAddListener = obj.addListener;
_global.ASSetPropFlags(obj, "oldAddListener", 7, 1);
}
obj.addListener = function (o) {
if (this.__zigoID__ == undefined) {
com.mosesSupposes.fuse.ZigoEngine.initializeTargets(this);
}
if (this instanceof TextField) {
Function(this.oldAddListener).call(this, o);
} else {
this.addListener(o);
}
};
if (obj == MovieClip.prototype) {
_global.ASSetPropFlags(obj, "addListener", 7, 1);
}
}
} else if (obj.__zigoID__ == undefined) {
obj.__zigoID__ = zigoIDs;
_global.ASSetPropFlags(obj, "__zigoID__", 7, 1);
zigoIDs++;
if ((obj._listeners == null) || (obj.addListener == null)) {
AsBroadcaster.initialize(obj);
}
}
}
}
static function deinitializeTargets() {
for (var i in arguments) {
var obj = arguments[i];
if (obj.__zigoID__ != undefined) {
_global.ASSetPropFlags(obj, "__zigoID__,_listeners,broadcastMessage,addListener,removeListener", 0, 2);
delete obj.__zigoID__;
delete obj._listeners;
delete obj.broadcastMessage;
delete obj.addListener;
delete obj.removeListener;
}
if (obj.oldAddListener != undefined) {
_global.ASSetPropFlags(obj, "oldAddListener", 0, 2);
obj.addListener = obj.oldAddListener;
delete obj.oldAddListener;
}
}
}
static function __mgrRelay(inst, method, args) {
if (inst == instance) {
Function(com.mosesSupposes.fuse.ZigoEngine[method]).apply(com.mosesSupposes.fuse.ZigoEngine, args);
}
}
static function setup(deinitFlag) {
if (deinitFlag == true) {
_playing = false;
clearInterval(updateIntId);
delete tweenHolder.onEnterFrame;
return(undefined);
}
instance.cleanUp();
clearInterval(updateIntId);
delete updateIntId;
if ((updateTime != null) && (updateTime > 0)) {
updateIntId = setInterval(instance, "update", updateTime);
} else {
if (Object(tweenHolder).proof == null) {
setControllerDepth(6789);
Object(tweenHolder).proof = 1;
}
var _inst = instance;
tweenHolder.onEnterFrame = function () {
_inst.update.call(_inst);
};
}
_playing = true;
instance.now = getTimer();
}
static var VERSION = com.mosesSupposes.fuse.FuseKitCommon.VERSION + ", ZigoEngine based on concepts by L.Zigo";
static var EASING = "easeOutQuint";
static var DURATION = 1;
static var TIME_MULTIPLIER = 1;
static var ROUND_RESULTS = false;
static var OUTPUT_LEVEL = 1;
static var AUTOSTOP = false;
static var SKIP_LEVEL = 0;
static var _playing = false;
static var zigoIDs = 0;
static var prevTimeMult = 1;
}
Symbol 761 MovieClip [__Packages.com.mosesSupposes.fuse.ZManager] Frame 0
class com.mosesSupposes.fuse.ZManager
{
var tweens, now;
function ZManager () {
tweens = {};
numTweens = 0;
}
function addTween(obj, props, endvals, seconds, ease, delay, callback) {
var skipLevel = ((callback.skipLevel == undefined) ? 0 : (callback.skipLevel));
var cycles = ((callback.cycles == undefined) ? 1 : (callback.cycles));
var extra1 = callback.extra1;
var extra2 = callback.extra2;
var ip = [];
var fmp = _global.com.mosesSupposes.fuse.FuseFMP;
var fmps = String(("|" + fmp.getAllShortcuts().join("|")) + "|");
var cts = com.mosesSupposes.fuse.FuseKitCommon._cts();
var propsAdded = "";
var valsAdded = "";
var zID = obj.__zigoID__;
var to = tweens[String(zID)];
if ((to != undefined) && (com.mosesSupposes.fuse.ZigoEngine.AUTOSTOP == true)) {
if (obj._listeners.length > 0) {
for (var j in to.props) {
ip.unshift(j);
}
}
to.numProps = 0;
cleanUp(true);
}
for (var i in props) {
var prop = props[i];
var ep = endvals[i];
var fade = 0;
if (prop == "_fade") {
prop = "_alpha";
fade = ((ep < 50) ? -1 : 1);
}
var isCT = (cts.indexOf(("|" + prop) + "|") > -1);
var oldCP = to.colorProp;
if (to != undefined) {
if ((isCT == true) && (oldCP != undefined)) {
ip.unshift(oldCP);
delete to.props[oldCP];
delete to.colorProp;
to.numProps--;
} else if (to.props[prop] != undefined) {
ip.unshift(prop);
delete to[prop];
to.numProps--;
}
}
var o = {c:-1, fmp:-1, complex:-1};
var isImmed = (((skipLevel == 0) && ((seconds + delay) == 0)) || ((skipLevel > 0) && (seconds == 0)));
var propChanged = false;
var isFMP = ((fmp != undefined) && (fmps.indexOf(("|" + prop) + "|") > -1));
var isColorsArray = ((prop.toLowerCase().indexOf("colors") > -1) && (ep instanceof Array));
var isFMPC = (((isFMP == true) && (prop.indexOf("lor") > -1)) && (prop.charAt(2) != "l"));
if (isFMP == true) {
o.fmp = fmp;
o.ps = fmp.getFilterProp(obj, prop, true);
o.special = true;
}
if (((isCT == true) || (isColorsArray == true)) || (isFMPC && (isImmed == false))) {
o.complex = 1;
if (isCT == true) {
o.c = new Color(obj);
o.ps = Color(o.c).getTransform();
var cp = ((((prop == "_tint") || (prop == "_tintPercent")) || (prop == "_colorReset")) ? "tint" : (prop.slice(1)));
var amt = null;
var tint = null;
if (prop != "_colorTransform") {
if (cp == "tint") {
if (typeof(ep) == "object") {
tint = ep.tint;
amt = ((_global.isNaN(ep.percent) == true) ? 100 : (ep.percent));
} else if ((prop == "_tintPercent") || (prop == "_colorReset")) {
var curPct = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tintPercent;
if (prop == "_colorReset") {
amt = Math.min(curPct, 100 - Math.abs(Number(ep)));
} else {
amt = ((typeof(ep) == "string") ? ((curPct || 0) + Number(ep)) : Number(ep));
}
amt = Math.max(0, Math.min(amt, 100));
tint = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tint || 0;
} else {
tint = ep;
amt = 100;
}
} else {
amt = ((typeof(ep) == "string") ? ((com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj)[cp] || 0) + Number(ep)) : (ep));
}
ep = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj(cp, amt, tint);
}
if (isImmed == true) {
if (prop == "_colorTransform") {
Color(o.c).setTransform(ep);
} else {
com.mosesSupposes.fuse.ZigoEngine.setColorByKey(obj, cp, amt, tint);
}
} else {
var chObj = getChangeObj(o.ps, ep, false, false);
o.ch = chObj.map;
if (chObj.changed == true) {
propChanged = true;
}
}
} else if (isImmed == true) {
fmp.setFilterProp(obj, prop, ep);
} else if (isColorsArray == true) {
o.c = 2;
o.ch = [];
for (var j in ep) {
if (ep[j] != null) {
if (o.ps == null) {
o.ps = [];
}
o.ps[j] = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, ((o.ps[j] == null) ? obj[prop][j] : o.ps[j]));
var chObj = getChangeObj(o.ps[j], com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, ep[j]), true, false);
o.ch[j] = chObj.map;
if (chObj.changed == true) {
propChanged = true;
}
}
}
} else {
o.c = 1;
o.ps = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, o.ps);
var chObj = getChangeObj(o.ps, com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, ep), true, false);
o.ch = chObj.map;
if (chObj.changed == true) {
propChanged = true;
}
}
} else if (prop == "_bezier_") {
removeTween(obj, "_x,_y", true);
if (isImmed == true) {
if ((ep.x != null) && (_global.isNaN(Number(ep.x)) == false)) {
obj._x = ((typeof(ep.x) == "string") ? (obj._x + Number(ep.x)) : (ep.x));
}
if ((ep.y != null) && (_global.isNaN(Number(ep.y)) == false)) {
obj._y = ((typeof(ep.y) == "string") ? (obj._y + Number(ep.y)) : (ep.y));
}
} else {
o.special = true;
o.ps = 0;
o.ch = 1;
o.bz = {sx:obj._x, sy:obj._y};
if ((ep.x == null) || (_global.isNaN(Number(ep.x)))) {
ep.x = o.bz.sx;
}
if ((ep.y == null) || (_global.isNaN(Number(ep.y)))) {
ep.y = o.bz.sy;
}
o.bz.chx = ((typeof(ep.x) == "string") ? (Number(ep.x)) : (ep.x - o.bz.sx));
if (_global.isNaN(o.bz.chx) == true) {
o.bx.chx = 0;
}
o.bz.chy = ((typeof(ep.y) == "string") ? (Number(ep.y)) : (ep.y - o.bz.sy));
if (_global.isNaN(o.bz.chy) == true) {
o.bx.chy = 0;
}
if ((ep.controlX == null) || (_global.isNaN(Number(ep.controlX)))) {
o.bz.ctrlx = o.bz.sx + (o.bz.chx / 2);
} else {
o.bz.ctrlx = ((typeof(ep.controlX) == "string") ? (o.bz.sx + Number(ep.controlX)) : (ep.controlX));
}
if ((ep.controlY == null) || (_global.isNaN(Number(ep.controlY)))) {
o.bz.ctrly = o.bz.sy + (o.bz.chy / 2);
} else {
o.bz.ctrly = ((typeof(ep.controlY) == "string") ? (o.bz.sy + Number(ep.controlY)) : (ep.controlY));
}
o.bz.ctrlx = o.bz.ctrlx - o.bz.sx;
o.bz.ctrly = o.bz.ctrly - o.bz.sy;
propChanged = (o.bz.chx + o.bz.chy) != 0;
}
} else {
if (typeof(ep) == "object") {
o.complex = ((ep instanceof Array) ? 0 : 1);
}
if ((prop == "_x") || (prop == "_y")) {
removeTween(obj, "_bezier_", true);
}
if ((prop == "_frame") && (typeof(obj) == "movieclip")) {
o.ps = obj._currentframe;
o.special = true;
} else if (isFMP == false) {
if (o.complex > -1) {
o.ps = ((o.complex == 0) ? ([]) : ({}));
for (var j in ep) {
o.ps[j] = obj[prop][j];
}
} else {
o.ps = obj[prop];
}
}
if (isImmed == true) {
if (isFMP == true) {
fmp.setFilterProp(obj, prop, ((typeof(ep) == "string") ? (o.ps + Number(ep)) : (ep)));
} else if (o.complex > -1) {
for (var j in ep) {
if ((ep[j] != null) && (_global.isNaN(Number(ep[j])) == false)) {
obj[prop][j] = ((typeof(ep[j]) == "string") ? (o.ps[j] + Number(ep[j])) : ep[j]);
if (_global.isNaN(obj[prop][j]) == true) {
obj[prop][j] = 0;
}
}
}
} else {
obj[prop] = ((typeof(ep) == "string") ? (o.ps + Number(ep)) : (ep));
if (fade == 1) {
obj._visible = true;
} else if (fade == -1) {
obj._visible = false;
}
}
} else if (o.complex > -1) {
var chObj = getChangeObj(o.ps, ep, isFMP, o.complex == 0);
o.ch = chObj.map;
if (chObj.changed == true) {
propChanged = true;
}
} else {
if ((ep == null) || (_global.isNaN(Number(ep)))) {
ep = o.ps;
}
o.ch = ((typeof(ep) == "string") ? (Number(ep)) : (Number(ep) - o.ps));
if (_global.isNaN(o.ch) == true) {
o.ch = 0;
}
propChanged = o.ch != 0;
}
}
if (((skipLevel == 0) && ((propChanged == true) || (isImmed == false))) || ((propChanged == true) && (isImmed == false))) {
if ((o.complex > -1) && (!(o.c === 2))) {
o.ps = [o.ps];
o.ch = [o.ch];
}
o.ts = now + (delay * 1000);
o.pt = -1;
o.d = seconds * 1000;
o.ef = ease;
o.sf = false;
o.cycles = cycles;
if (extra1 != undefined) {
o.e1 = extra1;
}
if (extra2 != undefined) {
o.e2 = extra2;
}
o.v = fade;
if (callback.start != undefined) {
o.scb = callback.start;
}
if (callback.upd != undefined) {
o.ucb = callback.upd;
}
if (callback.end != undefined) {
o.ecb = callback.end;
}
if (callback.roundResults != undefined) {
o.rr = callback.roundResults;
}
if (tweens[String(zID)] == undefined) {
to = (tweens[String(zID)] = {numProps:0, locked:false, targ:obj, targID:String(("\"" + ((obj._name != undefined) ? (obj._name) : (obj.toString()))) + "\""), targZID:zID, props:{}});
numTweens++;
}
if (isCT == true) {
to.colorProp = prop;
}
to.props[prop] = o;
to.numProps++;
propsAdded = (prop + ",") + propsAdded;
valsAdded = (((typeof(ep) == "string") ? (("\"" + ep) + "\"") : (ep)) + ",") + valsAdded;
}
o = undefined;
}
if ((to == undefined) || (to.numProps <= 0)) {
cleanUp();
}
if ((ip.length > 0) && (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0)) {
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:obj, props:ip, __zigoID__:zID, during:"add"});
}
if (propsAdded == "") {
if (skipLevel == 2) {
if (com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL == 2) {
com.mosesSupposes.fuse.FuseKitCommon.error("011", ((obj._name != undefined) ? (obj._name) : (obj.toString())), props.toString());
}
} else {
var de = (obj._listeners.length > 0);
if (de == true) {
obj.broadcastMessage("onTweenStart", {target:obj, props:props});
}
if (callback.start != undefined) {
callback.start.f.apply(callback.start.s, callback.start.a);
}
if (de == true) {
obj.broadcastMessage("onTweenUpdate", {target:obj, props:props});
}
if (callback.upd != undefined) {
callback.upd.f.apply(callback.upd.s, callback.upd.a);
}
if (de == true) {
obj.broadcastMessage("onTweenEnd", {target:obj, props:props});
}
if (callback.end != undefined) {
callback.end.f.apply(callback.end.s, callback.end.a);
}
}
cleanUp();
}
if (com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL == 2) {
if (propsAdded == "") {
com.mosesSupposes.fuse.FuseKitCommon.error("012", ((obj._name != undefined) ? (obj._name) : (obj.toString())), props.toString(), endvals.toString());
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("013", ((obj._name != undefined) ? (obj._name) : (obj.toString())), propsAdded.slice(0, -1), valsAdded.slice(0, -1));
}
}
return(((propsAdded == "") ? null : (propsAdded.slice(0, -1))));
}
function removeTween(targs, props, noInit) {
var ip = {};
var o = paramsObj(targs, props);
if (o.none == true) {
return(undefined);
}
var all = o.all;
var allp = o.allprops;
var tg = ((all == true) ? (tweens) : (Object(o.tg)));
var missing = false;
for (var j in tg) {
var id = ((all == true) ? (j) : (String(tg[j].__zigoID__)));
var to = tweens[id];
var po = ((allp == true) ? (to.props) : (o.props));
for (var i in po) {
var allcolor = ((i == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) && (to.colorProp != undefined));
if ((to.props[i] != undefined) || (allcolor == true)) {
if (ip[id] == null) {
ip[id] = [];
}
ip[id].unshift(i);
if ((i == to.colorProp) || (allcolor == true)) {
delete to.props[to.colorProp];
delete to.colorProp;
} else {
delete to.props[i];
}
to.numProps--;
if (to.numProps <= 0) {
missing = true;
break;
}
}
}
}
if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) {
for (var k in ip) {
var t = tweens[k].targ;
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(t.addProperty) == "function") ? (t) : (("[MISSING(\"" + tweens[k].targID) + "\")]")), props:ip[k], __zigoID__:tweens[k].targZID, during:((noInit == true) ? "add" : "remove")});
}
}
if (missing == true) {
cleanUp(noInit);
}
}
function alterTweens(type, targs, props, pauseFlag, noEvents, skipTo) {
if (type == "lock") {
tweens[String(targs.__zigoID__)].locked = props;
return(undefined);
}
var o = paramsObj(targs, props);
if (o.none == true) {
return(undefined);
}
var all = o.all;
var allp = o.allprops;
var tg = ((all == true) ? (tweens) : (Object(o.tg)));
var hits = 0;
for (var j in tg) {
var id = ((all == true) ? (j) : (String(tg[j].__zigoID__)));
var to = tweens[id];
var po = ((allp == true) ? (to.props) : (o.props));
if (po.ALLCOLOR == true) {
po[to.colorProp] = true;
delete po.ALLCOLOR;
}
for (var prop in po) {
hits++;
var t = to.props[prop];
if (type == "rewind") {
if (pauseFlag == true) {
t.pt = now;
}
t.ts = now;
if (noEvents != true) {
t.sf = false;
if (t.scb != undefined) {
t.scb.fired = false;
}
}
} else if (type == "ff") {
if (noEvents == true) {
t.suppressEnd = true;
}
t.o = true;
t.pt = -1;
t.ts = now - t.d;
} else if (type == "skipTo") {
t.ts = Math.min(now, (t.ts + (now - t.ts)) - (skipTo * 1000));
} else if (type == "pause") {
if (t.pt == -1) {
t.pt = now;
}
} else if (type == "unpause") {
if (t.pt != -1) {
t.ts = now - (t.pt - t.ts);
t.pt = -1;
}
}
}
}
if ((type == "ff") && (hits > 0)) {
update();
} else if ((type == "rewind") && (hits > 0)) {
update(true);
}
}
function getStatus(type, targ, param) {
if (targ == null) {
return(null);
}
var all = (String(targ).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL);
var t = tweens[String(targ.__zigoID__)];
switch (type) {
case "paused" :
var props = t.props;
if (param != null) {
if (props[String(param)] == undefined) {
return(false);
}
return(Boolean(props[String(param)].pt != -1));
}
for (var i in props) {
if (props[i].pt != -1) {
return(true);
}
}
return(false);
case "active" :
if (param == null) {
return(Boolean(t != undefined));
}
if (String(param).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) {
return(Boolean(t.colorProp != undefined));
}
return(Boolean(t.props[String(param)] != undefined));
case "count" :
if (!all) {
return(t.numProps);
}
var count = 0;
for (var i in tweens) {
count = count + tweens[i].numProps;
}
return(count);
case "locked" :
return(t.locked);
}
}
function update(force) {
var scb = {};
var ucb = {};
var ecb = {};
var sp = {};
var up = {};
var ep = {};
var missing = false;
var RR = com.mosesSupposes.fuse.ZigoEngine.ROUND_RESULTS;
for (var i in tweens) {
var to = tweens[i];
var targ = to.targ;
var props = to.props;
var evtFlag = (targ._listeners.length > 0);
if (targ.__zigoID__ == undefined) {
missing = true;
if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) {
var plist = [];
for (var prop in props) {
plist.unshift(prop);
}
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(targ.addProperty) == "function") ? (targ) : (("[MISSING:" + to.targID) + "]")), props:plist, __zigoID__:to.targZID, during:"update"});
}
continue;
}
for (var prop in props) {
var t = props[prop];
if (((t.ts > now) || (t.pt != -1)) && (force != true)) {
continue;
}
var done = (now >= (t.ts + t.d));
if (t.complex == -1) {
var val;
if (done == true) {
val = t.ps + t.ch;
if ((t.cycles > 1) || (t.cycles == 0)) {
if (t.cycles > 1) {
t.cycles--;
}
t.ps = val;
t.ch = -t.ch;
t.ts = now;
done = false;
}
} else {
val = t.ef(now - t.ts, t.ps, t.ch, t.d, t.e1, t.e2);
}
if (_global.isNaN(val) == false) {
if ((prop != "_bezier_") && ((t.rr == true) || ((RR == true) && (!(t.rr === false))))) {
val = Math.round(Number(val));
}
if (t.special != true) {
targ[prop] = val;
} else if (t.fmp != -1) {
t.fmp.setFilterProp(targ, prop, val);
} else if (prop == "_bezier_") {
var bz = t.bz;
var x = (bz.sx + (val * (((2 * (1 - val)) * bz.ctrlx) + (val * bz.chx))));
var y = (bz.sy + (val * (((2 * (1 - val)) * bz.ctrly) + (val * bz.chy))));
if ((t.rr == true) || ((RR == true) && (!(t.rr === false)))) {
x = Math.round(Number(x));
y = Math.round(Number(y));
}
targ._x = x;
targ._y = y;
} else if (prop == "_frame") {
MovieClip(targ).gotoAndStop(Math.ceil(val));
}
}
} else {
var loop = ((done == true) && ((t.cycles > 1) || (t.cycles == 0)));
var tta = [];
for (var k in t.ch) {
var tt = ((t.complex == 0) ? ([]) : ({}));
for (var j in t.ch[k]) {
var cv = t.ch[k][j];
var sv = t.ps[k][j];
if (done == true) {
tt[j] = sv + cv;
if (loop == true) {
t.ch[k][j] = -cv;
}
} else {
tt[j] = t.ef(now - t.ts, sv, cv, t.d, t.e1, t.e2);
}
if (_global.isNaN(tt[j]) == false) {
if ((t.rr == true) || ((RR == true) && (!(t.rr === false)))) {
tt[j] = Math.round(tt[j]);
}
}
if ((t.fmp == -1) && (t.c == -1)) {
targ[prop][j] = tt[j];
}
}
tta.push(tt);
if ((t.fmp == -1) && (t.c == 2)) {
targ[prop][k] = Number(((tt.rb << 16) | (tt.gb << 8)) | tt.bb);
}
}
if (t.fmp != -1) {
if (t.c == 1) {
t.fmp.setFilterProp(targ, prop, ((tta[0].rb << 16) | (tta[0].gb << 8)) | tta[0].bb);
} else if (t.c == 2) {
var copy = [];
for (var j in tta) {
copy.unshift(((tta[j].rb << 16) | (tta[j].gb << 8)) | tta[j].bb);
}
t.fmp.setFilterProp(targ, prop, copy);
} else {
t.fmp.setFilterProp(targ, prop, tta[0]);
}
} else if (t.c != -1) {
t.c.setTransform(tta[0]);
}
if (loop == true) {
if (t.cycles > 1) {
t.cycles--;
}
done = false;
t.ts = now;
t.ps = tta;
}
}
if (t.sf == false) {
if (t.v != 0) {
targ._visible = true;
}
if (evtFlag == true) {
if (sp[i] == undefined) {
sp[i] = [targ, []];
}
sp[i][1].unshift(prop);
}
t.sf = true;
}
if (t.scb.fired == false) {
scb[String(t.scb.id)] = t.scb;
t.scb.fired = true;
}
if (evtFlag == true) {
if (up[i] == undefined) {
up[i] = [targ, []];
}
up[i][1].unshift(prop);
}
if (t.ucb != undefined) {
ucb[String(t.ucb.id)] = t.ucb;
}
if (done == true) {
if (t.v === -1) {
targ._visible = false;
}
if (t.suppressEnd != true) {
if (evtFlag == true) {
if (ep[i] == undefined) {
ep[i] = [targ, []];
}
ep[i][1].unshift(prop);
}
if (t.ecb != undefined) {
ecb[String(t.ecb.id)] = t.ecb;
}
}
delete props[prop];
if (prop == to.colorProp) {
delete to.colorProp;
}
to.numProps--;
if (to.numProps <= 0) {
missing = true;
}
}
delete t.suppressEnd;
}
}
for (var i in sp) {
sp[i][0].broadcastMessage("onTweenStart", {target:sp[i][0], props:sp[i][1]});
}
for (var i in scb) {
scb[i].f.apply(scb[i].s, scb[i].a);
}
for (var i in up) {
up[i][0].broadcastMessage("onTweenUpdate", {target:up[i][0], props:up[i][1]});
}
for (var i in ucb) {
ucb[i].f.apply(ucb[i].s, ucb[i].a);
}
for (var i in ep) {
ep[i][0].broadcastMessage("onTweenEnd", {target:ep[i][0], props:ep[i][1]});
}
for (var i in ecb) {
ecb[i].f.apply(ecb[i].s, ecb[i].a);
}
if (missing) {
cleanUp();
}
now = getTimer();
}
function cleanUp(noInit) {
for (var i in tweens) {
var targ = tweens[i].targ;
if ((tweens[i].numProps <= 0) || (targ.__zigoID__ == undefined)) {
if ((((targ != undefined) && (targ.tween == undefined)) && (noInit != true)) && (targ._listeners.length <= 0)) {
com.mosesSupposes.fuse.ZigoEngine.deinitializeTargets(targ);
}
delete tweens[i];
numTweens--;
}
}
if (numTweens <= 0) {
numTweens = 0;
delete tweens;
tweens = {};
if (noInit != true) {
com.mosesSupposes.fuse.ZigoEngine.__mgrRelay(this, "setup", [true]);
}
}
}
function paramsObj(targs, props, endvals, retainFade) {
var o = {};
o.all = String(targs).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL;
o.none = Boolean(targs == null);
if (o.all == true) {
o.tg = [null];
} else {
o.tg = ((targs instanceof Array) ? (targs) : ([targs]));
for (var i in o.tg) {
var t = o.tg[i];
if ((t == null) || (!((typeof(t) == "object") || (typeof(t) == "movieclip")))) {
o.tg.splice(Number(i), 1);
}
}
}
o.allprops = props == null;
var pa;
var va;
var pobj = {};
if (o.allprops == false) {
if ((typeof(props) == "string") && ((String(props).indexOf(" ") > -1) || (String(props).indexOf(",") > -1))) {
props = String(props.split(" ").join("")).split(",");
}
pa = ((props instanceof Array) ? (props.slice()) : ([props]));
if (endvals != undefined) {
if ((typeof(endvals) == "string") && ((String(endvals).indexOf(" ") > -1) || (String(endvals).indexOf(",") > -1))) {
endvals = String(endvals.split(" ").join("")).split(",");
}
va = ((endvals instanceof Array) ? (endvals.slice()) : ([endvals]));
while (va.length < pa.length) {
va.push(va[va.length - 1]);
}
va.splice(pa.length, va.length - pa.length);
}
for (var i in pa) {
var insert = Number(i);
if ((pa[i] != "_scale") && (pa[i] != "_size")) {
if (pobj[pa[i]] == undefined) {
if ((pa[i] == "_fade") && (retainFade != true)) {
pa[i] = "_alpha";
}
if (String(pa[i]).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) {
pa[i] = com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR;
}
pobj[pa[i]] = true;
} else {
pa.splice(insert, 1);
va.splice(insert, 1);
}
} else {
var prop = String(pa.splice(insert, 1)[0]);
var val = va.splice(insert, 1)[0];
if (prop == "_scale") {
if (pobj._xscale == undefined) {
pa.splice(insert, 0, "_xscale");
va.splice(insert, 0, val);
pobj._xscale = true;
insert++;
}
if (pobj._yscale == undefined) {
pa.splice(insert, 0, "_yscale");
va.splice(insert, 0, val);
pobj._yscale = true;
}
}
if (prop == "_size") {
if (pobj._width == undefined) {
pa.splice(insert, 0, "_width");
va.splice(insert, 0, val);
pobj._width = true;
insert++;
}
if (pobj._yscale == undefined) {
pa.splice(insert, 0, "_height");
va.splice(insert, 0, val);
pobj._height = true;
}
}
}
}
for (var i in pa) {
if (((pa[i] == "_xscale") && (pobj._width == true)) || ((pa[i] == "_yscale") && (pobj._height == true))) {
pa.splice(Number(i), 1);
va.splice(Number(i), 1);
delete pobj[pa[i]];
}
}
}
o.pa = pa;
o.va = va;
o.props = pobj;
return(o);
}
function getChangeObj(ps, ep, isFMP, useArray) {
var ch = {map:((useArray == true) ? ([]) : ({})), changed:false};
for (var j in ep) {
if ((((((isFMP == true) && (j.charAt(1) == "b")) || (ep[j] != ps[j])) || (useArray == true)) && (ep[j] != null)) && (_global.isNaN(Number(ep[j])) == false)) {
ch.map[j] = ((typeof(ep[j]) == "string") ? (Number(ep[j])) : (ep[j] - ps[j]));
if (_global.isNaN(ch.map[j]) == true) {
ch.map[j] = 0;
} else if (ch.map[j] != 0) {
ch.changed = true;
}
}
}
return(ch);
}
var numTweens = 0;
}
Symbol 762 MovieClip [__Packages.com.mosesSupposes.fuse.PennerEasing] Frame 0
class com.mosesSupposes.fuse.PennerEasing
{
function PennerEasing () {
}
static function linear(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInQuad(t, b, c, d) {
return(((c * ((t = t / d))) * t) + b);
}
static function easeOutQuad(t, b, c, d) {
return((((-c) * ((t = t / d))) * (t - 2)) + b);
}
static function easeInOutQuad(t, b, c, d) {
if (((t = t / (d / 2))) < 1) {
return((((c / 2) * t) * t) + b);
}
return((((-c) / 2) * (((--t) * (t - 2)) - 1)) + b);
}
static function easeInExpo(t, b, c, d) {
return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b)));
}
static function easeOutExpo(t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
}
static function easeInOutExpo(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
if (((t = t / (d / 2))) < 1) {
return(((c / 2) * Math.pow(2, 10 * (t - 1))) + b);
}
return(((c / 2) * ((-Math.pow(2, -10 * (--t))) + 2)) + b);
}
static function easeOutInExpo(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
if (((t = t / (d / 2))) < 1) {
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 1)) + b);
}
return(((c / 2) * (Math.pow(2, 10 * (t - 2)) + 1)) + b);
}
static function easeInElastic(t, b, c, d, a, p) {
var s;
if (t == 0) {
return(b);
}
if (((t = t / d)) == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
s = p / 4;
} else {
s = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((-((a * Math.pow(2, 10 * ((t = t - 1)))) * Math.sin((((t * d) - s) * (Math.PI*2)) / p))) + b);
}
static function easeOutElastic(t, b, c, d, a, p) {
var s;
if (t == 0) {
return(b);
}
if (((t = t / d)) == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
s = p / 4;
} else {
s = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - s) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOutElastic(t, b, c, d, a, p) {
var s;
if (t == 0) {
return(b);
}
if (((t = t / (d / 2))) == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
s = p / 4;
} else {
s = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
return((-0.5 * ((a * Math.pow(2, 10 * ((t = t - 1)))) * Math.sin((((t * d) - s) * (Math.PI*2)) / p))) + b);
}
return(((((a * Math.pow(2, -10 * ((t = t - 1)))) * Math.sin((((t * d) - s) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static function easeOutInElastic(t, b, c, d, a, p) {
var s;
if (t == 0) {
return(b);
}
if (((t = t / (d / 2))) == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
s = p / 4;
} else {
s = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
return(((0.5 * ((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - s) * (Math.PI*2)) / p))) + (c / 2)) + b);
}
return(((c / 2) + (0.5 * ((a * Math.pow(2, 10 * (t - 2))) * Math.sin((((t * d) - s) * (Math.PI*2)) / p)))) + b);
}
static function easeInBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
return((((c * ((t = t / d))) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOutBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
return((c * (((((t = (t / d) - 1)) * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOutBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
if (((t = t / (d / 2))) < 1) {
return(((c / 2) * ((t * t) * (((((s = s * 1.525)) + 1) * t) - s))) + b);
}
return(((c / 2) * (((((t = t - 2)) * t) * (((((s = s * 1.525)) + 1) * t) + s)) + 2)) + b);
}
static function easeOutInBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
if (((t = t / (d / 2))) < 1) {
return(((c / 2) * ((((--t) * t) * (((((s = s * 1.525)) + 1) * t) + s)) + 1)) + b);
}
return(((c / 2) * ((((--t) * t) * (((((s = s * 1.525)) + 1) * t) - s)) + 1)) + b);
}
static function easeOutBounce(t, b, c, d) {
if (((t = t / d)) < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
return((c * (((7.5625 * ((t = t - 0.545454545454545))) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
return((c * (((7.5625 * ((t = t - 0.818181818181818))) * t) + 0.9375)) + b);
}
return((c * (((7.5625 * ((t = t - 0.954545454545455))) * t) + 0.984375)) + b);
}
static function easeInBounce(t, b, c, d) {
return((c - easeOutBounce(d - t, 0, c, d)) + b);
}
static function easeInOutBounce(t, b, c, d) {
if (t < (d / 2)) {
return((easeInBounce(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOutBounce((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static function easeOutInBounce(t, b, c, d) {
if (t < (d / 2)) {
return((easeOutBounce(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeInBounce((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static function easeInCubic(t, b, c, d) {
return((((c * ((t = t / d))) * t) * t) + b);
}
static function easeOutCubic(t, b, c, d) {
return((c * (((((t = (t / d) - 1)) * t) * t) + 1)) + b);
}
static function easeInOutCubic(t, b, c, d) {
if (((t = t / (d / 2))) < 1) {
return(((((c / 2) * t) * t) * t) + b);
}
return(((c / 2) * (((((t = t - 2)) * t) * t) + 2)) + b);
}
static function easeOutInCubic(t, b, c, d) {
t = t / (d / 2);
return(((c / 2) * ((((--t) * t) * t) + 1)) + b);
}
static function easeInQuart(t, b, c, d) {
return(((((c * ((t = t / d))) * t) * t) * t) + b);
}
static function easeOutQuart(t, b, c, d) {
return(((-c) * ((((((t = (t / d) - 1)) * t) * t) * t) - 1)) + b);
}
static function easeInOutQuart(t, b, c, d) {
if (((t = t / (d / 2))) < 1) {
return((((((c / 2) * t) * t) * t) * t) + b);
}
return((((-c) / 2) * ((((((t = t - 2)) * t) * t) * t) - 2)) + b);
}
static function easeOutInQuart(t, b, c, d) {
if (((t = t / (d / 2))) < 1) {
return((((-c) / 2) * (((((--t) * t) * t) * t) - 1)) + b);
}
return(((c / 2) * (((((--t) * t) * t) * t) + 1)) + b);
}
static function easeInQuint(t, b, c, d) {
return((((((c * ((t = t / d))) * t) * t) * t) * t) + b);
}
static function easeOutQuint(t, b, c, d) {
return((c * (((((((t = (t / d) - 1)) * t) * t) * t) * t) + 1)) + b);
}
static function easeInOutQuint(t, b, c, d) {
if (((t = t / (d / 2))) < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
return(((c / 2) * (((((((t = t - 2)) * t) * t) * t) * t) + 2)) + b);
}
static function easeOutInQuint(t, b, c, d) {
t = t / (d / 2);
return(((c / 2) * ((((((--t) * t) * t) * t) * t) + 1)) + b);
}
static function easeInSine(t, b, c, d) {
return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b);
}
static function easeOutSine(t, b, c, d) {
return((c * Math.sin((t / d) * (Math.PI/2))) + b);
}
static function easeInOutSine(t, b, c, d) {
return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b);
}
static function easeOutInSine(t, b, c, d) {
if (((t = t / (d / 2))) < 1) {
return(((c / 2) * Math.sin((Math.PI * t) / 2)) + b);
}
return((((-c) / 2) * (Math.cos((Math.PI * (--t)) / 2) - 2)) + b);
}
static function easeInCirc(t, b, c, d) {
return(((-c) * (Math.sqrt(1 - (((t = t / d)) * t)) - 1)) + b);
}
static function easeOutCirc(t, b, c, d) {
return((c * Math.sqrt(1 - (((t = (t / d) - 1)) * t))) + b);
}
static function easeInOutCirc(t, b, c, d) {
if (((t = t / (d / 2))) < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
return(((c / 2) * (Math.sqrt(1 - (((t = t - 2)) * t)) + 1)) + b);
}
static function easeOutInCirc(t, b, c, d) {
if (((t = t / (d / 2))) < 1) {
return(((c / 2) * Math.sqrt(1 - ((--t) * t))) + b);
}
return(((c / 2) * (2 - Math.sqrt(1 - ((--t) * t)))) + b);
}
static var registryKey = "pennerEasing";
}
Symbol 763 MovieClip [__Packages.com.base.ToggleButton] Frame 0
class com.base.ToggleButton extends MovieClip
{
var scope, __get__xPos, __get__yPos, mcIcon, xml, __get__setSelection, action, __get__setAction, dispatchEvent;
function ToggleButton (scope) {
super();
this.scope = scope.createEmptyMovieClip("ToggleButtons_" + scope.getNextHighestDepth(), scope.getNextHighestDepth());
mx.events.EventDispatcher.initialize(this);
addHandler();
}
function set xPos(pos) {
scope._x = pos;
//return(__get__xPos());
}
function set yPos(pos) {
scope._y = pos;
//return(__get__yPos());
}
function addHandler() {
scope.onRelease = mx.utils.Delegate.create(this, onRelease);
}
function removeHandler() {
scope.onRelease = mx.utils.Delegate.create(this, null);
delete scope.onRelease;
mcIcon.removeMovieClip();
}
function setImage(imgName) {
var bmp = flash.display.BitmapData.loadBitmap(imgName);
scope.attachBitmap(bmp, 0, "auto", true);
}
function setIcon(iconName) {
var node = com.data.GUIxml.getXML("getGui", iconName).firstChild;
mcIcon = scope.createEmptyMovieClip("mcIcon", 20);
addObj(node, mcIcon);
}
function setXML(xml) {
this.xml = xml;
}
function deselect() {
setImage(String(xml.childNodes[0].attributes.src));
}
function set setSelection(flag) {
isPushed = flag;
//return(__get__setSelection());
}
function get getSelection() {
return(isPushed);
}
function set setAction(str) {
action = str;
//return(__get__setAction());
}
function get getAction() {
return(action);
}
function onRelease() {
dispatchEvent({type:"action", event:"click"});
}
function addObj(node, scope) {
var tmp = scope.createEmptyMovieClip(node.attributes.ID, node.attributes.layer || (scope.getNextHighestDepth()));
var src = (node.attributes.src || (node.attributes.ID));
var bmp = flash.display.BitmapData.loadBitmap(src);
tmp.attachBitmap(bmp, node.attributes.layer || (tmp.getNextHighestDepth()), "auto", true);
tmp._x = node.attributes.xPos || 0;
tmp._y = node.attributes.yPos || 0;
return(tmp);
}
var isPushed = false;
}
Symbol 764 MovieClip [__Packages.com.data.GUIxml] Frame 0
class com.data.GUIxml
{
static var levels, Pers, takedObj, miniGame, guiRes, Animation, baseProfile, properties, hints, partOfBody, gameData, mapData, Prices;
function GUIxml () {
}
static function init() {
levels = new Array();
Pers = new Array();
takedObj = new Array();
miniGame = new Array();
guiRes = com.data.GUIres.init();
Animation = com.data.Animations.init();
var aFile;
if (Helper.DEBUG_XML_MODE) {
aFile = "user_profile.xml";
var aObject1 = new XML();
aObject1.ignoreWhite = true;
aObject1.onLoad = function (success) {
com.data.GUIxml.baseProfile = aObject1.firstChild.toString();
};
aObject1.load(aFile);
} else {
baseProfile = "<Player><Name Value= \"User\"/><SoundVolume Value=\"80\"/><MusicVolume Value=\"20\"/><ShowHints Value=\"true\"/><Arcade><Items><pumpkin/></Items><DisabledLevels></DisabledLevels><GoldLevels></GoldLevels><FailLevels></FailLevels><NewItems></NewItems><goslings count= \"0\"/><gooses count= \"0\"/><lambs count= \"0\"/><sheeps count= \"0\"/><goatkids count= \"0\"/><goats count= \"0\"/><calfs count= \"0\"/><cows count= \"0\"/><chickens count= \"0\"/><hens count= \"0\"/><turkeykids count= \"0\"/><turkeys count= \"0\"/><brownlambs count= \"0\"/><brownsheeps count= \"0\"/><browncalfs count= \"0\"/><browncows count= \"0\"/><whitegoatkids count=\"0\"/><whitegoats count= \"0\"/><money count= \"0\"/><gamemoney count= \"0\"/><levels count= \"1\"/></Arcade></Player>";
}
if (Helper.DEBUG_XML_MODE) {
aFile = "properties.xml";
var aObject2 = new XML();
aObject2.ignoreWhite = true;
aObject2.onLoad = function (success) {
com.data.GUIxml.properties = aObject2.firstChild.toString();
};
aObject2.load(aFile);
} else {
properties = "<Level><Raven Count=\"1\" ThrowDelay=\"10\" MinDelay=\"20\" MaxDelay=\"30\" Grain=\"1\" Clover=\"1\" Hay=\"1\" EatCount=\"2\"/><Hare Count=\"2\" MinDelay=\"5\" MaxDelay=\"10\" Pumpkin=\"1\" Cabbage=\"1\" Watermelon=\"1\" TrackID=\"2\" Wild=\"1\"/><Time Value=\"200\" FailValue=\"20\" FailMood=\"20\" remind=\"40\" MoneyPerSecond=\"3\"/><Money Value=\"0\"/><animalwait Value=\"120\"/><gosling EatDelay=\"16\" DrinkDelay=\"15\" EatCount=\"3\" WaitDelay=\"100\"/><goose\t\t EatDelay=\"18\" DrinkDelay=\"18\" EatCount=\"1\" WaitDelay=\"70\"/><whiteLamb\t EatDelay=\"16\" DrinkDelay=\"16\" EatCount=\"4\" WaitDelay=\"90\"/><whiteSheep EatDelay=\"20\" DrinkDelay=\"17\" EatCount=\"1\" WaitDelay=\"60\"/><Pumpkin keyFrames=\"0,2,5,7\" phase1=\"2\" phase2=\"2\" phase3=\"2\" waterdelay=\"90\" hoedelay=\"90\" handdelay=\"90\"/><Cabbage keyFrames=\"0,2,5,7\" phase1=\"4\" phase2=\"5\" phase3=\"4\" waterdelay=\"70\" hoedelay=\"70\" handdelay=\"70\"/><Watermelon keyFrames=\"0,2,5,7\" phase1=\"6\" phase2=\"7\" phase3=\"6\" waterdelay=\"60\" hoedelay=\"60\" handdelay=\"60\"/> <whiteEggs handdelay=\"80\"/> \t <Wool\t\t handdelay=\"70\"/> \t</Level>";
}
if (Helper.DEBUG_XML_MODE) {
aFile = "levels.xml";
var aObject3 = new XML();
aObject3.ignoreWhite = true;
aObject3.onLoad = function (success) {
var node;
var i = 0;
while (i < aObject3.childNodes.length) {
node = aObject3.childNodes[i];
com.data.GUIxml.levels["level_" + node.attributes.id] = node.toString();
i++;
}
Main.XMLLoaded();
};
aObject3.load(aFile);
} else {
levels.level_1 = "<Level id=\"1\"><Actions><item event=\"start\" \t\t\taction=\"setVeg\"/><item event=\"setVeg\" \t\t\taction=\"placeIntoSoil\"/><item event=\"placeIntoSoil\" \taction=\"GrandSetWater\"/><item event=\"putWaterToPlace\" action=\"getWater\"/><item event=\"getWater\" \t\taction=\"pourOn\"/><item event=\"hoedelay\" \t\taction=\"digIt\"/><item event=\"handdelay\" \t\taction=\"takeIt\"/><item event=\"takeIt\" \t\t\taction=\"sellObj\"/><item event=\"sellObj\" \t\taction=\"sellShipment\"/><item event=\"bikeBackSell\" \taction=\"sellObj\"/><item event=\"sellObj\" \t\t\taction=\"wait\" time=\"3\"/></Actions><Need><Pumpkins/></Need><Goal><Earn Money=\"0\"/><Sell objNames=\"Pumpkin\" count=\"2\"/><HelperIcons iconList=\"GrandfatherWellOne,BucketsPlaceHit,GirlFlow\" /></Goal><Time Value=\"70\"/></Level>";
levels.level_2 = "<Level id=\"2\"><Actions><item event=\"start\" \t\t\taction=\"wait\" time=\"3\"/></Actions><Need><Pumpkins/><Cabbage/></Need><Goal><Earn Money=\"600\"/><Sell objNames=\"Pumpkin,Cabbage\" count=\"2,3\"/><HelperIcons iconList=\"PumpkinNeedHoe,GirlHoe,PumpkinGrown\" /></Goal><Time Value=\"170\"/></Level>";
levels.level_3 = "<Level id=\"3\"><Actions/><Need><Pumpkin/><Cabbage/><Gosling/></Need><Time Value=\"160\"/><Goal><Earn Money=\"500\"/><Grow objNames=\"Goose\" count=\"1\"/><Sell objNames=\"Cabbage\" count=\"3\"/><HelperIcons iconList=\"GirlNearGrain,GoslingEat,Goose\" /></Goal><Raven Count=\"0\"/><Hare Count=\"0\"/></Level>";
levels.level_4 = "<Level id=\"4\"><Actions/><Need><Pumpkin/><Cabbage/><Watermelon/></Need><Time Value=\"160\"/><Goal><Earn Money=\"800\"/><Sell objNames=\"Watermelon,whiteEggs,Cabbage\" count=\"1,1,4\"/><HelperIcons iconList=\"HareEatPumpkin,HareHitNearPumpkin,HareRunawayNearPumpkin\" /></Goal><Raven Count=\"0\"/><Hare Count=\"1\" MinDelay=\"40\" MaxDelay=\"80\"/></Level>";
levels.level_5 = "<MiniGame id=\"5\"><Background img=\"Minigame01Background\"/><Item ID=\"Minigame01Sheep1\" xPos=\"36\"\t\tyPos=\"65\"\t\tAnimation=\"Whitesheep_nose_frontright\" \t\tFrame=\"4\" \tAX=\"-1\"\t\tAY=\"-1\" FlipX=\"1\" FlipY=\"1\"/><Item ID=\"Minigame01Sheep2\" xPos=\"204.6\"\tyPos=\"76\"\t\tAnimation=\"Whitesheep_jump_frontright\" \t\tFrame=\"2\" \tAX=\"-12\"\tAY=\"0\"/><Item ID=\"Minigame01Sheep3\" xPos=\"462\"\t\tyPos=\"41\"\t\tAnimation=\"Whitesheep_nose_frontright\" \t\tFrame=\"1\" \tAX=\"0\"\t\tAY=\"0\"/><Item ID=\"Minigame01Sheep4\" xPos=\"85.6\"\tyPos=\"210\"\t\tAnimation=\"Whitesheep_snake_frontright\"\t\tFrame=\"1\" \tAX=\"0\" \t\tAY=\"0\"/><Item ID=\"Minigame01Sheep5\" xPos=\"206\"\t\tyPos=\"160\"\t\tAnimation=\"Whitesheep_leftfootup_frontright\" Frame=\"1\" \tAX=\"0\" \t\tAY=\"0\"/><Item ID=\"Minigame01Sheep6\" xPos=\"553\"\t\tyPos=\"122.5\"\tAnimation=\"Whitesheep_jump_backright\"\t\tFrame=\"4\" \tAX=\"0\" \t\tAY=\"-18\" FlipX=\"1\"/><Item ID=\"Minigame01Sheep7\" xPos=\"58\"\t\tyPos=\"380.6\"\tAnimation=\"Whitesheep_snake_front\" \t\t\tFrame=\"2\" \tAX=\"-2\" \tAY=\"0\"/><Item ID=\"Minigame01Sheep8\" xPos=\"384\"\t\tyPos=\"247.7\"\tAnimation=\"WoolWhitesheep_walk_frontright\" \tFrame=\"6\" \tAX=\"0\" \t\tAY=\"0\"/><Item ID=\"Minigame01Sheep9\" xPos=\"571\"\t\tyPos=\"207\"\t\tAnimation=\"Whitesheep_jump_frontright\" \t\tFrame=\"1\" \tAX=\"-7\"\t\tAY=\"-18\" FlipX=\"1\"/><Item ID=\"Minigame01Sheep10\" xPos=\"313.5\"\tyPos=\"378.4\"\tAnimation=\"Whitesheep_jump_frontright\" \t\tFrame=\"3\"\tAX=\"-6\" \tAY=\"-8\"/><Goal levName=\"BONUS LEVEL\"><Earn Money=\"500\"/><Grow /><Sell /><Find objNames=\"MinigameSheep\" count=\"10\"/><HelperIcons iconList=\"SheepBush,SheepBushCursor,SheepBushCursorFound\" /></Goal><Time Value=\"70\"/></MiniGame>";
levels.level_6 = "<Level id=\"6\"><Actions/><Need><Pumpkin/><Cabbage/><Watermelon/><Gosling/></Need><Time Value=\"185\"/><Goal><Grow objNames=\"Goose\" count=\"1\"/><Sell objNames=\"whiteEggs,Watermelon\" count=\"3,3\"/><HelperIcons iconList=\"goose_eat_ico,GooseEggs,GirlGooseEggs\" /></Goal><Raven Count=\"0\"/><Hare Count=\"1\" MinDelay=\"40\" MaxDelay=\"80\"/></Level>";
levels.level_7 = "<Level id=\"7\"><Actions/><Need><Pumpkin/><Cabbage/><Watermelon/><Goose/><Goose/><Lamb/></Need><Time Value=\"235\"/><Goal><Earn Money=\"1500\"/><Grow objNames=\"Sheep\" count=\"1\"/><Sell objNames=\"Cabbage,whiteEggs\" count=\"5,5\"/><HelperIcons iconList=\"lamb_wait_ico,LambEat,Sheep\" /></Goal><Raven Count=\"0\"/><Hare Count=\"1\" MinDelay=\"40\" MaxDelay=\"80\"/></Level>";
levels.level_8 = "<Level id=\"8\"><Actions/><Need><Pumpkin/><Cabbage/><Watermelon/><Goose/><Sheep/><Lamb/></Need><Time Value=\"250\"/><Goal><Earn Money=\"1000\"/><Grow objNames=\"Sheep\" count=\"1\"/><Sell objNames=\"Pumpkin,Wool\" count=\"3,2\"/><HelperIcons iconList=\"SheepEat,GirlCutSheep,GirlWhool\" /></Goal></Level>";
levels.level_9 = "<Level id=\"9\"><Actions/><Need><Pumpkin/><Cabbage/><Watermelon/><Goose/><Sheep/><Lamb/></Need><Time Value=\"260\"/><Goal><Earn Money=\"2000\"/><Sell objNames=\"Cabbage,Wool\" count=\"5,5\"/><HelperIcons iconList=\"RavenPecks,RavenHit,RavenFlyaway\" /></Goal></Level>";
levels.level_10 = "<MiniGame id=\"10\"><Background img=\"Minigame02Background\"/><Item ID=\"Minigame02Sheep1\" xPos=\"57.5\"\tyPos=\"33\"\t\tAnimation=\"WhiteLamb_Right0021\" \t\t\tFrame=\"1\" \tAX=\"-1\"\t\tAY=\"-1\" FlipX=\"1\" FlipY=\"1\"/><Item ID=\"Minigame02Sheep2\" xPos=\"315\"\t\tyPos=\"95\"\t\tAnimation=\"whiteLamb_shake_frontright\" \t\tFrame=\"4\" \tAX=\"-12\"\tAY=\"0\"/><Item ID=\"Minigame02Sheep3\" xPos=\"511\"\t\tyPos=\"41\"\t\tAnimation=\"WhiteLambEatDrink_Right\" \t\tFrame=\"3\" \tAX=\"0\"\t\tAY=\"0\"/><Item ID=\"Minigame02Sheep4\" xPos=\"154\"\t\tyPos=\"180\"\t\tAnimation=\"WhiteLamb_RightFront0021\"\t\tFrame=\"1\" \tAX=\"0\" \t\tAY=\"0\"/><Item ID=\"Minigame02Sheep5\" xPos=\"411\"\t\tyPos=\"110\"\t\tAnimation=\"whiteSheep_jump_front\" \t\t\tFrame=\"5\" \tAX=\"0\" \t\tAY=\"0\"/><Item ID=\"Minigame02Sheep6\" xPos=\"517\"\t\tyPos=\"137\"\t\tAnimation=\"WoolWhitesheepWalk_Back\"\t\t\tFrame=\"1\" \tAX=\"0\" \t\tAY=\"-18\" FlipX=\"1\"/><Item ID=\"Minigame02Sheep7\" xPos=\"389\"\t\tyPos=\"229\"\t\tAnimation=\"WhiteLambTurn_RightFront\" \t\tFrame=\"1\" \tAX=\"-2\" \tAY=\"0\"/><Item ID=\"Minigame02Sheep8\" xPos=\"7\"\t\tyPos=\"291\"\t\tAnimation=\"whiteSheep_nose_backright\" \t\tFrame=\"3\" \tAX=\"0\" \t\tAY=\"0\"/><Item ID=\"Minigame02Sheep9\" xPos=\"236\"\t\tyPos=\"339\"\t\tAnimation=\"WhitesheepLeftfootUp_RightFront\" Frame=\"1\" \tAX=\"-7\"\t\tAY=\"-18\" FlipX=\"1\"/><Item ID=\"Minigame02Sheep10\" xPos=\"528\"\tyPos=\"357\"\t\tAnimation=\"whiteSheep_stand_right\" \t\t\tFrame=\"1\"\tAX=\"-6\" \tAY=\"-8\"/><Goal levName=\"BONUS LEVEL\"><Earn Money=\"500\"/><Grow /><Sell /><Find objNames=\"MinigameSheep,GuiTabLamb\" count=\"5,5\"/><HelperIcons iconList=\"SheepBush,SheepBushCursor,SheepBushCursorFound\" /></Goal><Time Value=\"90\"/></MiniGame>";
}
hints = "<Hints><Time value=\"10\"/><Hint id=\"1_10\" X=\"406\" Y=\"372\" PX=\"619\" PY=\"549\"/><Hint id=\"1_20\" X=\"350\" Y=\"240\" PX=\"533\" PY=\"401\"/><Hint id=\"1_30\" X=\"390\" Y=\"70\" PX=\"572\" PY=\"176\"/><Hint id=\"1_40\" X=\"320\" Y=\"110\" PX=\"501\" PY=\"236\"/><Hint id=\"1_50\" X=\"350\" Y=\"240\" PX=\"533\" PY=\"401\"/><Hint id=\"1_60\" X=\"350\" Y=\"240\" PX=\"533\" PY=\"401\"/><Hint id=\"1_70\" X=\"350\" Y=\"240\" PX=\"533\" PY=\"401\"/><Hint id=\"1_80\" X=\"430\" Y=\"150\" PX=\"360\" PY=\"355\"/><Hint id=\"1_90\" X=\"524\" Y=\"102\" PX=\"580\" PY=\"275\"/><Hint id=\"1_100\" X=\"430\" Y=\"150\" PX=\"360\" PY=\"355\"/><Hint id=\"1_110\" X=\"130\" Y=\"200\" Stop=\"0\"/><Hint id=\"2_10\" X=\"260\" Y=\"372\" PX=\"619\" PY=\"549\"/><Hint id=\"2_20\" X=\"350\" Y=\"240\" PX=\"533\" PY=\"401\"/><Hint id=\"2_30\" X=\"390\" Y=\"70\" PX=\"572\" PY=\"176\"/><Hint id=\"2_40\" X=\"320\" Y=\"110\" PX=\"501\" PY=\"236\"/><Hint id=\"2_50\" X=\"350\" Y=\"240\" PX=\"533\" PY=\"401\"/><Hint id=\"2_60\" X=\"490\" Y=\"218\" PX=\"533\" PY=\"401\"/><Hint id=\"2_70\" X=\"490\" Y=\"218\" PX=\"533\" PY=\"401\"/></Hints>";
Pers.girl = "<Pers name=\"girl\" layer=\"357\" xPos=\"350\" yPos=\"220\"><element name=\"animations\"><item name=\"body_back\"/><item name=\"body_backright\"/><item name=\"body_backleft\"/><item name=\"body_blink\"/><item name=\"body_front\"/><item name=\"body_frontleft\"/><item name=\"body_frontright\"/><item name=\"body_HeadShake\"/><item name=\"body_left\"/><item name=\"body_right\"/><item name=\"body_Nono\"/><item name=\"body_FootShake\"/><item name=\"PlantRight\"/><item name=\"FlowLeft\"/><item name=\"FlowRight\"/><item name=\"HoeRight\"/><item name=\"ScissorsFront\"/><item name=\"L_hand_front_stand\"/><item name=\"L_hand_front_walk\"/><item name=\"L_hand_left_walk\"/><item name=\"L_hand_back_walk\"/><item name=\"L_hand_backleft_walk\"/><item name=\"L_hand_frontleft_walk\"/><item name=\"L_handbucket_front_stand\"/><item name=\"L_handbucket_left_walk\"/><item name=\"L_handbucket_back_walk\"/><item name=\"L_handpumpkin_front_walk\"/><item name=\"L_handbucket_backleft_walk\"/><item name=\"L_handbucket_front_walk\"/><item name=\"L_handbucket_frontleft_walk\"/><item name=\"L_handpumpkin_left_walk\"/><item name=\"L_handpumpkin_back_walk\"/><item name=\"L_handpumpkin_backleft_walk\"/><item name=\"L_handpumpkin_frontleft_walk\"/><item name=\"L_handpumpkin_front_stand\"/><item name=\"L_hand_front_stand\"/><item name=\"L_hand_front_walk\"/><item name=\"L_hand_left_walk\"/><item name=\"L_hand_back_walk\"/><item name=\"L_hand_backleft_walk\"/><item name=\"L_hand_frontleft_walk\"/><item name=\"L_handbucket_front_stand\"/><item name=\"L_handbucket_left_walk\"/><item name=\"L_handbucket_back_walk\"/><item name=\"L_handpumpkin_front_walk\"/><item name=\"L_handbucket_backleft_walk\"/><item name=\"L_handbucket_front_walk\"/><item name=\"L_handbucket_frontleft_walk\"/><item name=\"L_handpumpkin_left_walk\"/><item name=\"L_handpumpkin_back_walk\"/><item name=\"L_handpumpkin_backleft_walk\"/><item name=\"L_handpumpkin_frontleft_walk\"/><item name=\"L_handpumpkin_front_stand\"/><item name=\"R_hand_front_stand\"/><item name=\"R_hand_front_walk\"/><item name=\"R_hand_back_walk\"/><item name=\"R_hand_backleft_walk\"/><item name=\"R_hand_left_walk\"/><item name=\"R_handbucket_left_walk\"/><item name=\"R_handbucket_front_stand\"/><item name=\"R_hand_frontleft_walk\"/><item name=\"R_handbucket_back_walk\"/><item name=\"R_handpumpkin_front_walk\"/><item name=\"R_handbucket_backleft_walk\"/><item name=\"R_handbucket_front_walk\"/><item name=\"R_handbucket_frontleft_walk\"/><item name=\"R_handpumpkin_back_walk\"/><item name=\"R_handpumpkin_backleft_walk\"/><item name=\"R_handpumpkin_frontleft_walk\"/><item name=\"R_handpumpkin_front_stand\"/></element><element name=\"body\" elementID=\"body_blink\" /><element name=\"hands\" ><hand name=\"left\" elementID=\"L_hand_front_stand\" xPos=\"15\" yPos=\"30\" layer=\"100\"/><hand name=\"right\" elementID=\"R_hand_front_stand\" xPos=\"-2\" yPos=\"28\" layer=\"101\"/></element></Pers>";
Pers.grFather = "<Pers name=\"grFather\" layer=\"309\" xPos=\"500\" yPos=\"110\"><element name=\"animations\"><item name=\"grand_action_well\"/><item name=\"grand_action_well2\"/><item name=\"grand_front\"/><item name=\"grand_back\"/><item name=\"grand_left\"/><item name=\"grand_right\"/><item name=\"grand_frontleft\"/><item name=\"grand_frontright\"/><item name=\"grand_backleft\"/><item name=\"grand_backright\"/><item name=\"grand_emotion_blink\"/><item name=\"grand_emotion_noNo\"/><item name=\"grand_emotion_scratchHead\"/><item name=\"grand_emotion_lookForward\"/><item name=\"grand_emotion_kneadBack\"/><item name=\"grand_emotion_footShake\"/><item name=\"grand_action_cutDownHay\"/><item name=\"grand_action_cutDownHayTurnR\"/></element><element name=\"body\" elementID=\"grand_emotion_blink\"/></Pers>";
Pers.Gosling = "<Pers name=\"Gosling\" layer=\"330\" xPos=\"226\" yPos=\"400\" xWaitPos=\"200\" yWaitPos=\"400\"><element name=\"animations\"><item name=\"gosling_walk_back\"/><item name=\"gosling_walk_front\"/><item name=\"gosling_walk_right\"/><item name=\"gosling_walk_left\"/><item name=\"gosling_walk_backleft\"/><item name=\"gosling_walk_backright\"/><item name=\"gosling_walk_frontleft\"/><item name=\"gosling_walk_frontright\"/><item name=\"gosling_drink\"/><item name=\"gosling_eat\"/><item name=\"gosling_scream\"/><item name=\"gosling_pan\"/><item name=\"gosling_jump_front\"/><item name=\"gosling_jump_frontleft\"/><item name=\"gosling_jump_frontright\"/><item name=\"gosling_jump_right\"/><item name=\"gosling_jump_left\"/><item name=\"gosling_jump_back\"/><item name=\"gosling_jump_backright\"/><item name=\"gosling_jump_backleft\"/><item name=\"gosling_stand_front\"/><item name=\"gosling_stand_frontleft\"/><item name=\"gosling_stand_frontright\"/><item name=\"gosling_stand_right\"/><item name=\"gosling_stand_left\"/><item name=\"gosling_stand_back\"/><item name=\"gosling_stand_backright\"/><item name=\"gosling_stand_backleft\"/><item name=\"gosling_wing_front\"/><item name=\"gosling_wing_right\"/><item name=\"gosling_wing_left\"/><item name=\"gosling_wing_frontright\"/><item name=\"gosling_wing_frontleft\"/></element><element name=\"body\" elementID=\"gosling_jump_front\"/><actions ><feed><walk><jump/><walk/></walk><stand><wing/><stand/></stand></feed><eat timer=\"8000\"><eat/><waiting><scream/><pan/></waiting></eat><drink timer=\"12000\"><drink/><waiting><scream/><pan/></waiting></drink><growing nextStage=\"Goose\" feedCicleCount=\"3\"/></actions ></Pers>";
Pers.Goose = "<Pers name=\"Goose\" layer=\"330\" xPos=\"256\" yPos=\"400\" xWaitPos=\"200\" yWaitPos=\"400\"><element name=\"animations\"><item name=\"goose_walk_back\"/><item name=\"goose_walk_backleft\"/><item name=\"goose_walk_backright\"/><item name=\"goose_walk_front\"/><item name=\"goose_walk_frontleft\"/><item name=\"goose_walk_frontright\"/><item name=\"goose_walk_right\"/><item name=\"goose_walk_left\"/><item name=\"goose_drink\"/><item name=\"goose_eat\"/><item name=\"goose_scream\"/><item name=\"goose_pan\"/><item name=\"goose_stand_front\"/><item name=\"goose_stand_frontleft\"/><item name=\"goose_stand_frontright\"/><item name=\"goose_stand_right\"/><item name=\"goose_stand_left\"/><item name=\"goose_stand_backright\"/><item name=\"goose_stand_back\"/><item name=\"goose_stand_backleft\"/><item name=\"goose_wing_right\"/><item name=\"goose_wing_left\"/><item name=\"goose_wing_frontright\"/><item name=\"goose_wing_frontleft\"/><item name=\"goose_wing_backright\"/><item name=\"goose_wing_backleft\"/><item name=\"goose_eat_front\"/><item name=\"goose_eat_right\"/><item name=\"goose_eat_left\"/><item name=\"goose_eat_frontright\"/><item name=\"goose_eat_frontleft\"/></element><element name=\"body\" elementID=\"goose_stand_front\"/><actions ><feed><walk><walk/></walk><stand><wing/><stand/><eat/></stand></feed><eat ><eat/><waiting><scream/><pan/></waiting></eat><drink ><drink/><waiting><scream/><pan/></waiting></drink></actions ></Pers>";
Pers.WhiteLamb = "<Pers name=\"WhiteLamb\" layer=\"330\" xPos=\"100\" yPos=\"360\" xWaitPos=\"100\" yWaitPos=\"400\"><element name=\"animations\"><item name=\"whiteLamb_walk_back\"/><item name=\"whiteLamb_walk_front\"/><item name=\"whiteLamb_walk_right\"/><item name=\"whiteLamb_walk_left\"/><item name=\"whiteLamb_walk_backleft\"/><item name=\"whiteLamb_walk_backright\"/><item name=\"whiteLamb_walk_frontleft\"/><item name=\"whiteLamb_walk_frontright\"/><item name=\"whiteLamb_drink\"/><item name=\"whiteLamb_eat\"/><item name=\"whiteLamb_scream\"/><item name=\"whiteLamb_pan\"/><item name=\"whiteLamb_stand_front\"/><item name=\"whiteLamb_stand_back\"/><item name=\"whiteLamb_stand_right\"/><item name=\"whiteLamb_stand_left\"/><item name=\"whiteLamb_stand_frontleft\"/><item name=\"whiteLamb_stand_frontright\"/><item name=\"whiteLamb_stand_backright\"/><item name=\"whiteLamb_stand_backleft\"/><item name=\"whiteLamb_footUp_right\"/><item name=\"whiteLamb_footUp_left\"/><item name=\"whiteLamb_footUp_front\"/><item name=\"whiteLamb_footUp_frontright\"/><item name=\"whiteLamb_footUp_frontleft\"/><item name=\"whiteLamb_jump_front\"/><item name=\"whiteLamb_jump_back\"/><item name=\"whiteLamb_jump_right\"/><item name=\"whiteLamb_jump_left\"/><item name=\"whiteLamb_jump_frontleft\"/><item name=\"whiteLamb_jump_frontright\"/><item name=\"whiteLamb_jump_backright\"/><item name=\"whiteLamb_jump_backleft\"/><item name=\"whiteLamb_shake_front\"/><item name=\"whiteLamb_shake_back\"/><item name=\"whiteLamb_shake_right\"/><item name=\"whiteLamb_shake_left\"/><item name=\"whiteLamb_shake_frontright\"/><item name=\"whiteLamb_shake_frontleft\"/><item name=\"whiteLamb_shake_backright\"/><item name=\"whiteLamb_shake_backleft\"/></element><element name=\"body\" elementID=\"whiteLamb_stand_front\"/><actions ><feed><walk><walk/><jump/></walk><stand><footUp/><ears/><nose/><shake/><stand/></stand></feed><eat ><eat/><waiting><scream/><pan/></waiting></eat><drink ><drink/><waiting><scream/><pan/></waiting></drink></actions ></Pers>";
Pers.WhiteSheep = "<Pers name=\"WhiteSheep\" layer=\"330\" xPos=\"140\" yPos=\"360\" xWaitPos=\"100\" yWaitPos=\"400\"><element name=\"animations\"><item name=\"whiteSheep_walk_back\"/><item name=\"whiteSheep_walk_front\"/><item name=\"whiteSheep_walk_right\"/><item name=\"whiteSheep_walk_left\"/><item name=\"whiteSheep_walk_backleft\"/><item name=\"whiteSheep_walk_backright\"/><item name=\"whiteSheep_walk_frontleft\"/><item name=\"whiteSheep_walk_frontright\"/><item name=\"whiteSheep_drink\"/><item name=\"whiteSheep_eat\"/><item name=\"whiteSheep_scream\"/><item name=\"whiteSheep_pan\"/><item name=\"whiteSheep_stand_wool\"/><item name=\"whiteSheep_ears_wool\"/><item name=\"whiteSheep_nose_wool\"/><item name=\"whiteSheep_blink_wool\"/><item name=\"whiteSheep_stand_front\"/><item name=\"whiteSheep_stand_back\"/><item name=\"whiteSheep_stand_right\"/><item name=\"whiteSheep_stand_left\"/><item name=\"whiteSheep_stand_frontleft\"/><item name=\"whiteSheep_stand_frontright\"/><item name=\"whiteSheep_stand_backright\"/><item name=\"whiteSheep_stand_backleft\"/><item name=\"whiteSheep_ears_right\"/><item name=\"whiteSheep_ears_left\"/><item name=\"whiteSheep_ears_front\"/><item name=\"whiteSheep_ears_frontright\"/><item name=\"whiteSheep_ears_frontleft\"/><item name=\"whiteSheep_jump_front\"/><item name=\"whiteSheep_jump_back\"/><item name=\"whiteSheep_jump_right\"/><item name=\"whiteSheep_jump_left\"/><item name=\"whiteSheep_jump_frontleft\"/><item name=\"whiteSheep_jump_frontright\"/><item name=\"whiteSheep_jump_backright\"/><item name=\"whiteSheep_jump_backleft\"/><item name=\"whiteSheep_nose_frontleft\"/><item name=\"whiteSheep_nose_frontright\"/><item name=\"whiteSheep_nose_backright\"/><item name=\"whiteSheep_nose_backleft\"/><item name=\"whiteSheep_shake_front\"/><item name=\"whiteSheep_shake_right\"/><item name=\"whiteSheep_shake_left\"/><item name=\"whiteSheep_shake_frontright\"/><item name=\"whiteSheep_shake_frontleft\"/><item name=\"whiteSheep_shake_backright\"/><item name=\"whiteSheep_shake_backleft\"/></element><element name=\"body\" elementID=\"whiteSheep_stand_front\"/><actions ><feed><walk><walk/><jump/></walk><stand><ears/><shake/><nose/><stand/></stand></feed><eat ><eat/><waiting><scream/><pan/></waiting></eat><drink ><drink/><waiting><scream/><pan/></waiting></drink><growing nextStage=\"GooseEgg\" eatCicleCount=\"1\"/></actions ></Pers>";
Pers.Hare = "<Pers name=\"Hare\" layer=\"330\" ><element name=\"animations\"><item name=\"hare_eat\"/><item name=\"hare_run_front\"/><item name=\"hare_run_back\"/><item name=\"hare_run_right\"/><item name=\"hare_run_left\"/><item name=\"hare_run_frontleft\"/><item name=\"hare_run_frontright\"/><item name=\"hare_run_backright\"/><item name=\"hare_run_backleft\"/><item name=\"hare_lookRight_right\"/><item name=\"hare_lookRight_left\"/><item name=\"hare_amazement_right\"/><item name=\"hare_amazement_left\"/><item name=\"hare_standUp_right\"/><item name=\"hare_standUp_left\"/><item name=\"hare_stand_right\"/><item name=\"hare_stand_left\"/></element><element name=\"body\" elementID=\"hare_stand_right\"/><actions ><feed><walk><run/></walk><stand><lookRight/><standUp/><amazement/><stand/></stand></feed><eat ><eat/><waiting><scream/><pan/></waiting></eat><drink ><drink/><waiting><scream/><pan/></waiting></drink><growing nextStage=\"GooseEgg\" eatCicleCount=\"1\"/></actions ></Pers>";
partOfBody = new Array();
partOfBody.L_hand_front_stand = "<item ID=\"L_hand_front_stand\" \t\t\t\tobjName=\"hand\" xPos=\"16\" />";
partOfBody.L_hand_left_walk = "<item ID=\"L_hand_left_walk\" \t\t\t\tobjName=\"hand\" />";
partOfBody.L_hand_back_walk = "<item ID=\"L_hand_back_walk\" \t\t\t\tobjName=\"hand\" />";
partOfBody.L_hand_backleft_walk = "<item ID=\"L_hand_backleft_walk\" \t\tobjName=\"hand\" />";
partOfBody.L_hand_front_walk = "<item ID=\"L_hand_front_walk\" \t\t\t\tobjName=\"hand\" />";
partOfBody.L_hand_frontleft_walk = "<item ID=\"L_hand_frontleft_walk\" \t\tobjName=\"hand\" xPos=\"-2\" />";
partOfBody.L_handbucket_front_stand = "<item ID=\"L_handbucket_front_stand\" \tobjName=\"hand\" xPos=\"16\" />";
partOfBody.L_handbucket_left_walk = "<item ID=\"L_handbucket_left_walk\" \t\tobjName=\"hand\" xPos=\"-2\" />";
partOfBody.L_handbucket_back_walk = "<item ID=\"L_handbucket_back_walk\" \t\tobjName=\"hand\" xPos=\"-2\" />";
partOfBody.L_handbucket_backleft_walk = "<item ID=\"L_handbucket_backleft_walk\" \t\tobjName=\"hand\" xPos=\"-2\" />";
partOfBody.L_handbucket_front_walk = "<item ID=\"L_handbucket_front_walk\" \t\tobjName=\"hand\" xPos=\"-2\" />";
partOfBody.L_handbucket_frontleft_walk = "<item ID=\"L_handbucket_frontleft_walk\" \t\tobjName=\"hand\" xPos=\"-2\" />";
partOfBody.L_handpumpkin_front_stand = "<item ID=\"L_handpumpkin_front_stand\" \tobjName=\"hand\" xPos=\"16\"/>";
partOfBody.L_handpumpkin_left_walk = "<item ID=\"L_handpumpkin_left_walk\" \t\tobjName=\"hand\" xPos=\"-2\" />";
partOfBody.L_handpumpkin_front_walk = "<item ID=\"L_handpumpkin_front_walk\" \t\tobjName=\"hand\" xPos=\"-2\" />";
partOfBody.L_handpumpkin_back_walk = "<item ID=\"L_handpumpkin_back_walk\" \t\tobjName=\"hand\" xPos=\"-2\" />";
partOfBody.L_handpumpkin_backleft_walk = "<item ID=\"L_handpumpkin_backleft_walk\" \t\tobjName=\"hand\" xPos=\"-2\" />";
partOfBody.L_handpumpkin_frontleft_walk = "<item ID=\"L_handpumpkin_frontleft_walk\" \t\tobjName=\"hand\" xPos=\"-2\" />";
partOfBody.R_hand_front_stand = "<item ID=\"R_hand_front_stand\" \t\t\t\tobjName=\"hand\" xPos=\"-1\" />";
partOfBody.R_hand_left_walk = "<item ID=\"R_hand_left_walk\" \t\t\t\tobjName=\"hand\" />";
partOfBody.R_hand_back_walk = "<item ID=\"R_hand_back_walk\" \t\t\t\tobjName=\"hand\" />";
partOfBody.R_hand_backleft_walk = "<item ID=\"R_hand_backleft_walk\" \t\tobjName=\"hand\" />";
partOfBody.R_hand_front_walk = "<item ID=\"R_hand_front_walk\" \t\t\t\tobjName=\"hand\" />";
partOfBody.R_hand_frontleft_walk = "<item ID=\"R_hand_frontleft_walk\" \t\tobjName=\"hand\" xPos=\"-2\" />";
partOfBody.R_handbucket_front_stand = "<item ID=\"R_handbucket_front_stand\" \tobjName=\"hand\" xPos=\"-2\" />";
partOfBody.R_handbucket_back_walk = "<item ID=\"R_handbucket_back_walk\" \t\tobjName=\"hand\" xPos=\"-2\" />";
partOfBody.R_handbucket_left_walk = "<item ID=\"R_handbucket_left_walk\" \t\tobjName=\"hand\" xPos=\"-2\" />";
partOfBody.R_handpumpkin_front_walk = "<item ID=\"R_handpumpkin_front_walk\" \t\tobjName=\"hand\" xPos=\"-2\" />";
partOfBody.R_handbucket_backleft_walk = "<item ID=\"R_handbucket_backleft_walk\" \t\tobjName=\"hand\" xPos=\"-2\" />";
partOfBody.R_handbucket_front_walk = "<item ID=\"R_handbucket_front_walk\" \t\tobjName=\"hand\" xPos=\"-2\" />";
partOfBody.R_handbucket_frontleft_walk = "<item ID=\"R_handbucket_frontleft_walk\" \t\tobjName=\"hand\" xPos=\"-2\" />";
partOfBody.R_handpumpkin_back_walk = "<item ID=\"R_handpumpkin_back_walk\" \t\tobjName=\"hand\" xPos=\"-2\" />";
partOfBody.R_handpumpkin_backleft_walk = "<item ID=\"R_handpumpkin_backleft_walk\" \t\tobjName=\"hand\" xPos=\"-2\" />";
partOfBody.R_handpumpkin_frontleft_walk = "<item ID=\"R_handpumpkin_frontleft_walk\" \t\tobjName=\"hand\" xPos=\"-2\" />";
partOfBody.R_handpumpkin_front_stand = "<item ID=\"R_handpumpkin_front_stand\" \tobjName=\"hand\" xPos=\"-12\"/>";
takedObj.Bucket = new Array();
takedObj.Bucket.toPlace = "<item ID=\"bucket_water\" \t\t\tobjName=\"Bucket\" layer=\"10\" xPos=\"16\" yPos=\"-10\" />";
takedObj.Bucket.toHand = "<item elementID=\"R_bucket_front\" \tobjName=\"Bucket\" layer=\"60\" xPos=\"-10\" yPos=\"56\" /><item elementID=\"L_bucket_front\"\tobjName=\"Bucket\" layer=\"60\" xPos=\"21\" yPos=\"56\" />";
takedObj.Grain = new Array();
takedObj.Grain.toPlace = "<item ID=\"grain_sheaf\" \t\t\tobjName=\"Grain\" layer=\"699\" inDepth=\"true\"\t xPos=\"14\" yPos=\"-10\" />";
takedObj.Grain.toHand = "<item elementID=\"R_grain_front\" \tobjName=\"Grain\" layer=\"60\" xPos=\"-10\" yPos=\"56\" /><item elementID=\"L_grain_front\"\tobjName=\"Grain\" layer=\"60\" xPos=\"21\" yPos=\"56\" />";
takedObj.Clover = new Array();
takedObj.Clover.toPlace = "<item ID=\"clover_sheaf\" \t\t\tobjName=\"Clover\" layer=\"698\" inDepth=\"true\"\t xPos=\"10\" yPos=\"-4\" />";
takedObj.Clover.toHand = "<item elementID=\"R_clover_front\" \tobjName=\"Clover\" layer=\"60\" xPos=\"-10\" yPos=\"56\" /><item elementID=\"L_clover_front\"\tobjName=\"Clover\" layer=\"60\" xPos=\"21\" yPos=\"56\" />";
takedObj.whiteEggs = new Array();
takedObj.whiteEggs.toPlace = "<item ID=\"gooseeggsbox\" \t\t\t\tobjName=\"whiteEggs\" layer=\"5\" xPos=\"10\" yPos=\"14\" />";
takedObj.whiteEggs.toHand = "<item elementID=\"R_whiteeggs_front\" \tobjName=\"whiteEggs\" layer=\"60\" xPos=\"-10\" yPos=\"56\" /><item elementID=\"L_whiteeggs_front\"\tobjName=\"whiteEggs\" layer=\"60\" xPos=\"21\" yPos=\"56\" />";
takedObj.Wool = new Array();
takedObj.Wool.toPlace = "<item ID=\"woolbox\" \t\t\tobjName=\"Wool\" layer=\"5\" xPos=\"10\" yPos=\"14\" />";
takedObj.Wool.toHand = "<item elementID=\"R_wool_front\" objName=\"Wool\" layer=\"60\" xPos=\"-10\" yPos=\"56\" /><item elementID=\"L_wool_front\"\tobjName=\"Wool\" layer=\"60\" xPos=\"21\" yPos=\"56\" />";
takedObj.Pumpkin = new Array();
takedObj.Pumpkin.toPlace = "<item ID=\"pumpkinbox\" \t\t\t\tobjName=\"Pumpkin\" layer=\"5\" xPos=\"10\" yPos=\"14\" />";
takedObj.Pumpkin.toHand = "<item elementID=\"R_pumpkin_front\" \tobjName=\"Pumpkin\" layer=\"60\" xPos=\"-13\" yPos=\"35\" /><item elementID=\"L_pumpkin_front\"\tobjName=\"Pumpkin\" layer=\"60\" xPos=\"16\" yPos=\"35\" />";
takedObj.Cabbage = new Array();
takedObj.Cabbage.toPlace = "<item ID=\"cabbagebox\" \t\t\t\tobjName=\"Cabbage\" layer=\"5\" xPos=\"10\" yPos=\"14\" />";
takedObj.Cabbage.toHand = "<item elementID=\"R_cabbage_front\" \tobjName=\"Cabbage\" layer=\"60\" xPos=\"-13\" yPos=\"35\" /><item elementID=\"L_cabbage_front\"\tobjName=\"Cabbage\" layer=\"60\" xPos=\"16\" yPos=\"35\" />";
takedObj.Watermelon = new Array();
takedObj.Watermelon.toPlace = "<item ID=\"watermelonbox\" \t\t\t\tobjName=\"Watermelon\" layer=\"5\" xPos=\"10\" yPos=\"14\" />";
takedObj.Watermelon.toHand = "<item elementID=\"R_watermelon_front\" \tobjName=\"Watermelon\" layer=\"60\" xPos=\"-13\" yPos=\"35\"/><item elementID=\"L_watermelon_front\"\tobjName=\"Watermelon\" layer=\"60\" xPos=\"16\" yPos=\"35\"/>";
gameData = "<Plases layer=\"50\"><Place ID=\"Horizont\" layer=\"10\" xPos=\"0\" yPos=\"0\" inDepth=\"false\"><level ID=\"1\" src=\"BackgroundSettingOne\"/></Place><Place ID=\"Ground\" layer=\"20\" xPos=\"0\" yPos=\"107\" inDepth=\"false\"><level ID=\"1\" src=\"Environment\"/></Place><Place ID=\"BushFirst\" layer=\"2000\" xPos=\"0\" yPos=\"360\" inDepth=\"false\"><level ID=\"1\" src=\"BushFirstSetting\"/></Place><Place ID=\"hay_place\" layer=\"56\" xPos=\"328\" yPos=\"110\" inDepth=\"false\"><level ID=\"1\" src=\"first_hay_place\" layer=\"10\"/><level ID=\"1\" src=\"stump\" layer=\"20\" xPos=\"14\" yPos=\"0\"/></Place><GrainPlace ID=\"clover_place\" layer=\"45\" xPos=\"210\" yPos=\"107\" inDepth=\"false\" standX=\"130\" standY=\"25\" actionList=\"cutDown,cutDown\" fColor=\"0xFFFF33\" types=\"Clover\" markerType=\"GrandMark\"><level ID=\"1\" src=\"first_clover_place\" layer=\"10\"/></GrainPlace><GrainPlace ID=\"grain_place\" layer=\"60\" xPos=\"125\" yPos=\"111\" inDepth=\"false\" standX=\"130\" standY=\"25\" actionList=\"cutDown,cutDown\" fColor=\"0xFFFF33\" types=\"Grain\" markerType=\"GrandMark\"><level ID=\"1\" src=\"first_grain_place\" /></GrainPlace><Place ID=\"cow_place\" layer=\"50\" xPos=\"0\" yPos=\"142\" inDepth=\"false\"><level ID=\"1\" src=\"first_cow_place\"/></Place><Place ID=\"Sheep_Place\" layer=\"70\" xPos=\"0\" yPos=\"240\" inDepth=\"false\"><level ID=\"First_Sheep_Place\" src=\"First_Sheep_Place\"/></Place><Place ID=\"Goose_Place\" layer=\"65\" xPos=\"50\" yPos=\"310\" inDepth=\"false\"><level ID=\"First_Goose_Place\" src=\"First_Goose_Place\" layer=\"10\"/></Place><Place ID=\"HoneyPlaceUp\" layer=\"90\" xPos=\"300\" yPos=\"295\" inDepth=\"false\"><level ID=\"1\" src=\"FirstHoneyPlaceUp\"/></Place><Place ID=\"HoneyPlaceDn\" layer=\"100\" xPos=\"300\" yPos=\"368\" inDepth=\"false\"><level ID=\"1\" src=\"FirstHoneyPlaceDn\"/></Place><Place ID=\"BuckPlace\" layer=\"180\" xPos=\"370\" yPos=\"184\" inDepth=\"false\" standX=\"20\" standY=\"-10\" action=\"persApplyObj\" actionList=\"getWater,putWater\" overFilter=\"glow\" fColor=\"0xFFFF33\" types=\"Bucket\"><level ID=\"1\" src=\"BucketsPlace\" layer=\"1\" /></Place><Trash ID=\"trash\" layer=\"150\" xPos=\"526\" yPos=\"292\" inDepth=\"true\" action=\"persApplyObj\" actionList=\"trashObj,trashObj\" ><level ID=\"1\" src=\"swamp\" layer=\"8\"/><level ID=\"2\" src=\"PigTail_Left\" xPos=\"-4\" yPos=\"-10\" overFilter=\"glow\" animation=\"true\" frames=\"6\" playtime=\"1\" loops=\"1\" looptype=\"0\" xpos=\"1\" ypos=\"-6\" classname=\"SimpleAnim\" startingframe=\"0\" poscorner=\"la\" mpx=\"2\" mpy=\"1\"/></Trash><VegPlaces ID=\"Vegetables\" layer=\"316\" xPos=\"400\" yPos=\"290\" inDepth=\"false\"><Place ID=\"1\" src=\"vegetable_Grass\" layer=\"500\"/><VegPlace ID=\"Veg01\" src=\"Veg01\" layer=\"1\" xPos=\"8\" \tyPos=\"24\" overFilter=\"adj\" action=\"gotoSetVeg\" actionOver=\"showVegTab\" actionOut=\"hideVegTab\" /><VegPlace ID=\"Veg02\" src=\"Veg02\" layer=\"2\" xPos=\"40\"\tyPos=\"6\" overFilter=\"adj\" action=\"gotoSetVeg\" actionOver=\"showVegTab\" actionOut=\"hideVegTab\" /><VegPlace ID=\"Veg03\" src=\"Veg03\" layer=\"3\" xPos=\"36\" \tyPos=\"58\" overFilter=\"adj\" action=\"gotoSetVeg\" actionOver=\"showVegTab\" actionOut=\"hideVegTab\" /><VegPlace ID=\"Veg04\" src=\"Veg04\" layer=\"4\" xPos=\"74\" \tyPos=\"34\" overFilter=\"adj\" action=\"gotoSetVeg\" actionOver=\"showVegTab\" actionOut=\"hideVegTab\" /><VegPlace ID=\"Veg05\" src=\"Veg05\" layer=\"5\" xPos=\"62\"\tyPos=\"90\" overFilter=\"adj\" action=\"gotoSetVeg\" actionOver=\"showVegTab\" actionOut=\"hideVegTab\" /><VegPlace ID=\"Veg06\" src=\"Veg06\" layer=\"6\" xPos=\"108\" \tyPos=\"64\" overFilter=\"adj\" action=\"gotoSetVeg\" actionOver=\"showVegTab\" actionOut=\"hideVegTab\" /></VegPlaces><Place ID=\"BackgroundBush\" layer=\"106\" xPos=\"574\" yPos=\"114\" inDepth=\"false\"><level ID=\"1\" src=\"FirstBackgroundBush\"/></Place><Place ID=\"Shelve_up\" layer=\"312\" xPos=\"450\" yPos=\"221\" inDepth=\"true\"><level ID=\"1\" src=\"rightfirst_shelve_up\" yPos=\"-41\"/></Place><Bike ID=\"Bike\" layer=\"314\" maxObj=\"2\" xPos=\"480\" yPos=\"264\" inDepth=\"true\" standX=\"0\" standY=\"-55\" action=\"persApplyObj\" actionList=\"sellObj,sellObj\" overFilter=\"glow\" types=\"whiteEggs,Wool,Pumpkin,Cabbage,Watermelon\"><level ID=\"1\" src=\"stand\" yPos=\"-78\"/><level ID=\"2\" src=\"BicycleRackBack\" \tobj=\"rack\" layer=\"1\" xPos=\"10\" \tyPos=\"-58\"/><level ID=\"2\" src=\"BicycleRackBottom\"\tobj=\"rack\" layer=\"2\" xPos=\"10\" \tyPos=\"-48\"/><level ID=\"2\" src=\"BicycleRackFront\" \tobj=\"rack\" layer=\"20\" xPos=\"8\" \tyPos=\"-57\"/><level ID=\"1\" src=\"bicycle_anim_motion\" \tlayer=\"100\" animation=\"true\" xPos=\"24\" yPos=\"-90\"/><level ID=\"1\" src=\"bicyclewheel\" \t\t\tlayer=\"101\" animation=\"true\" xPos=\"0\" yPos=\"-40\"/><level ID=\"1\" src=\"bicyclewheel\" \t\t\tlayer=\"102\" animation=\"true\" xPos=\"82\" yPos=\"-40\"/></Bike><Place ID=\"Shelve_dn\" layer=\"315\" xPos=\"456\" yPos=\"287\" inDepth=\"true\"><level ID=\"1\" src=\"rightfirst_shelve_dn\" yPos=\"-41\"/></Place><Place ID=\"GrassSheet\" layer=\"125\" xPos=\"456\" yPos=\"266\" inDepth=\"false\"><level ID=\"1\" src=\"GrassSheet\"/></Place><Place ID=\"Well\" layer=\"105\" xPos=\"440\" yPos=\"95\" inDepth=\"false\" standX=\"125\" standY=\"55\" action=\"GrandSetWater\" actionList=\"setWater,setWater\" overFilter=\"glow\" fColor=\"0xFFFF33\" types=\"Bucket\" markerType=\"GrandMark\"><level ID=\"1\" src=\"WellOneBasis\" /><level ID=\"2\" src=\"WellOneRopeStatic\" xPos=\"24\" yPos=\"38\"/><level ID=\"3\" src=\"WellOneCircle\" xPos=\"38\" yPos=\"45\"/></Place><Button ID=\"FooterMenu\" layer=\"8000\" xPos=\"4\" yPos=\"434\" inDepth=\"false\" action=\"showIngameMenu\" title=\"LEVEL MENU\" xTit=\"-1\"><item ID=\"_up\" src=\"GUIButtonMenuNormal\" /><item ID=\"_over\" src=\"GUIButtonMenuOver\" /><item ID=\"_down\" src=\"GUIButtonMenuPush\" xPos=\"1\" yPos=\"1\"/></Button><CashSlot ID=\"GUIMoneyTab\" layer=\"8100\" xPos=\"58\" yPos=\"434\" inDepth=\"false\" title=\"0\" xTit=\"32\" yTit=\"8\"><level ID=\"1\" src=\"GUIMoneyTab\" /><level ID=\"2\" src=\"GUIMoneyTabCoin\" xPos=\"5\" yPos=\"10\" /></CashSlot><Button ID=\"sellArrow\" layer=\"8200\" xPos=\"590\" yPos=\"176\" inDepth=\"false\" action=\"sellShipment\" ><item ID=\"_up\" src=\"SellArrow_up\" /><item ID=\"_over\" src=\"sellArrow\" animation=\"true\" /><item ID=\"_down\" src=\"SellArrow_up\" xPos=\"1\" yPos=\"1\"/></Button></Plases>";
mapData = "<Map ID=\"MapBackground\" isClosed=\"false\" granularity=\"48\" layer=\"50\"><Point ID=\"PointPlace\" xPos=\"82\" yPos=\"126\" /><Point ID=\"PointPlace\" xPos=\"104\" yPos=\"120\"/><Point ID=\"PointPlace\" xPos=\"126\" yPos=\"126\"/><Point ID=\"PointPlace\" xPos=\"146\" yPos=\"136\"/><Point ID=\"BonusPointPlace\" xPos=\"168\" yPos=\"146\" isBonus=\"true\"/><Point ID=\"PointPlace\" xPos=\"190\" yPos=\"156\"/><Point ID=\"PointPlace\" xPos=\"212\" yPos=\"160\"/><Point ID=\"PointPlace\" xPos=\"234\" yPos=\"156\" lock=\"false\"/><Point ID=\"PointPlace\" xPos=\"256\" yPos=\"148\" lock=\"false\"/><Point ID=\"BonusPointPlace\" xPos=\"278\" yPos=\"136\" isBonus=\"true\"/><Point ID=\"PointPlace\" xPos=\"296\" yPos=\"120\" lock=\"true\"/><Point ID=\"PointPlace\" xPos=\"310\" yPos=\"102\"/><Point ID=\"PointPlace\" xPos=\"320\" yPos=\"82\"/><Point ID=\"PointPlace\" xPos=\"326\" yPos=\"62\"/><Point ID=\"BonusPointPlace\" xPos=\"342\" yPos=\"46\"/><Point ID=\"PointPlace\" xPos=\"360\" yPos=\"38\"/><Point ID=\"PointPlace\" xPos=\"382\" yPos=\"44\"/><Point ID=\"PointPlace\" xPos=\"400\" yPos=\"56\"/><Point ID=\"PointPlace\" xPos=\"416\" yPos=\"70\"/><Point ID=\"BonusPointPlace\" xPos=\"436\" yPos=\"82\"/><Point ID=\"PointPlace\" xPos=\"458\" yPos=\"86\"/><Point ID=\"PointPlace\" xPos=\"480\" yPos=\"82\"/><Point ID=\"PointPlace\" xPos=\"500\" yPos=\"74\"/><Button ID=\"MapMenuBut\" xPos=\"10\" yPos=\"426\" action=\"gotoRootMenu\" title=\"MENU MAP\" xTit=\"26\" yTit=\"10\"><item ID=\"_up\" src=\"MenuButtonNormal\" /><item ID=\"_over\" src=\"MenuButtonOver\" /><item ID=\"_down\" src=\"MenuButtonPush\" xPos=\"1\" yPos=\"1\"/></Button><Button ID=\"MapPlayBut\" xPos=\"530\" yPos=\"426\" action=\"loadLevel\" title=\"PLAY\" xTit=\"14\" yTit=\"10\"><item ID=\"_up\" src=\"PlayButtonNormal\" /><item ID=\"_over\" src=\"PlayButtonOver\" /><item ID=\"_down\" src=\"PlayButtonPush\" xPos=\"2\" yPos=\"2\"/></Button></Map>";
Prices = "<Prices><Pumpkin Buy=\"10\" Sell=\"50\"/><Cabbage Buy=\"30\" Sell=\"100\"/><Watermelon Buy=\"50\" Sell=\"150\"/><Melon Sell=\"150\"/><whiteEggs Sell=\"200\"/><HenEgg Sell=\"250\"/><TurkeyEgg Sell=\"300\"/><Wool Sell=\"300\"/><BrownWool Sell=\"850\"/><GoatMilk Sell=\"400\"/><CowMilk Sell=\"500\"/><GrainField Buy=\"100\"/><CloverField Buy=\"150\"/><HayField Buy=\"200\"/><Bread Sell=\"600\"/><Honey Sell=\"500\"/><HoneyPie Sell=\"1200\"/><SourCream Sell=\"800\"/><Cheese Sell=\"900\"/><MelonPie Sell=\"1400\"/><Apple Sell=\"400\"/><Pear Sell=\"600\"/><Plum Sell=\"700\"/><Peach Sell=\"950\"/><ApplePie sell=\"1000\"/><PeachCurd sell=\"1450\"/><PearYoughurt sell=\"1300\"/><PlumPie sell=\"1400\"/><PumpkinPie sell=\"750\"/><Scarf sell=\"1500\"/><Threads sell=\"750\"/><WoolMittens sell=\"1600\"/></Prices>";
}
static function getXML(category) {
var returnedXML = null;
switch (category) {
case "map" :
returnedXML = new XML(mapData);
break;
case "game" :
returnedXML = new XML(gameData);
break;
case "pers" :
returnedXML = new XML(Pers[arguments[1]]);
break;
case "animations" :
returnedXML = new XML(Animation[arguments[1]]);
break;
case "obj" :
var key_1 = arguments[1];
var key_2 = arguments[2];
returnedXML = new XML(takedObj[key_1][key_2]);
break;
case "price" :
var key = arguments[1];
returnedXML = com.utils.XMLObjFinder.findNode(new XML(Prices), key);
break;
case "level" :
var key = ("level_" + arguments[1]);
returnedXML = new XML(levels[key]);
break;
case "partofbody" :
returnedXML = new XML(partOfBody[arguments[1]]);
break;
case "getGui" :
returnedXML = new XML(guiRes[arguments[1]]);
break;
case "getProperties" :
var key = arguments[1];
returnedXML = com.utils.XMLObjFinder.findNode(new XML(properties), key);
break;
case "hints" :
var idMappedXML = new XML();
idMappedXML.parseXML(hints);
returnedXML = idMappedXML.idMap[arguments[1]];
break;
case "baseProfile" :
returnedXML = new XML(baseProfile);
}
return(returnedXML);
}
}
Symbol 765 MovieClip [__Packages.com.data.GUIres] Frame 0
class com.data.GUIres
{
static var guiRes;
function GUIres () {
}
static function init() {
guiRes = new Array();
guiRes.RootMenuItem = "<Button ID=\"RootMenuItem\" xTit=\"-4\" yTit=\"5\" align=\"center\"><item ID=\"_up\" src=\"MainMenuButtonNormal\" /><item ID=\"_over\" src=\"MainMenuButtonOver\" /><item ID=\"_down\" src=\"MainMenuButtonPush\" xPos=\"2\" yPos=\"2\"/></Button>";
guiRes.rootMenu = "<rootMenu x=\"26\" y=\"18\"><Item title=\"Play\"\t\t\taction=\"playGame\"\t\tresID=\"RootMenuItem\"/><Item title=\"Options\"\t\taction=\"showOptions\"\tresID=\"RootMenuItem\" /><Item title=\"More Games\"\taction=\"MoreGames\"\t\tresID=\"RootMenuItem\" /><Item title=\"Get Full\"\t\taction=\"GetIt\"\t\t\tresID=\"RootMenuItem\" /></rootMenu>";
guiRes.InGameMenuItem = "<Button ID=\"InGameMenuItem\" xTit=\"10\" yTit=\"5\" align=\"center\"><item ID=\"_up\" src=\"IngamemenuButtonNormal\" /><item ID=\"_over\" src=\"IngamemenuButtonOver\" /><item ID=\"_down\" src=\"IngamemenuButtonPush\" xPos=\"2\" yPos=\"2\"/></Button>";
guiRes.InGameMenu = "<InGameMenu><Item title=\"Resume\"\t\taction=\"resumeGame\"\t\tclass=\"InGameMenuItem\"/><Item title=\"More Games\"\taction=\"MoreGames\"\t\tclass=\"InGameMenuItem\" /><Item title=\"Get Full\"\t\taction=\"GetIt\"\t\t\tclass=\"InGameMenuItem\" /><Item title=\"Abort\"\t\taction=\"abortGame\"\t\tclass=\"InGameMenuItem\" /><Item title=\"Options\"\t\taction=\"showOptions\"\tclass=\"InGameMenuItem\" /></InGameMenu>";
guiRes.BriefingMain = "<goalBG ID=\"BriefingMain\" layer=\"10\" xPos=\"0\" yPos=\"0\">";
guiRes.GoalBriefingCoin = "<goalBG ID=\"BriefingCoin\" xPos=\"4\" yPos=\"4\">";
guiRes.GoalPumpkin = "<goalBG ID=\"GuiTabPumpkin\" xPos=\"4\" yPos=\"8\">";
guiRes.GoalCabbage = "<goalBG ID=\"GuiTabCabbage\" xPos=\"4\" yPos=\"8\">";
guiRes.GoalGoose = "<goalBG ID=\"GuiTabGoose\" xPos=\"4\" yPos=\"5\">";
guiRes.GoalWool = "<goalBG ID=\"GuiTabWool\" xPos=\"4\" yPos=\"5\">";
guiRes.GoalMinigameSheep = "<goalBG ID=\"MarketItemSheep\" xPos=\"4\" yPos=\"5\">";
guiRes.GoalGuiTabLamb = "<goalBG ID=\"GuiTabLamb\" xPos=\"4\" yPos=\"5\">";
guiRes.GoalGirlNearGrain = "<goalBG ID=\"GirlNearGrain\" xPos=\"4\" yPos=\"5\">";
guiRes.GoalGoslingEat = "<goalBG ID=\"GoslingEat\" xPos=\"4\" yPos=\"5\">";
guiRes.GoalHareEatPumpkin = "<goalBG ID=\"HareEatPumpkin\" xPos=\"4\" yPos=\"5\">";
guiRes.GoalHareHitNearPumpkin = "<goalBG ID=\"HareHitNearPumpkin\" xPos=\"4\" yPos=\"5\">";
guiRes.GoalHareRunawayNearPumpkin = "<goalBG ID=\"HareRunawayNearPumpkin\" xPos=\"4\" yPos=\"5\">";
guiRes.GoalSheepEat = "<goalBG ID=\"SheepEat\" \t\txPos=\"4\" yPos=\"5\"/>";
guiRes.GoalGirlCutSheep = "<goalBG ID=\"GirlCutSheep\"\txPos=\"4\" yPos=\"5\"/>";
guiRes.GoalGirlWhool = "<goalBG ID=\"GirlWhool\" \t\txPos=\"4\" yPos=\"5\"/>";
guiRes.GoalRavenPecks = "<goalBG ID=\"RavenPecks\" \t\txPos=\"4\" yPos=\"5\"/>";
guiRes.GoalRavenHit = "<goalBG ID=\"RavenHit\" \t\txPos=\"4\" yPos=\"5\"/>";
guiRes.GoalRavenFlyaway = "<goalBG ID=\"RavenFlyaway\" \txPos=\"4\" yPos=\"5\"/>";
guiRes.HintCheck = "<Button ID=\"HintCheck\" type=\"toggle\" xPos=\"10\" yPos=\"74\"><item ID=\"1\" src=\"HintCheckBase\" /><item ID=\"2\" src=\"HintCheckEnabled\"\t\t selected = \"true\"/></Button>";
guiRes.HintContButton = "<Button ID=\"HintContButton\" xPos=\"192\" yPos=\"74\" action=\"hide\" xTit=\"-60\"><item ID=\"_up\" src=\"HintContButtonNormal\" /><item ID=\"_over\" src=\"HintContButtonOver\" /><item ID=\"_down\" src=\"HintContButtonDown\" xPos=\"1\" yPos=\"1\"/></Button>";
guiRes.GuiTabwhiteEggs = "<goalBG ID=\"GuiTabGooseEggs\" xPos=\"0\" yPos=\"4\">";
guiRes.GrandfatherWellOne = "<goalBG ID=\"GrandfatherWellOne\" xPos=\"0\" yPos=\"4\">";
guiRes.BriefingArrow = "<goalBG ID=\"BriefingArrow\" xPos=\"0\" yPos=\"4\">";
guiRes.BucketsPlaceHit = "<goalBG ID=\"BucketsPlaceHit\" xPos=\"0\" yPos=\"4\">";
guiRes.GirlFlow = "<goalBG ID=\"GirlFlow\" xPos=\"0\" yPos=\"4\">";
guiRes.GoalWatermelon = "<goalBG ID=\"GuiTabWatermelon\" \txPos=\"4\" yPos=\"8\">";
guiRes.GoalwhiteEggs = "<goalBG ID=\"GuiTabGooseEggs\" \txPos=\"4\" yPos=\"8\">";
guiRes.GoalGooseEggs = "<goalBG ID=\"GuiTabGooseEggs\" \txPos=\"4\" yPos=\"8\">";
guiRes.GoalGirlGooseEggs = "<goalBG ID=\"GirlGooseEggs\" xPos=\"12\" yPos=\"5\">";
guiRes.Goalgoose_eat_ico = "<goalBG ID=\"goose_eat_ico\" xPos=\"4\" yPos=\"5\">";
guiRes.GoalSheep = "<goalBG ID=\"Sheep\" xPos=\"4\" yPos=\"8\">";
guiRes.StatWindow = "<statWindow ID=\"StatWindow\" xPos=\"0\" yPos=\"0\">";
guiRes.coinStat = "<statWindow ID=\"coinStat\" xPos=\"0\" yPos=\"0\">";
guiRes.OptionsOver = "<statWindow ID=\"OptionsOver\" xPos=\"0\" yPos=\"0\">";
guiRes.OptionsSlider = "<statWindow ID=\"OptionsSlider\" xPos=\"0\" yPos=\"0\">";
guiRes.ButtonOptOk = "<statWindow ID=\"ButtonOptOk\" xPos=\"300\" yPos=\"300\" action=\"hide\" title=\"OK\" xTit=\"10\"><item ID=\"_up\" src=\"GUIButtonMenuNormal\" /><item ID=\"_over\" src=\"GUIButtonMenuOver\" /><item ID=\"_down\" src=\"GUIButtonMenuPush\" xPos=\"1\" yPos=\"1\"/></Button>";
guiRes.CellHighlight = "<Market ID=\"CellHighlight\" layer=\"1\" \"xPos=\"0\" yPos=\"0\"/>";
guiRes.CellNormal = "<Market ID=\"CellNormal\" \tlayer=\"1\" xPos=\"0\" yPos=\"0\"/>";
guiRes.MarketHintTab = "<Market ID=\"MarketHintTab\" \tlayer=\"1\" xPos=\"0\" yPos=\"0\"/>";
guiRes.CellLockedGray = "<Market ID=\"CellLocked\" \tlayer=\"2\" xPos=\"1\" yPos=\"1\" filter=\"Tint\" fColor=\"0xFF6666\"/>";
guiRes.CellLocked = "<Market ID=\"CellLocked\" \tlayer=\"0\" xPos=\"1\" yPos=\"1\" />";
guiRes.CellSoldTab = "<Market ID=\"CellSoldTab\" layer=\"0\" xPos=\"10\" yPos=\"32\" />";
guiRes.CellLock = "<Market ID=\"CellLock\" \tlayer=\"0\" xPos=\"50\" yPos=\"8\" />";
guiRes.CellLockWait = "<Market ID=\"CellLockWait\" layer=\"0\" xPos=\"50\" yPos=\"8\" />";
guiRes.Gosling = "<Market ID=\"MarketItemGosling\" layer=\"0\" \txPos=\"21\" \tyPos=\"10\" />";
guiRes.Watermelon = "<Market ID=\"MarketItemWatermelon\" layer=\"0\" \txPos=\"8\"\tyPos=\"22\" />";
guiRes.Cabbage = "<Market ID=\"MarketItemCabbage\" \txPos=\"21\"\tyPos=\"22\" />";
guiRes.Lamb = "<Market ID=\"MarketItemLamb\" layer=\"0\" \t\txPos=\"16\" \tyPos=\"8\" />";
guiRes.Windmill = "<Market ID=\"MarketItemMill\" layer=\"0\" \t\txPos=\"16\" \tyPos=\"8\" />";
guiRes.Beehive = "<Market ID=\"MarketItemBeehive\" layer=\"0\" \txPos=\"16\" \tyPos=\"8\" />";
guiRes.Melon = "<Market ID=\"MarketItemMelon\" layer=\"0\" \t\txPos=\"22\" \tyPos=\"22\" />";
guiRes.Chicken = "<Market ID=\"MarketItemChicken\" layer=\"0\" \txPos=\"21\" \tyPos=\"8\" />";
guiRes.TurkeyKid = "<Market ID=\"MarketItemTurkeyKid\" layer=\"0\" \txPos=\"22\" \tyPos=\"8\" />";
guiRes.GoatKid = "<Market ID=\"MarketItemGoatKid\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" />";
guiRes.Calf = "<Market ID=\"MarketItemCalf\" layer=\"0\" \t\txPos=\"8\" \tyPos=\"8\" />";
guiRes.Bakery = "<Market ID=\"MarketItemBreadBakery\" layer=\"0\" xPos=\"8\" \tyPos=\"8\" />";
guiRes.WhiteGoatKid = "<Market ID=\"MarketItemWhiteGoatKid\" layer=\"0\" \t\txPos=\"8\" \tyPos=\"8\" />";
guiRes.PumpkinPieBakery = "<Market ID=\"MarketItemPumpkinPieBakery\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" />";
guiRes.BrownLamb = "<Market ID=\"MarketItemBrownLamb\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" />";
guiRes.SourCream = "<Market ID=\"MarketItemSourCreamHouse\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" />";
guiRes.MelonPieBakery = "<Market ID=\"MarketItemMelonPieBakery\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" />";
guiRes.Peach = "<Market ID=\"MarketItemPeach\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" />";
guiRes.Pear = "<Market ID=\"MarketItemPear\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" />";
guiRes.Apple = "<Market ID=\"MarketItemApple\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" />";
guiRes.Plum = "<Market ID=\"MarketItemPlum\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" />";
guiRes.BrownCalf = "<Market ID=\"MarketItemBrownCalf\" layer=\"0\" \t\txPos=\"8\" \tyPos=\"8\" />";
guiRes.HoneyPieBakery = "<Market ID=\"MarketItemHoneyPieBakery\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" />";
guiRes.ApplePieBakery = "<Market ID=\"MarketItemApplePieBakery\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" />";
guiRes.Cheese = "<Market ID=\"MarketItemCheeseHouse\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" />";
guiRes.PlumPieBakery = "<Market ID=\"MarketItemPlumPieBakery\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" />";
guiRes.PeachCurd = "<Market ID=\"MarketItemPeachCurd\" layer=\"0\" \t\txPos=\"8\" \tyPos=\"8\" />";
guiRes.Scarf = "<Market ID=\"MarketItemScarfHouse\" layer=\"0\" \t\t\txPos=\"8\" \tyPos=\"8\" />";
guiRes.Threads = "<Market ID=\"MarketItemThreadsHouse\" layer=\"0\" \t\txPos=\"8\" \tyPos=\"8\" />";
guiRes.WoolMittens = "<Market ID=\"MarketItemWoolMittensFactory\" layer=\"0\" \t\txPos=\"8\" \tyPos=\"8\" />";
guiRes.PearYoughurt = "<Market ID=\"MarketItemPearYoughurt\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" />";
guiRes.Hoe = "<Market ID=\"MarketItemHoe\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" >";
guiRes.Scythe = "<Market ID=\"MarketItemNewScythe\" layer=\"0\" \txPos=\"4\" \tyPos=\"10\" >";
guiRes.FoodPans = "<Market ID=\"MarketItemFoodPans\" layer=\"0\" \txPos=\"12\" \tyPos=\"16\" >";
guiRes.WaterPans = "<Market ID=\"MarketItemWaterPans\" layer=\"0\" \txPos=\"16\" \tyPos=\"16\" >";
guiRes.Well2 = "<Market ID=\"MarketItemWellTwo\" layer=\"0\" \txPos=\"16\" \tyPos=\"10\" >";
guiRes.Razor = "<Market ID=\"MarketItemRazor\" layer=\"0\" \t\txPos=\"8\" \tyPos=\"16\" >";
guiRes.HisBoots = "<Market ID=\"MarketItemHisBoots\" layer=\"0\" \txPos=\"8\" \tyPos=\"10\" >";
guiRes.Gloves = "<Market ID=\"MarketItemHisGloves\" layer=\"0\" \txPos=\"16\" \tyPos=\"16\" >";
guiRes.Boots = "<Market ID=\"MarketItemHerBoots\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" >";
guiRes.Defence = "<Market ID=\"MarketItemVegetablesDefence\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" >";
guiRes.Scooter = "<Market ID=\"MarketItemBicycle\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" >";
guiRes.Tiles = "<Market ID=\"MarketItemTiles\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" >";
guiRes.Entrance = "<Market ID=\"MarketItemNewEntrance\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" >";
guiRes.TiledArea = "<Market ID=\"MarketItemTiledArea\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" >";
guiRes.Motorcycle = "<Market ID=\"MarketItemMotorcycle\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" >";
guiRes.Strongbull = "<Market ID=\"MarketItemStrongbull\" layer=\"0\" \txPos=\"20\" \tyPos=\"8\" >";
guiRes.Cocktail = "<Market ID=\"MarketItemCocktail\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" >";
guiRes.Well3 = "<Market ID=\"MarketItemWellThree\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" >";
guiRes.Shelves = "<Market ID=\"MarketItemNewShelves\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" >";
guiRes.Minitruck = "<Market ID=\"MarketItemMinitruck\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" >";
guiRes.Well4 = "<Market ID=\"MarketItemWellFour\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" >";
guiRes.Truck = "<Market ID=\"MarketItemTruck\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" >";
guiRes.Flowers = "<Market ID=\"MarketItemShelveFlowers\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" >";
guiRes.FruitDefence = "<Market ID=\"MarketItemFruitDefence\" layer=\"0\" \txPos=\"8\" \tyPos=\"8\" >";
guiRes.MarketBack = "<Market ID=\"MarketBack\" layer=\"10\" \txPos=\"0\" yPos=\"0\" >";
guiRes.DescriptionTab = "<Market ID=\"DescriptionTab\"\tlayer=\"600\"\t\txPos=\"130\" \tyPos=\"332\" >";
guiRes.ButMarkPlay = "<Button ID=\"MapPlayBut\" xPos=\"534\" yPos=\"428\" action=\"loadLevel\" title=\"PLAY\" xTit=\"14\" yTit=\"11\"><item ID=\"_up\" src=\"PlayButtonNormal\" /><item ID=\"_over\" src=\"PlayButtonOver\" /><item ID=\"_down\" src=\"PlayButtonPush\" xPos=\"2\" yPos=\"2\"/></Button>";
guiRes.ButMarkBack = "<Button ID=\"MapBackBut\" xPos=\"534\" yPos=\"428\" action=\"gotoMap\" title=\"BACK\" xTit=\"14\" yTit=\"11\"><item ID=\"_up\" src=\"PlayButtonNormal\" /><item ID=\"_over\" src=\"PlayButtonOver\" /><item ID=\"_down\" src=\"PlayButtonPush\" xPos=\"2\" yPos=\"2\"/></Button>";
guiRes.ButMarkSell = "<Button ID=\"GUIMoneyTab\" action=\"Sell\" xPos=\"2\" yPos=\"428\" title=\"SELL\" xTit=\"24\" yTit=\"11\"><item ID=\"_up\" src=\"SellButtonNormal\" /><item ID=\"_over\" src=\"SellButtonOver\" /><item ID=\"_down\" src=\"SellButtonPush\" xPos=\"2\" yPos=\"2\"/></Button>";
guiRes.ButMarkBuy = "<Button ID=\"ButMarkBuy\" action=\"bayObj\" xPos=\"430\" yPos=\"412\" title=\"BUY\" xTit=\"32\" yTit=\"11\"><item ID=\"_up\" src=\"BuyButtonNormal\" /><item ID=\"_over\" src=\"BuyButtonOver\" /><item ID=\"_down\" src=\"BuyButtonPush\" xPos=\"2\" yPos=\"2\"/></Button>";
guiRes.UPButMarkCellCtrl = "<Button ID=\"UPButMarkCellCtrl\" action=\"moveUp\" xPos=\"27\" yPos=\"16\" ><item ID=\"_up\" src=\"MovableindicatorNormal\" /><item ID=\"_over\" src=\"MovableindicatorOver\" /><item ID=\"_down\" src=\"MovableindicatorPush\" yPos=\"1\"/></Button>";
guiRes.DnButMarkCellCtrl = "<Button ID=\"UPButMarkCellCtrl\" action=\"moveDn\" xPos=\"27\" yPos=\"390\" transform=\"skew\"><item ID=\"_up\" src=\"MovableindicatorNormal\" /><item ID=\"_over\" src=\"MovableindicatorOver\" /><item ID=\"_down\" src=\"MovableindicatorPush\" yPos=\"1\"/></Button>";
if (Helper.DEBUG_XML_MODE) {
var aFile = "market.xml";
var aObject4 = new XML();
aObject4.ignoreWhite = true;
var nameArr = new Array("MarketResList", "MarketUpgrList");
aObject4.onLoad = function (success) {
var node;
var i = 0;
while (i < aObject4.childNodes.length) {
node = aObject4.childNodes[i];
com.data.GUIres.guiRes[nameArr[i]] = node.toString();
i++;
}
};
aObject4.load(aFile);
} else {
guiRes.MarketResList = "<Market name=\"res\"><Cabbage \t\tPrice=\"100\"/><Watermelon\tPrice=\"150\" wait=\"true\"/><Gosling \t\tPrice=\"500\" wait=\"true\"/><Lamb \t\t\tPrice=\"800\"/><Beehive \t\tPrice=\"1000\"/><Beehive \t\tPrice=\"1000\"/><Windmill \t\tPrice=\"1200\"/><Melon\t\t\tPrice=\"1500\"/><Chicken \t\tPrice=\"1500\"/><TurkeyKid \tPrice=\"1800\"/><GoatKid \t\tPrice=\"2000\"/><Calf \t\t\tPrice=\"2500\"/><Bakery\t\tPrice=\"2500\"/><WhiteGoatKid \tPrice=\"2700\"/><PumpkinPieBakery Price=\"3000\"/><BrownLamb \tPrice=\"3500\"/><SourCream \tPrice=\"3500\"/><MelonPieBakery Price=\"4000\"/><Peach \t\tPrice=\"4000\"/><Pear \t\t\tPrice=\"4000\"/><Apple \t\tPrice=\"4500\"/><Plum \t\t\tPrice=\"4500\"/><BrownCalf \tPrice=\"5000\"/><HoneyPieBakery Price=\"6000\"/><ApplePieBakery Price=\"7000\"/><Cheese \t\tPrice=\"8000\"/><PlumPieBakery Price=\"9000\"/><PeachCurd \tPrice=\"10000\"/><Scarf \t\tPrice=\"10000\"/><Threads \t\tPrice=\"12000\"/><WoolMittens \tPrice=\"14000\"/><PearYoughurt \tPrice=\"15000\"/></Market>";
guiRes.MarketUpgrList = "<Market name=\"upgr\"><Hoe \t\tPrice=\"400\" \tSpeed=\"1\" Value=\"40\"/><Scythe \tPrice=\"600\" \tSpeed=\"1\" Value=\"40\"/><FoodPans \t\tPrice=\"1200\" \tMood=\"3\" Value=\"30\"/><WaterPans \tPrice=\"1500\" \tMood=\"3\" Value=\"30\"/><Well2 \t\tPrice=\"1800\" Equipment=\"1\"/><Razor \tPrice=\"2300\" \tSpeed=\"1\" Value=\"40\"/><HisBoots \tPrice=\"2800\" \tSpeed=\"1\" Value=\"40\"/><Gloves \tPrice=\"3400\" \tSpeed=\"1\" Value=\"40\"/><Boots \tPrice=\"4000\" \tSpeed=\"1\" Value=\"40\"/><Defence \t\tPrice=\"4700\"/><Scooter \t\tPrice=\"6500\" Equipment=\"1\"/><Tiles \tPrice=\"7500\"/><Entrance \tPrice=\"8000\"/><TiledArea \tPrice=\"9000\"/><Motorcycle \tPrice=\"14000\" \tEquipment=\"2\"/><Strongbull \tPrice=\"14000\" \tSpeed=\"1\" Value=\"60\"/><Cocktail \tPrice=\"10000\" \tSpeed=\"1\" Value=\"60\"/><Well3 \t\tPrice=\"15000\" Equipment=\"2\"/><Shelves \tPrice=\"15000\"/><Minitruck \tPrice=\"25000\" \tEquipment=\"3\"/><Well4 \t\tPrice=\"25000\" \tEquipment=\"3\"/><Truck \t\tPrice=\"45000\" \tEquipment=\"4\"/><Flowers \tPrice=\"2000\" \tMood=\"3\" Value=\"30\"/><FruitDefence Price=\"6000\"/></Market>";
}
guiRes.GuiItemTab = "<Market ID=\"GuiItemTab\" xPos=\"0\" yPos=\"0\" />";
guiRes.GuiTabMoneyGoal = "<Market ID=\"GuiTabMoneyGoal\" xPos=\"0\" yPos=\"0\" />";
guiRes.HintWindowLargePage = "<hint ID=\"HintWindowLargePage\" xPos=\"0\" yPos=\"4\"/>";
guiRes.HintWindowSmallPage = "<hint ID=\"HintWindowSmallPage\" xPos=\"0\" yPos=\"4\"/>";
guiRes._dark = "<hint ID=\"_dark\" xPos=\"0\" yPos=\"4\"/>";
guiRes.BluePoint = "<MapStar ID=\"BluePoint\" xPos=\"0\" yPos=\"0\">";
guiRes.Minigame01Background = "<Item ID=\"Minigame01Background\" xPos=\"0\" yPos=\"0\">";
guiRes.Minigame02Background = "<Item ID=\"MinigameTwoBackground\" xPos=\"0\" yPos=\"0\">";
guiRes.MinigameSheep = "<Item ID=\"MarketItemSheep\" xPos=\"80\" yPos=\"440\">";
guiRes.MinigameBackBut = "<Button ID=\"MinigameBackBut\" action=\"missLevel\" xPos=\"20\" yPos=\"430\" ><item ID=\"_up\" src=\"MinigameButtonNormal\" /><item ID=\"_over\" src=\"MinigameButtonOver\" /><item ID=\"_down\" src=\"MinigameButtonPush\" yPos=\"1\"/></Button>";
guiRes.VegetablesTab = "<VegSlotButton ID=\"GuiVegetablesTab\" layer=\"9025\" xPos=\"470\" yPos=\"434\" ><item ID=\"1\" src=\"GuiVegetablesTab\"/></VegSlotButton>";
guiRes.Well_2 = "<Place ID=\"Well\" layer=\"105\" xPos=\"440\" yPos=\"95\" standX=\"125\" standY=\"55\" upgrade=\"2\" action=\"GrandSetWater\" actionList=\"setWater,setWater\" overFilter=\"glow\" fColor=\"0xFFFF33\" types=\"Bucket\" markerType=\"GrandMark\"><level ID=\"1\" src=\"WellTwoBasis\" \t\tyPos=\"4\"/><level ID=\"2\" src=\"WellTwoRopeStatic\" \txPos=\"24\" yPos=\"38\"/><level ID=\"3\" src=\"WellTwoWheel\" \t\txPos=\"31\" yPos=\"44\"/></Place>";
guiRes.BuckPlace_2 = "<Place ID=\"BuckPlace\" layer=\"180\" xPos=\"370\" yPos=\"184\" standX=\"20\" standY=\"-10\" maxObj=\"2\" upgrade=\"2\" action=\"persApplyObj\" actionList=\"getWater,putWater\" overFilter=\"glow\" fColor=\"0xFFFF33\" types=\"Bucket\"><level ID=\"1\" src=\"BucketsPlace\" layer=\"1\" /></Place>";
guiRes.VegPumpkinButton = "<Button ID=\"VegPumpkinButton\" type=\"toggle\" layer=\"630\" iconName=\"GuiVegetablesTabPumpkin\" xPos=\"10\" yPos=\"5\" action=\"setVeg\" veg=\"PumpkinTab\"><item ID=\"1\" src=\"GuiVegetablesTabEmptyDisabled\" /><item ID=\"2\" src=\"GuiVegetablesTabEnabled\"\t\t selected = \"true\"/></Button>";
guiRes.GuiVegetablesTabPumpkin = "<Place ID=\"GuiVegetablesTabPumpkin\" layer=\"631\" xPos=\"4\" yPos=\"4\" visible=\"false\"/>";
guiRes.VegCabbageButton = "<Button ID=\"VegCabbageButton\" type=\"toggle\" layer=\"630\" iconName=\"GuiVegetablesTabCabbage\" xPos=\"10\" yPos=\"5\" action=\"setVeg\" veg=\"CabbageTab\"><item ID=\"1\" src=\"GuiVegetablesTabEmptyDisabled\" /><item ID=\"2\" src=\"GuiVegetablesTabEnabled\"\t\t selected = \"true\"/></Button>";
guiRes.GuiVegetablesTabCabbage = "<Place ID=\"GuiVegetablesTabCabbage\" layer=\"631\" xPos=\"4\" yPos=\"4\" visible=\"false\"/>";
guiRes.VegWatermelonButton = "<Button ID=\"VegWatermelonButton\" type=\"toggle\" layer=\"630\" iconName=\"GuiVegetablesTabWatermelon\" xPos=\"10\" yPos=\"5\" action=\"setVeg\" veg=\"WatermelonTab\"><item ID=\"1\" src=\"GuiVegetablesTabEmptyDisabled\" /><item ID=\"2\" src=\"GuiVegetablesTabEnabled\"\t\t selected = \"true\"/></Button>";
guiRes.GuiVegetablesTabWatermelon = "<Place ID=\"GuiVegetablesTabWatermelon\" layer=\"631\" xPos=\"4\" yPos=\"4\" visible=\"false\"/>";
guiRes.BirdDrinkPanOld = "<Place ID=\"Bird_DrinkPan\" layer=\"302\"\tinDepth=\"true\" \t\t\tx_cloudePos=\"-4\"\txPos=\"262\" yPos=\"356\" standX=\"80\" standY=\"-60\" \t\t\tanimalX=\"10\" animalY=\"-8\" action=\"persApplyObj\" actionList=\"fillPan,fillPan\" overFilter=\"glow\" types=\"Bucket\"><item ID=\"1\" src=\"BirdDrinkPanOld\" yPos=\"-24\"/><item ID=\"3\" src=\"BirdDrinkPanOldOver\" layer=\"50\" xPos=\"0\" yPos=\"-17\" /></Place>";
guiRes.BirdDrinkPan = "<Place ID=\"Bird_DrinkPan\" layer=\"302\"\tinDepth=\"true\"\t\t\tx_cloudePos=\"-4\"\txPos=\"262\" yPos=\"356\" standX=\"80\" standY=\"-60\" upgrade=\"2\" animalX=\"10\" animalY=\"-8\" action=\"persApplyObj\" actionList=\"fillPan,fillPan\" overFilter=\"glow\" types=\"Bucket\"><item ID=\"1\" src=\"BirdDrinkPan\" yPos=\"-24\"/><item ID=\"3\" src=\"BirdDrinkPanOver\" layer=\"50\" xPos=\"0\" yPos=\"-17\" /></Place>";
guiRes.BirdEatPanOld = "<Place ID=\"Bird_EatPan\" layer=\"301\"\t\tinDepth=\"true\"\t\t\txPos=\"216\" yPos=\"332\" standX=\"70\" standY=\"-60\" animalX=\"10\" animalY=\"10\" \t\t\taction=\"persApplyObj\" actionList=\"setFood,setFood\" overFilter=\"glow\" types=\"Grain\"><item ID=\"1\" src=\"BirdEatPanOld\" yPos=\"-14\"/></Place>";
guiRes.BirdEatPan = "<Place ID=\"Bird_EatPan\" layer=\"301\" upgrade=\"2\" inDepth=\"true\" \txPos=\"216\" yPos=\"332\" standX=\"70\" standY=\"-60\" animalX=\"10\" animalY=\"10\" \t\t\taction=\"persApplyObj\" actionList=\"setFood,setFood\" overFilter=\"glow\" types=\"Grain\"><item ID=\"1\" src=\"BirdEatPan\"\t yPos=\"-14\"/></Place>";
guiRes.GrainPlace = "<Place ID=\"GrainPlace\" layer=\"130\" xPos=\"216\" yPos=\"180\" standX=\"60\" standY=\"4\" action=\"persApplyObj\" actionList=\"getGrain,putGrain\" overFilter=\"glow\" fColor=\"0xFFFF33\" types=\"Grain\"/>";
guiRes.grain_sheaf = "<item ID=\"grain_sheaf\" objName=\"Grain\" inDepth=\"true\" layer=\"200\" xPos=\"12\" yPos=\"-10\" />";
guiRes.eat_Grain = "<Water ID=\"eat_Grain\" layer=\"25\" xPos=\"4\" yPos=\"6\" />";
guiRes.SheepDrinkPanOld = "<Place ID=\"Sheep_DrinkPan\" layer=\"306\"\tinDepth=\"true\"\t\t\t\tx_cloudePos=\"0\"\ty_cloudePos=\"24\"\txPos=\"176\" yPos=\"326\" standX=\"90\" standY=\"-60\" animalX=\"-10\" animalY=\"-10\" action=\"persApplyObj\" actionList=\"fillPan,fillPan\" overFilter=\"glow\" types=\"Bucket\"><item ID=\"1\" src=\"SheepDrinkPanOld\" yPos=\"-24\"/><item ID=\"3\" src=\"SheepDrinkPanOldOver\" layer=\"50\" xPos=\"0\" yPos=\"-15\" /></Place>";
guiRes.SheepDrinkPan = "<Place ID=\"Sheep_DrinkPan\" layer=\"306\" \tinDepth=\"true\" upgrade=\"2\"\tx_cloudePos=\"0\"\ty_cloudePos=\"24\"\txPos=\"176\" yPos=\"326\" standX=\"90\" standY=\"-60\" animalX=\"-10\" animalY=\"-10\" action=\"persApplyObj\" actionList=\"fillPan,fillPan\" overFilter=\"glow\" types=\"Bucket\"><item ID=\"1\" src=\"SheepDrinkPan\" yPos=\"-24\"/><item ID=\"3\" src=\"SheepDrinkPanOver\" layer=\"50\" xPos=\"0\" yPos=\"-15\" /></Place>";
guiRes.SheepEatPanOld = "<Place ID=\"Sheep_EatPan\" layer=\"305\"\tinDepth=\"true\"\t\t\t\tx_cloudePos=\"-4\"\ty_cloudePos=\"24\"\t\t\txPos=\"144\" yPos=\"304\" standX=\"80\" standY=\"-70\" animalX=\"-12\" animalY=\"-16\" action=\"persApplyObj\" actionList=\"setFood,setFood\" overFilter=\"glow\" types=\"Clover\"><item ID=\"1\" src=\"SheepEatPanOld\" yPos=\"-28\"/></Place>";
guiRes.SheepEatPan = "<Place ID=\"Sheep_EatPan\" layer=\"305\" \tinDepth=\"true\"\tupgrade=\"2\"\tx_cloudePos=\"-4\"\ty_cloudePos=\"24\"\txPos=\"144\" yPos=\"304\" standX=\"80\" standY=\"-70\" animalX=\"-10\" animalY=\"-10\" action=\"persApplyObj\" actionList=\"setFood,setFood\" overFilter=\"glow\" types=\"Clover\"><item ID=\"1\" src=\"SheepEatPan\" yPos=\"-28\"/></Place>";
guiRes.CloverPlace = "<Place ID=\"CloverPlace\" layer=\"131\" xPos=\"276\" yPos=\"160\" standX=\"60\" standY=\"4\" action=\"persApplyObj\" actionList=\"getGrain,putGrain\" overFilter=\"glow\" fColor=\"0xFFFF33\" types=\"Clover\"/>";
guiRes.eat_Clover = "<Water ID=\"eat_Clover\" layer=\"25\" xPos=\"4\" yPos=\"6\" />";
guiRes.WaterBird = "<Water ID=\"WaterBird\" \t\t\txPos=\"4\" yPos=\"6\" />";
guiRes.GrandchildMark = "<Water ID=\"GrandchildMark\" layer=\"20000\" />";
guiRes.GrandMark = "<Water ID=\"GrandMark\" layer=\"21000\" />";
guiRes["GrainField+"] = "<Place ID=\"GrainField+\" xPos=\"-3\" action=\"GrandCutDownGrain\" />";
guiRes.gooseEggsPlace = "<Place ID=\"gooseEggsPlace\" layer=\"288\" standX=\"40\" standY=\"-70\" action=\"persApplyObj\" actionList=\"getProduct,getProduct\" overFilter=\"glow\" types=\"whiteEggs\"/>";
guiRes.gooseEggs = "<item ID=\"gooseEggs\" objName=\"whiteEggs\" layer=\"10\" yPos=\"-20\" xPos=\"-18\"/>";
guiRes.AlarmclockNormal = "<Obj ID=\"AlarmclockNormal\"/>";
guiRes.AlarmclockArrow = "<Obj ID=\"AlarmclockArrow\" xPos=\"18\" yPos=\"15\"/>";
guiRes.AlarmArrow = "<Obj ID=\"AlarmArrow\" xPos=\"23\" yPos=\"35\"/>";
guiRes.AlarmclockRed = "<Obj ID=\"AlarmclockRed\" xPos=\"19\" yPos=\"14\"/>";
guiRes.AlarmclockYellow = "<Obj ID=\"AlarmclockYellow\" xPos=\"5\" yPos=\"22\"/>";
return(guiRes);
}
}
Symbol 766 MovieClip [__Packages.com.data.Animations] Frame 0
class com.data.Animations
{
static var Animation;
function Animations () {
}
static function init() {
Animation = new Array();
Animation = com.data.Animations2.init();
Animation.body_back = "<Animation src=\"body_back\" \t\tobjName=\"body\" animation=\"true\" frames=\"8\" type=\"cycle\" playtime=\"1\" xpos=\"4\" ypos=\"-1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.body_backleft = "<Animation src=\"body_backleft\" \tobjName=\"body\" animation=\"true\" frames=\"8\" type=\"cycle\" playtime=\"1\" xpos=\"4\" ypos=\"-1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.body_backright = "<Animation src=\"body_backleft\" \ttransform=\"skew\"\tobjName=\"body\" animation=\"true\" frames=\"8\" type=\"cycle\" playtime=\"1\" xpos=\"4\" ypos=\"-1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.body_blink = "<Animation src=\"body_blink\" \t\tobjName=\"body\" animation=\"true\" frames=\"4\" type=\"reverseOnce\" playtime=\"1\" xpos=\"0\" ypos=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.body_front = "<Animation src=\"body_front\" \t\tobjName=\"body\" animation=\"true\" frames=\"8\" type=\"cycle\" playtime=\"1\" xpos=\"4\" ypos=\"-1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.body_frontleft = "<Animation src=\"body_frontleft\" objName=\"body\" animation=\"true\" frames=\"8\" type=\"cycle\" playtime=\"1\" xpos=\"4\" ypos=\"-1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.body_frontright = "<Animation src=\"body_frontleft\" transform=\"skew\"\tobjName=\"body\" animation=\"true\" frames=\"8\" type=\"cycle\" playtime=\"1\" xpos=\"4\" ypos=\"-1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.body_HeadShake = "<Animation src=\"body_HeadShake\" objName=\"body\" animation=\"true\" frames=\"7\" type=\"once\" playtime=\"1\" xpos=\"4\" ypos=\"-1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.body_left = "<Animation src=\"body_left\" \t\tobjName=\"body\" animation=\"true\" frames=\"8\" type=\"cycle\" playtime=\"1\" xpos=\"4\" ypos=\"-1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.body_right = "<Animation src=\"body_left\" \t\ttransform=\"skew\"\tobjName=\"body\" animation=\"true\" frames=\"8\" type=\"cycle\" playtime=\"1\" xpos=\"4\" ypos=\"-1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.body_Nono = "<Animation src=\"body_Nono\" \t\tobjName=\"body\" animation=\"true\" frames=\"5\" type=\"cycle\" playtime=\"1\" xpos=\"4\" ypos=\"-1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.body_FootShake = "<Animation src=\"body_FootShake\" objName=\"body\" animation=\"true\" frames=\"2\" type=\"loop\" loops=\"3\" playtime=\"1\" xpos=\"4\" ypos=\"-1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.PlantRight = "<Animation src=\"PlantRight\" \tobjName=\"body\" animation=\"true\" frames=\"8\" type=\"once\" loops=\"3\" playtime=\"1\" xpos=\"4\" ypos=\"-1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.FlowLeft = "<Animation src=\"FlowLeft\" \t\tobjName=\"body\" animation=\"true\" frames=\"8\" type=\"once\" loops=\"3\" playtime=\"1\" xpos=\"-15\" ypos=\"-1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.FlowRight = "<Animation src=\"FlowLeft\" \t\tobjName=\"body\" animation=\"true\" transform=\"skew\" frames=\"8\" type=\"once\" loops=\"3\" playtime=\"1\" xpos=\"15\" ypos=\"-1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.HoeRight = "<Animation src=\"HoeRight\" \t\tobjName=\"body\" animation=\"true\" frames=\"5\" type=\"cycle\" loops=\"3\" playtime=\".4\" xpos=\"-11\" ypos=\"13\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.ScissorsFront = "<Animation src=\"ScissorsFront\" \tobjName=\"body\" animation=\"true\" frames=\"14\" type=\"cycle\" loops=\"3\" playtime=\".6\" xpos=\"-8\" ypos=\"10\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.ScissorsHandfront = "<Animation src=\"ScissorsHandfront\" \tobjName=\"body\" animation=\"true\" frames=\"14\" type=\"cycle\" loops=\"3\" playtime=\".6\" xpos=\"-19\" ypos=\"-58\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_hand_left_walk = "<Animation src=\"L_hand_left_walk\" \t \t\txpos=\"10\" ypos=\"30\" sxpos=\"42\" sypos=\"30\" objName=\"L_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_hand_back_walk = "<Animation src=\"L_hand_back_walk\" \t \t\txpos=\"0\" ypos=\"27\" sxpos=\"42\" sypos=\"30\" objName=\"L_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_hand_backleft_walk = "<Animation src=\"L_hand_backleft_walk\" \t \txpos=\"11\" ypos=\"28\" sxpos=\"37\" sypos=\"29\" objName=\"L_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_hand_front_walk = "<Animation src=\"L_hand_front_walk\" \t \t\txpos=\"16\" ypos=\"28\" sxpos=\"42\" sypos=\"30\" objName=\"L_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_hand_frontleft_walk = "<Animation src=\"L_hand_frontleft_walk\" \t \txpos=\"16\" ypos=\"28\" sxpos=\"32\" sypos=\"30\" objName=\"L_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_hand_back_walk = "<Animation src=\"R_hand_back_walk\" \t \t\txpos=\"17\" ypos=\"29\" sxpos=\"40\" sypos=\"29\" objName=\"R_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_hand_left_walk = "<Animation src=\"R_hand_left_walk\" \t \t\txpos=\"13\" ypos=\"29\" sxpos=\"43\" sypos=\"32\" objName=\"R_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_hand_backleft_walk = "<Animation src=\"R_hand_backleft_walk\" \t\txpos=\"16\" ypos=\"29\" sxpos=\"31\" sypos=\"29\" objName=\"R_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_hand_frontleft_walk = "<Animation src=\"R_hand_frontleft_walk\" \t\txpos=\"8\" ypos=\"31\" sxpos=\"38\" sypos=\"29\" objName=\"R_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_hand_front_walk = "<Animation src=\"R_hand_front_walk\" \t \t\txpos=\"0\" ypos=\"29\" sxpos=\"13\" sypos=\"31\" objName=\"R_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_handbucket_left_walk = "<Animation src=\"L_handbucket_left_walk\" \t \t\txpos=\"24\" ypos=\"31\" sxpos=\"30\" sypos=\"30\" objName=\"L_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_handbucket_back_walk = "<Animation src=\"L_handbucket_back_walk\" \t \t\txpos=\"0\"\typos=\"29\" sxpos=\"42\" sypos=\"30\" objName=\"L_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_handbucket_backleft_walk = "<Animation src=\"L_handbucket_backleft_walk\" \t \txpos=\"15\" \typos=\"27\" sxpos=\"32\" sypos=\"26\" objName=\"L_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_handbucket_front_walk = "<Animation src=\"L_handbucket_front_walk\" \t \txpos=\"15\" \typos=\"29\" sxpos=\"42\" sypos=\"30\" objName=\"L_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_handbucket_frontleft_walk = "<Animation src=\"L_handbucket_frontleft_walk\" \txpos=\"24\" \typos=\"30\" sxpos=\"22\" sypos=\"29\" objName=\"L_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_handpumpkin_left_walk = "<Animation src=\"L_handpumpkin_left_walk\" \t \txpos=\"24\" \typos=\"29\" sxpos=\"28\" sypos=\"29\" objName=\"L_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_handpumpkin_front_walk = "<Animation src=\"L_handpumpkin_front_walk\" \t \txpos=\"14\" \typos=\"29\" sxpos=\"22\" sypos=\"29\" objName=\"L_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_handpumpkin_back_walk = "<Animation src=\"L_handpumpkin_back_walk\" \t \txpos=\"-8\" \typos=\"30\" sxpos=\"22\" sypos=\"29\" objName=\"L_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_handpumpkin_backleft_walk = "<Animation src=\"L_handpumpkin_backleft_walk\" \txpos=\"8\" \typos=\"30\" sxpos=\"39\" sypos=\"29\" objName=\"L_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_handpumpkin_frontleft_walk = "<Animation src=\"L_handpumpkin_frontleft_walk\" \txpos=\"26\" \typos=\"30\" sxpos=\"22\" sypos=\"29\" objName=\"L_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_handbucket_back_walk = "<Animation src=\"R_handbucket_back_walk\" \t \t\txpos=\"15\" ypos=\"28\" sxpos=\"40\" sypos=\"29\" objName=\"R_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_handbucket_backleft_walk = "<Animation src=\"R_handbucket_backleft_walk\" \t \txpos=\"28\" ypos=\"28\" sxpos=\"20\" sypos=\"29\" objName=\"R_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_handbucket_front_walk = "<Animation src=\"R_handbucket_front_walk\" \t \txpos=\"-1\" ypos=\"29\" sxpos=\"40\" sypos=\"29\" objName=\"R_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_handbucket_frontleft_walk = "<Animation src=\"R_handbucket_frontleft_walk\" \txpos=\"14\" ypos=\"30\" sxpos=\"32\" sypos=\"29\" objName=\"R_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_handpumpkin_front_walk = "<Animation src=\"R_handpumpkin_front_walk\" \t \txpos=\"-11\" ypos=\"26\" sxpos=\"32\" sypos=\"29\" objName=\"R_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_handpumpkin_back_walk = "<Animation src=\"R_handpumpkin_back_walk\" \t \txpos=\"16\" ypos=\"30\" sxpos=\"32\" sypos=\"29\" objName=\"R_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_handpumpkin_backleft_walk = "<Animation src=\"R_handpumpkin_backleft_walk\" \txpos=\"24\" ypos=\"28\" sxpos=\"24\" sypos=\"29\" objName=\"R_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_handpumpkin_frontleft_walk = "<Animation src=\"R_handpumpkin_frontleft_walk\" \txpos=\"8\" ypos=\"28\" sxpos=\"40\" sypos=\"26\" objName=\"R_hand\" animation=\"true\" frames=\"8\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_bucket_back_walk = "<Animation src=\"L_bucket_back_walk\" \t\txpos=\"-32\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" objName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_bucket_backleft_walk = "<Animation src=\"L_bucket_backleft_walk\" \txpos=\"-12\" ypos=\"5\" sxpos=\"28\" sypos=\"4\" objName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_bucket_front_walk = "<Animation src=\"L_bucket_front_walk\" \txpos=\"2\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" objName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_bucket_front_stand = "<Animation src=\"L_bucket_front_walk\" \txpos=\"0\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_bucket_frontleft_walk = "<Animation src=\"L_bucket_frontleft_walk\" xpos=\"6\" ypos=\"2\" sxpos=\"6\" sypos=\"2\" objName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_bucket_left_walk = "<Animation src=\"L_bucket_left_walk\" \t\txpos=\"2\" ypos=\"2\" sxpos=\"20\" sypos=\"3\" objName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_bucket_back_walk = "<Animation src=\"R_bucket_back_walk\" \t\txpos=\"33\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_bucket_backleft_walk = "<Animation src=\"R_bucket_backleft_walk\" \txpos=\"40\" ypos=\"-4\" sxpos=\"38\" sypos=\"-2\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_bucket_front_walk = "<Animation src=\"R_bucket_front_walk\" \txpos=\"2\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_bucket_front_stand = "<Animation src=\"R_bucket_front_walk\" \txpos=\"-1\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_bucket_frontleft_walk = "<Animation src=\"R_bucket_frontleft_walk\" xpos=\"16\" ypos=\"-6\" sxpos=\"62\" sypos=\"-7\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_bucket_left_walk = "<Animation src=\"R_bucket_left_walk\" \t\txpos=\"30\" ypos=\"-2\" sxpos=\"54\" sypos=\"0\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_grain_front_stand = "<Animation src=\"L_grain_front_walk\" \txpos=\"0\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"Grain\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_grain_front_stand = "<Animation src=\"R_grain_front_walk\" \txpos=\"-6\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"Grain\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_grain_back_walk = "<Animation src=\"L_grain_back_walk\" \t\txpos=\"-32\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" objName=\"Grain\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_grain_backleft_walk = "<Animation src=\"L_grain_backleft_walk\" \txpos=\"-12\" ypos=\"5\" sxpos=\"28\" sypos=\"4\" objName=\"Grain\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_grain_front_walk = "<Animation src=\"L_grain_front_walk\" \txpos=\"2\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" objName=\"Grain\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_grain_frontleft_walk = "<Animation src=\"L_grain_frontleft_walk\" xpos=\"6\" ypos=\"2\" sxpos=\"6\" sypos=\"2\" objName=\"Grain\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_grain_left_walk = "<Animation src=\"L_grain_left_walk\" \t\txpos=\"2\" ypos=\"2\" sxpos=\"20\" sypos=\"3\" objName=\"Grain\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_grain_back_walk = "<Animation src=\"R_grain_back_walk\" \t\txpos=\"33\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"Grain\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_grain_backleft_walk = "<Animation src=\"R_grain_backleft_walk\" \txpos=\"40\" ypos=\"-4\" sxpos=\"38\" sypos=\"-2\" \tobjName=\"Grain\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_grain_front_walk = "<Animation src=\"R_grain_front_walk\" \txpos=\"2\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"Grain\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_grain_frontleft_walk = "<Animation src=\"R_grain_frontleft_walk\" xpos=\"16\" ypos=\"-6\" sxpos=\"62\" sypos=\"-7\" \tobjName=\"Grain\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_grain_left_walk = "<Animation src=\"R_grain_left_walk\" \t\txpos=\"30\" ypos=\"-2\" sxpos=\"54\" sypos=\"0\" \tobjName=\"Grain\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_clover_front_stand = "<Animation src=\"L_clover_front\" \txpos=\"0\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"Clover\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_clover_front_stand = "<Animation src=\"R_clover_front\" \txpos=\"-6\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"Clover\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_clover_back_walk = "<Animation src=\"L_clover_backk\" \t\txpos=\"-32\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" objName=\"Clover\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_clover_backleft_walk = "<Animation src=\"L_clover_backleft\" \txpos=\"-12\" ypos=\"5\" sxpos=\"28\" sypos=\"4\" objName=\"Clover\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_clover_front_walk = "<Animation src=\"L_clover_front\" \t\txpos=\"2\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" objName=\"Clover\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_clover_frontleft_walk = "<Animation src=\"L_clover_frontleft\" \txpos=\"6\" ypos=\"2\" sxpos=\"6\" sypos=\"2\" objName=\"Clover\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_clover_left_walk = "<Animation src=\"L_clover_left\" \t\txpos=\"2\" ypos=\"2\" sxpos=\"30\" sypos=\"3\" objName=\"Clover\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_clover_back_walk = "<Animation src=\"R_clover_back\" \t\txpos=\"33\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"Clover\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_clover_backleft_walk = "<Animation src=\"R_clover_backleft\" \txpos=\"40\" ypos=\"-4\" sxpos=\"38\" sypos=\"-2\" \tobjName=\"Clover\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_clover_front_walk = "<Animation src=\"R_clover_front\" \t\txpos=\"2\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"Clover\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_clover_frontleft_walk = "<Animation src=\"R_clover_frontleft\" \txpos=\"16\" ypos=\"-6\" sxpos=\"62\" sypos=\"-7\" \tobjName=\"Clover\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_clover_left_walk = "<Animation src=\"R_clover_left\" \t\txpos=\"20\" ypos=\"-2\" sxpos=\"54\" sypos=\"0\" \tobjName=\"Clover\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_whiteeggs_front_stand = "<Animation src=\"L_whiteEggs_front\" \txpos=\"0\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"whiteEggs\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_whiteeggs_front_stand = "<Animation src=\"R_whiteEggs_front\" \txpos=\"-6\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"whiteEggs\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_whiteeggs_back_walk = "<Animation src=\"L_whiteEggs_back\" \t\txpos=\"-32\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" objName=\"whiteEggs\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_whiteeggs_backleft_walk = "<Animation src=\"L_whiteEggs_backleft\" \txpos=\"-12\" ypos=\"5\" sxpos=\"28\" sypos=\"4\" objName=\"whiteEggs\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_whiteeggs_front_walk = "<Animation src=\"L_whiteEggs_front\" \txpos=\"2\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" objName=\"whiteEggs\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_whiteeggs_frontleft_walk = "<Animation src=\"L_whiteEggs_frontleft\" xpos=\"6\" ypos=\"2\" sxpos=\"6\" sypos=\"2\" objName=\"whiteEggs\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_whiteeggs_left_walk = "<Animation src=\"L_whiteEggs_left\" \t\txpos=\"2\" ypos=\"2\" sxpos=\"20\" sypos=\"3\" objName=\"whiteEggs\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_whiteeggs_back_walk = "<Animation src=\"R_whiteEggs_back\" \t\txpos=\"33\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"whiteEggs\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_whiteeggs_backleft_walk = "<Animation src=\"R_whiteEggs_backleft\" \txpos=\"40\" ypos=\"-4\" sxpos=\"38\" sypos=\"-2\" \tobjName=\"whiteEggs\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_whiteeggs_front_walk = "<Animation src=\"R_whiteEggs_front\" \txpos=\"2\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"whiteEggs\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_whiteeggs_frontleft_walk = "<Animation src=\"R_whiteEggs_frontleft\" xpos=\"16\" ypos=\"-6\" sxpos=\"62\" sypos=\"-7\" \tobjName=\"whiteEggs\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_whiteeggs_left_walk = "<Animation src=\"R_whiteEggs_left\" \t\txpos=\"30\" ypos=\"-2\" sxpos=\"54\" sypos=\"0\" \tobjName=\"whiteEggs\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_wool_front_stand = "<Animation src=\"L_wool_front\" \t\txpos=\"0\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"Wool\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_wool_front_stand = "<Animation src=\"R_wool_front\" \t\txpos=\"-6\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"Wool\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_wool_back_walk = "<Animation src=\"L_wool_back\" \t\txpos=\"-32\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" objName=\"Wool\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_wool_backleft_walk = "<Animation src=\"L_wool_backleft\" \txpos=\"-12\" ypos=\"5\" sxpos=\"28\" sypos=\"4\" objName=\"Wool\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_wool_front_walk = "<Animation src=\"L_wool_front\" \t\txpos=\"2\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" objName=\"Wool\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_wool_frontleft_walk = "<Animation src=\"L_wool_frontleft\" \txpos=\"6\" ypos=\"2\" sxpos=\"6\" sypos=\"2\" objName=\"Wool\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_wool_left_walk = "<Animation src=\"L_wool_left\" \t\txpos=\"2\" ypos=\"2\" sxpos=\"20\" sypos=\"3\" objName=\"Wool\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_wool_back_walk = "<Animation src=\"R_wool_back\" \t\txpos=\"33\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"Wool\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_wool_backleft_walk = "<Animation src=\"R_wool_backleft\" \txpos=\"40\" ypos=\"-4\" sxpos=\"38\" sypos=\"-2\" \tobjName=\"Wool\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_wool_front_walk = "<Animation src=\"R_wool_front\" \t\txpos=\"2\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"Wool\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_wool_frontleft_walk = "<Animation src=\"R_wool_frontleft\" \txpos=\"16\" ypos=\"-6\" sxpos=\"62\" sypos=\"-7\" \tobjName=\"Wool\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_wool_left_walk = "<Animation src=\"R_wool_left\" \t\txpos=\"30\" ypos=\"-2\" sxpos=\"54\" sypos=\"0\" \tobjName=\"Wool\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_cabbage_back_walk = "<Animation src=\"L_cabbage_back_walk\" \t\txpos=\"-26\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" objName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_cabbage_backleft_walk = "<Animation src=\"L_cabbage_backleft_walk\" \txpos=\"-12\" ypos=\"5\" sxpos=\"28\" sypos=\"4\" objName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_cabbage_front_walk = "<Animation src=\"L_cabbage_front_walk\" \t\txpos=\"2\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" objName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_cabbage_front_stand = "<Animation src=\"L_cabbage_front_walk\" \t\txpos=\"2\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" objName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_cabbage_frontleft_walk = "<Animation src=\"L_cabbage_frontleft_walk\" \txpos=\"6\" ypos=\"2\" sxpos=\"6\" sypos=\"2\" objName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_cabbage_left_walk = "<Animation src=\"L_cabbage_left_walk\" \t\txpos=\"-2\" ypos=\"-2\" sxpos=\"20\" sypos=\"3\" objName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_cabbage_back_walk = "<Animation src=\"R_cabbage_back_walk\" \t\txpos=\"33\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_cabbage_backleft_walk = "<Animation src=\"R_cabbage_backleft_walk\" \txpos=\"42\" ypos=\"-4\" sxpos=\"38\" sypos=\"-2\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_cabbage_front_walk = "<Animation src=\"R_cabbage_front_walk\" \t\txpos=\"2\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_cabbage_front_stand = "<Animation src=\"R_cabbage_front_walk\" \t\txpos=\"2\" ypos=\"-2\" \tsxpos=\"32\" sypos=\"2\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_cabbage_frontleft_walk = "<Animation src=\"R_cabbage_frontleft_walk\" \txpos=\"16\" ypos=\"-6\" sxpos=\"56\" sypos=\"-7\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_cabbage_left_walk = "<Animation src=\"R_cabbage_left_walk\" \t\txpos=\"32\" ypos=\"2\" sxpos=\"54\" sypos=\"0\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_pumpkin_back_walk = "<Animation src=\"L_pumpkin_back_walk\" \t\txpos=\"-26\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" objName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_pumpkin_backleft_walk = "<Animation src=\"L_pumpkin_backleft_walk\" \txpos=\"-12\" ypos=\"5\" sxpos=\"28\" sypos=\"4\" objName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_pumpkin_front_walk = "<Animation src=\"L_pumpkin_front_walk\" \t\txpos=\"2\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" objName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_pumpkin_front_stand = "<Animation src=\"L_pumpkin_front_walk\" \t\txpos=\"2\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" objName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_pumpkin_frontleft_walk = "<Animation src=\"L_pumpkin_frontleft_walk\" \txpos=\"6\" ypos=\"2\" sxpos=\"6\" sypos=\"2\" objName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_pumpkin_left_walk = "<Animation src=\"L_pumpkin_left_walk\" \t\txpos=\"-2\" ypos=\"-2\" sxpos=\"20\" sypos=\"3\" objName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_pumpkin_back_walk = "<Animation src=\"R_pumpkin_back_walk\" \t\txpos=\"28\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_pumpkin_backleft_walk = "<Animation src=\"R_pumpkin_backleft_walk\" \txpos=\"36\" ypos=\"-4\" sxpos=\"38\" sypos=\"-2\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_pumpkin_front_walk = "<Animation src=\"R_pumpkin_front_walk\" \t\txpos=\"2\" ypos=\"-2\" \tsxpos=\"32\" sypos=\"2\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_pumpkin_front_stand = "<Animation src=\"R_pumpkin_front_walk\" \t\txpos=\"2\" ypos=\"-2\" \tsxpos=\"32\" sypos=\"2\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_pumpkin_frontleft_walk = "<Animation src=\"R_pumpkin_frontleft_walk\" \txpos=\"16\" ypos=\"-6\" sxpos=\"56\" sypos=\"-7\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_pumpkin_left_walk = "<Animation src=\"R_pumpkin_left_walk\" \t\txpos=\"32\" ypos=\"2\" \tsxpos=\"54\" sypos=\"0\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_watermelon_back_walk = "<Animation src=\"L_watermelon_back_walk\" \t\txpos=\"-26\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" objName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_watermelon_backleft_walk = "<Animation src=\"L_watermelon_backleft_walk\" \txpos=\"-12\" ypos=\"5\" sxpos=\"28\" sypos=\"4\" objName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_watermelon_front_walk = "<Animation src=\"L_watermelon_front_walk\" \txpos=\"2\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" objName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_watermelon_front_stand = "<Animation src=\"L_watermelon_front_walk\" \txpos=\"2\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" objName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_watermelon_frontleft_walk = "<Animation src=\"L_watermelon_frontleft_walk\" xpos=\"6\" ypos=\"2\" sxpos=\"6\" sypos=\"2\" objName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.L_watermelon_left_walk = "<Animation src=\"L_watermelon_left_walk\" \t\txpos=\"-2\" ypos=\"-2\" sxpos=\"20\" sypos=\"3\" objName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_watermelon_back_walk = "<Animation src=\"R_watermelon_back_walk\" \t\txpos=\"28\" ypos=\"-2\" sxpos=\"32\" sypos=\"2\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_watermelon_backleft_walk = "<Animation src=\"R_watermelon_backleft_walk\" \txpos=\"36\" ypos=\"-4\" sxpos=\"38\" sypos=\"-2\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_watermelon_front_walk = "<Animation src=\"R_watermelon_front_walk\" \txpos=\"2\" ypos=\"-2\" \tsxpos=\"32\" sypos=\"2\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_watermelon_front_stand = "<Animation src=\"R_watermelon_front_walk\" \txpos=\"2\" ypos=\"-2\" \tsxpos=\"32\" sypos=\"2\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_watermelon_frontleft_walk = "<Animation src=\"R_watermelon_frontleft_walk\" xpos=\"16\" ypos=\"-6\" sxpos=\"56\" sypos=\"-7\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.R_watermelon_left_walk = "<Animation src=\"R_watermelon_left_walk\" \t\txpos=\"32\" ypos=\"2\" \tsxpos=\"54\" sypos=\"0\" \tobjName=\"Bucket\" animation=\"true\" frames=\"1\" type=\"loop\" loops=\"3\" playtime=\"1\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.grand_action_well = "<Animation src=\"grand_action_well\" \t\t\txpos=\"-22\" ypos=\"2\" objName=\"body\" animation=\"true\" frames=\"7\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.grand_action_well2 = "<Animation src=\"grand_action_well2\" \t\t\txpos=\"-29\" ypos=\"2\" objName=\"body\" animation=\"true\" frames=\"7\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.grand_action_cutDownHay = "<Animation src=\"grand_action_cutDownHay\" \t\t\t\t\txpos=\"-34\" \typos=\"0\" objName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" playtime=\".6\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.grand_action_cutDownHayTurnR = "<Animation src=\"grand_action_cutDownHay\" transform=\"skew\"\txpos=\"-4\" \typos=\"0\" objName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" playtime=\".6\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.grand_front = "<Animation src=\"grand_front\" \t\t\txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"8\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.grand_back = "<Animation src=\"grand_back\" \t\t\t\txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"8\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.grand_left = "<Animation src=\"grand_left\" \t\t\t\txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"8\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.grand_right = "<Animation src=\"grand_left\" \t\ttransform=\"skew\"\t\txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"8\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.grand_frontleft = "<Animation src=\"grand_frontleft\" \t\t\txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"8\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.grand_frontright = "<Animation src=\"grand_frontleft\" transform=\"skew\"\t\t\t\txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"8\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.grand_backleft = "<Animation src=\"grand_backleft\" \t\t\txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"8\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.grand_backright = "<Animation src=\"grand_backleft\" \ttransform=\"skew\"\t\t\txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"8\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.grand_emotion_blink = "<Animation src=\"grand_emotion_blink\" \t\txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"3\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.grand_emotion_noNo = "<Animation src=\"grand_emotion_noNo\" \t\t\txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"3\" cicle=\"true\" playtime=\".2\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.grand_emotion_scratchHead = "<Animation src=\"grand_emotion_scratchHead\" \txpos=\"-2\" ypos=\"5\" objName=\"body\" animation=\"true\" frames=\"3\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.grand_emotion_lookForward = "<Animation src=\"grand_emotion_lookForward\" \txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"4\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.grand_emotion_kneadBack = "<Animation src=\"grand_emotion_kneadBack\" \txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"5\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.grand_emotion_footShake = "<Animation src=\"grand_emotion_footShake\" \txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"2\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
return(Animation);
}
}
Symbol 767 MovieClip [__Packages.com.data.Animations2] Frame 0
class com.data.Animations2
{
static var Animation;
function Animations2 () {
}
static function init() {
Animation = new Array();
Animation.gosling_walk_back = "<Animation src=\"gosling_walk_back\" \t\t\t\t\t\t\t\txpos=\"-12\" \typos=\"3\" objName=\"body\" animation=\"true\" frames=\"16\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_walk_front = "<Animation src=\"gosling_walk_front\" \t\t\t\t\t\t\t\txpos=\"-12\" \typos=\"5\" objName=\"body\" animation=\"true\" frames=\"16\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_walk_right = "<Animation src=\"gosling_walk_right\" \t\t\t\t\t\t\t\txpos=\"-9\" \typos=\"2\" objName=\"body\" animation=\"true\" frames=\"16\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_walk_left = "<Animation src=\"gosling_walk_right\" \t \t\ttransform=\"skew\"\txpos=\"9\" \typos=\"2\" objName=\"body\" animation=\"true\" frames=\"16\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_walk_backleft = "<Animation src=\"gosling_walk_rightBack\" \t\ttransform=\"skew\"\txpos=\"9\" \typos=\"2\" objName=\"body\" animation=\"true\" frames=\"16\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_walk_backright = "<Animation src=\"gosling_walk_rightBack\" \t\t\t\t\t\t\txpos=\"-9\" \typos=\"2\" objName=\"body\" animation=\"true\" frames=\"16\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_walk_frontleft = "<Animation src=\"gosling_walk_rightFront\" \ttransform=\"skew\"\txpos=\"9\" \typos=\"3\" objName=\"body\" animation=\"true\" frames=\"16\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_walk_frontright = "<Animation src=\"gosling_walk_rightFront\" \t\t\t\t\t\txpos=\"-11\" \typos=\"3\" objName=\"body\" animation=\"true\" frames=\"16\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_drink = "<Animation src=\"gosling_drink\" \txpos=\"-9\" ypos=\"2\" objName=\"body\" animation=\"true\" frames=\"11\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_eat = "<Animation src=\"gosling_eat\" \txpos=\"-9\" ypos=\"2\" objName=\"body\" animation=\"true\" frames=\"7\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_scream = "<Animation src=\"gosling_scream\" \txpos=\"0\" ypos=\"2\" objName=\"body\" animation=\"true\" frames=\"7\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_pan = "<Animation src=\"gosling_pan\" \txpos=\"-9\" ypos=\"2\" objName=\"body\" animation=\"true\" frames=\"1\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_jump_front = "<Animation src=\"gosling_jump_front\" \t\t\t\t\t\t\txpos=\"-12\" \typos=\"2\" objName=\"body\" animation=\"true\" frames=\"5\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_jump_back = "<Animation src=\"gosling_jump_rightBack\"\t\t\t\t\t\txpos=\"-12\" \typos=\"2\" objName=\"body\" animation=\"true\" frames=\"5\" cicle=\"true\" \t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_jump_right = "<Animation src=\"gosling_jump_right\" \t\t\t\t\t\t\txpos=\"-9\" \typos=\"2\" objName=\"body\" animation=\"true\" frames=\"5\" cicle=\"true\" \t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_jump_left = "<Animation src=\"gosling_jump_right\" \t\ttransform=\"skew\"\txpos=\"9\" \typos=\"2\" objName=\"body\" animation=\"true\" frames=\"5\" cicle=\"true\" \t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_jump_frontleft = "<Animation src=\"gosling_jump_rightFront\" transform=\"skew\" \txpos=\"9\" \typos=\"2\" objName=\"body\" animation=\"true\" frames=\"5\" cicle=\"true\" \t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_jump_frontright = "<Animation src=\"gosling_jump_rightFront\"\t\t\t\t\t\txpos=\"-9\" \typos=\"2\" objName=\"body\" animation=\"true\" frames=\"5\" cicle=\"true\" \t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_jump_backright = "<Animation src=\"gosling_jump_rightBack\" \t\t\t\t\t\txpos=\"-9\" \typos=\"2\" objName=\"body\" animation=\"true\" frames=\"5\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_jump_backleft = "<Animation src=\"gosling_jump_rightBack\" \ttransform=\"skew\" \txpos=\"9\" \typos=\"2\" objName=\"body\" animation=\"true\" frames=\"5\" cicle=\"true\"\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_jump_rightBack = "<Animation src=\"gosling_jump_rightBack\" \t\t\t\t\t\txpos=\"-9\" \typos=\"2\" objName=\"body\" animation=\"true\" frames=\"5\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_jump_rightFront = "<Animation src=\"gosling_jump_rightFront\" \t\t\t\t\txpos=\"-9\" \typos=\"2\" objName=\"body\" animation=\"true\" frames=\"5\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_stand_front = "<Animation src=\"gosling_stand_front\" \t\t\t\t\t\txpos=\"-9\" \typos=\"2\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_stand_frontleft = "<Animation src=\"gosling_stand_rightFront\" transform=\"skew\" \txpos=\"9\" \typos=\"2\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_stand_frontright = "<Animation src=\"gosling_stand_rightFront\"\t\t\t\t\txpos=\"-9\" \typos=\"2\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_stand_right = "<Animation src=\"gosling_stand_right\" \t\t\t\t\t\txpos=\"-9\" \typos=\"2\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_stand_left = "<Animation src=\"gosling_stand_right\" \ttransform=\"skew\"\txpos=\"9\" \typos=\"2\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_stand_back = "<Animation src=\"gosling_stand_back\" \t\t\t\t\t\t\txpos=\"-9\" \typos=\"2\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"true\" \t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_stand_backright = "<Animation src=\"gosling_stand_rightBack\" \t\t\t\t\txpos=\"-9\" \typos=\"2\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"true\" \t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_stand_backleft = "<Animation src=\"gosling_stand_rightBack\" transform=\"skew\" \txpos=\"9\"\typos=\"2\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\"\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_wing_front = "<Animation src=\"gosling_wing_front\" \t\t\t\t\t\t\txpos=\"-12\" \typos=\"2\" objName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_wing_right = "<Animation src=\"gosling_wing_right\" \t\t\t\t\t\t\txpos=\"-9\" \typos=\"2\" objName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_wing_left = "<Animation src=\"gosling_wing_right\" \t\ttransform=\"skew\"\txpos=\"9\" \typos=\"2\" objName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_wing_frontright = "<Animation src=\"gosling_wing_rightFront\" \t\t\t\t\txpos=\"-9\" \typos=\"2\" objName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.gosling_wing_frontleft = "<Animation src=\"gosling_wing_rightFront\" transform=\"skew\" \txpos=\"9\" \typos=\"2\" objName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_walk_back = "<Animation src=\"goose_walk_back\" \t\t\t\t\t\t\txpos=\"-14\" \typos=\"6\" objName=\"body\" animation=\"true\" frames=\"16\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_walk_backleft = "<Animation src=\"goose_walk_backright\" \ttransform=\"skew\"\txpos=\"12\" \typos=\"10\" objName=\"body\" animation=\"true\" frames=\"16\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_walk_backright = "<Animation src=\"goose_walk_backright\" \t\t\t\t\t\txpos=\"-14\"\typos=\"10\" objName=\"body\" animation=\"true\" frames=\"16\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_walk_front = "<Animation src=\"goose_walk_front\" \t\t\t\t\t\t\txpos=\"-14\"\typos=\"6\" objName=\"body\" animation=\"true\" frames=\"16\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_walk_frontleft = "<Animation src=\"goose_walk_frontright\" \ttransform=\"skew\"\txpos=\"12\" \typos=\"10\" objName=\"body\" animation=\"true\" frames=\"16\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_walk_frontright = "<Animation src=\"goose_walk_frontright\" \t\t\t\t\t\txpos=\"-18\" \typos=\"10\" objName=\"body\" animation=\"true\" frames=\"16\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_walk_right = "<Animation src=\"goose_walk_right\" \t\t\t\t\t\t\txpos=\"-23\" \typos=\"10\" objName=\"body\" animation=\"true\" frames=\"16\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_walk_left = "<Animation src=\"goose_walk_right\" \t \ttransform=\"skew\"\txpos=\"12\" \typos=\"8\" objName=\"body\" animation=\"true\" frames=\"16\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_drink = "<Animation src=\"goose_drink\" \t\txpos=\"-10\" \typos=\"4\" objName=\"body\" animation=\"true\" frames=\"11\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_eat = "<Animation src=\"goose_eat\" \t\t\txpos=\"-10\" \typos=\"4\" objName=\"body\" animation=\"true\" frames=\"7\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_pan = "<Animation src=\"goose_pan\" \t\t\txpos=\"-10\"\typos=\"4\" objName=\"body\" animation=\"true\" frames=\"1\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_stand_front = "<Animation src=\"goose_stand_front\" \t\t\t\t\t\t\txpos=\"-14\" \typos=\"2\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" \t\t\t\t\t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_stand_frontleft = "<Animation src=\"goose_stand_frontright\" \ttransform=\"skew\" \txpos=\"12\" \typos=\"6\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_stand_frontright = "<Animation src=\"goose_stand_frontright\" \t\t\t\t\t\txpos=\"-15\" \typos=\"6\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_stand_right = "<Animation src=\"goose_stand_right\" \t\t\t\t\t\t\txpos=\"-22\" \typos=\"8\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" \t\t\t\t\t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_stand_left = "<Animation src=\"goose_stand_right\" \t\ttransform=\"skew\"\txpos=\"14\" \typos=\"6\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" \t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_stand_backright = "<Animation src=\"goose_stand_backright\" \t\t\t\t\t\txpos=\"-13\" \typos=\"6\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_stand_back = "<Animation src=\"goose_stand_backright\" \t\t\t\t\t\txpos=\"-13\" \typos=\"6\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_stand_backleft = "<Animation src=\"goose_stand_backright\" \ttransform=\"skew\" \txpos=\"12\" \typos=\"6\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\"\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_wing_right = "<Animation src=\"goose_wing_right\" \t\t\t\t\t\t\txpos=\"-20\" \typos=\"8\" objName=\"body\" animation=\"true\" frames=\"5\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_wing_left = "<Animation src=\"goose_wing_right\" \t\ttransform=\"skew\"\txpos=\"18\" \typos=\"6\" objName=\"body\" animation=\"true\" frames=\"5\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_wing_frontright = "<Animation src=\"goose_wing_frontright\" \t\t\t\t\t\txpos=\"-15\" \typos=\"6\" objName=\"body\" animation=\"true\" frames=\"5\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_wing_frontleft = "<Animation src=\"goose_wing_frontright\" \ttransform=\"skew\" \txpos=\"16\" \typos=\"6\" objName=\"body\" animation=\"true\" frames=\"5\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_wing_backright = "<Animation src=\"goose_wing_backright\" \t\t\t\t\t\txpos=\"-11\" \typos=\"7\" objName=\"body\" animation=\"true\" frames=\"5\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_wing_backleft = "<Animation src=\"goose_wing_backright\" \ttransform=\"skew\" \txpos=\"34\" \typos=\"6\" objName=\"body\" animation=\"true\" frames=\"5\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_eat_front = "<Animation src=\"goose_eat_front\" \t\t\t\t\t\t\txpos=\"-14\" \typos=\"24\" objName=\"body\" animation=\"true\" frames=\"7\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_eat_right = "<Animation src=\"goose_eat_right\" \t\t\t\t\t\t\txpos=\"-18\" \typos=\"8\" objName=\"body\" animation=\"true\" frames=\"7\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_eat_left = "<Animation src=\"goose_eat_right\" \t\ttransform=\"skew\"\txpos=\"38\" \typos=\"6\" objName=\"body\" animation=\"true\" frames=\"7\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_eat_frontright = "<Animation src=\"goose_eat_frontright\" \t\t\t\t\t\txpos=\"-13\" \typos=\"18\" objName=\"body\" animation=\"true\" frames=\"7\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.goose_eat_frontleft = "<Animation src=\"goose_eat_frontright\" \ttransform=\"skew\" \txpos=\"32\" \typos=\"18\" objName=\"body\" animation=\"true\" frames=\"7\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_walk_front = "<Animation src=\"whiteLamb_walk_front\" \t\t\t\t\t\t\t\txpos=\"-19\" \typos=\"11\" objName=\"body\" animation=\"true\" frames=\"10\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_walk_back = "<Animation src=\"whiteLamb_walk_back\" \t\t\t\t\t\t\t\txpos=\"-19\" \typos=\"14\" objName=\"body\" animation=\"true\" frames=\"10\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_walk_right = "<Animation src=\"whiteLamb_walk_right\" \t\t\t\t\t\t\t\txpos=\"-21\"\typos=\"6\" objName=\"body\" animation=\"true\" frames=\"10\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_walk_left = "<Animation src=\"whiteLamb_walk_right\" \t \t\ttransform=\"skew\"\txpos=\"41\" \typos=\"8\" objName=\"body\" animation=\"true\" frames=\"10\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_walk_backleft = "<Animation src=\"whiteLamb_walk_backright\" \t\ttransform=\"skew\"\txpos=\"35\" \typos=\"11\" objName=\"body\" animation=\"true\" frames=\"10\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_walk_backright = "<Animation src=\"whiteLamb_walk_backright\" \t\t\t\t\t\t\txpos=\"-22\" \typos=\"10\" objName=\"body\" animation=\"true\" frames=\"10\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_walk_frontleft = "<Animation src=\"whiteLamb_walk_frontright\" \t\ttransform=\"skew\"\txpos=\"37\" \typos=\"12\" objName=\"body\" animation=\"true\" frames=\"10\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_walk_frontright = "<Animation src=\"whiteLamb_walk_frontright\" \t\t\t\t\t\t\txpos=\"-14\" \typos=\"12\" objName=\"body\" animation=\"true\" frames=\"10\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_drink = "<Animation src=\"whiteLamb_drinkEat\" \t\t\t\txpos=\"-8\" ypos=\"16\" objName=\"body\" animation=\"true\" frames=\"3\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_eat = "<Animation src=\"whiteLamb_drinkEat\" \t\t\t\txpos=\"-8\" ypos=\"16\" objName=\"body\" animation=\"true\" frames=\"3\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_pan = "<Animation src=\"whiteLamb_stand_backright\" \t\txpos=\"-8\" \typos=\"16\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_jump_front = "<Animation src=\"whiteLamb_jump_front\" \t\t\t\t\t\t\txpos=\"-19\" \typos=\"18\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" \t\t\t\t\t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_jump_back = "<Animation src=\"whiteLamb_jump_backright\"\t\t\t\t\t\txpos=\"-32\" \typos=\"8\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" \t\t\t\t\t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_jump_right = "<Animation src=\"whiteLamb_jump_right\" \t\t\t\t\t\t\txpos=\"-32\" \typos=\"8\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" \t\t\t\t\t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_jump_left = "<Animation src=\"whiteLamb_jump_right\" \t\ttransform=\"skew\"\txpos=\"40\" \typos=\"8\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" \t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_jump_frontleft = "<Animation src=\"whiteLamb_jump_frontright\" \ttransform=\"skew\" \txpos=\"35\" \typos=\"8\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_jump_frontright = "<Animation src=\"whiteLamb_jump_frontright\" \t\t\t\t\t\txpos=\"-23\" \typos=\"8\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_jump_backright = "<Animation src=\"whiteLamb_jump_backright\" \t\t\t\t\t\txpos=\"-32\" \typos=\"8\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_jump_backleft = "<Animation src=\"whiteLamb_jump_backright\" \ttransform=\"skew\" \txpos=\"35\" \typos=\"9\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\"\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_shake_front = "<Animation src=\"whiteLamb_shake_front\" \t\t\t\t\t\t\txpos=\"-19\" \typos=\"6\" objName=\"body\" animation=\"true\" frames=\"12\" cicle=\"true\" \t\t\t\t\t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_shake_back = "<Animation src=\"whiteLamb_shake_backright\"\t\t\t\t\t\txpos=\"-19\" \typos=\"9\" objName=\"body\" animation=\"true\" frames=\"12\" cicle=\"true\" \t\t\t\t\t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_shake_right = "<Animation src=\"whiteLamb_shake_right\" \t\t\t\t\t\t\txpos=\"-22\" \typos=\"6\" objName=\"body\" animation=\"true\" frames=\"12\" cicle=\"true\" \t\t\t\t\t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_shake_left = "<Animation src=\"whiteLamb_shake_right\" \t\ttransform=\"skew\"\txpos=\"41\" \typos=\"8\" objName=\"body\" animation=\"true\" frames=\"12\" cicle=\"true\" \t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_shake_frontleft = "<Animation src=\"whiteLamb_shake_frontright\" \ttransform=\"skew\" \txpos=\"39\" \typos=\"9\" objName=\"body\" animation=\"true\" frames=\"12\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_shake_frontright = "<Animation src=\"whiteLamb_shake_frontright\" \t\t\t\t\t\txpos=\"-12\" \typos=\"9\" objName=\"body\" animation=\"true\" frames=\"12\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_shake_backright = "<Animation src=\"whiteLamb_shake_backright\" \t\t\t\t\t\txpos=\"-19\" \typos=\"9\" objName=\"body\" animation=\"true\" frames=\"12\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_shake_backleft = "<Animation src=\"whiteLamb_shake_backright\" \ttransform=\"skew\" \txpos=\"38\" \typos=\"9\" objName=\"body\" animation=\"true\" frames=\"12\" cicle=\"true\"\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_footUp_front = "<Animation src=\"whiteLamb_footUp_front\" \t\t\t\t\t\t\txpos=\"-17\" \typos=\"9\" objName=\"body\" animation=\"true\" frames=\"2\" cicle=\"true\" \t\t\t\t\t\t\tplaytime=\".4\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_footUp_right = "<Animation src=\"whiteLamb_footUp_right\" \t\t\t\t\t\t\txpos=\"-22\" \typos=\"6\" objName=\"body\" animation=\"true\" frames=\"2\" cicle=\"true\" \t\t\t\t\t\t\tplaytime=\".4\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_footUp_left = "<Animation src=\"whiteLamb_footUp_right\" \t\ttransform=\"skew\"\txpos=\"40\" \typos=\"8\" objName=\"body\" animation=\"true\" frames=\"2\" cicle=\"true\" \t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_footUp_frontleft = "<Animation src=\"whiteLamb_footUp_frontright\" transform=\"skew\" \txpos=\"34\" \typos=\"9\" objName=\"body\" animation=\"true\" frames=\"2\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_footUp_frontright = "<Animation src=\"whiteLamb_footUp_frontright\" \t\t\t\t\txpos=\"-12\" \typos=\"9\" objName=\"body\" animation=\"true\" frames=\"2\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_stand_front = "<Animation src=\"whiteLamb_stand_front\" \t\t\t\t\t\t\t\txpos=\"-17\" \typos=\"6\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" \t\t\t\t\t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_stand_right = "<Animation src=\"whiteLamb_stand_right\" \t\t\t\t\t\t\t\txpos=\"-22\" \typos=\"6\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" \t\t\t\t\t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_stand_left = "<Animation src=\"whiteLamb_stand_right\" \t\t\ttransform=\"skew\"\txpos=\"40\" \typos=\"8\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" \t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_stand_frontleft = "<Animation src=\"whiteLamb_stand_frontright\" \t\ttransform=\"skew\" \txpos=\"34\" \typos=\"9\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_stand_frontright = "<Animation src=\"whiteLamb_stand_frontright\"\t\t\t\t\t\t\txpos=\"-12\" \typos=\"9\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_stand_back = "<Animation src=\"whiteLamb_stand_backright\" \t\t\t\t\t\t\txpos=\"-19\" \typos=\"9\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"true\" \t\t\t\t\t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_stand_backright = "<Animation src=\"whiteLamb_stand_backright\" \t\t\t\t\t\t\txpos=\"-19\" \typos=\"9\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteLamb_stand_backleft = "<Animation src=\"whiteLamb_stand_backright\"\t\ttransform=\"skew\" \txpos=\"32\" \typos=\"9\" objName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\"\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_stand_front = "<Animation src=\"whiteSheep_stand_front\" \t\t\t\t\t\t\t\txpos=\"-21\" \typos=\"14\" \tobjName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" \t\t\t\t\t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_stand_back = "<Animation src=\"whiteSheep_stand_back\" \t\t\t\t\t\t\t\txpos=\"-21\" \typos=\"12\" \tobjName=\"body\" animation=\"false\" frames=\"1\" cicle=\"true\" \t\t\t\t\t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_stand_right = "<Animation src=\"whiteSheep_stand_right\" \t\t\t\t\t\t\t\txpos=\"-32\" \typos=\"12\" \tobjName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" \t\t\t\t\t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_stand_left = "<Animation src=\"whiteSheep_stand_right\" \t\t\ttransform=\"skew\"\txpos=\"57\" \typos=\"12\" \tobjName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" \t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_stand_frontleft = "<Animation src=\"whiteSheep_stand_frontright\" \ttransform=\"skew\" \txpos=\"45\" \typos=\"14\" \tobjName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_stand_frontright = "<Animation src=\"whiteSheep_stand_frontright\"\t\t\t\t\t\t\txpos=\"-25\" \typos=\"14\" \tobjName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_stand_backright = "<Animation src=\"whiteSheep_stand_backright\" \t\t\t\t\t\t\txpos=\"-26\" \typos=\"14\" \tobjName=\"body\" animation=\"false\" frames=\"1\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_stand_backleft = "<Animation src=\"whiteSheep_stand_backright\"\t\ttransform=\"skew\" \txpos=\"46\" \typos=\"14\" \tobjName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\"\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_walk_front = "<Animation src=\"whiteSheep_walk_front\" \t\t\t\t\t\t\t\txpos=\"-21\" \typos=\"19\" objName=\"body\" animation=\"true\" frames=\"10\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_walk_back = "<Animation src=\"whiteSheep_walk_back\" \t\t\t\t\t\t\t\txpos=\"-22\" \typos=\"15\" objName=\"body\" animation=\"true\" frames=\"10\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_walk_right = "<Animation src=\"whiteSheep_walk_right\" \t\t\t\t\t\t\t\txpos=\"-33\"\typos=\"12\" objName=\"body\" animation=\"true\" frames=\"10\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_walk_left = "<Animation src=\"whiteSheep_walk_right\" \t \t\ttransform=\"skew\"\txpos=\"56\" \typos=\"12\" objName=\"body\" animation=\"true\" frames=\"10\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_walk_backleft = "<Animation src=\"whiteSheep_walk_backright\" \t\ttransform=\"skew\"\txpos=\"46\" \typos=\"18\" objName=\"body\" animation=\"true\" frames=\"10\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_walk_backright = "<Animation src=\"whiteSheep_walk_backright\" \t\t\t\t\t\t\txpos=\"-30\" \typos=\"18\" objName=\"body\" animation=\"true\" frames=\"10\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_walk_frontleft = "<Animation src=\"whiteSheep_walk_frontright\" \t\ttransform=\"skew\"\txpos=\"45\" \typos=\"18\" objName=\"body\" animation=\"true\" frames=\"10\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_walk_frontright = "<Animation src=\"whiteSheep_walk_frontright\" \t\t\t\t\t\t\txpos=\"-29\" \typos=\"18\" objName=\"body\" animation=\"true\" frames=\"10\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_shake_front = "<Animation src=\"whiteSheep_shake_front\" \t\t\t\t\t\t\t\txpos=\"-23\" \typos=\"14\" objName=\"body\" animation=\"true\" frames=\"13\" cicle=\"true\" \t\t\t\t\t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_shake_right = "<Animation src=\"whiteSheep_shake_right\" \t\t\t\t\t\t\t\txpos=\"-33\" \typos=\"12\" objName=\"body\" animation=\"true\" frames=\"13\" cicle=\"true\" \t\t\t\t\t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_shake_left = "<Animation src=\"whiteSheep_shake_right\" \t\t\ttransform=\"skew\"\txpos=\"56\" \typos=\"12\" objName=\"body\" animation=\"true\" frames=\"13\" cicle=\"true\" \t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_shake_frontleft = "<Animation src=\"whiteSheep_shake_frontright\" \ttransform=\"skew\" \txpos=\"48\" \typos=\"16\" objName=\"body\" animation=\"true\" frames=\"13\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_shake_frontright = "<Animation src=\"whiteSheep_shake_frontright\" \t\t\t\t\t\txpos=\"-26\" \typos=\"16\" objName=\"body\" animation=\"true\" frames=\"13\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_shake_backright = "<Animation src=\"whiteSheep_shake_backright\" \t\t\t\t\t\t\txpos=\"-27\" \typos=\"16\" objName=\"body\" animation=\"true\" frames=\"13\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_shake_backleft = "<Animation src=\"whiteSheep_shake_backright\" \t\ttransform=\"skew\" \txpos=\"48\" \typos=\"16\" objName=\"body\" animation=\"true\" frames=\"13\" cicle=\"true\"\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_drink = "<Animation src=\"whiteSheep_eat\" \t\t\t\t\txpos=\"-20\" \typos=\"20\" \tobjName=\"body\" animation=\"true\" frames=\"3\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_eat = "<Animation src=\"whiteSheep_eat\" \t\t\t\t\txpos=\"-20\" \typos=\"20\" \tobjName=\"body\" animation=\"true\" frames=\"3\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_pan = "<Animation src=\"whiteSheep_stand_backright\" \t\txpos=\"-20\" \typos=\"20\" \tobjName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_stand_wool = "<Animation src=\"whiteSheep_stand_wool\" \t\txpos=\"-32\" \typos=\"12\" \tobjName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_blink_wool = "<Animation src=\"whiteSheep_blink_wool\" \t\txpos=\"-32\" \typos=\"12\" \tobjName=\"body\" animation=\"false\" frames=\"1\" cicle=\"false\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_ears_wool = "<Animation src=\"whiteSheep_ears_wool\" \t\txpos=\"-32\" \typos=\"12\" \tobjName=\"body\" animation=\"true\" frames=\"2\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_nose_wool = "<Animation src=\"whiteSheep_nose_wool\" \t\txpos=\"-32\" \typos=\"12\" \tobjName=\"body\" animation=\"true\" frames=\"4\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_jump_front = "<Animation src=\"whiteSheep_jump_front\" \t\t\t\t\t\t\txpos=\"-23\" \typos=\"21\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" \t\t\t\t\t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_jump_back = "<Animation src=\"whiteSheep_jump_back\"\t\t\t\t\t\t\txpos=\"-23\" \typos=\"11\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" \t\t\t\t\t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_jump_right = "<Animation src=\"whiteSheep_jump_right\" \t\t\t\t\t\t\txpos=\"-50\" \typos=\"12\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" \t\t\t\t\t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_jump_left = "<Animation src=\"whiteSheep_jump_right\" \t\ttransform=\"skew\"\txpos=\"62\" \typos=\"11\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" \t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_jump_frontleft = "<Animation src=\"whiteSheep_jump_frontright\" \ttransform=\"skew\" \txpos=\"50\" \typos=\"13\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_jump_frontright = "<Animation src=\"whiteSheep_jump_frontright\" \t\t\t\t\t\txpos=\"-42\" \typos=\"13\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_jump_backright = "<Animation src=\"whiteSheep_jump_backright\" \t\t\t\t\t\txpos=\"-43\" \typos=\"15\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_jump_backleft = "<Animation src=\"whiteSheep_jump_backright\" \ttransform=\"skew\" \txpos=\"49\" \typos=\"12\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\"\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_ears_front = "<Animation src=\"whiteSheep_ears_front\" \t\t\t\t\t\t\txpos=\"-23\" \typos=\"14\" objName=\"body\" animation=\"true\" frames=\"2\" cicle=\"true\" \tplaytime=\".4\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_ears_right = "<Animation src=\"whiteSheep_ears_right\" \t\t\t\t\t\t\txpos=\"-32\" \typos=\"12\" objName=\"body\" animation=\"true\" frames=\"2\" cicle=\"true\" \tplaytime=\".4\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_ears_left = "<Animation src=\"whiteSheep_ears_right\" \t\ttransform=\"skew\"\txpos=\"57\" \typos=\"12\" objName=\"body\" animation=\"true\" frames=\"2\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_ears_frontleft = "<Animation src=\"whiteSheep_ears_frontright\" \ttransform=\"skew\" \txpos=\"45\" \typos=\"14\" objName=\"body\" animation=\"true\" frames=\"2\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_ears_frontright = "<Animation src=\"whiteSheep_ears_frontright\" \t\t\t\t\t\txpos=\"-25\" \typos=\"14\" objName=\"body\" animation=\"true\" frames=\"2\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_nose_frontleft = "<Animation src=\"whiteSheep_nose_frontright\" \ttransform=\"skew\" \txpos=\"49\" \typos=\"15\" objName=\"body\" animation=\"true\" frames=\"4\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_nose_frontright = "<Animation src=\"whiteSheep_nose_frontright\" \t\t\t\t\t\txpos=\"-26\" \typos=\"15\" objName=\"body\" animation=\"true\" frames=\"4\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_nose_backright = "<Animation src=\"whiteSheep_nose_backright\" \t\t\t\t\t\txpos=\"-26\" \typos=\"14\" objName=\"body\" animation=\"true\" frames=\"4\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.whiteSheep_nose_backleft = "<Animation src=\"whiteSheep_nose_backright\" \ttransform=\"skew\" \txpos=\"50\" \typos=\"14\" objName=\"body\" animation=\"true\" frames=\"4\" cicle=\"true\"\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.hare_run_front = "<Animation src=\"hare_run_front\" \t\t\t\t\t\t\txpos=\"-10\" \typos=\"12\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" \t\t\t\t\t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.hare_run_back = "<Animation src=\"hare_run_back\"\t\t\t\t\t\t\txpos=\"-10\" \typos=\"6\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" \t\t\t\t\t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.hare_run_right = "<Animation src=\"hare_run_right\" \t\t\t\t\t\t\txpos=\"-20\" \typos=\"5\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" \t\t\t\t\t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.hare_run_left = "<Animation src=\"hare_run_right\" \t\ttransform=\"skew\"\txpos=\"32\" \typos=\"5\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" \t\t\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.hare_run_frontleft = "<Animation src=\"hare_run_frontright\" transform=\"skew\" \txpos=\"28\" \typos=\"12\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.hare_run_frontright = "<Animation src=\"hare_run_frontright\" \t\t\t\t\txpos=\"-16\" \typos=\"12\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.hare_run_backright = "<Animation src=\"hare_run_backright\" \t\t\t\t\t\txpos=\"-16\" \typos=\"6\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.hare_run_backleft = "<Animation src=\"hare_run_backright\" \ttransform=\"skew\" \txpos=\"24\" \typos=\"6\" \tobjName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\"\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.hare_eat = "<Animation src=\"hare_eat\" \t\t\t\t\t\t\t\t\txpos=\"-18\" \typos=\"5\" \tobjName=\"body\" animation=\"true\" frames=\"3\" cicle=\"true\"\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.hare_lookRight_right = "<Animation src=\"hare_lookRight_right\" \t\t\t\t\t\txpos=\"-18\" \typos=\"5\" \tobjName=\"body\" animation=\"true\" frames=\"3\" cicle=\"true\"\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.hare_lookRight_left = "<Animation src=\"hare_lookRight_right\" \ttransform=\"skew\"\txpos=\"29\" \typos=\"5\" \tobjName=\"body\" animation=\"true\" frames=\"3\" cicle=\"true\"\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.hare_amazement_right = "<Animation src=\"hare_amazement_right\" \t\t\t\t\t\txpos=\"-14\" \typos=\"5\" \tobjName=\"body\" animation=\"true\" frames=\"7\" cicle=\"true\"\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.hare_amazement_left = "<Animation src=\"hare_amazement_right\" \ttransform=\"skew\"\txpos=\"18\" \typos=\"5\" \tobjName=\"body\" animation=\"true\" frames=\"7\" cicle=\"true\"\tplaytime=\".7\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.hare_stand_right = "<Animation src=\"hare_stand_right\" \t\t\t\t\t\t\txpos=\"-18\" \typos=\"5\" \tobjName=\"body\" animation=\"true\" frames=\"1\" cicle=\"false\"\tplaytime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.hare_stand_left = "<Animation src=\"hare_stand_right\" \t\ttransform=\"skew\"\txpos=\"29\" \typos=\"5\" \tobjName=\"body\" animation=\"true\" frames=\"1\" cicle=\"false\"\tplaytime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.hare_standUp_right = "<Animation src=\"hare_standUp_right\" \t\t\t\t\t\t\txpos=\"-14\" \typos=\"5\" \tobjName=\"body\" animation=\"true\" frames=\"2\" cicle=\"true\"\tplaytime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.hare_standUp_left = "<Animation src=\"hare_standUp_right\" \t\ttransform=\"skew\"\txpos=\"23\" \typos=\"5\" \tobjName=\"body\" animation=\"true\" frames=\"2\" cicle=\"true\"\tplaytime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.dust = "<Animation src=\"dust\" \t\t\t\tlayer=\"90\"\t\t\txpos=\"-32\" \typos=\"-32\" \tanimation=\"true\" frames=\"11\" cicle=\"false\"\tplaytime=\".4\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.Whitesheep_nose_frontright = "<Animation src=\"whiteSheep_nose_frontright\" \t\t\txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"4\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.Whitesheep_jump_frontright = "<Animation src=\"whiteSheep_jump_frontright\" \t\t\txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.Whitesheep_jump_backright = "<Animation src=\"whiteSheep_jump_backright\" \t\t\txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"6\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.Whitesheep_snake_frontright = "<Animation src=\"whiteSheep_shake_frontright\" \t\txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"13\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.Whitesheep_snake_front = "<Animation src=\"whiteSheep_shake_front\" \t\t\t\txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"13\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.Whitesheep_leftfootup_frontright = "<Animation src=\"WhitesheepLeftfootUp_RightFront\" \txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"2\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.WoolWhitesheep_walk_frontright = "<Animation src=\"WoolWhitesheepWalk_RightFront\" \t\txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"10\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.WhiteLamb_Right0021 = "<Animation src=\"WhiteLamb_Right0021\" \t\t\t\txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"1\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.WhiteLamb_RightFront0021 = "<Animation src=\"WhiteLamb_RightFront0021\" \t\t\t\txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"1\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.WhiteLambEatDrink_Right = "<Animation src=\"WhiteLambEatDrink_Right\" \t\t\txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"3\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.WoolWhitesheepWalk_Back = "<Animation src=\"WoolWhitesheepWalk_Back\" \t\t\txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"10\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.WhiteLambTurn_RightFront = "<Animation src=\"WhiteLambTurn_RightFront\" \t\t\txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"1\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.WhitesheepLeftfootUp_RightFront = "<Animation src=\"WhitesheepLeftfootUp_RightFront\" \txpos=\"0\" ypos=\"0\" objName=\"body\" animation=\"true\" frames=\"2\" cicle=\"true\" playtime=\"1\" loops=\"1\" looptype=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.coin = "<Animation src=\"GUIMoneyTabCoin\" animation=\"true\" frames=\"1\" cicle=\"true\" stop=\"true\" type=\"reverseLoop\" playtime=\".7\" loops=\"2\" xpos=\"0\" ypos=\"0\" classname=\"SimpleAnim\" startingframe=\"1\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.bicycle_anim_motion = "<Animation src=\"bicycle_anim_motion\" animation=\"true\" frames=\"10\" cicle=\"true\" stop=\"true\" type=\"reverseLoop\" playtime=\".7\" loops=\"2\" xpos=\"0\" ypos=\"0\" classname=\"SimpleAnim\" startingframe=\"1\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.bicyclewheel = "<Animation src=\"bicyclewheel\" animation=\"true\" frames=\"5\" cicle=\"true\" stop=\"true\" type=\"reverseLoop\" playtime=\".1\" loops=\"2\" xpos=\"0\" ypos=\"0\" classname=\"SimpleAnim\" startingframe=\"1\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.sellArrow = "<Animation src=\"sellArrow\" animation=\"true\" frames=\"22\" cicle=\"true\" stop=\"true\" type=\"reverseLoop\" playtime=\".7\" loops=\"2\" xpos=\"0\" ypos=\"0\" classname=\"SimpleAnim\" startingframe=\"1\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.HintPointer = "<Animation src=\"HintPointer\" animation=\"true\" frames=\"10\" cicle=\"true\" stop=\"true\" type=\"reverseLoop\" playtime=\".7\" loops=\"2\" xpos=\"0\" ypos=\"0\" classname=\"SimpleAnim\" startingframe=\"1\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.PumpkinTab = "<Animation src=\"PumpkinTab\" animation=\"true\" frames=\"14\" cicle=\"false\" stop=\"true\" type=\"reverseLoop\" playtime=\".7\" loops=\"2\" xpos=\"0\" ypos=\"16\" classname=\"SimpleAnim\" startingframe=\"1\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.CabbageTab = "<Animation src=\"CabbageTab\" animation=\"true\" frames=\"14\" cicle=\"false\" stop=\"true\" type=\"reverseLoop\" playtime=\".7\" loops=\"2\" xpos=\"0\" ypos=\"16\" classname=\"SimpleAnim\" startingframe=\"1\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.WatermelonTab = "<Animation src=\"WatermelonTab\" animation=\"true\" frames=\"14\" cicle=\"false\" stop=\"true\" type=\"reverseLoop\" playtime=\".7\" loops=\"2\" xpos=\"0\" ypos=\"16\" classname=\"SimpleAnim\" startingframe=\"1\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.GrainTab = "<Animation src=\"GrainTab\" depth=\"234\" animation=\"true\" frames=\"14\" cicle=\"false\" stop=\"true\" type=\"reverseLoop\" playtime=\".7\" loops=\"2\" xpos=\"0\" ypos=\"16\" classname=\"SimpleAnim\" startingframe=\"1\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.CloverTab = "<Animation src=\"CloverTab\" depth=\"235\" tabXpos=\"70\" tabYpos=\"-30\"animation=\"true\" frames=\"14\" cicle=\"false\" stop=\"true\" type=\"reverseLoop\" playtime=\".7\" loops=\"2\" xpos=\"0\" ypos=\"16\" classname=\"SimpleAnim\" startingframe=\"1\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.ripple = "<Animation src=\"ripple\" animation=\"true\" frames=\"11\" cicle=\"false\" type=\"reverseLoop\" playtime=\".7\" loops=\"1\" xpos=\"-18\" ypos=\"37\" classname=\"SimpleAnim\" startingframe=\"2\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.GrainField = "<Animation src=\"GrainField\"\txpos=\"-3\" ypos=\"0\" \tobjName=\"GrainField\" action=\"GrandCutDownGrain\" actionList=\"setWater,setWater\" animation=\"false\" frames=\"7\" cicle=\"false\" stop=\"true\" playtime=\".7\" loops=\"2\" classname=\"SimpleAnim\" startingframe=\"7\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.CloverField = "<Animation src=\"CloverField\"\txpos=\"22\" ypos=\"-7\" objName=\"CloverField\" action=\"GrandCutDownGrain\" actionList=\"setWater,setWater\" animation=\"false\" frames=\"7\" cicle=\"false\" stop=\"true\" playtime=\".7\" loops=\"2\" classname=\"SimpleAnim\" startingframe=\"7\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.PumpkinAnimation01 = "<Animation src=\"PumpkinAnimation01\" \t\tactionList=\"pourOn,digIt,takeIt\" objName=\"Pumpkin\" \t\txpos=\"-30\" ypos=\"-26\" \tanimation=\"true\" frames=\"7\" playtime=\".7\" stop=\"true\" classname=\"SimpleAnim\" startingframe=\"1\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.CabbageAnimation01 = "<Animation src=\"CabbageAnimation01\" \t\tactionList=\"pourOn,digIt,takeIt\" objName=\"Cabbage\" \t\txpos=\"-21\" ypos=\"-26\" \tanimation=\"true\" frames=\"7\" cicle=\"false\" stop=\"true\" playtime=\".7\" loops=\"2\" classname=\"SimpleAnim\" startingframe=\"1\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.WatermelonAnimation01 = "<Animation src=\"WatermelonAnimation01\" \tactionList=\"pourOn,digIt,takeIt\" objName=\"Watermelon\" \txpos=\"-23\" ypos=\"-26\"\tanimation=\"true\" frames=\"7\" cicle=\"false\" stop=\"true\" playtime=\".7\" loops=\"2\" classname=\"SimpleAnim\" startingframe=\"1\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.eat_Grain = "<Animation src=\"eat_Grain\" objName=\"Grain\" animation=\"false\" frames=\"6\" cicle=\"false\" stop=\"true\" playtime=\".7\" loops=\"2\" xpos=\"5\" ypos=\"-10\" classname=\"SimpleAnim\" startingframe=\"6\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.eat_Clover = "<Animation src=\"eat_Clover\" objName=\"Clover\" animation=\"false\" frames=\"6\" cicle=\"false\" stop=\"true\" playtime=\".7\" loops=\"2\" xpos=\"4\" ypos=\"-24\" classname=\"SimpleAnim\" startingframe=\"6\" poscorner=\"la\" mpx=\"1\" mpy=\"1\">";
Animation.DrinkPanRipple = "<Animation src=\"DrinkPanRipple\" animation=\"true\" frames=\"8\" cicle=\"false\" type=\"reverseLoop\" playtime=\".7\" loops=\"1\" xpos=\"4\" ypos=\"4\" classname=\"SimpleAnim\" startingframe=\"1\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.PigEat = "<Animation ID=\"3\" src=\"PigEat\" \t\txPos=\"-4\" yPos=\"-10\" \t animation=\"true\" frames=\"2\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" xpos=\"0\" ypos=\"-6\" \tclassname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.PigDiveDown = "<Animation ID=\"3\" src=\"PigDiveDown\" \txPos=\"-4\" yPos=\"-14\" \t animation=\"true\" frames=\"10\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" xpos=\"2\" ypos=\"-48\" \tclassname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.PigDiveUp = "<Animation ID=\"3\" src=\"PigDiveUp\" \txPos=\"-4\" yPos=\"-14\" \tanimation=\"true\" frames=\"6\" \tplaytime=\".7\" loops=\"1\" looptype=\"0\" xpos=\"0\" ypos=\"-6\" \tclassname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.PigTail_Left = "<Animation ID=\"2\" src=\"PigTail_Left\" xPos=\"-4\" yPos=\"-10\" \t overFilter=\"glow\" animation=\"true\" frames=\"6\" playtime=\"1\" loops=\"1\" looptype=\"0\" xpos=\"1\" ypos=\"-6\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"2\" mpy=\"1\"/>/>";
Animation.RedPoint = "<Animation src=\"RedPoint\" \t\t\tanimation=\"true\" action=\"loadLevel\" frames=\"15\" playtime=\"1\" loops=\"1\" looptype=\"0\" xpos=\"0\" ypos=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
Animation.MagentaBonusPoint = "<Animation src=\"MagentaBonusPoint\" \tanimation=\"true\" action=\"loadLevel\" frames=\"15\" playtime=\"1\" loops=\"1\" looptype=\"0\" xpos=\"0\" ypos=\"0\" classname=\"SimpleAnim\" poscorner=\"la\" mpx=\"1\" mpy=\"1\"/>";
return(Animation);
}
}
Symbol 768 MovieClip [__Packages.Main] Frame 0
class Main extends MovieClip
{
static var musicClip_, soundClip_, userProfile, LINK_CLASS;
var girlMap, birdMap, stockMap, hareMap, dbgClip_;
function Main () {
super();
Stage.scaleMode = "noScale";
com.mosesSupposes.fuse.ZigoEngine.register(com.mosesSupposes.fuse.Fuse, com.mosesSupposes.fuse.PennerEasing);
musicClip_ = _root.createEmptyMovieClip("musClip", _root.getNextHighestDepth());
soundClip_ = _root.createEmptyMovieClip("sndClip", _root.getNextHighestDepth());
com.data.GUIxml.init();
com.data.Strings.init();
if (!Helper.DEBUG_XML_MODE) {
userProfile = new com.game.logic.UsersProfile();
}
LINK_CLASS = this;
}
static function reloadGame() {
for (var name in _root) {
_root[name] = null;
delete _root[name];
_root[name].removeMovieClip();
_root[name].unloadMovie();
}
_root.gotoAndPlay(3);
}
static function XMLLoaded() {
userProfile = new com.game.logic.UsersProfile();
}
function playGame() {
var xml = com.data.GUIxml.getXML("game");
var gameZone = _root.attachMovie("GameZone", "GameZone", 50);
createMap(gameZone);
gameZone.createByXML(xml, LINK_CLASS);
}
static function updADS(rt, CURRLEVEL, func) {
if (Helper.inArray(CURRLEVEL, Helper.MOCHIARRAY)) {
if (Helper.SHOWMOCHIADS == true) {
com.base.ads.MochiAd.showInterLevelAd({id:Helper.MOCHIID, res:Helper.GAME_RESOLUTION, ad_finished:func, sc:LINK_CLASS});
}
} else if (Helper.inArray(CURRLEVEL, Helper.REALOREARRAY)) {
com.base.ads.ADS.showIngameAds(rt, func, LINK_CLASS, undefined, undefined, undefined);
} else if (Helper.inArray(CURRLEVEL, Helper.GETFULLARRAY)) {
var fullScr = rt.attachMovie("GetFullMenu", "GetFullMenu", 900);
com.base.ads.GetFullMenu(fullScr).create(LINK_CLASS, func);
}
}
function playMiniGame() {
var miniGameMC = _root.createEmptyMovieClip("miniGameMC", 50);
var xml = com.data.GUIxml.getXML("level", userProfile.__get__level());
var miniGame = (new com.game.minigames.MiniGame(miniGameMC, xml, this));
}
function gotoMap() {
var xml = com.data.GUIxml.getXML("map");
var mapZone = _root.attachMovie("Map", "Map", 50);
mapZone.createByXML(xml, this);
}
function createMap(link) {
var map = new Array();
map.push(new Array(1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1));
map.push(new Array(1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1));
map.push(new Array(1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1));
map.push(new Array(1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1));
map.push(new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1));
map.push(new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1));
map.push(new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1));
map.push(new Array(0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1));
map.push(new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0));
map.push(new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1));
map.push(new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0));
map.push(new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0));
map.push(new Array(1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 9, 1, 1, 1, 1, 1, 1, 1));
map.push(new Array(1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 9, 1, 1, 1, 1, 1, 1));
map.push(new Array(1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 9, 1, 1, 1, 1, 1));
map.push(new Array(1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 9, 1, 1, 1, 1));
map.push(new Array(1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1));
map.push(new Array(0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
map.push(new Array(0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
girlMap = new com.game.logic.AStarMap(map, null, 1, 5);
map = new Array();
map.push(new Array(0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0));
map.push(new Array(0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0));
map.push(new Array(0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0));
map.push(new Array(0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0));
map.push(new Array(0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0));
map.push(new Array(0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0));
map.push(new Array(0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0));
birdMap = new com.game.logic.AStarMap(map, null, 5, 17);
map = new Array();
map.push(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
map.push(new Array(0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0));
map.push(new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0));
map.push(new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0));
map.push(new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0));
map.push(new Array(0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0));
map.push(new Array(0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0));
map.push(new Array(0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0));
map.push(new Array(0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0));
map.push(new Array(0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0));
stockMap = new com.game.logic.AStarMap(map, null, 0, 14);
map = new Array();
map.push(new Array(0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0));
map.push(new Array(0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1));
map.push(new Array(0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0));
map.push(new Array(1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0));
map.push(new Array(1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1));
map.push(new Array(1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1));
map.push(new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1));
map.push(new Array(1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1));
map.push(new Array(1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1));
hareMap = new com.game.logic.AStarMap(map, null, 0, 13);
}
function createFPS() {
dbgClip_ = _root.createEmptyMovieClip("square_mc", 333333);
dbgClip_.scoupe = this;
var afield = dbgClip_.createTextField("FpsText", dbgClip_.getNextHighestDepth(), 0, 0, 100, 100);
afield._x = 20;
afield._y = 460;
dbgClip_.onEnterFrame = function () {
this.t = getTimer();
this.framerate = Math.round(1000 / (this.t - this.o));
this.o = this.t;
this.FpsText.text = "FPS " + this.framerate;
};
}
static var showHints = true;
static var soundLevel = 50;
static var musicLevel = 0;
}
Symbol 769 MovieClip [__Packages.com.game.logic.AStarMap] Frame 0
class com.game.logic.AStarMap
{
var map, scope, Astar_mc;
function AStarMap (map, scope, xx, yy) {
this.map = new Array();
this.map = map;
this.scope = scope;
X = xx * CELL_SIZE;
Y = yy * CELL_SIZE;
}
function drawMap(link) {
if (link) {
scope = link;
}
Astar_mc = scope.createEmptyMovieClip("AStar_mc", 50000);
Astar_mc._y = Y;
Astar_mc._x = X;
var ID = null;
var y = 0;
while (y < map.length) {
var x = 0;
while (x < map[0].length) {
var pos = (x + (y * CELL_SIZE));
ID = (x + "_") + y;
switch (map[y][x]) {
case 0 :
Astar_mc.attachMovie("wall", "tile_" + ID, Astar_mc.getNextHighestDepth());
Astar_mc["tile_" + ID].scope = this;
Astar_mc["tile_" + ID]._x = x * CELL_SIZE;
Astar_mc["tile_" + ID]._y = y * CELL_SIZE;
break;
default :
Astar_mc.attachMovie("floor", "floor_" + ID, Astar_mc.getNextHighestDepth());
Astar_mc["floor_" + ID].scope = this;
Astar_mc["floor_" + ID]._x = x * CELL_SIZE;
Astar_mc["floor_" + ID]._y = y * CELL_SIZE;
}
x++;
}
y++;
}
}
function showPath(arr) {
var mc_path = scope.createEmptyMovieClip("path", 5555555);
var ID = null;
var i = 0;
while (i < arr.length) {
var x = arr[i][1];
var y = arr[i][0];
ID = (x + "_") + y;
var path = mc_path.attachMovie("wall", "end" + ID, mc_path.getNextHighestDepth());
path.scope = this;
path._x = XConvertToLocal(x);
path._y = YConvertToLocal(y);
var myBlur = (new ru.etcs.filters.ColorFilter(50, 50));
var filterArray = new Array();
filterArray.push(myBlur);
path.filters = filterArray;
i++;
}
}
function XConvertToLocal(mapx) {
return(X + (mapx * CELL_SIZE));
}
function YConvertToLocal(mapy) {
return(Y + (mapy * CELL_SIZE));
}
function registerObj(xpos, ypos) {
var nx = XConvertToMap(xpos);
var ny = YConvertToMap(ypos);
map[ny][nx] = 0;
drawMap(null);
}
function XConvertToMap(locx) {
return(Math.floor((locx - X) / CELL_SIZE));
}
function YConvertToMap(locy) {
return(Math.floor((locy - Y) / CELL_SIZE));
}
static var CELL_SIZE = 20;
var X = 0;
var Y = 0;
}
Symbol 770 MovieClip [__Packages.ru.etcs.filters.ColorFilter] Frame 0
class ru.etcs.filters.ColorFilter extends flash.filters.ColorMatrixFilter
{
var __matrix, __brightness, __contrast, __saturation, __hue, matrix;
function ColorFilter (brightness, contrast, saturation, hue) {
super();
setColor(brightness, contrast, saturation, hue);
}
function updateMatrix() {
__matrix = new com.gskinner.geom.ColorMatrix();
__matrix.adjustColor(__brightness, __contrast, __saturation, __hue);
matrix = __matrix;
}
function set brightness(value) {
__brightness = value;
updateMatrix();
//return(brightness);
}
function get brightness() {
return(__brightness);
}
function set contrast(value) {
__contrast = value;
updateMatrix();
//return(contrast);
}
function get contrast() {
return(__contrast);
}
function set saturation(value) {
__saturation = value;
updateMatrix();
//return(saturation);
}
function get saturation() {
return(__saturation);
}
function set hue(value) {
__hue = value;
updateMatrix();
//return(hue);
}
function get hue() {
return(__hue);
}
function setColor(brightness, contrast, saturation, hue) {
__brightness = (isNaN(brightness) ? 0 : (brightness));
__contrast = (isNaN(contrast) ? 0 : (contrast));
__saturation = (isNaN(saturation) ? 0 : (saturation));
__hue = (isNaN(hue) ? 0 : (hue));
updateMatrix();
}
}
Symbol 771 MovieClip [__Packages.com.gskinner.geom.ColorMatrix] Frame 0
class com.gskinner.geom.ColorMatrix extends Array
{
var join, slice;
function ColorMatrix (p_matrix) {
super();
p_matrix = fixMatrix(p_matrix);
copyMatrix(((p_matrix.length == LENGTH) ? (p_matrix) : (IDENTITY_MATRIX)));
}
function adjustColor(p_brightness, p_contrast, p_saturation, p_hue) {
adjustHue(p_hue);
adjustContrast(p_contrast);
adjustBrightness(p_brightness);
adjustSaturation(p_saturation);
}
function adjustBrightness(p_val) {
p_val = cleanValue(p_val, 100);
if ((p_val == 0) || (isNaN(p_val))) {
return(undefined);
}
multiplyMatrix([1, 0, 0, 0, p_val, 0, 1, 0, 0, p_val, 0, 0, 1, 0, p_val, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
}
function adjustContrast(p_val) {
p_val = cleanValue(p_val, 100);
if ((p_val == 0) || (isNaN(p_val))) {
return(undefined);
}
var x;
if (p_val < 0) {
x = 127 + ((p_val / 100) * 127);
} else {
x = p_val % 1;
if (x == 0) {
x = DELTA_INDEX[p_val];
} else {
x = (DELTA_INDEX[p_val << 0] * (1 - x)) + (DELTA_INDEX[(p_val << 0) + 1] * x);
}
x = (x * 127) + 127;
}
multiplyMatrix([x / 127, 0, 0, 0, 0.5 * (127 - x), 0, x / 127, 0, 0, 0.5 * (127 - x), 0, 0, x / 127, 0, 0.5 * (127 - x), 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
}
function adjustSaturation(p_val) {
p_val = cleanValue(p_val, 100);
if ((p_val == 0) || (isNaN(p_val))) {
return(undefined);
}
var x = (1 + ((p_val > 0) ? ((3 * p_val) / 100) : (p_val / 100)));
var lumR = 0.3086;
var lumG = 0.6094;
var lumB = 0.082;
multiplyMatrix([(lumR * (1 - x)) + x, lumG * (1 - x), lumB * (1 - x), 0, 0, lumR * (1 - x), (lumG * (1 - x)) + x, lumB * (1 - x), 0, 0, lumR * (1 - x), lumG * (1 - x), (lumB * (1 - x)) + x, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
}
function adjustHue(p_val) {
p_val = (cleanValue(p_val, 180) / 180) * Math.PI;
if ((p_val == 0) || (isNaN(p_val))) {
return(undefined);
}
var cosVal = Math.cos(p_val);
var sinVal = Math.sin(p_val);
var lumR = 0.213;
var lumG = 0.715;
var lumB = 0.072;
multiplyMatrix([(lumR + (cosVal * (1 - lumR))) + (sinVal * (-lumR)), (lumG + (cosVal * (-lumG))) + (sinVal * (-lumG)), (lumB + (cosVal * (-lumB))) + (sinVal * (1 - lumB)), 0, 0, (lumR + (cosVal * (-lumR))) + (sinVal * 0.143), (lumG + (cosVal * (1 - lumG))) + (sinVal * 0.14), (lumB + (cosVal * (-lumB))) + (sinVal * -0.283), 0, 0, (lumR + (cosVal * (-lumR))) + (sinVal * (-(1 - lumR))), (lumG + (cosVal * (-lumG))) + (sinVal * lumG), (lumB + (cosVal * (1 - lumB))) + (sinVal * lumB), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
}
function concat(p_matrix) {
p_matrix = fixMatrix(p_matrix);
if (p_matrix.length != LENGTH) {
return(undefined);
}
multiplyMatrix(p_matrix);
}
function clone() {
return(new com.gskinner.geom.ColorMatrix(this));
}
function toString() {
return(("ColorMatrix [ " + join(" , ")) + " ]");
}
function toArray() {
return(slice(0, 20));
}
function copyMatrix(p_matrix) {
var l = LENGTH;
var i = 0;
while (i < l) {
this[i] = p_matrix[i];
i++;
}
}
function multiplyMatrix(p_matrix) {
var col = [];
var i = 0;
while (i < 5) {
var j = 0;
while (j < 5) {
col[j] = this[j + (i * 5)];
j++;
}
var j = 0;
while (j < 5) {
var val = 0;
var k = 0;
while (k < 5) {
val = val + (p_matrix[j + (k * 5)] * col[k]);
k++;
}
this[j + (i * 5)] = val;
j++;
}
i++;
}
}
function cleanValue(p_val, p_limit) {
return(Math.min(p_limit, Math.max(-p_limit, p_val)));
}
function fixMatrix(p_matrix) {
if (p_matrix instanceof com.gskinner.geom.ColorMatrix) {
p_matrix = p_matrix.slice(0);
}
if (p_matrix.length < LENGTH) {
p_matrix = p_matrix.slice(0, p_matrix.length).concat(IDENTITY_MATRIX.slice(p_matrix.length, LENGTH));
} else if (p_matrix.length > LENGTH) {
p_matrix = p_matrix.slice(0, LENGTH);
}
return(p_matrix);
}
static var DELTA_INDEX = [0, 0.01, 0.02, 0.04, 0.05, 0.06, 0.07, 0.08, 0.1, 0.11, 0.12, 0.14, 0.15, 0.16, 0.17, 0.18, 0.2, 0.21, 0.22, 0.24, 0.25, 0.27, 0.28, 0.3, 0.32, 0.34, 0.36, 0.38, 0.4, 0.42, 0.44, 0.46, 0.48, 0.5, 0.53, 0.56, 0.59, 0.62, 0.65, 0.68, 0.71, 0.74, 0.77, 0.8, 0.83, 0.86, 0.89, 0.92, 0.95, 0.98, 1, 1.06, 1.12, 1.18, 1.24, 1.3, 1.36, 1.42, 1.48, 1.54, 1.6, 1.66, 1.72, 1.78, 1.84, 1.9, 1.96, 2, 2.12, 2.25, 2.37, 2.5, 2.62, 2.75, 2.87, 3, 3.2, 3.4, 3.6, 3.8, 4, 4.3, 4.7, 4.9, 5, 5.5, 6, 6.5, 6.8, 7, 7.3, 7.5, 7.8, 8, 8.4, 8.7, 9, 9.4, 9.6, 9.8, 10];
static var IDENTITY_MATRIX = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
static var LENGTH = IDENTITY_MATRIX.length;
}
Symbol 772 MovieClip [__Packages.com.base.MusicPlayer] Frame 0
class com.base.MusicPlayer
{
function MusicPlayer () {
}
static function musicVolume(aVol) {
if (Main.musicOBJ_ != undefined) {
Main.musicOBJ_.setVolume(aVol);
}
}
function get volume() {
return(Main.musicLevel);
}
function set volume(value) {
musicVolume(value);
Main.musicLevel = value;
//return(volume);
}
static function musicPlay(aMus, aVolume) {
if (Main.musicOBJ_ != undefined) {
Main.musicOBJ_.stop();
delete Main.musicOBJ_;
}
Main.musicOBJ_ = new Sound(Main.musicClip_);
Main.musicOBJ_.attachSound(aMus);
Main.musicOBJ_.setVolume(Main.musicLevel || (aVolume));
Main.musicOBJ_.start(0, 1000);
}
static function stop() {
Main.musicOBJ_.stop();
delete Main.musicOBJ_;
}
}
Symbol 773 MovieClip [__Packages.com.game.logic.UsersProfile] Frame 0
class com.game.logic.UsersProfile
{
var profile, arcade, tmpProfile, dispatchEvent, _levels, _level;
function UsersProfile () {
mx.events.EventDispatcher.initialize(this);
profile = com.data.GUIxml.getXML("baseProfile");
arcade = com.utils.XMLObjFinder.findNode(profile, "Arcade");
Main.musicLevel = int(com.utils.XMLObjFinder.findNode(profile, "MusicVolume").attributes.Value);
var properties = com.data.GUIxml.getXML("getProperties", "Time");
moneyPerSecond = int(properties.attributes.MoneyPerSecond);
}
function saveCurrProfile() {
tmpProfile = new XML();
tmpProfile.appendChild(arcade.cloneNode(true));
}
function restoreProfile() {
arcade = new XML(tmpProfile.cloneNode(true).firstChild.toString());
}
function setMoney(num) {
com.utils.XMLObjFinder.findNode(arcade, "money").attributes.count = num;
dispatchEvent({type:"action", event:"updateMoney"});
}
function getMoney() {
var ret = int(com.utils.XMLObjFinder.findNode(arcade, "money").attributes.count);
return(ret);
}
function setTotalMoney(num) {
com.utils.XMLObjFinder.findNode(arcade, "gamemoney").attributes.count = num;
}
function getTotalMoney() {
return(int(com.utils.XMLObjFinder.findNode(arcade, "gamemoney").attributes.count));
}
function get levels() {
_levels = int(com.utils.XMLObjFinder.findNode(arcade, "levels").attributes.count);
return(_levels);
}
function set levels(value) {
_levels = value;
com.utils.XMLObjFinder.findNode(arcade, "levels").attributes.count = value;
//return(levels);
}
function get level() {
return(_level);
}
function set level(value) {
_level = value;
//return(level);
}
function nextLevel() {
if (level == levels) {
levels = ((levels+1));
saveCurrProfile();
}
}
function getItemsList(value) {
value = value.toLowerCase();
var tmpXML = com.utils.XMLObjFinder.findNode(arcade, "Items");
var node = com.utils.XMLObjFinder.findNode(tmpXML, value);
return(node);
}
function addNewItems(node) {
addItemsCount(node.firstChild.nodeName);
com.utils.XMLObjFinder.findNode(arcade, "Items").appendChild(node.firstChild);
}
function removeItem(name, count) {
if (!count) {
count = 1;
}
removeItemsCount(name, count);
var Items = com.utils.XMLObjFinder.findNode(arcade, "Items");
var node = com.utils.XMLObjFinder.findNode(Items, name);
node.removeNode();
}
function addItemsCount(value) {
value = value + "s";
com.utils.XMLObjFinder.findNode(arcade, value).attributes.count = int(com.utils.XMLObjFinder.findNode(arcade, value).attributes.count) + 1;
}
function getItemsCount(value) {
value = value + "s";
var res = com.utils.XMLObjFinder.findNode(arcade, value).attributes.count;
if (res != undefined) {
return(res);
}
return(null);
}
function removeItemsCount(value, count) {
value = value + "s";
var currCount = int(com.utils.XMLObjFinder.findNode(arcade, value).attributes.count);
if (currCount > 0) {
com.utils.XMLObjFinder.findNode(arcade, value).attributes.count = currCount - count;
}
}
var moneyPerSecond = 0;
}
Symbol 774 MovieClip [__Packages.com.utils.XMLObjFinder] Frame 0
class com.utils.XMLObjFinder
{
function XMLObjFinder () {
}
static function parseXML(xml, base, prefix, sufix) {
var xmlLenght = xml.childNodes.length;
var tmpNode;
var toFind = ((((prefix + "_") + base) + "_") + sufix);
var i = 0;
while (i < xmlLenght) {
if (xml.childNodes[i].attributes.elementID == toFind) {
tmpNode = xml.childNodes[i];
}
i++;
}
return(tmpNode);
}
static function findNode(xml, nodeName) {
var xmlLenght;
if (xml.firstChild.childNodes.length > xml.childNodes.length) {
xmlLenght = xml.firstChild.childNodes.length;
} else {
xmlLenght = xml.childNodes.length;
}
var tmpNode = new XML();
var toFind = nodeName;
var i = 0;
while (i < xmlLenght) {
if ((xml.firstChild.childNodes[i].nodeName == toFind) || (xml.childNodes[i].nodeName == toFind)) {
if (xml.firstChild.childNodes.length > xml.childNodes.length) {
tmpNode = xml.firstChild.childNodes[i];
} else {
tmpNode = xml.childNodes[i];
}
}
i++;
}
return(tmpNode);
}
static function findNode_v2(xml, nodeName) {
var xmlLenght;
xmlLenght = xml.childNodes.length;
var tmpNode = new XML();
var toFind = nodeName;
var i = 0;
while (i < xmlLenght) {
if (xml.childNodes[i].nodeName == toFind) {
tmpNode = xml.childNodes[i];
}
i++;
}
return(tmpNode);
}
}
Symbol 775 MovieClip [__Packages.com.mosesSupposes.fuse.Fuse] Frame 0
class com.mosesSupposes.fuse.Fuse extends Array
{
var _nID, _aDefaultTargs, length, scope, _nIndex, _oDel1, dispatchEvent, label, autoClear, duration, easing;
function Fuse (fuseAction) {
super();
mx.events.EventDispatcher.initialize(this);
_nID = registerInstance(this);
_nState = -1;
_aDefaultTargs = new Array();
if (arguments.length > 0) {
splice.apply(this, new Array(0, 0).concat(arguments));
}
var unsupport = ["concat", "join", "sort", "sortOn"];
for (var i in unsupport) {
com.mosesSupposes.fuse.Fuse.prototype[unsupport[i]] = function () {
if (com.mosesSupposes.fuse.Fuse.OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("105");
}
};
}
}
function addEventListener(event, handler) {
}
function removeEventListener(event, handler) {
}
function destroy() {
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(getHandle() + " destroy.");
}
stop(true);
splice(0, length);
_aDefaultTargs = null;
scope = null;
_global.ASSetPropFlags(this, null, 0, 7);
var id = _nID;
for (var i in this) {
delete this[i];
}
removeInstanceAt(id, true);
delete id;
delete this;
}
static function getInstance(idOrLabel) {
if (typeof(idOrLabel) == "number") {
return(_aInstances[idOrLabel]);
}
if (typeof(idOrLabel) == "string") {
for (var i in _aInstances) {
if (com.mosesSupposes.fuse.Fuse(_aInstances[i]).label == idOrLabel) {
return(_aInstances[i]);
}
}
}
return(null);
}
static function getInstances(stateFilter, targets) {
var all = ((stateFilter == null) || (stateFilter.toUpperCase() == "ALL"));
if (!(targets instanceof Array)) {
targets = arguments.slice(1);
}
var a = [];
for (var i in _aInstances) {
var instance = _aInstances[i];
if (_aInstances[i] == null) {
continue;
}
if ((all == false) && (instance.__get__state() != stateFilter)) {
continue;
}
var found = (targets.length == 0);
if (found == false) {
if (found == true) {
continue;
}
var instTargs = instance.getActiveTargets(true);
for (var j in targets) {
for (var k in instTargs) {
if (instTargs[k] == targets[j]) {
found = true;
break;
}
}
}
}
if (found == true) {
a.unshift(instance);
}
}
return(a);
}
function get id() {
return(_nID);
}
function get state() {
switch (_nState) {
case -1 :
return("stopped");
case 0 :
return("paused");
case 1 :
return("playing");
}
return(undefined);
}
function get currentIndex() {
return(_nIndex);
}
function get currentLabel() {
return(this[_nIndex].label);
}
function get target() {
return(((_aDefaultTargs.length == 1) ? (_aDefaultTargs[0]) : (_aDefaultTargs)));
}
function set target(t) {
delete _aDefaultTargs;
if (t != null) {
addTarget(t);
}
//return(target);
}
function addTarget(t) {
if (_aDefaultTargs == null) {
_aDefaultTargs = [];
}
if (arguments[0] instanceof Array) {
arguments = arguments[0];
}
for (var i in arguments) {
var found = false;
for (var j in _aDefaultTargs) {
if (arguments[i] == _aDefaultTargs[j]) {
found = true;
break;
}
}
if (found == false) {
_aDefaultTargs.push(arguments[i]);
}
}
}
function removeTarget(t) {
if ((_aDefaultTargs == null) || (_aDefaultTargs.length == 0)) {
return(undefined);
}
if (arguments[0] instanceof Array) {
arguments = arguments[0];
}
for (var i in arguments) {
for (var j in _aDefaultTargs) {
if (arguments[i] == _aDefaultTargs[j]) {
_aDefaultTargs.splice(Number(j), 1);
}
}
}
}
function getActiveTargets(includeDefaults) {
if (_nState == -1) {
return([]);
}
var targetList;
if (includeDefaults == true) {
targetList = _aDefaultTargs.slice();
} else {
targetList = [];
}
return(com.mosesSupposes.fuse.FuseItem(this[_nIndex]).getActiveTargets(targetList));
}
function clone() {
var initObjs = [];
var i = 0;
while (i < length) {
initObjs.push(com.mosesSupposes.fuse.FuseItem(this[i]).getInitObj());
i++;
}
var f = (new com.mosesSupposes.fuse.Fuse());
f.push.apply(f, initObjs);
f.scope = scope;
f.__set__target(target);
return(f);
}
function push(fuseAction) {
splice.apply(this, new Array(length, 0).concat(arguments));
return(length);
}
function pushTween(targets, props, endvals, seconds, ease, delay, callback) {
push({__buildMode:true, tweenargs:arguments});
return(length);
}
function pop() {
var o = com.mosesSupposes.fuse.FuseItem(this[length - 1]).getInitObj();
splice(length - 1, 1);
return(o);
}
function unshift(fuseAction) {
splice.apply(this, new Array(0, 0).concat(arguments));
return(length);
}
function shift() {
var o = com.mosesSupposes.fuse.FuseItem(this[0]).getInitObj();
splice(0, 1);
return(o);
}
function splice(startIndex, deleteCount, fuseAction) {
stop(true);
var si = Number(arguments.shift());
if (si < 0) {
si = length + si;
}
deleteCount = Number(arguments.shift());
var newItems = new Array();
var i = 0;
while (i < arguments.length) {
var item = ((arguments[i] instanceof com.mosesSupposes.fuse.Fuse) ? (arguments[i]) : (new com.mosesSupposes.fuse.FuseItem(si + i, arguments[i], _nID)));
addEventListener("onStop", item);
addEventListener("evtSetStart", item);
newItems.push(item);
i++;
}
var deadItems = super.splice.apply(this, new Array(si, deleteCount).concat(newItems));
for (var j in deadItems) {
var item = deadItems[j];
removeEventListener("onStop", item);
removeEventListener("evtSetStart", item);
if (item instanceof com.mosesSupposes.fuse.Fuse) {
item.removeEventListener("onComplete", _oDel1);
} else {
item.destroy();
delete item;
}
}
var i = 0;
while (i < length) {
com.mosesSupposes.fuse.FuseItem(this[i])._nItemID = i;
i++;
}
}
function slice(indexA, indexB) {
var a = super.slice(indexA, indexB);
var initObjs = new Array();
var i = 0;
while (i < arguments.length) {
initObjs.push(com.mosesSupposes.fuse.FuseItem(this[i]).getInitObj());
i++;
}
return(initObjs);
}
function reverse() {
stop(true);
super.reverse();
var i = 0;
while (i < length) {
com.mosesSupposes.fuse.FuseItem(this[i])._nItemID = i;
i++;
}
}
function traceItems(indexA, indexB) {
var s = "";
var a = super.slice(indexA, indexB);
s = s + ((getHandle() + " traceItems:") + "\n----------\n");
var i = 0;
while (i < a.length) {
if (a[i] instanceof com.mosesSupposes.fuse.Fuse) {
s = s + (((((getHandle() + ">Item#") + i) + ": [Nested Fuse] ") + a[i]) + newline);
} else {
s = s + (a[i] + newline);
}
i++;
}
s = s + "----------";
com.mosesSupposes.fuse.FuseKitCommon.output(s);
}
function toString() {
return(((getHandle() + " (contains ") + length) + ((length == 1) ? " item)" : " items)"));
}
function setStartProps(trueOrItemIDs) {
var all = (((arguments.length == 0) || (trueOrItemIDs === true)) || (trueOrItemIDs == com.mosesSupposes.fuse.FuseKitCommon.ALL));
dispatchEvent({target:this, type:"evtSetStart", all:all, filter:((trueOrItemIDs instanceof Array) ? (trueOrItemIDs) : (arguments)), curIndex:((_nState == 1) ? (_nIndex) : -1), targs:_aDefaultTargs, scope:scope});
}
function start(setStart) {
close();
stop(true);
_nState = 1;
if (length == 0) {
advance(false, true, false);
}
if ((setStart != null) && (setStart != false)) {
setStartProps.apply(this, arguments);
}
dispatchEvent({target:this, type:"onStart"});
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(getHandle() + " start.");
}
playCurrentItem();
}
function stop() {
if (_nState != -1) {
var i = 0;
while (i < length) {
if (this[i] instanceof com.mosesSupposes.fuse.Fuse) {
com.mosesSupposes.fuse.Fuse(this[i]).removeEventListener("onComplete", _oDel1);
if (com.mosesSupposes.fuse.Fuse(this[i]).__get__state() == "playing") {
com.mosesSupposes.fuse.Fuse(this[i]).stop();
}
} else if ((i == _nIndex) || (com.mosesSupposes.fuse.FuseItem(this[i]).hasTriggerFired() == true)) {
com.mosesSupposes.fuse.FuseItem(this[i]).stop();
}
i++;
}
}
var prevstate = _nState;
_nState = -1;
if ((!(arguments[0] === true)) && (prevstate != -1)) {
dispatchEvent({target:this, type:"onStop"});
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(getHandle() + " stop.");
}
}
_nIndex = 0;
clearInterval(_nDelay);
_nTimeCache = (_nDelay = -1);
}
function skipTo(indexOrLabel) {
close();
var index = normalizeIndex(indexOrLabel);
if (index == null) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("102", "skipTo", String(indexOrLabel));
}
return(undefined);
}
if ((index == _nIndex) && (arguments[1] === true)) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("103", String(indexOrLabel), _nIndex);
}
}
if (this[_nIndex] instanceof com.mosesSupposes.fuse.Fuse) {
com.mosesSupposes.fuse.Fuse(this[_nIndex]).removeEventListener("onComplete", _oDel1);
}
stop(true);
_nIndex = index;
var s = _nState;
_nState = 1;
if (s == -1) {
dispatchEvent({target:this, type:"onStart"});
}
playCurrentItem();
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output("skipTo:" + index);
}
}
function pause() {
if (_nState == 1) {
var i = 0;
while (i <= _nIndex) {
if ((this[i].state === "playing") || (this[i]._nPlaying > 0)) {
this[i].pause();
}
i++;
}
if (_nTimeCache != -1) {
_nTimeCache = _nTimeCache - getTimer();
clearInterval(_nDelay);
}
_nState = 0;
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(getHandle() + " pause.");
}
dispatchEvent({target:this, type:"onPause"});
}
}
function resume() {
if (_nState != 0) {
return(undefined);
}
close();
_nState = 1;
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(getHandle() + " resume.");
}
dispatchEvent({target:this, type:"onResume"});
if (_nTimeCache != -1) {
playCurrentItem(false, true);
}
var i = 0;
while (i <= _nIndex) {
if ((this[i] instanceof com.mosesSupposes.fuse.Fuse) && (this[i].state == "paused")) {
com.mosesSupposes.fuse.Fuse(this[i]).resume();
} else if (this[i]._nPlaying == 0) {
com.mosesSupposes.fuse.FuseItem(this[i]).pause(true);
}
i++;
}
}
function fastForward(resumeAtIndexOrLabel) {
var index = ((resumeAtIndexOrLabel == null) ? (length) : (normalizeIndex(resumeAtIndexOrLabel)));
if (index == null) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("102", "fastForward", String(resumeAtIndexOrLabel));
}
return(undefined);
}
if ((index == 0) || (index <= _nIndex)) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("104", index);
}
skipTo(index);
return(undefined);
}
clearInterval(_nDelay);
var i = _nIndex;
while (i < index) {
this[i].fastForward(null, _aDefaultTargs, scope);
advance(false, true, !((i == (index - 1)) && (index < length)));
i++;
}
}
function getHandle() {
return("-Fuse" + ((label != undefined) ? ((" \"" + label) + "\"") : ("#" + String(_nID))));
}
function advance(wasTriggered, silentStop, isFF) {
if (_nState < 1) {
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((("** DEVELOPER ALERT: " + getHandle()) + " advance called out of turn! (state:") + state) + " currentIndex:") + currentIndex) + ") Please report this Fuse's details to MosesSupposes.com. **");
}
return(undefined);
}
var isLastFinal = false;
if ((_nIndex == (length - 1)) && (isFF != true)) {
var i = (length - 1);
while (i > -1) {
if (com.mosesSupposes.fuse.FuseItem(this[i])._nPlaying > -1) {
return(undefined);
}
i--;
}
isLastFinal = true;
}
if ((wasTriggered == true) && (isLastFinal == false)) {
return(undefined);
}
if (this[_nIndex] instanceof com.mosesSupposes.fuse.Fuse) {
com.mosesSupposes.fuse.Fuse(this[_nIndex]).removeEventListener("onComplete", _oDel1);
}
if ((_nIndex + 1) >= length) {
stop(silentStop);
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(getHandle() + " complete.");
}
_nIndex = length - 1;
dispatchEvent({target:this, type:"onComplete"});
if ((autoClear == true) || ((!(autoClear === false)) && (AUTOCLEAR == true))) {
destroy();
}
return(undefined);
}
_nIndex++;
if (isFF == true) {
return(undefined);
}
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output((getHandle() + " advance: ") + _nIndex);
}
dispatchEvent({target:this, type:"onAdvance"});
playCurrentItem();
}
function playCurrentItem(postDelay, resumeDelay) {
clearInterval(_nDelay);
if ((postDelay != true) || (resumeDelay == true)) {
var d = 0;
if (resumeDelay != true) {
d = (com.mosesSupposes.fuse.FuseItem(this[_nIndex]).evalDelay(scope) || 0) * 1000;
}
if ((d > 0) || (resumeDelay == true)) {
if (resumeDelay == true) {
d = _nTimeCache;
_nTimeCache = _nTimeCache + getTimer();
} else {
var multiplier = Math.abs(_global.com.mosesSupposes.fuse.ZigoEngine.TIME_MULTIPLIER);
if (_global.isNaN(multiplier) == true) {
multiplier = 1;
}
d = d * multiplier;
_nTimeCache = getTimer() + d;
}
_nDelay = setInterval(this, "playCurrentItem", d, true);
return(undefined);
}
}
_nTimeCache = (_nDelay = -1);
if (this[_nIndex] instanceof com.mosesSupposes.fuse.Fuse) {
if (_oDel1 == null) {
_oDel1 = mx.utils.Delegate.create(this, advance);
}
com.mosesSupposes.fuse.Fuse(this[_nIndex]).addEventListener("onComplete", _oDel1);
com.mosesSupposes.fuse.Fuse(this[_nIndex]).start(_aDefaultTargs, scope);
} else {
var propsTweened = com.mosesSupposes.fuse.FuseItem(this[_nIndex]).startItem(_aDefaultTargs, scope, duration, easing);
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output((getHandle() + " props tweened: ") + propsTweened);
}
}
}
function evtSetStart(o) {
setStartProps.apply(this, o.filter);
}
static function open(fuseOrID) {
var _ZigoEngine = _global.com.mosesSupposes.fuse.ZigoEngine;
if (_ZigoEngine == undefined) {
com.mosesSupposes.fuse.FuseKitCommon.error("106");
return(null);
}
_ZigoEngine.register(com.mosesSupposes.fuse.Fuse, com.mosesSupposes.fuse.FuseItem);
if (_oBuildMode == null) {
_oBuildMode = {curID:-1, prevID:-1, curGroup:null};
} else if ((_oBuildMode != null) && (_oBuildMode.curID > -1)) {
close();
}
if (fuseOrID != null) {
if (fuseOrID instanceof com.mosesSupposes.fuse.Fuse) {
_oBuildMode.curID = fuseOrID.id;
} else if (getInstance(fuseOrID) != null) {
_oBuildMode.curID = getInstance(fuseOrID).id;
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("107");
return(null);
}
} else {
_oBuildMode.curID = (new com.mosesSupposes.fuse.Fuse()).id;
}
_oBuildMode.prevID = _oBuildMode.curID;
return(getInstance(_oBuildMode.curID));
}
static function openGroup(fuseOrID) {
if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) {
open(fuseOrID);
} else if (_oBuildMode.curGroup != null) {
closeGroup();
}
_oBuildMode.curGroup = new Array();
return(getInstance(_oBuildMode.curID));
}
static function closeGroup() {
if ((_oBuildMode.curGroup == null) || (!((_oBuildMode != null) && (_oBuildMode.curID > -1)))) {
return(undefined);
}
getInstance(_oBuildMode.curID).push(_oBuildMode.curGroup);
_oBuildMode.curGroup = null;
}
static function close() {
if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) {
return(undefined);
}
if (_oBuildMode.curGroup != null) {
closeGroup();
}
_oBuildMode.curID = -1;
}
static function closeAndStart(setStart) {
if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) {
return(undefined);
}
var f = getInstance(_oBuildMode.curID);
close();
f.start.apply(f, arguments);
}
static function startRecent(setStart) {
var f = getInstance(_oBuildMode.prevID);
if (f != null) {
f.start.apply(f, arguments);
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("108");
}
}
static function addCommand(commandOrScope, indexOrFunc, argument) {
if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) {
return(undefined);
}
var inGroup = (_oBuildMode.curGroup != null);
var into = ((inGroup == true) ? (_oBuildMode.curGroup) : (getInstance(_oBuildMode.curID)));
if (typeof(commandOrScope) == "string") {
var hasArg = (indexOrFunc != undefined);
var valid = com.mosesSupposes.fuse.FuseKitCommon._validateFuseCommand(String(commandOrScope), inGroup, hasArg, OUTPUT_LEVEL, true);
if (valid == true) {
into.push({__buildMode:true, command:commandOrScope, commandargs:indexOrFunc});
}
} else {
into.push({__buildMode:true, scope:commandOrScope, func:indexOrFunc, args:arguments.slice(2)});
}
}
static function addBuildItem(args) {
if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) {
return(false);
}
var into = ((_oBuildMode.curGroup != null) ? (_oBuildMode.curGroup) : (getInstance(_oBuildMode.curID)));
if ((args.length == 1) && (typeof(args[0]) == "object")) {
into.push(args[0]);
} else {
into.push({__buildMode:true, tweenargs:args});
}
return(true);
}
function normalizeIndex(indexOrLabel) {
var index;
if (typeof(indexOrLabel) == "string") {
index = -1;
var i = 0;
while (i < length) {
if (this[i].label == String(indexOrLabel)) {
index = i;
break;
}
i++;
}
if (index == -1) {
return(null);
}
} else {
index = Number(indexOrLabel);
}
if ((_global.isNaN(index) == true) || (Math.abs(index) >= length)) {
return(null);
}
if (index < 0) {
index = Math.max(0, length + index);
}
return(index);
}
static function registerInstance(s) {
if (_aInstances == null) {
_aInstances = new Array();
}
return(_aInstances.push(s) - 1);
}
static function removeInstanceAt(id, isDestroyCall) {
if (isDestroyCall != true) {
com.mosesSupposes.fuse.Fuse(_aInstances[id]).destroy();
}
delete _aInstances[id];
}
static var registryKey = "fuse";
static var VERSION = com.mosesSupposes.fuse.FuseKitCommon.VERSION;
static var OUTPUT_LEVEL = 1;
static var AUTOCLEAR = false;
static var AUTOSTOP = true;
var _nState = -1;
var _nDelay = -1;
var _nTimeCache = -1;
static var _aInstances = null;
static var _oBuildMode = null;
}
Symbol 776 MovieClip [__Packages.com.mosesSupposes.fuse.FuseItem] Frame 0
class com.mosesSupposes.fuse.FuseItem
{
static var _ZigoEngine, _aInstances;
var _nItemID, _nFuseID, _initObj, _aProfiles, _oElements, _oTemps, _sImage, _aTweens, _oTwBeingAdded;
function FuseItem (id, o, fuseID) {
_ZigoEngine = _global.com.mosesSupposes.fuse.ZigoEngine;
_nItemID = id;
_nFuseID = fuseID;
_initObj = o;
_aProfiles = [];
_oElements = {aEvents:[]};
_oTemps = {};
if (!(o instanceof Array)) {
o = [o];
}
var fuse = _global.com.mosesSupposes.fuse.Fuse;
_oTemps.outputLevel = ((fuse != undefined) ? (fuse.OUTPUT_LEVEL) : (_global.com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL));
if (o.length == 1) {
var o0 = o[0];
var obj = ((o0.action != undefined) ? (o0.action) : (o0));
if ((obj.__buildMode != true) && (obj.command != undefined)) {
_oElements.command = obj.command;
_oElements.scope = obj.scope;
_oElements.args = obj.args;
_sImage = " Elements:[" + ("command" + ((typeof(obj.command) == "string") ? ((":\"" + obj.command) + "\", ") : ", "));
if (obj.delay != undefined) {
_sImage = _sImage + "delay, ";
_oElements.delay = obj.delay;
}
_sImage = _sImage.slice(0, -2) + "]";
if ((obj.func != undefined) && (_oTemps.outputLevel > 0)) {
com.mosesSupposes.fuse.FuseKitCommon.error("113");
}
return;
}
}
_oTemps.sImgS = "";
_oTemps.sImgE = "";
_oTemps.sImgB = "";
_oTemps.afl = 0;
_oTemps.ael = 0;
_oTemps.twDelayFlag = false;
_oTemps.nActions = o.length;
_oTemps.fuseProps = com.mosesSupposes.fuse.FuseKitCommon._fuseprops();
_oTemps.cbProps = com.mosesSupposes.fuse.FuseKitCommon._cbprops();
_oTemps.sUP = com.mosesSupposes.fuse.FuseKitCommon._underscoreable();
_oTemps.sCT = com.mosesSupposes.fuse.FuseKitCommon._cts();
_oTemps.bTriggerFound = false;
for (var i in o) {
var item = o[i];
if ((item.label != undefined) && (typeof(item.label) == "string")) {
_oElements.label = item.label;
}
var aap;
var bApplied = Boolean(typeof(item.action) == "object");
if (bApplied == true) {
var a = ((item.action instanceof Array) ? (item.action) : ([item.action]));
aap = {delay:item.delay, target:item.target, addTarget:item.addTarget, label:item.label, trigger:item.trigger};
for (var j in a) {
var oPr = parseProfile(a[j], aap);
if (oPr != undefined) {
_aProfiles.unshift(oPr);
}
}
} else {
var a = item;
var oPr = parseProfile(a, aap);
if (oPr != undefined) {
_aProfiles.unshift(oPr);
}
}
}
_sImage = "";
var str = "";
if (_oTemps.afl > 0) {
str = str + ((_oTemps.afl > 1) ? (_oTemps.afl + " callbacks, ") : "callback, ");
}
if ((_oElements.delay != undefined) || (_oTemps.twDelayFlag == true)) {
str = str + "delay, ";
}
if (_oTemps.bTriggerFound == true) {
str = str + "trigger, ";
}
if (_oTemps.ael > 0) {
str = str + ((_oTemps.ael > 1) ? (_oTemps.ael + " events, ") : "event, ");
}
if (str != "") {
_sImage = _sImage + ((" Elements:[" + str.slice(0, -2)) + "]");
}
if (_oTemps.sImgS != "") {
_sImage = _sImage + ((" StartProps:[" + _oTemps.sImgS.slice(0, -2)) + "]");
}
if (_oTemps.sImgE != "") {
_sImage = _sImage + ((" Props:[" + _oTemps.sImgE.slice(0, -2)) + "]");
}
if (_oTemps.sImgB != "") {
_sImage = _sImage + ((" Simple Syntax Props:[" + _oTemps.sImgB.slice(0, -1)) + "]");
}
if (_sImage.slice(-2) == ", ") {
_sImage = _sImage.slice(0, -2);
}
delete _oTemps;
}
static function doTween() {
for (var i in arguments) {
if (typeof(arguments[i]) == "object") {
if (_aInstances == undefined) {
_aInstances = new Array();
}
var o = (new com.mosesSupposes.fuse.FuseItem(_aInstances.length, arguments[i], -1));
return(o.startItem());
}
}
}
function get label() {
return(_oElements.label);
}
function hasTriggerFired() {
return(_bTrigger == true);
}
function getInitObj() {
return(_initObj);
}
function getActiveTargets(targetList) {
if (_aTweens.length <= 0) {
return(targetList);
}
var found = false;
for (var i in _aTweens) {
for (var j in targetList) {
if (targetList[j] == _aTweens[i].targ) {
found = true;
break;
}
}
if (found == false) {
targetList.unshift(_aTweens[i].targ);
}
}
return(targetList);
}
function toString() {
return(String((_sID() + ":") + _sImage));
}
function evalDelay(scope) {
var d = _oElements.delay;
if (d instanceof Function) {
d = d.apply(((_oElements.delayscope != undefined) ? (_oElements.delayscope) : (scope)));
}
if (typeof(d) == "string") {
d = parseClock(String(d));
}
if (_global.isNaN(Number(d)) == true) {
return(0);
}
return(Number(d));
}
function startItem(targs, scope, duration, easing) {
_ZigoEngine = _global.com.mosesSupposes.fuse.ZigoEngine;
var fuse = _global.com.mosesSupposes.fuse.Fuse;
var outputLevel = ((fuse != undefined) ? (fuse.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL));
if (_oElements.command != null) {
var cs = (_oElements.scope || (scope));
var command = ((_oElements.command instanceof Function) ? (String(_oElements.command.apply(cs))) : (String(_oElements.command)));
var args = ((_oElements.args instanceof Function) ? (_oElements.args.apply(cs)) : (_oElements.args));
var valid = com.mosesSupposes.fuse.FuseKitCommon._validateFuseCommand(command, _aProfiles.length > 0, (args != null) && (!((args instanceof Array) && (args.length == 0))), outputLevel, false);
if (valid == true) {
_nPlaying = 1;
if (!(args instanceof Array)) {
args = ((args == null) ? ([]) : ([args]));
}
dispatchRequest(String(command), args);
}
if ((valid == false) || (command == "setStartProps")) {
complete();
}
return(null);
}
if (_aTweens.length > 0) {
stop();
}
_ZigoEngine.addListener(this);
_nPlaying = 2;
var propsAdded = null;
if (_aProfiles.length > 0) {
if (_ZigoEngine == undefined) {
com.mosesSupposes.fuse.FuseKitCommon.error("112");
} else {
propsAdded = doTweens(targs, scope, duration, easing, false, false);
}
}
_nPlaying = 1;
var fa = _oElements.aEvents;
for (var i in fa) {
if (((propsAdded == null) && (_aTweens.length > 0)) && (fa[i].skipLevel == 2)) {
continue;
}
fireEvents(fa[i], scope, outputLevel, targs);
}
if (((propsAdded == null) && (_aTweens.length <= 0)) && (_nPlaying == 1)) {
if (outputLevel == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((_sID() + " no tweens added - item done. [getTimer()=") + getTimer()) + "]");
}
complete();
}
return(propsAdded);
}
function stop() {
var doOnStop = (_nPlaying > -1);
_nPlaying = -1;
if (doOnStop == true) {
onStop();
}
_ZigoEngine.removeListener(this);
}
static function removeInstance(id) {
com.mosesSupposes.fuse.FuseItem(_aInstances[id]).destroy();
delete _aInstances[id];
}
function onStop() {
_bStartSet = false;
for (var i in _aTweens) {
var to = _aTweens[i];
to.targ.removeListener(this);
_ZigoEngine.removeTween(to.targ, to.props);
delete _aTweens[i];
}
delete _aTweens;
_bTrigger = false;
}
function evtSetStart(o) {
if ((_sImage.indexOf("StartProps:") == -1) || (o.curIndex == _nItemID)) {
return(undefined);
}
if (o.all != true) {
var match = false;
for (var i in o.filter) {
if ((Number(o.filter[i]) == _nItemID) || (String(o.filter[i]) == _oElements.label)) {
match = true;
}
}
if (match == false) {
return(undefined);
}
}
_nPlaying = 2;
doTweens(o.targs, o.scope, null, null, true, false);
_nPlaying = -1;
_bStartSet = true;
}
function pause(resume) {
if (_nPlaying == -1) {
return(undefined);
}
_nPlaying = ((resume == true) ? 1 : 0);
for (var i in _aTweens) {
var o = _aTweens[i];
var t = o.targ;
var p = o.props;
if (resume == true) {
var missing = [];
var oldTL = _aTweens.length;
for (var j in p) {
if (_ZigoEngine.isTweenPaused(t, p[j]) == false) {
missing.push(p[j]);
}
}
if (missing.length > 0) {
onTweenEnd({__zigoID__:o.targZID, props:missing, isResume:true});
}
if (_aTweens.length == oldTL) {
t.addListener(this);
_ZigoEngine.unpauseTween(t, o.props);
}
} else {
t.removeListener(this);
_ZigoEngine.pauseTween(t, o.props);
}
}
if ((resume == true) && (_aTweens.length <= 0)) {
complete();
} else if (resume == true) {
_ZigoEngine.addListener(this);
} else {
_ZigoEngine.removeListener(this);
}
}
function fastForward(ignore, targs, scope) {
if (_nPlaying == 1) {
for (var i in _aTweens) {
var o = _aTweens[i];
var t = o.targ;
t.removeListener(this);
_ZigoEngine.ffTween(t, o.props, true);
}
return(undefined);
}
if (_nPlaying == 2) {
com.mosesSupposes.fuse.FuseKitCommon.error("125", _nItemID);
}
_nPlaying = 2;
doTweens(targs, scope, null, null, false, true);
stop();
}
function destroy() {
var doRemove = (_nPlaying > -1);
_nPlaying = -1;
for (var i in _aTweens) {
var o = _aTweens[i];
o.targ.removeListener(this);
if (doRemove == true) {
_ZigoEngine.removeTween(o.targ, o.props);
}
delete _aTweens[i];
}
for (var j in this) {
delete this[j];
}
}
function dispatchRequest(type, args) {
var f = _global.com.mosesSupposes.fuse.Fuse.getInstance(_nFuseID);
if ((!(args instanceof Array)) && (args != null)) {
args = new Array(args);
}
Function(f[type]).apply(f, args);
}
function _sID() {
var str;
if (_nFuseID == -1) {
str = "-One-off tween ";
} else {
str = _global.com.mosesSupposes.fuse.Fuse.getInstance(_nFuseID).getHandle();
}
str = str + (">Item #" + String(_nItemID));
if (_oElements.label != undefined) {
str = str + ((" \"" + _oElements.label) + "\"");
}
return(str);
}
function parseProfile(obj, aap) {
var i;
var j;
var k;
if (obj.__buildMode == true) {
if (obj.command != undefined) {
if (obj.command == "delay") {
_oElements.delay = obj.commandargs;
} else if (obj.command == "trigger") {
if (_oTemps.bTriggerFound == false) {
_oTemps.bTriggerFound = true;
return({trigger:obj.commandargs, _doTimer:true});
}
if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("124", _sID(), obj.commandargs);
}
} else {
_oElements.command = obj.command;
_oElements.args = obj.commandargs;
}
}
if (obj.func != undefined) {
_oTemps.afl++;
_oElements.aEvents.unshift({scope:obj.scope, func:obj.func, args:obj.args});
}
if (obj.tweenargs != undefined) {
_oTemps.sImgB = _oTemps.sImgB + (obj.tweenargs[1].toString() + ",");
return(obj);
}
return(null);
}
var oPr = {delay:((aap.delay != undefined) ? (aap.delay) : (obj.delay)), ease:obj.ease, seconds:obj.seconds, event:obj.event, eventparams:obj.eventparams, skipLevel:((((typeof(obj.skipLevel) == "number") && (obj.skipLevel >= 0)) && (obj.skipLevel <= 2)) ? (obj.skipLevel) : (_ZigoEngine.SKIP_LEVEL)), roundResults:obj.roundResults, oSP:{}, oEP:{}, oAFV:{}};
var trigger = ((aap.trigger != undefined) ? (aap.trigger) : (obj.trigger));
if (trigger != undefined) {
if (_oTemps.bTriggerFound == false) {
oPr.trigger = trigger;
_oTemps.bTriggerFound = true;
} else if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("124", _sID(), trigger);
}
}
if (oPr.delay == undefined) {
oPr.delay = obj.startAt;
}
if (oPr.ease == undefined) {
oPr.ease = obj.easing;
}
if (oPr.seconds == undefined) {
oPr.seconds = ((obj.duration != undefined) ? (obj.duration) : (obj.time));
}
if (aap.target != undefined) {
oPr.target = ((aap.target instanceof Array) ? (aap.target) : ([aap.target]));
} else if (obj.target != undefined) {
oPr.target = ((obj.target instanceof Array) ? (obj.target) : ([obj.target]));
}
if (obj.addTarget != undefined) {
oPr.addTarget = ((obj.addTarget instanceof Array) ? (obj.addTarget) : ([obj.addTarget]));
}
if (aap.addTarget != undefined) {
if (oPr.addTarget == undefined) {
oPr.addTarget = ((aap.addTarget instanceof Array) ? (aap.addTarget) : ([aap.addTarget]));
} else {
oPr.addTarget = ((oPr.addTarget instanceof Array) ? (oPr.addTarget.concat(aap.addTarget)) : (new Array(oPr.addTarget).concat(aap.addTarget)));
}
}
var bTwFlag = false;
for (j in obj) {
var v = obj[j];
if (_oTemps.cbProps.indexOf(("|" + j) + "|") > -1) {
if (j != "skipLevel") {
oPr[j] = v;
}
continue;
}
if (_oTemps.fuseProps.indexOf(("|" + j) + "|") > -1) {
if (((j == "command") && (_oTemps.nActions > 1)) && (_oTemps.outputLevel > 0)) {
com.mosesSupposes.fuse.FuseKitCommon.error("109", String(v), true);
}
continue;
}
if (typeof(v) == "object") {
var copy = ((v instanceof Array) ? ([]) : ({}));
for (k in v) {
copy[k] = v[k];
}
v = copy;
}
var se;
var seCP;
if (j.indexOf("start_") == 0) {
if (((j == "start_controlX") || (j == "start_controlY")) || (j.indexOf("_bezier_") > -1)) {
if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("110", _sID(), j);
}
continue;
}
j = j.slice(6);
se = oPr.oSP;
} else {
se = oPr.oEP;
}
if ((ADD_UNDERSCORES == true) && (_oTemps.sUP.indexOf(("|_" + j) + "|") > -1)) {
j = "_" + j;
}
if (_oTemps.sCT.indexOf(("|" + j) + "|") > -1) {
var addPct = ((j == "_tintPercent") && (se.colorProp.p == "_tint"));
var addTint = ((j == "_tint") && (se.colorProp.p == "_tintPercent"));
if (((se.colorProp == undefined) || (addPct == true)) || (addTint == true)) {
if (addPct == true) {
se.colorProp = {p:"_tint", v:{tint:se.colorProp.v, percent:v}};
} else if (addTint == true) {
se.colorProp = {p:"_tint", v:{tint:v, percent:se.colorProp.v}};
} else {
se.colorProp = {p:j, v:v};
}
bTwFlag = true;
} else if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), j);
}
} else if (v != null) {
se[j] = v;
bTwFlag = true;
}
}
if ((bTwFlag == false) && ((oPr.trigger != undefined) || (((oPr.delay != undefined) || (oPr.seconds != undefined)) && (((oPr.startfunc != undefined) || (oPr.updfunc != undefined)) || ((oPr.func != undefined) && (_oTemps.nActions > 1)))))) {
if (_ZigoEngine == undefined) {
com.mosesSupposes.fuse.FuseKitCommon.error("116");
} else {
if (oPr.func != undefined) {
_oTemps.afl++;
}
if (oPr.event != undefined) {
_oTemps.ael++;
}
oPr._doTimer = true;
if (oPr.delay != undefined) {
_oTemps.twDelayFlag = true;
}
return(oPr);
}
}
if (bTwFlag == true) {
var bEC = (oPr.oEP.colorProp != undefined);
var l = 0;
while (l < 2) {
var se = ((l == 0) ? (oPr.oSP) : (oPr.oEP));
var str = ((l == 0) ? (_oTemps.sImgS) : (_oTemps.sImgE));
var sCP = se.colorProp.p;
if (sCP != undefined) {
se[sCP] = se.colorProp.v;
delete se.colorProp;
}
if (((se._xscale != undefined) || (se._scale != undefined)) && ((se._width != undefined) || (se._size != undefined))) {
var discard = ((se._xscale != undefined) ? "_xscale" : "_scale");
delete se[discard];
if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), discard);
}
}
if (((se._yscale != undefined) || (se._scale != undefined)) && ((se._height != undefined) || (se._size != undefined))) {
var discard = ((se._yscale != undefined) ? "_yscale" : "_scale");
delete se[discard];
if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), discard);
}
}
if ((se._fade != undefined) && (se._alpha != undefined)) {
delete se._alpha;
if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), "_alpha");
}
}
for (j in se) {
if (str.indexOf(j + ", ") == -1) {
str = str + (j + ", ");
}
if (se == oPr.oSP) {
if ((oPr.oEP[j] == undefined) && (!((j == sCP) && (bEC == true)))) {
oPr.oAFV[j] = true;
oPr.oEP[j] = [];
}
}
}
((l == 0) ? ((_oTemps.sImgS = str)) : ((_oTemps.sImgE = str)));
l++;
}
return(oPr);
}
if ((oPr.delay != undefined) && (_oTemps.nActions == 1)) {
_oElements.delay = oPr.delay;
_oElements.delayscope = oPr.scope;
}
if (oPr.event != undefined) {
_oTemps.ael++;
_oElements.aEvents.unshift({scope:oPr.scope, e:oPr.event, ep:oPr.eventparams, skipLevel:oPr.skipLevel});
}
var oldL = _oElements.aEvents.length;
if (oPr.func != undefined) {
_oElements.aEvents.push({func:oPr.func, scope:oPr.scope, args:oPr.args, skipLevel:oPr.skipLevel});
}
_oTemps.afl = _oTemps.afl + (_oElements.aEvents.length - oldL);
delete oPr;
return(undefined);
}
function doTweens(targs, defaultScope, defaultSeconds, defaultEase, setStart, isFF) {
if (_aTweens == null) {
_aTweens = [];
}
var tba = ((_oTwBeingAdded = {}));
var ZE = _ZigoEngine;
var addTween = function (target, props, endvals, seconds, ease, delay, callback) {
if (target.__zigoID__ == null) {
ZE.initializeTargets(target);
}
tba[target.__zigoID__] = true;
var sProps = ZE.doTween.apply(ZE, arguments);
tba[target.__zigoID__] = false;
return(((sProps == null) ? ([]) : (sProps.split(","))));
};
var fuse = _global.com.mosesSupposes.fuse.Fuse;
var outputLevel = ((fuse != undefined) ? (fuse.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL));
var propsAdded = "";
var nTgErrors = 0;
var i;
var j;
var k;
var doSetStarts = ((_bStartSet != true) && ((setStart == true) || (_sImage.indexOf("StartProps:") > -1)));
var h = 0;
while (h < _aProfiles.length) {
if (_nPlaying < 2) {
return(null);
}
var pr = _aProfiles[h];
if (pr.__buildMode == true) {
var twArgs = _aProfiles[h].tweenargs;
var prevPropsAdded = propsAdded;
if ((twArgs[6].cycles === 0) || (twArgs[6].cycles.toUpperCase() == "LOOP")) {
delete twArgs[6].cycles;
if (outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("117", _sID());
}
}
var cb = com.mosesSupposes.fuse.FuseKitCommon.parseCallback(twArgs[6]);
if (!(twArgs[0] instanceof Array)) {
twArgs[0] = [twArgs[0]];
}
for (i in twArgs[0]) {
if (isFF == true) {
addTween(twArgs[0][i], twArgs[1], twArgs[2], 0, null, 0, {skipLevel:0});
if (outputLevel == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((("\n-" + _sID()) + " FF(simple syntax)\ttargets:[") + twArgs[0][i]) + "]\tprops:[") + twArgs[1]) + "]");
}
} else {
var aProps = addTween(twArgs[0][i], twArgs[1], twArgs[2], twArgs[3], twArgs[4], twArgs[5], cb);
if (aProps.length > 0) {
_aTweens.push({targ:twArgs[0][i], props:aProps, targZID:twArgs[0][i].__zigoID__});
twArgs[0][i].addListener(this);
for (j in aProps) {
if (propsAdded.indexOf(aProps[j] + ",") == -1) {
propsAdded = propsAdded + (aProps[j] + ",");
}
}
}
if (outputLevel == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((("\n-" + _sID()) + " TWEEN(simple syntax)\ttargets:[") + twArgs[0][i]) + "]\tprops tweened:[") + aProps.toString()) + "]");
}
}
}
if ((isFF == false) && ((prevPropsAdded == propsAdded) || (propsAdded == ""))) {
nTgErrors++;
}
} else {
var scope = defaultScope;
var targets = [];
var aBase = ((pr.target == undefined) ? (targs) : (pr.target));
var aTemp = [];
var bTgError = false;
for (i in aBase) {
var v = aBase[i];
aTemp = aTemp.concat(((v instanceof Function) ? (v.apply(scope)) : (v)));
}
for (i in pr.addTarget) {
var v = pr.addTarget[i];
aTemp = aTemp.concat(((v instanceof Function) ? (v.apply(scope)) : (v)));
}
for (i in aTemp) {
var v = aTemp[i];
if (v != null) {
var exists = false;
for (j in targets) {
if (targets[j] == v) {
exists = true;
break;
}
}
if (exists == false) {
targets.unshift(v);
}
} else {
bTgError = true;
}
}
var doTimer = (((pr._doTimer == true) && (targets.length == 0)) && (isFF == false));
if ((bTgError == true) || ((targets.length == 0) && (pr._doTimer != true))) {
nTgErrors++;
}
if (doSetStarts == true) {
for (i in targets) {
if (_nPlaying < 2) {
return(null);
}
var targ = targets[i];
var aSP = [];
var aSV = [];
if (setStart == true) {
for (var q in pr.oEP) {
_global.com.mosesSupposes.fuse.FuseFMP.getFilterProp(targ, q, true);
}
}
for (var p in pr.oSP) {
var v = pr.oSP[p];
if (v instanceof Function) {
v = v.apply(scope);
}
if ((v === true) || (v === false)) {
targ[p] = v;
if (pr.oAFV[p] == true) {
for (k in pr.oEP[p]) {
if (pr.oEP[p][k].targ == targ) {
pr.oEP[p].splice(Number(k), 1);
}
}
pr.oEP[p].push({targ:targ, val:"IGNORE", _isAF:true});
}
continue;
}
if (((pr.oAFV[p] == true) && (!((p == "_colorReset") && (v == 100)))) && (!((p == "_tintPercent") && (v == 0)))) {
var afv;
if ((p == "_tint") || (p == "_colorTransform")) {
afv = _ZigoEngine.getColorTransObj();
} else if ((String(com.mosesSupposes.fuse.FuseKitCommon._resetTo100()).indexOf(("|" + p) + "|") > -1) || ((p == "_fade") && (v < 50))) {
afv = 100;
} else if ((String(com.mosesSupposes.fuse.FuseKitCommon._resetTo0()).indexOf(("|" + p) + "|") > -1) || (p == "_fade")) {
afv = 0;
} else {
var fmpVal = _global.com.mosesSupposes.fuse.FuseFMP.getFilterProp(targ, p, true);
if (fmpVal != null) {
afv = fmpVal;
} else {
afv = ((_global.isNaN(targ[p]) == false) ? targ[p] : 0);
}
}
for (k in pr.oEP[p]) {
if (pr.oEP[p][k].targ == targ) {
pr.oEP[p].splice(Number(k), 1);
}
}
pr.oEP[p].push({targ:targ, val:afv, _isAF:true});
}
if (typeof(v) == "object") {
var copy = ((v instanceof Array) ? ([]) : ({}));
for (k in v) {
copy[k] = ((v[k] instanceof Function) ? Function(v[k]).apply(scope) : v[k]);
}
v = copy;
}
aSP.push(p);
aSV.push(v);
}
if (aSV.length > 0) {
if (outputLevel == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output((((_sID() + " ") + targ) + " SET STARTS: ") + [("[" + aSP) + "]", ("[" + aSV) + "]"]);
}
addTween(targ, aSP, aSV, 0);
}
}
}
if (setStart == true) {
} else {
var event;
var skipLevel;
var oSimpleCB;
var oCB;
var triggerTrue;
var triggerTime;
var cbstr = "";
if (isFF == false) {
if (pr.scope != undefined) {
scope = pr.scope;
}
skipLevel = ((pr.skipLevel instanceof Function) ? (pr.skipLevel.apply(scope)) : (pr.skipLevel));
var extra1 = ((pr.extra1 instanceof Function) ? (pr.extra1.apply(scope)) : (pr.extra1));
var extra2 = ((pr.extra2 instanceof Function) ? (pr.extra2.apply(scope)) : (pr.extra2));
var roundResults = ((pr.roundResults instanceof Function) ? (pr.roundResults.apply(scope)) : (pr.roundResults));
oSimpleCB = {skipLevel:skipLevel, extra1:extra1, extra2:extra2, roundResults:roundResults};
oCB = {skipLevel:skipLevel, extra1:extra1, extra2:extra2, roundResults:roundResults};
if (pr.cycles != undefined) {
var cycles = ((pr.cycles instanceof Function) ? (pr.cycles.apply(scope)) : (pr.cycles));
if (((Number(cycles) == 0) || (String(cycles).toUpperCase() == "LOOP")) && (fuse != undefined)) {
delete pr.cycles;
if (outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("117", _sID());
}
} else {
oSimpleCB.cycles = (oCB.cycles = cycles);
}
}
if (((pr.func != undefined) || (pr.startfunc != undefined)) || (pr.updfunc != undefined)) {
for (i in pr) {
if (i.indexOf("func") > -1) {
oCB[i] = pr[i];
} else if (((i == "startscope") || (i == "updscope")) || (i.indexOf("args") > -1)) {
oCB[i] = pr[i];
}
}
if (scope != undefined) {
if ((oCB.func != undefined) && (oCB.scope == undefined)) {
oCB.scope = scope;
}
if ((oCB.updfunc != undefined) && (oCB.updscope == undefined)) {
oCB.updscope = scope;
}
if ((oCB.startfunc != undefined) && (oCB.startscope == undefined)) {
oCB.startscope = scope;
}
}
}
for (j in oCB) {
cbstr = cbstr + (((j + ":") + oCB[j]) + "|");
}
if (pr.event != undefined) {
event = {scope:pr.scope, e:pr.event, ep:pr.eventparams, skipLevel:skipLevel};
}
triggerTrue = pr.trigger === true;
triggerTime = undefined;
if ((triggerTrue == false) && (pr.trigger != undefined)) {
triggerTime = ((pr.trigger instanceof Function) ? (pr.trigger.apply(scope)) : (pr.trigger));
if (typeof(triggerTime) == "string") {
triggerTime = ((String(triggerTime).charAt(0) == "-") ? (-parseClock(String(triggerTime).slice(1))) : (parseClock(String(triggerTime))));
}
if (_global.isNaN(triggerTime) == true) {
triggerTime = undefined;
}
}
}
var delay;
var seconds;
var ease;
var booleans;
var tweenSuccess = false;
var targsOrProxy = ((doTimer == false) ? (targets) : ([0]));
var nBezError = -1;
for (i in targsOrProxy) {
if (_nPlaying < 2) {
return(null);
}
if (isFF == false) {
if (pr.ease != null) {
ease = pr.ease;
if (ease instanceof Function) {
var ef = Function(ease);
if (typeof(ef(1, 1, 1, 1)) != "number") {
ease = ef.apply(scope);
}
}
}
if (ease == null) {
ease = defaultEase;
}
seconds = ((pr.seconds instanceof Function) ? (pr.seconds.apply(scope)) : (pr.seconds));
if (seconds != undefined) {
if (typeof(seconds) == "string") {
seconds = parseClock(String(seconds));
}
if (_global.isNaN(seconds) == true) {
seconds = _ZigoEngine.DURATION || 0;
}
}
if (seconds == null) {
seconds = defaultSeconds;
}
delay = ((pr.delay instanceof Function) ? (pr.delay.apply(scope)) : (pr.delay));
if (typeof(delay) == "string") {
delay = parseClock(String(delay));
}
if ((delay == null) || (_global.isNaN(delay) == true)) {
delay = 0;
}
if (doTimer == true) {
continue;
}
}
var targ = targsOrProxy[i];
var aEP = [];
var aEV = [];
var numBools = 0;
var bezIndex = -2;
for (var p in pr.oEP) {
var v = pr.oEP[p];
if (v instanceof Function) {
v = v.apply(scope);
}
if ((v === true) || (v === false)) {
if (booleans == undefined) {
booleans = {};
}
booleans[p] = v;
numBools++;
continue;
}
if (typeof(v) == "object") {
if (v[0]._isAF == true) {
for (k in v) {
if (v[k].targ == targ) {
v = v[k].val;
break;
}
}
} else {
var copy = ((v instanceof Array) ? [] : {});
for (k in v) {
copy[k] = ((v[k] instanceof Function) ? Function(v[k]).apply(scope) : v[k]);
}
v = copy;
}
}
if (v != "IGNORE") {
if (p == "_bezier_") {
bezIndex = aEP.length;
} else if ((bezIndex == -2) && ((p == "controlX") || (p == "controlY"))) {
bezIndex = -1;
}
aEP.push(p);
aEV.push(v);
}
}
if (aEV.length > 0) {
if (bezIndex > -2) {
if (bezIndex == -1) {
bezIndex = aEP.length;
}
aEP[bezIndex] = "_bezier_";
if (typeof(aEV[bezIndex]) != "object") {
aEV[bezIndex] = {};
}
var bezObj = aEV[bezIndex];
for (j in aEP) {
if ("|x|y|_x|_y|controlX|controlY|".indexOf(("|" + aEP[j]) + "|") > -1) {
if (aEP[j].charAt(0) == "_") {
aEP[j] = aEP[j].slice(-1);
}
if (typeof(bezObj[aEP[j]]) == "number") {
if ((outputLevel > 0) && ((nBezError == -1) || (nBezError == i))) {
com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), aEP[j]);
nBezError = Number(i);
}
} else {
bezObj[aEP[j]] = aEV[j];
}
aEP.splice(Number(j), 1);
aEV.splice(Number(j), 1);
}
}
}
if (isFF == true) {
if (outputLevel == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((("\n-" + _sID()) + " FF\ttargets:[") + targ) + "]\tprops:[") + aEP.toString()) + "]");
}
addTween(targ, aEP, aEV, 0, null, 0, {skipLevel:0});
continue;
}
var listener = {caught:false, onTweenEnd:function (evto) {
this.caught = true;
}};
targ.addListener(listener);
var aProps = addTween(targ, aEP, aEV, seconds, ease, delay, oCB);
targ.removeListener(listener);
if (aProps.length == 0) {
if (listener.caught == true) {
oCB = oSimpleCB;
}
} else {
if (aProps.length > 0) {
var to = {targ:targ, props:aProps, bools:booleans, targZID:targ.__zigoID__};
if (tweenSuccess == false) {
oCB = oSimpleCB;
to.event = event;
event = (booleans = undefined);
to.trigger = triggerTrue;
}
_aTweens.push(to);
targ.addListener(this);
tweenSuccess = true;
for (j in aProps) {
if (propsAdded.indexOf(aProps[j] + ",") == -1) {
propsAdded = propsAdded + (aProps[j] + ",");
}
}
}
if (outputLevel == 3) {
var epstr = aEP.toString();
if (aProps.length > aEP.length) {
epstr = epstr + (("\n\t[NO-CHANGE PROPS DISCARDED (disregard this for double props like _scale). KEPT:" + aProps.toString()) + "]");
}
var evstr = "";
for (j in aEV) {
evstr = (((typeof(aEV[j]) == "string") ? (("\"" + aEV[j]) + "\"") : aEV[j]) + ", ") + evstr;
}
com.mosesSupposes.fuse.FuseKitCommon.output((("\n-" + _sID()) + " TWEEN:\n") + [("\t[getTimer():" + getTimer()) + "] ", "targ: " + targ, "props: " + epstr, "endVals: " + evstr, "time: " + ((seconds == undefined) ? _ZigoEngine.DURATION : seconds), "easing: " + ((ease == undefined) ? _ZigoEngine.EASING : ease), "delay: " + ((delay == undefined) ? 0 : delay), "callbacks: " + ((cbstr == "") ? "(none)" : cbstr)].join("\n\t"));
}
}
listener = undefined;
}
}
if ((_global.isNaN(seconds) == true) || (pr.seconds == null)) {
seconds = 0;
}
var time = (delay + seconds);
if (triggerTime != undefined) {
if (triggerTime < 0) {
triggerTime = triggerTime + time;
}
if ((triggerTime > 0) && ((time == 0) || (triggerTime < time))) {
if (time == 0) {
if (outputLevel == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((((((_sID() + " graft a timed trigger (") + triggerTime) + " sec). [has callback:") + (oCB != oSimpleCB)) + ", has event:") + (event != undefined)) + ", has booleans:") + (booleans != undefined)) + "]");
}
doTimerTween(null, triggerTime, 0, true, booleans, oCB, event);
tweenSuccess = true;
} else {
if (outputLevel == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((_sID() + " graft a timed trigger (") + triggerTime) + " sec).");
}
doTimerTween(null, triggerTime, 0, true);
}
} else if (outputLevel == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((_sID() + " timed trigger discarded: out of range. [") + triggerTime) + "/") + time) + "]");
}
}
if ((tweenSuccess == false) && (((oCB != oSimpleCB) || (event != undefined)) || (booleans != undefined))) {
if ((skipLevel == 0) && (time > 0)) {
if (outputLevel == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((((((_sID() + " no props tweened - graft a delay (") + time) + " sec). [has callback:") + (oCB != oSimpleCB)) + ", has event:") + (event != undefined)) + ", has booleans:") + (booleans != undefined)) + "]");
}
doTimerTween(targets, seconds, delay, triggerTrue, booleans, oCB, event);
} else {
if (outputLevel == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((((_sID() + " no props tweened, executing nontween items. [has callback:") + (oCB != oSimpleCB)) + ", has event:") + (event != undefined)) + ", has booleans:") + (booleans != undefined)) + "]");
}
for (i in targets) {
for (j in booleans) {
targets[i][j] = booleans[j];
}
}
if (skipLevel < 2) {
if (oCB != undefined) {
fireEvents(oCB, scope, outputLevel, targets);
}
if (event != undefined) {
fireEvents(event, scope, outputLevel);
}
}
}
}
}
}
h++;
}
if ((nTgErrors > 0) && (outputLevel > 0)) {
if ((nTgErrors == _aProfiles.length) && (propsAdded == "")) {
com.mosesSupposes.fuse.FuseKitCommon.error("118", _sID(), setStart);
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("119", _sID(), nTgErrors, doSetStarts);
}
}
tba = undefined;
_oTwBeingAdded = undefined;
return(((propsAdded == "") ? null : (propsAdded.slice(0, -1))));
}
function doTimerTween(actualTargets, duration, delay, trigger, booleans, callback, event) {
var proxy = {__TweenedDelay:0};
_ZigoEngine.initializeTargets(proxy);
_aTweens.push({targ:proxy, props:["__TweenedDelay"], trigger:trigger, bools:booleans, event:event, actualTargs:actualTargets, targZID:proxy.__zigoID__});
var canceled = (_ZigoEngine.doTween(proxy, "__TweenedDelay", 1, duration, null, delay, callback) == null);
if (canceled == true) {
onTweenEnd({target:proxy, props:["__TweenedDelay"]});
} else {
proxy.addListener(this);
}
}
function onTweenEnd(o, doAutoStop) {
if (_nPlaying < 1) {
return(undefined);
}
var fuse = _global.com.mosesSupposes.fuse.Fuse;
var outputLevel = ((fuse != undefined) ? (fuse.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL));
var id = ((!(o.__zigoID__ === undefined)) ? (o.__zigoID__) : (o.target.__zigoID__));
for (var i in _aTweens) {
var to = _aTweens[i];
if (to.targZID == id) {
for (var j in o.props) {
var pa = to.props;
for (var k in pa) {
var p = pa[k];
if (p == o.props[j]) {
pa.splice(Number(k), 1);
if (doAutoStop == true) {
var inst = fuse.getInstance(_nFuseID);
var interruptedByLocalFuse = ((((_bTrigger == true) && (o.during == "add")) && (inst[inst.currentIndex]._oTwBeingAdded[id] === true)) && (inst.state == "playing"));
if (interruptedByLocalFuse == false) {
to.targ.removeListener(this);
for (i in _aTweens) {
if (_aTweens[i].targZID == id) {
for (j in o.props) {
for (k in _aTweens[i].props) {
if (_aTweens[i].props[k] == o.props[j]) {
_aTweens[i].props.splice(Number(k), 1);
}
}
}
if (_aTweens[i].props.length == 0) {
_aTweens.splice(Number(i), 1);
}
}
}
if (outputLevel == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(_sID() + " triggering auto-stop due to interruption");
}
if ((inst.autoClear == true) || ((!(inst.autoClear === false)) && (fuse.AUTOCLEAR == true))) {
dispatchRequest("destroy");
} else {
dispatchRequest("stop");
}
return(undefined);
}
if (outputLevel == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((("note -" + _sID()) + " interrupted one of its own properties \"") + p) + "\". (Autostop not triggered.)");
}
}
if ((_nPlaying == 2) && (p != "__TweenedDelay")) {
if (outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("120", _sID(), p);
}
}
if (pa.length == 0) {
if (to.event != undefined) {
fireEvents(to.event, null, outputLevel);
}
if (p == "__TweenedDelay") {
_ZigoEngine.deinitializeTargets(to.targ);
delete to.targ;
for (var m in to.bools) {
for (var t in to.actualTargs) {
to.actualTargs[t][m] = to.bools[m];
}
}
} else {
var found = false;
for (var m in to.bools) {
to.targ[m] = to.bools[m];
}
for (var l in _aTweens) {
if ((l != i) && (_aTweens[l].targ == to.targ)) {
found = true;
}
}
if (found == false) {
to.targ.removeListener(this);
}
}
if (to.trigger == true) {
if (((_bTrigger == false) && (o.isResume != true)) && (_aTweens.length > 1)) {
_bTrigger = true;
if (outputLevel == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(_sID() + " trigger fired!");
}
var breakChainInt;
breakChainInt = setInterval(function (fi) {
clearInterval(breakChainInt);
fi.dispatchRequest("advance", [false, false, false]);
}, 1, this);
}
}
_aTweens.splice(Number(i), 1);
}
}
}
}
}
}
if (((_aTweens.length == 0) && (_nPlaying == 1)) && (o.isResume != true)) {
complete(outputLevel);
}
}
function onTweenInterrupt(o) {
if (_nPlaying == -1) {
return(undefined);
}
var fuse = _global.com.mosesSupposes.fuse.Fuse;
var parentfuse = fuse.getInstance(_nFuseID);
var autoStop = ((parentfuse.autoStop == true) || ((!(parentfuse.autoStop === false)) && (fuse.AUTOSTOP == true)));
var id = o.__zigoID__;
var outputLevel = ((fuse != undefined) ? (fuse.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL));
if ((autoStop == true) || ((!(autoStop === false)) && (fuse.AUTOSTOP == true))) {
onTweenEnd(o, true);
return(undefined);
}
if (typeof(o.target) != "string") {
onTweenEnd(o);
return(undefined);
}
for (var i in _aTweens) {
if (_aTweens[i].targZID == id) {
_aTweens.splice(Number(i), 1);
}
}
if ((_aTweens.length == 0) && (_nPlaying == 1)) {
complete(outputLevel);
}
}
function complete(outputLevel) {
if (outputLevel == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(_sID() + " complete.");
}
var breakChainInt;
breakChainInt = setInterval(function (fi, trigger) {
clearInterval(breakChainInt);
var itemstate = fi._nPlaying;
if (trigger != true) {
if (itemstate < 1) {
return(undefined);
}
}
fi.stop();
if (itemstate > 0) {
fi.dispatchRequest("advance", [trigger, false, false]);
}
}, 1, this, _bTrigger);
}
function parseClock(str) {
if (str.indexOf(":") != 2) {
com.mosesSupposes.fuse.FuseKitCommon.error("121");
return(_ZigoEngine.DURATION || 0);
}
var time = 0;
var spl = str.split(":");
spl.reverse();
var t;
if ((String(spl[0]).length == 2) && (_global.isNaN((t = Math.abs(Number(spl[0])))) == false)) {
time = time + (t / 100);
}
if (((String(spl[1]).length == 2) && (_global.isNaN((t = Math.abs(Number(spl[1])))) == false)) && (t < 60)) {
time = time + t;
}
if (((String(spl[2]).length == 2) && (_global.isNaN((t = Math.abs(Number(spl[2])))) == false)) && (t < 60)) {
time = time + (t * 60);
}
if (((String(spl[3]).length == 2) && (_global.isNaN((t = Math.abs(Number(spl[3])))) == false)) && (t < 24)) {
time = time + (t * 3600);
}
return(time);
}
function fireEvents(o, scope, outputLevel, targets) {
if (o.scope == undefined) {
o.scope = scope;
}
if (o.e == undefined) {
var callback = com.mosesSupposes.fuse.FuseKitCommon.parseCallback(o, targets, outputLevel, false);
if (callback.start.f != null) {
callback.start.f.apply(callback.start.s, callback.start.a);
}
if (callback.upd.f != null) {
callback.upd.f.apply(callback.upd.s, callback.upd.a);
}
if (callback.end.f != null) {
callback.end.f.apply(callback.end.s, callback.end.a);
}
} else {
var type = ((o.e instanceof Function) ? (String(o.e.apply(scope))) : (String(o.e)));
if ((type != "undefined") && (type.length > 0)) {
if (String(com.mosesSupposes.fuse.FuseKitCommon._fuseEvents()).indexOf(("|" + type) + "|") > -1) {
if (outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("122", type);
}
} else {
var fuse = _global.com.mosesSupposes.fuse.Fuse.getInstance(_nFuseID);
var evObj = ((o.ep instanceof Function) ? (o.ep.apply(scope)) : (o.ep));
if ((evObj == null) || (typeof(evObj) != "object")) {
evObj = {};
}
evObj.target = fuse;
evObj.type = type;
fuse.dispatchEvent.call(fuse, evObj);
}
} else if (outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("123", _sID());
}
}
}
static var registryKey = "fuseItem";
static var ADD_UNDERSCORES = true;
var _nPlaying = -1;
var _bStartSet = false;
var _bTrigger = false;
}
Symbol 777 MovieClip [__Packages.com.data.Strings] Frame 0
class com.data.Strings
{
static var strings, idMappedXML;
function Strings () {
}
static function init() {
var ENG = "<Strings><String id=\"SAVE DIR\" text=\"Players\"/><String id=\"GAME TITLE\" text=\"FARM MANIA\"/><String id=\"ARCADE\" text=\"ARCADE\"/><String id=\"CASUAL\" text=\"CASUAL\"/><String id=\"OPTIONS\" text=\"OPTIONS\"/><String id=\"HELP\" text=\"HELP\"/><String id=\"RECORDS\" text=\"SCORES\"/><String id=\"EXIT\" text=\"EXIT\"/><String id=\"RESUME\" \t\ttext=\"RESUME\"/><String id=\"ABORT\" \ttext=\"ABORT\"/><String id=\"MAP\" \t\ttext=\"MAP\"/><String id=\"MORE GAMES\" text=\"MORE GAMES\"/><String id=\"GET FULL\" \ttext=\"GET FULL\"/><String id=\"PLAY\" text=\"PLAY\"/><String id=\"NEXT\" text=\"NEXT\"/><String id=\"SHOP\" text=\"SHOP\"/><String id=\"BUY\" text=\"BUY\"/><String id=\"SOUND\" text=\"SOUND\"/><String id=\"MUSIC\" text=\"MUSIC\"/><String id=\"FULL SCREEN\" text=\"FULL SCREEN\"/><String id=\"OK\" text=\"OK\"/><String id=\"CANCEL\" text=\"CANCEL\"/><String id=\"YES\" text=\"YES\"/><String id=\"NO\" text=\"NO\"/><String id=\"CREATE\" text=\"CREATE\"/><String id=\"DELETE\" text=\"DELETE\"/><String id=\"WELCOME\" text=\"Hello,\"/><String id=\"CHANGE PROFILE\" text=\"Click to change player\"/><String id=\"EXIT CONFIRM\" text=\"SURE YOU WANT TO EXIT?\"/><String id=\"ABORT CONFIRM\" text=\"SURE YOU WANT TO ABORT GAME?\"/><String id=\"DELETE CONFIRM\" text=\"SURE YOU WANT TO DELETE THIS PLAYER?\"/><String id=\"ARCADE text\" text=\"GAME WITH TIMER\"/><String id=\"CASUAL text\" text=\"GAME WITHOUT TIMER\"/><String id=\"MONEY\" text=\"MONEY\"/><String id=\"EXTRA MONEY\" text=\"EXTRA MONEY\"/><String id=\"GOALS\" text=\"GOALS\"/><String id=\"GOAL\" text=\"GOAL\"/><String id=\"VEGETABLES\" text=\"SEEDS\"/><String id=\"LEVEL MENU\" text=\"MENU\"/><String id=\"MENU MAP\" \t\t text=\"MENU\"/><String id=\"PARAMS\" text=\"PROPERTIES\"/><String id=\"SPEED\" text=\"WORKERS SPEED\"/><String id=\"MOOD\" text=\"HEALTH\"/><String id=\"EQUIPMENT\" text=\"EQUIPMENT\"/><String id=\"STATISTICS\" text=\"STATISTICS\"/><String id=\"LEVEL MONEY\" text=\"MONEY EARNED\"/><String id=\"GAME MONEY\" text=\"TOTAL MONEY\"/><String id=\"TIME\" text=\"TIME\"/><String id=\"TIME END\" text=\"TIME LEFT\"/><String id=\"ITEMS SOLD\" text=\"PRODUCTS SOLD\"/><String id=\"BEST COMBO\" text=\"BEST COMBO\"/><String id=\"15 SECONDS\" text=\"YOU'VE LOST 15 SECONDS!\"/><String id=\"COMBO\" text=\"COMBO\"/><String id=\"SUPER COMBO\" text=\"SUPER COMBO\"/><String id=\"GREATEST COMBO\" text=\"EXCELLENT COMBO\"/><String id=\"INCREDIBLE COMBO\" text=\"INCREDIBLE COMBO\"/><String id=\"UNBELIEVABLE COMBO\" text=\"UNBELIEVEBLE COMBO\"/><String id=\"READY\" text=\"READY?\"/><String id=\"GO\" text=\"GO!\"/><String id=\"TIME'S UP\" text=\"TIME IS UP!\"/><String id=\"LEVEL COMPLETE\" text=\"LEVEL COMPLETE\"/><String id=\"EXPERT\" text=\"GOOD JOB!\"/><String id=\"END OF DAY\" text=\"END OF THE DAY\"/><String id=\"HINT 1_10\" text=\"Choose the seed to plant.\"/><String id=\"HINT 1_20\" text=\"Now we learn how to plant vegetables. Click a bed to plant a pumpkin.\"/><String id=\"HINT 1_30\" text=\"While the pumpkin is growing, let's get some water. Click on the well.\"/><String id=\"HINT 1_40\" text=\"Now click on the dip-bucket to get water for watering.\"/><String id=\"HINT 1_50\" text=\"It's time to water the pumpkin. Click on it.\"/><String id=\"HINT 1_60\" text=\"Now you need to weed the pumpkin patch. Just click on it.\"/><String id=\"HINT 1_70\" text=\"A pumpkin is ripe now. Take it to bicycle basket.\"/><String id=\"HINT 1_80\" text=\"A pumpkin is ripe now. Take it to bicycle basket.\"/><String id=\"HINT 1_90\" text=\"Now we need to take the produce to a market place. Click on the Delivery button.\"/><String id=\"HINT 1_100\" text=\"A Boy sold the pumpkin. Click on the coins to get your earnings.\"/><String id=\"HINT 1_110\" text=\"Now try to grow another pumpkin yourself.\"/><String id=\"HINT 2_10\" text=\"You need to reach all the goals listed below the screen to complete the level.\"/><String id=\"HINT 2_20\" text=\"A pig is a trash bin. Click the pig to clear Anna's hands from useless things.\"/><String id=\"HINT 2_30\" text=\"Pointer shows how much time's left from the beginning of the level. All goals should be reached till the pointer gets to the red point.\" size=\"-1\" x=\"3\" y=\"0\"/><String id=\"HINT 3_10\" text=\"You should feed and water a gosling to rear a big goose.\"/><String id=\"HINT 3_20\" text=\"Start with clicking a well. Grandpa will take some water.\"/><String id=\"HINT 3_25\" text=\"Click a bucket.\"/><String id=\"HINT 3_30\" text=\"Now click gosling's trough. Anna will take some water to the gosling.\"/><String id=\"HINT 3_40\" text=\"Click ear ground to feed the gosling.\"/><String id=\"HINT 3_50\" text=\"Now click a bag with seed that Grandpa has prepared.\"/><String id=\"HINT 3_60\" text=\"Now take the bag to the gosling's feeding pen.\"/><String id=\"HINT 3_70\" text=\"The gosling will eat and drink several times and become a big goose.\"/><String id=\"HINT 4_10\" text=\"Full-fed goose will lay eggs. Click the eggs to sell them.\"/><String id=\"HINT 4_20\" text=\"Now click bicycle rack. A boy will take the eggs to the market and sell them.\"/><String id=\"HINT 4_30\" text=\"Your garden-beds and bushes are eaten by hares. Click a hare one time to scare it away.\"/><String id=\"HINT 4_40\" text=\"Click a hare several times to hiss it away.\"/><String id=\"HINT 5_10\" text=\"Try to find as many sheep as possible. If you see a sheep just click it.\"/><String id=\"HINT 5_20\" text=\"If you click to no purpose without finding the animals you will lose 15 seconds.\"/><String id=\"HINT 6_10\" text=\"You're run out of seed. Click a sign with price to plant more seed. You need to have enough money.\"/><String id=\"HINT 6_20\" text=\"Be careful! You have a time limit for that.\"/><String id=\"HINT 7_10\" text=\"Feed and water a lamb and it will become a sheep.\"/><String id=\"HINT 7_20\" text=\"Start with taking some water from a well.\"/><String id=\"HINT 7_30\" text=\"Then take the water to lamb's trough.\"/><String id=\"HINT 7_40\" text=\"Click a clever ground to feed the lamb.\"/><String id=\"HINT 7_50\" text=\"Then click a bag with clever that Grandpa has prepared.\"/><String id=\"HINT 7_60\" text=\"Now click lamb's feeding pen and Anna will take there some food.\"/><String id=\"HINT 7_70\" text=\"After the lamb drinks and eats several times it will become a sheep that gives wool.\"/><String id=\"HINT 8_10\" text=\"After the sheep eats there will be a lot of wool on it. Click the sheep to cut the wool off.\"/><String id=\"HINT 8_20\" text=\"Take the wool to the boy to sell it. Click bicycle rack for it.\"/><String id=\"HINT 11_10\" text=\"Crow damages your crops. Just click it to scare away.\"/><String id=\"HINT 13_10\" text=\"You need to prepare a seed to bake some bread.\"/><String id=\"HINT 13_20\" text=\"Now you need to take a bag with seed to the mill.\"/><String id=\"HINT 13_30\" text=\"Grandma Mary will take a flour to the bakery.\"/><String id=\"HINT 13_40\" text=\"Grandma baked a really tasty bread from the flour.\"/><String id=\"MARKET CABBAGE NAME\" text=\"Cabbage\"/><String id=\"MARKET CABBAGE DESCRIPTION\" text=\"White cabbage seeds\"/><String id=\"MARKET WATERMELON NAME\" text=\"Watermelon\"/><String id=\"MARKET WATERMELON DESCRIPTION\" text=\"Sweet watermelon seeds\"/><String id=\"MARKET GOSLING NAME\" text=\"Gosling\"/><String id=\"MARKET GOSLING DESCRIPTION\" text=\"Soon a gosling will become a goose that lays eggs.\"/><String id=\"MARKET LAMB NAME\" text=\"Lamb\"/><String id=\"MARKET LAMB DESCRIPTION\" text=\"A Lamb will grow into a sheep. You can shear it and sell the fleece.\"/><String id=\"MARKET CALF NAME\" text=\"Calf\"/><String id=\"MARKET CALF DESCRIPTION\" text=\"This calf will grow into wonderful cow that gives a lot of milk.\"/><String id=\"MARKET CHICKEN NAME\" text=\"Chicken\"/><String id=\"MARKET CHICKEN DESCRIPTION\" text=\"This chicken will grow into a hen. Chicken eggs are used for baking pastries.\"/><String id=\"MARKET GOATKID NAME\" text=\"Goatling\"/><String id=\"MARKET GOATKID DESCRIPTION\" text=\"Goatling grow into goats that give healthy milk.\"/><String id=\"MARKET WHITEGOATKID NAME\" text=\"White goatling\"/><String id=\"MARKET WHITEGOATKID DESCRIPTION\" text=\"White goatlings grow into white goats that give very healthy milk\"/><String id=\"MARKET TURKEYKID NAME\" text=\"Turkey-poult\"/><String id=\"MARKET TURKEYKID DESCRIPTION\" text=\"Look after turkey-poult and it will grow into a big turkey that lays big eggs.\"/><String id=\"MARKET BEEHIVE1 NAME\" text=\"Hive\"/><String id=\"MARKET BEEHIVE1 DESCRIPTION\" text=\"Bees make honey in the hive.\"/><String id=\"MARKET BEEHIVE2 NAME\" text=\"Hive\"/><String id=\"MARKET BEEHIVE2 DESCRIPTION\" text=\"Bees make honey in the hive.\"/><String id=\"MARKET HONEYPIEBAKERY NAME\" text=\"Pastry shop\"/><String id=\"MARKET HONEYPIEBAKERY DESCRIPTION\" text=\"Honey cakes are baked here\"/><String id=\"MARKET APPLEPIEBAKERY NAME\" text=\"Sweet Apple Bakery\"/><String id=\"MARKET APPLEPIEBAKERY DESCRIPTION\" text=\"Apple pies are baked here\"/><String id=\"MARKET SOURCREAM NAME\" text=\"Milky Way House\"/><String id=\"MARKET SOURCREAM DESCRIPTION\" text=\"Sour cream is made from cow milk here.\"/><String id=\"MARKET BROWNLAMB NAME\" text=\"Brown lamb\"/><String id=\"MARKET BROWNLAMB DESCRIPTION\" text=\"The lamb will become a brown sheep. There will be great threads from its wool.\"/><String id=\"MARKET BROWNCALF NAME\" text=\"Brown Calf\"/><String id=\"MARKET BROWNCALF DESCRIPTION\" text=\"The calf will become a brown cow that will give twice as much milk.\"/><String id=\"MARKET PUMPKINPIEBAKERY NAME\" text=\"Fairy Pumpkin Bakery\"/><String id=\"MARKET PUMPKINPIEBAKERY DESCRIPTION\" text=\"Pumpkin pies are baked here.\"/><String id=\"MARKET PLUMPIEBAKERY NAME\" text=\"Sugar Plum Bakery\"/><String id=\"MARKET PLUMPIEBAKERY DESCRIPTION\" text=\"Plum pies are baked here.\"/><String id=\"MARKET THREADS NAME\" text=\"Clew House\"/><String id=\"MARKET THREADS DESCRIPTION\" text=\"Great threads from brown sheep's wool are made here.\"/><String id=\"MARKET PEARYOUGHURT NAME\" text=\"Happy Yoghurt House\"/><String id=\"MARKET PEARYOUGHURT DESCRIPTION\" text=\"Tasty yoghurt with pear pieces are made here.\"/><String id=\"MARKET WOOLMITTENS NAME\" text=\"Warm mittens House\"/><String id=\"MARKET WOOLMITTENS DESCRIPTION\" text=\"Warm wool mittens are made here.\"/><String id=\"MARKET SCARF NAME\" text=\"Cosy scarf House.\"/><String id=\"MARKET SCARF DESCRIPTION\" text=\"Cosy wool scarfs are made here.\"/><String id=\"MARKET PEACHCURD NAME\" text=\"Curd miracle House\"/><String id=\"MARKET PEACHCURD DESCRIPTION\" text=\"Tasty peach curds are made here.\"/><String id=\"MARKET FOODPANS NAME\" text=\"New feeding pen\"/><String id=\"MARKET FOODPANS DESCRIPTION\" text=\"Upgrade the feeding pen so animals can get more fodder.\"/><String id=\"MARKET WATERPANS NAME\" text=\"New trough\"/><String id=\"MARKET WATERPANS DESCRIPTION\" text=\"Upgrade the trough so animals can get more water.\"/><String id=\"MARKET SCOOTER NAME\" text=\"Scooter\"/><String id=\"MARKET SCOOTER DESCRIPTION\" text=\"Can carry twice as much produce as the bicycle.\"/><String id=\"MARKET MOTORCYCLE NAME\" text=\"Motorbike\"/><String id=\"MARKET MOTORCYCLE DESCRIPTION\" text=\"Can carry twice as much produce as the scooter.\"/><String id=\"MARKET MINITRUCK NAME\" text=\"Old truck\"/><String id=\"MARKET MINITRUCK DESCRIPTION\" text=\"It was a bumper-crop year, its time to buy a car.\"/><String id=\"MARKET TRUCK NAME\" text=\"NEW TRUCK\"/><String id=\"MARKET TRUCK DESCRIPTION\" text=\"A roomy truck for a real farmer.\"/><String id=\"MARKET WELL2 NAME\" text=\"Double-bucket well.\"/><String id=\"MARKET WELL2 DESCRIPTION\" text=\"Press the lever to fill two dip-buckets at once.\"/><String id=\"MARKET WELL3 NAME\" text=\"Fast double-bucket well.\"/><String id=\"MARKET WELL3 DESCRIPTION\" text=\"Increases the speed of rising the two dip-buckets.\"/><String id=\"MARKET WELL4 NAME\" text=\"Super fast double bucket well\"/><String id=\"MARKET WELL4 DESCRIPTION\" text=\"Just click once and both buckets will be full.\"/><String id=\"MARKET WINDMILL NAME\" text=\"Windmill\"/><String id=\"MARKET WINDMILL DESCRIPTION\" text=\"A windmill grinds corn.\"/><String id=\"MARKET BAKERY NAME\" text=\"Bakery\"/><String id=\"MARKET BAKERY DESCRIPTION\" text=\"A place where fresh bread is baked.\"/><String id=\"MARKET BOOTS NAME\" text=\"Comfortable shoes\"/><String id=\"MARKET BOOTS DESCRIPTION\" text=\"Anna will work much faster in comfortable shoes.\"/><String id=\"MARKET GLOVES NAME\" text=\"Gloves\"/><String id=\"MARKET GLOVES DESCRIPTION\" text=\"New thick gloves protect Anna's hands from calluses, they will help her work faster.\"/><String id=\"MARKET WATERINGCAN NAME\" text=\"Watering-can\"/><String id=\"MARKET WATERINGCAN DESCRIPTION\" text=\"Doubles the speed of watering.\"/><String id=\"MARKET HOE NAME\" text=\"Double-sided hoe\"/><String id=\"MARKET HOE DESCRIPTION\" text=\"A Light hoe that can weed and loosen the soil.\"/><String id=\"MARKET RAZOR NAME\" text=\"Shears\"/><String id=\"MARKET RAZOR DESCRIPTION\" text=\"Sheep can be sheared in a matter of seconds.\"/><String id=\"MARKET COCKTAIL NAME\" text=\"Vitamin water\"/><String id=\"MARKET COCKTAIL DESCRIPTION\" text=\"This drink energizes you and increases your efficiency.\"/><String id=\"MARKET SCYTHE NAME\" text=\"Light scythe\"/><String id=\"MARKET SCYTHE DESCRIPTION\" text=\"Due to a new experimental technology, this scythe is lighter and can cut much faster.\"/><String id=\"MARKET SHELVES NAME\" text=\"New fence\"/><String id=\"MARKET SHELVES DESCRIPTION\" text=\"A new fence will help to increase yard's area: now 4 animals or birds can be placed there instead of 3.\"/><String id=\"MARKET DEFENCE NAME\" text=\"Border for beds\"/><String id=\"MARKET DEFENCE DESCRIPTION\" text=\"Protects beds from weeds.\"/><String id=\"MARKET FRUITDEFENCE NAME\" text=\"Border for beds\"/><String id=\"MARKET FRUITDEFENCE DESCRIPTION\" text=\"Protects beds from bugs.\"/><String id=\"MARKET ENTRANCE NAME\" text=\"Asphalt road\"/><String id=\"MARKET ENTRANCE DESCRIPTION\" text=\"Creates a road to exit the farm, reduces the time for produce delivery.\"/><String id=\"MARKET FLOWERS NAME\" text=\"Flowers\"/><String id=\"MARKET FLOWERS DESCRIPTION\" text=\"Cheer up Anna and her grandpa and their productivity will increase.\"/><String id=\"MARKET TILES NAME\" text=\"Walkway slab\"/><String id=\"MARKET TILES DESCRIPTION\" text=\"Improves climate on the farm.\"/><String id=\"MARKET TILEDAREA NAME\" text=\"Paved ground\"/><String id=\"MARKET TILEDAREA DESCRIPTION\" text=\"Anna will move much faster on the paved ground.\"/><String id=\"MARKET STRONGBULL NAME\" text=\"Energy drink\"/><String id=\"MARKET STRONGBULL DESCRIPTION\" text=\"Anna becomes energized and strong.\"/><String id=\"MARKET CHEESE NAME\" text=\"Cheese factory\"/><String id=\"MARKET CHEESE DESCRIPTION\" text=\"Variety of cheeses are made here.\"/><String id=\"MARKET MELON NAME\" text=\"Melon\"/><String id=\"MARKET MELON DESCRIPTION\" text=\"Melon seeds\"/><String id=\"MARKET APPLE NAME\" text=\"Apple\"/><String id=\"MARKET APPLE DESCRIPTION\" text=\"Fruitful apple-tree seeds.\"/><String id=\"MARKET PEAR NAME\" text=\"Pear\"/><String id=\"MARKET PEAR DESCRIPTION\" text=\"Fruitful pear-tree seeds.\"/><String id=\"MARKET PLUM NAME\" text=\"Plum\"/><String id=\"MARKET PLUM DESCRIPTION\" text=\"Fruitful plum-tree seeds.\"/><String id=\"MARKET PEACH NAME\" text=\"Peach\"/><String id=\"MARKET PEACH DESCRIPTION\" text=\"Fruitful peach-tree seeds.\"/><String id=\"MARKET MELONPIEBAKERY NAME\" text=\"Confectionery\"/><String id=\"MARKET MELONPIEBAKERY DESCRIPTION\" text=\"Nice pies with melon jam are baked here.\"/><String id=\"OPTIONS\" text=\"OPTIONS\"/><String id=\"ENTER NAME\" text=\"ENTER YOUR NAME\"/><String id=\"SOLD\" text=\"SOLD\"/><String id=\"ANY KEY\" text=\"PRESS ANY KEY\"/><String id=\"DAY\" text=\"DAY\"/><String id=\"LOADING\" text=\"LOADING\"/><String id=\"LEVEL GOAL\" text=\"GOAL FOR LEVEL\"/><String id=\"BONUS LEVEL\" text=\"BONUS LEVEL\"/><String id=\"EARN\" text=\"EARN\"/><String id=\"COLLECT\" text=\"SELL\"/><String id=\"GROW\" text=\"GROW\"/><String id=\"DEVELOP\" text=\"WELL-BEING\"/><String id=\"FIND\" text=\"FIND\"/><String id=\"LEVEL TIME\" text=\"TIME\"/><String id=\"MAX SUMM\" text=\"TOTAL MONEY\"/><String id=\"MARKET HISBOOTS NAME\" text=\"Garden shoes\"/><String id=\"MARKET HISBOOTS DESCRIPTION\" text=\"Comfortable and quality footwear for seniors.\"/><String id=\"QUANTITY\" text=\"NUMBER\"/><String id=\"SELL PRICE\" text=\"SALE\"/><String id=\"SELL\" text=\"SELL\"/><String id=\"MAP\" text=\"MAP\"/><String id=\"PLAY\" text=\"PLAY\"/><String id=\"BACK\" text=\"BACK\"/><String id=\"ACTION\" text=\"ACTION\"/><String id=\"SHOW HINTS\" text=\"SHOW HINTS\"/><String id=\"CONTINUE\" text=\"CONTINUE\"/><String id=\"BUY HINT\" text=\"RECOMMENDED FOR PURCHASE\" size=\"+4\" x=\"0\" y=\"-2\"/><String id=\"SELL HINT 1\" text=\"You should sell \"/><String id=\"SELL HINT 2\" text=\" first\"/><String id=\"SELL GOSLING\" text=\"GOSLING\"/><String id=\"SELL CHICKEN\" text=\"CHICKEN\"/><String id=\"SELL TURKEYKID\" text=\"TURKEY-POULT\"/><String id=\"SELL LAMB\" text=\"LAMB\"/><String id=\"SELL BROWNLAMB\" text=\"BROWN LAMB\"/><String id=\"SELL GOATKID\" text=\"GOATLING\"/><String id=\"SELL WHITEGOATKID\" text=\"WHITE GOATLING\"/><String id=\"SELL CALF\" text=\"CALF\"/><String id=\"SELL BROWNCALF\" text=\"BROWN CALF\"/><String id=\"SELL GOOSE\" text=\"GOOSE\"/><String id=\"SELL HEN\" text=\"HEN\"/><String id=\"SELL TURKEY\" text=\"TURKEY\"/><String id=\"SELL SHEEP\" text=\"SHEEP\"/><String id=\"SELL BROWNSHEEP\" text=\"BROWN SHEEP\"/><String id=\"SELL GOAT\" text=\"GOAT\"/><String id=\"SELL WHITEGOAT\" text=\"WHITE GOAT\"/><String id=\"SELL COW\" text=\"COW\"/><String id=\"SELL BROWNCOW\" text=\"BROWN COW\"/><String id=\"BRIEFING 1\" text=\"Water plants regularly. Use water from the well.\"/><String id=\"BRIEFING 2\" text=\"Weed vegetables.\"/><String id=\"BRIEFING 3\" text=\"Feed gosling with corn to grow a goose.\"/><String id=\"BRIEFING 4\" text=\"Hares are damage crops. Click a hare to scare it away. Click more that once to dispel it forever.\"/><String id=\"BRIEFING 5\" text=\"10 sheep are hidden from wolves. Try to find all of them.\"/><String id=\"BRIEFING 6\" text=\"If you feed and water a goose on time, it will lay eggs.\"/><String id=\"BRIEFING 7\" text=\"Feed the lamb with juicy clover and it will grow faster into a big sheep.\"/><String id=\"BRIEFING 8\" text=\"This type of sheep has quality fleece. Don't forget to feed and shear your sheep.\"/><String id=\"BRIEFING 9\" text=\"Crows damage your crops. When a crow comes, click it to scare it away.\"/><String id=\"BRIEFING 10\" text=\"5 sheep and 5 little lambs are hidden somewhere here. Find them all!\"/><String id=\"BRIEFING 11\" text=\"If chicken's feeding pen is full all the time, chicken will grow fast into a hen.\"/><String id=\"BRIEFING 12\" text=\"A well-fed hen lays great eggs.\"/><String id=\"BRIEFING 13\" text=\"By grinding wheat, you get first-class flour and granny Mary will bake bread.\"/><String id=\"BRIEFING 14\" text=\" \"/><String id=\"BRIEFING 15\" text=\"Find 10 sheep and save them from wolves!\"/><String id=\"BRIEFING 16\" text=\"A goatling eats clover too. Feed the goatling well and it will grow into a wonderful goat.\"/><String id=\"BRIEFING 17\" text=\"A goat gives milk. You should feed and water it regularly.\"/><String id=\"BRIEFING 18\" text=\"Now we can bake tasty pumpkin pies from the pumpkins grown here.\"/><String id=\"BRIEFING 19\" text=\"Plant flowers. They will blossom and attract bees that give good honey.\"/><String id=\"BRIEFING 20\" text=\"Geese need your help, find them!\"/><String id=\"BRIEFING 21\" text=\"Double the number of hives and you will get twice as much honey as before.\"/><String id=\"BRIEFING 22\" text=\"Feed a calf with juicy hay and water it well, then it will grow into a cow fast.\"/><String id=\"BRIEFING 23\" text=\"Now granny Mary can bake honey cakes. Try them!\"/><String id=\"BRIEFING 24\" text=\" \"/><String id=\"BRIEFING 25\" text=\"Find 15 chickens!\"/><String id=\"BRIEFING 26\" text=\"Taste a home-made cheese. Granny Mary cooks it using an old recipe.\"/><String id=\"BRIEFING 27\" text=\" \"/><String id=\"BRIEFING 28\" text=\"A well-fed cow gives several milk pails a day.\"/><String id=\"BRIEFING 29\" text=\"Granny Mary is making a sour cream now. You should taste some. It's delicious!\"/><String id=\"BRIEFING 30\" text=\"15 turkeys are hidden somewhere here. Find them all!\"/><String id=\"BRIEFING 31\" text=\"This little bird needs your care. Grow it into a big turkey.\"/><String id=\"BRIEFING 32\" text=\"Plant a melon seed, water and weed it.\"/><String id=\"BRIEFING 33\" text=\"Turkey lays great eggs that are used to bake different cakes.\"/><String id=\"BRIEFING 34\" text=\"Granny Mary would love to bake cakes with melon jam.\"/><String id=\"BRIEFING 35\" text=\"Hens and chickens are hidden. Find them!\"/><String id=\"BRIEFING 36\" text=\" \"/><String id=\"BRIEFING 37\" text=\"Brown sheep gives high-quality fleece.\"/><String id=\"BRIEFING 38\" text=\"Now you can plant fruit trees. Start with apple trees.\"/><String id=\"BRIEFING 39\" text=\" \"/><String id=\"BRIEFING 40\" text=\"Geese and goslings are hidden.Find them!\"/><String id=\"BRIEFING 41\" text=\"Granny Mary makes thread from brown sheep's fleece.\"/><String id=\"BRIEFING 42\" text=\"Plant juicy pears.\"/><String id=\"BRIEFING 43\" text=\"Apple pies from granny Mary - it's finger-licking good!\"/><String id=\"BRIEFING 44\" text=\"Look after plum trees, and they will give a good harvest.\"/><String id=\"BRIEFING 45\" text=\"Chickens and calfs and hidden. Find them!\"/><String id=\"BRIEFING 46\" text=\"Brown calf will become a cow that gives twice as much milk.\"/><String id=\"BRIEFING 47\" text=\"Tasty pear yoghurt can be made of pears and milk.\"/><String id=\"BRIEFING 48\" text=\"Grow a peach tree that gives soft and juicy fruits.\"/><String id=\"BRIEFING 49\" text=\" \"/><String id=\"BRIEFING 50\" text=\"Chickens and turkey-poults are hidden. Find them!\"/><String id=\"BRIEFING 51\" text=\"We bake tasty plum pies\"/><String id=\"BRIEFING 52\" text=\"Granny Mary makes scarfs from brown sheep fleece.\"/><String id=\"BRIEFING 53\" text=\" \"/><String id=\"BRIEFING 54\" text=\"Granny Mary makes gloves from brown sheep fleece.\"/><String id=\"BRIEFING 55\" text=\"Calfs and geese are hidden. Find them!\"/><String id=\"BRIEFING 56\" text=\" \"/><String id=\"BRIEFING 57\" text=\"White goat gives two cans of milk.\"/><String id=\"BRIEFING 58\" text=\"We bake tasty peach curd.\"/><String id=\"BRIEFING 59\" text=\" \"/><String id=\"BRIEFING 60\" text=\"Sheep and cows are hidden. Find them!\"/>";
var RUS = ((String = "<String id=\"SAVE DIR\" text=\"REALORE_rus\"/><String id=\"GAME TITLE\" text=\"\u0424\u0415\u0420\u041C\u0410\" x=\"-10\"/><String id=\"ARCADE\" text=\"\u0410\u0420\u041A\u0410\u0414\u0410\"/><String id=\"CASUAL\" text=\"\u041E\u0411\u042B\u0427\u041D\u042B\u0419\" size=\"-4\"/><String id=\"OPTIONS\" text=\"\u041E\u041F\u0426\u0418\u0418\"/><String id=\"HELP\" text=\"\u041F\u041E\u041C\u041E\u0429\u042C\"/><String id=\"RECORDS\" text=\"\u041E\u0427\u041A\u0418\"/><String id=\"EXIT\" text=\"\u0412\u042B\u0425\u041E\u0414\"/><String id=\"RESUME\" text=\"\u041F\u0420\u041E\u0414\u041E\u041B\u0416\u0418\u0422\u042C\"/><String id=\"MAIN MENU\" text=\"\u041C\u0415\u041D\u042E\"/><String id=\"RESTART LEVEL\" text=\"\u0417\u0410\u041D\u041E\u0412\u041E\"/><String id=\"OPTIONS\" text=\"\u041E\u041F\u0426\u0418\u0418\"/><String id=\"EXIT TO MAP\" text=\"\u041A\u0410\u0420\u0422\u0410\"/><String id=\"PLAY\" text=\"\u0418\u0413\u0420\u0410\u0422\u042C\"/><String id=\"NEXT\" text=\"\u0414\u0410\u041B\u0415\u0415\"/><String id=\"SHOP\" text=\"\u041C\u0410\u0413\u0410\u0417\u0418\u041D\"/><String id=\"BUY\" text=\"\u041A\u0423\u041F\u0418\u0422\u042C\"/><String id=\"SOUND\" text=\"\u0417\u0412\u0423\u041A\"/><String id=\"MUSIC\" text=\"\u041C\u0423\u0417\u042B\u041A\u0410\"/><String id=\"FULL SCREEN\" text=\"\u041F\u041E\u041B\u041D\u042B\u0419 \u042D\u041A\u0420\u0410\u041D\"/><String id=\"OK\" text=\"\u041E\u041A\"/><String id=\"CANCEL\" text=\"\u041E\u0422\u041C\u0415\u041D\u0410\"/><String id=\"YES\" text=\"\u0414\u0410\"/><String id=\"NO\" text=\"\u041D\u0415\u0422\"/><String id=\"MORE GAMES\" text=\"\u0415\u0429\u0401 \u0418\u0413\u0420\u042B\"/><String id=\"GET FULL\" \ttext=\"\u0421\u041A\u0410\u0427\u0410\u0422\u042C\"/><String id=\"CREATE\" text=\"\u0421\u041E\u0417\u0414\u0410\u0422\u042C\"/><String id=\"DELETE\" text=\"\u0423\u0414\u0410\u041B\u0418\u0422\u042C\"/><String id=\"WELCOME\" text=\"\u041F\u0440\u0438\u0432\u0435\u0442,\"/><String id=\"ABORT\" \ttext=\"\u041F\u0420\u0415\u0420\u0412\u0410\u0422\u042C \u0418\u0413\u0420\u0423\"/><String id=\"CHANGE PROFILE\" text=\"\u0421\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F\"/><String id=\"EXIT CONFIRM\" text=\"\u0412\u042B \u0414\u0415\u0419\u0421\u0422\u0412\u0418\u0422\u0415\u041B\u042C\u041D\u041E \u0425\u041E\u0422\u0418\u0422\u0415 \u0412\u042B\u0419\u0422\u0418?\"/><String id=\"ABORT CONFIRM\" text=\"\u0412\u042B \u0414\u0415\u0419\u0421\u0422\u0412\u0418\u0422\u0415\u041B\u042C\u041D\u041E \u0425\u041E\u0422\u0418\u0422\u0415 \u041F\u0420\u0415\u0420\u0412\u0410\u0422\u042C \u0418\u0413\u0420\u0423?\"/><String id=\"DELETE CONFIRM\" text=\"\u0412\u042B \u0414\u0415\u0419\u0421\u0422\u0412\u0418\u0422\u0415\u041B\u042C\u041D\u041E \u0425\u041E\u0422\u0418\u0422\u0415 \u0423\u0414\u0410\u041B\u0418\u0422\u042C \u042D\u0422\u041E\u0413\u041E \u0418\u0413\u0420\u041E\u041A\u0410?\"/><String id=\"ARCADE text\" text=\"\u0418\u0413\u0420\u0410 \u041D\u0410 \u0412\u0420\u0415\u041C\u042F\"/><String id=\"CASUAL text\" text=\"\u0418\u0413\u0420\u0410 \u0411\u0415\u0417 \u0423\u0427\u0415\u0422\u0410 \u0412\u0420\u0415\u041C\u0415\u041D\u0418\"/><String id=\"MONEY\" text=\"\u0414\u0415\u041D\u042C\u0413\u0418\"/><String id=\"EXTRA MONEY\" text=\"\u0411\u041E\u041D\u0423\u0421\"/><String id=\"GOALS\" text=\"\u0426\u0415\u041B\u0418\"/><String id=\"GOAL\" text=\"\u0426\u0415\u041B\u042C\"/><String id=\"VEGETABLES\" text=\"\u0421\u0415\u041C\u0415\u041D\u0410\"/><String id=\"LEVEL MENU\" text=\"\u041C\u0415\u041D\u042E\"/><String id=\"PARAMS\" text=\"\u041F\u0410\u0420\u0410\u041C\u0415\u0422\u0420\u042B\"/><String id=\"SPEED\" text=\"\u0421\u041A\u041E\u0420\u041E\u0421\u0422\u042C \u041F\u041E\u041C\u041E\u0429\u041D\u0418\u041A\u041E\u0412\" size=\"-1\"/><String id=\"MOOD\" text=\"\u0417\u0414\u041E\u0420\u041E\u0412\u042C\u0415\"/><String id=\"EQUIPMENT\" text=\"\u041E\u0411\u041E\u0420\u0423\u0414\u041E\u0412\u0410\u041D\u0418\u0415\"/><String id=\"STATISTICS\" text=\"\u0421\u0422\u0410\u0422\u0418\u0421\u0422\u0418\u041A\u0410\"/><String id=\"LEVEL MONEY\" text=\"\u0417\u0410\u0420\u0410\u0411\u041E\u0422\u0410\u041D\u041E \u0417\u0410 \u0423\u0420\u041E\u0412\u0415\u041D\u042C\" size=\"-13\"/><String id=\"GAME MONEY\" text=\"\u0412\u0421\u0415\u0413\u041E \u0417\u0410\u0420\u0410\u0411\u041E\u0422\u0410\u041D\u041E\"/><String id=\"TIME\" text=\"\u0412\u0420\u0415\u041C\u042F \u041F\u0420\u041E\u0425\u041E\u0416\u0414\u0415\u041D\u0418\u042F\"/><String id=\"TIME END\" text=\"\u0412\u0420\u0415\u041C\u0415\u041D\u0418 \u041E\u0421\u0422\u0410\u041B\u041E\u0421\u042C\"/><String id=\"ITEMS SOLD\" text=\"\u041F\u0420\u041E\u0414\u0410\u041D\u041E \u0422\u041E\u0412\u0410\u0420\u041E\u0412\"/><String id=\"BEST COMBO\" text=\"\u041B\u0423\u0427\u0428\u0415\u0415 \u041A\u041E\u041C\u0411\u041E\"/><String id=\"15 SECONDS\" text=\"\u041C\u0418\u041D\u0423\u0421 15 \u0421\u0415\u041A\u0423\u041D\u0414\"/><String id=\"COMBO\" text=\"\u0417\u0414\u041E\u0420\u041E\u0412\u041E\"/><String id=\"SUPER COMBO\" text=\"\u0421\u0423\u041F\u0415\u0420\"/><String id=\"GREATEST COMBO\" text=\"\u0412\u0415\u041B\u0418\u041A\u041E\u041B\u0415\u041F\u041D\u041E\"/><String id=\"INCREDIBLE COMBO\" text=\"\u0412\u041E\u0421\u0425\u0418\u0422\u0418\u0422\u0415\u041B\u042C\u041D\u041E\"/><String id=\"UNBELIEVABLE COMBO\" text=\"\u041D\u0415\u0412\u0415\u0420\u041E\u042F\u0422\u041D\u041E\"/><String id=\"READY\" text=\"\u0413\u041E\u0422\u041E\u0412\u042B?\"/><String id=\"GO\" text=\"\u041D\u0410\u0427\u0410\u041B\u0418!\"/><String id=\"TIME'S UP\" text=\"\u0412\u0420\u0415\u041C\u042F \u0412\u042B\u0428\u041B\u041E!\"/><String id=\"LEVEL COMPLETE\" text=\"\u0423\u0420\u041E\u0412\u0415\u041D\u042C \u041F\u0420\u041E\u0419\u0414\u0415\u041D\"/><String id=\"EXPERT\" text=\"\u041E\u0422\u041B\u0418\u0427\u041D\u0410\u042F \u0420\u0410\u0411\u041E\u0422\u0410!\"/><String id=\"END OF DAY\" text=\"\u041A\u041E\u041D\u0415\u0426 \u0414\u041D\u042F\"/><String id=\"HINT 1_10\" text=\"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u0435\u043C\u0435\u043D\u0430 \u0434\u043B\u044F \u043F\u043E\u0441\u0430\u0434\u043A\u0438.\"/><String id=\"HINT 1_20\" text=\"\u0421\u0435\u0439\u0447\u0430\u0441 \u043C\u044B \u043D\u0430\u0443\u0447\u0438\u043C\u0441\u044F \u0441\u0430\u0436\u0430\u0442\u044C \u043E\u0432\u043E\u0449\u0438. \u0427\u0442\u043E\u0431\u044B \u043F\u043E\u0441\u0430\u0434\u0438\u0442\u044C \u0442\u044B\u043A\u0432\u0443, \u043A\u043B\u0438\u043A\u043D\u0438\u0442\u0435 \u043F\u043E \u043B\u0443\u043D\u043A\u0435.\"/><String id=\"HINT 1_30\" text=\"\u041F\u043E\u043A\u0430 \u0442\u044B\u043A\u0432\u0430 \u0440\u0430\u0441\u0442\u0435\u0442, \u043D\u0430\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u043E\u0434\u044B. \u0414\u043B\u044F \u044D\u0442\u043E\u0433\u043E \u043A\u043B\u0438\u043A\u043D\u0438\u0442\u0435 \u043D\u0430 \u043A\u043E\u043B\u043E\u0434\u0435\u0446.\"/><String id=\"HINT 1_40\" text=\"\u0422\u0435\u043F\u0435\u0440\u044C \u043A\u043B\u0438\u043A\u043D\u0438\u0442\u0435 \u043D\u0430 \u0432\u0435\u0434\u0440\u043E, \u0447\u0442\u043E\u0431\u044B \u0432\u0437\u044F\u0442\u044C \u0435\u0433\u043E.\"/><String id=\"HINT 1_50\" text=\"\u0422\u044B\u043A\u0432\u0443 \u043F\u043E\u0440\u0430 \u043F\u043E\u043B\u0438\u0442\u044C. \u041A\u043B\u0438\u043A\u043D\u0438\u0442\u0435 \u043D\u0430 \u043D\u0435\u0435.\"/><String id=\"HINT 1_60\" text=\"\u0422\u0435\u043F\u0435\u0440\u044C \u0442\u044B\u043A\u0432\u0443 \u043D\u0443\u0436\u043D\u043E \u043F\u0440\u043E\u043F\u043E\u043B\u043E\u0442\u044C \u043E\u0442 \u0441\u043E\u0440\u043D\u044F\u043A\u043E\u0432. \u041F\u0440\u043E\u0441\u0442\u043E \u043A\u043B\u0438\u043A\u043D\u0438\u0442\u0435 \u043D\u0430 \u043D\u0435\u0435.\"/><String id=\"HINT 1_70\" text=\"\u0422\u044B\u043A\u0432\u0430 \u0441\u043E\u0437\u0440\u0435\u043B\u0430. \u0412\u043E\u0437\u044C\u043C\u0438\u0442\u0435 \u0435\u0435 \u0438 \u043F\u043E\u043B\u043E\u0436\u0438\u0442\u0435 \u0432 \u0431\u0430\u0433\u0430\u0436\u043D\u0438\u043A \u0432\u0435\u043B\u043E\u0441\u0438\u043F\u0435\u0434\u0430.\"/><String id=\"HINT 1_80\" text=\"\u0422\u044B\u043A\u0432\u0430 \u0441\u043E\u0437\u0440\u0435\u043B\u0430. \u0412\u043E\u0437\u044C\u043C\u0438\u0442\u0435 \u0435\u0435 \u0438 \u043F\u043E\u043B\u043E\u0436\u0438\u0442\u0435 \u0432 \u0431\u0430\u0433\u0430\u0436\u043D\u0438\u043A \u0432\u0435\u043B\u043E\u0441\u0438\u043F\u0435\u0434\u0430.\"/><String id=\"HINT 1_90\" text=\"\u0427\u0442\u043E\u0431\u044B \u043E\u0442\u0432\u0435\u0437\u0442\u0438 \u043F\u0440\u043E\u0434\u0443\u043A\u0442\u044B \u043D\u0430 \u0440\u044B\u043D\u043E\u043A, \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043D\u043E\u043F\u043A\u0443 \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0438 \u043D\u0430\u0434 \u0432\u0435\u043B\u043E\u0441\u0438\u043F\u0435\u0434\u043E\u043C.\"/><String id=\"HINT 1_100\" text=\"\u0412\u0438\u0442\u044C\u043A\u0430 \u043F\u0440\u043E\u0434\u0430\u043B \u0442\u044B\u043A\u0432\u0443. \u041A\u043B\u0438\u043A\u043D\u0438\u0442\u0435 \u043D\u0430 \u043C\u043E\u043D\u0435\u0442\u043A\u0438, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0431\u0440\u0430\u0442\u044C \u0432\u044B\u0440\u0443\u0447\u043A\u0443.\"/><String id=\"HINT 1_110\" text=\"\u0422\u0435\u043F\u0435\u0440\u044C \u0432\u044B\u0440\u0430\u0441\u0442\u0438\u0442\u0435 \u0435\u0449\u0435 \u043E\u0434\u043D\u0443 \u0442\u044B\u043A\u0432\u0443 \u0441\u0430\u043C\u0438.\"/><String id=\"HINT 2_10\" text=\"\u0427\u0442\u043E\u0431\u044B \u043F\u0440\u043E\u0439\u0442\u0438 \u0443\u0440\u043E\u0432\u0435\u043D\u044C, \u043D\u0443\u0436\u043D\u043E \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0432\u0441\u0435 \u0446\u0435\u043B\u0438, \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u044B\u0435 \u0432\u043D\u0438\u0437\u0443 \u0432 \u0446\u0435\u043D\u0442\u0440\u0435 \u044D\u043A\u0440\u0430\u043D\u0430.\"/><String id=\"HINT 2_20\" text=\"\u0421\u0432\u0438\u043D\u044C\u044F \u0441\u043B\u0443\u0436\u0438\u0442 \u0443\u0440\u043D\u043E\u0439. \u041A\u043B\u0438\u043A\u0430\u0439\u0442\u0435 \u043F\u043E \u0441\u0432\u0438\u043D\u044C\u0435, \u0447\u0442\u043E\u0431\u044B \u043E\u0441\u0432\u043E\u0431\u043E\u0434\u0438\u0442\u044C \u0440\u0443\u043A\u0438 \u0410\u043D\u0438 \u043E\u0442 \u043D\u0435\u043D\u0443\u0436\u043D\u044B\u0445 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u0432.\"/><String id=\"HINT 2_30\" text=\"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0447\u0430\u0441\u043E\u0432 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0435\u0442, \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u0438 \u043F\u0440\u043E\u0448\u043B\u043E \u0441 \u043D\u0430\u0447\u0430\u043B\u0430 \u0443\u0440\u043E\u0432\u043D\u044F. \u0412\u0441\u0435 \u0446\u0435\u043B\u0438 \u043D\u0443\u0436\u043D\u043E \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C, \u043F\u043E\u043A\u0430 \u0441\u0442\u0440\u0435\u043B\u043A\u0430 \u043D\u0435 \u0434\u043E\u0448\u043B\u0430 \u0434\u043E \u043A\u0440\u0430\u0441\u043D\u043E\u0439 \u0442\u043E\u0447\u043A\u0438.\" size=\"-1\" x=\"3\" y=\"0\"/><String id=\"MARKET CABBAGE NAME\" text=\"\u041A\u0430\u043F\u0443\u0441\u0442\u0430\"/><String id=\"MARKET CABBAGE DESCRIPTION\" text=\"\u0421\u0435\u043C\u0435\u043D\u0430 \u043A\u0430\u043F\u0443\u0441\u0442\u044B \u0431\u0435\u043B\u043E\u043A\u043E\u0447\u0430\u043D\u043D\u043E\u0439\"/><String id=\"MARKET WATERMELON NAME\" text=\"\u0410\u0440\u0431\u0443\u0437\"/><String id=\"MARKET WATERMELON DESCRIPTION\" text=\"\u0421\u0435\u043C\u0435\u043D\u0430 \u0441\u0430\u0445\u0430\u0440\u043D\u043E\u0433\u043E \u0430\u0440\u0431\u0443\u0437\u0430\"/><String id=\"MARKET GOSLING NAME\" text=\"\u0413\u0443\u0441\u0435\u043D\u043E\u043A\"/><String id=\"MARKET GOSLING DESCRIPTION\" text=\"\u0413\u0443\u0441\u0435\u043D\u043E\u043A \u0441\u043A\u043E\u0440\u043E \u0441\u0442\u0430\u043D\u0435\u0442 \u0433\u0443\u0441\u044B\u043D\u0435\u0439, \u043D\u0435\u0441\u0443\u0449\u0435\u0439 \u044F\u0439\u0446\u0430.\"/><String id=\"MARKET LAMB NAME\" text=\"\u042F\u0433\u043D\u0435\u043D\u043E\u043A\"/><String id=\"MARKET LAMB DESCRIPTION\" text=\"\u0418\u0437 \u044F\u0433\u043D\u0435\u043D\u043A\u0430 \u0432\u044B\u0440\u0430\u0441\u0442\u0435\u0442 \u0432\u0437\u0440\u043E\u0441\u043B\u0430\u044F \u043E\u0432\u0446\u0430. \u0412\u044B \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u0441\u0442\u0440\u0438\u0447\u044C \u0435\u0435 \u0438 \u043F\u0440\u043E\u0434\u0430\u0432\u0430\u0442\u044C \u0448\u0435\u0440\u0441\u0442\u044C.\"/><String id=\"MARKET CALF NAME\" text=\"\u0422\u0435\u043B\u0435\u043D\u043E\u043A\"/><String id=\"MARKET CALF DESCRIPTION\" text=\"\u0418\u0437 \u044D\u0442\u043E\u0433\u043E \u0442\u0435\u043B\u0435\u043D\u043A\u0430 \u0432\u044B\u0440\u0430\u0441\u0442\u0435\u0442 \u0447\u0443\u0434\u043D\u0430\u044F \u043A\u043E\u0440\u043E\u0432\u0430, \u0434\u0430\u044E\u0449\u0430\u044F \u043C\u043D\u043E\u0433\u043E \u043C\u043E\u043B\u043E\u043A\u0430.\"/><String id=\"MARKET CHICKEN NAME\" text=\"\u0426\u044B\u043F\u043B\u0435\u043D\u043E\u043A\"/><String id=\"MARKET CHICKEN DESCRIPTION\" text=\"\u0418\u0437 \u044D\u0442\u043E\u0433\u043E \u0446\u044B\u043F\u043B\u0435\u043D\u043A\u0430 \u0432\u044B\u0440\u0430\u0441\u0442\u0435\u0442 \u043A\u0443\u0440\u0438\u0446\u0430-\u043D\u0435\u0441\u0443\u0448\u043A\u0430. \u041A\u0443\u0440\u0438\u043D\u044B\u0435 \u044F\u0439\u0446\u0430 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442\u0441\u044F \u0434\u043B\u044F \u043F\u0440\u0438\u0433\u043E\u0442\u043E\u0432\u043B\u0435\u043D\u0438\u044F \u0432\u044B\u043F\u0435\u0447\u043A\u0438.\"/><String id=\"MARKET GOATKid NAME\" text=\"\u041A\u043E\u0437\u043B\u0435\u043D\u043E\u043A\"/><String id=\"MARKET GOATKid DESCRIPTION\" text=\"\u041A\u043E\u0437\u043B\u0435\u043D\u043E\u043A \u0441\u0442\u0430\u043D\u0435\u0442 \u0432\u0437\u0440\u043E\u0441\u043B\u043E\u0439 \u043A\u043E\u0437\u043E\u0439, \u0434\u0430\u044E\u0449\u0435\u0439 \u043E\u0447\u0435\u043D\u044C \u043F\u043E\u043B\u0435\u0437\u043D\u043E\u0435 \u043C\u043E\u043B\u043E\u043A\u043E.\"/><String id=\"MARKET WHITEGOATKid NAME\" text=\"\u0411\u0435\u043B\u044B\u0439 \u043A\u043E\u0437\u043B\u0435\u043D\u043E\u043A\"/><String id=\"MARKET WHITEGOATKid DESCRIPTION\" text=\"\u0411\u0435\u043B\u044B\u0439 \u043A\u043E\u0437\u043B\u0435\u043D\u043E\u043A \u0441\u0442\u0430\u043D\u0435\u0442 \u0432\u0437\u0440\u043E\u0441\u043B\u043E\u0439 \u0431\u0435\u043B\u043E\u0439 \u043A\u043E\u0437\u043E\u0439, \u0434\u0430\u044E\u0449\u0435\u0439 2 \u0431\u0438\u0434\u043E\u043D\u0430 \u043E\u0447\u0435\u043D\u044C \u043F\u043E\u043B\u0435\u0437\u043D\u043E\u0433\u043E \u043C\u043E\u043B\u043E\u043A\u0430.\"/><String id=\"MARKET TURKEYKid NAME\" text=\"\u0418\u043D\u0434\u044E\u0448\u043E\u043D\u043E\u043A\"/><String id=\"MARKET TURKEYKid DESCRIPTION\" text=\"\u0423\u0445\u0430\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0437\u0430 \u0438\u043D\u0434\u044E\u0448\u043E\u043D\u043A\u043E\u043C, \u0438 \u043E\u043D \u0441\u0442\u0430\u043D\u0435\u0442 \u0438\u043D\u0434\u044E\u0448\u043A\u043E\u0439, \u043D\u0435\u0441\u0443\u0449\u0435\u0439 \u043A\u0440\u0443\u043F\u043D\u044B\u0435 \u044F\u0439\u0446\u0430.\"/><String id=\"MARKET BEEHIVE1 NAME\" text=\"\u0423\u043B\u0435\u0439\"/><String id=\"MARKET BEEHIVE1 DESCRIPTION\" text=\"\u0412 \u0443\u043B\u044C\u0435 \u043F\u0447\u0451\u043B\u044B \u0434\u0435\u043B\u0430\u044E\u0442 \u043C\u0435\u0434.\"/><String id=\"MARKET BEEHIVE2 NAME\" text=\"\u0423\u043B\u0435\u0439\"/><String id=\"MARKET BEEHIVE2 DESCRIPTION\" text=\"\u0412 \u0443\u043B\u044C\u0435 \u043F\u0447\u0451\u043B\u044B \u0434\u0435\u043B\u0430\u044E\u0442 \u043C\u0435\u0434\"/><String id=\"MARKET HONEYPIEBAKERY NAME\" text=\"\u041C\u0435\u0434\u043E\u0432\u044B\u0439 \u0434\u043E\u043C\u0438\u043A\"/><String id=\"MARKET HONEYPIEBAKERY DESCRIPTION\" text=\"\u0417\u0434\u0435\u0441\u044C \u043F\u0435\u043A\u0443\u0442 \u043C\u0435\u0434\u043E\u0432\u044B\u0435 \u043F\u0438\u0440\u043E\u0433\u0438.\"/><String id=\"MARKET APPLEPIEBAKERY NAME\" text=\"\u041F\u0435\u043A\u0430\u0440\u043D\u044F "\u042F\u0431\u043B\u043E\u0447\u043A\u043E"\"/><String id=\"MARKET APPLEPIEBAKERY DESCRIPTION\" text=\"\u0417\u0434\u0435\u0441\u044C \u043F\u0435\u043A\u0443\u0442 \u043F\u0438\u0440\u043E\u0433\u0438 \u0441 \u044F\u0431\u043B\u043E\u0447\u043D\u043E\u0439 \u043D\u0430\u0447\u0438\u043D\u043A\u043E\u0439.\"/><String id=\"MARKET SOURCREAM NAME\" text=\"\u041C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 \u0434\u043E\u043C\u0438\u043A\"/><String id=\"MARKET SOURCREAM DESCRIPTION\" text=\"\u0417\u0434\u0435\u0441\u044C \u0434\u0435\u043B\u0430\u044E\u0442 \u0441\u043C\u0435\u0442\u0430\u043D\u0443 \u0438\u0437 \u043A\u043E\u0440\u043E\u0432\u044C\u0435\u0433\u043E \u043C\u043E\u043B\u043E\u043A\u0430.\"/><String id=\"MARKET BROWNLAMB NAME\" text=\"\u0411\u0443\u0440\u044B\u0439 \u044F\u0433\u043D\u0435\u043D\u043E\u043A\"/><String id=\"MARKET BROWNLAMB DESCRIPTION\" text=\"\u042D\u0442\u043E\u0442 \u044F\u0433\u043D\u0435\u043D\u043E\u043A \u0432\u044B\u0440\u0430\u0441\u0442\u0435\u0442 \u0432 \u0431\u0443\u0440\u0443\u044E \u043E\u0432\u0446\u0443, \u0438\u0437 \u0448\u0435\u0440\u0441\u0442\u0438 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u043F\u043E\u043B\u0443\u0447\u0430\u044E\u0442\u0441\u044F \u043E\u0442\u043B\u0438\u0447\u043D\u044B\u0435 \u043D\u0438\u0442\u043A\u0438.\"/><String id=\"MARKET BROWNCALF NAME\" text=\"\u0411\u0443\u0440\u044B\u0439 \u0442\u0435\u043B\u0435\u043D\u043E\u043A\"/><String id=\"MARKET BROWNCALF DESCRIPTION\" text=\"\u042D\u0442\u043E\u0442 \u0442\u0435\u043B\u0435\u043D\u043E\u043A \u0432\u044B\u0440\u0430\u0441\u0442\u0435\u0442 \u0432 \u0431\u0443\u0440\u0443\u044E \u043A\u043E\u0440\u043E\u0432\u0443, \u0434\u0430\u044E\u0449\u0443\u044E \u0432 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u0431\u043E\u043B\u044C\u0448\u0435 \u043C\u043E\u043B\u043E\u043A\u0430.\"/><String id=\"MARKET PUMPKINPIEBAKERY NAME\" text=\"\u041F\u0435\u043A\u0430\u0440\u043D\u044F \u00AB\u0422\u044B\u043A\u043E\u0432\u043A\u0430\u00BB\"/><String id=\"MARKET PUMPKINPIEBAKERY DESCRIPTION\" text=\"\u0417\u0434\u0435\u0441\u044C \u043F\u0435\u043A\u0443\u0442 \u043F\u0438\u0440\u043E\u0433\u0438 \u0441 \u0442\u044B\u043A\u0432\u0435\u043D\u043D\u043E\u0439 \u043D\u0430\u0447\u0438\u043D\u043A\u043E\u0439.\"/><String id=\"MARKET PLUMPIEBAKERY NAME\" text=\"\u041F\u0435\u043A\u0430\u0440\u043D\u044F \u00AB\u0421\u043B\u0438\u0432\u043A\u0430\u00BB\"/><String id=\"MARKET PLUMPIEBAKERY DESCRIPTION\" text=\"\u0417\u0434\u0435\u0441\u044C \u043F\u0435\u043A\u0443\u0442 \u043F\u0438\u0440\u043E\u0433\u0438 \u0441\u043E \u0441\u043B\u0438\u0432\u043E\u0432\u043E\u0439 \u043D\u0430\u0447\u0438\u043D\u043A\u043E\u0439.\"/><String id=\"MARKET THREADS NAME\" text=\"\u0414\u043E\u043C\u0438\u043A "\u041D\u0438\u0442\u043E\u0447\u043A\u0430"\"/><String id=\"MARKET THREADS DESCRIPTION\" text=\"\u0417\u0434\u0435\u0441\u044C \u0438\u0437 \u0448\u0435\u0440\u0441\u0442\u0438 \u0431\u0443\u0440\u043E\u0439 \u043E\u0432\u0446\u044B \u0434\u0435\u043B\u0430\u044E\u0442 \u043E\u0442\u043B\u0438\u0447\u043D\u044B\u0435 \u043D\u0438\u0442\u043A\u0438.\"/><String id=\"MARKET PEARYOUGHURT NAME\" text=\"\u0419\u043E\u0433\u0443\u0440\u0442\u043E\u0432\u044B\u0439 \u0434\u043E\u043C\u0438\u043A\"/><String id=\"MARKET PEARYOUGHURT DESCRIPTION\" text=\"\u0417\u0434\u0435\u0441\u044C \u0433\u043E\u0442\u043E\u0432\u044F\u0442 \u043D\u0435\u0436\u043D\u044B\u0439 \u0439\u043E\u0433\u0443\u0440\u0442 \u0441 \u043A\u0443\u0441\u043E\u0447\u043A\u0430\u043C\u0438 \u0433\u0440\u0443\u0448\u0438.\"/><String id=\"MARKET WOOLMITTENS NAME\" text=\"\u0414\u043E\u043C\u0438\u043A "\u0420\u0443\u043A\u0430\u0432\u0438\u0447\u043A\u0438"\"/><String id=\"MARKET WOOLMITTENS DESCRIPTION\" text=\"\u0417\u0434\u0435\u0441\u044C \u0432\u044F\u0436\u0443\u0442 \u0442\u0435\u043F\u043B\u044B\u0435 \u0448\u0435\u0440\u0441\u0442\u044F\u043D\u044B\u0435 \u0440\u0443\u043A\u0430\u0432\u0438\u0447\u043A\u0438.\"/><String id=\"MARKET SCARF NAME\" text=\"\u0414\u043E\u043C\u0438\u043A "\u0428\u0430\u0440\u0444\u0438\u043A".\"/><String id=\"MARKET SCARF DESCRIPTION\" text=\"\u0417\u0434\u0435\u0441\u044C \u0432\u044F\u0436\u0443\u0442 \u043F\u0443\u0448\u0438\u0441\u0442\u044B\u0435 \u0448\u0435\u0440\u0441\u0442\u044F\u043D\u044B\u0435 \u0448\u0430\u0440\u0444\u0438\u043A\u0438.\"/><String id=\"MARKET PEACHCURD NAME\" text=\"\u0422\u0432\u043E\u0440\u043E\u0436\u043D\u044B\u0439 \u0434\u043E\u043C\u0438\u043A\"/><String id=\"MARKET PEACHCURD DESCRIPTION\" text=\"\u0417\u0434\u0435\u0441\u044C \u0433\u043E\u0442\u043E\u0432\u044F\u0442 \u0430\u043F\u043F\u0435\u0442\u0438\u0442\u043D\u044B\u0435 \u0442\u0432\u043E\u0440\u043E\u0436\u043A\u0438 \u0441 \u043F\u0435\u0440\u0441\u0438\u043A\u043E\u0432\u043E\u0439 \u043D\u0430\u0447\u0438\u043D\u043A\u043E\u0439.\"/><String id=\"MARKET FOODPANS NAME\" text=\"\u041D\u043E\u0432\u044B\u0435 \u043A\u043E\u0440\u043C\u0443\u0448\u043A\u0438\"/><String id=\"MARKET FOODPANS DESCRIPTION\" text=\"\u041F\u043E\u043C\u0435\u043D\u044F\u0439\u0442\u0435 \u0441\u0442\u0430\u0440\u044B\u0435 \u043A\u043E\u0440\u043C\u0443\u0448\u043A\u0438, \u0436\u0438\u0432\u043E\u0442\u043D\u044B\u043C \u0431\u0443\u0434\u0435\u0442 \u0434\u043E\u0441\u0442\u0430\u0432\u0430\u0442\u044C\u0441\u044F \u0431\u043E\u043B\u044C\u0448\u0435 \u043A\u043E\u0440\u043C\u0430.\"/><String id=\"MARKET WATERPANS NAME\" text=\"\u041D\u043E\u0432\u044B\u0435 \u043F\u043E\u0438\u043B\u043A\u0438\"/><String id=\"MARKET WATERPANS DESCRIPTION\" text=\"\u041F\u043E\u043C\u0435\u043D\u044F\u0439\u0442\u0435 \u0441\u0442\u0430\u0440\u044B\u0435 \u043F\u043E\u0438\u043B\u043A\u0438, \u0436\u0438\u0432\u043E\u0442\u043D\u044B\u043C \u0431\u0443\u0434\u0435\u0442 \u0434\u043E\u0441\u0442\u0430\u0432\u0430\u0442\u044C\u0441\u044F \u0431\u043E\u043B\u044C\u0448\u0435 \u0432\u043E\u0434\u044B.\"/><String id=\"MARKET SCOOTER NAME\" text=\"\u0421\u043A\u0443\u0442\u0435\u0440\"/><String id=\"MARKET SCOOTER DESCRIPTION\" text=\"\u0412\u043C\u0435\u0449\u0430\u0435\u0442 \u0432 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u0431\u043E\u043B\u044C\u0448\u0435 \u043F\u0440\u043E\u0434\u0443\u043A\u0442\u043E\u0432, \u0447\u0435\u043C \u0432\u0435\u043B\u043E\u0441\u0438\u043F\u0435\u0434.\"/><String id=\"MARKET MOTORCYCLE NAME\" text=\"\u041C\u043E\u0442\u043E\u0446\u0438\u043A\u043B\"/><String id=\"MARKET MOTORCYCLE DESCRIPTION\" text=\"\u0412\u043C\u0435\u0449\u0430\u0435\u0442 \u0432 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u0431\u043E\u043B\u044C\u0448\u0435 \u043F\u0440\u043E\u0434\u0443\u043A\u0442\u043E\u0432, \u0447\u0435\u043C \u0441\u043A\u0443\u0442\u0435\u0440.\"/><String id=\"MARKET MINITRUCK NAME\" text=\"\u0421\u0442\u0430\u0440\u044B\u0439 \u043F\u0438\u043A\u0430\u043F\"/><String id=\"MARKET MINITRUCK DESCRIPTION\" text=\"\u0413\u043E\u0434 \u0432\u044B\u0434\u0430\u043B\u0441\u044F \u0443\u0440\u043E\u0436\u0430\u0439\u043D\u044B\u043C, \u043F\u043E\u0440\u0430 \u043F\u043E\u043A\u0443\u043F\u0430\u0442\u044C \u0430\u0432\u0442\u043E\u043C\u043E\u0431\u0438\u043B\u044C.\"/><String id=\"MARKET TRUCK NAME\" text=\"\u041D\u043E\u0432\u044B\u0439 \u043F\u0438\u043A\u0430\u043F\"/><String id=\"MARKET TRUCK DESCRIPTION\" text=\"\u0412\u043C\u0435\u0441\u0442\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u0430\u0432\u0442\u043E\u043C\u043E\u0431\u0438\u043B\u044C \u0434\u043B\u044F \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0435\u0433\u043E \u0444\u0435\u0440\u043C\u0435\u0440\u0430.\"/><String id=\"MARKET WELL2 NAME\" text=\"\u041A\u043E\u043B\u043E\u0434\u0435\u0446 \u0441 \u043D\u0430\u0441\u043E\u0441\u043E\u043C.\"/><String id=\"MARKET WELL2 DESCRIPTION\" text=\"\u041F\u043E\u0434\u043D\u0438\u043C\u0430\u0435\u0442 \u0434\u0432\u0430 \u0432\u0435\u0434\u0440\u0430 \u0441 \u0432\u043E\u0434\u043E\u0439 \u043E\u0434\u043D\u043E\u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E.\"/><String id=\"MARKET WELL3 NAME\" text=\"\u041A\u043E\u043B\u043E\u0434\u0435\u0446 \u0441 \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u0430\u0441\u043E\u0441\u043E\u043C.\"/><String id=\"MARKET WELL3 DESCRIPTION\" text=\"\u0427\u0442\u043E\u0431\u044B \u043D\u0430\u0431\u0440\u0430\u0442\u044C \u0434\u0432\u0430 \u0432\u0435\u0434\u0440\u0430 \u0432\u043E\u0434\u044B, \u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u043E \u043D\u0430\u0436\u0430\u0442\u044C \u043D\u0430 \u0440\u044B\u0447\u0430\u0433.\"/><String id=\"MARKET WELL4 NAME\" text=\"\u041A\u043E\u043B\u043E\u0434\u0435\u0446 \u00AB\u0426\u0418\u041A\u041B\u041E\u041D-1\u00BB\"/><String id=\"MARKET WELL4 DESCRIPTION\" text=\"\u041E\u0434\u043D\u043E \u043D\u0430\u0436\u0430\u0442\u0438\u0435 \u043A\u043D\u043E\u043F\u043A\u0438 - \u0438 \u043E\u0431\u0430 \u0432\u0435\u0434\u0440\u0430 \u043D\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u044B.\"/><String id=\"MARKET WINDMILL NAME\" text=\"\u0412\u0435\u0442\u0440\u044F\u043D\u0430\u044F \u041C\u0435\u043B\u044C\u043D\u0438\u0446\u0430\"/><String id=\"MARKET WINDMILL DESCRIPTION\" text=\"\u0412\u0435\u0442\u0440\u044F\u043D\u0430\u044F \u043C\u0435\u043B\u044C\u043D\u0438\u0446\u0430 \u0440\u0430\u0437\u043C\u0430\u043B\u044B\u0432\u0430\u0435\u0442 \u0437\u0435\u0440\u043D\u043E \u0432 \u043C\u0443\u043A\u0443.\"/><String id=\"MARKET BAKERY NAME\" text=\"\u0425\u043B\u0435\u0431\u043E\u043F\u0435\u043A\u0430\u0440\u043D\u044F\"/><String id=\"MARKET BAKERY DESCRIPTION\" text=\"\u0417\u0434\u0435\u0441\u044C \u0432\u044B\u043F\u0435\u043A\u0430\u0435\u0442\u0441\u044F \u0434\u0443\u0448\u0438\u0441\u0442\u044B\u0439 \u0445\u043B\u0435\u0431.\"/><String id=\"MARKET BOOTS NAME\" text=\"\u0423\u0434\u043E\u0431\u043D\u0430\u044F \u043E\u0431\u0443\u0432\u044C\"/><String id=\"MARKET BOOTS DESCRIPTION\" text=\"\u0412 \u0443\u0434\u043E\u0431\u043D\u043E\u0439 \u043E\u0431\u0443\u0432\u0438 \u0410\u043D\u044F \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043E\u0442\u0430\u0442\u044C \u043D\u0430\u043C\u043D\u043E\u0433\u043E \u0431\u044B\u0441\u0442\u0440\u0435\u0435.\"/><String id=\"MARKET GLOVES NAME\" text=\"\u0420\u0430\u0431\u043E\u0447\u0438\u0435 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438\"/><String id=\"MARKET GLOVES DESCRIPTION\" text=\"\u041D\u043E\u0432\u044B\u0435 \u043A\u0440\u0435\u043F\u043A\u0438\u0435 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 \u0437\u0430\u0449\u0438\u0442\u044F\u0442 \u0440\u0443\u043A\u0438 \u0410\u043D\u0438 \u043E\u0442 \u043C\u043E\u0437\u043E\u043B\u0435\u0439. \u0414\u0435\u0432\u0443\u0448\u043A\u0430 \u0441\u0442\u0430\u043D\u0435\u0442 \u0440\u0430\u0431\u043E\u0442\u0430\u0442\u044C \u0431\u044B\u0441\u0442\u0440\u0435\u0435.\"/><String id=\"MARKET WATERINGCAN NAME\" text=\"\u041B\u0435\u0439\u043A\u0430 \u0441 \u0440\u0430\u0441\u043F\u044B\u043B\u0438\u0442\u0435\u043B\u0435\u043C\"/><String id=\"MARKET WATERINGCAN DESCRIPTION\" text=\"\u0412 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u043F\u043E\u043B\u0438\u0432\u0430 \u0440\u0430\u0441\u0442\u0435\u043D\u0438\u0439.\"/><String id=\"MARKET HOE NAME\" text=\"\u0414\u0432\u0443\u0441\u0442\u043E\u0440\u043E\u043D\u043D\u044F\u044F \u0442\u044F\u043F\u043A\u0430\"/><String id=\"MARKET HOE DESCRIPTION\" text=\"\u041B\u0435\u0433\u043A\u0430\u044F \u0442\u044F\u043F\u043A\u0430 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043E\u0434\u043D\u043E\u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E \u043F\u0440\u043E\u043F\u0430\u043B\u044B\u0432\u0430\u0442\u044C \u0441\u043E\u0440\u043D\u044F\u043A\u0438 \u0438 \u0440\u044B\u0445\u043B\u0438\u0442\u044C \u0437\u0435\u043C\u043B\u044E.\"/><String id=\"MARKET RAZOR NAME\" text=\"\u041C\u0430\u0448\u0438\u043D\u043A\u0430 \u0434\u043B\u044F \u0441\u0442\u0440\u0438\u0436\u043A\u0438 \u043E\u0432\u0435\u0446\"/><String id=\"MARKET RAZOR DESCRIPTION\" text=\"\u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043F\u043E\u0441\u0442\u0440\u0438\u0447\u044C \u043E\u0432\u0446\u0443 \u0437\u0430 \u0441\u0447\u0438\u0442\u0430\u043D\u043D\u044B\u0435 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.\"/><String id=\"MARKET COCKTAIL NAME\" text=\"\u042D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043A\u043E\u043A\u0442\u0435\u0439\u043B\u044C\"/><String id=\"MARKET COCKTAIL DESCRIPTION\" text=\"\u042D\u0442\u043E\u0442 \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u043F\u0440\u0438\u0434\u0430\u0435\u0442 \u0431\u043E\u0434\u0440\u043E\u0441\u0442\u0438 \u0438 \u043F\u043E\u0432\u044B\u0448\u0430\u0435\u0442 \u0440\u0430\u0431\u043E\u0442\u043E\u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C.\"/><String id=\"MARKET SCYTHE NAME\" text=\"\u041E\u0431\u043B\u0435\u0433\u0447\u0451\u043D\u043D\u0430\u044F \u043A\u043E\u0441\u0430\"/><String id=\"MARKET SCYTHE DESCRIPTION\" text=\"\u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u044F \u043D\u043E\u0432\u043E\u0439 \u044D\u043A\u0441\u043F\u0435\u0440\u0438\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u043E\u0439 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0438 \u043A\u043E\u0441\u0430 \u0441\u0442\u0430\u043B\u0430 \u043B\u0435\u0433\u0447\u0435 \u0438 \u043A\u043E\u0441\u0438\u0442 \u043D\u0430\u043C\u043D\u043E\u0433\u043E \u0431\u044B\u0441\u0442\u0440\u0435\u0435.\"/><String id=\"MARKET SHELVES NAME\" text=\"\u041D\u043E\u0432\u0430\u044F \u043E\u0433\u0440\u0430\u0434\u0430\"/><String id=\"MARKET SHELVES DESCRIPTION\" text=\"\u041D\u043E\u0432\u044B\u0439 \u0437\u0430\u0431\u043E\u0440 \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u043F\u043B\u043E\u0449\u0430\u0434\u044C \u0437\u0430\u0433\u043E\u043D\u0430: \u0432 \u043D\u0435\u0433\u043E \u043F\u043E\u043C\u0435\u0441\u0442\u044F\u0442\u0441\u044F \u0447\u0435\u0442\u044B\u0440\u0435 \u0436\u0438\u0432\u043E\u0442\u043D\u044B\u0445 \u0438\u043B\u0438 \u043F\u0442\u0438\u0446\u044B \u0432\u043C\u0435\u0441\u0442\u043E \u0442\u0440\u0435\u0445.\"/><String id=\"MARKET DEFENCE NAME\" text=\"\u0411\u043E\u0440\u0434\u044E\u0440 \u0434\u043B\u044F \u0433\u0440\u044F\u0434\u043E\u043A.\"/><String id=\"MARKET DEFENCE DESCRIPTION\" text=\"\u0427\u0430\u0441\u0442\u0438\u0447\u043D\u043E \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442 \u0433\u0440\u044F\u0434\u043A\u0443 \u043E\u0442 \u043F\u0440\u043E\u043D\u0438\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u044F \u0441\u043E\u0440\u043D\u044F\u043A\u043E\u0432.\"/><String id=\"MARKET FRUITDEFENCE NAME\" text=\"\u0411\u043E\u0440\u0434\u044E\u0440 \u0434\u043B\u044F \u0433\u0440\u044F\u0434\u043E\u043A.\"/><String id=\"MARKET FRUITDEFENCE DESCRIPTION\" text=\"\u0417\u0430\u0449\u0438\u0449\u0430\u0435\u0442 \u0433\u0440\u044F\u0434\u043A\u0443 \u043E\u0442 \u0436\u0443\u043A\u043E\u0432-\u0432\u0440\u0435\u0434\u0438\u0442\u0435\u043B\u0435\u0439.\"/><String id=\"MARKET ENTRANCE NAME\" text=\"\u0410\u0441\u0444\u0430\u043B\u044C\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430.\"/><String id=\"MARKET ENTRANCE DESCRIPTION\" text=\"\u041E\u0431\u043B\u0435\u0433\u0447\u0430\u0435\u0442 \u0432\u044B\u0435\u0437\u0434 \u0441 \u0442\u0435\u0440\u0440\u0438\u0442\u043E\u0440\u0438\u0438 \u0444\u0435\u0440\u043C\u044B, \u0441\u043E\u043A\u0440\u0430\u0449\u0430\u0435\u0442 \u0432\u0440\u0435\u043C\u044F \u043D\u0430 \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0443 \u043F\u0440\u043E\u0434\u0443\u043A\u0442\u043E\u0432.\"/><String id=\"MARKET FLOWERS NAME\" text=\"\u0426\u0432\u0435\u0442\u044B\"/><String id=\"MARKET FLOWERS DESCRIPTION\" text=\"\u041F\u043E\u0432\u044B\u0448\u0430\u044E\u0442 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0435 \u0440\u0430\u0431\u043E\u0442\u043D\u0438\u043A\u043E\u0432 \u0438 \u0438\u0445 \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0442\u0440\u0443\u0434\u0430.\"/><String id=\"MARKET TILES NAME\" text=\"\u0422\u0440\u043E\u0442\u0443\u0430\u0440\u043D\u0430\u044F \u043F\u043B\u0438\u0442\u043A\u0430\"/><String id=\"MARKET TILES DESCRIPTION\" text=\"\u0423\u043B\u0443\u0447\u0448\u0430\u0435\u0442 \u043C\u0438\u043A\u0440\u043E\u043A\u043B\u0438\u043C\u0430\u0442 \u043D\u0430 \u0444\u0435\u0440\u043C\u0435.\"/><String id=\"MARKET TILEDAREA NAME\" text=\"\u041E\u0431\u043B\u0438\u0446\u043E\u0432\u0430\u043D\u043D\u0430\u044F \u043F\u043B\u043E\u0449\u0430\u0434\u043A\u0430\"/><String id=\"MARKET TILEDAREA DESCRIPTION\" text=\"\u041F\u043E \u0438\u0434\u0435\u0430\u043B\u044C\u043D\u043E \u0440\u043E\u0432\u043D\u043E\u0439 \u043F\u043E\u0432\u0435\u0440\u0445\u043D\u043E\u0441\u0442\u0438 \u0410\u043D\u044F \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u0434\u0432\u0438\u0433\u0430\u0442\u044C\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435.\"/><String id=\"MARKET STRONGBULL NAME\" text=\"\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u042D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u043A\"/><String id=\"MARKET STRONGBULL DESCRIPTION\" text=\"\u041F\u0440\u0438\u0434\u0430\u0441\u0442 \u0410\u043D\u0435 \u043C\u043D\u043E\u0433\u043E \u0441\u0438\u043B \u0438 \u044D\u043D\u0435\u0440\u0433\u0438\u0438.\"/><String id=\"MARKET CHEESE NAME\" text=\"\u0421\u044B\u0440\u043E\u0432\u0430\u0440\u043D\u044F\"/><String id=\"MARKET CHEESE DESCRIPTION\" text=\"\u0417\u0434\u0435\u0441\u044C \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0441\u044B\u0440 \u0440\u0430\u0437\u043B\u0438\u0447\u043D\u044B\u0445 \u0441\u043E\u0440\u0442\u043E\u0432.\"/><String id=\"MARKET MELON NAME\" text=\"\u0414\u044B\u043D\u044F\"/><String id=\"MARKET MELON DESCRIPTION\" text=\"\u0421\u0435\u043C\u0435\u043D\u0430 \u0430\u0440\u043E\u043C\u0430\u0442\u043D\u043E\u0439 \u0434\u044B\u043D\u0438.\"/><String id=\"MARKET APPLE NAME\" text=\"\u042F\u0431\u043B\u043E\u043A\u043E\"/><String id=\"MARKET APPLE DESCRIPTION\" text=\"\u0421\u0430\u0436\u0435\u043D\u0446\u044B \u044F\u0431\u043B\u043E\u043D\u044C.\"/><String id=\"MARKET PEAR NAME\" text=\"\u0413\u0440\u0443\u0448\u0430\"/><String id=\"MARKET PEAR DESCRIPTION\" text=\"\u0421\u0430\u0436\u0435\u043D\u0446\u044B \u0433\u0440\u0443\u0448.\"/><String id=\"MARKET PLUM NAME\" text=\"\u0421\u043B\u0438\u0432\u0430\"/><String id=\"MARKET PLUM DESCRIPTION\" text=\"\u0421\u0430\u0436\u0435\u043D\u0446\u044B \u0441\u043B\u0438\u0432.\"/><String id=\"MARKET PEACH NAME\" text=\"\u041F\u0435\u0440\u0441\u0438\u043A\"/><String id=\"MARKET PEACH DESCRIPTION\" text=\"\u0421\u0430\u0436\u0435\u043D\u0446\u044B \u043F\u0435\u0440\u0441\u0438\u043A\u043E\u0432.\"/><String id=\"MARKET MELONPIEBAKERY NAME\" text=\"\u041A\u043E\u043D\u0434\u0438\u0442\u0435\u0440\u0441\u043A\u0430\u044F\"/><String id=\"MARKET MELONPIEBAKERY DESCRIPTION\" text=\"\u0417\u0434\u0435\u0441\u044C \u0432\u044B\u043F\u0435\u043A\u0430\u044E\u0442\u0441\u044F \u0441\u0434\u043E\u0431\u043D\u044B\u0435 \u043F\u0438\u0440\u043E\u0433\u0438 \u0441 \u0434\u044B\u043D\u043D\u044B\u043C \u0434\u0436\u0435\u043C\u043E\u043C.\"/><String id=\"OPTIONS\" text=\"\u041E\u041F\u0426\u0418\u0418\"/><String id=\"ENTER NAME\" text=\"\u0412\u0412\u0415\u0414\u0418\u0422\u0415 \u0412\u0410\u0428\u0415 \u0418\u041C\u042F\" size=\"-10\"/><String id=\"SOLD\" text=\"\u041F\u0420\u041E\u0414\u0410\u041D\u041E\" size=\"-10\"/><String id=\"ANY KEY\" text=\"\u041D\u0410\u0416\u041C\u0418\u0422\u0415 \u041B\u042E\u0411\u0423\u042E \u041A\u041B\u0410\u0412\u0418\u0428\u0423\" size=\"-3\"/><String id=\"DAY\" text=\"\u0414\u0415\u041D\u042C\"/><String id=\"LOADING\" text=\"\u0417\u0410\u0413\u0420\u0423\u0417\u041A\u0410\"/><String id=\"LEVEL GOAL\" text=\"\u0426\u0415\u041B\u042C \u0423\u0420\u041E\u0412\u041D\u042F\"/><String id=\"BONUS LEVEL\" text=\"\u0411\u041E\u041D\u0423\u0421\u041D\u042B\u0419 \u0423\u0420\u041E\u0412\u0415\u041D\u042C\"/><String id=\"EARN\" text=\"\u0417\u0410\u0420\u0410\u0411\u041E\u0422\u0410\u0422\u042C\" size=\"-1\"/><String id=\"COLLECT\" text=\"\u041F\u0420\u041E\u0414\u0410\u0422\u042C\"/><String id=\"GROW\" text=\"\u0412\u042B\u0420\u0410\u0421\u0422\u0418\u0422\u042C\"/><String id=\"DEVELOP\" text=\"\u041F\u0420\u041E\u0426\u0412\u0415\u0422\u0410\u041D\u0418\u0415\"/><String id=\"FIND\" text=\"\u041D\u0410\u0419\u0422\u0418\"/><String id=\"LEVEL TIME\" text=\"\u0412\u0420\u0415\u041C\u042F\"/><String id=\"MAX SUMM\" text=\"\u041E\u0411\u0429\u0410\u042F \u0421\u0423\u041C\u041C\u0410\"/><String id=\"MARKET HISBOOTS NAME\" text=\"\u0421\u0430\u0434\u043E\u0432\u0430\u044F \u043E\u0431\u0443\u0432\u044C.\"/><String id=\"MARKET HISBOOTS DESCRIPTION\" text=\"\u0423\u0434\u043E\u0431\u043D\u0430\u044F \u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u0430\u044F \u043E\u0431\u0443\u0432\u044C \u0434\u043B\u044F \u043F\u043E\u0436\u0438\u043B\u044B\u0445 \u043B\u044E\u0434\u0435\u0439.\"/><String id=\"QUANTITY\" text=\"\u041A\u041E\u041B\u0418\u0427\u0415\u0421\u0422\u0412\u041E\"/><String id=\"SELL PRICE\" text=\"\u041F\u0420\u041E\u0414\u0410\u0416\u0410\"/><String id=\"SELL\" text=\"\u041F\u0420\u041E\u0414\u0410\u0422\u042C\" size=\"-10\" /><String id=\"MAP\" text=\"\u041A\u0410\u0420\u0422\u0410\"/><String id=\"PLAY\" text=\"\u0418\u0413\u0420\u0410\u0422\u042C\" size=\"-3\" x=\"-8\"/><String id=\"BACK\" text=\"\u041D\u0410\u0417\u0410\u0414\" x=\"10\"/><String id=\"ACTION\" text=\"\u0414\u0415\u0419\u0421\u0422\u0412\u0418\u0415\"/><String id=\"SHOW HINTS\" text=\"\u041F\u041E\u0414\u0421\u041A\u0410\u0417\u041A\u0418\"/><String id=\"CONTINUE\" text=\"\u0414\u0410\u041B\u042C\u0428\u0415\"/><String id=\"BUY HINT\" text=\"\u041D\u0415\u041E\u0411\u0425\u041E\u0414\u0418\u041C\u041E \u041A\u0423\u041F\u0418\u0422\u042C\" size=\"4\" x=\"0\" y=\"-2\"/><String id=\"SELL HINT 1\" text=\"\u0412\u0430\u043C \u0441\u043B\u0435\u0434\u0443\u0435\u0442 \u0441\u043D\u0430\u0447\u0430\u043B\u0430 \u043F\u0440\u043E\u0434\u0430\u0442\u044C \"/><String id=\"SELL HINT 2\" text=\" \"/><String id=\"SELL GOSLING\" text=\"\u0413\u0423\u0421\u0415\u041D\u041E\u041A\u0410\"/><String id=\"SELL CHICKEN\" text=\"\u0426\u042B\u041F\u041B\u0415\u041D\u041E\u041A\u0410\"/><String id=\"SELL TURKEYKID\" text=\"\u0418\u041D\u0414\u042E\u0428\u041E\u041D\u041E\u041A\u0410\"/><String id=\"SELL LAMB\" text=\"\u042F\u0413\u041D\u0415\u041D\u041E\u041A\u0410\"/><String id=\"SELL BROWNLAMB\" text=\"\u0411\u0423\u0420\u041E\u0413\u041E \u042F\u0413\u041D\u0415\u041D\u041A\u0410\"/><String id=\"SELL GOATKID\" text=\"\u041A\u041E\u0417\u041B\u0415\u041D\u041A\u0410\"/><String id=\"SELL WHITEGOATKID\" text=\"\u0411\u0415\u041B\u041E\u0413\u041E \u041A\u041E\u0417\u041B\u0415\u041D\u041A\u0410\"/><String id=\"SELL CALF\" text=\"\u0422\u0415\u041B\u0415\u041D\u041A\u0410\"/><String id=\"SELL BROWNCALF\" text=\"\u0411\u0423\u0420\u041E\u0413\u041E \u0422\u0415\u041B\u0415\u041D\u041A\u0410\"/><String id=\"SELL GOOSE\" text=\"\u0413\u0423\u0421\u042B\u041D\u042E\"/><String id=\"SELL HEN\" text=\"\u041A\u0423\u0420\u0418\u0426\u0423\"/><String id=\"SELL TURKEY\" text=\"\u0418\u041D\u0414\u042E\u0428\u041A\u0423\"/><String id=\"SELL SHEEP\" text=\"\u041E\u0412\u0426\u0423\"/><String id=\"SELL BROWNSHEEP\" text=\"\u0411\u0423\u0420\u0423\u042E \u041E\u0412\u0426\u0423\"/><String id=\"SELL GOAT\" text=\"\u041A\u041E\u0417\u0423\"/><String id=\"SELL WHITEGOAT\" text=\"\u0411\u0415\u041B\u0423\u042E \u041A\u041E\u0417\u0423\"/><String id=\"SELL COW\" text=\"\u041A\u041E\u0420\u041E\u0412\u0423\"/><String id=\"SELL BROWNCOW\" text=\"\u0411\u0423\u0420\u0423\u042E \u041A\u041E\u0420\u041E\u0412\u0423\"/><String id=\"BRIEFING 1\" text=\"\u0420\u0430\u0441\u0442\u0435\u043D\u0438\u044F\u043C \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C \u0440\u0435\u0433\u0443\u043B\u044F\u0440\u043D\u044B\u0439 \u043F\u043E\u043B\u0438\u0432. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u0434\u043B\u044F \u043F\u043E\u043B\u0438\u0432\u0430 \u0432\u043E\u0434\u0443 \u0438\u0437 \u043A\u043E\u043B\u043E\u0434\u0446\u0430.\"/><String id=\"BRIEFING 2\" text=\"\u041E\u0432\u043E\u0449\u0438 \u043D\u0443\u0436\u043D\u043E \u043F\u0440\u043E\u043F\u0430\u043B\u044B\u0432\u0430\u0442\u044C \u043E\u0442 \u0441\u043E\u0440\u043D\u044F\u043A\u043E\u0432.\"/><String id=\"BRIEFING 3\" text=\"\u0427\u0442\u043E\u0431\u044B \u0432\u044B\u0440\u0430\u0441\u0442\u0438\u0442\u044C \u0432\u0437\u0440\u043E\u0441\u043B\u0443\u044E \u0433\u0443\u0441\u044B\u043D\u044E, \u0440\u0435\u0433\u0443\u043B\u044F\u0440\u043D\u043E \u043A\u043E\u0440\u043C\u0438\u0442\u0435 \u0433\u0443\u0441\u0435\u043D\u043A\u0430 \u0437\u0435\u0440\u043D\u043E\u043C.\"/><String id=\"BRIEFING 4\" text=\"\u0417\u0430\u0439\u0446\u044B \u0432\u0440\u0435\u0434\u044F\u0442 \u043F\u043E\u0441\u0435\u0432\u0430\u043C. \u041A\u043B\u0438\u043A\u043D\u0438\u0442\u0435 \u043F\u043E \u0437\u0430\u0439\u0446\u0443, \u0447\u0442\u043E\u0431\u044B \u0441\u043F\u0443\u0433\u043D\u0443\u0442\u044C \u0435\u0433\u043E. \u0427\u0442\u043E\u0431\u044B \u043F\u0440\u043E\u0433\u043D\u0430\u0442\u044C \u0441\u043E\u0432\u0441\u0435\u043C, \u043A\u043B\u0438\u043A\u043D\u0438\u0442\u0435 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0440\u0430\u0437.\" y=\"-8\"/><String id=\"BRIEFING 5\" text=\"10 \u043E\u0432\u0435\u0446 \u0441\u043F\u0440\u044F\u0442\u0430\u043B\u0438\u0441\u044C \u043E\u0442 \u0432\u043E\u043B\u043A\u043E\u0432. \u041F\u043E\u0441\u0442\u0430\u0440\u0430\u0439\u0442\u0435\u0441\u044C \u043D\u0430\u0439\u0442\u0438 \u0432\u0441\u0435\u0445 \u043E\u0432\u0435\u0447\u0435\u043A \u0437\u0430 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F.\"/><String id=\"BRIEFING 6\" text=\"\u0415\u0441\u043B\u0438 \u0433\u0443\u0441\u044B\u043D\u044E \u0432\u043E\u0432\u0440\u0435\u043C\u044F \u043A\u043E\u0440\u043C\u0438\u0442\u044C \u0438 \u043F\u043E\u0438\u0442\u044C, \u043E\u043D\u0430 \u043D\u0435\u0441\u0435\u0442 \u044F\u0439\u0446\u0430.\"/><String id=\"BRIEFING 7\" text=\"\u041A\u043E\u0440\u043C\u0438\u0442\u0435 \u044F\u0433\u043D\u0435\u043D\u043A\u0430 \u0441\u043E\u0447\u043D\u044B\u043C \u043A\u043B\u0435\u0432\u0435\u0440\u043E\u043C, \u0438 \u043E\u043D \u0431\u044B\u0441\u0442\u0440\u043E \u0432\u044B\u0440\u0430\u0441\u0442\u0435\u0442 \u0432\u043E \u0432\u0437\u0440\u043E\u0441\u043B\u0443\u044E \u043E\u0432\u0446\u0443.\"/><String id=\"BRIEFING 8\" text=\"\u042D\u0442\u0430 \u043F\u043E\u0440\u043E\u0434\u0430 \u043E\u0432\u0435\u0446 \u0434\u0430\u0435\u0442 \u0448\u0435\u0440\u0441\u0442\u044C \u0432\u044B\u0441\u043E\u043A\u043E\u0433\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430. \u041D\u0435 \u0437\u0430\u0431\u044B\u0432\u0430\u0439\u0442\u0435 \u0432\u043E\u0432\u0440\u0435\u043C\u044F \u043A\u043E\u0440\u043C\u0438\u0442\u044C \u0438 \u0441\u0442\u0440\u0438\u0447\u044C \u0441\u0432\u043E\u0438\u0445 \u043E\u0432\u0435\u0446.\"/><String id=\"BRIEFING 9\" text=\"\u0412\u043E\u0440\u043E\u043D\u044B \u043F\u043E\u0440\u0442\u044F\u0442 \u043F\u043E\u0441\u0435\u0432\u044B. \u041A\u043E\u0433\u0434\u0430 \u0432\u043E\u0440\u043E\u043D\u0430 \u0441\u044F\u0434\u0435\u0442, \u043A\u043B\u0438\u043A\u043D\u0438\u0442\u0435 \u043F\u043E \u043D\u0435\u0439, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u043E\u0433\u043D\u0430\u0442\u044C.\"/><String id=\"BRIEFING 10\" text=\"\u0413\u0434\u0435-\u0442\u043E \u0437\u0434\u0435\u0441\u044C \u0441\u043F\u0440\u044F\u0442\u0430\u043B\u0438\u0441\u044C 5 \u043E\u0432\u0435\u0446 \u0438 5 \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u0438\u0445 \u044F\u0433\u043D\u044F\u0442. \u041D\u0430\u0439\u0434\u0438\u0442\u0435 \u0438\u0445 \u0432\u0441\u0435\u0445!\"/><String id=\"BRIEFING 11\" text=\"\u0415\u0441\u043B\u0438 \u043A\u043E\u0440\u043C\u0443\u0448\u043A\u0430 \u0446\u044B\u043F\u043B\u0435\u043D\u043A\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u043F\u043E\u043B\u043D\u043E\u0439, \u043E\u043D \u0431\u044B\u0441\u0442\u0440\u043E \u0441\u0442\u0430\u043D\u0435\u0442 \u043A\u0443\u0440\u0438\u0446\u0435\u0439-\u043D\u0435\u0441\u0443\u0448\u043A\u043E\u0439.\"/><String id=\"BRIEFING 12\" text=\"\u0421\u044B\u0442\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 \u043D\u0435\u0441\u0435\u0442 \u043E\u0442\u043B\u0438\u0447\u043D\u044B\u0435 \u044F\u0439\u0446\u0430.\"/><String id=\"BRIEFING 13\" text=\"\u041F\u0435\u0440\u0435\u043C\u0435\u043B\u0438\u0442\u0435 \u043F\u0448\u0435\u043D\u0438\u0446\u0443. \u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 \u043C\u0443\u043A\u0443 \u0432\u044B\u0441\u0448\u0435\u0433\u043E \u0441\u043E\u0440\u0442\u0430, \u0438\u0437 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u0431\u0430\u0431\u0443\u0448\u043A\u0430 \u041C\u0430\u0448\u0430 \u0438\u0441\u043F\u0435\u0447\u0435\u0442 \u0434\u043E\u043C\u0430\u0448\u043D\u0438\u0439 \u0445\u043B\u0435\u0431.\"/><String id=\"BRIEFING 14\"/><String id=\"BRIEFING 15\" text=\"\u041E\u0442\u044B\u0449\u0438\u0442\u0435 10 \u043E\u0432\u0435\u0446 \u0438 \u0441\u043F\u0430\u0441\u0438\u0442\u0435 \u0438\u0445 \u043E\u0442 \u0432\u043E\u043B\u043A\u043E\u0432!\"/><String id=\"PAGE\" text=\"\u0421\u0422\u0420\u0410\u041D\u0418\u0426\u0410:\"/><String id=\"OPTIONS INGAME\" text=\"\u041E\u041F\u0426\u0418\u0418\"/><String id=\"OPTIONS OPTIONS\" text=\"\u041E\u041F\u0426\u0418\u0418\"/><String id=\"PLAY MAP\" text=\"\u0418\u0413\u0420\u0410\u0422\u042C\" size=\"-3\" x=\"-8\"/><String id=\"INGAME HELP\" text=\"\u041F\u041E\u041C\u041E\u0429\u042C\"/><String id=\"SHOW HINTS OPTIONS\" text=\"\u041F\u041E\u041A\u0410\u0417\u042B\u0412\u0410\u0422\u042C \u041F\u041E\u0414\u0421\u041A\u0410\u0417\u041A\u0418\" size=\"-4\"/><String id=\"SELL SHOP\" text=\"\u041F\u0420\u041E\u0414\u0410\u0422\u042C\" size=\"-10\" x=\"11\"/><String id=\"MENU MAP\" text=\"\u041C\u0415\u041D\u042E\" x=\"10\"/><String id=\"BACK SHOP\" text=\"\u041D\u0410\u0417\u0410\u0414\" x=\"-8\"/>"));
if (LANG == EN) {
strings = ENG;
}
if (LANG == RU) {
strings = RUS;
}
idMappedXML = new XML();
idMappedXML.parseXML(strings);
}
static function getXML(id) {
var returnedXML = null;
returnedXML = idMappedXML.idMap[id];
return(returnedXML);
}
static function getText(id) {
var returnedXML = null;
returnedXML = idMappedXML.idMap[id];
return(String(returnedXML.attributes.text));
}
static var LANG = Helper.LANGUAGE;
static var RU = "RU";
static var EN = "EN";
}
Symbol 778 MovieClip [__Packages.com.base.ads.ADS] Frame 0
class com.base.ads.ADS extends MovieClip
{
static var hasChild, exFunc, exCaller, exArgs, CLIPINSTANCE, remId, clockId, clockTxt;
var createEmptyMovieClip, onRelease, aBitmap, removeMovieClip, attachBitmap;
function ADS () {
super();
}
static function showIngameAds(mc_Parent, aFunc, aCaller, aArgs, aChild, clockLength) {
hasChild = false;
var adsmc = mc_Parent.attachMovie("_ads", "adsmc", mc_Parent.getNextHighestDepth(), {_alpha:0});
adsmc.removeMovieClip();
if (clockLength != undefined) {
CLOCKLENGTH = clockLength;
}
if (aChild != undefined) {
var childClip = adsmc.attachMovie(aChild, aChild + "1", CHILDDEPTH);
hasChild = true;
}
adsmc.create(aFunc, aCaller, aArgs);
}
function create(aFunc, aCaller, aArgs) {
exFunc = aFunc;
exCaller = aCaller;
exArgs = aArgs;
if (addBitmap()) {
CLIPINSTANCE = this;
remId = setInterval(this, "removeIt", CLOCKLENGTH);
clockId = setInterval(this, "showClock", 1000);
clockTxt = createEmptyMovieClip("mc_Clock", CLOCKDEPTH);
var aText = clockTxt.createTextField("mc_txt", 0, Stage.width - 50, 0, 50, 30);
var aFormat = new TextFormat();
aFormat.bold = true;
aText.setTextFormat(aFormat);
aText.setNewTextFormat(aFormat);
aText.selectable = false;
aText.text = String(CLOCKLENGTH / 1000);
com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_alpha", [100], 1, mx.transitions.easing.Regular.easeIn, 0);
} else {
removeIt();
}
if (Helper.INGAMECLICK == true) {
if (hasChild == false) {
onRelease = function () {
this.getURL(Helper.ADSLINK, "_blank");
};
}
}
}
function showClock() {
if ((Number(CLIPINSTANCE.mc_Clock.mc_txt.text) - 1) >= 10) {
CLIPINSTANCE.mc_Clock.mc_txt.text = String(Number(CLIPINSTANCE.mc_Clock.mc_txt.text) - 1);
} else {
CLIPINSTANCE.mc_Clock.mc_txt.text = "0" + String(Number(CLIPINSTANCE.mc_Clock.mc_txt.text) - 1);
}
}
function removeIt() {
clockTxt.removeMovieClip();
aBitmap.dispose();
exFunc.apply(exCaller, exArgs);
clearInterval(remId);
clearInterval(clockId);
removeMovieClip();
CLIPINSTANCE.removeMovieClip();
}
function addBitmap() {
var bName = ("splash" + LASTNUM);
LASTNUM++;
if (LASTNUM > 3) {
LASTNUM = 1;
}
aBitmap = flash.display.BitmapData.loadBitmap(bName);
if (aBitmap == undefined) {
return(false);
}
attachBitmap(aBitmap, BITMAPDEPTH);
return(true);
}
static var CLOCKDEPTH = 1000;
static var CHILDDEPTH = 100;
static var BITMAPDEPTH = 50;
static var LASTNUM = 1;
static var CLOCKLENGTH = 7000;
}
Symbol 779 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
return(((c * ((t = t / d))) * t) + b);
}
static function easeOut(t, b, c, d) {
return((((-c) * ((t = t / d))) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
if (((t = t / (d / 2))) < 1) {
return((((c / 2) * t) * t) + b);
}
return((((-c) / 2) * (((--t) * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 780 MovieClip [__Packages.com.base.ads.GetFullMenu] Frame 0
class com.base.ads.GetFullMenu extends MovieClip
{
var fnkScope, nxtFnk, b_getIt, b_later, removeMovieClip, unloadMovie;
function GetFullMenu () {
super();
}
function create(fnkScope, nxtFnk) {
this.fnkScope = fnkScope;
this.nxtFnk = nxtFnk;
b_getIt.onRelease = mx.utils.Delegate.create(this, Helper.GetIt);
b_later.onRelease = mx.utils.Delegate.create(this, _destroy);
}
function _destroy() {
nxtFnk.apply(fnkScope);
for (var name in this) {
this[name].removeMovieClip();
this[name].unloadMovie();
removeMovieClip();
unloadMovie();
}
delete this;
}
}
Symbol 781 MovieClip [__Packages.com.game.minigames.MiniGame] Frame 0
class com.game.minigames.MiniGame
{
var scope, mc_badClick, gameGoal, goalCounter, alarmClock, but, dispatchEvent, findFuseAnim;
function MiniGame (scope, xml) {
levelIsDone = false;
levelIsLost = false;
this.scope = scope;
var bgName = com.utils.XMLObjFinder.findNode(xml, "Background").attributes.img;
mc_badClick = createGameBG(bgName);
createInteractiveItem(xml.firstChild);
createGoal();
}
function createIcon(src) {
var node = com.data.GUIxml.getXML("getGui", src).firstChild;
var mc = addObj(node, scope);
return(mc);
}
function createGameBG(src) {
var node = com.data.GUIxml.getXML("getGui", src).firstChild;
var mc = addObj(node, scope);
return(mc);
}
function createInteractiveItem(nodes) {
var node;
var mc;
var i = 1;
while (i <= nodes.childNodes.length) {
node = nodes.childNodes[i - 1];
if (node.nodeName == "Item") {
var mc = addObj(node, scope);
mc.animObj = node.attributes.Animation;
mc.animFrame = int(node.attributes.Frame);
mc.FlipX = node.attributes.FlipX || null;
mc.FlipY = node.attributes.FlipY || null;
mc.AX = int(node.attributes.AX) || 0;
mc.AY = int(node.attributes.AY) || 0;
mc.scope = this;
mc.useHandCursor = false;
mc.onRelease = function () {
this.scope.itemClicked(this);
};
}
i++;
}
}
function createGoal() {
gameGoal = new com.dialogs.Goal(scope);
gameGoal.create();
gameGoal.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
}
function showGame() {
com.mosesSupposes.fuse.ZigoEngine.doTween(scope, ["_brightness"], [-100], 0, com.mosesSupposes.fuse.PennerEasing.linear, 0);
com.mosesSupposes.fuse.ZigoEngine.doTween(scope, ["_brightness"], [0], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"ShowStartTextAnimation", args:["READY?", "afterGetReady", 2500, 180]});
}
function createGoalCounter() {
goalCounter = new com.game.minigames.GoalCounter(scope, this);
goalCounter.scope._x = 116;
goalCounter.scope._y = 434;
}
function playGame(link, mc) {
com.base.SoundHelper.musicPlay("music");
var levelNum = Main.userProfile.__get__level();
var levelTime = com.utils.XMLObjFinder.findNode(com.data.GUIxml.getXML("level", levelNum), "Time").attributes.Value;
mc_badClick.useHandCursor = false;
mc_badClick.onRelease = mx.utils.Delegate.create(this, onBadClick);
alarmClock = new com.game.AnalogClock(scope, levelTime, "miniGame");
alarmClock.callbCL = this;
alarmClock.start();
gameGoal.hide();
createGoalCounter();
badCounter = 0;
var mc = createIcon("MinigameSheep");
mc._xscale = (mc._yscale = 70);
createBackBut("MinigameBackBut");
}
function onBadClick(e) {
if ((!levelIsDone) && (!levelIsLost)) {
com.base.SoundPlayer.play("EmptyClick");
badCounter++;
if (badCounter >= BAD_COUNNT) {
if (alarmClock.lostSecond(15)) {
missLevel();
}
ShowStartTextAnimation(com.data.Strings.getText("15 SECONDS"), "", 1000, 180, 0.5, {charIndent:23, textSize:26});
com.base.SoundPlayer.play("15secondsAlarm");
badCounter = 0;
}
}
}
function gotoMap() {
_root.Game.gotoMap();
_destroy();
}
function _destroy() {
com.base.SoundPlayer.stopSound("GameWin");
scope.removeMovieClip();
alarmClock._destroy();
}
function createBackBut(src) {
var node = com.data.GUIxml.getXML("getGui", src).firstChild;
but = new com.base.GameButton();
but.create(node, scope);
but.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
return(but);
}
function missLevel() {
if (!levelIsDone) {
levelIsLost = true;
alarmClock.pause();
showStat("lost");
}
}
function levelDone() {
if ((!levelIsDone) && (!levelIsLost)) {
levelIsDone = true;
alarmClock.pause();
com.base.SoundHelper.stopMusic();
com.base.SoundPlayer.play("GameWin");
ShowStartTextAnimation(com.data.Strings.getText("LEVEL COMPLETE"), "showStat", 1000, 180, 0.5);
}
}
function showStat(value) {
but.disable();
var extraMoney;
if (value == "lost") {
extraMoney = 0;
} else {
extraMoney = alarmClock.__get__timeToEnd() * Main.userProfile.moneyPerSecond;
}
var gameStat = (new com.dialogs.StatWindow(scope));
var moneyEarned = (findedItem * 100);
com.base.SoundHelper.stopMusic();
gameStat.create(extraMoney, moneyEarned, ["MinigameSheep"]);
gameStat.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
}
function clickHandler(eventObj) {
if (!(eventObj.event === "click")) {
} else {
this[eventObj.target.action].call(this, eventObj.target);
}
}
function ShowStartTextAnimation(aText, nextFunc, animTime, charY, pauseTime, txtObj) {
com.utils.ObjFactory.ShowStartTextAnimation(scope, this, aText, nextFunc, animTime, charY, pauseTime, txtObj);
}
function itemClicked(target) {
if ((!levelIsDone) && (!levelIsLost)) {
com.base.SoundPlayer.play("AnimalFound");
badCounter = 0;
findedItem++;
dispatchEvent({type:"action", event:"click"});
goalCounter.updateCount(findedItem);
target.bmp.dispose();
var anim = addAnimObj(target, target.animObj);
anim._destroy();
anim.__set__currFrame(target.animFrame);
if (target.FlipX) {
anim._xscale = -100;
anim._x = anim._x + anim._width;
}
if (target.FlipY) {
anim._yscale = -100;
anim._y = anim._y + anim._height;
}
anim._x = anim._x + target.AX;
anim._y = anim._y + target.AY;
delete target.onRelease;
findFuseAnim = new com.mosesSupposes.fuse.Fuse();
findFuseAnim.label = "triggerExample";
findFuseAnim.__set__target(target);
findFuseAnim.push({_rotation:360, _scale:40, delay:0, time:2, controlX:243, controlY:117, x:82, y:440, _alpha:100, trigger:1}, {_visible:0});
findFuseAnim.start(target);
}
}
function addObj(node, scope) {
var tmp = scope.createEmptyMovieClip(node.attributes.ID, node.attributes.layer || (scope.getNextHighestDepth()));
var src = (node.attributes.src || (node.attributes.ID));
var bmp = flash.display.BitmapData.loadBitmap(src);
tmp.attachBitmap(bmp, node.attributes.layer || (tmp.getNextHighestDepth()), "auto", true);
tmp._x = node.attributes.xPos || 0;
tmp._y = node.attributes.yPos || 0;
tmp.bmp = bmp;
return(tmp);
}
function addAnimObj(mc, src) {
var animNode = XML(com.data.GUIxml.getXML("animations", src)).firstChild;
var mcAnim = com.base.anim.SimpleAnim(mc.attachMovie("SimpleAnim", "overAnim", mc.getNextHighestDepth()));
mcAnim.createByXML(animNode, mc);
mcAnim.nextCycle();
return(mcAnim);
}
var findedItem = 0;
var SheepCoordArr = new Array();
var badCounter = 0;
var BAD_COUNNT = 3;
var levelIsDone = false;
var levelIsLost = false;
}
Symbol 782 MovieClip [__Packages.com.dialogs.Goal] Frame 0
class com.dialogs.Goal
{
static var pressButMc, PressButTxt;
var action, scope, mcFog, dayTitle, goalTitle, removeEventListener;
function Goal (scope) {
mx.events.EventDispatcher.initialize(this);
action = "playGame";
this.scope = scope.createEmptyMovieClip("Goal", 51);
this.scope.scope = this;
this.scope._visible = false;
this.scope._alpha = 0;
}
function create() {
scope.onPress = mx.utils.Delegate.create(this, null);
scope.useHandCursor = false;
var level = Main.userProfile.__get__level();
var node = com.utils.XMLObjFinder.findNode(com.data.GUIxml.getXML("level", Main.userProfile.__get__level()), "Goal");
createBG();
txtFormat();
createDayTitle(level);
var titleText = (node.attributes.levName || "LEVEL GOAL");
createGoalTitle(com.data.Strings.getText(titleText));
var earnNode = com.utils.XMLObjFinder.findNode(node, "Earn");
var tmpMC;
var sellNode = com.utils.XMLObjFinder.findNode(node, "Sell");
var objArr = String(sellNode.attributes.objNames).split(",");
var numArr = String(sellNode.attributes.count).split(",");
if (earnNode.attributes.Money) {
createGoalItems(com.data.Strings.getText("EARN"), 130, 100, "BriefingCoin", earnNode.attributes.Money);
}
var growNode = com.utils.XMLObjFinder.findNode(node, "Grow");
if (growNode.attributes.objNames) {
createGoalItems(com.data.Strings.getText("GROW"), 130, 136, growNode.attributes.objNames, growNode.attributes.count);
}
var sellNode = com.utils.XMLObjFinder.findNode(node, "Sell");
if (sellNode.attributes.objNames) {
createGoalItems(com.data.Strings.getText("SELL"), 130, 172, sellNode.attributes.objNames, sellNode.attributes.count);
}
var findNode = com.utils.XMLObjFinder.findNode(node, "Find");
if (findNode.attributes.objNames) {
createGoalItems(com.data.Strings.getText("FIND"), 130, 172, findNode.attributes.objNames, findNode.attributes.count);
}
var iconNode = com.utils.XMLObjFinder.findNode(node, "HelperIcons");
var icoArr = new Array();
if (iconNode.attributes.iconList) {
icoArr = String(iconNode.attributes.iconList).split(",");
createCommentObj(icoArr);
}
createCommentText(com.data.Strings.getText("BRIEFING " + level));
createPressBut(com.data.Strings.getText("LOADING"));
createLoaderBar();
show();
}
function show() {
scope._visible = true;
com.mosesSupposes.fuse.ZigoEngine.doTween(scope, ["_alpha"], 100, 2);
}
function hide() {
com.mosesSupposes.fuse.ZigoEngine.doTween(mcFog, ["_alpha"], [100], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0);
com.mosesSupposes.fuse.ZigoEngine.doTween(scope, ["_brightness"], [-100], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:_destroy});
}
function createLoaderBar() {
var mc = scope.attachMovie("brifLoadBar", "mc_Loader", scope.getNextHighestDepth());
mc._x = 176;
mc._y = 424;
mc.scope = scope.scope;
mc.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
this.scope.createPressBut(com.data.Strings.getText("ANY KEY"), true);
this.scope.scope.useHandCursor = true;
this.scope.scope.onRelease = this.scope.playGame;
delete this.onEnterFrame;
}
};
}
function playGame() {
scope.dispatchEvent({type:"action", event:"click"});
}
function createPressBut(txt, type) {
if (!pressButMc) {
pressButMc = scope.createEmptyMovieClip("pressButMc", scope.getNextHighestDepth());
PressButTxt = pressButMc.createTextField("PressButTxt", pressButMc.getNextHighestDepth(), 0, 382, 640, 20);
}
pressButMc.cacheAsBitmap = true;
PressButTxt.selectable = false;
PressButTxt.embedFonts = true;
PressButTxt.autoSize = false;
PressButTxt.text = txt;
dayTitle.size = 18;
dayTitle.align = "center";
PressButTxt.setTextFormat(dayTitle);
PressButTxt.filters = [];
com.utils.Filters.applingTextFilter(PressButTxt);
if (type) {
inCicle(pressButMc);
}
}
function inCicle(mc) {
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, ["_scale", "_alpha", "_x", "_y"], [90, 20, mc._x + 30, mc._y + 38], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"outCicle", args:mc});
}
function outCicle(mc) {
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, ["_scale", "_alpha", "_x", "_y"], [100, 100, mc._x - 30, mc._y - 38], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"inCicle", args:mc});
}
function createBG() {
var node = new XML("<Goal ID=\"Fog\"/>").firstChild;
mcFog = addObj(node);
mcFog._alpha = 50;
node = com.data.GUIxml.getXML("getGui", "BriefingMain").firstChild;
addObj(node);
}
function txtFormat() {
dayTitle = new TextFormat();
dayTitle.color = 16053248 /* 0xF4F400 */;
dayTitle.font = "titleFont";
dayTitle.bold = true;
dayTitle.size = 20;
goalTitle = new TextFormat();
goalTitle.color = 2391039 /* 0x247BFF */;
goalTitle.font = "titleFont";
goalTitle.bold = true;
goalTitle.size = 20;
}
function createGoalTitle(txt) {
var titleTxtField = scope.createTextField("titleTxtField", scope.getNextHighestDepth(), 0, 65, 640, 40);
titleTxtField.selectable = false;
titleTxtField.embedFonts = true;
titleTxtField.autoSize = false;
titleTxtField.text = txt;
goalTitle.align = "center";
titleTxtField.setTextFormat(goalTitle);
var myDropFilter = (new flash.filters.DropShadowFilter());
myDropFilter.alpha = 0.6;
myDropFilter.distance = 2;
var myFilters = titleTxtField.filters;
myFilters.push(myDropFilter);
titleTxtField.filters = myFilters;
}
function createDayTitle(level) {
var dayTxtField = scope.createTextField("dayTxtField", scope.getNextHighestDepth(), 286, 25, 100, 20);
dayTxtField.selectable = false;
dayTxtField.embedFonts = true;
dayTxtField.autoSize = true;
dayTxtField.text = (com.data.Strings.getText("DAY") + " ") + level;
dayTxtField.setTextFormat(dayTitle);
com.utils.Filters.applingTextFilter(dayTxtField);
}
function createGoalItems(txt, x, y, iconName, count) {
var earnTxtField = scope.createTextField("earnTxtField", scope.getNextHighestDepth(), x, y, 100, 20);
earnTxtField.selectable = false;
earnTxtField.embedFonts = true;
earnTxtField.autoSize = true;
earnTxtField.text = txt;
goalTitle.size = 18;
goalTitle.align = "center";
earnTxtField.setTextFormat(goalTitle);
var myDropFilter = (new flash.filters.DropShadowFilter());
myDropFilter.alpha = 0.6;
myDropFilter.distance = 2;
var myFilters = earnTxtField.filters;
myFilters.push(myDropFilter);
earnTxtField.filters = myFilters;
var objArr = String(iconName).split(",");
var numArr = String(count).split(",");
var sell;
var i = 0;
while (i < objArr.length) {
sell = createSellobj(objArr[i], numArr[i]);
sell._x = sell._x + ((x + 140) + (80 * i));
sell._y = sell._y + y;
i++;
}
}
function createSellobj(iconName, count) {
if ((count != undefined) && (iconName)) {
var node = com.data.GUIxml.getXML("getGui", "Goal" + iconName).firstChild;
var mc = scope.createEmptyMovieClip(node.attributes.ID, node.attributes.layer || (scope.getNextHighestDepth()));
var itemMC = addObj(node, mc);
if (itemMC._width > 24) {
itemMC._width = 24;
}
itemMC._yscale = itemMC._xscale;
var countText = mc.createTextField("countText", mc.getNextHighestDepth(), 30, 4, 100, 20);
countText.selectable = false;
countText.embedFonts = true;
countText.autoSize = true;
countText.text = "x " + String(count);
goalTitle.size = 14;
goalTitle.bold = false;
countText.setTextFormat(goalTitle);
return(mc);
}
}
function createCommentText(txt) {
var commentText = scope.createTextField("commentText", scope.getNextHighestDepth(), 120, 330, 400, 60);
commentText.selectable = false;
commentText.multiline = true;
commentText.wordWrap = true;
commentText.embedFonts = true;
commentText.autoSize = false;
commentText.text = txt;
goalTitle.size = 13;
goalTitle.bold = false;
goalTitle.color = 2462155 /* 0x2591CB */;
commentText.setTextFormat(goalTitle);
}
function createCommentObj(arr) {
var node;
var mc;
var arNode = com.data.GUIxml.getXML("getGui", "BriefingArrow").firstChild;
var arMC;
var objArr = new Array();
var objW = 0;
var conteiner = scope.createEmptyMovieClip("commentObjs", scope.getNextHighestDepth());
var i = 0;
while (i < arr.length) {
node = com.data.GUIxml.getXML("getGui", arr[i]).firstChild || (new XML(("<Goal ID=\"" + arr[i]) + "\">").firstChild);
mc = addObj(node, conteiner);
objArr.push(mc);
objW = objW + mc._width;
if (i == 0) {
mc._x = 0;
} else {
mc._x = 24 + (MovieClip(objArr[i - 1])._x + MovieClip(objArr[i - 1])._width);
objW = objW + 24;
}
mc._y = 250 + ((80 - mc._height) / 2);
if (i < (arr.length - 1)) {
arMC = addObj(arNode, conteiner);
arMC._x = (mc._x + mc._width) + 4;
arMC._y = 250 + ((80 - arMC._height) / 2);
}
i++;
}
objArr = [];
delete objArr;
arNode = null;
conteiner._x = 120 + ((400 - objW) / 2);
}
function addObj(node, sc) {
var tmp;
if (!sc) {
tmp = scope.createEmptyMovieClip(node.attributes.ID, node.attributes.layer || (scope.getNextHighestDepth()));
} else {
tmp = sc.createEmptyMovieClip(node.attributes.ID, node.attributes.layer || (sc.getNextHighestDepth()));
}
var src = (node.attributes.src || (node.attributes.ID));
var bmp = flash.display.BitmapData.loadBitmap(src);
tmp.attachBitmap(bmp, node.attributes.layer || (tmp.getNextHighestDepth()), "auto", true);
tmp._x = node.attributes.xPos || 0;
tmp._y = node.attributes.yPos || 0;
return(tmp);
}
function _destroy() {
com.mosesSupposes.fuse.ZigoEngine.removeTween();
scope.removeMovieClip();
pressButMc.removeMovieClip();
delete pressButMc;
delete scope;
removeEventListener();
delete this;
}
}
Symbol 783 MovieClip [__Packages.com.utils.Filters] Frame 0
class com.utils.Filters
{
function Filters () {
}
static function applingTextFilter(txtField) {
var myDropFilter = (new flash.filters.DropShadowFilter());
myDropFilter.alpha = 10;
myDropFilter.distance = 2;
myDropFilter.strength = 0.34;
myDropFilter.blurX = (myDropFilter.blurY = 0);
var myConturFilter = (new flash.filters.DropShadowFilter());
myConturFilter.strength = 5;
myConturFilter.color = 10040064 /* 0x993300 */;
myConturFilter.blurX = (myConturFilter.blurY = 2);
myConturFilter.distance = 0;
var myBevelFilter = (new flash.filters.BevelFilter());
myBevelFilter.shadowColor = 16750848 /* 0xFF9900 */;
myBevelFilter.highlightColor = 16776960 /* 0xFFFF00 */;
myBevelFilter.strength = 1.3;
myBevelFilter.quality = 3;
myBevelFilter.angle = 90;
var myFilters = txtField.filters;
myFilters.push(myBevelFilter);
myFilters.push(myConturFilter);
myFilters.push(myDropFilter);
txtField.filters = myFilters;
}
static function applingDropFilter(txtField, distance, blurXY) {
var myDropFilter = (new flash.filters.DropShadowFilter());
myDropFilter.alpha = 10;
myDropFilter.distance = distance || 2;
myDropFilter.strength = 0.34;
myDropFilter.blurX = (myDropFilter.blurY = blurXY || 0);
var myFilters = txtField.filters;
myFilters.push(myDropFilter);
txtField.filters = myFilters;
}
static function applingDisableFilter(obj) {
var myFilter = (new ru.etcs.filters.ColorFilter(50, -50));
var filterArray = new Array();
filterArray = obj.filters;
filterArray.push(myFilter);
obj.filters = filterArray;
}
static function flip(obj, type) {
}
static function setTint(color, r, g, b, amount) {
var percent = (100 - amount);
var trans = new Object();
trans.ra = (trans.ga = (trans.ba = percent));
var ratio = (amount / 100);
trans.rb = r * ratio;
trans.gb = g * ratio;
trans.bb = b * ratio;
color.setTransform(trans);
}
}
Symbol 784 MovieClip [__Packages.com.game.minigames.GoalCounter] Frame 0
class com.game.minigames.GoalCounter
{
var baseClass, scope, txtF;
function GoalCounter (scope, gameSrc) {
baseClass = gameSrc;
this.scope = scope.createEmptyMovieClip((scope._name + "_") + scope.getNextHighestDepth(), scope.getNextHighestDepth());
this.scope.scope = this;
createCounter();
totalcount = (10);
count = (gameSrc.findedItem);
}
function createCounter() {
txtF = scope.createTextField("txtF", 10, 0, 0, 100, 40);
txtF.embedFonts = true;
com.utils.Filters.applingTextFilter(txtF);
}
function updateCount(num) {
count = (num);
}
function get totalcount() {
return(_totalcount);
}
function set totalcount(value) {
_totalcount = value;
//return(totalcount);
}
function get count() {
return(_count);
}
function set count(value) {
_count = value;
txtF.text = (_count + "/") + totalcount;
txtF.setTextFormat(com.utils.FormatManager.getTxtFormat(com.utils.FormatManager.DEF_TXT_FORMAT));
if (_count >= totalcount) {
baseClass.levelDone();
}
//return(count);
}
var _totalcount = 0;
var _count = 0;
}
Symbol 785 MovieClip [__Packages.com.utils.FormatManager] Frame 0
class com.utils.FormatManager
{
function FormatManager () {
}
static function getTxtFormat(type) {
var my_fmt;
if (!(type === DEF_TXT_FORMAT)) {
} else {
my_fmt = new TextFormat();
my_fmt.color = 16053248 /* 0xF4F400 */;
my_fmt.font = "titleFont";
my_fmt.bold = true;
my_fmt.size = 24;
return(my_fmt);
}
}
static var DEF_TXT_FORMAT = "default";
}
Symbol 786 MovieClip [__Packages.com.game.AnalogClock] Frame 0
class com.game.AnalogClock
{
var type, yellow, scope, graph, mc_yellowPoint, mc_redPoint, mc_arrow, ala, alarmInt, _timeToEnd;
function AnalogClock (scope, totalTime, type) {
this.type = type || "game";
yellow = false;
this.scope = scope.createEmptyMovieClip("AnalogClock_" + scope.getNextHighestDepth(), scope.getNextHighestDepth());
this.scope.scope = this;
if (totalTime) {
TOTAL_TIME = totalTime;
}
graph = this.scope.createEmptyMovieClip("conteiner", 1);
createBG("AlarmclockNormal", graph);
mc_yellowPoint = createBG("AlarmclockYellow", graph);
mc_redPoint = createBG("AlarmclockRed", graph);
mc_arrow = createArrow("AlarmArrow", graph);
graph._x = (-graph._width) / 2;
graph._y = -((graph._height / 2) + 4);
this.scope._x = XPOS + Math.abs(graph._x);
this.scope._y = YPOS + Math.abs(graph._y);
ala = new com.game.Alarm(this.scope, this, TOTAL_TIME);
ala.addAlarmParam((TOTAL_TIME * 80) / 100, "blinkYellow");
ala.addAlarmParam(TOTAL_TIME, "blinkRed");
ala.addEventListener("action", mx.utils.Delegate.create(this, eventHandler));
}
function lostSecond(value) {
ala.interval = ala.interval - (value * 1000);
if (ala.currTime >= ala.time) {
return(true);
}
return(false);
}
function start() {
started = true;
ala.start();
}
function pause() {
ala.pause();
com.base.SoundPlayer.stopSound("TickTockClock");
if (com.mosesSupposes.fuse.ZigoEngine.isTweening(mc_yellowPoint)) {
com.mosesSupposes.fuse.ZigoEngine.pauseTween(mc_yellowPoint);
}
if (com.mosesSupposes.fuse.ZigoEngine.isTweening(mc_redPoint)) {
com.mosesSupposes.fuse.ZigoEngine.pauseTween(mc_redPoint);
}
if (com.mosesSupposes.fuse.ZigoEngine.isTweening(mc_arrow)) {
com.mosesSupposes.fuse.ZigoEngine.pauseTween(mc_arrow);
}
if (com.mosesSupposes.fuse.ZigoEngine.isTweening(scope)) {
com.mosesSupposes.fuse.ZigoEngine.pauseTween(scope);
}
}
function resume() {
ala.resume();
if (yellow) {
com.base.SoundPlayer.play("TickTockClock", 1000);
}
}
function pauseAnimations() {
pause();
}
function resumeAnimations() {
resume();
}
function eventHandler(e) {
switch (e.event) {
case "time" :
rotateArrow(e.target.currTime);
return;
default :
}
}
function rotateArrow(time) {
var rot = Math.round((time * 360) / TOTAL_TIME);
mc_arrow._rotation = rot;
}
function blinkYellow() {
if (!yellow) {
com.base.SoundPlayer.play("FirstAlarmClock");
com.base.SoundPlayer.play("TickTockClock", 1000);
yellow = true;
var xPos = mc_yellowPoint._x;
var yPos = mc_yellowPoint._y;
scope._rotation = -2;
scope._x = scope._x - 2;
var endX = (scope._x + 2);
com.mosesSupposes.fuse.ZigoEngine.doTween(scope, ["_rotation", "_x"], [2, endX], 0.1, com.mosesSupposes.fuse.PennerEasing.linear, 0, {cycles:8, scope:this, func:"setNormalRotations"});
com.mosesSupposes.fuse.ZigoEngine.doTween(mc_yellowPoint, ["_scale", "_x", "_y", "_brightness"], [150, xPos - 1, yPos - 1, 50], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0, {cycles:"LOOP"});
}
}
function blinkRed() {
clearInterval(alarmInt);
alarmInt = setInterval(this, "playAlarmSound", 100);
com.mosesSupposes.fuse.ZigoEngine.ffTween(mc_yellowPoint);
com.mosesSupposes.fuse.ZigoEngine.removeTween(mc_yellowPoint);
com.base.SoundPlayer.stopSound("TickTockClock");
var xPos = mc_redPoint._x;
var yPos = mc_redPoint._y;
scope._rotation = -2;
scope._x = scope._x - 2;
com.mosesSupposes.fuse.ZigoEngine.doTween(scope, ["_rotation", "_x"], [2, scope._x + 2], 0.1, com.mosesSupposes.fuse.PennerEasing.linear, 0, {cycles:20, scope:this, func:"setNormalRotations", args:["GameOver"]});
com.mosesSupposes.fuse.ZigoEngine.doTween(mc_redPoint, ["_scale", "_x", "_y", "_brightness"], [150, xPos - 1, yPos - 1, 50], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0, {cycles:"LOOP"});
}
function playAlarmSound() {
clearInterval(alarmInt);
com.base.SoundPlayer.play("AlarmClock");
}
function setNormalRotations(value) {
scope._rotation = 0;
scope._x = scope._x + 2;
if ((value == "GameOver") && (callbCL)) {
if (type == "game") {
com.game.GameZone(callbCL).timesUp();
} else {
callbCL.ShowStartTextAnimation(com.data.Strings.getText("TIME'S UP"), "missLevel", 2000, 180, 3);
callbCL.levelIsLost = true;
}
}
}
function createArrow(src, sc) {
var node = com.data.GUIxml.getXML("getGui", src).firstChild;
var mc = sc.attachMovie(src, src, sc.getNextHighestDepth());
mc._x = node.attributes.xPos;
mc._y = node.attributes.yPos;
return(mc);
}
function createBG(src, scope) {
var node = com.data.GUIxml.getXML("getGui", src).firstChild;
var mc = com.utils.ObjFactory.addObj(node, scope);
return(mc);
}
function _destroy() {
com.mosesSupposes.fuse.ZigoEngine.removeTween(mc_yellowPoint);
com.mosesSupposes.fuse.ZigoEngine.removeTween(mc_redPoint);
com.mosesSupposes.fuse.ZigoEngine.removeTween(mc_arrow);
com.mosesSupposes.fuse.ZigoEngine.removeTween(scope);
clearInterval(alarmInt);
com.base.SoundPlayer.stopSound("TickTockClock");
com.base.SoundPlayer.stopSound("FirstAlarmClock");
com.base.SoundPlayer.stopSound("AlarmClock");
ala._destroy();
scope.removeMovieClip();
}
function get timeToEnd() {
_timeToEnd = TOTAL_TIME - ala.currTime;
return(_timeToEnd);
}
static var XPOS = 8;
static var YPOS = 10;
var started = false;
static var TOTAL_TIME = 20;
var callbCL = null;
}
Symbol 787 MovieClip [__Packages.com.base.SoundPlayer] Frame 0
class com.base.SoundPlayer
{
function SoundPlayer () {
}
static function init() {
}
static function play(src, loops) {
var sound = com.base.SoundHelper.soundPlay(src, loops);
soundArr[src] = sound;
return(sound);
}
static function stopSound(id) {
Sound(soundArr[id]).stop();
delete eval (Sound(soundArr[id]));
}
static var soundArr = new Array();
}
Symbol 788 MovieClip [__Packages.com.base.SoundHelper] Frame 0
class com.base.SoundHelper
{
function SoundHelper () {
}
static function musicVolume(aVol) {
if (Main.musicOBJ_ != undefined) {
Main.musicOBJ_.setVolume(aVol);
}
}
static function musicPlay(aMus, aVolume) {
if (Main.musicOBJ_ != undefined) {
Main.musicOBJ_.stop();
delete Main.musicOBJ_;
}
Main.musicOBJ_ = new Sound(Main.musicClip_);
Main.musicOBJ_.attachSound(aMus);
if (aVolume == undefined) {
Main.musicOBJ_.setVolume(Main.musicLevel);
} else {
Main.musicOBJ_.setVolume(aVolume);
}
Main.musicOBJ_.start(0, 1000);
}
static function soundPlay(aSnd, times) {
var aSound = new Sound(Main.soundClip_);
aSound.attachSound(aSnd);
aSound.setVolume(Main.soundLevel);
aSound.start(0, times);
return(aSound);
}
static function stopMusic() {
Main.musicOBJ_.stop();
delete Main.musicOBJ_;
}
static var MUSIC_GAME1 = 0;
static var musicClipArray = new Array();
static var musicObjArray = new Array();
}
Symbol 789 MovieClip [__Packages.com.utils.ObjFactory] Frame 0
class com.utils.ObjFactory
{
function ObjFactory () {
}
static function addObj(node, scope) {
var tmp = scope.createEmptyMovieClip(node.attributes.ID, node.attributes.layer || (scope.getNextHighestDepth()));
var src = (node.attributes.src || (node.attributes.ID));
var bmp = flash.display.BitmapData.loadBitmap(src);
tmp.attachBitmap(bmp, node.attributes.layer || (tmp.getNextHighestDepth()), "auto", true);
tmp._x = node.attributes.xPos || 0;
tmp._y = node.attributes.yPos || 0;
if (node.attributes.filter == "Tint") {
var my_color = new Color(tmp);
com.utils.Filters.setTint(my_color, 255, 102, 102, 50);
}
return(tmp);
}
static function ShowStartTextAnimation(scope, scopeToCaller, aText, nextFunc, animTime, charY, pauseTime, formatObj) {
var between_chars = (formatObj.charIndent || 34);
var char_x = ((Stage.width / 2) - ((aText.length * between_chars) / 2));
var char_y;
if (charY != undefined) {
char_y = charY;
} else {
char_y = Stage.height / 2;
}
var start_fall_dy_min = 200;
var start_fall_dy_diff = 50;
var fall_time = (animTime / 1000);
var fade_time = ((animTime / 1000) * 0.15);
var txtFormat = new TextFormat();
txtFormat.size = formatObj.textSize || 40;
var i = 0;
while (i < aText.length) {
var ch = aText.charAt(i);
var d = scope.getNextHighestDepth();
var mc = scope.attachMovie("BeginTextSymbolAnim", "beginTextSymbolAnim" + d, d);
mc._x = char_x;
mc._y = Math.random() * 100;
mc.strValue2 = ch;
mc.strValue3 = ch;
TextField(mc.txt_top).setTextFormat(txtFormat);
TextField(mc.textMask).setTextFormat(txtFormat);
mc.eraseAnim = function (aMc, f) {
f.destroy();
delete f;
aMc.removeMovieClip();
delete aMc;
};
MovieClip(mc.mcMasked).setMask(mc.textMask);
var f = (new com.mosesSupposes.fuse.Fuse());
f.label = ("AnimationStart" + d) + aText;
f.__set__target(mc);
f.push({label:("appear" + d) + aText, y:char_y, start_alpha:0, time:fall_time, ease:com.mosesSupposes.fuse.PennerEasing.easeOutBounce});
f.push({_alpha:100, time:fade_time});
char_x = char_x + between_chars;
if (i == (aText.length - 1)) {
f.push({label:"next", delay:pauseTime || 0, scope:scopeToCaller, func:nextFunc});
f.push({label:"eraseAnim", delay:0, scope:mc, func:"eraseAnim", args:[mc, f]});
}
f.push({label:"eraseAnim", delay:pauseTime || 0, scope:mc, func:"eraseAnim", args:[mc, f]});
f.start(true);
i++;
}
}
}
Symbol 790 MovieClip [__Packages.com.base.GameButton] Frame 0
class com.base.GameButton extends MovieClip
{
var scope, mcUP, mcOver, mcDN, titleTxtField, mXml, align, _upSrc, _overSrc, _downSrc, action, actionOver, actionOut, titleTxt, __get__title, dispatchEvent;
function GameButton () {
super();
mx.events.EventDispatcher.initialize(this);
}
function init(link, layer) {
scope = link.createEmptyMovieClip(("btn_" + layer) || ("btn_" + link.getNextHighestDepth()), Number(layer) || (link.getNextHighestDepth()));
scope.scope = this;
mcUP = scope.createEmptyMovieClip("_up", 10);
mcOver = scope.createEmptyMovieClip("_over", 20);
mcDN = scope.createEmptyMovieClip("_down", 30);
hide();
mcUP._visible = true;
}
function disable() {
removeHendler();
scope.filters = [];
com.utils.Filters.applingDisableFilter(scope);
}
function enable() {
scope.filters = [];
titleTxtField.filters = [];
com.utils.Filters.applingTextFilter(titleTxtField);
addHendler();
}
function addHendler() {
scope.useHandCursor = true;
scope.onRollOver = mx.utils.Delegate.create(this, onRollOver);
scope.onReleaseOutside = mx.utils.Delegate.create(this, onRollOut);
scope.onRollOut = mx.utils.Delegate.create(this, onRollOut);
scope.onPress = mx.utils.Delegate.create(this, onPress);
scope.onRelease = mx.utils.Delegate.create(this, onRelease);
}
function removeHendler() {
scope.useHandCursor = false;
scope.onRollOver = (scope.onRelease = (scope.onReleaseOutside = mx.utils.Delegate.create(this, null)));
scope.onRollOut = mx.utils.Delegate.create(this, null);
scope.onPress = mx.utils.Delegate.create(this, null);
scope.onRelease = mx.utils.Delegate.create(this, null);
}
function create(node, link) {
init(link, node.attributes.layer);
scope._x = node.attributes.xPos;
scope._y = node.attributes.yPos;
mXml = node;
align = node.attributes.align || "left";
_upSrc = node.childNodes[0].attributes.src;
_overSrc = node.childNodes[1].attributes.src;
_downSrc = node.childNodes[2].attributes.src;
mcDN._x = node.childNodes[2].attributes.xPos;
mcDN._y = node.childNodes[2].attributes.yPos;
action = node.attributes.action;
actionOver = node.attributes.actionOver;
actionOut = node.attributes.actionOut;
addBitmap(mcUP, _upSrc);
if (node.childNodes[1].attributes.animation != "true") {
addBitmap(mcOver, _overSrc);
} else {
addAnimObj(mcOver, _overSrc);
}
addBitmap(mcDN, _downSrc);
if (node.attributes.title) {
title = (node.attributes.title);
}
if (com.data.Strings.getText(node.attributes.title) != "undefined") {
title = (com.data.Strings.getText(node.attributes.title));
}
enable();
}
function addAnimObj(mc, src) {
var animNode = XML(com.data.GUIxml.getXML("animations", src)).firstChild;
var mcAnim = mc.attachMovie("SimpleAnim", "overAnim", 0);
mcAnim.createByXML(animNode, mc);
mcAnim.playCycle();
}
function set title(txt) {
titleTxt = txt;
titleTxtField = scope.createTextField("titleTxtField", TEXT_DEPTH, mXml.attributes.xTit || 2, mXml.attributes.yTit || 8, 10, 10);
titleTxtField.embedFonts = true;
titleTxtField.autoSize = align || "left";
titleTxtField.text = txt;
var my_fmt = new TextFormat();
my_fmt.color = 16053248 /* 0xF4F400 */;
my_fmt.align = align || "left";
my_fmt.font = "titleFont";
my_fmt.bold = true;
my_fmt.size = 15;
titleTxtField.setTextFormat(my_fmt);
if (align == "center") {
titleTxtField._x = titleTxtField._x + 60;
}
//return(__get__title());
}
function setImage(imgName) {
addBitmap(mcUP, imgName);
}
function addBitmap(mc, src) {
var bmp = flash.display.BitmapData.loadBitmap(src);
mc.attachBitmap(bmp, 0, "auto", true);
}
function onRollOver() {
showOver();
}
function showOver() {
if (_overSrc) {
com.base.SoundPlayer.play("MenuOver");
hide();
mcOver._visible = true;
}
}
function onRollOut() {
showUp();
}
function showUp() {
hide();
mcUP._visible = true;
}
function onPress() {
if (_downSrc) {
hide();
mcDN._visible = true;
}
}
function onRelease() {
click();
onRollOut();
}
function click() {
com.base.SoundPlayer.play("MenuClick");
dispatchEvent({type:"action", event:"click"});
}
function hide() {
mcUP._visible = false;
mcOver._visible = false;
mcDN._visible = false;
}
static var TEXT_DEPTH = 150;
}
Symbol 791 MovieClip [__Packages.com.dialogs.StatWindow] Frame 0
class com.dialogs.StatWindow
{
static var pressButMc, PressButTxt;
var action, scope, mcExtra, mcEarned, mcTotal, mcFog, dispatchEvent, dayTitle, goalTitle, removeEventListener, _extraMoney, _moneyEarned, _totalMoney;
function StatWindow (scope) {
mx.events.EventDispatcher.initialize(this);
action = "gotoMap";
this.scope = scope.createEmptyMovieClip("StatWindow", 51);
this.scope.scope = this;
this.scope._visible = false;
this.scope._alpha = 0;
}
function create(extraMoney, moneyEarned, sold) {
totalMoney = (Main.userProfile.getTotalMoney());
Main.userProfile.setMoney((Main.userProfile.getMoney() + moneyEarned) + extraMoney);
Main.userProfile.setTotalMoney((Main.userProfile.getTotalMoney() + moneyEarned) + extraMoney);
var mc;
createFog();
createBG("StatWindow");
txtFormat();
createTitle(com.data.Strings.getText("STATISTICS"));
if (checkLevelGoals()) {
Main.userProfile.nextLevel();
}
var objNeeded = com.utils.XMLObjFinder.findNode(com.data.GUIxml.getXML("level", Main.userProfile.__get__level()), "Need").firstChild.nodeName;
createItems(com.data.Strings.getText("ITEMS SOLD"), 150, 170, objNeeded, sold[0][objNeeded]);
createLinItems(com.data.Strings.getText("EXTRA MONEY"), 150, 230);
mcExtra = createSoldObj("coinStat", extraMoney);
mcExtra._x = 410;
mcExtra._y = 230;
this.extraMoney = (extraMoney);
createLinItems(com.data.Strings.getText("LEVEL MONEY"), 150, 260);
mcEarned = createSoldObj("coinStat", moneyEarned);
mcEarned._x = 410;
mcEarned._y = 260;
this.moneyEarned = (moneyEarned);
createLinItems(com.data.Strings.getText("GAME MONEY"), 150, 290);
mcTotal = createSoldObj("coinStat", totalMoney);
mcTotal._x = 410;
mcTotal._y = 290;
totalMoney = (totalMoney);
show();
}
function checkLevelGoals() {
return(true);
}
function createFog() {
var bmp = (new flash.display.BitmapData(640, 480, false, 0));
mcFog = scope.createEmptyMovieClip("mcFog", 0);
mcFog.attachBitmap(bmp, 1, "auto", true);
mcFog._alpha = 50;
mcFog.onPress = function () {
};
mcFog.useHandCursor = false;
}
function createBG(src) {
var node = com.data.GUIxml.getXML("getGui", src).firstChild;
var mc = addObj(node);
mc._x = (Stage.width - mc._width) / 2;
mc._y = (Stage.height - mc._height) / 2;
}
function show() {
scope._visible = true;
com.mosesSupposes.fuse.ZigoEngine.doTween(scope, ["_alpha"], 100, 2, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:endShow});
}
function endShow() {
com.mosesSupposes.fuse.ZigoEngine.doTween(this, ["extraMoney", "moneyEarned"], [0, extraMoney + moneyEarned], 2, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:totalAnim});
}
function totalAnim() {
com.mosesSupposes.fuse.ZigoEngine.doTween(this, ["moneyEarned", "totalMoney"], [0, totalMoney + moneyEarned], 1, com.mosesSupposes.fuse.PennerEasing.linear, 0.5, {scope:this, func:createPressBut, args:[com.data.Strings.getText("ANY KEY"), true]});
}
function hide() {
com.mosesSupposes.fuse.ZigoEngine.doTween(scope.scope.mcFog, ["_alpha"], [100], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0);
com.mosesSupposes.fuse.ZigoEngine.doTween(scope.scope, ["_brightness"], [-100], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:scope, func:"gotoMap"});
}
function gotoMap() {
dispatchEvent({type:"action", event:"click"});
_destroy();
}
function createPressBut(txt, type) {
if ((!pressButMc) || (pressButMc == "")) {
pressButMc = scope.createEmptyMovieClip("pressButMc", scope.getNextHighestDepth());
PressButTxt = pressButMc.createTextField("PressButTxt", pressButMc.getNextHighestDepth(), 0, 320, 640, 20);
}
scope.onRelease = hide;
pressButMc.cacheAsBitmap = true;
PressButTxt.selectable = false;
PressButTxt.embedFonts = true;
PressButTxt.autoSize = false;
PressButTxt.text = txt;
dayTitle.size = 18;
dayTitle.align = "center";
PressButTxt.setTextFormat(dayTitle);
com.utils.Filters.applingTextFilter(PressButTxt);
if (type) {
inCicle(pressButMc);
}
}
function inCicle(mc) {
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, ["_scale", "_alpha", "_x", "_y"], [90, 20, mc._x + 30, mc._y + 38], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"outCicle", args:mc});
}
function outCicle(mc) {
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, ["_scale", "_alpha", "_x", "_y"], [100, 100, mc._x - 30, mc._y - 38], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"inCicle", args:mc});
}
function txtFormat() {
dayTitle = new TextFormat();
dayTitle.color = 16053248 /* 0xF4F400 */;
dayTitle.font = "titleFont";
dayTitle.bold = true;
dayTitle.size = 20;
goalTitle = new TextFormat();
goalTitle.color = 2391039 /* 0x247BFF */;
goalTitle.font = "titleFont";
goalTitle.bold = true;
goalTitle.size = 20;
}
function createTitle(txt) {
var titleTxtField = scope.createTextField("titleTxtField", scope.getNextHighestDepth(), 0, 130, 640, 40);
titleTxtField.selectable = false;
titleTxtField.embedFonts = true;
titleTxtField.autoSize = false;
titleTxtField.text = txt;
dayTitle.size = 24;
dayTitle.align = "center";
titleTxtField.setTextFormat(dayTitle);
com.utils.Filters.applingTextFilter(titleTxtField);
}
function createItems(txt, x, y, iconName, count) {
var earnTxtField = scope.createTextField("earnTxtField", scope.getNextHighestDepth(), x, y, 100, 20);
earnTxtField.selectable = false;
earnTxtField.embedFonts = true;
earnTxtField.autoSize = true;
earnTxtField.text = txt;
dayTitle.size = 18;
dayTitle.align = "left";
earnTxtField.setTextFormat(dayTitle);
com.utils.Filters.applingTextFilter(earnTxtField);
if (iconName) {
var sell = createSoldObj(iconName, count);
sell._x = sell._x + x;
sell._y = sell._y + (y + 26);
}
}
function createLinItems(txt, x, y, iconName, count) {
var earnTxtField = scope.createTextField("earnTxtField", scope.getNextHighestDepth(), x, y, 100, 20);
earnTxtField.selectable = false;
earnTxtField.embedFonts = true;
earnTxtField.autoSize = true;
earnTxtField.text = txt;
dayTitle.size = 16;
dayTitle.align = "left";
earnTxtField.setTextFormat(dayTitle);
com.utils.Filters.applingTextFilter(earnTxtField);
if (iconName) {
var sell = createSoldObj(iconName, count);
sell._x = sell._x + (x + 260);
sell._y = sell._y + y;
}
}
function createSoldObj(iconName, count) {
if ((count != undefined) && (iconName)) {
var node = com.data.GUIxml.getXML("getGui", iconName).firstChild;
var itemMC = addObj(node);
var countText = itemMC.createTextField("countText", itemMC.getNextHighestDepth(), 30, 0, 100, 20);
countText.selectable = false;
countText.embedFonts = true;
countText.autoSize = true;
countText.text = "x " + String(count);
goalTitle.size = 14;
goalTitle.bold = false;
goalTitle.color = 10510337 /* 0xA06001 */;
countText.setTextFormat(goalTitle);
return(itemMC);
}
}
function addObj(node) {
var tmp = scope.createEmptyMovieClip(node.attributes.ID, node.attributes.layer || (scope.getNextHighestDepth()));
var src = (node.attributes.src || (node.attributes.ID));
var bmp = flash.display.BitmapData.loadBitmap(src);
tmp.attachBitmap(bmp, node.attributes.layer || (tmp.getNextHighestDepth()), "auto", true);
tmp._x = node.attributes.xPos || 0;
tmp._y = node.attributes.yPos || 0;
return(tmp);
}
function _destroy() {
com.mosesSupposes.fuse.ZigoEngine.removeTween();
pressButMc.removeMovieClip();
delete pressButMc;
scope.removeMovieClip();
delete scope;
removeEventListener();
delete this;
}
function get extraMoney() {
return(_extraMoney);
}
function set extraMoney(value) {
_extraMoney = Math.round(value);
mcExtra.countText.text = "x " + Math.round(value);
goalTitle.color = 16676352 /* 0xFE7600 */;
mcExtra.countText.setTextFormat(goalTitle);
//return(extraMoney);
}
function get moneyEarned() {
return(_moneyEarned);
}
function set moneyEarned(value) {
_moneyEarned = Math.round(value);
mcEarned.countText.text = "x " + Math.round(value);
goalTitle.color = 16676352 /* 0xFE7600 */;
mcEarned.countText.setTextFormat(goalTitle);
//return(moneyEarned);
}
function get totalMoney() {
return(_totalMoney);
}
function set totalMoney(value) {
_totalMoney = Math.round(value);
mcTotal.countText.text = "x " + Math.round(value);
goalTitle.color = 16676352 /* 0xFE7600 */;
mcTotal.countText.setTextFormat(goalTitle);
//return(totalMoney);
}
}
Symbol 792 MovieClip [__Packages.com.base.GoalTab] Frame 0
class com.base.GoalTab
{
var scope, tabsArr, pauseInterv, _resNeeded;
function GoalTab (scope) {
this.scope = scope;
tabsArr = new Array();
var tmpMC;
var node = com.utils.XMLObjFinder.findNode(com.data.GUIxml.getXML("level", Main.userProfile.__get__level()), "Goal");
var sellNode = com.utils.XMLObjFinder.findNode(node, "Sell");
if (sellNode.attributes.objNames) {
var objArr = (String(sellNode.attributes.objNames).split(",") || ([]));
var numArr = (String(sellNode.attributes.count).split(",") || ([]));
var i = 0;
while (i < objArr.length) {
tmpMC = createItems("SELL", objArr[i], numArr[i]);
tabsArr.push([objArr[i], tmpMC, numArr[i]]);
i++;
}
}
var growNode = com.utils.XMLObjFinder.findNode(node, "Grow");
if (growNode.attributes.objNames) {
objArr = String(growNode.attributes.objNames).split(",") || ([]);
numArr = String(growNode.attributes.count).split(",") || ([]);
var i = 0;
while (i < objArr.length) {
tmpMC = createItems("GROW", objArr[i], numArr[i]);
tabsArr.push([objArr[i], tmpMC, numArr[i]]);
i++;
}
}
var earnNode = com.utils.XMLObjFinder.findNode(node, "Earn");
if (int(earnNode.attributes.Money) > 0) {
tmpMC = createItems("EARN", "BriefingCoin", int(earnNode.attributes.Money));
tabsArr.push(["BriefingCoin", tmpMC, int(earnNode.attributes.Money)]);
}
resNeeded = (0);
updateItemPos(false);
}
function update(src, count) {
if ((findItemNum(src) != null) && (count)) {
removeObj(findItemNum(src), count);
}
updateItemPos(true);
}
function findItemNum(src) {
var ret = null;
var i = 0;
while (i < tabsArr.length) {
if (tabsArr[i][0] == src) {
ret = i;
}
i++;
}
return(ret);
}
function removeObj(ind, count) {
if (count >= Number(tabsArr[ind][2])) {
com.mosesSupposes.fuse.ZigoEngine.doTween(tabsArr[ind][1], ["_alpha"], 10, 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:tabsArr[ind][1], func:function (sc) {
com.utils.TracePanel.add("GoalTab.removeObj > " + this);
com.utils.TracePanel.add("GoalTab.removeObj > " + sc);
this._width = 0;
this._x = 0;
sc.updateItemPos(true);
this.removeMovieClip();
}, args:[this]});
} else {
var cnt;
if (tabsArr[ind][0] == "BriefingCoin") {
tabsArr[ind][2] = Number(tabsArr[ind][2]) - count;
cnt = tabsArr[ind][2];
} else {
cnt = Number(tabsArr[ind][2]) - count;
}
com.mosesSupposes.fuse.ZigoEngine.ffTween(com.game.GoalTabItem(tabsArr[ind][1].scope));
com.mosesSupposes.fuse.ZigoEngine.doTween(com.game.GoalTabItem(tabsArr[ind][1].scope), "count", Math.round(cnt), 0.7, com.mosesSupposes.fuse.PennerEasing.linear, 0);
}
}
function updateItemPos(easing) {
clearInterval(pauseInterv);
var x0 = ((TAB_PLACE_WIDTH / 2) - (getTabsWidth() / 2));
var newXPos;
var i = 0;
while (i < tabsArr.length) {
if (i == 0) {
newXPos = x0;
} else {
com.utils.TracePanel.add("tabsArr[i - 1][1] " + MovieClip(tabsArr[i - 1][1]));
com.utils.TracePanel.add("x " + MovieClip(tabsArr[i - 1][1])._x);
com.utils.TracePanel.add("w " + MovieClip(tabsArr[i - 1][1])._width);
newXPos = newXPos + (tabsArr[i - 1][1]._width + FREE_TAB_SPACE);
com.utils.TracePanel.add("newXPos " + newXPos);
com.utils.TracePanel.add(" ");
}
var mc = tabsArr[i][1];
if (easing) {
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_x", [newXPos], 0.6, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:mc, func:function () {
}});
} else {
tabsArr[i][1]._x = newXPos;
}
i++;
}
com.utils.TracePanel.add(" ");
com.utils.TracePanel.add(" ");
}
function getTabsWidth() {
var width = 0;
var i = 0;
while (i < tabsArr.length) {
width = width + MovieClip(tabsArr[i][1])._width;
width = width + FREE_TAB_SPACE;
i++;
}
return(width);
}
function createItems(type, iconName, count) {
var item = (new com.game.GoalTabItem(scope));
var mcCont = item.create(type, iconName, count);
return(mcCont);
}
function addObj(node, scope) {
var tmp = scope.createEmptyMovieClip(node.attributes.ID + scope.getNextHighestDepth(), node.attributes.layer || (scope.getNextHighestDepth()));
var src = (node.attributes.src || (node.attributes.ID));
var bmp = flash.display.BitmapData.loadBitmap(src);
tmp.attachBitmap(bmp, node.attributes.layer || (tmp.getNextHighestDepth()), "auto", true);
tmp._x = node.attributes.xPos || 0;
tmp._y = node.attributes.yPos || 0;
if (node.attributes.filter == "Tint") {
var my_color = new Color(tmp);
}
return(tmp);
}
function get resNeeded() {
return(_resNeeded);
}
function set resNeeded(value) {
_resNeeded = value;
//return(resNeeded);
}
static var TAB_PLACE_WIDTH = 320;
static var FREE_TAB_SPACE = 2;
}
Symbol 793 MovieClip [__Packages.com.utils.TracePanel] Frame 0
class com.utils.TracePanel
{
static var historyTF, displayObject, myFormat;
function TracePanel () {
}
static function add(msg) {
if (Helper.DEBUG_XML_MODE) {
if (!historyTF) {
displayObject = _root.createEmptyMovieClip("displayObject", 21000);
careateTextArea(displayObject);
}
msg = msg.toString();
historyTF.text = historyTF.text + (msg + newline);
historyTF.setTextFormat(myFormat);
}
}
static function clear() {
historyTF.text = "";
}
static function careateTextArea(sc, xx, yy, ww, hh) {
myFormat = new TextFormat();
myFormat.size = 12;
myFormat.color = 16777215 /* 0xFFFFFF */;
var x = (xx || 100);
var y = (yy || 0);
var w = (ww || 388);
var h = (hh || 134);
historyTF = sc.createTextField("historyTF", 5550, x, y, w, h);
historyTF.border = true;
historyTF.wordWrap = true;
historyTF.mouseWheelEnabled = true;
historyTF.selectable = true;
historyTF.multiline = true;
historyTF.html = true;
historyTF.htmlText = "";
com.utils.Filters.applingDropFilter(historyTF, 1);
}
function _destroy() {
}
}
Symbol 794 MovieClip [__Packages.com.game.GoalTabItem] Frame 0
class com.game.GoalTabItem
{
var scope, goalTitle, itemMC, countText, _count, _name;
function GoalTabItem (scope) {
this.scope = scope;
goalTitle = new TextFormat();
goalTitle.font = "titleFont";
goalTitle.size = 14;
goalTitle.bold = false;
goalTitle.color = 16776960 /* 0xFFFF00 */;
}
function create(type, iconName, count) {
if ((count != undefined) && (iconName)) {
var bgName;
if (type == "EARN") {
bgName = "GuiTabMoneyGoal";
} else {
bgName = "GuiItemTab";
}
var node = com.data.GUIxml.getXML("getGui", bgName).firstChild;
var mcCont = addObj(node, scope);
name = (mcCont._name);
node = com.data.GUIxml.getXML("getGui", "Goal" + iconName).firstChild;
itemMC = addObj(node, mcCont);
if (itemMC._width > ICON_WIDTH) {
itemMC._width = ICON_WIDTH;
itemMC._yscale = itemMC._xscale;
}
var Label_mc = mcCont.createEmptyMovieClip("Label_mc", mcCont.getNextHighestDepth());
Label_mc._x = itemMC._x;
Label_mc._y = itemMC._y;
countText = Label_mc.createTextField("countText", Label_mc.getNextHighestDepth(), itemMC._width + 4, (itemMC._height / 2) - 12, 100, 20);
countText.selectable = false;
countText.embedFonts = true;
countText.autoSize = true;
com.utils.Filters.applingTextFilter(countText);
this.count = (count);
mcCont.scope = this;
return(mcCont);
}
}
function get count() {
return(_count);
}
function set count(value) {
_count = Math.round(value);
countText.text = "x " + String(_count);
countText.setTextFormat(goalTitle);
//return(count);
}
function get name() {
return(_name);
}
function set name(value) {
_name = value;
//return(name);
}
function addObj(node, scope) {
var tmp = scope.createEmptyMovieClip(node.attributes.ID + scope.getNextHighestDepth(), node.attributes.layer || (scope.getNextHighestDepth()));
var src = (node.attributes.src || (node.attributes.ID));
var bmp = flash.display.BitmapData.loadBitmap(src);
tmp.attachBitmap(bmp, node.attributes.layer || (tmp.getNextHighestDepth()), "auto", true);
tmp._x = node.attributes.xPos || 0;
tmp._y = node.attributes.yPos || 0;
if (node.attributes.filter == "Tint") {
var my_color = new Color(tmp);
}
return(tmp);
}
static var ICON_WIDTH = 26;
}
Symbol 795 MovieClip [__Packages.com.game.pers.Pers] Frame 0
class com.game.pers.Pers extends MovieClip
{
var scope, bazeClass, f, nextActions_, actionFuse, movement, mcBody, mcHandL, mcHandR, mcTekedObjL, mcTekedObjR, skinObjList, animArr, currAnimSrc, currAnimSrcL, currAnimSrcR, orient, movOrient, currFuse, pathMap, emotList;
function Pers (scope, bazeClass) {
super();
this.scope = scope;
this.bazeClass = bazeClass;
scope.scope = this;
f = new com.mosesSupposes.fuse.Fuse();
f.label = "Pers Animation";
f.__set__target(scope);
nextActions_ = new Array();
actionFuse = new com.mosesSupposes.fuse.Fuse();
movement = false;
com.game.logic.DepthCtrl.registerObj(this);
mx.events.EventDispatcher.initialize(this);
}
function create(node) {
mcBody = scope.createEmptyMovieClip("mcBody", BODY_DEF_DEPTH);
mcHandL = scope.createEmptyMovieClip("mcHandL", L_HAND_DEF_DEPTH);
mcHandR = scope.createEmptyMovieClip("mcHandR", R_HAND_DEF_DEPTH);
mcTekedObjL = scope.createEmptyMovieClip("mcTekedObjL", L_OBJ_DEF_DEPTH);
mcTekedObjR = scope.createEmptyMovieClip("mcTekedObjR", R_OBJ_DEF_DEPTH);
skinIt(node);
}
function skinIt(node) {
skinObjList = node.firstChild;
scope._x = skinObjList.attributes.xPos;
scope._y = skinObjList.attributes.yPos;
animArr = new Array();
var objType;
var tmpNode;
var num = 0;
setPersOrientation("front", "stand");
while (skinObjList.childNodes[num].attributes.name) {
tmpNode = skinObjList.childNodes[num];
objType = tmpNode.attributes.name;
switch (objType) {
case "body" :
updBody(tmpNode);
break;
case "hands" :
updHands(tmpNode);
break;
case "animations" :
cacheAnimation(tmpNode);
}
num++;
}
}
function cacheAnimation(animNodes) {
var i = 0;
var node = null;
var anim;
while (animNodes.childNodes[i].attributes.name) {
node = animNodes.childNodes[i];
anim = com.data.GUIxml.getXML("animations", node.attributes.name);
switch (anim.firstChild.attributes.objName) {
case "body" :
animArr[node.attributes.name] = addAnimObj(mcBody, anim.firstChild);
break;
case "L_hand" :
animArr[anim.firstChild.attributes.src] = addAnimObj(mcHandL, anim.firstChild);
break;
case "R_hand" :
animArr[anim.firstChild.attributes.src] = addAnimObj(mcHandR, anim.firstChild);
}
if (animArr[[node.attributes.name]]) {
currAnimSrc = animArr[String(node.attributes.name)];
var skewMatrix = currAnimSrc.transform.matrix;
var skewMatrix_stat = (new flash.geom.Matrix(-1, 0, 0, 1, currAnimSrc._width, 0));
var skewMatrix_reset = (new flash.geom.Matrix(1, 0, 0, 1, 0, 0));
if (anim.firstChild.attributes.transform == "skew") {
skewMatrix.concat(skewMatrix_stat);
currAnimSrc.transform.matrix = skewMatrix;
}
}
i++;
}
}
function updBody(animNodes) {
var anim = com.data.GUIxml.getXML("animations", animNodes.attributes.elementID);
if (anim) {
hideOldAnime();
currAnimSrc = animArr[String(animNodes.attributes.elementID)];
currAnimSrc._visible = true;
if (anim.firstChild.attributes.type == "once") {
currAnimSrc.play();
} else {
currAnimSrc.nextCycle();
}
} else if (animNodes) {
addObj(mcBody, animNodes);
}
}
function hideOldAnime() {
currAnimSrc._destroy();
currAnimSrc._visible = false;
}
function hideOldHandAnime() {
currAnimSrcL._destroy();
currAnimSrcL._visible = false;
currAnimSrcR._destroy();
currAnimSrcR._visible = false;
mcHandL.stand._visible = false;
mcHandR.stand._visible = false;
}
function updHands(animNodes) {
var LHandNode = skinObjList.childNodes[HANDS_NODE_ID].childNodes[L_HAND_NODE_ID];
var RHandNode = skinObjList.childNodes[HANDS_NODE_ID].childNodes[R_HAND_NODE_ID];
var animL = com.data.GUIxml.getXML("animations", LHandNode.attributes.elementID);
var animR = com.data.GUIxml.getXML("animations", RHandNode.attributes.elementID);
hideOldHandAnime();
if (!animL.firstChild.attributes.src) {
var tmpL = mcHandL.createEmptyMovieClip("stand", 675);
if (LHandNode) {
addObj(tmpL, LHandNode);
tmpL._visible = true;
}
} else {
currAnimSrcL = animArr[String(LHandNode.attributes.elementID)];
var skewMatrix = currAnimSrcL.transform.matrix;
var skewMatrix_stat = (new flash.geom.Matrix(-1, 0, 0, 1, currAnimSrcL._width, 0));
var skewMatrix_reset = (new flash.geom.Matrix(1, 0, 0, 1, 0, 0));
if ((LHandNode.attributes.transform == "skew") && (skewMatrix.a != -1)) {
currAnimSrcL.transform.matrix = skewMatrix_stat;
currAnimSrcL._x = animL.firstChild.attributes.sxpos;
currAnimSrcL._y = animL.firstChild.attributes.sypos;
} else if (LHandNode.attributes.transform == "none") {
currAnimSrcL.transform.matrix = skewMatrix_reset;
currAnimSrcL._x = animL.firstChild.attributes.xpos;
currAnimSrcL._y = animL.firstChild.attributes.ypos;
}
currAnimSrcL._visible = true;
currAnimSrcL.nextCycle();
}
if (!animR.firstChild.attributes.src) {
var tmpR = mcHandR.createEmptyMovieClip("stand", 675);
if (RHandNode) {
addObj(tmpR, RHandNode);
tmpR._visible = true;
}
} else {
currAnimSrcR = animArr[String(RHandNode.attributes.elementID)];
var skewMatrix = currAnimSrcR.transform.matrix;
var skewMatrix_stat = (new flash.geom.Matrix(-1, 0, 0, 1, currAnimSrcR._width, 0));
var skewMatrix_reset = (new flash.geom.Matrix(1, 0, 0, 1, 0, 0));
if ((RHandNode.attributes.transform == "skew") && (skewMatrix.a != -1)) {
currAnimSrcR.transform.matrix = skewMatrix_stat;
currAnimSrcR._x = animR.firstChild.attributes.sxpos;
currAnimSrcR._y = animR.firstChild.attributes.sypos;
} else if (RHandNode.attributes.transform == "none") {
currAnimSrcR.transform.matrix = skewMatrix_reset;
currAnimSrcR._x = animR.firstChild.attributes.xpos;
currAnimSrcR._y = animR.firstChild.attributes.ypos;
}
currAnimSrcR._visible = true;
currAnimSrcR.nextCycle();
}
updTakedObj();
}
function hideTakedObj() {
mcTekedObjL._visible = false;
mcTekedObjR._visible = false;
}
function updTakedObj() {
var LHandNOde = skinObjList.childNodes[HANDS_NODE_ID].childNodes[L_HAND_NODE_ID];
var RHandNOde = skinObjList.childNodes[HANDS_NODE_ID].childNodes[R_HAND_NODE_ID];
var LObjNode = LHandNOde.firstChild;
var RObjNode = RHandNOde.firstChild;
if (LObjNode || (RObjNode)) {
LObjNode.attributes.transform = LHandNOde.attributes.transform;
RObjNode.attributes.transform = RHandNOde.attributes.transform;
var R_SRC = (getPersOrientation("R", String(RObjNode.attributes.objName).toLowerCase()) || (("R_hand" + String(RObjNode.attributes.objName).toLowerCase()) + "_front"));
var L_SRC = getPersOrientation("L", String(LObjNode.attributes.objName).toLowerCase());
var animL = com.data.GUIxml.getXML("animations", L_SRC);
var animR = com.data.GUIxml.getXML("animations", R_SRC);
RObjNode.attributes.elementID = animR.firstChild.attributes.src;
RObjNode.attributes.xpos = animR.firstChild.attributes.xpos;
RObjNode.attributes.ypos = animR.firstChild.attributes.ypos;
RObjNode.attributes.sxpos = animR.firstChild.attributes.sxpos;
RObjNode.attributes.sypos = animR.firstChild.attributes.sypos;
LObjNode.attributes.elementID = animL.firstChild.attributes.src;
LObjNode.attributes.xpos = animL.firstChild.attributes.xpos;
LObjNode.attributes.ypos = animL.firstChild.attributes.ypos;
LObjNode.attributes.sxpos = animL.firstChild.attributes.sxpos;
LObjNode.attributes.sypos = animL.firstChild.attributes.sypos;
if (RObjNode && (RObjNode.attributes.elementID)) {
addObj(mcTekedObjR, RObjNode);
skewMC(mcTekedObjR, RObjNode);
mcTekedObjR._visible = true;
}
if (LObjNode && (LObjNode.attributes.elementID)) {
addObj(mcTekedObjL, LObjNode);
skewMC(mcTekedObjL, LObjNode);
mcTekedObjL._visible = true;
}
}
}
function skewMC(mc, node) {
var skewMatrix = mc.transform.matrix;
var skewMatrix_stat = (new flash.geom.Matrix(-1, 0, 0, 1, mc._width, 0));
var skewMatrix_reset = (new flash.geom.Matrix(1, 0, 0, 1, 0, 0));
if (node.attributes.transform == "skew") {
if (skewMatrix.a != -1) {
mc.transform.matrix = skewMatrix_stat;
}
mc._x = node.attributes.sxpos;
mc._y = node.attributes.sypos;
} else if (node.attributes.transform == "none") {
mc.transform.matrix = skewMatrix_reset;
mc._x = node.attributes.xpos;
mc._y = node.attributes.ypos;
}
}
function addObj(link, node) {
var tmp = link.createEmptyMovieClip(node.attributes.elementID || (node.attributes.src), node.attributes.layer || (link.getNextHighestDepth()));
var src = (node.attributes.elementID || (node.attributes.src));
var bmp = flash.display.BitmapData.loadBitmap(src);
tmp.attachBitmap(bmp, node.attributes.layer || 0, "auto", true);
tmp._x = node.attributes.xPos || 0;
tmp._y = node.attributes.yPos || 0;
return(tmp);
}
function addAnimObj(link, aXML) {
var mcAnim = link.attachMovie("SimpleAnim", aXML.attributes.src, aXML.attributes.layer || (link.getNextHighestDepth()));
mcAnim._visible = false;
mcAnim._x = aXML.attributes.xpos;
mcAnim._y = aXML.attributes.ypos;
mcAnim.createByXML(aXML, link);
return(mcAnim);
}
function setPersOrientation(nOrient, mov) {
orient = nOrient || (orient);
movOrient = mov || (movOrient);
}
function getPersOrientation(handSide, objName) {
if ((handSide == "R") && (skinObjList.childNodes[HANDS_NODE_ID].childNodes[R_HAND_NODE_ID].attributes.transform == "skew")) {
handSide = "L";
} else if ((handSide == "L") && (skinObjList.childNodes[HANDS_NODE_ID].childNodes[L_HAND_NODE_ID].attributes.transform == "skew")) {
handSide = "R";
}
var res;
res = (((((handSide + "_") + objName) + "_") + orient) + "_") + movOrient;
return(res);
}
function updHandSprite(handSide) {
var handNode;
if (handSide == "R") {
handNode = skinObjList.childNodes[HANDS_NODE_ID].childNodes[R_HAND_NODE_ID];
} else if (handSide == "L") {
handNode = skinObjList.childNodes[HANDS_NODE_ID].childNodes[L_HAND_NODE_ID];
}
var key1;
var key2;
var key3;
var key4;
key1 = handSide;
if (handNode.childNodes.length > 0) {
if (((((handNode.firstChild.attributes.objName != "Bucket") && (handNode.firstChild.attributes.objName != "Grain")) && (handNode.firstChild.attributes.objName != "Clover")) && (handNode.firstChild.attributes.objName != "whiteEggs")) && (handNode.firstChild.attributes.objName != "Wool")) {
key2 = "handpumpkin";
} else {
key2 = "handbucket";
}
} else {
key2 = "hand";
}
var newSRC = getPersOrientation(key1, key2);
var myXML = com.data.GUIxml.getXML("animations", newSRC);
if (!myXML.firstChild.attributes.src) {
myXML = com.data.GUIxml.getXML("partofbody", newSRC);
}
handNode.attributes.elementID = myXML.firstChild.attributes.src || (newSRC);
handNode.attributes.xPos = myXML.firstChild.attributes.xPos || (handNode.attributes.xPos);
handNode.attributes.yPos = myXML.firstChild.attributes.yPos || (handNode.attributes.yPos);
updHands(null);
}
function takeInLHand(node) {
var LHandNode = skinObjList.childNodes[HANDS_NODE_ID].childNodes[L_HAND_NODE_ID];
LHandNode.appendChild(node);
updHandSprite("L");
}
function putOutLHand(target) {
var LHandNode = skinObjList.childNodes[HANDS_NODE_ID].childNodes[L_HAND_NODE_ID];
var key_1 = objTypeInLHand();
var key_2 = "toPlace";
var myXML = com.data.GUIxml.getXML("obj", key_1, key_2);
var res = target.scope.addObjToPlace(myXML.firstChild);
if (LHandNode.firstChild) {
if (res) {
mcTekedObjL[LHandNode.firstChild.attributes.elementID].removeMovieClip();
LHandNode.firstChild.removeNode();
updHandSprite("L");
}
}
return(res);
}
function takeInRHand(node) {
var RHandNode = skinObjList.childNodes[HANDS_NODE_ID].childNodes[R_HAND_NODE_ID];
RHandNode.appendChild(node);
updHandSprite("R");
}
function putOutRHand(target) {
var RHandNode = skinObjList.childNodes[HANDS_NODE_ID].childNodes[R_HAND_NODE_ID];
var key_1 = objTypeInRHand();
var key_2 = "toPlace";
var myXML = com.data.GUIxml.getXML("obj", key_1, key_2);
var res = target.scope.addObjToPlace(myXML.firstChild);
if (RHandNode.firstChild) {
if (res) {
mcTekedObjR[RHandNode.firstChild.attributes.elementID].removeMovieClip();
RHandNode.firstChild.removeNode();
updHandSprite("R");
}
}
return(res);
}
function objTypeInRHand() {
return(XMLNode(skinObjList.childNodes[HANDS_NODE_ID].childNodes[R_HAND_NODE_ID].firstChild).attributes.objName);
}
function objTypeInLHand() {
return(XMLNode(skinObjList.childNodes[HANDS_NODE_ID].childNodes[L_HAND_NODE_ID].firstChild).attributes.objName);
}
function takeObj(node) {
var objNode = null;
var key_1 = node.attributes.objName;
var key_2 = "toHand";
var base = String(node.attributes.objName).toLowerCase();
var myXML = com.data.GUIxml.getXML("obj", key_1, key_2);
if ((isHandsFree() == 0) || (isHandsFree() == 2)) {
com.base.SoundPlayer.play("ItemPickup");
objNode = com.utils.XMLObjFinder.parseXML(myXML, base, "R", "front");
takeInRHand(objNode);
} else if (isHandsFree() == 1) {
com.base.SoundPlayer.play("ItemPickup");
objNode = com.utils.XMLObjFinder.parseXML(myXML, base, "L", "front");
takeInLHand(objNode);
} else {
return(false);
}
return(true);
}
function putOutObj(target, filter) {
if (isHandsFree() > 1) {
if (!putOutLHand(target)) {
putOutRHand(target);
}
putOutRHand(target);
} else if (isHandsFree() == 1) {
putOutRHand(target);
} else {
return(false);
}
return(true);
}
function isHandsFree() {
var retVal = 0;
var LHandNode = skinObjList.childNodes[HANDS_NODE_ID].childNodes[L_HAND_NODE_ID];
var RHandNode = skinObjList.childNodes[HANDS_NODE_ID].childNodes[R_HAND_NODE_ID];
if (LHandNode.childNodes.length && (RHandNode.childNodes.length)) {
retVal = 3;
} else if (LHandNode.childNodes.length) {
retVal = 2;
} else if (RHandNode.childNodes.length) {
retVal = 1;
} else {
retVal = 0;
}
return(retVal);
}
function gotoObject(aObj, aFuse) {
com.mosesSupposes.fuse.ZigoEngine.removeTween(this);
currFuse = aFuse;
movement = true;
if ((aObj._name == undefined) && (aObj.scope._name == undefined)) {
return(undefined);
}
var myPoint;
if (aObj.scope.xPos) {
myPoint = new flash.geom.Point(aObj.scope.xPos, aObj.scope.yPos);
} else {
myPoint = new flash.geom.Point(aObj.xPos, aObj.yPos);
}
getTurnAnim(myPoint);
moveToPoint(scope, myPoint);
}
function nextFuse() {
if (currFuse.length) {
movement = false;
var index = currFuse.__get__currentIndex();
currFuse.resume();
}
}
function getTurnAnim(myPoint) {
if ((myPoint.x > scope._x) && (myPoint.y < scope._y)) {
turnUpR();
} else if ((myPoint.x > scope._x) && (myPoint.y > scope._y)) {
turnDnR();
} else if ((myPoint.x < scope._x) && (myPoint.y < scope._y)) {
turnUpL();
} else if ((myPoint.x > scope._x) && (myPoint.y == scope._y)) {
turnR();
} else if ((myPoint.x == scope._x) && (myPoint.y < scope._y)) {
turnUp();
} else if ((myPoint.x < scope._x) && (myPoint.y == scope._y)) {
turnL();
} else if ((myPoint.x < scope._x) && (myPoint.y > scope._y)) {
turnDnL();
} else if ((myPoint.x == scope._x) && (myPoint.y > scope._y)) {
turnDn();
}
return(0);
}
function moveToPoint(mc, point) {
if (mc) {
var x;
var y;
x = point.x - (mc._width / 2);
y = point.y - 50;
var path = [];
path = com.game.logic.Pathfinding.findPath(pathMap.map, pathMap.YConvertToMap(mc._y + 70), pathMap.XConvertToMap(mc._x), pathMap.YConvertToMap((y + 70) + 20), pathMap.XConvertToMap(x));
if (path.length > 1) {
pathMap.showPath(path);
createMovingFuse(mc, path);
} else {
currFuse.fastForward(2);
moveIsDone();
}
}
}
function createMovingFuse(mc, path) {
if (path) {
mc.i = 0;
nextPoint(mc, path);
}
}
function nextPoint(mc, path) {
com.game.logic.DepthCtrl.callBack(this);
com.game.GameZone.GAME_ZONE_CLASS.mouseMoveAction();
var nextFunc;
mc.i++;
var xPos = pathMap.XConvertToLocal(path[mc.i][1]);
var yPos = (pathMap.YConvertToLocal(path[mc.i][0]) - 70);
var point = (new flash.geom.Point(xPos, yPos));
getTurnAnim(point);
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_x", xPos, 0.2, com.mosesSupposes.fuse.PennerEasing.linear, 0);
if (mc.i < (path.length - 1)) {
nextFunc = "nextPoint";
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_y", yPos, 0.2, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:nextFunc, args:[mc, path]});
} else {
nextFunc = "moveIsDone";
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_y", yPos, 0.2, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:nextFunc, args:mc});
}
}
function moveIsDone(mc) {
com.mosesSupposes.fuse.ZigoEngine.removeTween(mc);
stayToFront();
nextFuse();
com.game.logic.DepthCtrl.callBack(this);
}
function stayToFront() {
if (skinObjList.childNodes[BODY_NODE_ID].attributes.elementID != (bazeBodyPref + "_blink")) {
skinObjList.childNodes[BODY_NODE_ID].attributes.elementID = bazeBodyPref + "_blink";
skinObjList.childNodes[BODY_NODE_ID].attributes.transform = "none";
setPersOrientation("front", "stand");
updBody(skinObjList.childNodes[BODY_NODE_ID]);
skinObjList.childNodes[HANDS_NODE_ID].childNodes[R_HAND_NODE_ID].attributes.transform = "none";
skinObjList.childNodes[HANDS_NODE_ID].childNodes[L_HAND_NODE_ID].attributes.transform = "none";
updHandSprite("L");
updHandSprite("R");
setDepth(mcHandR, R_HAND_DEF_DEPTH);
setDepth(mcHandL, L_HAND_DEF_DEPTH);
setDepth(mcTekedObjR, R_OBJ_DEF_DEPTH);
setDepth(mcTekedObjL, L_OBJ_DEF_DEPTH);
}
}
function countFuses(baseLabel, cloudRequest) {
var retVal = 0;
var fuses = com.mosesSupposes.fuse.Fuse.getInstances();
var i = 0;
while (i < fuses.length) {
if (fuses[i].label == ("Take of " + cloudRequest)) {
retVal++;
}
i++;
}
return(retVal);
}
function setDepth(mc, depth) {
if (mc.getDepth() != depth) {
var tmp = scope.createEmptyMovieClip("tmp", depth);
tmp.swapDepths(mc);
tmp.removeMovieClip();
}
}
function turnUpR() {
if (skinObjList.childNodes[BODY_NODE_ID].attributes.elementID != (bazeBodyPref + "_backright")) {
skinObjList.childNodes[BODY_NODE_ID].attributes.elementID = bazeBodyPref + "_backright";
skinObjList.childNodes[BODY_NODE_ID].attributes.transform = "skew";
setPersOrientation("backleft", "walk");
updBody(skinObjList.childNodes[BODY_NODE_ID]);
skinObjList.childNodes[HANDS_NODE_ID].childNodes[R_HAND_NODE_ID].attributes.transform = "skew";
skinObjList.childNodes[HANDS_NODE_ID].childNodes[L_HAND_NODE_ID].attributes.transform = "skew";
updHandSprite("L");
updHandSprite("R");
if (mcHandR.getDepth() != R_SKEW_HAND_DEPTH) {
setDepth(mcHandR, R_SKEW_HAND_DEPTH);
}
setDepth(mcTekedObjR, R_OBJ_DEF_DEPTH);
setDepth(mcTekedObjL, L_SKEW_OBJ_DEPTH);
}
}
function turnR() {
if (skinObjList.childNodes[BODY_NODE_ID].attributes.elementID != (bazeBodyPref + "_right")) {
skinObjList.childNodes[BODY_NODE_ID].attributes.elementID = bazeBodyPref + "_right";
skinObjList.childNodes[BODY_NODE_ID].attributes.transform = "skew";
setPersOrientation("left", "walk");
updBody(skinObjList.childNodes[BODY_NODE_ID]);
skinObjList.childNodes[HANDS_NODE_ID].childNodes[R_HAND_NODE_ID].attributes.transform = "skew";
skinObjList.childNodes[HANDS_NODE_ID].childNodes[L_HAND_NODE_ID].attributes.transform = "skew";
updHandSprite("L");
updHandSprite("R");
if (mcHandR.getDepth() != R_SKEW_HAND_DEPTH) {
setDepth(mcHandR, R_SKEW_HAND_DEPTH);
}
setDepth(mcTekedObjR, R_OBJ_DEF_DEPTH);
setDepth(mcTekedObjL, L_SKEW_OBJ_DEPTH);
if (mcHandL.getDepth() != L_HAND_DEF_DEPTH) {
setDepth(mcHandL, L_HAND_DEF_DEPTH);
}
}
}
function turnDnR() {
if (skinObjList.childNodes[BODY_NODE_ID].attributes.elementID != (bazeBodyPref + "_frontright")) {
skinObjList.childNodes[BODY_NODE_ID].attributes.elementID = bazeBodyPref + "_frontright";
skinObjList.childNodes[BODY_NODE_ID].attributes.transform = "skew";
setPersOrientation("frontleft", "walk");
updBody(skinObjList.childNodes[BODY_NODE_ID]);
skinObjList.childNodes[HANDS_NODE_ID].childNodes[R_HAND_NODE_ID].attributes.transform = "skew";
skinObjList.childNodes[HANDS_NODE_ID].childNodes[L_HAND_NODE_ID].attributes.transform = "skew";
setDepth(mcHandR, R_SKEW_HAND_DEPTH);
setDepth(mcHandL, L_HAND_DEF_DEPTH);
setDepth(mcTekedObjR, R_OBJ_DEF_DEPTH);
setDepth(mcTekedObjL, L_SKEW_OBJ_DEPTH);
updHandSprite("L");
updHandSprite("R");
}
}
function turnDn() {
if (skinObjList.childNodes[BODY_NODE_ID].attributes.elementID != (bazeBodyPref + "_front")) {
skinObjList.childNodes[BODY_NODE_ID].attributes.elementID = bazeBodyPref + "_front";
skinObjList.childNodes[BODY_NODE_ID].attributes.transform = "none";
setPersOrientation("front", "walk");
updBody(skinObjList.childNodes[BODY_NODE_ID]);
skinObjList.childNodes[HANDS_NODE_ID].childNodes[R_HAND_NODE_ID].attributes.transform = "none";
skinObjList.childNodes[HANDS_NODE_ID].childNodes[L_HAND_NODE_ID].attributes.transform = "none";
updHandSprite("L");
updHandSprite("R");
if (mcHandR.getDepth() != R_HAND_DEF_DEPTH) {
setDepth(mcHandR, R_HAND_DEF_DEPTH);
}
setDepth(mcTekedObjR, R_OBJ_DEF_DEPTH);
setDepth(mcTekedObjL, L_OBJ_DEF_DEPTH);
if (mcHandL.getDepth() != L_HAND_DEF_DEPTH) {
setDepth(mcHandL, L_HAND_DEF_DEPTH);
}
}
}
function turnDnL() {
if (skinObjList.childNodes[BODY_NODE_ID].attributes.elementID != (bazeBodyPref + "_frontleft")) {
skinObjList.childNodes[BODY_NODE_ID].attributes.elementID = bazeBodyPref + "_frontleft";
skinObjList.childNodes[BODY_NODE_ID].attributes.transform = "none";
setPersOrientation("frontleft", "walk");
updBody(skinObjList.childNodes[BODY_NODE_ID]);
skinObjList.childNodes[HANDS_NODE_ID].childNodes[R_HAND_NODE_ID].attributes.transform = "none";
skinObjList.childNodes[HANDS_NODE_ID].childNodes[L_HAND_NODE_ID].attributes.transform = "none";
updHandSprite("L");
updHandSprite("R");
if (mcHandR.getDepth() != R_SKEW_HAND_DEPTH) {
setDepth(mcHandR, R_SKEW_HAND_DEPTH);
setDepth(mcTekedObjR, R_SKEW_OBJ_DEPTH);
}
setDepth(mcTekedObjL, L_OBJ_DEF_DEPTH);
if (mcHandL.getDepth() != L_HAND_DEF_DEPTH) {
setDepth(mcHandL, L_HAND_DEF_DEPTH);
}
}
}
function turnL() {
if ((skinObjList.childNodes[BODY_NODE_ID].attributes.elementID != (bazeBodyPref + "_left")) || ((skinObjList.childNodes[BODY_NODE_ID].attributes.elementID == (bazeBodyPref + "_left")) && (skinObjList.childNodes[BODY_NODE_ID].attributes.transform != "none"))) {
skinObjList.childNodes[BODY_NODE_ID].attributes.elementID = bazeBodyPref + "_left";
skinObjList.childNodes[BODY_NODE_ID].attributes.transform = "none";
setPersOrientation("left", "walk");
updBody(skinObjList.childNodes[BODY_NODE_ID]);
skinObjList.childNodes[HANDS_NODE_ID].childNodes[R_HAND_NODE_ID].attributes.transform = "none";
skinObjList.childNodes[HANDS_NODE_ID].childNodes[L_HAND_NODE_ID].attributes.transform = "none";
updHandSprite("L");
updHandSprite("R");
if (mcHandR.getDepth() != R_SKEW_HAND_DEPTH) {
setDepth(mcHandR, R_SKEW_HAND_DEPTH);
}
setDepth(mcTekedObjR, R_SKEW_OBJ_DEPTH);
setDepth(mcTekedObjL, L_OBJ_DEF_DEPTH);
}
}
function turnUpL() {
if (skinObjList.childNodes[BODY_NODE_ID].attributes.elementID != (bazeBodyPref + "_backleft")) {
skinObjList.childNodes[BODY_NODE_ID].attributes.elementID = bazeBodyPref + "_backleft";
skinObjList.childNodes[BODY_NODE_ID].attributes.transform = "none";
setPersOrientation("backleft", "walk");
updBody(skinObjList.childNodes[BODY_NODE_ID]);
skinObjList.childNodes[HANDS_NODE_ID].childNodes[R_HAND_NODE_ID].attributes.transform = "none";
skinObjList.childNodes[HANDS_NODE_ID].childNodes[L_HAND_NODE_ID].attributes.transform = "none";
updHandSprite("L");
updHandSprite("R");
if (mcHandR.getDepth() != R_SKEW_HAND_DEPTH) {
setDepth(mcHandR, R_SKEW_HAND_DEPTH);
}
setDepth(mcTekedObjL, L_OBJ_DEF_DEPTH);
setDepth(mcTekedObjR, R_SKEW_OBJ_DEPTH);
}
}
function turnUp() {
if (skinObjList.childNodes[BODY_NODE_ID].attributes.elementID != (bazeBodyPref + "_back")) {
skinObjList.childNodes[BODY_NODE_ID].attributes.elementID = bazeBodyPref + "_back";
skinObjList.childNodes[BODY_NODE_ID].attributes.transform = "none";
setPersOrientation("back", "walk");
updBody(skinObjList.childNodes[BODY_NODE_ID]);
skinObjList.childNodes[HANDS_NODE_ID].childNodes[R_HAND_NODE_ID].attributes.transform = "none";
skinObjList.childNodes[HANDS_NODE_ID].childNodes[L_HAND_NODE_ID].attributes.transform = "none";
updHandSprite("L");
updHandSprite("R");
if (mcHandR.getDepth() != R_HAND_DEF_DEPTH) {
setDepth(mcHandR, R_HAND_DEF_DEPTH);
}
setDepth(mcTekedObjR, R_SKEW_OBJ_DEPTH);
setDepth(mcTekedObjL, L_SKEW_OBJ_DEPTH);
}
}
function handleEvent(o) {
var targetFuse = com.mosesSupposes.fuse.Fuse(o.target);
if (o.type == "onComplete") {
currFuse.removeEventListener("onComplete", this);
currFuse.destroy();
delete currFuse;
currFuse = new com.mosesSupposes.fuse.Fuse();
if (nextActions_.length > 0) {
currFuse.push(nextActions_.shift());
currFuse.start();
} else {
actionFuse.removeEventListener("onComplete", this);
actionFuse.destroy();
delete actionFuse;
actionFuse = new com.mosesSupposes.fuse.Fuse();
}
}
}
function addApplingAction(target) {
if ((actionFuse.length == 0) && ((currFuse.length == 0) || (!currFuse))) {
actionFuse.push(fuseAddAction(target));
} else {
nextActions_.push(fuseAddAction(target));
}
if (nextActions_.length == 0) {
actionFuse.start();
}
}
function fuseAddAction(target) {
var myListenerObj = new Object();
var aFuse = (new com.mosesSupposes.fuse.Fuse());
target = target.scope;
aFuse.label = "Put_Obj_" + target._name;
aFuse.scope = this;
aFuse.push({func:"debTr"});
aFuse.push({func:"gotoObject", args:[target, aFuse]});
aFuse.push({command:"pause"});
aFuse.push({scope:target.scope, func:"removeMarker"});
aFuse.push({func:"getObjAction", args:[target]});
aFuse.push({func:"trace", args:["_______^^__Pers end fuse actions____^^______"]});
aFuse.addEventListener("onComplete", this);
return(aFuse);
}
function getObjAction(sc) {
com.game.logic.DepthCtrl.callBack(this);
var fnName = sc.scope.getObjAction();
com.game.GameZone.GAME_ZONE_CLASS.levContr.checkAction(fnName);
this[fnName].call(this, sc);
}
function debTr() {
}
function randomEmotion() {
nextFuse();
stayToFront();
}
function getEmotion(num) {
return(String(emotList[num]));
}
function initEmotionList(arr) {
emotList = arr;
}
function pauseAnimations() {
f.pause();
if (com.mosesSupposes.fuse.ZigoEngine.isTweening(scope)) {
com.mosesSupposes.fuse.ZigoEngine.pauseTween(scope);
}
if (com.mosesSupposes.fuse.ZigoEngine.isTweening(this)) {
com.mosesSupposes.fuse.ZigoEngine.pauseTween(this);
}
currAnimSrcL.stop();
currAnimSrcR.stop();
currAnimSrc.stop();
}
function resumeAnimations() {
f.resume();
currAnimSrcL.play();
currAnimSrcR.play();
currAnimSrc.play();
if (com.mosesSupposes.fuse.ZigoEngine.isTweening(scope)) {
com.mosesSupposes.fuse.ZigoEngine.resumeTween(scope);
}
if (com.mosesSupposes.fuse.ZigoEngine.isTweening(this)) {
com.mosesSupposes.fuse.ZigoEngine.resumeTween(this);
}
if (!currFuse.length) {
randomEmotion();
}
}
function _destroy() {
com.mosesSupposes.fuse.ZigoEngine.removeTween(this);
com.mosesSupposes.fuse.ZigoEngine.removeTween(scope);
f.stop();
f.destroy();
delete f;
actionFuse.stop();
actionFuse.destroy();
delete actionFuse;
currFuse.stop();
currFuse.destroy();
delete currFuse;
scope.removeMovieClip();
return(true);
}
function get placeID() {
return(_placeID);
}
function set placeID(value) {
_placeID = value;
//return(placeID);
}
function get yPos() {
return(scope._y);
}
function toString() {
return("Pers: " + yPos);
}
static var L_HAND_NODE_ID = 0;
static var R_HAND_NODE_ID = 1;
static var HANDS_NODE_ID = 2;
static var BODY_NODE_ID = 1;
static var BODY_DEF_DEPTH = 50;
static var L_HAND_DEF_DEPTH = 100;
static var R_HAND_DEF_DEPTH = 110;
static var R_SKEW_HAND_DEPTH = 35;
static var L_SKEW_HAND_DEPTH = 45;
static var R_OBJ_DEF_DEPTH = 80;
static var R_SKEW_OBJ_DEPTH = 30;
static var L_OBJ_DEF_DEPTH = 90;
static var L_SKEW_OBJ_DEPTH = 40;
static var BAD_ACTION_ID = "";
var animationSpeed = null;
var _placeID = null;
var bazeBodyPref = "body";
}
Symbol 796 MovieClip [__Packages.com.game.logic.DepthCtrl] Frame 0
class com.game.logic.DepthCtrl
{
static var _objInFocus;
function DepthCtrl () {
}
static function registerObj(obj) {
addObjToArr(obj);
}
static function clickHandler(e) {
}
static function callBack(obj) {
objInFocus = (obj);
var y_1;
var y_2;
var depth1;
var depth2;
var objName;
sortArr = [];
var i = 0;
while (i < objArr.length) {
if (objArr[i].scope._name) {
sortArr.push({_z:objArr[i].scope._y + (objArr[i].persHeight || 0), name:objArr[i].scope._name, obj:objArr[i].scope});
} else {
delete objArr[i];
}
i++;
}
var i = 0;
while (i < sortArr.length) {
i++;
}
sortArr.sortOn("_z", Array.NUMERIC);
var i = 0;
while (i < sortArr.length) {
i++;
}
var h;
var depth;
do {
var r = 0;
var i = 0;
while (i < sortArr.length) {
depth = sortArr[i].obj.getDepth();
h = 600 + i;
if (h != depth) {
sortArr[i].obj.swapDepths(h);
} else {
r++;
}
i++;
}
} while (r < (sortArr[i].length - 2));
var i = 0;
while (i < objArr.length) {
i++;
}
}
static function unregisterObj(obj) {
objArr[obj.scope._name].pop();
objArr[obj.scope._name] = null;
}
static function get objInFocus() {
return(_objInFocus);
}
static function set objInFocus(value) {
_objInFocus = value;
//return(objInFocus);
}
static function addObjToArr(obj) {
objArr.push(obj);
}
static var objArr = new Array();
static var sortArr = new Array();
}
Symbol 797 MovieClip [__Packages.com.game.logic.Pathfinding] Frame 0
class com.game.logic.Pathfinding
{
var mapStatus, openList;
function Pathfinding () {
}
function isOpen(y, x) {
return(mapStatus[y][x].open);
}
function isClosed(y, x) {
return(mapStatus[y][x].closed);
}
function nearerSquare() {
var minimum = 999999;
var indexFound = 0;
var thisF = undefined;
var thisSquare = undefined;
var i = openList.length;
while ((i--) > 0) {
thisSquare = mapStatus[openList[i][0]][openList[i][1]];
thisF = thisSquare.heuristic + thisSquare.movementCost;
if (thisF <= minimum) {
minimum = thisF;
indexFound = i;
}
}
return(indexFound);
}
function closeSquare(y, x) {
var len = openList.length;
var i = 0;
while (i < len) {
if (openList[i][0] == y) {
if (openList[i][1] == x) {
openList.splice(i, 1);
break;
}
}
i++;
}
mapStatus[y][x].open = false;
mapStatus[y][x].closed = true;
}
function openSquare(y, x, parent, movementCost, heuristic, replacing) {
if (!replacing) {
openList.push([y, x]);
mapStatus[y][x] = {heuristic:heuristic, open:true, closed:false};
}
mapStatus[y][x].parent = parent;
mapStatus[y][x].movementCost = movementCost;
}
function findPathInternal(map, startY, startX, endY, endX) {
if ((startY == undefined) || (startX == undefined)) {
return(null);
}
if ((endY == undefined) || (endX == undefined)) {
return(null);
}
var mapH = map.length;
var mapW = map[0].length;
mapStatus = new Array();
var i = 0;
while (i < mapH) {
mapStatus[i] = new Array();
i++;
}
openList = new Array();
openSquare(startY, startX, undefined, 0);
while ((openList.length > 0) && (!isClosed(endY, endX))) {
var i = nearerSquare();
var nowY = openList[i][0];
var nowX = openList[i][1];
closeSquare(nowY, nowX);
var j = (nowY - 1);
while (j < (nowY + 2)) {
var k = (nowX - 1);
while (k < (nowX + 2)) {
if (((((((j >= 0) && (j < mapH)) && (k >= 0)) && (k < mapW)) && (!((j == nowY) && (k == nowX)))) && ((ALLOW_DIAGONAL || (j == nowY)) || (k == nowX))) && (((ALLOW_DIAGONAL_CORNERING || (j == nowY)) || (k == nowX)) || ((map[j][nowX] != 0) && (map[nowY][k])))) {
if (map[j][k] != 0) {
if (!isClosed(j, k)) {
var movementCost = (mapStatus[nowY][nowX].movementCost + ((((j == nowY) || (k == nowX)) ? (HV_COST) : (D_COST)) * map[j][k]));
if (isOpen(j, k)) {
if (movementCost < mapStatus[j][k].movementCost) {
openSquare(j, k, [nowY, nowX], movementCost, undefined, true);
}
} else {
var heuristic = ((Math.abs(j - endY) + Math.abs(k - endX)) * 10);
openSquare(j, k, [nowY, nowX], movementCost, heuristic, false);
}
}
}
}
k++;
}
j++;
}
}
var pFound = isClosed(endY, endX);
if (pFound) {
var returnPath = new Array();
var nowY = endY;
var nowX = endX;
while ((nowY != startY) || (nowX != startX)) {
returnPath.push([nowY, nowX]);
var newY = mapStatus[nowY][nowX].parent[0];
var newX = mapStatus[nowY][nowX].parent[1];
nowY = newY;
nowX = newX;
}
returnPath.push([startY, startX]);
returnPath.reverse();
return(returnPath);
}
return(null);
}
static function findPath(map, startY, startX, endY, endX) {
var pf = (new com.game.logic.Pathfinding());
if (!map[endY][endX]) {
} else {
var ret = pf.findPathInternal(map, startY, startX, endY, endX);
}
delete pf;
return(ret);
}
var HV_COST = 10;
var D_COST = 14;
var ALLOW_DIAGONAL = true;
var ALLOW_DIAGONAL_CORNERING = true;
}
Symbol 798 MovieClip [__Packages.com.game.pers.Girl] Frame 0
class com.game.pers.Girl extends com.game.pers.Pers
{
var persHeight, skinObjList, updBody, hideOldHandAnime, hideTakedObj, currFuse, __set__placeID, dispatchEvent, scope, takeObj, putOutObj, objTypeInLHand, putOutLHand, objTypeInRHand, putOutRHand, isHandsFree, randomEmotion;
function Girl (scope, bazeClass) {
super(scope, bazeClass);
persHeight = 90;
}
function gotoSetVeg(target) {
if (((!com.game.places.VegPlace(target.scope).busy) && (com.game.places.VegPlace(target.scope).activeVeg != "")) && (com.game.places.VegPlace(target.scope).activeVeg != undefined)) {
com.game.places.VegPlace(target.scope).busy = true;
skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID].attributes.elementID = "PlantRight";
skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID].attributes.transform = "none";
updBody(skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID]);
hideOldHandAnime();
hideTakedObj();
currFuse.pause();
__set__placeID(com.game.places.VegPlace(target.scope).placeID);
dispatchEvent({type:"action", event:"placeIntoSoil"});
__set__placeID(null);
com.mosesSupposes.fuse.ZigoEngine.doTween(this, (scope.a = 0), 1, 1, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"randomEmotion"});
}
}
function getWater(target) {
var resNode = com.game.places.Place(target.scope).takeObjOutPlace(this);
takeObj(resNode);
}
function getGrain(target) {
var resNode = com.game.places.Place(target.scope).takeObjOutPlace(this);
takeObj(resNode);
}
function getProduct(target) {
var resNode = com.game.places.Place(target.scope).takeObjOutPlace(this);
takeObj(resNode);
}
function putGrain(target) {
putOutObj(target);
}
function putWater(target) {
putOutObj(target);
}
function fillPan(target) {
if (com.game.places.Place(target.scope).checkObjToPlace()) {
if (com.game.places.Place(target.scope).checkObjTypes(objTypeInLHand())) {
com.base.SoundPlayer.play("GardenWater");
putOutLHand(target);
skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID].attributes.elementID = "FlowLeft";
updBody(skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID]);
com.mosesSupposes.fuse.ZigoEngine.doTween(this, (scope.a = 0), 1, 1, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"randomEmotion"});
hideOldHandAnime();
hideTakedObj();
currFuse.pause();
} else if (com.game.places.Place(target.scope).checkObjTypes(objTypeInRHand())) {
com.base.SoundPlayer.play("GardenWater");
putOutRHand(target);
skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID].attributes.elementID = "FlowLeft";
updBody(skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID]);
com.mosesSupposes.fuse.ZigoEngine.doTween(this, (scope.a = 0), 1, 1, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"randomEmotion"});
hideOldHandAnime();
hideTakedObj();
currFuse.pause();
}
}
}
function setFood(target) {
if (com.game.places.Place(target.scope).checkObjToPlace()) {
if (com.game.places.Place(target.scope).checkObjTypes(objTypeInLHand())) {
putOutLHand(target);
} else if (com.game.places.Place(target.scope).checkObjTypes(objTypeInRHand())) {
putOutRHand(target);
}
}
}
function pourOn(target) {
if (!com.game.Evolution(com.game.places.VegPlace(target.scope).getPlacedObj()).evolutInProgress) {
if (objTypeInLHand() == "Bucket") {
com.base.SoundPlayer.play("GardenWater");
putOutLHand(target);
skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID].attributes.elementID = "FlowRight";
updBody(skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID]);
com.game.Evolution(com.game.places.VegPlace(target.scope).getPlacedObj()).nextStage();
com.mosesSupposes.fuse.ZigoEngine.doTween(this, (scope.a = 0), 1, 1, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"randomEmotion"});
hideOldHandAnime();
hideTakedObj();
currFuse.pause();
} else if (objTypeInRHand() == "Bucket") {
com.base.SoundPlayer.play("GardenWater");
putOutRHand(target);
skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID].attributes.elementID = "FlowRight";
updBody(skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID]);
com.game.Evolution(com.game.places.VegPlace(target.scope).getPlacedObj()).nextStage();
com.mosesSupposes.fuse.ZigoEngine.doTween(this, (scope.a = 0), 1, 1, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"randomEmotion"});
hideOldHandAnime();
hideTakedObj();
currFuse.pause();
}
}
}
function digIt(target) {
if (!com.game.Evolution(com.game.places.VegPlace(target.scope).getPlacedObj()).evolutInProgress) {
skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID].attributes.elementID = "HoeRight";
skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID].attributes.transform = "none";
updBody(skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID]);
hideOldHandAnime();
hideTakedObj();
currFuse.pause();
var animationTime;
if (Main.userProfile.getItemsList("hoe").nodeName) {
com.base.SoundPlayer.play("Hill", 1);
animationTime = 0.7;
} else {
com.base.SoundPlayer.play("Hill", 1);
animationTime = 1.8;
}
com.mosesSupposes.fuse.ZigoEngine.doTween(this, (scope.a = 0), 1, animationTime, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"afterDigit", args:[target]});
MovieClip(com.game.Evolution(com.game.places.VegPlace(target.scope).getPlacedObj()).scope).swapDepths(com.game.Evolution(com.game.places.VegPlace(target.scope).getPlacedObj()).defaultDepth);
com.game.Evolution(com.game.places.VegPlace(target.scope).getPlacedObj()).cloudDone();
}
}
function cutSheep(target) {
if (com.game.pers.animals.WhiteSheep(target.scope).wait_scissor && (isHandsFree() < 3)) {
skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID].attributes.elementID = "ScissorsFront";
skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID].attributes.transform = "none";
updBody(skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID]);
hideOldHandAnime();
hideTakedObj();
var node = com.data.GUIxml.getXML("animations", "ScissorsHandfront").firstChild;
var handAnimHelper = com.game.pers.animals.WhiteSheep(target.scope).addAnimObj(target, node);
handAnimHelper._visible = true;
handAnimHelper.playCycle();
currFuse.pause();
com.mosesSupposes.fuse.ZigoEngine.doTween(this, (scope.a = 0), 1, 2.2, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"afterCutSheep", args:[target.scope, handAnimHelper]});
com.game.pers.animals.WhiteSheep(target.scope).removeCloud();
}
}
function afterCutSheep(target, handAnimHelper) {
handAnimHelper._destroy();
handAnimHelper.removeMovieClip();
target.growingDone();
var resNode = new XML("<item objName=\"Wool\" />").firstChild;
takeObj(resNode);
randomEmotion();
}
function afterDigit(target) {
com.game.Evolution(com.game.places.VegPlace(target.scope).getPlacedObj()).nextStage();
randomEmotion();
}
function takeIt(target) {
if (!com.game.Evolution(com.game.places.VegPlace(target.scope).getPlacedObj()).evolutInProgress) {
var resNode = com.game.places.VegPlace(target.scope).takeObjOutPlace(this);
var res = takeObj(resNode.firstChild);
if (res) {
com.game.Evolution(com.game.places.VegPlace(target.scope).getPlacedObj()).cloudID.cloudRemove();
}
}
}
function sellObj(target) {
com.game.places.Bike(target.scope).cashToSlot();
if (com.game.places.Bike(target.scope).checkObjToPlace()) {
putOutObj(target);
}
if (com.game.places.Bike(target.scope).checkObjToPlace()) {
putOutObj(target);
}
}
function trashObj(target) {
putOutObj(target);
}
}
Symbol 799 MovieClip [__Packages.com.base.InteractiveObj] Frame 0
interface com.base.InteractiveObj
{
}
Symbol 800 MovieClip [__Packages.com.game.places.VegPlace] Frame 0
class com.game.places.VegPlace extends com.base.GameButton implements com.base.InteractiveObj
{
var myBlur, filteredMC, mcUP, myGlow, scope, _placedObjArr, onRollOver, onPress, onRelease, action, filterType, dispatchEvent, mc_marker, filterArray;
function VegPlace () {
super();
}
function addRollOverFilter(type, mcPl) {
if (type == "adj") {
myBlur = new ru.etcs.filters.ColorFilter(0, 50);
filteredMC = mcPl || (mcUP);
mcUP.filters = [color];
}
if (type == "active") {
myBlur = null;
var color = 10223499;
myGlow = new flash.filters.GlowFilter(color, 0.9, 3, 3, 20, 1, false, false);
filteredMC = mcPl;
}
}
function get xPos() {
var myPoint = {x:scope._x, y:scope._y};
scope._parent.localToGlobal(myPoint);
return(Number(myPoint.x + (scope._width / 2)));
}
function get yPos() {
var myPoint = {x:scope._x, y:scope._y};
scope._parent.localToGlobal(myPoint);
return(Number(myPoint.y - (scope._height / 2)));
}
function removePlObj() {
_placedObjArr[0]._destroy();
_placedObjArr[0] = null;
}
function getPlacedObj() {
return(_placedObjArr[0]);
}
function placeObj(value) {
_placedObjArr = new Array();
_placedObjArr.push(value);
value.filters = [];
addRollOverFilter("active", value.scope);
value.scope.useHandCursor = true;
value.scope.onRollOver = (value.scope.onRelease = (value.scope.onReleaseOutside = mx.utils.Delegate.create(this, onRollOver)));
value.scope.onRollOut = mx.utils.Delegate.create(this, onRollOut);
value.scope.onPress = mx.utils.Delegate.create(this, onPress);
value.scope.onRelease = mx.utils.Delegate.create(this, onRelease);
}
function getObjAction() {
var result = (com.game.Evolution(getPlacedObj()).__get__getCurrAction() || (action));
return(result);
}
function removeObjOutPlace() {
}
function takeObjOutPlace(caller) {
var node;
node = com.data.GUIxml.getXML("animations", com.game.Evolution(getPlacedObj()).iconName);
return(node);
}
function addObjToPlace(node, sc) {
if (node.attributes.objName == "Bucket") {
return(true);
}
return(false);
}
function addHendler() {
if ((!busy) && (active)) {
scope.useHandCursor = true;
scope.onRollOver = mx.utils.Delegate.create(this, onRollOver);
scope.onRollOut = (scope.onRelease = (scope.onReleaseOutside = mx.utils.Delegate.create(this, onRollOut)));
scope.onPress = mx.utils.Delegate.create(this, onPress);
scope.onRelease = mx.utils.Delegate.create(this, onRelease);
addRollOverFilter(filterType);
} else {
removeHendlers();
}
}
function removeHendlers() {
if (!getPlacedObj().scope) {
scope.useHandCursor = false;
scope.onRollOver = mx.utils.Delegate.create(this, null);
scope.onRollOut = mx.utils.Delegate.create(this, null);
scope.onPress = mx.utils.Delegate.create(this, null);
scope.onRelease = mx.utils.Delegate.create(this, null);
scope.onReleaseOutside = mx.utils.Delegate.create(this, null);
}
}
function showOver() {
if (filteredMC) {
applyFilter(filteredMC);
}
if (!getPlacedObj().scope) {
dispatchEvent({type:"action", event:"over"});
}
}
function onRollOut() {
showUp();
}
function showUp() {
filteredMC.filters = [];
if (!mc_marker._name) {
dispatchEvent({type:"action", event:"out"});
}
}
function click() {
filteredMC.filters = [];
addMarker();
if (!getPlacedObj().scope) {
removeHendlers();
dispatchEvent({type:"action", event:"click"});
} else {
dispatchEvent({type:"action", event:"persApplyObj"});
}
}
function applyFilter(filteredMC) {
filterArray = new Array();
filterArray.push(myBlur || (myGlow));
filteredMC.filters = filterArray;
}
function addMarker() {
if (!mc_marker._name) {
var w = scope._width;
var h = scope._height;
var node = com.data.GUIxml.getXML("getGui", "GrandchildMark").firstChild;
if (!getPlacedObj().scope) {
mc_marker = com.utils.ObjFactory.addObj(node, scope);
} else {
mc_marker = com.utils.ObjFactory.addObj(node, getPlacedObj().scope);
w = 0;
h = 0;
}
mc_marker._x = (w - mc_marker._width) / 2;
mc_marker._y = (h - mc_marker._height) / 2;
}
}
function removeMarker() {
mc_marker.removeMovieClip();
}
var busy = null;
var active = false;
var placeID = null;
}
Symbol 801 MovieClip [__Packages.com.game.Evolution] Frame 0
class com.game.Evolution extends MovieClip
{
var scope, defaultDepth, actionList, evolutionStage, _yPos, phaseName, initObj, iconName, objName, askFuse, evolutInProgress, mcAnim, frameNum, dispatchEvent, cloudID, placeID;
function Evolution (scope) {
super();
this.scope = scope;
com.game.logic.DepthCtrl.registerObj(this);
defaultDepth = scope.getDepth();
mx.events.EventDispatcher.initialize(this);
actionList = new Array();
evolutionStage = 0;
var persDeb = this.scope.attachMovie("PersCreator", "PersCreator", this.scope.getNextHighestDepth());
}
function get yPos() {
return(_yPos);
}
function set yPos(value) {
_yPos = value;
//return(yPos);
}
function create(iconName, initObj) {
phaseName = new Array("waterdelay", "hoedelay", "handdelay");
this.initObj = initObj;
this.iconName = iconName;
var node = com.data.GUIxml.getXML("animations", iconName);
addAnimObj(scope, node.firstChild);
objName = node.firstChild.attributes.objName || "ERROR";
askFuse = new com.mosesSupposes.fuse.Fuse();
askFuse.label = "Evalution " + scope._name;
askFuse.__set__target(this);
addSegments(askFuse, node.firstChild.attributes.objName, node.firstChild.attributes.frames);
askFuse.start();
evolutInProgress = true;
}
function addAnimObj(link, node) {
mcAnim = link.attachMovie("SimpleAnim", node.attributes.src, 1000);
mcAnim._x = node.attributes.xpos || 0;
mcAnim._y = node.attributes.ypos || 0;
mcAnim.createByXML(node, link);
}
function drawSegment(aNum) {
com.game.logic.DepthCtrl.callBack(this);
frameNum = aNum;
mcAnim.drawFrame(aNum);
if (aNum == 2) {
dispatchEvent({type:"action", event:"evolutionDone"});
askFuse.stop();
evolutInProgress = false;
}
if (aNum == 5) {
dispatchEvent({type:"action", event:"evolutionDone"});
askFuse.stop();
evolutInProgress = false;
}
}
function get getCurrAction() {
return(actionList[evolutionStage]);
}
function evolutionDone() {
askFuse.stop();
askFuse.destroy();
delete askFuse;
evolutInProgress = false;
dispatchEvent({type:"action", event:"evolutionDone"});
}
function nextStage() {
cloudDone();
nextFuse(askFuse);
evolutionStage++;
}
function cloudDone() {
if (cloudID.initObj) {
cloudID.cloudDone();
}
}
function pauseAnimations() {
askFuse.pause();
}
function resumeAnimations() {
askFuse.resume();
}
function nextFuse(actionFuse) {
evolutInProgress = true;
actionFuse.skipTo(frameNum + 1);
}
function setCheck() {
}
function addSegments(toFuse, propObjName, totalSegm) {
var node = com.data.GUIxml.getXML("getProperties", propObjName);
var addDelay;
var phaseNum = 1;
var keyFrames = String(node.attributes.keyFrames).split(",");
var numKF = 0;
toFuse.push({func:"drawSegment", args:[0]});
if (totalSegm > 2) {
var i = 0;
while (i < totalSegm) {
if (i == keyFrames[numKF]) {
addDelay = (Math.round((int(node.attributes["phase" + phaseNum]) * 100) / (keyFrames[numKF + 1] - keyFrames[numKF])) / 100) || 0;
phaseNum++;
numKF++;
}
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[int(i + 1)]});
i++;
}
}
toFuse.push({func:"evolutionDone"});
}
function _destroy() {
askFuse.stop();
askFuse.destroy();
delete askFuse;
com.game.GameZone.GAME_ZONE_CLASS.vegPlaceArr[placeID].activeVeg = "";
cloudID.cloudDone();
com.game.logic.DepthCtrl.unregisterObj(this);
com.utils.Destructor.unregisterObj(this);
scope.removeMovieClip();
}
var SEGMENTDELAY = 0.1;
static var FRAMESCOUNT = 20;
static var FRAMEWIDTH = 55;
static var FRAMEHEIGHT = 55;
static var SOURCEHEIGHT = 33;
static var FRAMEVINTERVAL = 0;
static var CANVAS_DEPTH = 0;
static var SEGMENTS_DEPTH = 1;
static var IMAGE_DEPTH = 2;
}
Symbol 802 MovieClip [__Packages.com.game.CCloud] Frame 0
class com.game.CCloud extends MovieClip
{
var scope, objName, phaseName, initObj, segmentMc, attachMovie, cloudType, maxWidth_, _width, maxHeight_, _height, aScale_, _xscale, _yscale, askFuse, _name, removeMovieClip;
function CCloud () {
super();
}
function create(iconName, initObj, iconObj) {
if (initObj) {
scope = this;
cloudList++;
com.utils.Destructor.registerObj(this);
com.game.GameZone.GAME_ZONE_CLASS.activObjList.push(this);
com.game.GameZone.GAME_ZONE_CLASS.mouseMoveAction(true);
objName = iconObj.objName;
phaseName = iconObj.phaseName;
this.initObj = initObj;
segmentMc = attachMovie("cloudSegment", "CLOUD_MC", SEGMENTS_DEPTH);
addObj(this, iconName);
addObj(this, "vegIcon", 0, 26);
if (cloudType == "reverse") {
drawSegment(20, new flash.geom.ColorTransform(0, 0, 0, 1, 255, 0, 0, 0));
}
maxWidth_ = _width;
maxHeight_ = _height;
aScale = (10);
com.mosesSupposes.fuse.ZigoEngine.doTween(this, "aScale", [100], 0.8, com.mosesSupposes.fuse.PennerEasing.easeOutElastic, 0, {scope:this, func:endScaling});
}
}
function get aScale() {
return(aScale_);
}
function set aScale(aVal) {
aScale_ = aVal;
_xscale = aVal;
_yscale = aVal;
//return(aScale);
}
function endScaling() {
askFuse = new com.mosesSupposes.fuse.Fuse();
askFuse.label = "Ask Actions " + _name;
var node = com.data.GUIxml.getXML("getProperties", objName);
var addDelay = (Math.round(int(node.attributes[phaseName]) / FRAMESCOUNT) || 1.5);
askFuse.__set__target(this);
askFuse.autoClear = true;
addSegments(askFuse, addDelay);
askFuse.start();
}
function select() {
}
function deselect() {
}
function pauseAnimations() {
pause_();
}
function resumeAnimations() {
resume_();
}
function drawSegment(aNum, segmentColor) {
var trans = (new flash.geom.Transform(segmentMc));
trans.colorTransform = segmentColor;
segmentMc.gotoAndStop(aNum * 5);
if (com.game.GameZone.GAME_ZONE_CLASS.isPaused) {
pause_();
}
}
function pause_() {
askFuse.pause();
}
function resume_() {
askFuse.resume();
}
function cloudDone() {
_destroy();
}
function cloudReverseDone() {
initObj.waitingDone();
_destroy();
}
function _destroy() {
cloudList--;
com.game.GameZone.GAME_ZONE_CLASS.mouseMoveAction();
askFuse.stop();
askFuse.destroy();
delete askFuse;
segmentMc.removeMovieClip();
com.mosesSupposes.fuse.ZigoEngine.removeTween(this);
removeMovieClip();
}
function cloudRemove() {
initObj.busy = false;
initObj.addHendler();
initObj.removePlObj();
_destroy();
}
function cloudFailed() {
cloudRemove();
}
function setCheck() {
}
function addSegments(toFuse, addDelay) {
if (addDelay == undefined) {
addDelay = 0;
}
if (cloudType == "reverse") {
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[20, new flash.geom.ColorTransform(0, 0, 0, 1, 255, 0, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[19, new flash.geom.ColorTransform(0, 0, 0, 1, 255, 0, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[18, new flash.geom.ColorTransform(0, 0, 0, 1, 255, 28, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[17, new flash.geom.ColorTransform(0, 0, 0, 1, 255, 58, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[16, new flash.geom.ColorTransform(0, 0, 0, 1, 255, 88, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[15, new flash.geom.ColorTransform(0, 0, 0, 1, 255, 128, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[14, new flash.geom.ColorTransform(0, 0, 0, 1, 255, 168, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[13, new flash.geom.ColorTransform(0, 0, 0, 1, 250, 187, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[12, new flash.geom.ColorTransform(0, 0, 0, 1, 243, 197, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[11, new flash.geom.ColorTransform(0, 0, 0, 1, 237, 207, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[10, new flash.geom.ColorTransform(0, 0, 0, 1, 231, 217, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[9, new flash.geom.ColorTransform(0, 0, 0, 1, 226, 227, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[8, new flash.geom.ColorTransform(0, 0, 0, 1, 178, 240, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[7, new flash.geom.ColorTransform(0, 0, 0, 1, 162, 243, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[6, new flash.geom.ColorTransform(0, 0, 0, 1, 137, 247, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[5, new flash.geom.ColorTransform(0, 0, 0, 1, 112, 250, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[4, new flash.geom.ColorTransform(0, 0, 0, 1, 70, 254, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[3, new flash.geom.ColorTransform(0, 0, 0, 1, 40, 255, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[2, new flash.geom.ColorTransform(0, 0, 0, 1, 10, 255, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[1, new flash.geom.ColorTransform(0, 0, 0, 1, 0, 255, 0, 0)]});
toFuse.push({func:"drawSegment", args:[0, new flash.geom.ColorTransform(0, 0, 0, 1, 0, 255, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"cloudReverseDone"});
} else {
toFuse.push({func:"drawSegment", args:[0, new flash.geom.ColorTransform(0, 0, 0, 1, 0, 255, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[1, new flash.geom.ColorTransform(0, 0, 0, 1, 0, 255, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[2, new flash.geom.ColorTransform(0, 0, 0, 1, 10, 255, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[3, new flash.geom.ColorTransform(0, 0, 0, 1, 40, 255, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[4, new flash.geom.ColorTransform(0, 0, 0, 1, 70, 254, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[5, new flash.geom.ColorTransform(0, 0, 0, 1, 112, 250, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[6, new flash.geom.ColorTransform(0, 0, 0, 1, 137, 247, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[7, new flash.geom.ColorTransform(0, 0, 0, 1, 162, 243, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[8, new flash.geom.ColorTransform(0, 0, 0, 1, 178, 240, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[9, new flash.geom.ColorTransform(0, 0, 0, 1, 226, 227, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[10, new flash.geom.ColorTransform(0, 0, 0, 1, 231, 217, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[11, new flash.geom.ColorTransform(0, 0, 0, 1, 237, 207, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[12, new flash.geom.ColorTransform(0, 0, 0, 1, 243, 197, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[13, new flash.geom.ColorTransform(0, 0, 0, 1, 250, 187, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[14, new flash.geom.ColorTransform(0, 0, 0, 1, 255, 168, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[15, new flash.geom.ColorTransform(0, 0, 0, 1, 255, 128, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[16, new flash.geom.ColorTransform(0, 0, 0, 1, 255, 88, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[17, new flash.geom.ColorTransform(0, 0, 0, 1, 255, 58, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[18, new flash.geom.ColorTransform(0, 0, 0, 1, 255, 28, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[19, new flash.geom.ColorTransform(0, 0, 0, 1, 255, 0, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"drawSegment", args:[20, new flash.geom.ColorTransform(0, 0, 0, 1, 255, 0, 0, 0)]});
toFuse.push({delay:SEGMENTDELAY + addDelay, func:"cloudFailed"});
}
}
function addObj(link, src) {
var tmp = link.createEmptyMovieClip("cloudIcon", link.getNextHighestDepth());
var bmp = flash.display.BitmapData.loadBitmap(src);
tmp.attachBitmap(bmp, 0, "auto", true);
tmp._x = arguments[2] || ((_width / 2) - (tmp._width / 2));
tmp._y = arguments[3] || 2;
}
var SEGMENTDELAY = 0.1;
static var FRAMESCOUNT = 20;
static var FRAMEWIDTH = 55;
static var FRAMEHEIGHT = 55;
static var SOURCEHEIGHT = 33;
static var FRAMEVINTERVAL = 0;
static var CANVAS_DEPTH = 0;
static var SEGMENTS_DEPTH = 1;
static var IMAGE_DEPTH = 2;
static var cloudList = 0;
}
Symbol 803 MovieClip [__Packages.com.utils.Destructor] Frame 0
class com.utils.Destructor
{
static var baseClass;
function Destructor () {
}
static function registerObj(obj) {
addObjToArr(obj);
}
static function _destroy(objName) {
if (objName) {
baseClass.removeActObjFromList(objArr[objName]);
objArr[objName]._destroy();
} else {
var destrList = "\n\n------------ Destroy Obj List---------------\n";
for (var i in objArr) {
destrList = destrList + (i + " destroy called \n");
baseClass.removeActObjFromList(objArr[objName]);
objArr[i]._destroy();
}
}
}
static function unregisterObj(obj) {
baseClass.removeActObjFromList(objArr[obj.scope._name]);
objArr[obj.scope._name].pop();
objArr[obj.scope._name] = null;
}
static function addObjToArr(obj) {
objArr[obj.scope._name] = obj;
}
static var objArr = new Array();
}
Symbol 804 MovieClip [__Packages.com.game.places.Place] Frame 0
class com.game.places.Place extends MovieClip implements com.base.InteractiveObj
{
var x_cloudePos, y_cloudePos, scope, objPlacedIn, actionList, typesArr, markerScope, markerType, inDepth, objList, defaultDepth, standX, standY, productViewMC, myBlur, filteredMC, action, filterArray, dispatchEvent, mc_marker;
function Place (link) {
super();
x_cloudePos = 0;
y_cloudePos = 0;
if (link) {
scope = link;
}
mx.events.EventDispatcher.initialize(this);
}
function init(link, node) {
if (!scope) {
scope = link.createEmptyMovieClip(node.attributes.ID, int(node.attributes.layer) || (link.getNextHighestDepth()));
}
objPlacedIn = new XML();
actionList = new Array();
typesArr = new Array();
objArr = new Array();
markerScope = scope;
markerType = node.attributes.markerType || "GrandchildMark";
animalX = 0;
animalY = 0;
maxObjInPlace = int(node.attributes.maxObj) || 1;
upgrade = int(node.attributes.upgrade) || 1;
x_cloudePos = Number(node.attributes.x_cloudePos) || 0;
y_cloudePos = Number(node.attributes.y_cloudePos) || 0;
if (node.attributes.inDepth == "true") {
inDepth = true;
} else {
inDepth = false;
}
}
function create(node, link) {
objList = node;
init(link, node);
scope.scope = this;
actionList = String(objList.attributes.actionList).split(",");
if (inDepth) {
com.game.logic.DepthCtrl.registerObj(this);
defaultDepth = scope.getDepth();
markerScope = scope;
var persDeb = scope.attachMovie("PersCreator", "PersCreator", scope.getNextHighestDepth());
}
scope._x = objList.attributes.xPos;
scope._y = objList.attributes.yPos;
standX = int(objList.attributes.standX);
standY = int(objList.attributes.standY);
animalX = int(objList.attributes.animalX) || 0;
animalY = int(objList.attributes.animalY) || 0;
typesArr = String(objList.attributes.types).split(",");
if (objList.attributes.overFilter == "glow") {
applyOverEffect(scope);
}
if (node.attributes.action) {
addHendlers(scope, node);
}
var num = 0;
if (!objList.childNodes[0].length) {
var src = objList.attributes.ID;
if (objList.attributes.animation) {
addAnimObj(objList);
} else {
var tmpMC = addObj(objList);
tmpMC._x = 0;
tmpMC._y = 0;
}
}
while (objList.childNodes[num].attributes.src) {
var src = objList.childNodes[num].attributes.src;
if (objList.childNodes[num].attributes.animation) {
addAnimObj(objList.childNodes[num]);
} else {
addObj(objList.childNodes[num]);
}
num++;
}
}
function addProductViewMC(mc) {
productViewMC = mc;
com.game.logic.DepthCtrl.registerObj({scope:productViewMC});
}
function applyOverEffect(link) {
var color = (Number(objList.attributes.fColor) || 10223499);
myBlur = new flash.filters.GlowFilter(color, 0.9, 3, 3, 20, 1, false, false);
filteredMC = link;
}
function getObjAction() {
var result;
if (objCounter > 0) {
result = actionList[0];
} else {
result = actionList[1];
}
return(result);
}
function checkObjTypes(value) {
return(checkObjToPlace(typesArr, value));
}
function get xPos() {
var xx = (scope._x + standX);
var myPoint = (new flash.geom.Point(xx, 0));
return(Number(myPoint.x));
}
function get yPos() {
var yy = (scope._y + standY);
var myPoint = (new flash.geom.Point(0, yy));
return(Number(myPoint.y) || 0);
}
function get xPosAnimal() {
var xx = (scope._x + animalX);
var myPoint = (new flash.geom.Point(xx, 0));
return(Number(myPoint.x));
}
function get yPosAnimal() {
var yy = (scope._y + animalY);
var myPoint = (new flash.geom.Point(0, yy));
return(Number(myPoint.y));
}
function addHendlers(link, node) {
var res = Boolean(node.attributes.action);
link.enabled = res;
link.useHandCursor = res;
link.onRollOver = (link.onRelease = (link.onReleaseOutside = mx.utils.Delegate.create(this, onRollOver)));
link.onRollOut = mx.utils.Delegate.create(this, onRollOut);
link.onRelease = mx.utils.Delegate.create(this, onRelease);
action = node.attributes.action;
}
function addObjToPlace(node, sc) {
if ((objPlacedIn.childNodes.length < maxObjInPlace) && (checkObjToPlace(typesArr, node.attributes.objName))) {
objCounter++;
objPlacedIn.appendChild(node);
var tmp = com.utils.ObjFactory.addObj(node, (productViewMC || (sc)) || (scope));
tmp._name = tmp._name + objCounter;
node.attributes.ID = node.attributes.ID + objCounter;
objArr[node.attributes.ID] = tmp;
com.game.logic.DepthCtrl.callBack(this);
if (productViewMC || (sc)) {
markerScope = tmp;
addMarker("update");
}
} else {
return(false);
}
return(true);
}
function checkObjToPlace(arr, type) {
if (arr) {
var i = 0;
while (i < arr.length) {
if (arr[i] == type) {
return(true);
}
i++;
}
return(false);
}
if (objPlacedIn.childNodes.length < maxObjInPlace) {
return(true);
}
return(false);
}
function removeObjOutPlace() {
var src = String(objPlacedIn.childNodes[objCounter - 1].attributes.ID);
markerScope = scope;
MovieClip(objArr[src]).cloude._destroy();
MovieClip(objArr[src]).removeMovieClip();
objArr[src] = null;
delete objArr[src];
for (var o in objArr) {
}
XMLNode(objPlacedIn.childNodes[objCounter - 1]).removeNode();
objCounter--;
}
function takeObjOutPlace(caller, extra) {
var node;
if (caller) {
node = objPlacedIn.childNodes[objCounter - 1];
if (node && (caller.isHandsFree() < 3)) {
removeObjOutPlace();
}
} else if (extra) {
node = objPlacedIn.childNodes[objCounter - 1];
removeObjOutPlace();
}
return(node);
}
function addObj(node, sc) {
return(com.utils.ObjFactory.addObj(node, sc || (scope)));
}
function addAnimObj(node) {
var mcAnim = scope.attachMovie("SimpleAnim", ("mcAnim_" + node.attributes.src) || "", int(node.attributes.layer) || (scope.getNextHighestDepth()));
if (node.attributes.overFilter == "glow") {
var color = (Number(objList.attributes.fColor) || 10223499);
myBlur = new flash.filters.GlowFilter(color, 0.9, 3, 3, 20, 1, false, false);
filteredMC = mcAnim;
}
mcAnim._x = node.attributes.xpos || 0;
mcAnim._y = node.attributes.ypos || 0;
mcAnim.createByXML(node, scope);
if (node.attributes.animation == "true") {
if (node.attributes.cicle != "false") {
mcAnim.playCycle();
} else {
mcAnim.play();
}
}
return(mcAnim);
}
function onRollOver() {
filterArray = new Array();
filterArray.push(myBlur);
filteredMC.filters = filterArray;
}
function onRollOut() {
filteredMC.filters = [];
}
function onRelease() {
addMarker();
dispatchEvent({type:"action", event:"click"});
}
function addMarker(command) {
if (((!mc_marker._name) && (action != "")) && (command != "update")) {
var w = markerScope._width;
var h;
if (!markerScope.cloude) {
h = markerScope._height;
} else {
h = markerScope._height - markerScope.cloude.scope._height;
}
var node = com.data.GUIxml.getXML("getGui", markerType).firstChild;
mc_marker = com.utils.ObjFactory.addObj(node, markerScope);
mc_marker._x = (w - mc_marker._width) / 2;
mc_marker._y = (h - mc_marker._height) / 2;
} else if ((markerScope != scope) && (mc_marker._name)) {
removeMarker();
var w = markerScope._width;
var h = markerScope._height;
var node = com.data.GUIxml.getXML("getGui", "GrandchildMark").firstChild;
mc_marker = com.utils.ObjFactory.addObj(node, markerScope);
mc_marker._x = (w - mc_marker._width) / 2;
mc_marker._y = (h - mc_marker._height) / 2;
}
}
function removeMarker() {
mc_marker.removeMovieClip();
}
function toString() {
return("Place: " + yPos);
}
var maxObjInPlace = 1;
var animalX = 0;
var animalY = 0;
var upgrade = 1;
var objCounter = 0;
var objArr = new Array();
}
Symbol 805 MovieClip [__Packages.com.game.pers.animals.Animals] Frame 0
class com.game.pers.animals.Animals
{
var defaultDepth, bazeClass, scope, movement, actionFuse, eatTimer, drinkTimer, mcBody, skinObjList, actionsXML, EatDelay, DrinkDelay, outPauseID, currAnimSrc, action, dispatchEvent, waitInterval, waitTimerID, cloude, animArr, drinkPan, hungerIntID, eatPan, _eventHandler, PERS_NAME, EatCount, pathMap, endPoint, xCorrect, yCorrect, _endMoveX, _endMoveY, orient, movOrient, _waitStatus;
function Animals (scope, bazeClass) {
defaultDepth = scope.getDepth();
createdObjCounter++;
this.bazeClass = bazeClass;
this.scope = scope;
scope.scope = this;
movement = false;
actionFuse = new com.mosesSupposes.fuse.Fuse();
actionFuse.__set__target(this);
eatCounter = 0;
mx.events.EventDispatcher.initialize(this);
com.utils.Destructor.registerObj(this);
com.game.logic.DepthCtrl.registerObj(this);
}
function pauseTimer() {
eatTimer.pause();
drinkTimer.pause();
}
function create(node) {
mcBody = scope.createEmptyMovieClip("mcBody", BODY_DEF_DEPTH);
skinObjList = node.firstChild;
skinIt(node);
var myXML = node;
actionsXML = com.utils.XMLObjFinder.findNode(myXML, "actions");
X_CLOUDE_POS = skinObjList.attributes.xWaitPos || 0;
Y_CLOUDE_POS = skinObjList.attributes.yWaitPos || 0;
eatTimer = new com.game.Alarm(scope, this, EatDelay / 1000, "LOOP");
eatTimer.addAlarmParam(null, "hunger");
drinkTimer = new com.game.Alarm(scope, this, DrinkDelay / 1000, "LOOP");
drinkTimer.addAlarmParam(null, "want");
var persDeb = scope.attachMovie("PersCreator", "PersCreator", scope.getNextHighestDepth());
}
function startAnimations() {
randomFeed();
eatTimer.start();
}
function removePlObj() {
clearInterval(outPauseID);
if (!going_out) {
outPauseID = setInterval(this, "goOut", 100);
}
}
function goOut() {
clearInterval(outPauseID);
if ((actionFuse.label != "goOut") || ((actionFuse.label == "goOut") && (actionFuse.__get__currentIndex() < 4))) {
pauseTimer();
going_out = true;
deleteListeners();
stopRNDFeed();
currState = "feed";
actionFuse.destroy();
actionFuse = new com.mosesSupposes.fuse.Fuse();
actionFuse.__set__target(this);
actionFuse.label = "goOut";
actionFuse.push({func:"moveToPoint", args:[null, new flash.geom.Point(xOutPos, yOutPos)]});
actionFuse.push({command:"pause"});
actionFuse.push({func:"setCurrState", args:["wait"]});
actionFuse.push({func:"standAndWait"});
actionFuse.push({func:"stopRNDFeed"});
actionFuse.push({func:"showWaitCloude", args:[120000]});
actionFuse.start();
}
}
function showWaitCloude(pauseTime) {
currAnimSrc._visible = false;
action = "addAnimalsCloud";
dispatchEvent({type:"action", event:"click"});
action = "";
}
function waitingDone() {
currAnimSrc._visible = true;
actionFuse.destroy();
actionFuse = new com.mosesSupposes.fuse.Fuse();
going_out = false;
currState = "feed";
eatTimer.reset();
drinkTimer.reset();
randomFeed();
}
function pauseAnimations() {
clearInterval(waitInterval);
if (waitTimerID) {
clearInterval(waitTimerID);
}
if (com.mosesSupposes.fuse.ZigoEngine.isTweening(scope)) {
com.mosesSupposes.fuse.ZigoEngine.pauseTween(scope);
}
cloude.pause_();
currAnimSrc.stop();
pauseTimer();
}
function resumeAnimations() {
com.mosesSupposes.fuse.ZigoEngine.resumeTween(scope);
currAnimSrc.nextCycle();
if (cloude.initObj) {
cloude.resume_();
}
if ((((!cloude.initObj) && (!going_out)) && (actionFuse.label != "hunger")) && (actionFuse.label != "want")) {
if ((eatTimer.currTime > 0) && (eatTimer.currTime < eatTimer.time)) {
eatTimer.resume();
}
if ((drinkTimer.currTime > 0) && (drinkTimer.currTime < drinkTimer.time)) {
drinkTimer.resume();
}
nextActions();
}
if (going_out) {
goOut();
}
switch (actionFuse.label) {
case "hunger" :
if (actionFuse.__get__currentIndex() != 1) {
actionFuse.resume();
if ((!wait_food) && (actionFuse.__get__currentIndex() >= (actionFuse.length - 1))) {
waitTimerID = setInterval(this, "eatDone", WAIT_TIME);
}
}
return;
case "want" :
if (actionFuse.__get__currentIndex() == 1) {
break;
}
actionFuse.resume();
if (!((!wait_drink) && (actionFuse.__get__currentIndex() >= (actionFuse.length - 1)))) {
break;
}
waitTimerID = setInterval(this, "eatDone", WAIT_TIME);
}
}
function skinIt(node) {
var pp = getFreeRndPoint();
scope._x = pp.x;
scope._y = pp.y;
animArr = new Array();
var objType;
var tmpNode;
var num = 0;
setPersOrientation("front", "stand");
while (skinObjList.childNodes[num].attributes.name) {
tmpNode = skinObjList.childNodes[num];
objType = tmpNode.attributes.name;
switch (objType) {
case "body" :
update(tmpNode);
break;
case "animations" :
cacheAnimation(tmpNode);
}
num++;
}
}
function cacheAnimation(animNodes) {
var i = 0;
var node = null;
var anim;
while (animNodes.childNodes[i].attributes.name) {
node = animNodes.childNodes[i];
anim = com.data.GUIxml.getXML("animations", node.attributes.name);
if (!(anim.firstChild.attributes.objName === "body")) {
} else {
animArr[node.attributes.name] = addAnimObj(mcBody, anim.firstChild);
animArr[node.attributes.name]._y = (-animArr[node.attributes.name]._height) + int(anim.firstChild.attributes.ypos);
currAnimSrc = animArr[String(node.attributes.name)];
var skewMatrix = currAnimSrc.transform.matrix;
var skewMatrix_stat = (new flash.geom.Matrix(-1, 0, 0, 1, currAnimSrc._width, 0));
var skewMatrix_reset = (new flash.geom.Matrix(1, 0, 0, 1, 0, 0));
if (anim.firstChild.attributes.transform == "skew") {
skewMatrix.concat(skewMatrix_stat);
currAnimSrc.transform.matrix = skewMatrix;
}
animArr[node.attributes.name].xN = animArr[node.attributes.name]._x;
animArr[node.attributes.name].yN = animArr[node.attributes.name]._y;
}
i++;
}
}
function hideOldAnime() {
currAnimSrc._destroy();
currAnimSrc._visible = false;
}
function setCurrState(value) {
currState = value;
}
function want() {
if (!drinkPan.persWaiting) {
drinkPan.persWaiting = true;
eatTimer.reset();
pauseTimer();
clearInterval(hungerIntID);
stopRNDFeed();
actionFuse = new com.mosesSupposes.fuse.Fuse();
actionFuse.__set__target(this);
actionFuse.label = "want";
actionFuse.push({func:"walkTo", args:[drinkPan, "drink"]});
actionFuse.push({command:"pause"});
actionFuse.push({func:"setCurrState", args:["drink"]});
actionFuse.push({func:"standAndWait"});
actionFuse.push({func:"stopRNDFeed"});
actionFuse.push({func:"goDrinking", args:[drinkPan.scope]});
actionFuse.start();
} else if (!eatPan.persWaiting) {
hunger();
} else {
if (eatCounter == 0) {
drinkTimer.pause();
eatTimer.reset();
} else {
drinkTimer.reset();
eatTimer.reset();
eatTimer.pause();
}
nextActions();
}
}
function hunger() {
if (!eatPan.persWaiting) {
eatPan.persWaiting = true;
drinkTimer.reset();
pauseTimer();
clearInterval(hungerIntID);
stopRNDFeed();
actionFuse = new com.mosesSupposes.fuse.Fuse();
actionFuse.__set__target(this);
actionFuse.label = "hunger";
actionFuse.push({func:"walkTo", args:[eatPan, "eat"]});
actionFuse.push({command:"pause"});
actionFuse.push({func:"setCurrState", args:["eat"]});
actionFuse.push({func:"standAndWait"});
actionFuse.push({func:"stopRNDFeed"});
actionFuse.push({func:"goEating", args:[eatPan.scope]});
actionFuse.start();
} else if (!drinkPan.persWaiting) {
want();
} else {
eatTimer.reset();
drinkTimer.reset();
nextActions();
}
}
function stopRNDFeed() {
clearInterval(waitInterval);
com.mosesSupposes.fuse.ZigoEngine.removeTween(scope);
}
function standAndWait() {
currAnimSrc.stop();
}
function nextActions() {
movement = false;
if (actionFuse.length) {
actionFuse.resume();
} else {
getAction();
}
}
function getAction() {
switch (currState) {
case "feed" :
randomFeed();
return;
case "eat" :
return;
case "drink" :
return;
case "grow" :
goGrowing();
}
}
function goGrowing() {
}
function goDrinking(sc) {
clearInterval(waitTimerID);
if (sc.objCounter <= 0) {
addCloud(iconArr[BUCKET_ICON_ID]);
wait_drink = true;
_eventHandler = mx.utils.Delegate.create(this, clickHandler);
sc.addEventListener("action", _eventHandler);
update(new XML(("<element name=\"body\" elementID=\"" + PERS_NAME) + "pan\" />").firstChild);
} else {
drink(sc);
}
}
function drink(sc) {
deleteListeners(sc);
wait_drink = false;
sc.drink(WAIT_TIME);
removeCloud();
update(new XML(("<element name=\"body\" elementID=\"" + PERS_NAME) + "drink\" />").firstChild);
waitTimerID = setInterval(this, "eatDone", WAIT_TIME);
}
function goEating(sc) {
clearInterval(waitTimerID);
if (sc.objCounter <= 0) {
addCloud(iconArr[GRAIN_ICON_ID]);
wait_food = true;
_eventHandler = mx.utils.Delegate.create(this, clickHandler);
sc.addEventListener("action", _eventHandler);
update(new XML(("<element name=\"body\" elementID=\"" + PERS_NAME) + "pan\" />").firstChild);
} else {
eat(sc);
}
}
function eat(sc) {
deleteListeners(sc);
wait_food = false;
sc.eatGrain(WAIT_TIME);
removeCloud();
eatCounter++;
update(new XML(("<element name=\"body\" elementID=\"" + PERS_NAME) + "eat\" />").firstChild);
waitTimerID = setInterval(this, "eatDone", WAIT_TIME);
}
function removeCloud() {
cloude.cloudDone();
}
function clickHandler(e) {
switch (e.event) {
case "grain_added" :
eat(e.target);
return;
case "water_added" :
drink(e.target);
}
}
function eatDone() {
bazeClass.game_mc.endPoint.removeMovieClip();
clearInterval(waitTimerID);
actionFuse.destroy();
delete actionFuse;
if ((currState == "eat") && (eatPan.persWaiting)) {
eatPan.persWaiting = false;
} else if ((currState == "drink") && (drinkPan.persWaiting)) {
drinkPan.persWaiting = false;
}
if (eatCounter < EatCount) {
if (currState == "eat") {
drinkTimer.reset();
} else {
eatTimer.reset();
}
currState = "feed";
randomFeed();
} else {
goGrowing();
}
}
function addCloud(iconName, inObj) {
if (!inObj.persName) {
var persName = PERS_NAME.slice(0, PERS_NAME.length - 1);
var iconObj = {objName:persName, phaseName:"WaitDelay"};
}
if (currState == "drink") {
cloude = com.game.places.WaterPan(drinkPan.scope).addCloud(iconName, this, iconObj);
} else if (currState == "eat") {
cloude = com.game.places.GrainPan(eatPan.scope).addCloud(iconName, this, iconObj);
} else {
var h = scope._height;
cloude = com.game.CCloud(scope.attachMovie("cloude", "cloude", scope.getNextHighestDepth()));
cloude.create(iconName, this, iconObj);
cloude._y = -80;
cloude._x = 0;
}
}
function randomFeed() {
clearInterval(waitInterval);
if (currState == "feed") {
var node = com.utils.XMLObjFinder.findNode(actionsXML, "feed");
var feedType = node.childNodes[random(node.childNodes.length)].nodeName;
if (setAnimation(feedType)) {
if (feedType == "walk") {
moveToPoint(null, getNextFeedPoint());
} else {
waitInterval = setInterval(this, "randomFeed", 1000);
}
} else {
randomFeed();
}
} else {
nextActions();
}
}
function getNextFeedPoint() {
var startX = pathMap.XConvertToLocal(pathMap.map[0][0]);
var endX = pathMap.XConvertToLocal(pathMap.map.length);
var startY = (pathMap.YConvertToLocal(pathMap.map[0][0]) + 20);
var endY = pathMap.YConvertToLocal(pathMap.map[0].length - 5);
var rndX = (startX + random(endX - startX));
var rndY = (startY + random(endY - startY));
pathMap.map[pathMap.XConvertToMap(rndX)][pathMap.YConvertToMap(rndY)];
var point = (new flash.geom.Point(rndX, rndY));
return(point);
}
function getFreeRndPoint() {
var startX = pathMap.XConvertToLocal(0);
var endX = pathMap.XConvertToLocal(pathMap.map[0].length);
var startY = pathMap.YConvertToLocal(1);
var endY = pathMap.YConvertToLocal(pathMap.map.length - 2);
var rndX;
var rndY;
var p1;
var p2;
var prov;
do {
if (pathMap.map[p1][p2] == 1) {
break;
}
rndX = startX + random(endX - startX);
rndY = startY + random(endY - startY);
p1 = pathMap.XConvertToMap(rndX);
p2 = pathMap.YConvertToMap(rndY);
prov = pathMap.map[p2][p1];
} while (prov != 1);
pathMap.showPath([[p2, p1]]);
var point = (new flash.geom.Point(rndX, rndY));
return(point);
}
function walkTo(aObj, state) {
movement = true;
if (aObj.scope.xPosAnimal) {
endPoint = new flash.geom.Point(aObj.scope.xPosAnimal + (xCorrect || 0), aObj.scope.yPosAnimal + (yCorrect || 0));
} else {
endPoint = new flash.geom.Point((aObj._x + xCorrect) || 0, (aObj._y + yCorrect) || 0);
}
moveToPoint(scope, endPoint, state);
}
function getTurnAnim(myPoint) {
if ((myPoint.x > scope._x) && (myPoint.y < scope._y)) {
turnUpR();
} else if ((myPoint.x > scope._x) && (myPoint.y > scope._y)) {
turnDnR();
} else if ((myPoint.x < scope._x) && (myPoint.y < scope._y)) {
turnUpL();
} else if ((myPoint.x > scope._x) && (myPoint.y == scope._y)) {
turnR();
} else if ((myPoint.x == scope._x) && (myPoint.y < scope._y)) {
turnUp();
} else if ((myPoint.x == scope._x) && (myPoint.y > scope._y)) {
turnDn();
} else if ((myPoint.x < scope._x) && (myPoint.y == scope._y)) {
turnL();
} else if ((myPoint.x < scope._x) && (myPoint.y > scope._y)) {
turnDnL();
}
return(0);
}
function moveToPoint(mc, point, state) {
var x;
var x0;
var y;
var y0;
if (mc) {
x0 = scope._x;
y0 = scope._y;
x = point.x;
y = point.y + 20;
_endMoveX = x;
_endMoveY = y;
var path = [];
path = com.game.logic.Pathfinding.findPath(pathMap.map, pathMap.YConvertToMap(y0), pathMap.XConvertToMap(x0), pathMap.YConvertToMap(y), pathMap.XConvertToMap(x));
if (path.length > 1) {
createMovingFuse(mc, path);
} else {
waitInterval = setInterval(this, "moveIsDone", 100);
}
} else {
_endMoveX = point.x;
_endMoveY = point.y;
x = scope._x;
y = scope._y;
var path = [];
path = com.game.logic.Pathfinding.findPath(pathMap.map, pathMap.YConvertToMap(y), pathMap.XConvertToMap(x), pathMap.YConvertToMap(point.y), pathMap.XConvertToMap(point.x));
if (path.length > 1) {
pathMap.showPath(path);
createMovingFuse(scope, path);
} else {
waitInterval = setInterval(this, "moveIsDone", 100);
}
}
}
function createMovingFuse(mc, path) {
if (path) {
mc.i = 0;
nextPoint(mc, path);
}
}
function nextPoint(mc, path) {
com.game.logic.DepthCtrl.callBack(this);
var nextFunc;
mc.i++;
var xPos = (pathMap.XConvertToLocal(path[mc.i][1]) + (com.game.logic.AStarMap.CELL_SIZE / 2));
var yPos = (pathMap.YConvertToLocal(path[mc.i][0]) + (com.game.logic.AStarMap.CELL_SIZE / 2));
var point = (new flash.geom.Point(xPos, yPos));
getTurnAnim(point);
if (mc.i < (path.length - 1)) {
nextFunc = "nextPoint";
point = new flash.geom.Point(xPos, yPos);
getTurnAnim(point);
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_x", point.x, 0.6, com.mosesSupposes.fuse.PennerEasing.linear, 0);
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_y", point.y, 0.6, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:nextFunc, args:[mc, path]});
} else {
nextFunc = "moveIsDone";
getTurnAnim(point);
if (mc) {
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_x", _endMoveX || (point.x), 0.6, com.mosesSupposes.fuse.PennerEasing.linear, 0);
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_y", _endMoveY || (point.y), 0.6, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:nextFunc, args:mc});
} else {
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_x", point.x, 0.6, com.mosesSupposes.fuse.PennerEasing.linear, 0);
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_y", point.y, 0.6, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:nextFunc, args:mc});
}
}
}
function moveIsDone(mc) {
clearInterval(waitInterval);
com.mosesSupposes.fuse.ZigoEngine.removeTween(mc);
nextActions();
}
function setAnimation(nodeId) {
var curAct = getActionByXml(nodeId);
var srcName = (PERS_NAME + getPersOrientation(curAct));
var anim = com.data.GUIxml.getXML("animations", srcName);
if ((skinObjList.childNodes[BODY_NODE_ID].attributes.elementID != srcName) && (anim.firstChild.attributes.src)) {
skinObjList.childNodes[BODY_NODE_ID].attributes.elementID = srcName;
update(skinObjList.childNodes[BODY_NODE_ID]);
return(true);
}
return(false);
}
function setAnimByName(act) {
var srcName = (PERS_NAME + getPersOrientation(act));
var anim = com.data.GUIxml.getXML("animations", srcName);
if ((skinObjList.childNodes[BODY_NODE_ID].attributes.elementID != srcName) && (anim.firstChild.attributes.src)) {
skinObjList.childNodes[BODY_NODE_ID].attributes.elementID = srcName;
update(skinObjList.childNodes[BODY_NODE_ID]);
return(true);
}
return(false);
}
function getActionByXml(str) {
var node = com.utils.XMLObjFinder.findNode_v2(actionsXML, currState);
var randNode = com.utils.XMLObjFinder.findNode_v2(node, str);
var retXML;
var ret;
if (randNode.childNodes.length > 0) {
retXML = randNode.childNodes[random(randNode.childNodes.length)];
ret = retXML.nodeName;
} else {
ret = randNode.nodeName;
}
return(ret);
}
function setPersOrientation(nOrient, mov) {
orient = nOrient || (orient);
movOrient = mov || (movOrient);
}
function getPersOrientation(objName) {
var res;
res = (objName + "_") + orient;
return(res);
}
function update(animNodes) {
var anim = com.data.GUIxml.getXML("animations", animNodes.attributes.elementID);
if (anim) {
hideOldAnime();
currAnimSrc = animArr[String(animNodes.attributes.elementID)];
currAnimSrc._visible = true;
if (anim.firstChild.attributes.type == "once") {
currAnimSrc.play();
} else {
currAnimSrc.nextCycle();
}
} else {
com.utils.ObjFactory.addObj(animNodes, mcBody);
}
}
function addAnimObj(link, aXML) {
var mcAnim = link.attachMovie("SimpleAnim", aXML.attributes.src, aXML.attributes.layer || (link.getNextHighestDepth()));
mcAnim._visible = false;
mcAnim._x = aXML.attributes.xpos;
mcAnim._y = aXML.attributes.ypos;
mcAnim.createByXML(aXML, link);
return(mcAnim);
}
function setDepth(mc, depth) {
if (mc.getDepth() != depth) {
var tmp = scope.createEmptyMovieClip("tmp", depth);
tmp.swapDepths(mc);
tmp.removeMovieClip();
}
}
function deleteListeners(sc) {
eatPan.scope.removeEventListener("action", _eventHandler);
drinkPan.scope.removeEventListener("action", _eventHandler);
delete _eventHandler;
}
function turnUpR() {
setPersOrientation("backright", "walk");
setAnimation("walk");
}
function turnR() {
setPersOrientation("right", "walk");
setAnimation("walk");
}
function turnDnR() {
setPersOrientation("frontright", "walk");
setAnimation("walk");
}
function turnDn() {
setPersOrientation("front", "walk");
setAnimation("walk");
}
function turnDnL() {
setPersOrientation("frontleft", "walk");
setAnimation("walk");
}
function turnL() {
setPersOrientation("left", "walk");
setAnimation("walk");
}
function turnUpL() {
setPersOrientation("backleft", "walk");
setAnimation("walk");
}
function turnUp() {
setPersOrientation("back", "walk");
setAnimation("walk");
}
function get xPos() {
var _xPos = (scope._x + 20);
return(_xPos);
}
function get yPos() {
var _yPos = (scope._y + 70);
return(_yPos);
}
function get waitStatus() {
if (wait_drink || (wait_food)) {
_waitStatus = PERS_NAME + "wait_ico";
}
return(_waitStatus);
}
function _destroy() {
eatTimer._destroy();
removeCloud();
actionFuse.stop();
actionFuse.destroy();
delete actionFuse;
com.mosesSupposes.fuse.ZigoEngine.removeTween(scope);
clearInterval(waitInterval);
clearInterval(waitTimerID);
currAnimSrc._destroy();
currAnimSrc.removeMovieClip();
delete currAnimSrc;
com.utils.Destructor.unregisterObj(this);
scope.removeMovieClip();
delete scope;
delete this;
}
function get _z() {
return(scope._y);
}
function toString() {
return((scope._name + ": ") + yPos);
}
static var createdObjCounter = 0;
var eatCounter = 0;
var type = "bird";
static var BODY_DEF_DEPTH = 10;
var BODY_NODE_ID = 1;
var currState = "feed";
var WAIT_TIME = 3500;
var iconArr = new Array("iconWaterBucket", "iconGrain", "iconHand");
var wait_food = false;
var wait_drink = false;
var X_CLOUDE_POS = 0;
var Y_CLOUDE_POS = 0;
static var BUCKET_ICON_ID = 0;
static var GRAIN_ICON_ID = 1;
var going_out = false;
var xCorrToMap = 2;
var yCorrToMap = 2;
var xOutPos = 153;
var yOutPos = 465;
}
Symbol 806 MovieClip [__Packages.com.game.places.WaterPan] Frame 0
class com.game.places.WaterPan extends com.game.places.Place
{
var maxObjInPlace, objPlacedIn, checkObjToPlace, typesArr, objCounter, ripp, addAnimObj, removeRippIntervID, upgrade, water, scope, cloude, y_cloudePos, x_cloudePos, removeObjOutPlace, addObj, dispatchEvent, _persWaiting, mc_marker;
function WaterPan (link) {
super(link);
persWaiting = (false);
drinkCounter = 0;
}
function addObjToPlace(node) {
if ((objPlacedIn.childNodes.length <= maxObjInPlace) && (checkObjToPlace(typesArr, node.attributes.objName))) {
objCounter++;
objPlacedIn.appendChild(node);
addWaterPourAnim();
node.attributes.ID = node.attributes.ID + objCounter;
} else {
return(false);
}
return(true);
}
function drink(time) {
var node = com.data.GUIxml.getXML("animations", "DrinkPanRipple").firstChild;
ripp = addAnimObj(node);
ripp._y = MIN_VATER_LEVEL_POS;
removeRippIntervID = setInterval(this, "removeRipp", 600);
var alph;
var vaterLevPos;
var funkName = "null";
switch (upgrade) {
case 1 :
alph = 10;
vaterLevPos = MIN_VATER_LEVEL_POS;
funkName = "removeWater";
break;
case 2 :
if (drinkCounter == 0) {
alph = 40;
vaterLevPos = MIN_VATER_LEVEL_POS - 2;
} else {
alph = 10;
vaterLevPos = MIN_VATER_LEVEL_POS;
funkName = "removeWater";
}
}
com.mosesSupposes.fuse.ZigoEngine.doTween(water, "_alpha, _y", [alph, vaterLevPos], time / 1000, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:funkName});
drinkCounter++;
}
function addCloud(iconName, inObj, iconObj) {
var h = scope._height;
cloude = com.game.CCloud(scope.attachMovie("cloude", "cloude", scope.getNextHighestDepth()));
cloude.create(iconName, inObj, iconObj);
cloude._y = -((h + 28) + y_cloudePos);
cloude._x = 10 + x_cloudePos;
return(cloude);
}
function removeWater() {
water.removeMovieClip();
removeRipp();
removeObjOutPlace();
drinkCounter = 0;
}
function addWaterPourAnim() {
var node = com.data.GUIxml.getXML("getGui", "WaterBird").firstChild;
water = addObj(node);
water._y = MIN_VATER_LEVEL_POS;
water._alpha = 50;
node = com.data.GUIxml.getXML("animations", "DrinkPanRipple").firstChild;
ripp = addAnimObj(node);
ripp._y = MIN_VATER_LEVEL_POS;
com.mosesSupposes.fuse.ZigoEngine.doTween(water, "_alpha, _y", [100, MAX_VATER_LEVEL_POS], 0.6, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"removeRipp", args:["dispatch"]});
}
function removeRipp(value) {
clearInterval(removeRippIntervID);
ripp._destroy();
ripp.removeMovieClip();
delete ripp;
if (value) {
dispatchEvent({type:"action", event:"water_added"});
}
}
function get persWaiting() {
return(_persWaiting);
}
function set persWaiting(value) {
_persWaiting = value;
//return(persWaiting);
}
function addMarker() {
var sc = scope;
if (!mc_marker._name) {
var w = sc._width;
var h = -15;
var node = com.data.GUIxml.getXML("getGui", "GrandchildMark").firstChild;
mc_marker = com.utils.ObjFactory.addObj(node, sc);
mc_marker._x = (w - mc_marker._width) / 2;
mc_marker._y = (h - mc_marker._height) / 2;
}
}
var drinkCounter = 0;
var MAX_VATER_LEVEL_POS = -21;
var MIN_VATER_LEVEL_POS = -17;
}
Symbol 807 MovieClip [__Packages.com.game.places.GrainPan] Frame 0
class com.game.places.GrainPan extends com.game.places.Place
{
var eatCounter, maxObjInPlace, objPlacedIn, checkObjToPlace, typesArr, objCounter, upgrade, grain, removeObjOutPlace, addAnimObj, dispatchEvent, _persWaiting, scope, cloude, y_cloudePos, x_cloudePos, mc_marker;
function GrainPan (link) {
super(link);
persWaiting = (false);
eatCounter = 0;
}
function addObjToPlace(node) {
if ((objPlacedIn.childNodes.length <= maxObjInPlace) && (checkObjToPlace(typesArr, node.attributes.objName))) {
objCounter++;
if (typesArr[0]) {
productName = typesArr[0];
}
objPlacedIn.appendChild(node);
addGrain();
node.attributes.ID = node.attributes.ID + objCounter;
} else {
return(false);
}
return(true);
}
function eatGrain(time) {
var frameNum;
var funkName = "null";
switch (upgrade) {
case 1 :
frameNum = 1;
funkName = "removeGrain";
break;
case 2 :
if (eatCounter == 0) {
frameNum = 3;
} else {
frameNum = 1;
funkName = "removeGrain";
}
}
grain.playForward(grain.__get__currFrame(), frameNum, time / 1000, this, funkName);
eatCounter++;
}
function removeGrain() {
grain._destroy();
grain.removeMovieClip();
eatCounter = 0;
removeObjOutPlace();
}
function addGrain() {
var node = com.data.GUIxml.getXML("animations", "eat_" + productName).firstChild;
grain = com.base.anim.SimpleAnim(addAnimObj(node));
dispatchEvent({type:"action", event:"grain_added"});
}
function get persWaiting() {
return(_persWaiting);
}
function set persWaiting(value) {
_persWaiting = value;
//return(persWaiting);
}
function addCloud(iconName, inObj, iconObj) {
var h = scope._height;
cloude = com.game.CCloud(scope.attachMovie("cloude", "cloude", scope.getNextHighestDepth()));
cloude.create(iconName, inObj, iconObj);
cloude._y = -((h + 28) + y_cloudePos);
cloude._x = 10 + x_cloudePos;
return(cloude);
}
function addMarker() {
var sc = scope;
if (!mc_marker._name) {
var w = sc._width;
var h = -15;
var node = com.data.GUIxml.getXML("getGui", "GrandchildMark").firstChild;
mc_marker = com.utils.ObjFactory.addObj(node, sc);
mc_marker._x = (w - mc_marker._width) / 2;
mc_marker._y = (h - mc_marker._height) / 2;
}
}
var productName = "Grain";
}
Symbol 808 MovieClip [__Packages.com.game.pers.animals.WhiteSheep] Frame 0
class com.game.pers.animals.WhiteSheep extends com.game.pers.animals.Animals
{
var PERS_NAME, EatDelay, DrinkDelay, EatCount, type, xCorrectCloudPos, yCorrectCloudPos, xOutPos, yOutPos, xCorrect, yCorrect, wait_scissor, standX, standY, markerType, hungerIntID, stopRNDFeed, currState, actionFuse, addCloud, update, currAnimSrc, markerScope, action, eatCounter, eatDone, outPauseID, going_out, wait_drink, wait_food, _waitStatus, myBlur, dispatchEvent, mc_marker, scope;
function WhiteSheep (scope, bazeClass) {
super(scope, bazeClass);
PERS_NAME = "whiteSheep_";
var node = com.data.GUIxml.getXML("getProperties", "whiteSheep");
EatDelay = (Number(node.attributes.EatDelay) * 1000) || 18000;
DrinkDelay = (Number(node.attributes.DrinkDelay) * 1000) || 15000;
EatCount = Number(node.attributes.EatCount) || 4;
type = "animal";
xCorrectCloudPos = 14;
yCorrectCloudPos = -96;
xOutPos = 35;
yOutPos = 465;
xCorrect = 0;
yCorrect = 0;
wait_scissor = false;
standX = 40;
standY = -60;
markerType = "GrandchildMark";
}
function goGrowing() {
clearInterval(hungerIntID);
stopRNDFeed();
currState = "feed";
actionFuse = new com.mosesSupposes.fuse.Fuse();
actionFuse.__set__target(this);
actionFuse.push({func:"moveToPoint", args:[null, new flash.geom.Point(50, 370)]});
actionFuse.push({command:"pause"});
actionFuse.push({func:"setCurrState", args:["grow"]});
actionFuse.push({func:"standAndWait"});
actionFuse.push({func:"stopRNDFeed"});
actionFuse.push({func:"growing"});
actionFuse.start();
}
function growing() {
var vv = "stand_wool";
var iconObj = {objName:"Wool", phaseName:"handdelay"};
addCloud(iconArr[2], iconObj);
wait_scissor = true;
update(new XML((("<element name=\"body\" elementID=\"" + PERS_NAME) + vv) + "\" />").firstChild);
addHendlers(currAnimSrc);
markerScope = currAnimSrc;
action = "persApplyObj";
}
function getObjAction() {
var result = "cutSheep";
return(result);
}
function growingDone() {
wait_scissor = false;
eatCounter = 0;
removeHendlers(currAnimSrc);
onRollOut();
eatDone();
}
function removePlObj() {
clearInterval(outPauseID);
if (!going_out) {
outPauseID = setInterval(this, "goOut", 100);
wait_scissor = false;
}
}
function get waitStatus() {
if ((wait_drink || (wait_food)) || (wait_scissor)) {
_waitStatus = "GuiTabSheep";
}
return(_waitStatus);
}
function addHendlers(link) {
link.enabled = true;
link.useHandCursor = true;
link.onRollOver = (link.onRelease = (link.onReleaseOutside = mx.utils.Delegate.create(this, onRollOver)));
link.onRollOut = mx.utils.Delegate.create(this, onRollOut);
link.onRelease = mx.utils.Delegate.create(this, onRelease);
}
function removeHendlers(link) {
link.useHandCursor = false;
link.onRollOver = mx.utils.Delegate.create(this, null);
link.onRollOut = mx.utils.Delegate.create(this, null);
link.onPress = mx.utils.Delegate.create(this, null);
link.onRelease = mx.utils.Delegate.create(this, null);
link.onReleaseOutside = mx.utils.Delegate.create(this, null);
}
function applyOverEffect(color) {
var color = (color || 10223499);
myBlur = new flash.filters.GlowFilter(color, 0.9, 3, 3, 20, 1, false, false);
return(myBlur);
}
function onRollOver() {
var filterArray = new Array();
filterArray.push(applyOverEffect());
currAnimSrc.filters = filterArray;
}
function onRollOut() {
currAnimSrc.filters = [];
}
function onRelease() {
addMarker();
dispatchEvent({type:"action", event:"click"});
}
function addMarker(command) {
if (((!mc_marker._name) && (action != "")) && (command != "update")) {
var w = markerScope._width;
var h;
if (!markerScope.cloude) {
h = markerScope._height;
} else {
h = markerScope._height - markerScope.cloude.scope._height;
}
var node = com.data.GUIxml.getXML("getGui", markerType).firstChild;
mc_marker = com.utils.ObjFactory.addObj(node, markerScope);
mc_marker._x = (w - mc_marker._width) / 2;
mc_marker._y = (h - mc_marker._height) / 2;
} else if ((markerScope != scope) && (mc_marker._name)) {
removeMarker();
var w = markerScope._width;
var h = markerScope._height;
var node = com.data.GUIxml.getXML("getGui", "GrandchildMark").firstChild;
mc_marker = com.utils.ObjFactory.addObj(node, markerScope);
mc_marker._x = (w - mc_marker._width) / 2;
mc_marker._y = (h - mc_marker._height) / 2;
}
}
function removeMarker() {
mc_marker.removeMovieClip();
}
function get xPos() {
var xx = ((scope._x + standX) || 0);
var myPoint = (new flash.geom.Point(xx, 0));
return(Number(myPoint.x));
}
function get yPos() {
var yy = ((scope._y + standY) || 0);
var myPoint = (new flash.geom.Point(0, yy));
return(Number(myPoint.y));
}
var iconArr = new Array("iconWaterBucket", "iconClover", "IconScissors");
}
Symbol 809 MovieClip [__Packages.com.game.places.Bike] Frame 0
class com.game.places.Bike extends com.game.places.Place
{
var markCount, mc_markerArr, goalTitle, btn_sell, objList, init, maxObjInPlace, shipmentPosArr, tmp_earnings, animArr, shipmentObjArr, typesArr, stand, scope, animBike, rack, coin, count_mc, coinIsIt, standX, standY, actionList, myBlur, filteredMC, addHendlers, sellObjList, objPlacedIn, objCounter, checkObjTypes, hideCounterInerv, action, dispatchEvent, _earnings, countText, _count, mc_marker;
function Bike () {
super();
}
function create(node, link) {
markCount = 0;
mc_markerArr = new Array();
goalTitle = new TextFormat();
goalTitle.font = "titleFont";
goalTitle.size = 12;
goalTitle.bold = false;
goalTitle.color = 16776960 /* 0xFFFF00 */;
btn_sell = com.game.GameZone.GAME_ZONE_CLASS.sellArrow;
objList = node;
init(link, node);
maxObjInPlace = node.attributes.maxObj;
shipmentPosArr = new Array([0, -78], [4, -62]);
earnings = (0);
tmp_earnings = 0;
animArr = new Array();
shipmentObjArr = new Array();
typesArr = String(objList.attributes.types).split(",");
stand = scope.createEmptyMovieClip("stand", 40);
animBike = scope.createEmptyMovieClip("animBike", 50);
rack = scope.createEmptyMovieClip("rack", 60);
coin = rack.createEmptyMovieClip("rack", 19);
count_mc = scope.createEmptyMovieClip("count_mc", 100);
coinIsIt = false;
standX = int(objList.attributes.standX);
standY = int(objList.attributes.standY);
animBike._visible = false;
scope.scope = this;
com.game.logic.DepthCtrl.registerObj(this);
actionList = String(objList.attributes.actionList).split(",");
scope._x = objList.attributes.xPos;
scope._y = objList.attributes.yPos;
addCounter();
if (objList.attributes.overFilter == "glow") {
var color = (Number(objList.attributes.fColor) || 10223499);
myBlur = new flash.filters.GlowFilter(color, 0.9, 3, 3, 20, 1, false, false);
filteredMC = scope;
}
if (node.attributes.action) {
addHendlers(scope, node);
}
var num = 0;
if (!objList.childNodes[0].length) {
var src = objList.attributes.ID;
if (objList.attributes.animation) {
addAnimObj(objList);
} else if (objList.attributes.obj == "rack") {
addObj(objList, rack);
} else {
addObj(objList, stand);
}
}
while (objList.childNodes[num].attributes.src) {
var src = objList.childNodes[num].attributes.src;
if (objList.childNodes[num].attributes.animation) {
addAnimObj(objList.childNodes[num]);
} else if (objList.childNodes[num].attributes.obj == "rack") {
addObj(objList.childNodes[num], rack);
} else {
addObj(objList.childNodes[num], stand);
}
num++;
}
}
function removeObjOutPlace() {
sellObjList = objPlacedIn.cloneNode(true);
var i = 0;
while (i < shipmentObjArr.length) {
MovieClip(shipmentObjArr[i]).removeMovieClip();
objCounter--;
objPlacedIn.childNodes[objCounter].removeNode();
i++;
}
shipmentObjArr = [];
if (objCounter > 0) {
return(false);
}
return(true);
}
function addObjToPlace(node) {
if (objCounter == 0) {
earnings = (0);
}
var price = 0;
if (checkObjTypes(node.attributes.objName)) {
if ((objPlacedIn.childNodes.length <= maxObjInPlace) && (animBike._visible != true)) {
price = int(com.data.GUIxml.getXML("price", node.attributes.objName).attributes.Sell);
com.base.SoundPlayer.play("ItemPut");
node.attributes.xPos = int(node.attributes.xPos) + shipmentPosArr[objCounter][0];
node.attributes.yPos = int(node.attributes.yPos) + shipmentPosArr[objCounter][1];
node.attributes.layer = int(node.attributes.layer) + objCounter;
tmp_earnings = tmp_earnings + price;
objCounter++;
objPlacedIn.appendChild(node);
var tmp = addObj(node, rack);
tmp._name = tmp._name + objCounter;
node.attributes.ID = node.attributes.ID + objCounter;
shipmentObjArr.push(tmp);
if (price > 0) {
updateGoals(node.attributes.objName);
}
if (objCounter >= maxObjInPlace) {
gotoSell();
}
} else {
return(false);
}
return(true);
}
return(false);
}
function updateGoals(objName) {
count = (tmp_earnings);
var arr = new Array();
arr[objName] = 1;
com.game.GameZone.GAME_ZONE_CLASS.soldedObjArr.push(arr);
com.game.GameZone.GAME_ZONE_CLASS.checkLevelGoal();
com.game.GameZone.GAME_ZONE_CLASS.levContr.complete(0, com.game.GameZone.GAME_ZONE_CLASS.moneyEarned);
}
function gotoSell() {
if (animBike._visible != true) {
hideCounterInerv = setInterval(this, "hideCounter", 500);
btn_sell._visible = false;
action = "";
animBike._visible = true;
stand._visible = false;
com.base.SoundPlayer.play("BicycleLeaving");
playOutAnim();
com.mosesSupposes.fuse.ZigoEngine.doTween(rack, "_x", [180], 2, com.mosesSupposes.fuse.PennerEasing.easeInCubic, 0);
com.mosesSupposes.fuse.ZigoEngine.doTween(animBike, "_x", [180], 2, com.mosesSupposes.fuse.PennerEasing.easeInCubic, 0, {scope:this, func:"beBackSell"});
}
}
function hideCounter() {
clearInterval(hideCounterInerv);
count = (0);
}
function beBackSell() {
count = (0);
coinIsIt = true;
removeObjOutPlace();
var tmpXML = new XML("<level ID=\"coin\" layer=\"19\" xPos=\"18\" yPos=\"-50\"/>").firstChild;
addObj(tmpXML, coin);
com.mosesSupposes.fuse.ZigoEngine.doTween(rack, "_x", [0], 2, com.mosesSupposes.fuse.PennerEasing.easeInCubic, 0);
com.mosesSupposes.fuse.ZigoEngine.doTween(animBike, "_x", [0], 2, com.mosesSupposes.fuse.PennerEasing.easeInCubic, 0, {scope:this, func:"stopSellAnim"});
}
function stopSellAnim() {
com.game.GameZone.GAME_ZONE_CLASS.levContr.checkAction("bikeBackSell");
btn_sell._visible = true;
action = "persApplyObj";
animBike._visible = false;
stand._visible = true;
stopOutAnim();
earnings = (tmp_earnings);
tmp_earnings = 0;
count = (earnings);
}
function cashToSlot() {
if ((earnings > 0) && (coinIsIt)) {
count = (0);
action = "cashToSlot";
dispatchEvent({type:"action", event:"click"});
action = "persApplyObj";
coinIsIt = false;
}
}
function getCoin() {
if ((earnings > 0) && (coinIsIt)) {
var tmpAction = action;
action = "persApplyObj";
var ret = earnings;
coin.coin.removeMovieClip();
}
return(ret);
}
function createSellObjArr() {
var sellObj = new Array();
var i = 0;
while (i < sellObjList.childNodes.length) {
if (!sellObj[sellObjList.childNodes[i].attributes.objName]) {
sellObj[sellObjList.childNodes[i].attributes.objName] = 1;
} else {
sellObj[sellObjList.childNodes[i].attributes.objName] = sellObj[sellObjList.childNodes[i].attributes.objName] + 1;
}
i++;
}
return(sellObj);
}
function getObjList() {
var tmp = createSellObjArr();
return(tmp);
}
function playOutAnim() {
var i = 0;
while (i < animArr.length) {
com.base.anim.SimpleAnim(animArr[i]).nextCycle();
i++;
}
}
function stopOutAnim() {
var i = 0;
while (i < animArr.length) {
com.base.anim.SimpleAnim(animArr[i])._destroy();
i++;
}
}
function get earnings() {
return(_earnings);
}
function set earnings(value) {
_earnings = value;
//return(earnings);
}
function get extra_earnings() {
if (com.game.GameZone.GAME_ZONE_CLASS.lvlComplete) {
return(tmp_earnings);
}
return(Number.NaN);
}
function addObj(node, link) {
var tmp = link.createEmptyMovieClip(node.attributes.ID, node.attributes.layer || (link.getNextHighestDepth()));
var src = (node.attributes.src || (node.attributes.ID));
var bmp = flash.display.BitmapData.loadBitmap(src);
tmp.attachBitmap(bmp, node.attributes.layer || (tmp.getNextHighestDepth()), "auto", true);
tmp._x = node.attributes.xPos || 0;
tmp._y = node.attributes.yPos || 0;
return(tmp);
}
function addAnimObj(aXML) {
var src = aXML.attributes.src;
var animNode = XML(com.data.GUIxml.getXML("animations", src)).firstChild;
var mcAnim = animBike.attachMovie("SimpleAnim", "mcAnim", aXML.attributes.layer || (animBike.getNextHighestDepth()));
animArr.push(mcAnim);
mcAnim._x = aXML.attributes.xPos;
mcAnim._y = aXML.attributes.yPos;
mcAnim.createByXML(animNode, animBike);
}
function addCounter() {
countText = count_mc.createTextField("countText", count_mc.getNextHighestDepth(), 10, -80, 100, 20);
countText.selectable = false;
countText.embedFonts = true;
countText.autoSize = false;
com.utils.Filters.applingTextFilter(countText);
count = (0);
}
function get count() {
return(_count);
}
function set count(value) {
clearInterval(hideCounterInerv);
if (value > 0) {
countText._y = countText._y - 10;
com.mosesSupposes.fuse.ZigoEngine.doTween(countText, "_alpha, _y", [100, -80], 0.7, "linear", 0.1);
_count = Math.round(value);
countText.text = String(_count);
countText.setTextFormat(goalTitle);
} else {
com.mosesSupposes.fuse.ZigoEngine.doTween(countText, "_alpha", 0, 0.7, "linear", 0.4);
}
//return(count);
}
function addMarker() {
var sc = rack;
var m_posArr = new Array([-2, -88], [4, -62]);
var num;
num = (markCount + objCounter) || 0;
if (((markCount < maxObjInPlace) && (num < maxObjInPlace)) && (animBike._visible != true)) {
var w = (m_posArr[num][0] + 60);
var h = m_posArr[num][1];
var node = com.data.GUIxml.getXML("getGui", "GrandchildMark").firstChild;
var tt = (int(node.attributes.layer) + markCount);
node.attributes.layer = tt;
mc_marker = com.utils.ObjFactory.addObj(node, sc);
mc_marker._x = (w - mc_marker._width) / 2;
mc_marker._y = (h - mc_marker._height) / 2;
mc_markerArr.push(mc_marker);
markCount++;
}
}
function removeMarker() {
if (markCount > 0) {
var mc = MovieClip(mc_markerArr.pop());
mc.removeMovieClip();
markCount--;
}
}
}
Symbol 810 MovieClip [__Packages.com.game.pers.GrFather] Frame 0
class com.game.pers.GrFather extends com.game.pers.Pers
{
var initEmotionList, bazeBodyPref, persHeight, bazeClass, skinObjList, updBody, currFuse, scope, action, dispatchEvent, moveToPoint, nextFuse, emotList, getEmotion;
function GrFather (scope, bazeClass) {
super(scope, bazeClass);
initEmotionList(["blink", "footShake", "kneadBack", "lookForward", "scratchHead"]);
bazeBodyPref = "grand";
persHeight = 78;
}
function stayToFront() {
randomEmotion();
}
function setWater(target) {
if (com.game.places.Place(bazeClass.game_mc.BuckPlace.scope).checkObjToPlace()) {
switch (com.game.places.Place(target.scope).upgrade) {
case 1 :
skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID].attributes.elementID = "grand_action_well";
break;
case 2 :
skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID].attributes.elementID = "grand_action_well2";
}
updBody(skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID]);
target["3"]._visible = false;
currFuse.pause();
com.base.SoundPlayer.play("well");
com.mosesSupposes.fuse.ZigoEngine.doTween(this, (scope.a = 0), 1, 2, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"callbackPutWaterToPlace", args:[target]});
} else {
target.scope.removeMarker();
noNo();
}
}
function callbackPutWaterToPlace(target) {
if (com.game.places.Place(bazeClass.game_mc.BuckPlace.scope).checkObjToPlace()) {
target["3"]._visible = true;
action = "putWaterToPlace";
dispatchEvent({type:"action", event:"click"});
randomEmotion();
} else {
target.scope.removeMarker();
noNo();
}
}
function cutDown(target) {
if (com.game.places.Place(com.game.places.GrainPlace(target.scope).productPlaceTo).checkObjToPlace() && (com.game.places.GrainPlace(target.scope).have_resourse)) {
var stNum = com.game.places.GrainPlace(target.scope).stage_num;
if ((((stNum == 7) || (stNum == 5)) || (stNum == 3)) || (stNum == 1)) {
skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID].attributes.elementID = "grand_action_cutDownHayTurnR";
} else {
skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID].attributes.elementID = "grand_action_cutDownHay";
}
updBody(skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID]);
currFuse.pause();
com.base.SoundPlayer.play("Sickle", 2);
var animationTime;
if (Main.userProfile.getItemsList("scythe").nodeName) {
animationTime = 1.1;
} else {
animationTime = 1.7;
}
com.mosesSupposes.fuse.ZigoEngine.doTween(this, (scope.a = 0), 1, animationTime, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"callbackCutDown", args:[target.scope]});
} else {
target.scope.removeMarker();
noNo();
}
}
function callbackCutDown(sc) {
if (com.game.places.Place(sc.productPlaceTo).checkObjToPlace() && (sc.have_resourse)) {
sc.slice();
var key_1 = sc.productName;
var key_2 = "toPlace";
var node = com.data.GUIxml.getXML("obj", key_1, key_2).firstChild;
com.game.places.Place(sc.productPlaceTo).addObjToPlace(node);
randomEmotion();
} else {
sc.removeMarker();
noNo();
}
moveToPoint(scope, new flash.geom.Point(300, 120));
}
function randomEmotion() {
nextFuse();
var max = (emotList.length - 1);
var min = 0;
var randomNum = (Math.floor(Math.random() * ((max - min) + 1)) + min);
var emot = getEmotion(randomNum);
skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID].attributes.elementID = "grand_emotion_" + emot;
updBody(skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID]);
com.mosesSupposes.fuse.ZigoEngine.doTween(this, (scope.a = 0), 1, 2, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"randomEmotion"});
}
function noNo() {
com.mosesSupposes.fuse.ZigoEngine.removeTween(this, scope.a);
skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID].attributes.elementID = "grand_emotion_noNo";
updBody(skinObjList.childNodes[com.game.pers.Pers.BODY_NODE_ID]);
com.mosesSupposes.fuse.ZigoEngine.doTween(this, (scope.a = 0), 1, 0.6, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"randomEmotion"});
}
}
Symbol 811 MovieClip [__Packages.com.game.places.GrainPlace] Frame 0
class com.game.places.GrainPlace extends com.game.places.Place
{
var have_resourse, standArr, typesArr, addAnimObj, stageObj, removeMarker, action, standX, standY, conteinttm, grainTab_mc, vegTab, scope, count_mc, goalTitle, countText, _count;
function GrainPlace (link) {
super(link);
have_resourse = true;
standArr = new Array([130, 170, 130, 170, 110, 130], [25, -10, 25, -10, 0, -20]);
}
function create(node, link) {
super.create(node, link);
}
function addGrainField(node, stndArr) {
if (stndArr[0][MINIPLACE_COUNT - stage_num] != Number.NaN) {
standArr = stndArr;
updateStandPos();
}
if (typesArr[0]) {
productName = typesArr[0];
}
var mc = addAnimObj(node);
stageObj = com.base.anim.SimpleAnim(mc);
return(mc);
}
function resetStage() {
count = (0);
stage_num = MINIPLACE_COUNT;
stageObj.__set__currFrame(stage_num);
updateStandPos();
removeMarker();
hideVegTab();
have_resourse = true;
action = "GrandCutDownGrain";
}
function updateStandPos() {
standX = standArr[0][MINIPLACE_COUNT - stage_num];
standY = standArr[1][MINIPLACE_COUNT - stage_num];
}
function slice() {
if (stage_num > 1) {
stage_num--;
updateStandPos();
stageObj.__set__currFrame(stage_num);
if ((MINIPLACE_COUNT - stage_num) == 1) {
drawOverPict(0);
} else if ((MINIPLACE_COUNT - stage_num) == 3) {
drawOverPict(-4.5);
} else {
conteinttm.removeMovieClip();
}
if (stage_num <= 1) {
showVegTab();
have_resourse = false;
action = "bayGrain";
}
}
}
function drawOverPict(xPs) {
if (productName != "Clover") {
conteinttm = com.game.GameZone.GAME_MC.createEmptyMovieClip((MINIPLACE_COUNT - stage_num) + "GrOver", 469);
var ttm = com.utils.ObjFactory.addObj(new XML(((("<ite ID=\"" + (MINIPLACE_COUNT - stage_num)) + "GrOver\" yPos=\"-58\" xPos=\"") + xPs) + "\">").firstChild, conteinttm);
conteinttm._x = 125;
conteinttm._y = 169;
com.game.logic.DepthCtrl.registerObj({scope:conteinttm});
}
}
function showVegTab() {
var node = com.data.GUIxml.getXML("animations", productName + "Tab");
grainTab_mc = com.game.GameZone.GAME_MC.createEmptyMovieClip(("grainTab_mc_" + int(node.firstChild.attributes.depth)) || 235, int(node.firstChild.attributes.depth) || 235);
vegTab = new com.base.VegTab(grainTab_mc, "ripple");
vegTab.addAnimObj(node.firstChild);
if (node.firstChild.attributes.tabXpos) {
TAB_XPOS = int(node.firstChild.attributes.tabXpos);
}
if (node.firstChild.attributes.tabYpos) {
TAB_YPOS = int(node.firstChild.attributes.tabYpos);
}
grainTab_mc._x = scope._x + TAB_XPOS;
grainTab_mc._y = scope._y + TAB_YPOS;
count_mc = grainTab_mc.createEmptyMovieClip("count_mc", 9998);
addCounter();
count = (100);
}
function addCounter() {
goalTitle = new TextFormat();
goalTitle.font = "titleFont";
goalTitle.size = 12;
goalTitle.bold = false;
goalTitle.color = 16776960 /* 0xFFFF00 */;
countText = count_mc.createTextField("countText", count_mc.getNextHighestDepth(), 2, -4, 100, 20);
countText.selectable = false;
countText.embedFonts = true;
countText.autoSize = false;
com.utils.Filters.applingTextFilter(countText);
count = (0);
}
function get count() {
return(_count);
}
function set count(value) {
if (value > 0) {
countText._y = countText._y - 10;
com.mosesSupposes.fuse.ZigoEngine.doTween(countText, "_alpha, _y", [100, -4], 0.7, "linear", 0.1);
_count = Math.round(value);
countText.text = String(_count);
countText.setTextFormat(goalTitle);
} else {
com.mosesSupposes.fuse.ZigoEngine.doTween(countText, "_alpha", 0, 0.7, "linear", 0.4);
}
//return(count);
}
function hideVegTab() {
grainTab_mc.removeMovieClip();
}
static var MINIPLACE_COUNT = 7;
var stage_num = MINIPLACE_COUNT;
var TAB_XPOS = 50;
var TAB_YPOS = -14;
var productName = "Grain";
}
Symbol 812 MovieClip [__Packages.com.base.VegTab] Frame 0
class com.base.VegTab extends MovieClip
{
var scope, objArr, mcAnim, dispatchEvent;
function VegTab (link, src, placeID) {
super();
this.placeID = placeID;
if (link) {
scope = link.createEmptyMovieClip("vegTab_mc", 0);
}
init(src);
}
function init(src) {
objArr = new Array();
mx.events.EventDispatcher.initialize(this);
var anim = com.data.GUIxml.getXML("animations", src);
addAnimObj(anim.firstChild);
}
function fadeOut() {
mcAnim.play();
com.mosesSupposes.fuse.ZigoEngine.doTween(scope, "_alpha", 0, 0.8, "linear", 0, {scope:this, func:_destroy});
}
function _destroy() {
scope.removeMovieClip();
}
function addAnimObj(aXML) {
mcAnim = scope.attachMovie("SimpleAnim", "mcAnim", scope.getNextHighestDepth());
objArr[aXML.attributes.src] = mcAnim;
mcAnim._x = aXML.attributes.xpos || 0;
mcAnim._y = aXML.attributes.ypos || 0;
mcAnim.createByXML(aXML, scope);
if (aXML.attributes.cicle != "false") {
mcAnim.playCycle();
} else if (aXML.attributes.stop != "true") {
mcAnim.play();
}
}
function onRelease() {
dispatchEvent({type:"action", event:"click"});
}
var placeID = null;
}
Symbol 813 MovieClip [__Packages.com.base.CashSlot] Frame 0
class com.base.CashSlot extends MovieClip
{
var scope, objList, titleTxtField, my_fmt, titleTxt, __get__title;
function CashSlot (link) {
super();
if (link) {
scope = link;
}
}
function init(link, layer) {
if (!scope) {
scope = link.createEmptyMovieClip("place_mc", int(layer) || (link.getNextHighestDepth()));
}
}
function create(node, link) {
init(link, node.attributes.layer);
objList = node;
scope._x = objList.attributes.xPos;
scope._y = objList.attributes.yPos;
var num = 0;
if (!objList.childNodes[0].length) {
var src = objList.attributes.ID;
if (objList.attributes.animation) {
addAnimObj(objList);
} else {
addObj(objList);
}
}
while (objList.childNodes[num].attributes.src) {
var src = objList.childNodes[num].attributes.src;
if (objList.childNodes[num].attributes.animation) {
addAnimObj(objList.childNodes[num]);
} else {
addObj(objList.childNodes[num]);
}
num++;
}
createTitle();
title = ("55550");
if (node.attributes.title) {
title = (node.attributes.title);
}
}
function addObj(node) {
var tmp = scope.createEmptyMovieClip(node.attributes.ID, node.attributes.layer || (scope.getNextHighestDepth()));
var src = (node.attributes.src || (node.attributes.ID));
var bmp = flash.display.BitmapData.loadBitmap(src);
tmp.attachBitmap(bmp, node.attributes.layer || (tmp.getNextHighestDepth()), "auto", true);
tmp._x = node.attributes.xPos || 0;
tmp._y = node.attributes.yPos || 0;
}
function addAnimObj(aXML) {
var mcAnim = scope.attachMovie("SimpleAnim", "mcAnim", scope.getNextHighestDepth());
mcAnim.createByXML(aXML, scope);
if (aXML.attributes.cicle != "false") {
mcAnim.playCycle();
} else {
mcAnim.play();
}
}
function createTitle() {
titleTxtField = scope.createTextField("titleTxtField", scope.getNextHighestDepth(), objList.attributes.xTit || 2, objList.attributes.yTit || 8, 100, 20);
titleTxtField.selectable = false;
titleTxtField.embedFonts = true;
titleTxtField.autoSize = false;
my_fmt = new TextFormat();
my_fmt.color = 16053248 /* 0xF4F400 */;
my_fmt.font = "titleFont";
my_fmt.bold = true;
my_fmt.size = 16;
var myDropFilter = (new flash.filters.DropShadowFilter());
myDropFilter.alpha = 10;
myDropFilter.distance = 2;
myDropFilter.strength = 0.34;
myDropFilter.blurX = (myDropFilter.blurY = 0);
var myConturFilter = (new flash.filters.DropShadowFilter());
myConturFilter.strength = 5;
myConturFilter.color = 10040064 /* 0x993300 */;
myConturFilter.blurX = (myConturFilter.blurY = 2);
myConturFilter.distance = 0;
var myBevelFilter = (new flash.filters.BevelFilter());
myBevelFilter.shadowColor = 16750848 /* 0xFF9900 */;
myBevelFilter.highlightColor = 16776960 /* 0xFFFF00 */;
myBevelFilter.strength = 1.3;
myBevelFilter.quality = 3;
myBevelFilter.angle = 90;
var myFilters = titleTxtField.filters;
myFilters.push(myBevelFilter);
myFilters.push(myConturFilter);
myFilters.push(myDropFilter);
titleTxtField.filters = myFilters;
}
function set title(txt) {
titleTxt = txt;
titleTxtField.autoSize = false;
titleTxtField.text = txt;
titleTxtField.setTextFormat(my_fmt);
//return(__get__title());
}
}
Symbol 814 MovieClip [__Packages.com.dialogs.Options] Frame 0
class com.dialogs.Options
{
var scope, music, showHints, mcFog, but, dayTitle, goalTitle, removeEventListener;
function Options (scope, music, showHints) {
mx.events.EventDispatcher.initialize(this);
this.scope = scope.createEmptyMovieClip("OptionsDialog", 52);
this.scope.scope = this;
this.scope._visible = false;
this.scope._alpha = 0;
this.music = music;
this.showHints = showHints;
}
function createDragVolumeCtrl(src, xpos, ypos, width, obj) {
var node = com.data.GUIxml.getXML("getGui", src).firstChild;
var mc = addObj(node);
var currVol;
if (obj == "sound") {
currVol = Main.soundLevel;
}
if (obj == "music") {
currVol = Main.musicLevel;
}
mc._x = Math.round(xpos + ((width * (currVol || 0)) / 100));
mc._y = ypos;
mc.music = obj;
mc.xpos = xpos;
mc.ypos = ypos;
mc.width = width;
mc.pressed = false;
mc.onPress = function () {
this.pressed = true;
this.startDrag(false, xpos, ypos, xpos + width, ypos);
this.onEnterFrame = function () {
var vol = Math.round(((this._x - this.xpos) * 100) / this.width);
if (this.music == "sound") {
Main.soundLevel = vol;
}
if (this.music == "music") {
Main.musicLevel = vol;
com.base.SoundHelper.musicVolume(vol);
}
};
};
mc.onMouseMove = mc.onEnterFrame;
mc.onRelease = (mc.onReleaseOutside = function () {
this.pressed = false;
this.stopDrag();
delete this.onEnterFrame;
});
}
function create(show_fog) {
var mc;
createFog();
if (!show_fog) {
mcFog._alpha = 0;
}
createBG("StatWindow");
txtFormat();
createBG("OptionsOver");
createTitle(com.data.Strings.getXML("OPTIONS").attributes.text);
createLinItems(com.data.Strings.getText("SOUND"), 150, 184);
createDragVolumeCtrl("OptionsSlider", 280, 188, 180, "sound");
createLinItems(com.data.Strings.getText("MUSIC"), 150, 224);
createDragVolumeCtrl("OptionsSlider", 280, 228, 180, "music");
createLinItems(com.data.Strings.getText("SHOW HINTS"), 150, 264);
createToggleBut();
createOkBut("ButtonOptOk");
show();
}
function createToggleBut() {
but = new com.base.ToggleButton(scope);
but.__set__xPos(464);
but.__set__yPos(267);
if (showHints) {
hintsOn();
} else {
hintsOff();
}
but.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
}
function hintsOn() {
but.setImage("OptionsButtonOn");
but.__set__setAction("hintsOff");
Main.showHints = true;
showHints = true;
}
function hintsOff() {
but.setImage("OptionsButtonOff");
but.__set__setAction("hintsOn");
Main.showHints = false;
showHints = false;
}
function clickHandler(eventObj) {
if (!(eventObj.event === "click")) {
} else {
this[eventObj.target.action].call(this);
}
}
function createFog() {
var bmp = (new flash.display.BitmapData(640, 480, false, 0));
mcFog = scope.createEmptyMovieClip("mcFog", 0);
mcFog.attachBitmap(bmp, 1, "auto", true);
mcFog._alpha = 50;
mcFog.onRelease = function () {
};
mcFog.useHandCursor = false;
}
function createBG(src) {
var node = com.data.GUIxml.getXML("getGui", src).firstChild;
var mc = addObj(node);
mc._x = (Stage.width - mc._width) / 2;
mc._y = (Stage.height - mc._height) / 2;
}
function show() {
scope._visible = true;
com.mosesSupposes.fuse.ZigoEngine.doTween(scope, ["_alpha"], 100, 2, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:endShow});
}
function endShow() {
}
function hide() {
com.mosesSupposes.fuse.ZigoEngine.doTween(scope, ["_alpha"], 0, 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"_destroy"});
}
function createOkBut(src) {
var node = com.data.GUIxml.getXML("getGui", src).firstChild;
var newBtn = (new com.base.GameButton());
newBtn.create(node, scope);
newBtn.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
}
function txtFormat() {
dayTitle = new TextFormat();
dayTitle.color = 16053248 /* 0xF4F400 */;
dayTitle.font = "titleFont";
dayTitle.bold = true;
dayTitle.size = 20;
goalTitle = new TextFormat();
goalTitle.color = 2391039 /* 0x247BFF */;
goalTitle.font = "titleFont";
goalTitle.bold = true;
goalTitle.size = 20;
}
function createTitle(txt) {
var titleTxtField = scope.createTextField("titleTxtField", scope.getNextHighestDepth(), 0, 130, 640, 40);
titleTxtField.selectable = false;
titleTxtField.embedFonts = true;
titleTxtField.autoSize = false;
titleTxtField.text = txt;
dayTitle.size = 24;
dayTitle.align = "center";
titleTxtField.setTextFormat(dayTitle);
com.utils.Filters.applingTextFilter(titleTxtField);
}
function createLinItems(txt, x, y, iconName, count) {
var earnTxtField = scope.createTextField("earnTxtField", scope.getNextHighestDepth(), x, y, 100, 20);
earnTxtField.selectable = false;
earnTxtField.embedFonts = true;
earnTxtField.autoSize = true;
earnTxtField.text = txt;
dayTitle.size = 18;
dayTitle.align = "left";
earnTxtField.setTextFormat(dayTitle);
com.utils.Filters.applingTextFilter(earnTxtField);
if (iconName) {
var sell = createSoldObj(iconName, count);
sell._x = sell._x + (x + 260);
sell._y = sell._y + y;
}
}
function createSoldObj(iconName, count) {
if ((count != undefined) && (iconName)) {
var node = com.data.GUIxml.getXML("getGui", iconName).firstChild;
var itemMC = addObj(node);
var countText = itemMC.createTextField("countText", itemMC.getNextHighestDepth(), 30, 0, 100, 20);
countText.selectable = false;
countText.embedFonts = true;
countText.autoSize = true;
countText.text = "x " + String(count);
goalTitle.size = 14;
goalTitle.bold = false;
goalTitle.color = 10510337 /* 0xA06001 */;
countText.setTextFormat(goalTitle);
return(itemMC);
}
}
function addObj(node) {
var tmp = scope.createEmptyMovieClip(node.attributes.ID, node.attributes.layer || (scope.getNextHighestDepth()));
var src = (node.attributes.src || (node.attributes.ID));
var bmp = flash.display.BitmapData.loadBitmap(src);
tmp.attachBitmap(bmp, node.attributes.layer || (tmp.getNextHighestDepth()), "auto", true);
tmp._x = node.attributes.xPos || 0;
tmp._y = node.attributes.yPos || 0;
return(tmp);
}
function _destroy() {
com.mosesSupposes.fuse.ZigoEngine.removeTween();
scope.removeMovieClip();
delete scope;
removeEventListener();
delete this;
}
}
Symbol 815 MovieClip [__Packages.com.utils.FocusManager] Frame 0
class com.utils.FocusManager
{
var focusedObj, _objInFocus;
function FocusManager () {
focusedObj = new Array();
}
function registerObj(obj) {
obj.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
addObjToArr(obj);
}
function unregisterObj(obj) {
obj.removeEventListener();
focusedObj[obj.scope._name] = [];
}
function addObjToArr(obj) {
focusedObj[obj.scope._name] = obj;
}
function callBackFocus(obj) {
for (var i in focusedObj) {
if (obj.scope._name != focusedObj[i].scope._name) {
focusedObj[i].setSelection = false;
focusedObj[i].deselect();
}
}
}
function clickHandler(eventObj) {
if (!(eventObj.event === "click")) {
} else {
objInFocus = (eventObj.target);
callBackFocus(eventObj.target);
}
}
function get objInFocus() {
return(_objInFocus);
}
function set objInFocus(value) {
_objInFocus = value;
//return(objInFocus);
}
}
Symbol 816 MovieClip [__Packages.com.base.VegSlotButton] Frame 0
class com.base.VegSlotButton extends com.game.places.Place
{
var focuseGroupVegSlot, scope, addHendlers, pushMC;
function VegSlotButton (link) {
super(link);
focuseGroupVegSlot = new com.utils.FocusManager();
}
function addObj(node) {
var tmp = scope.createEmptyMovieClip(node.attributes.ID, node.attributes.layer || (scope.getNextHighestDepth()));
addHendlers(tmp, node);
var src = (node.attributes.src || (node.attributes.ID));
var bmp = flash.display.BitmapData.loadBitmap(src);
tmp.attachBitmap(bmp, node.attributes.layer || (tmp.getNextHighestDepth()), "auto", true);
tmp._x = node.attributes.xPos || 0;
tmp._y = node.attributes.yPos || 0;
if (node.attributes.type == "pushed") {
addPushedMC(tmp);
}
}
function addPushedMC(link) {
pushMC = link;
pushMC._visible = false;
}
function pushDown(flag) {
if (isPushed) {
isPushed = false;
pushMC._visible = true;
} else {
isPushed = true;
pushMC._visible = false;
}
}
function onRelease() {
super();
pushDown();
}
function addToggle(src, scope) {
var node = com.data.GUIxml.getXML("getGui", src).firstChild;
var togBtn = (new com.base.ToggleButton(this.scope));
togBtn.setImage(String(node.childNodes[0].attributes.src));
togBtn.setIcon(String(node.attributes.iconName));
togBtn.__set__setSelection(Boolean(node.childNodes[0].attributes.selected));
togBtn.__set__setAction("setVeg");
togBtn.setXML(node);
togBtn.__set__xPos(node.attributes.xPos);
togBtn.__set__yPos(node.attributes.yPos);
togBtn.addEventListener("action", mx.utils.Delegate.create(scope, scope.clickHandler));
focuseGroupVegSlot.registerObj(togBtn);
return(togBtn);
}
var isPushed = false;
}
Symbol 817 MovieClip [__Packages.com.game.pers.animals.Gosling] Frame 0
class com.game.pers.animals.Gosling extends com.game.pers.animals.Animals
{
var PERS_NAME, EatDelay, DrinkDelay, EatCount, type, hungerIntID, stopRNDFeed, bazeClass, currState, actionFuse, waitTimerID, scope, _destroy;
function Gosling (scope, bazeClass) {
super(scope, bazeClass);
PERS_NAME = "gosling_";
var node = com.data.GUIxml.getXML("getProperties", "gosling");
EatDelay = (Number(node.attributes.EatDelay) * 1000) || 18000;
DrinkDelay = (Number(node.attributes.DrinkDelay) * 1000) || 15000;
EatCount = Number(node.attributes.EatCount) || 4;
type = "bird";
}
function goGrowing() {
clearInterval(hungerIntID);
stopRNDFeed();
var goose = com.game.GameZone(bazeClass).createGoose("Goose", com.game.GameZone(bazeClass).game_mc);
goose.scope._visible = false;
currState = "feed";
actionFuse = new com.mosesSupposes.fuse.Fuse();
actionFuse.__set__target(this);
actionFuse.push({func:"moveToPoint", args:[null, new flash.geom.Point(goose.scope._x, goose.scope._y)]});
actionFuse.push({command:"pause"});
actionFuse.push({func:"setCurrState", args:["grow"]});
actionFuse.push({func:"standAndWait"});
actionFuse.push({func:"stopRNDFeed"});
actionFuse.push({func:"growing", args:[goose]});
actionFuse.start();
}
function growing(sc) {
actionFuse.destroy();
actionFuse = new com.mosesSupposes.fuse.Fuse();
clearInterval(waitTimerID);
var arr = new Array();
arr.Goose = 1;
com.game.GameZone(bazeClass).soldedObjArr.push(arr);
com.game.GameZone(bazeClass).checkLevelGoal();
com.game.GameZone(bazeClass).levContr.complete(0, com.game.GameZone(bazeClass).moneyEarned);
var tmpXML = new XML("<goose/>");
Main.userProfile.addNewItems(tmpXML);
Main.userProfile.removeItem("gosling");
sc.scope._visible = true;
scope._visible = false;
com.mosesSupposes.fuse.ZigoEngine.doTween(sc.scope, "_brightness", 100, 0.6, "linear", 0.2, {scope:this, cycles:3, func:"growingDone", args:[sc]});
}
function growingDone(sc) {
com.mosesSupposes.fuse.ZigoEngine.doTween(sc.scope, "_brightness", 0, 0.1, "linear", 0, {scope:sc, func:"startAnimations"});
_destroy();
}
}
Symbol 818 MovieClip [__Packages.com.game.pers.animals.Goose] Frame 0
class com.game.pers.animals.Goose extends com.game.pers.animals.Animals
{
var PERS_NAME, EatDelay, DrinkDelay, EatCount, type, xCorrToMap, yCorrToMap, eatCounter, hungerIntID, stopRNDFeed, currState, actionFuse, waitTimerID, drinkTimer, randomFeed, wait_drink, wait_food, _waitStatus;
function Goose (scope, bazeClass) {
super(scope, bazeClass);
PERS_NAME = "goose_";
var node = com.data.GUIxml.getXML("getProperties", "goose");
EatDelay = (Number(node.attributes.EatDelay) * 1000) || 18000;
DrinkDelay = (Number(node.attributes.DrinkDelay) * 1000) || 15000;
EatCount = Number(node.attributes.EatCount) || 4;
type = "bird";
xCorrToMap = 35;
yCorrToMap = -15;
}
function goGrowing() {
eatCounter = 0;
clearInterval(hungerIntID);
stopRNDFeed();
currState = "feed";
actionFuse = new com.mosesSupposes.fuse.Fuse();
actionFuse.__set__target(this);
actionFuse.push({func:"moveToPoint", args:[null, new flash.geom.Point(260, 400)]});
actionFuse.push({command:"pause"});
actionFuse.push({func:"setCurrState", args:["grow"]});
actionFuse.push({func:"standAndWait"});
actionFuse.push({func:"stopRNDFeed"});
actionFuse.push({func:"growing"});
actionFuse.start();
}
function growing() {
actionFuse.destroy();
actionFuse = new com.mosesSupposes.fuse.Fuse();
clearInterval(waitTimerID);
var inPlaceObjNode = com.data.GUIxml.getXML("getGui", "gooseEggs").firstChild;
var mc = com.game.pers.animals.production.AnimalsProductionPlace.addProduct(type, inPlaceObjNode);
var persDeb = com.game.GameZone.GAME_MC.gooseEggsPlace.attachMovie("PersCreator", "PersCreator", com.game.GameZone.GAME_MC.gooseEggsPlace.getNextHighestDepth());
com.game.logic.DepthCtrl.callBack(this);
growingDone();
}
function growingDone() {
drinkTimer.resume();
currState = "feed";
randomFeed();
}
function get waitStatus() {
if (wait_drink || (wait_food)) {
_waitStatus = "GuiTabGoose";
}
return(_waitStatus);
}
}
Symbol 819 MovieClip [__Packages.com.game.pers.animals.production.AnimalsProductionPlace] Frame 0
class com.game.pers.animals.production.AnimalsProductionPlace extends com.game.places.Place
{
var removeObjOutPlace;
function AnimalsProductionPlace (link, zoneType) {
super(link);
if (zoneCounter == Number.NaN) {
zoneCounter = 0;
}
if (zoneType) {
if (zonedPlaceArr[zoneType][0] != "created") {
zonedPlaceArr[zoneType] = new Array();
zonedPlaceArr[zoneType][0] = "created";
}
zonedPlaceArr[zoneType].push(this);
}
}
static function addProduct(type, node) {
var i = 1;
var productObj;
while (zonedPlaceArr[type][i]) {
productObj = com.game.pers.animals.production.AnimalsProductionPlace(zonedPlaceArr[type][i]);
if (productObj.checkObjToPlace()) {
productObj.addObjToPlace(node);
var mc = MovieClip(productObj.objArr[node.attributes.ID]);
addCloud(mc, productObj, "iconHand", node.attributes.objName);
productObj.markerScope = mc;
return(mc);
}
i++;
}
}
static function addCloud(sc, linkToClass, iconName, oName) {
var iconObj = {objName:oName, phaseName:"handdelay"};
var cloude = sc.attachMovie("cloude", "cloude", sc.getNextHighestDepth());
sc.cloude = cloude;
cloude.create(iconName, linkToClass, iconObj);
com.game.logic.DepthCtrl.registerObj(linkToClass);
cloude._y = -35;
cloude._x = 0;
}
function removePlObj() {
removeObjOutPlace();
}
static var zonedPlaceArr = new Array();
static var zoneCounter = 0;
}
Symbol 820 MovieClip [__Packages.com.dialogs.MenuInGame] Frame 0
class com.dialogs.MenuInGame
{
var scope, action, dispatchEvent, mcFog, removeEventListener;
function MenuInGame (scope, depth) {
mx.events.EventDispatcher.initialize(this);
this.scope = scope.createEmptyMovieClip("InGameMenu", depth || 51);
this.scope.scope = this;
this.scope._visible = false;
this.scope._alpha = 0;
}
function create() {
createFog();
var itemNode;
var tmpBut;
var node = com.data.GUIxml.getXML("getGui", MENU_XML_STRUCT).firstChild;
itemNode = com.data.GUIxml.getXML("getGui", "InGameMenuItem").firstChild;
var itemCount = node.childNodes.length;
var x0 = ((Stage.width - MENU_WIDTH) / 2);
var y0 = ((Stage.height - ((ITEM_HEIGHT + ITEM_INDENT) * itemCount)) / 2);
var i = 0;
var t = 0;
while (i < itemCount) {
var title = com.data.Strings.getText(String(node.childNodes[i].attributes.title).toUpperCase());
if ((!Helper.BTN_MOREGAMES) && (title == "MORE GAMES")) {
} else if ((!Helper.BTN_GETIT) && (title == "GET FULL")) {
} else {
itemNode.attributes.title = title;
itemNode.attributes.action = node.childNodes[i].attributes.action;
tmpBut = createBut(itemNode);
tmpBut.scope._x = x0;
tmpBut.scope._y = y0 + ((ITEM_HEIGHT + ITEM_INDENT) * i);
}
i++;
}
show();
}
function clickHandler(eventObj) {
if (!(eventObj.event === "click")) {
} else {
this[eventObj.target.action].call(this);
}
}
function gotoMap() {
action = "gotoMap";
dispatchEvent({type:"action", event:"click"});
action = "";
}
function showOptions() {
action = "createOptions";
dispatchEvent({type:"action", event:"click"});
action = "";
}
function abortGame() {
var yesNoDialog = (new com.dialogs.YesNo(scope));
yesNoDialog.create();
yesNoDialog.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
}
function yes() {
action = "abortGame";
dispatchEvent({type:"action", event:"click"});
action = "";
hide();
}
function resumeGame() {
action = "resumeObjs";
dispatchEvent({type:"action", event:"click"});
action = "";
hide();
}
function GetIt() {
Helper.GetIt();
}
function MoreGames() {
Helper.MoreGames();
}
function createFog() {
var bmp = (new flash.display.BitmapData(640, 480, false, 0));
mcFog = scope.createEmptyMovieClip("mcFog", 0);
mcFog.attachBitmap(bmp, 1, "auto", true);
mcFog._alpha = 50;
mcFog.onPress = function () {
};
mcFog.useHandCursor = false;
}
function show() {
scope._visible = true;
com.mosesSupposes.fuse.ZigoEngine.doTween(scope, ["_alpha"], 100, 2, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:endShow});
}
function endShow() {
}
function hide() {
com.mosesSupposes.fuse.ZigoEngine.doTween(scope, ["_alpha"], 0, 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"_destroy"});
}
function createBut(node) {
var newBtn = (new com.base.GameButton());
newBtn.create(node, scope);
newBtn.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
return(newBtn);
}
function _destroy() {
com.mosesSupposes.fuse.ZigoEngine.removeTween();
scope.removeMovieClip();
delete scope;
removeEventListener();
delete this;
}
static var MENU_XML_STRUCT = "InGameMenu";
static var MENU_WIDTH = 154;
static var ITEM_HEIGHT = 38;
static var ITEM_INDENT = 6;
}
Symbol 821 MovieClip [__Packages.com.dialogs.YesNo] Frame 0
class com.dialogs.YesNo
{
var scope, mcFog, action, dispatchEvent, dayTitle, goalTitle, removeEventListener;
function YesNo (scope) {
mx.events.EventDispatcher.initialize(this);
this.scope = scope.createEmptyMovieClip("YesNo", 53);
this.scope.scope = this;
this.scope._visible = false;
this.scope._alpha = 0;
}
function create(show_fog) {
var mc;
createFog();
if (!show_fog) {
mcFog._alpha = 0;
}
createBG("StatWindow");
txtFormat();
createTitle(com.data.Strings.getText("ABORT CONFIRM"));
createOkBut("RootMenuItem", "YES", "yes", 160, 300);
createOkBut("RootMenuItem", "NO", "_hide", 360, 300);
show();
}
function clickHandler(eventObj) {
if (!(eventObj.event === "click")) {
} else {
this[eventObj.target.action].call(this);
action = eventObj.target.action;
dispatchEvent({type:"action", event:"click"});
action = "";
}
}
function createFog() {
var bmp = (new flash.display.BitmapData(640, 480, false, 0));
mcFog = scope.createEmptyMovieClip("mcFog", 0);
mcFog.attachBitmap(bmp, 1, "auto", true);
mcFog._alpha = 50;
mcFog.onRelease = function () {
};
mcFog.useHandCursor = false;
}
function createBG(src) {
var node = com.data.GUIxml.getXML("getGui", src).firstChild;
var mc = com.utils.ObjFactory.addObj(node, scope);
mc._x = (Stage.width - mc._width) / 2;
mc._y = (Stage.height - mc._height) / 2;
}
function show() {
scope._visible = true;
com.mosesSupposes.fuse.ZigoEngine.doTween(scope, ["_alpha"], 100, 1, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:endShow});
}
function endShow() {
}
function _hide() {
com.mosesSupposes.fuse.ZigoEngine.doTween(scope, ["_alpha"], 0, 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"_destroy"});
}
function createOkBut(src, b_title, b_action, xPos, yPos) {
var node = com.data.GUIxml.getXML("getGui", src).firstChild;
node.attributes.action = b_action;
node.attributes.title = com.data.Strings.getText(b_title);
node.attributes.xPos = String(xPos);
node.attributes.yPos = String(yPos);
var newBtn = (new com.base.GameButton());
newBtn.create(node, scope);
newBtn.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
}
function txtFormat() {
dayTitle = new TextFormat();
dayTitle.color = 16053248 /* 0xF4F400 */;
dayTitle.font = "titleFont";
dayTitle.bold = true;
dayTitle.size = 20;
goalTitle = new TextFormat();
goalTitle.color = 2391039 /* 0x247BFF */;
goalTitle.font = "titleFont";
goalTitle.bold = true;
goalTitle.size = 20;
}
function createTitle(txt) {
var titleTxtField = scope.createTextField("titleTxtField", scope.getNextHighestDepth(), 140, 200, 360, 80);
titleTxtField.selectable = false;
titleTxtField.embedFonts = true;
titleTxtField.wordWrap = true;
titleTxtField.multiline = true;
titleTxtField.autoSize = false;
titleTxtField.text = txt;
dayTitle.size = 18;
dayTitle.align = "center";
titleTxtField.setTextFormat(dayTitle);
com.utils.Filters.applingTextFilter(titleTxtField);
}
function _destroy() {
com.mosesSupposes.fuse.ZigoEngine.removeTween();
scope.removeMovieClip();
delete scope;
removeEventListener();
delete this;
}
}
Symbol 822 MovieClip [__Packages.com.game.pers.animals.WhiteLamb] Frame 0
class com.game.pers.animals.WhiteLamb extends com.game.pers.animals.Animals
{
var PERS_NAME, EatDelay, DrinkDelay, EatCount, type, xCorrectCloudPos, yCorrectCloudPos, xOutPos, yOutPos, hungerIntID, stopRNDFeed, bazeClass, currState, actionFuse, waitTimerID, scope, _destroy;
function WhiteLamb (scope, bazeClass) {
super(scope, bazeClass);
PERS_NAME = "whiteLamb_";
var node = com.data.GUIxml.getXML("getProperties", "whiteLamb");
EatDelay = (Number(node.attributes.EatDelay) * 1000) || 18000;
DrinkDelay = (Number(node.attributes.DrinkDelay) * 1000) || 15000;
EatCount = Number(node.attributes.EatCount) || 4;
type = "animal";
xCorrectCloudPos = -4;
yCorrectCloudPos = -80;
xOutPos = 35;
yOutPos = 465;
}
function goGrowing() {
clearInterval(hungerIntID);
stopRNDFeed();
var whiteSheep = com.game.GameZone(bazeClass).createWhiteSheep("WhiteSheep", com.game.GameZone(bazeClass).game_mc);
whiteSheep.scope._visible = false;
currState = "feed";
actionFuse = new com.mosesSupposes.fuse.Fuse();
actionFuse.__set__target(this);
actionFuse.push({func:"moveToPoint", args:[null, new flash.geom.Point(whiteSheep.scope._x, whiteSheep.scope._y)]});
actionFuse.push({command:"pause"});
actionFuse.push({func:"setCurrState", args:["grow"]});
actionFuse.push({func:"standAndWait"});
actionFuse.push({func:"stopRNDFeed"});
actionFuse.push({func:"growing", args:[whiteSheep]});
actionFuse.start();
}
function growing(sc) {
actionFuse.destroy();
actionFuse = new com.mosesSupposes.fuse.Fuse();
clearInterval(waitTimerID);
var arr = new Array();
arr.Sheep = 1;
com.game.GameZone(bazeClass).soldedObjArr.push(arr);
com.game.GameZone(bazeClass).checkLevelGoal();
com.game.GameZone(bazeClass).levContr.complete(0, com.game.GameZone(bazeClass).moneyEarned);
var tmpXML = new XML("<sheep/>");
Main.userProfile.addNewItems(tmpXML);
Main.userProfile.removeItem("lamb");
sc.scope._visible = true;
scope._visible = false;
com.mosesSupposes.fuse.ZigoEngine.doTween(sc.scope, "_brightness", 100, 0.6, "linear", 0.2, {scope:this, cycles:3, func:"growingDone", args:[sc]});
}
function growingDone(sc) {
com.mosesSupposes.fuse.ZigoEngine.doTween(sc.scope, "_brightness", 0, 0.1, "linear", 0, {scope:sc, func:"startAnimations"});
_destroy();
}
var iconArr = new Array("iconWaterBucket", "iconClover", "IconScissors");
}
Symbol 823 MovieClip [__Packages.com.game.pers.animals.Hare] Frame 0
class com.game.pers.animals.Hare extends com.game.pers.animals.Animals
{
var PERS_NAME, type, isGoToEat, isGoingOut, shotCounter, markedKeyPoint, keyPoint, hungerIntID, waitTimerID, waitInterval, reposeIntervID, mcBody, scope, skinObjList, skinIt, actionsXML, currState, actionFuse, stopRNDFeed, update, WAIT_TIME, getActionByXml, setPersOrientation, getPersOrientation, BODY_NODE_ID, pathMap, getTurnAnim, _endMoveX, _endMoveY, addAnimObj, resetTmID;
function Hare (scope, bazeClass) {
super(scope, bazeClass);
PERS_NAME = "hare_";
var node = com.data.GUIxml.getXML("getProperties", "hare");
type = "hare";
isGoToEat = false;
isGoingOut = false;
shotCounter = 0;
markedKeyPoint = 0;
keyPoint = new Array(new flash.geom.Point(0, 430), new flash.geom.Point(100, 380), new flash.geom.Point(300, 410), new flash.geom.Point(640, 410));
}
function pauseAnimations() {
super.pauseAnimations();
clearInterval(hungerIntID);
clearInterval(waitTimerID);
clearInterval(waitInterval);
clearInterval(reposeIntervID);
}
function create(node) {
mcBody = scope.createEmptyMovieClip("mcBody", com.game.pers.animals.Animals.BODY_DEF_DEPTH);
skinObjList = node.firstChild;
skinIt(node);
var myXML = node;
actionsXML = com.utils.XMLObjFinder.findNode(myXML, "actions");
shotCounter = 0;
isGoToEat = false;
isGoingOut = false;
var persDeb = scope.attachMovie("PersCreator", "PersCreator", scope.getNextHighestDepth());
addHendlers(mcBody);
}
function startAnimations() {
gotoVegPlaces();
}
function shotRun(point, fnc, dl) {
clearInterval(hungerIntID);
clearInterval(waitTimerID);
clearInterval(waitInterval);
clearInterval(reposeIntervID);
currState = "feed";
if (actionFuse.length) {
actionFuse.destroy();
}
actionFuse = new com.mosesSupposes.fuse.Fuse();
actionFuse.__set__target(this);
actionFuse.push({func:"moveToPoint", args:[null, point]});
actionFuse.push({command:"pause"});
actionFuse.push({func:"randomWait", args:[""]});
if (fnc) {
actionFuse.push({func:fnc, delay:dl || 0});
}
actionFuse.start();
}
function gotoVegPlaces() {
clearInterval(hungerIntID);
clearInterval(waitInterval);
clearInterval(reposeIntervID);
currState = "feed";
if (actionFuse.length) {
actionFuse.destroy();
}
actionFuse = new com.mosesSupposes.fuse.Fuse();
actionFuse.__set__target(this);
actionFuse.push({func:"moveToPoint", args:[null, new flash.geom.Point(490, 430)]});
actionFuse.push({command:"pause"});
actionFuse.push({func:"randomWait", args:[""]});
actionFuse.start();
}
function randomWait() {
clearInterval(waitInterval);
var place = checkFreeVeg();
if (!Boolean(place.result)) {
var feedType = "stand";
if (setAnimation(feedType)) {
waitInterval = setInterval(this, "randomWait", 1000);
} else {
waitInterval = setInterval(this, "randomWait", 1000);
}
} else {
currState = "feed";
setAnimation("stand");
waitInterval = setInterval(this, "hunger", 1500, flash.geom.Point(place.point));
}
}
function hunger(point) {
isGoToEat = true;
clearInterval(hungerIntID);
clearInterval(waitInterval);
clearInterval(reposeIntervID);
stopRNDFeed();
actionFuse = new com.mosesSupposes.fuse.Fuse();
actionFuse.__set__target(this);
actionFuse.label = "hunger";
actionFuse.push({func:"moveToPoint", args:[null, point]});
actionFuse.push({command:"pause"});
actionFuse.push({func:"setCurrState", args:["eat"]});
actionFuse.push({func:"standAndWait"});
actionFuse.push({func:"stopRNDFeed"});
actionFuse.push({func:"eat"});
actionFuse.start();
}
function eat() {
update(new XML(("<element name=\"body\" elementID=\"" + PERS_NAME) + "eat\" />").firstChild);
com.base.SoundPlayer.play("harechamp", 3);
waitTimerID = setInterval(this, "eatDone", WAIT_TIME);
}
function eatDone() {
isGoingOut = true;
checkFreeVeg().veg.removePlObj();
shotRun(new flash.geom.Point(0, 430), "_destroy", 0);
}
function repose(mc, path) {
currState = "feed";
setAnimation("stand");
if (!checkFreeVeg().result) {
reposeIntervID = setInterval(this, "shotRun", 1500, new flash.geom.Point(0, 430), "_destroy", 0);
} else {
reposeIntervID = setInterval(this, "nextPoint", 1500, mc, path, true);
}
}
function checkFreeVeg() {
var resMC = new Object();
var veg;
var pr;
var eatPosArr = new Array([410, 340], [447, 335], [444, 388], [486, 363], [474, 425], [525, 400]);
var i = 0;
while (i < 8) {
veg = com.game.places.VegPlace(com.game.GameZone.GAME_ZONE_CLASS.vegPlaceArr[i]);
if (int(veg.getPlacedObj().evolutionStage) >= 1) {
resMC.result = "true";
resMC.veg = veg;
resMC.point = new flash.geom.Point(eatPosArr[veg.placeID][0], eatPosArr[veg.placeID][1]);
return(resMC);
}
i++;
}
resMC.result = false;
isGoToEat = false;
return(resMC);
}
function setAnimation(nodeId) {
com.game.logic.DepthCtrl.callBack(this);
var curAct = getActionByXml(nodeId);
if (nodeId == "stand") {
setPersOrientation("right", "stand");
}
var srcName = (PERS_NAME + getPersOrientation(curAct));
var anim = com.data.GUIxml.getXML("animations", srcName);
if ((skinObjList.childNodes[BODY_NODE_ID].attributes.elementID != srcName) && (anim.firstChild.attributes.src)) {
skinObjList.childNodes[BODY_NODE_ID].attributes.elementID = srcName;
update(skinObjList.childNodes[BODY_NODE_ID]);
return(true);
}
return(false);
}
function nextPoint(mc, path, isReposed) {
if ((!checkFreeVeg().result) && (!isGoingOut)) {
isGoingOut = true;
shotRun(new flash.geom.Point(0, 430), "_destroy", 0);
return(false);
}
clearInterval(reposeIntervID);
com.game.logic.DepthCtrl.callBack(this);
var nextFunc;
mc.i++;
if (((((mc.i != 5) && (mc.i != 10)) && (mc.i != 15)) || (isReposed)) || (isGoingOut && (mc.i != 15))) {
var xPos = (pathMap.XConvertToLocal(path[mc.i][1]) + (com.game.logic.AStarMap.CELL_SIZE / 2));
var yPos = (pathMap.YConvertToLocal(path[mc.i][0]) + (com.game.logic.AStarMap.CELL_SIZE / 2));
var point = (new flash.geom.Point(xPos, yPos));
getTurnAnim(point);
if (mc.i < (path.length - 1)) {
nextFunc = "nextPoint";
point = new flash.geom.Point(xPos, yPos);
getTurnAnim(point);
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_x", point.x, 0.3, com.mosesSupposes.fuse.PennerEasing.linear, 0);
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_y", point.y, 0.3, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:nextFunc, args:[mc, path]});
} else {
nextFunc = "moveIsDone";
point = new flash.geom.Point(_endMoveX, _endMoveY);
getTurnAnim(point);
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_x", _endMoveX || (point.x), 0.3, com.mosesSupposes.fuse.PennerEasing.linear, 0);
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_y", _endMoveY || (point.y), 0.3, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:nextFunc, args:mc});
}
} else {
repose(mc, path);
}
return(true);
}
function addHendlers(link) {
link.enabled = true;
link.useHandCursor = true;
link.onRollOver = (link.onRelease = (link.onReleaseOutside = mx.utils.Delegate.create(this, onRollOver)));
link.onRollOut = mx.utils.Delegate.create(this, onRollOut);
link.onRelease = mx.utils.Delegate.create(this, onRelease);
}
function removeHendlers(link) {
link.useHandCursor = false;
link.onRollOver = mx.utils.Delegate.create(this, null);
link.onRollOut = mx.utils.Delegate.create(this, null);
link.onPress = mx.utils.Delegate.create(this, null);
link.onRelease = mx.utils.Delegate.create(this, null);
link.onReleaseOutside = mx.utils.Delegate.create(this, null);
}
function applyOverEffect(color) {
var color = (color || 10223499);
var myBlur = (new flash.filters.GlowFilter(color, 0.9, 3, 3, 20, 1, false, false));
return(myBlur);
}
function onRollOver() {
var filterArray = new Array();
filterArray.push(applyOverEffect(16744576));
mcBody.filters = filterArray;
}
function onRollOut() {
mcBody.filters = [];
}
function onRelease() {
com.base.SoundPlayer.stopSound("harechamp");
var node = com.data.GUIxml.getXML("animations", "dust").firstChild;
var mc = addAnimObj(scope, node);
mc.playOnce();
mc._visible = true;
com.base.SoundPlayer.play("WreckerHit");
shotCounter++;
clearInterval(resetTmID);
resetTmID = setInterval(this, "resetShTimer", 2000);
keyPoint[shotCounter];
if (!isGoingOut) {
markedKeyPoint = 0;
var i = keyPoint.length;
while (i > 0) {
if (scope._x > flash.geom.Point(keyPoint[i]).x) {
markedKeyPoint = i || 0;
break;
}
i--;
}
var backToKeyPos;
if ((markedKeyPoint > 1) && (shotCounter > 1)) {
backToKeyPos = (markedKeyPoint - shotCounter) + 1;
} else {
backToKeyPos = markedKeyPoint;
}
if (backToKeyPos == 0) {
shotRun(keyPoint[backToKeyPos], "_destroy", 0);
isGoingOut = true;
} else {
shotRun(keyPoint[backToKeyPos], "gotoVegPlaces", 2);
}
}
}
function resetShTimer() {
clearInterval(resetTmID);
shotCounter = 0;
}
function getFreeRndPoint() {
var startX = pathMap.XConvertToLocal(0);
var endX = startX;
var startY = pathMap.YConvertToLocal(0);
var endY = pathMap.YConvertToLocal(pathMap.map.length - 2);
var rndX;
var rndY;
var p1;
var p2;
var prov;
do {
if (pathMap.map[p1][p2] == 1) {
break;
}
rndX = startX + random(endX - startX);
rndY = startY + random(endY - startY);
p1 = pathMap.XConvertToMap(rndX);
p2 = pathMap.YConvertToMap(rndY);
prov = pathMap.map[p2][p1];
} while (prov != 1);
pathMap.showPath([[p2, p1]]);
var point = (new flash.geom.Point(rndX, rndY));
return(point);
}
function _destroy() {
clearInterval(reposeIntervID);
clearInterval(resetTmID);
super._destroy();
}
}
Symbol 824 MovieClip [__Packages.com.game.places.WaterPlace] Frame 0
class com.game.places.WaterPlace extends com.game.places.Place
{
var posArr, markCount, markerScope, scope, mc_markerArr, maxObjInPlace, objPlacedIn, checkObjToPlace, typesArr, objCounter, upgrade, objArr, actionList, markerType, mc_marker;
function WaterPlace (link) {
super(link);
posArr = new Array();
posArr[1] = new Array([0, 0]);
posArr[2] = new Array([-4, -8], [4, 7]);
markCount = 0;
markerScope = scope;
mc_markerArr = new Array();
}
function addObjToPlace(node, sc) {
if ((objPlacedIn.childNodes.length < maxObjInPlace) && (checkObjToPlace(typesArr, node.attributes.objName))) {
objCounter++;
objPlacedIn.appendChild(node);
var x = (int(node.attributes.xPos) + posArr[upgrade][objCounter - 1][0]);
var y = (int(node.attributes.yPos) + posArr[upgrade][objCounter - 1][1]);
node.attributes.xPos = x;
node.attributes.yPos = y;
node.attributes.layer = 10 + objCounter;
var tmp = com.utils.ObjFactory.addObj(node, sc || (scope));
tmp._name = tmp._name + objCounter;
node.attributes.ID = node.attributes.ID + objCounter;
objArr[node.attributes.ID] = tmp;
if (tmp) {
}
} else {
return(false);
}
return(true);
}
function getObjAction() {
var result;
if (objCounter == 0) {
result = actionList[1];
} else {
result = actionList[0];
}
return(result);
}
function addMarker(command) {
var m_posArr = new Array();
m_posArr[1] = new Array([0, 0]);
m_posArr[2] = new Array([12, 20], [-12, -10]);
if (markCount < maxObjInPlace) {
var w = (m_posArr[upgrade][markCount][0] + 60);
var h = m_posArr[upgrade][markCount][1];
var node = com.data.GUIxml.getXML("getGui", markerType).firstChild;
var tt = (int(node.attributes.layer) + markCount);
node.attributes.layer = tt;
mc_marker = com.utils.ObjFactory.addObj(node, markerScope);
mc_marker._x = (w - mc_marker._width) / 2;
mc_marker._y = (h - mc_marker._height) / 2;
mc_markerArr.push(mc_marker);
markCount++;
}
}
function removeMarker() {
if (markCount > 0) {
var mc = MovieClip(mc_markerArr.pop());
mc.removeMovieClip();
markCount--;
}
}
function _destroy() {
}
}
Symbol 825 MovieClip [__Packages.com.game.places.Trash] Frame 0
class com.game.places.Trash extends com.game.places.Place
{
var animArr, eatAnimArr, trashF, addAnimObj, hideInt, currAnim, scope, mc_marker;
function Trash (link) {
super(link);
animArr = new Array();
eatAnimArr = new Array("PigEat", "PigDiveDown", "PigDiveUp", "PigTail_Left");
}
function create(node, link) {
super.create(node, link);
cacheAnimation();
}
function addObjToPlace(node) {
trashObj();
return(true);
}
function trashObj() {
trashF = new com.mosesSupposes.fuse.Fuse();
trashF.label = "PigEat";
trashF.__set__target(this);
trashF.push({func:"playAnim", args:[eatAnimArr[0]]});
trashF.push({func:"hideDef", delay:0.1});
trashF.push({func:"playAnim", delay:0.4, args:[eatAnimArr[1]]});
trashF.push({func:"playAnim", delay:0.5, args:[eatAnimArr[2]]});
trashF.push({func:"showDefault", delay:0.5, args:[eatAnimArr[3]]});
trashF.start();
}
function cacheAnimation() {
var i = 0;
var node = null;
var anim;
var name;
var i = 0;
while (i < eatAnimArr.length) {
name = eatAnimArr[i];
node = com.data.GUIxml.getXML("animations", name).firstChild;
animArr[name] = addAnimObj(node);
animArr[name].stop();
i++;
}
}
function hideOldAnim() {
clearInterval(hideInt);
var name;
var i = 0;
while (i < eatAnimArr.length) {
name = eatAnimArr[i];
if (currAnim != animArr[name]) {
animArr[name].stop();
animArr[name]._visible = false;
}
i++;
}
}
function hideDef() {
scope.mcAnim_PigTail_Left._visible = false;
}
function playAnim(nName) {
clearInterval(hideInt);
hideInt = setInterval(this, "hideOldAnim", 10);
currAnim = animArr[nName];
currAnim._visible = true;
currAnim.currFrame = 1;
currAnim.playOnce();
}
function showDefault(nName) {
currAnim.removeMovieClip();
scope.mcAnim_PigTail_Left._visible = true;
}
function addMarker(command) {
super.addMarker(command);
mc_marker._y = 0;
}
function _destroy() {
trashF.stop();
trashF.destroy();
}
}
Symbol 826 MovieClip [__Packages.com.utils.Fx] Frame 0
class com.utils.Fx
{
static var bdArr;
function Fx () {
}
static function CreateTrailToPoint(parentmc, fly_from, fly_to, head_mc_name, trail_mc_name) {
if (bdArr == undefined) {
bdArr = new Array();
}
var d = parentmc.getNextHighestDepth();
if (bdArr[head_mc_name] == undefined) {
var head_bdata = flash.display.BitmapData.loadBitmap(head_mc_name);
bdArr[head_mc_name] = head_bdata;
} else {
var head_bdata = bdArr[head_mc_name];
}
if (bdArr[trail_mc_name] == undefined) {
var trail_bdata = flash.display.BitmapData.loadBitmap(trail_mc_name);
bdArr[trail_mc_name] = trail_bdata;
} else {
var trail_bdata = bdArr[trail_mc_name];
}
var head_mc = parentmc.createEmptyMovieClip(head_mc_name + d, d);
head_mc.attachBitmap(head_bdata, head_mc.getNextHighestDepth());
head_mc.direct = Math.atan2(ANIM_TRAIL_START_DIRECT_Y, ANIM_TRAIL_START_DIRECT_X);
head_mc._x = fly_from.x;
head_mc._y = fly_from.y;
head_mc.fly_to = fly_to;
head_mc.trail_mc_name = trail_mc_name;
head_mc.speed = ANIM_TRAIL_START_SPEED;
head_mc.fly_distance = 0;
head_mc.trail_distance = 0;
head_mc.finish_phase = 0;
head_mc.ang_change_summ = 0;
head_mc.onEnterFrame = function () {
if (this.finish_phase > 0) {
if (this.finish_phase == 1) {
this._x = fly_to.x;
this._y = fly_to.y;
this._alpha = 60;
this.finish_phase = 2;
} else if (this.finish_phase == 2) {
this.finish_phase = 3;
MovieClip(this).removeMovieClip();
this = undefined;
}
return(undefined);
}
var targ_ang = Math.atan2(this.fly_to.y - this._y, this.fly_to.x - this._x);
var diff_ang = (targ_ang - this.direct);
if (Math.abs(diff_ang) > Math.PI) {
diff_ang = ((diff_ang > 0) ? -1 : 1) * ((Math.PI*2) - Math.abs(diff_ang));
}
this.direct = this.direct + (diff_ang * com.utils.Fx.ANIM_TRAIL_ANGLE_CHANGE_COEFF);
if (this.direct > Math.PI) {
this.direct = this.direct - (Math.PI*2);
} else if (this.direct < -3.14159265358979) {
this.direct = this.direct + (Math.PI*2);
}
var targ_dist1 = Math.sqrt(((this.fly_to.x - this._x) * (this.fly_to.x - this._x)) + ((this.fly_to.y - this._y) * (this.fly_to.y - this._y)));
if (this._prev_time == undefined) {
this._prev_time = getTimer();
}
var dtime = (getTimer() - this._prev_time);
this._prev_time = getTimer();
var speed2 = ((this.speed * ((Math.PI*2) - Math.abs(diff_ang * com.utils.Fx.ANIM_TRAIL_ANGLE_CHANGE_COEFF_FOR_SPEED))) / (Math.PI*2));
var fly_length = ((speed2 * dtime) / 1000);
this._x = this._x + (Math.cos(this.direct) * fly_length);
this._y = this._y + (Math.sin(this.direct) * fly_length);
this.fly_distance = this.fly_distance + fly_length;
this.trail_distance = this.trail_distance + fly_length;
this.ang_change_summ = this.ang_change_summ + Math.abs(diff_ang);
if (this.trail_distance > com.utils.Fx.ANIM_TRAIL_TRAIL_EACH_DISTANCE) {
this.trail_distance = this.trail_distance - com.utils.Fx.ANIM_TRAIL_TRAIL_EACH_DISTANCE;
var td = MovieClip(this)._parent.getNextHighestDepth();
var tmc = MovieClip(this)._parent.createEmptyMovieClip(this.trail_mc_name + td, td);
tmc.attachBitmap(trail_bdata, 0);
tmc._x = this._x - (Math.cos(this.direct) * com.utils.Fx.ANIM_TRAIL_TRAIL_DIST_DELAY);
tmc._y = this._y - (Math.sin(this.direct) * com.utils.Fx.ANIM_TRAIL_TRAIL_DIST_DELAY);
var trail_to_x = (tmc._x + (Math.cos(this.direct) * fly_length));
var trail_to_y = (tmc._y + (Math.sin(this.direct) * fly_length));
com.mosesSupposes.fuse.ZigoEngine.doTween(tmc, "_alpha,_x,_y", [0, trail_to_x, trail_to_y], com.utils.Fx.ANIM_TRAIL_TRAIL_LIFE_TIME, mx.transitions.easing.None.easeNone, 0, {scope:com.utils.Fx, func:"RemoveMeCallback", args:tmc});
}
var targ_dist2 = Math.sqrt(((this.fly_to.x - this._x) * (this.fly_to.x - this._x)) + ((this.fly_to.y - this._y) * (this.fly_to.y - this._y)));
if (((targ_dist2 > targ_dist1) && (targ_dist2 < (fly_length * 2.5))) || (this.ang_change_summ > 30)) {
this.finish_phase = 1;
}
};
}
static function CreateGrowUp(parentmc, fly_from, mc_name, count_multiply) {
var pieces = (ANIM_GROW_PIECES + ((ANIM_GROW_PIECES * count_multiply) / 2));
var i = 0;
while (i < pieces) {
var d = parentmc.getNextHighestDepth();
var mc = parentmc.attachMovie(mc_name, mc_name + d, d);
mc._x = fly_from.x + (ANIM_GROW_WIDTH * (Math.random() - 0.5));
mc._y = fly_from.y + (ANIM_GROW_HEIGHT * (Math.random() - 0.5));
mc._xscale = (mc._yscale = ANIM_GROW_PIECE_SIZE_FROM + ((ANIM_GROW_PIECE_SIZE_TO - ANIM_GROW_PIECE_SIZE_FROM) * Math.random()));
mc.speed = ANIM_GROW_MIN_SPEED + (ANIM_GROW_SPEED_DELTA * Math.random());
var life_time = (ANIM_GROW_LIFETIME_FROM + (ANIM_GROW_LIFETIME_DELTA * Math.random()));
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_y,_alpha", [mc._y - mc.speed, 0], life_time, mx.transitions.easing.Regular.easeIn, 0, {scope:com.utils.Fx, func:"RemoveMeCallback", args:mc});
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_x", mc._x + (10 * ((Math.random() > 0.5) ? 1 : -1)), life_time, mx.transitions.easing.Elastic.easeIn, 0);
i++;
}
}
static function CreateParticlesEmmiterUp(parentmc, fly_from, mc_name) {
var d = parentmc.getNextHighestDepth();
var head_mc = parentmc.createEmptyMovieClip("particlesEmmiterUp" + d, d);
head_mc._x = fly_from.x;
head_mc._y = fly_from.y;
head_mc.EmmitCounter = 0;
head_mc.ParticleMCName = mc_name;
head_mc.onEnterFrame = function () {
if (this.EmmitCounter >= com.utils.Fx.EMIT_EACH_FRAME) {
var td = MovieClip(this).getNextHighestDepth();
var tmc = MovieClip(this).attachMovie(this.ParticleMCName, this.ParticleMCName + td, td);
tmc._y = 0;
tmc._x = ((-com.utils.Fx.EMIT_WIDTH) / 2) + (Math.random() * com.utils.Fx.EMIT_WIDTH);
var life_time = (com.utils.Fx.EMIT_LIFE_TIME + (Math.random() * com.utils.Fx.EMIT_LIFE_TIME_DELTA));
var to_y = (tmc._y - (com.utils.Fx.EMIT_GROW_UP_FROM + (Math.random() * com.utils.Fx.EMIT_GROW_UP_DELTA)));
com.mosesSupposes.fuse.ZigoEngine.doTween(tmc, "_y,_alpha", [to_y, 0], life_time, mx.transitions.easing.Regular.easeIn, 0, {scope:com.utils.Fx, func:"RemoveMeCallback", args:tmc});
this.EmmitCounter = 0;
}
this.EmmitCounter++;
};
head_mc.Terminate = function () {
this.removeMovieClip();
this = undefined;
};
return(head_mc);
}
static function PlayAppearAnimation(target) {
var f = (new com.mosesSupposes.fuse.Fuse());
f.__set__target(target);
f.push({delay:0.25});
f.push({label:"appear", start_alpha:0, time:2.3, ease:"easeOutBack", trigger:0.5});
f.push({alpha:10, scale:104, ease:"easeInOutQuad", cycles:2, time:0.5, delay:0.1});
f.push({alpha:100, time:0.1});
f.start(true);
}
static function RemoveMeCallback(mc) {
mc.removeMovieClip();
mc = undefined;
}
static var ANIM_TRAIL_START_DIRECT_X = 2;
static var ANIM_TRAIL_START_DIRECT_Y = -20;
static var ANIM_TRAIL_START_SPEED = 350;
static var ANIM_TRAIL_TRAIL_EACH_DISTANCE = 50;
static var ANIM_TRAIL_TRAIL_DIST_DELAY = 50;
static var ANIM_TRAIL_TRAIL_LIFE_TIME = 0.3;
static var ANIM_TRAIL_ANGLE_CHANGE_COEFF = 0.14;
static var ANIM_TRAIL_ANGLE_CHANGE_COEFF_FOR_SPEED = 1;
static var ANIM_GROW_PIECES = 4;
static var ANIM_GROW_PIECE_SIZE_FROM = 60;
static var ANIM_GROW_PIECE_SIZE_TO = 100;
static var ANIM_GROW_WIDTH = 50;
static var ANIM_GROW_HEIGHT = 20;
static var ANIM_GROW_SPEED_DELTA = 15;
static var ANIM_GROW_MIN_SPEED = 22;
static var ANIM_GROW_LIFETIME_FROM = 0.4;
static var ANIM_GROW_LIFETIME_DELTA = 0.5;
static var EMIT_EACH_FRAME = 1;
static var EMIT_WIDTH = 30;
static var EMIT_GROW_UP_FROM = 10;
static var EMIT_GROW_UP_DELTA = 10;
static var EMIT_LIFE_TIME = 1;
static var EMIT_LIFE_TIME_DELTA = 1;
}
Symbol 827 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None
{
function None () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
}
Symbol 828 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0
class mx.transitions.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
if (((t = t / d)) == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var s = (p / 4);
} else {
var s = ((p / (Math.PI*2)) * Math.asin(c / a));
}
return((-((a * Math.pow(2, 10 * ((t = t - 1)))) * Math.sin((((t * d) - s) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
if (((t = t / d)) == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var s = (p / 4);
} else {
var s = ((p / (Math.PI*2)) * Math.asin(c / a));
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - s) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
if (((t = t / (d / 2))) == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var s = (p / 4);
} else {
var s = ((p / (Math.PI*2)) * Math.asin(c / a));
}
if (t < 1) {
return((-0.5 * ((a * Math.pow(2, 10 * ((t = t - 1)))) * Math.sin((((t * d) - s) * (Math.PI*2)) / p))) + b);
}
return(((((a * Math.pow(2, -10 * ((t = t - 1)))) * Math.sin((((t * d) - s) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static var version = "1.1.0.52";
}
Symbol 829 MovieClip [__Packages.com.game.Map] Frame 0
class com.game.Map extends MovieClip
{
var srcXML, link, createEmptyMovieClip, getNextHighestDepth, removeMovieClip, _brightness;
function Map () {
super();
brightness = (0);
}
function createByXML(xml, link) {
srcXML = xml;
this.link = link;
if ((Main.userProfile.__get__level() == 10) && (Main.userProfile.__get__levels() > 10)) {
Main.userProfile.__set__level(11);
Main.updADS(_root, Main.userProfile.__get__level(), Main.reloadGame);
} else {
init();
}
}
function init() {
drawMap();
}
function updateMapDate() {
drawMap();
}
function drawMap() {
for (var i in drawMap) {
}
activOpenedLevels();
var node;
node = srcXML.firstChild;
var itemsMax = srcXML.firstChild.childNodes.length;
var map_mc = createEmptyMovieClip("map_mc", node.attributes.layer || (getNextHighestDepth()));
var map = (new com.game.places.Place(map_mc));
map.addObj(node);
var animNode;
var itemFocusManager = (new com.utils.FocusManager());
var i = 0;
while (i < itemsMax) {
node = srcXML.firstChild.childNodes[i];
switch (node.nodeName) {
case "Point" :
animNode = com.data.GUIxml.getXML("animations", node.attributes.src);
if (animNode.childNodes.length) {
var star = (new com.game.MapLevelItem(map_mc));
star.isBonusGame = Boolean(node.attributes.isBonus);
star.create(animNode.firstChild);
star.scope._x = node.attributes.xPos;
star.scope._y = node.attributes.yPos;
star.level = int(i + 1);
if (Main.userProfile.__get__levels() == (i + 1)) {
star.activate();
}
star.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
itemFocusManager.registerObj(star);
} else {
var place = (new com.game.places.Place());
place.create(node, map_mc);
place.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
}
break;
case "Button" :
var newBtn = (new com.base.GameButton());
newBtn.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
newBtn.create(node, map_mc);
}
i++;
}
}
function gotoRootMenu() {
_root.gotoAndStop(4);
_destroy();
}
function loadLevel() {
hide();
}
function afterHide() {
Main.userProfile.saveCurrProfile();
if (((Main.userProfile.__get__level() != 1) && (Main.userProfile.__get__level() != 5)) && (Main.userProfile.__get__level() != 10)) {
var tmp = (new com.dialogs.market.Market(_root));
} else if ((Main.userProfile.__get__level() != 5) && (Main.userProfile.__get__level() != 10)) {
Main.updADS(_root, Main.userProfile.__get__level(), _root.Game.playGame);
} else {
Main.updADS(_root, Main.userProfile.__get__level(), _root.Game.playMiniGame);
}
_destroy();
}
function show() {
com.mosesSupposes.fuse.ZigoEngine.doTween(this, ["brightness"], [0], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0);
}
function hide() {
com.mosesSupposes.fuse.ZigoEngine.doTween(this, ["brightness"], [-100], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"afterHide"});
}
function clickHandler(eventObj) {
switch (eventObj.event) {
case "click" :
this[eventObj.target.action].call(this, link);
return;
default :
}
}
function _destroy() {
com.mosesSupposes.fuse.ZigoEngine.removeTween(this);
removeMovieClip();
delete this;
}
function activOpenedLevels() {
var levCount = Main.userProfile.__get__levels();
var node;
var i = 0;
while (i < levCount) {
node = srcXML.firstChild.childNodes[i];
if (node.attributes.lock != "true") {
if (node.attributes.isBonus == "true") {
node.attributes.src = "MagentaBonusPoint";
node.attributes.isBonus = "true";
} else if (node.attributes.src != "RedPoint") {
node.attributes.src = "RedPoint";
}
}
i++;
}
}
function get brightness() {
return(_brightness);
}
function set brightness(value) {
var my_color = new Color(this);
setTint(my_color, 0, 0, 0, Math.abs(value));
_brightness = value;
//return(brightness);
}
function setTint(color, r, g, b, amount) {
var percent = (100 - amount);
var trans = new Object();
trans.ra = (trans.ga = (trans.ba = percent));
var ratio = (amount / 100);
trans.rb = r * ratio;
trans.gb = g * ratio;
trans.bb = b * ratio;
color.setTransform(trans);
}
}
Symbol 830 MovieClip [__Packages.com.game.MapLevelItem] Frame 0
class com.game.MapLevelItem
{
var scope, node, action, isPushed, __get__setSelection, dispatchEvent, level, mcAnimatedIco, mcStaticIco;
function MapLevelItem (scope) {
mx.events.EventDispatcher.initialize(this);
this.scope = scope.createEmptyMovieClip((scope._name + "Cell") + scope.getNextHighestDepth(), scope.getNextHighestDepth());
this.scope.scope = this;
this.scope.onPress = mx.utils.Delegate.create(this, onClickHandler);
}
function create(node) {
this.node = node;
action = node.attributes.action;
showStatIco();
}
function set setSelection(flag) {
isPushed = flag;
//return(__get__setSelection());
}
function get getSelection() {
return(isPushed);
}
function onClickHandler() {
if (!isPushed) {
var tmp = action;
action = "changeFocus";
dispatchEvent({type:"action", event:"click"});
activate();
action = tmp;
} else {
dispatchEvent({type:"action", event:"click"});
}
}
function activate() {
Main.userProfile.__set__level(level);
setSelection = (true);
showAnimIco();
}
function showAnimIco() {
mcAnimatedIco = scope.createEmptyMovieClip("mcAnimatedIco", ANIM_ICO_DEPTH);
addAnimObj(mcAnimatedIco, node.attributes.src);
}
function showStatIco() {
mcStaticIco = scope.createEmptyMovieClip("mcStaticIco", STAT_ICO_DEPTH);
if (!isBonusGame) {
var node = com.data.GUIxml.getXML("getGui", "BluePoint").firstChild;
addObj(node, mcStaticIco);
} else {
var anim = addAnimObj(mcStaticIco, "MagentaBonusPoint");
anim._destroy();
anim.__set__currFrame(1);
}
}
function deselect() {
showStatIco();
setSelection = (false);
}
function addObj(node, scope) {
var tmp = scope.createEmptyMovieClip(node.attributes.ID, node.attributes.layer || (scope.getNextHighestDepth()));
var src = (node.attributes.src || (node.attributes.ID));
var bmp = flash.display.BitmapData.loadBitmap(src);
tmp.attachBitmap(bmp, node.attributes.layer || (tmp.getNextHighestDepth()), "auto", true);
tmp._x = node.attributes.xPos || 0;
tmp._y = node.attributes.yPos || 0;
return(tmp);
}
function addAnimObj(mc, src) {
var animNode = XML(com.data.GUIxml.getXML("animations", src)).firstChild;
var mcAnim = com.base.anim.SimpleAnim(mc.attachMovie("SimpleAnim", "overAnim", mc.getNextHighestDepth()));
mcAnim.createByXML(animNode, mc);
mcAnim.nextCycle();
return(mcAnim);
}
function setPos(xpos, ypos) {
scope._x = xpos;
scope._y = ypos;
}
static var STAT_ICO_DEPTH = 10;
static var ANIM_ICO_DEPTH = 10;
var isBonusGame = false;
}
Symbol 831 MovieClip [__Packages.com.dialogs.market.Market] Frame 0
class com.dialogs.market.Market
{
var scope, mcMoneyInd, playBut, backBut, bayBut, cellFocusManager, resPanel, upgrPanel, propTab, activeCell, mcDescr, _brightness;
function Market (scope) {
mx.events.EventDispatcher.initialize(this);
this.scope = scope.createEmptyMovieClip("Market", 111);
this.scope.scope = this;
brightness = (-100);
this.scope._visible = false;
com.dialogs.market.Recommended.count = 0;
create();
show();
}
function onClickHandler(e) {
switch (e.event) {
case "click" :
this[e.target.action].call(this, e.target);
return;
case "updateMoney" :
var moneyCount = Main.userProfile.getMoney();
mcMoneyInd.moneyTitle.htmlText = ("<p align=\"center\"><font color=\"#FF0000\" size=\"14\"><b>$" + moneyCount) + "</b></font></p>";
return;
}
}
function create() {
var mmcMini = showMinigameBG();
mmcMini._x = 90;
mmcMini._y = 40;
mmcMini._width = 500;
mmcMini._height = 360;
createBG("MarketBack");
var tmpBut;
playBut = createBut("ButMarkPlay");
playBut.addEventListener("action", mx.utils.Delegate.create(this, onClickHandler));
backBut = createBut("ButMarkBack");
backBut.addEventListener("action", mx.utils.Delegate.create(this, onClickHandler));
backBut.scope._visible = false;
tmpBut = createBut("ButMarkSell");
tmpBut.disable();
tmpBut.addEventListener("action", mx.utils.Delegate.create(this, onClickHandler));
bayBut = createBut("ButMarkBuy");
bayBut.disable();
bayBut.addEventListener("action", mx.utils.Delegate.create(this, onClickHandler));
cellFocusManager = new com.utils.FocusManager();
resPanel = new com.dialogs.market.CellControl(scope);
var node = com.data.GUIxml.getXML("getGui", "MarketResList").firstChild;
resPanel.addEventListener("action", mx.utils.Delegate.create(this, onClickHandler));
resPanel.create(node, cellFocusManager);
upgrPanel = new com.dialogs.market.CellControl(scope);
node = com.data.GUIxml.getXML("getGui", "MarketUpgrList").firstChild;
upgrPanel.addEventListener("action", mx.utils.Delegate.create(this, onClickHandler));
upgrPanel.create(node, cellFocusManager);
upgrPanel.scope._x = 510;
if (!resPanel.have_recommended) {
unlockCell();
}
createMoneyIndicator();
createPropertiesTab();
}
function createPropertiesTab() {
propTab = new com.dialogs.market.Properties(scope);
propTab.create(214, 390, 212, 80);
}
function createMoneyIndicator() {
mcMoneyInd = scope.createEmptyMovieClip("mcMoneyInd", scope.getNextHighestDepth());
var mcMoneyIndTextF = mcMoneyInd.createTextField("moneyTitle", 1, 6, 4, 90, 25);
var moneyCount = Main.userProfile.getMoney();
mcMoneyIndTextF.html = true;
mcMoneyIndTextF.selectable = false;
mcMoneyIndTextF.htmlText = ("<p align=\"center\"><font color=\"#FF0000\" size=\"14\"><b>$" + moneyCount) + "</b></font></p>";
com.utils.Filters.applingTextFilter(mcMoneyIndTextF);
mcMoneyInd._x = 108;
mcMoneyInd._y = 420;
Main.userProfile.addEventListener("action", mx.utils.Delegate.create(this, onClickHandler));
}
function bayObj() {
var objName = activeCell.objName;
objName = objName.toLowerCase();
unlockCell();
activeCell.bayObj();
var tmpXML = new XML(("<" + objName) + "/>");
Main.userProfile.addNewItems(tmpXML);
com.base.SoundPlayer.play("MarketBuy");
}
function enableBayBut(target) {
activeCell = target.activeCell;
bayBut.enable();
}
function enablePlayBut(target) {
playBut.enable();
playBut.scope._visible = true;
backBut.scope._visible = false;
}
function disablePlayBut(target) {
playBut.disable();
playBut.scope._visible = false;
backBut.scope._visible = true;
}
function unlockCell() {
upgrPanel.unlockCell();
}
function disableBayBut() {
activeCell = null;
bayBut.disable();
}
function showDescription(target) {
if ((!cellFocusManager.__get__objInFocus()) || (cellFocusManager.__get__objInFocus().objName == target.activeCellName)) {
com.mosesSupposes.fuse.ZigoEngine.ffTween(mcDescr);
mcDescr = createBG("DescriptionTab");
var descrTitle = mcDescr.createTextField("descrTitle", 601, 6, 4, 370, 50);
var objName = target.activeCellName;
var titleText = com.data.Strings.getXML(("MARKET " + objName.toUpperCase()) + " NAME").attributes.text;
var descrText = com.data.Strings.getXML(("MARKET " + objName.toUpperCase()) + " DESCRIPTION").attributes.text;
descrTitle.html = true;
descrTitle.wordWrap = true;
descrTitle.embedFonts = true;
descrTitle.multiline = true;
descrTitle.selectable = false;
descrTitle.htmlText = ("<p align=\"center\"><font face=\"titleFont\" color=\"#F42B06\"><b>\"" + titleText) + "\"</b></font></p>";
descrTitle.htmlText = descrTitle.htmlText + (("<p align=\"left\"><font face=\"titleFont\" color=\"#6B2E22\"><b>" + descrText) + "</b></font></p>");
var myDropFilter = (new flash.filters.DropShadowFilter());
myDropFilter.alpha = 10;
myDropFilter.distance = 1;
myDropFilter.strength = 0.34;
myDropFilter.blurX = (myDropFilter.blurY = 0);
var myFilters = [];
myFilters.push(myDropFilter);
descrTitle.filters = myFilters;
}
}
function hideDescription() {
com.mosesSupposes.fuse.ZigoEngine.doTween(mcDescr, ["_alpha"], 0, 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0.5, {scope:mcDescr, func:function () {
this.removeMovieClip();
}});
}
function createBut(src) {
var node = com.data.GUIxml.getXML("getGui", src).firstChild;
var but = (new com.base.GameButton());
but.create(node, scope);
return(but);
}
function createBG(src) {
var node = com.data.GUIxml.getXML("getGui", src).firstChild;
var mc = addObj(node, scope);
return(mc);
}
function showMinigameBG() {
var mc_MiniGameBG = scope.createEmptyMovieClip("mc_MiniGameBG", scope.getNextHighestDepth());
var srcXML = com.data.GUIxml.getXML("game");
var itemsMax = srcXML.firstChild.childNodes.length;
var node;
var i = 0;
while (i < itemsMax) {
node = srcXML.firstChild.childNodes[i];
switch (node.nodeName) {
case "Place" :
createPlace(node, mc_MiniGameBG);
break;
case "GrainPlace" :
createGrainPlace(node, mc_MiniGameBG);
break;
case "VegPlaces" :
createVegPlace(node, mc_MiniGameBG);
}
i++;
}
return(mc_MiniGameBG);
}
function createPlace(node, conteiner) {
node.attributes.action = "";
var place = (new com.game.places.Place());
place.create(node, conteiner);
}
function createGrainPlace(node, conteiner) {
node.attributes.action = "";
var place = (new com.game.places.GrainPlace());
place.create(node, conteiner);
}
function createVegPlace(node, conteiner) {
var layer = node.attributes.layer;
var vegPlaces = conteiner.createEmptyMovieClip("vegPlaces", layer || (conteiner.getNextHighestDepth()));
vegPlaces._x = node.attributes.xPos;
vegPlaces._y = node.attributes.yPos;
var tmpNode = null;
var i = 0;
var id = 0;
while (i < node.childNodes.length) {
tmpNode = node.childNodes[i];
switch (tmpNode.nodeName) {
case "Place" :
var mcPlace = vegPlaces.createEmptyMovieClip("map_mc", tmpNode.attributes.layer || (vegPlaces.getNextHighestDepth()));
var vegPlace = (new com.game.places.Place(mcPlace));
vegPlace.addObj(tmpNode);
break;
case "VegPlace" :
var vegPlase = (new com.game.places.VegPlace());
vegPlase.create(tmpNode, vegPlaces);
vegPlase.removeHendlers();
vegPlase.placeID = id;
vegPlase.filterType = tmpNode.attributes.overFilter;
vegPlase.setImage(tmpNode.attributes.src);
id++;
}
i++;
}
}
function addObj(node, scope) {
var tmp = scope.createEmptyMovieClip(node.attributes.ID, node.attributes.layer || (scope.getNextHighestDepth()));
var src = (node.attributes.src || (node.attributes.ID));
var bmp = flash.display.BitmapData.loadBitmap(src);
tmp.attachBitmap(bmp, node.attributes.layer || (tmp.getNextHighestDepth()), "auto", true);
tmp._x = node.attributes.xPos || 0;
tmp._y = node.attributes.yPos || 0;
return(tmp);
}
function loadLevel() {
hide();
}
function gotoMap() {
com.mosesSupposes.fuse.ZigoEngine.doTween(this, ["brightness"], [-100], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"afterGotoMap"});
}
function afterGotoMap() {
com.mosesSupposes.fuse.ZigoEngine.doTween(Main.LINK_CLASS, ["kk"], 0, 0, com.mosesSupposes.fuse.PennerEasing.linear, 0.1, {func:"gotoMap"});
_destroy();
}
function show() {
scope._visible = true;
com.mosesSupposes.fuse.ZigoEngine.doTween(this, ["brightness"], [0], 1, com.mosesSupposes.fuse.PennerEasing.linear, 0);
}
function afterHide() {
Main.updADS(_root, Main.userProfile.__get__level(), _root.Game.playGame);
_destroy();
}
function hide() {
com.mosesSupposes.fuse.ZigoEngine.doTween(this, ["brightness"], [-100], 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"afterHide"});
}
function _destroy() {
resPanel._destroy();
upgrPanel._destroy();
com.mosesSupposes.fuse.ZigoEngine.removeTween(scope);
scope.removeMovieClip();
delete this;
}
function get brightness() {
return(_brightness);
}
function set brightness(value) {
var my_color = new Color(scope);
setTint(my_color, 0, 0, 0, Math.abs(value));
_brightness = value;
//return(brightness);
}
function setTint(color, r, g, b, amount) {
var percent = (100 - amount);
var trans = new Object();
trans.ra = (trans.ga = (trans.ba = percent));
var ratio = (amount / 100);
trans.rb = r * ratio;
trans.gb = g * ratio;
trans.bb = b * ratio;
color.setTransform(trans);
}
}
Symbol 832 MovieClip [__Packages.com.dialogs.market.ShopResCell] Frame 0
class com.dialogs.market.ShopResCell extends MovieClip
{
var scope, mcCellBg, mcPressMarker, mcSoldMarker, mcPrice, mcObjIcon, mcCellLocked, objName, hintTabLink, priceText, tipFormat, isPushed, __get__setSelection, _price, __get__setPrice, _locked, _waiting, action, dispatchEvent;
function ShopResCell (scope) {
super();
mx.events.EventDispatcher.initialize(this);
this.scope = scope.createEmptyMovieClip((scope._name + "Cell") + scope.getNextHighestDepth(), scope.getNextHighestDepth());
this.scope.scope = this;
this.scope.onPress = mx.utils.Delegate.create(this, onClickHandler);
this.scope.onRollOver = mx.utils.Delegate.create(this, onRollOverHandler);
this.scope.onRollOut = mx.utils.Delegate.create(this, onRollOutHandler);
this.scope.onReleaseOutside = mx.utils.Delegate.create(this, onRollOutHandler);
Main.userProfile.addEventListener("action", mx.utils.Delegate.create(this, onUpdateHandler));
mcCellBg = this.scope.createEmptyMovieClip("mcCellBg", CELL_DEPTH);
mcPressMarker = this.scope.createEmptyMovieClip("mcPressMarker", PRESS_MARKER_DEPTH);
mcSoldMarker = this.scope.createEmptyMovieClip("mcSoldMarker", SOLD_MARKER_DEPTH);
mcPrice = this.scope.createEmptyMovieClip("mcPrice", PRICE_DEPTH);
mcObjIcon = this.scope.createEmptyMovieClip("mcObjIcon", OBJ_ICON_DEPTH);
mcCellLocked = this.scope.createEmptyMovieClip("mcCellLocked", LOCK_ICON_DEPTH);
setSelection = (false);
}
function onUpdateHandler(e) {
if (!(e.event === "updateMoney")) {
} else if (!checkMoney()) {
cantSold();
}
}
function create(price, objName, money) {
createPriceTxt();
setPrice = (price);
this.objName = objName;
createNormalBG();
if (checkObjToBay(objName) && (checkMoney())) {
} else {
cantSold();
}
createSoldObjIcon(objName);
}
function addHintTab(obj) {
hintTabLink = obj;
}
function createSoldObjIcon(src) {
var node = com.data.GUIxml.getXML("getGui", src).firstChild;
com.utils.ObjFactory.addObj(node, mcObjIcon);
}
function createNormalBG() {
createBG("CellNormal", mcCellBg);
}
function createHighlightBG() {
createBG("CellHighlight", mcCellBg);
}
function createLockedBG() {
createBG("CellLockedGray", mcCellBg);
}
function createDisabledBG() {
createBG("CellLocked", mcCellBg);
}
function createBG(src, scope) {
var node = com.data.GUIxml.getXML("getGui", src).firstChild;
var mc = com.utils.ObjFactory.addObj(node, scope);
}
function createPriceTxt() {
var mc = mcPrice.attachMovie("CellPriceTxt", "CellPriceTxt", 0, {_y:59});
priceText = TextField(mc.priceText);
}
function createTipText(scope, txt) {
txtFormat();
var tipText = scope.createTextField("tipText", scope.getNextHighestDepth(), 20, 10, 200, 100);
tipText.selectable = false;
tipText.embedFonts = true;
tipText.autoSize = false;
tipText.multiline = true;
tipText.wordWrap = true;
tipText.text = txt;
tipText.setTextFormat(tipFormat);
}
function createLockedIco(src) {
var node = com.data.GUIxml.getXML("getGui", src).firstChild;
var mc = com.utils.ObjFactory.addObj(node, mcCellLocked);
}
function set setSelection(flag) {
isPushed = flag;
//return(__get__setSelection());
}
function get getSelection() {
return(isPushed);
}
function set setPrice(price) {
priceText.text = "$" + price;
_price = price;
//return(__get__setPrice());
}
function get getPrice() {
return(_price);
}
function get locked() {
return(_locked);
}
function set locked(value) {
_locked = value;
if (_locked) {
createLockedBG();
disableSoldObjIcon();
cantSold();
createLockedIco("CellLock");
}
//return(locked);
}
function disable() {
_disabled = true;
createDisabledBG();
disableSoldObjIcon();
cantSold();
}
function get waiting() {
return(_waiting);
}
function set waiting(value) {
_waiting = value;
if (_waiting) {
createLockedBG();
disableSoldObjIcon();
cantSold();
createLockedIco("CellLockWait");
} else {
mcCellBg.createEmptyMovieClip("trash", 2);
mcCellLocked.createEmptyMovieClip("trash", 0);
if (checkMoney()) {
canSold();
} else {
cantSold();
}
setSelection = (true);
}
//return(waiting);
}
function disableSoldObjIcon() {
var myFilter = (new ru.etcs.filters.ColorFilter(170, -60));
applyMcFilter(mcObjIcon, myFilter);
}
function enableSoldObjIcon() {
var myFilter = (new ru.etcs.filters.ColorFilter(0, 0));
applyMcFilter(mcObjIcon, myFilter);
}
function checkMoney() {
if (Main.userProfile.getMoney() >= getPrice) {
return(true);
}
return(false);
}
function checkObjToBay() {
return(true);
}
function onClickHandler() {
if (((((!isPushed) && (!locked)) && (!waiting)) && (checkMoney())) && (!_disabled)) {
action = "enableBayBut";
dispatchEvent({type:"action", event:"click"});
activateCell();
onRollOverHandler();
} else {
action = "disableBayBut";
dispatchEvent({type:"action", event:"click"});
deselect();
}
}
function onRollOverHandler() {
action = "showDescription";
dispatchEvent({type:"action", event:"over"});
action = "";
}
function onRollOutHandler() {
action = "hideDescription";
dispatchEvent({type:"action", event:"over"});
action = "";
}
function deselect() {
mcPressMarker.CellMarker.removeMovieClip();
if (!disable) {
createNormalBG();
}
setSelection = (false);
onRollOutHandler();
}
function activateCell() {
setSelection = (true);
mcSoldMarker.CellSoldTab.removeMovieClip();
createHighlightBG();
if (checkMoney()) {
enableSoldObjIcon();
}
mcPressMarker.attachMovie("CellMarker", "CellMarker", 0);
}
function addSoldTable() {
var node = com.data.GUIxml.getXML("getGui", "CellSoldTab").firstChild;
com.utils.ObjFactory.addObj(node, mcSoldMarker);
}
function cantSold() {
var format = new TextFormat();
format.color = 16724736 /* 0xFF3300 */;
priceText.setTextFormat(format);
priceText.filters = [];
com.utils.Filters.applingDropFilter(priceText, 1);
scope.useHandCursor = false;
disableSoldObjIcon();
}
function canSold() {
var format = new TextFormat();
format.color = 13209;
priceText.setTextFormat(format);
scope.useHandCursor = true;
enableSoldObjIcon();
}
function bayObj() {
if (hintTabLink) {
hintTabLink.hide();
}
Main.userProfile.setMoney(Main.userProfile.getMoney() - getPrice);
addSoldTable();
mcPressMarker.CellMarker.removeMovieClip();
createNormalBG();
disableSoldObjIcon();
soldCount++;
if (soldCount < maxCountToBay) {
if (!checkMoney()) {
cantSold();
} else {
setSelection = (false);
}
deselect();
} else {
disable();
}
action = "disableBayBut";
dispatchEvent({type:"action", event:"click"});
}
function addAnimObj(mc, src) {
var animNode = XML(com.data.GUIxml.getXML("animations", src)).firstChild;
var mcAnim = com.base.anim.SimpleAnim(mc.attachMovie("SimpleAnim", "overAnim", mc.getNextHighestDepth()));
mcAnim.createByXML(animNode, mc);
mcAnim.nextCycle();
return(mcAnim);
}
function setPos(xpos, ypos) {
scope._x = xpos;
scope._y = ypos;
}
function txtFormat() {
tipFormat = new TextFormat();
tipFormat.color = 1184274 /* 0x121212 */;
tipFormat.font = "titleFont";
tipFormat.size = 12;
}
function applyMcFilter(filteredMC, filter) {
var filterArray = new Array();
filterArray.push(filter);
filteredMC.filters = filterArray;
}
function _destroy() {
com.mosesSupposes.fuse.ZigoEngine.removeTween();
scope.removeMovieClip();
delete scope;
delete this;
}
static var STAGE_WIDTH = 640;
static var CELL_DEPTH = 10;
static var OBJ_ICON_DEPTH = 12;
static var PRICE_DEPTH = 15;
static var PRESS_MARKER_DEPTH = 20;
static var SOLD_MARKER_DEPTH = 30;
static var LOCK_ICON_DEPTH = 35;
var maxCountToBay = 1;
var soldCount = 0;
var _disabled = false;
}
Symbol 833 MovieClip [__Packages.com.dialogs.market.Recommended] Frame 0
class com.dialogs.market.Recommended
{
var scope, action, dispatchEvent;
function Recommended (scope) {
mx.events.EventDispatcher.initialize(this);
this.scope = scope.createEmptyMovieClip("Recom_" + scope.getNextHighestDepth(), scope.getNextHighestDepth());
this.scope.scope = this;
}
function create() {
count++;
createBG("MarketHintTab", scope);
createTitle(com.data.Strings.getText("BUY HINT"));
return(scope);
}
function createBG(src, scope) {
var node = com.data.GUIxml.getXML("getGui", src).firstChild;
var mc = com.utils.ObjFactory.addObj(node, scope);
}
function createTitle(txt) {
var titleTxtField = scope.createTextField("titleTxtField", scope.getNextHighestDepth(), 30, 16, 120, 80);
titleTxtField.selectable = false;
titleTxtField.autoSize = false;
titleTxtField.multiline = true;
titleTxtField.wordWrap = true;
titleTxtField.text = txt;
var fTitle;
fTitle.color = 16053248 /* 0xF4F400 */;
fTitle.font = "titleFont";
fTitle.bold = true;
fTitle.size = 24;
fTitle.align = "center";
titleTxtField.setTextFormat(fTitle);
com.utils.Filters.applingTextFilter(titleTxtField);
}
function hide() {
scope.removeMovieClip();
count--;
if (count == 0) {
action = "enablePlayBut";
dispatchEvent({type:"action", event:"click"});
}
delete this;
}
static var count = 0;
}
Symbol 834 MovieClip [__Packages.com.dialogs.market.Properties] Frame 0
class com.dialogs.market.Properties
{
var scope, conteinW, conteinH, itemFormat, titleFormat;
function Properties (scope) {
this.scope = scope.createEmptyMovieClip("prop_" + scope.getNextHighestDepth(), scope.getNextHighestDepth());
}
function create(xPos, yPos, width, height) {
conteinW = width || 100;
conteinH = height || 100;
scope._x = xPos || 0;
scope._y = yPos || 0;
txtFormat();
createTitle(com.data.Strings.getText("PARAMS"));
createItem(com.data.Strings.getText("SPEED"), 10, 26);
createItem(com.data.Strings.getText("MOOD"), 10, 26 + ITEMS_INDENT);
createItem(com.data.Strings.getText("EQUIPMENT"), 10, 26 + (ITEMS_INDENT * 2));
workersSpeed = (0);
health = (0);
equipment = (0);
}
function txtFormat() {
itemFormat = new TextFormat();
itemFormat.color = 16724736 /* 0xFF3300 */;
itemFormat.font = "titleFont";
itemFormat.size = 11;
titleFormat = new TextFormat();
titleFormat.color = 16053248 /* 0xF4F400 */;
titleFormat.font = "titleFont";
titleFormat.bold = true;
titleFormat.size = 18;
}
function createItem(txt, x0, y0) {
var itemTxtField = scope.createTextField("itemTxtField", scope.getNextHighestDepth(), x0 || 0, y0 || 0, conteinW, 30);
itemTxtField.selectable = false;
itemTxtField.embedFonts = true;
itemTxtField.text = txt;
itemFormat.align = "left";
itemTxtField.setTextFormat(itemFormat);
com.utils.Filters.applingDropFilter(itemTxtField, 1);
}
function createTitle(txt, x0, y0, depth) {
var titleTxtField = scope.createTextField("titleTxtField", depth || (scope.getNextHighestDepth()), x0 || 0, y0 || 0, conteinW, 40);
titleTxtField.selectable = false;
titleTxtField.embedFonts = true;
titleTxtField.autoSize = false;
titleTxtField.text = txt;
titleFormat.align = "center";
titleTxtField.setTextFormat(titleFormat);
com.utils.Filters.applingTextFilter(titleTxtField);
}
function get workersSpeed() {
return(_workersSpeed);
}
function set workersSpeed(value) {
_workersSpeed = value;
createItem(String(_workersSpeed), conteinW - 30, 26, 50);
//return(workersSpeed);
}
function get health() {
return(_health);
}
function set health(value) {
_health = value;
createItem(String(_health), conteinW - 30, 26 + ITEMS_INDENT, 51);
//return(health);
}
function get equipment() {
return(_equipment);
}
function set equipment(value) {
_equipment = value;
createItem(String(_equipment), conteinW - 30, 26 + (ITEMS_INDENT * 2), 52);
//return(equipment);
}
var _workersSpeed = 0;
var _health = 0;
var _equipment = 0;
var ITEMS_INDENT = 18;
}
Symbol 835 MovieClip [__Packages.com.dialogs.market.CellControl] Frame 0
class com.dialogs.market.CellControl
{
var scope, cellArr, mcCellCont, mcRecomCont, cellFM, have_recommended, mouseListener, activeCell, action, dispatchEvent, activeCellName, overedCell;
function CellControl (scope) {
mx.events.EventDispatcher.initialize(this);
this.scope = scope.createEmptyMovieClip("CellControl " + scope.getNextHighestDepth(), scope.getNextHighestDepth());
this.scope.scope = this;
cellArr = new Array();
}
function create(node, cellFocusManager) {
mcCellCont = scope.createEmptyMovieClip("mcCellCont" + scope._name, 10);
mcRecomCont = mcCellCont.createEmptyMovieClip("mcRecomCont " + RECOM_DEPTH, RECOM_DEPTH);
createMask(mcCellCont, 28, 43, 374, CELL_HEIGHT * 4);
var need = com.data.GUIxml.getXML("level", Main.userProfile.__get__level());
var needRes = com.utils.XMLObjFinder.findNode(need, "Need");
cellFM = cellFocusManager;
var tmp;
have_recommended = false;
var recNodeNum = null;
var i = 0;
var t = 0;
while (i < node.childNodes.length) {
var currNodeName = String(node.childNodes[i].nodeName);
var needName = com.utils.XMLObjFinder.findNode(needRes, currNodeName).nodeName;
if ((currNodeName.toLowerCase() == Main.userProfile.getItemsList(currNodeName).nodeName) || ((currNodeName.toLowerCase() != Main.userProfile.getItemsList(currNodeName).nodeName) && ((node.childNodes[i].attributes.wait == "true") && (currNodeName != needName)))) {
} else {
tmp = new com.dialogs.market.ShopResCell(mcCellCont);
cellArr.push(tmp);
tmp.create(node.childNodes[i].attributes.Price, currNodeName, 0);
tmp.setPos(CELL_XPOS, 43 + (CELL_HEIGHT * t));
if (!needName) {
if (node.attributes.name == "res") {
tmp.__set__locked(true);
} else {
tmp.__set__waiting(true);
}
} else if (currNodeName.toLowerCase() != Main.userProfile.getItemsList(currNodeName.toLowerCase()).nodeName) {
have_recommended = true;
recNodeNum = i;
tmp.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
cellFM.registerObj(tmp);
var recommend = (new com.dialogs.market.Recommended(mcRecomCont));
recommend.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
var mc = recommend.create();
mc._x = CELL_XPOS + 70;
mc._y = (43 + (CELL_HEIGHT * t)) + 10;
tmp.addHintTab(recommend);
disablePlayBut();
}
t++;
}
i++;
}
var slideUP = createBut("UPButMarkCellCtrl");
slideUP.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
var slideDn = createBut("DnButMarkCellCtrl");
slideDn.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
applyTransform(slideDn.scope);
mouseListener = new Object();
mouseListener.onMouseWheel = mx.utils.Delegate.create(this, wheelHandler);
Mouse.addListener(mouseListener);
}
function unlockCell() {
var i = 0;
while (i < cellArr.length) {
if (com.dialogs.market.ShopResCell(cellArr[i]).__get__waiting()) {
com.dialogs.market.ShopResCell(cellArr[i]).__set__waiting(false);
cellFM.registerObj(com.dialogs.market.ShopResCell(cellArr[i]));
com.dialogs.market.ShopResCell(cellArr[i]).addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
}
i++;
}
}
function wheelHandler(delta) {
if ((_root._xmouse > (scope._x + 28)) && (_root._xmouse < ((scope._x + 28) + scope._width))) {
if (delta > 0) {
moveUp();
} else {
moveDn();
}
}
}
function createMask(scope, xpos, ypos, width, height) {
var mcMask = this.scope.createEmptyMovieClip("mcMask", this.scope.getNextHighestDepth());
with (mcMask) {
beginFill(255, 30);
moveTo(xpos, ypos);
lineTo(xpos + width, ypos);
lineTo(xpos + width, ypos + height);
lineTo(xpos, ypos + height);
lineTo(xpos, ypos);
endFill();
}
scope.setMask(mcMask);
}
function enableBayBut(target) {
activeCell = target;
action = "enableBayBut";
dispatchEvent({type:"action", event:"click"});
action = "";
}
function enablePlayBut(target) {
action = "enablePlayBut";
dispatchEvent({type:"action", event:"click"});
action = "";
}
function disablePlayBut(target) {
action = "disablePlayBut";
dispatchEvent({type:"action", event:"click"});
action = "";
}
function disableBayBut() {
activeCell = null;
action = "disableBayBut";
cellFM.__set__objInFocus(null);
dispatchEvent({type:"action", event:"click"});
action = "";
}
function showDescription(target) {
action = "showDescription";
activeCellName = target.objName;
overedCell = target;
dispatchEvent({type:"action", event:"click"});
action = "";
}
function hideDescription() {
if (!cellFM.__get__objInFocus()) {
action = "hideDescription";
activeCellName = "";
dispatchEvent({type:"action", event:"click"});
action = "";
}
}
function clickHandler(e) {
switch (e.event) {
case "click" :
this[e.target.action].call(this, e.target);
return;
case "over" :
this[e.target.action].call(this, e.target);
return;
}
}
function moveUp() {
com.mosesSupposes.fuse.ZigoEngine.ffTween(mcCellCont);
if ((mcCellCont._y > (-mcCellCont._height)) && (mcCellCont._y < 0)) {
com.mosesSupposes.fuse.ZigoEngine.doTween(mcCellCont, ["_y"], [mcCellCont._y + CELL_HEIGHT], 0.7, com.mosesSupposes.fuse.PennerEasing.easeInExpo, 0.1);
}
}
function moveDn() {
com.mosesSupposes.fuse.ZigoEngine.ffTween(mcCellCont);
var max = (-((mcCellCont._height - (CELL_HEIGHT * 4)) - 2));
if (mcCellCont._y > max) {
com.mosesSupposes.fuse.ZigoEngine.doTween(mcCellCont, ["_y"], [mcCellCont._y - CELL_HEIGHT], 0.7, com.mosesSupposes.fuse.PennerEasing.easeInExpo, 0.1);
}
}
function createBut(src) {
var node = com.data.GUIxml.getXML("getGui", src).firstChild;
var but = (new com.base.GameButton());
but.create(node, scope);
return(but);
}
function createBG(src) {
var node = com.data.GUIxml.getXML("getGui", src).firstChild;
var mc = com.utils.ObjFactory.addObj(node, scope);
}
function applyTransform(scope) {
var skewMatrix = scope.transform.matrix;
var skewMatrix_stat = (new flash.geom.Matrix(1, 0, 0, -1, scope._x, scope._y + scope._height));
if (skewMatrix.a != -1) {
scope.transform.matrix = skewMatrix_stat;
}
}
function _destroy() {
Mouse.removeListener(mouseListener);
mouseListener = new Object();
delete mouseListener;
}
var CELL_HEIGHT = 87;
var CELL_XPOS = 28;
var RECOM_DEPTH = 1511;
}
Symbol 836 MovieClip [__Packages.com.dialogs.XmlMenu] Frame 0
class com.dialogs.XmlMenu
{
var scope, xmlMenuSourseID, gameOpt, mcFog, removeEventListener;
function XmlMenu (scope, depth, sourse) {
mx.events.EventDispatcher.initialize(this);
if (sourse) {
MENU_XML_STRUCT = sourse;
}
this.scope = scope.createEmptyMovieClip(xmlMenuSourseID, depth || 51);
this.scope.scope = this;
this.scope._visible = false;
}
function create(fog_enabled, xx, yy) {
if (fog_enabled) {
createFog();
}
var itemNode;
var tmpBut;
var node = com.data.GUIxml.getXML("getGui", MENU_XML_STRUCT).firstChild;
if (!xx) {
xx = int(node.attributes.x) || ((Stage.width - MENU_WIDTH) / 2);
}
if (!yy) {
yy = int(node.attributes.y) || ((Stage.height - ((ITEM_HEIGHT + ITEM_INDENT) * itemCount)) / 2);
}
var itemCount = node.childNodes.length;
var x0 = (xx || 0);
var y0 = (yy || 0);
var title;
var className;
var i = 0;
var t = 0;
while (i < itemCount) {
itemNode = com.data.GUIxml.getXML("getGui", String(node.childNodes[i].attributes.resID)).firstChild;
className = itemNode.nodeName;
title = com.data.Strings.getText(String(node.childNodes[i].attributes.title).toUpperCase());
if (!(className === "Button")) {
} else if ((!Helper.BTN_MOREGAMES) && (title == "MORE GAMES")) {
} else if ((!Helper.BTN_GETIT) && (title == "GET FULL")) {
} else {
itemNode.attributes.title = title;
itemNode.attributes.action = node.childNodes[i].attributes.action;
tmpBut = createBut(itemNode);
tmpBut.scope._x = x0;
tmpBut.scope._y = y0 + ((ITEM_HEIGHT + ITEM_INDENT) * i);
}
i++;
}
show();
}
function clickHandler(eventObj) {
if (!(eventObj.event === "click")) {
} else {
this[eventObj.target.action].call(this);
}
}
function playGame() {
_root.gotoAndPlay(5);
}
function showOptions() {
gameOpt = new com.dialogs.Options(_root, Main.musicOBJ_, Main.showHints);
gameOpt.create(true);
gameOpt.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
}
function GetIt() {
Helper.GetIt();
}
function MoreGames() {
Helper.MoreGames();
}
function createFog() {
var bmp = (new flash.display.BitmapData(640, 480, false, 0));
mcFog = scope.createEmptyMovieClip("mcFog", 0);
mcFog.attachBitmap(bmp, 1, "auto", true);
mcFog._alpha = 50;
}
function show() {
scope._visible = true;
}
function endShow() {
}
function hide() {
com.mosesSupposes.fuse.ZigoEngine.doTween(scope, ["_alpha"], 0, 0.5, com.mosesSupposes.fuse.PennerEasing.linear, 0, {scope:this, func:"_destroy"});
}
function createBut(node) {
var newBtn = (new com.base.GameButton());
newBtn.create(node, scope);
newBtn.addEventListener("action", mx.utils.Delegate.create(this, clickHandler));
return(newBtn);
}
function _destroy() {
com.mosesSupposes.fuse.ZigoEngine.removeTween();
scope.removeMovieClip();
delete scope;
removeEventListener();
delete this;
}
static var MENU_XML_STRUCT = "InGameMenu";
static var MENU_WIDTH = 154;
static var ITEM_HEIGHT = 38;
static var ITEM_INDENT = 5;
}
Symbol 64 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 66 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher
{
var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener;
function UIEventDispatcher () {
super();
}
static function addKeyEvents(obj) {
if (obj.keyHandler == undefined) {
var _local1 = (obj.keyHandler = new Object());
_local1.owner = obj;
_local1.onKeyDown = _fEventDispatcher.onKeyDown;
_local1.onKeyUp = _fEventDispatcher.onKeyUp;
}
Key.addListener(obj.keyHandler);
}
static function removeKeyEvents(obj) {
Key.removeListener(obj.keyHandler);
}
static function addLoadEvents(obj) {
if (obj.onLoad == undefined) {
obj.onLoad = _fEventDispatcher.onLoad;
obj.onUnload = _fEventDispatcher.onUnload;
if (obj.getBytesTotal() == obj.getBytesLoaded()) {
obj.doLater(obj, "onLoad");
}
}
}
static function removeLoadEvents(obj) {
delete obj.onLoad;
delete obj.onUnload;
}
static function initialize(obj) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.UIEventDispatcher();
}
obj.addEventListener = _fEventDispatcher.__addEventListener;
obj.__origAddEventListener = _fEventDispatcher.addEventListener;
obj.removeEventListener = _fEventDispatcher.removeEventListener;
obj.dispatchEvent = _fEventDispatcher.dispatchEvent;
obj.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(mx.events.EventDispatcher, eventObj);
dispatchQueue(this, eventObj);
}
function onKeyDown(Void) {
owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onKeyUp(Void) {
owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onLoad(Void) {
if (__sentLoadEvent != true) {
dispatchEvent({type:"load"});
}
__sentLoadEvent = true;
}
function onUnload(Void) {
dispatchEvent({type:"unload"});
}
function __addEventListener(event, handler) {
__origAddEventListener(event, handler);
var _local3 = lowLevelEvents;
for (var _local5 in _local3) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local2 = _local3[_local5][0];
mx.events.UIEventDispatcher[_local2](this);
}
}
}
function removeEventListener(event, handler) {
var _local6 = "__q_" + event;
mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler);
if (this[_local6].length == 0) {
var _local2 = lowLevelEvents;
for (var _local5 in _local2) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local3 = _local2[_local5][1];
mx.events.UIEventDispatcher[_local2[_local5][1]](this);
}
}
}
}
static var keyEvents = {keyDown:1, keyUp:1};
static var loadEvents = {load:1, unload:1};
static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]};
static var _fEventDispatcher = undefined;
}
Symbol 67 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement
{
var getStyle, _color, onEnterFrame;
function ColoredSkinElement () {
}
function setColor(c) {
if (c != undefined) {
var _local2 = new Color(this);
_local2.setRGB(c);
}
}
function draw(Void) {
setColor(getStyle(_color));
onEnterFrame = undefined;
}
function invalidateStyle(Void) {
onEnterFrame = draw;
}
static function setColorStyle(p, colorStyle) {
if (p._color == undefined) {
p._color = colorStyle;
}
p.setColor = mixins.setColor;
p.invalidateStyle = mixins.invalidateStyle;
p.draw = mixins.draw;
p.setColor(p.getStyle(colorStyle));
}
static var mixins = new mx.skins.ColoredSkinElement();
}
Symbol 68 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class mx.core.ext.UIObjectExtensions
{
function UIObjectExtensions () {
}
static function addGeometry(tf, ui) {
tf.addProperty("width", ui.__get__width, null);
tf.addProperty("height", ui.__get__height, null);
tf.addProperty("left", ui.__get__left, null);
tf.addProperty("x", ui.__get__x, null);
tf.addProperty("top", ui.__get__top, null);
tf.addProperty("y", ui.__get__y, null);
tf.addProperty("right", ui.__get__right, null);
tf.addProperty("bottom", ui.__get__bottom, null);
tf.addProperty("visible", ui.__get__visible, ui.__set__visible);
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
var _local6 = mx.core.UIObject.prototype;
var _local9 = mx.skins.SkinElement.prototype;
addGeometry(_local9, _local6);
mx.events.UIEventDispatcher.initialize(_local6);
var _local13 = mx.skins.ColoredSkinElement;
mx.styles.CSSTextStyles.addTextStyles(_local6);
var _local5 = MovieClip.prototype;
_local5.getTopLevel = _local6.getTopLevel;
_local5.createLabel = _local6.createLabel;
_local5.createObject = _local6.createObject;
_local5.createClassObject = _local6.createClassObject;
_local5.createEmptyObject = _local6.createEmptyObject;
_local5.destroyObject = _local6.destroyObject;
_global.ASSetPropFlags(_local5, "getTopLevel", 1);
_global.ASSetPropFlags(_local5, "createLabel", 1);
_global.ASSetPropFlags(_local5, "createObject", 1);
_global.ASSetPropFlags(_local5, "createClassObject", 1);
_global.ASSetPropFlags(_local5, "createEmptyObject", 1);
_global.ASSetPropFlags(_local5, "destroyObject", 1);
_local5.__getTextFormat = _local6.__getTextFormat;
_local5._getTextFormat = _local6._getTextFormat;
_local5.getStyleName = _local6.getStyleName;
_local5.getStyle = _local6.getStyle;
_global.ASSetPropFlags(_local5, "__getTextFormat", 1);
_global.ASSetPropFlags(_local5, "_getTextFormat", 1);
_global.ASSetPropFlags(_local5, "getStyleName", 1);
_global.ASSetPropFlags(_local5, "getStyle", 1);
var _local7 = TextField.prototype;
addGeometry(_local7, _local6);
_local7.addProperty("enabled", function () {
return(this.__enabled);
}, function (x) {
this.__enabled = x;
this.invalidateStyle();
});
_local7.move = _local9.move;
_local7.setSize = _local9.setSize;
_local7.invalidateStyle = function () {
this.invalidateFlag = true;
};
_local7.draw = function () {
if (this.invalidateFlag) {
this.invalidateFlag = false;
var _local2 = this._getTextFormat();
this.setTextFormat(_local2);
this.setNewTextFormat(_local2);
this.embedFonts = _local2.embedFonts == true;
if (this.__text != undefined) {
if (this.text == "") {
this.text = this.__text;
}
delete this.__text;
}
this._visible = true;
}
};
_local7.setColor = function (color) {
this.textColor = color;
};
_local7.getStyle = _local5.getStyle;
_local7.__getTextFormat = _local6.__getTextFormat;
_local7.setValue = function (v) {
this.text = v;
};
_local7.getValue = function () {
return(this.text);
};
_local7.addProperty("value", function () {
return(this.getValue());
}, function (v) {
this.setValue(v);
});
_local7._getTextFormat = function () {
var _local2 = this.stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
this.__getTextFormat(_local2);
this.stylecache.tf = _local2;
if (this.__enabled == false) {
if (this.enabledColor == undefined) {
var _local4 = this.getTextFormat();
this.enabledColor = _local4.color;
}
var _local3 = this.getStyle("disabledColor");
_local2.color = _local3;
} else if (this.enabledColor != undefined) {
if (_local2.color == undefined) {
_local2.color = this.enabledColor;
}
}
return(_local2);
};
_local7.getPreferredWidth = function () {
this.draw();
return(this.textWidth + 4);
};
_local7.getPreferredHeight = function () {
this.draw();
return(this.textHeight + 4);
};
TextFormat.prototype.getTextExtent2 = function (s) {
var _local3 = _root._getTextExtent;
if (_local3 == undefined) {
_root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100);
_local3 = _root._getTextExtent;
_local3._visible = false;
}
_root._getTextExtent.text = s;
var _local4 = this.align;
this.align = "left";
_root._getTextExtent.setTextFormat(this);
this.align = _local4;
return({width:_local3.textWidth, height:_local3.textHeight});
};
if (_global.style == undefined) {
_global.style = new mx.styles.CSSStyleDeclaration();
_global.cascadingStyles = true;
_global.styles = new Object();
_global.skinRegistry = new Object();
if (_global._origWidth == undefined) {
_global.origWidth = Stage.width;
_global.origHeight = Stage.height;
}
}
var _local4 = _root;
while (_local4._parent != undefined) {
_local4 = _local4._parent;
}
_local4.addProperty("width", function () {
return(Stage.width);
}, null);
_local4.addProperty("height", function () {
return(Stage.height);
}, null);
_global.ASSetPropFlags(_local4, "width", 1);
_global.ASSetPropFlags(_local4, "height", 1);
return(true);
}
static var bExtended = false;
static var UIObjectExtended = Extensions();
static var UIObjectDependency = mx.core.UIObject;
static var SkinElementDependency = mx.skins.SkinElement;
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
static var UIEventDispatcherDependency = mx.events.UIEventDispatcher;
}
Symbol 69 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class mx.skins.halo.Defaults
{
var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill;
function Defaults () {
}
static function setThemeDefaults() {
var _local2 = _global.style;
_local2.themeColor = 8453965 /* 0x80FF4D */;
_local2.disabledColor = 8684164 /* 0x848284 */;
_local2.modalTransparency = 0;
_local2.filled = true;
_local2.stroked = true;
_local2.strokeWidth = 1;
_local2.strokeColor = 0;
_local2.fillColor = 16777215 /* 0xFFFFFF */;
_local2.repeatInterval = 35;
_local2.repeatDelay = 500;
_local2.fontFamily = "_sans";
_local2.fontSize = 12;
_local2.selectionColor = 13500353 /* 0xCDFFC1 */;
_local2.rollOverColor = 14942166 /* 0xE3FFD6 */;
_local2.useRollOver = true;
_local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDuration = 200;
_local2.openDuration = 250;
_local2.borderStyle = "inset";
_local2.color = 734012 /* 0x0B333C */;
_local2.textSelectedColor = 24371;
_local2.textRollOverColor = 2831164 /* 0x2B333C */;
_local2.textDisabledColor = 16777215 /* 0xFFFFFF */;
_local2.vGridLines = true;
_local2.hGridLines = false;
_local2.vGridLineColor = 6710886 /* 0x666666 */;
_local2.hGridLineColor = 6710886 /* 0x666666 */;
_local2.headerColor = 15395562 /* 0xEAEAEA */;
_local2.indentation = 17;
_local2.folderOpenIcon = "TreeFolderOpen";
_local2.folderClosedIcon = "TreeFolderClosed";
_local2.defaultLeafIcon = "TreeNodeIcon";
_local2.disclosureOpenIcon = "TreeDisclosureOpen";
_local2.disclosureClosedIcon = "TreeDisclosureClosed";
_local2.popupDuration = 150;
_local2.todayColor = 6710886 /* 0x666666 */;
_local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration());
_local2.backgroundColor = 16777215 /* 0xFFFFFF */;
_local2.borderColor = 13290186 /* 0xCACACA */;
_local2.borderStyle = "inset";
_local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration());
_local2.borderStyle = "inset";
_local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration());
_local2.textAlign = "center";
_local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration());
_local2.borderColor = 14015965 /* 0xD5DDDD */;
_local2.buttonColor = 7305079 /* 0x6F7777 */;
_local2.shadowColor = 15658734 /* 0xEEEEEE */;
_local2.highlightColor = 12897484 /* 0xC4CCCC */;
_local2.shadowCapColor = 14015965 /* 0xD5DDDD */;
_local2.borderCapColor = 9542041 /* 0x919999 */;
var _local4 = new Object();
_local4.borderColor = 16711680 /* 0xFF0000 */;
_local4.buttonColor = 16711680 /* 0xFF0000 */;
_local4.shadowColor = 16711680 /* 0xFF0000 */;
_local4.highlightColor = 16711680 /* 0xFF0000 */;
_local4.shadowCapColor = 16711680 /* 0xFF0000 */;
_local4.borderCapColor = 16711680 /* 0xFF0000 */;
mx.core.UIComponent.prototype.origBorderStyles = _local4;
var _local3;
_local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration());
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderStyle = "inset";
_global.styles.TextArea = _global.styles.TextInput;
_local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "default";
_local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "alert";
_local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "inset";
_local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "none";
_local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration());
_local3.color = 11187123 /* 0xAAB3B3 */;
_local3.fontWeight = "bold";
_local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = "11";
_local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "solid";
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderColor = 9081738 /* 0x8A938A */;
_local3.headerHeight = 22;
_local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1)));
_local3.verticalGap = -1;
_local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration());
_local3.borderColor = 9542041 /* 0x919999 */;
_local3.headerColor = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 10;
_local3.textAlign = "right";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = 11;
_local3.textAlign = "center";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration());
_local3.color = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 12;
_local3.fontWeight = "bold";
_local3.textAlign = "center";
}
function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) {
if (typeof(r) == "object") {
var _local18 = r.br;
var _local16 = r.bl;
var _local15 = r.tl;
var _local10 = r.tr;
} else {
var _local10 = r;
var _local15 = _local10;
var _local16 = _local15;
var _local18 = _local16;
}
if (typeof(c) == "object") {
if (typeof(alpha) != "object") {
var _local9 = [alpha, alpha];
} else {
var _local9 = alpha;
}
if (ratios == undefined) {
ratios = [0, 255];
}
var _local14 = h * 0.7;
if (typeof(rot) != "object") {
var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */};
} else {
var _local11 = rot;
}
if (gradient == "radial") {
beginGradientFill("radial", c, _local9, ratios, _local11);
} else {
beginGradientFill("linear", c, _local9, ratios, _local11);
}
} else if (c != undefined) {
beginFill(c, alpha);
}
r = _local18;
var _local13 = r - (r * 0.707106781186547);
var _local12 = r - (r * 0.414213562373095);
moveTo(x + w, (y + h) - r);
lineTo(x + w, (y + h) - r);
curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13);
curveTo((x + w) - _local12, y + h, (x + w) - r, y + h);
r = _local16;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x + r, y + h);
curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13);
curveTo(x, (y + h) - _local12, x, (y + h) - r);
r = _local15;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x, y + r);
curveTo(x, y + _local12, x + _local13, y + _local13);
curveTo(x + _local12, y, x + r, y);
r = _local10;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo((x + w) - r, y);
curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13);
curveTo(x + w, y + _local12, x + w, y + r);
lineTo(x + w, (y + h) - r);
if (c != undefined) {
endFill();
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
setThemeDefaults();
mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
static var UIObjectDependency = mx.core.UIObject;
}
Symbol 70 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
_global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1);
_global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1);
_global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1);
_global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1);
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function setDepthTo(depthFlag) {
var _local2 = _parent.buildDepthTable();
var _local3 = _parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
shuffleDepths(this, _local3, _local2, undefined);
} else {
swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local2 = targetInstance.getDepth() + 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local2] != undefined) && (getDepth() < _local2)) {
_local2 = _local2 - 1;
}
if (_local2 > highestDepth) {
_local2 = highestDepth;
}
if (_local2 == highestDepth) {
_parent.shuffleDepths(this, _local2, _local3, "down");
} else if (_local3[_local2] != undefined) {
_parent.shuffleDepths(this, _local2, _local3, undefined);
} else {
swapDepths(_local2);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local6 = targetInstance.getDepth() - 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local6] != undefined) && (getDepth() > _local6)) {
_local6 = _local6 + 1;
}
var _local4 = lowestDepth + numberOfAuthortimeLayers;
var _local5;
for (_local5 in _local3) {
var _local2 = _local3[_local5];
if (_local2._parent != undefined) {
_local4 = Math.min(_local4, _local2.getDepth());
}
}
if (_local6 < _local4) {
_local6 = _local4;
}
if (_local6 == _local4) {
_parent.shuffleDepths(this, _local6, _local3, "up");
} else if (_local3[_local6] != undefined) {
_parent.shuffleDepths(this, _local6, _local3, undefined);
} else {
swapDepths(_local6);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local2 = targetDepth;
var _local1 = targetDepth;
if (direction == "down") {
while (depthTable[_local1] != undefined) {
_local1--;
}
return(_local1);
}
while (depthTable[_local2] != undefined) {
_local2++;
}
return(_local2);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 71 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent
{
static var emphasizedStyleDeclaration;
var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle;
function SimpleButton () {
super();
}
function init(Void) {
super.init();
if (preset == undefined) {
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
useHandCursor = false;
}
function createChildren(Void) {
if (preset != undefined) {
var _local2 = this[idNames[preset]];
this[refNames[preset]] = _local2;
skinName = _local2;
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
initializing = false;
} else if (__state == true) {
setStateVar(true);
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
}
}
function setIcon(tag, linkageName) {
return(setSkin(tag + 8, linkageName));
}
function changeIcon(tag, linkageName) {
linkLength = linkageName.length;
var _local2 = stateNames[tag] + "Icon";
this[_local2] = linkageName;
this[idNames[tag + 8]] = _local2;
setStateVar(getState());
}
function changeSkin(tag, linkageName) {
var _local2 = stateNames[tag] + "Skin";
this[_local2] = linkageName;
this[idNames[tag]] = _local2;
setStateVar(getState());
}
function viewIcon(varName) {
var _local4 = varName + "Icon";
var _local3 = this[_local4];
if (typeof(_local3) == "string") {
var _local5 = _local3;
if (__emphasized) {
if (this[_local3 + "Emphasized"].length > 0) {
_local3 = _local3 + "Emphasized";
}
}
if (this[_local3].length == 0) {
return(undefined);
}
_local3 = setIcon(tagMap[_local5], this[_local3]);
if ((_local3 == undefined) && (_global.isLivePreview)) {
_local3 = setIcon(0, "ButtonIcon");
}
this[_local4] = _local3;
}
iconName._visible = false;
iconName = _local3;
iconName._visible = true;
}
function removeIcons() {
var _local3 = 0;
while (_local3 < 2) {
var _local2 = 8;
while (_local2 < 16) {
destroyObject(idNames[_local2]);
this[stateNames[_local2 - 8] + "Icon"] = "";
_local2++;
}
_local3++;
}
refresh();
}
function setSkin(tag, linkageName, initobj) {
var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this})));
calcSize(tag, _local3);
return(_local3);
}
function calcSize(Void) {
__width = _width;
__height = _height;
}
function viewSkin(varName, initObj) {
var _local3 = varName + "Skin";
var _local2 = this[_local3];
if (typeof(_local2) == "string") {
var _local4 = _local2;
if (__emphasized) {
if (this[_local2 + "Emphasized"].length > 0) {
_local2 = _local2 + "Emphasized";
}
}
if (this[_local2].length == 0) {
return(undefined);
}
_local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this})));
this[_local3] = _local2;
}
skinName._visible = false;
skinName = _local2;
skinName._visible = true;
}
function showEmphasized(e) {
if (e && (!__emphatic)) {
if (emphasizedStyleDeclaration != undefined) {
__emphaticStyleName = styleName;
styleName = emphasizedStyleDeclaration;
}
__emphatic = true;
} else {
if (__emphatic) {
styleName = __emphaticStyleName;
}
__emphatic = false;
}
}
function refresh(Void) {
var _local2 = getState();
if (enabled == false) {
viewIcon("disabled");
viewSkin("disabled");
} else {
viewSkin(phase);
viewIcon(phase);
}
setView(phase == "down");
iconName.enabled = enabled;
}
function setView(offset) {
if (iconName == undefined) {
return(undefined);
}
var _local2 = (offset ? (btnOffset) : 0);
iconName._x = ((__width - iconName._width) / 2) + _local2;
iconName._y = ((__height - iconName._height) / 2) + _local2;
}
function setStateVar(state) {
if (state) {
if (trueOverSkin.length == 0) {
rolloverSkin = tus;
} else {
rolloverSkin = trs;
}
if (trueOverIcon.length == 0) {
rolloverIcon = tui;
} else {
rolloverIcon = tri;
}
upSkin = tus;
downSkin = tds;
disabledSkin = dts;
upIcon = tui;
downIcon = tdi;
disabledIcon = dti;
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
} else {
rolloverSkin = frs;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
} else {
rolloverIcon = fri;
}
upSkin = fus;
downSkin = fds;
disabledSkin = dfs;
upIcon = fui;
downIcon = fdi;
disabledIcon = dfi;
}
__state = state;
}
function setState(state) {
if (state != __state) {
setStateVar(state);
invalidate();
}
}
function size(Void) {
refresh();
}
function draw(Void) {
if (initializing) {
initializing = false;
skinName.visible = true;
iconName.visible = true;
}
size();
}
function getState(Void) {
return(__state);
}
function setToggle(val) {
__toggle = val;
if (__toggle == false) {
setState(false);
}
}
function getToggle(Void) {
return(__toggle);
}
function set toggle(val) {
setToggle(val);
//return(toggle);
}
function get toggle() {
return(getToggle());
}
function set value(val) {
setSelected(val);
//return(value);
}
function get value() {
return(getSelected());
}
function set selected(val) {
setSelected(val);
//return(selected);
}
function get selected() {
return(getSelected());
}
function setSelected(val) {
if (__toggle) {
setState(val);
} else {
setState((initializing ? (val) : (__state)));
}
}
function getSelected() {
return(__state);
}
function setEnabled(val) {
if (enabled != val) {
super.setEnabled(val);
invalidate();
}
}
function onPress(Void) {
pressFocus();
phase = "down";
refresh();
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
interval = setInterval(this, "onPressDelay", getStyle("repeatDelay"));
}
}
function onPressDelay(Void) {
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
clearInterval(interval);
interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval"));
}
}
function onPressRepeat(Void) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(Void) {
releaseFocus();
phase = "rollover";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
if (getToggle()) {
setState(!getState());
} else {
refresh();
}
dispatchEvent({type:"click"});
}
function onDragOut(Void) {
phase = "up";
refresh();
dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(Void) {
if (phase != "up") {
onPress();
return(undefined);
}
phase = "down";
refresh();
}
function onReleaseOutside(Void) {
releaseFocus();
phase = "up";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
}
function onRollOver(Void) {
phase = "rollover";
refresh();
}
function onRollOut(Void) {
phase = "up";
refresh();
}
function getLabel(Void) {
return(fui.text);
}
function setLabel(val) {
if (typeof(fui) == "string") {
createLabel("fui", 8, val);
fui.styleName = this;
} else {
fui.text = val;
}
var _local4 = fui._getTextFormat();
var _local2 = _local4.getTextExtent2(val);
fui._width = _local2.width + 5;
fui._height = _local2.height + 5;
iconName = fui;
setView(__state);
}
function get emphasized() {
return(__emphasized);
}
function set emphasized(val) {
__emphasized = val;
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]] = stateNames[_local2] + "Skin";
if (typeof(this[idNames[_local2 + 8]]) == "movieclip") {
this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon";
}
_local2++;
}
showEmphasized(__emphasized);
setStateVar(__state);
invalidateStyle();
//return(emphasized);
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
function keyUp(e) {
if (e.code == 32) {
onRelease();
}
}
function onKillFocus(newFocus) {
super.onKillFocus();
if (phase != "up") {
phase = "up";
refresh();
}
}
static var symbolName = "SimpleButton";
static var symbolOwner = mx.controls.SimpleButton;
static var version = "2.0.2.127";
var className = "SimpleButton";
var style3dInset = 4;
var btnOffset = 1;
var __toggle = false;
var __state = false;
var __emphasized = false;
var __emphatic = false;
static var falseUp = 0;
static var falseDown = 1;
static var falseOver = 2;
static var falseDisabled = 3;
static var trueUp = 4;
static var trueDown = 5;
static var trueOver = 6;
static var trueDisabled = 7;
var falseUpSkin = "SimpleButtonUp";
var falseDownSkin = "SimpleButtonIn";
var falseOverSkin = "";
var falseDisabledSkin = "SimpleButtonUp";
var trueUpSkin = "SimpleButtonIn";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "SimpleButtonIn";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var phase = "up";
var fui = "falseUpIcon";
var fus = "falseUpSkin";
var fdi = "falseDownIcon";
var fds = "falseDownSkin";
var frs = "falseOverSkin";
var fri = "falseOverIcon";
var dfi = "falseDisabledIcon";
var dfs = "falseDisabledSkin";
var tui = "trueUpIcon";
var tus = "trueUpSkin";
var tdi = "trueDownIcon";
var tds = "trueDownSkin";
var trs = "trueOverSkin";
var tri = "trueOverIcon";
var dts = "trueDisabledSkin";
var dti = "trueDisabledIcon";
var rolloverSkin = mx.controls.SimpleButton.prototype.frs;
var rolloverIcon = mx.controls.SimpleButton.prototype.fri;
var upSkin = mx.controls.SimpleButton.prototype.fus;
var downSkin = mx.controls.SimpleButton.prototype.fds;
var disabledSkin = mx.controls.SimpleButton.prototype.dfs;
var upIcon = mx.controls.SimpleButton.prototype.fui;
var downIcon = mx.controls.SimpleButton.prototype.fdi;
var disabledIcon = mx.controls.SimpleButton.prototype.dfi;
var initializing = true;
var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"];
var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"];
var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"];
var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7};
}
Symbol 72 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class mx.managers.SystemManager
{
static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent;
function SystemManager () {
}
static function init(Void) {
if (_initialized == false) {
_initialized = true;
mx.events.EventDispatcher.initialize(mx.managers.SystemManager);
Mouse.addListener(mx.managers.SystemManager);
Stage.addListener(mx.managers.SystemManager);
_xAddEventListener = addEventListener;
addEventListener = __addEventListener;
_xRemoveEventListener = removeEventListener;
removeEventListener = __removeEventListener;
}
}
static function addFocusManager(f) {
form = f;
f.focusManager.activate();
}
static function removeFocusManager(f) {
}
static function onMouseDown(Void) {
var _local1 = form;
_local1.focusManager._onMouseDown();
}
static function onResize(Void) {
var _local7 = Stage.width;
var _local6 = Stage.height;
var _local9 = _global.origWidth;
var _local8 = _global.origHeight;
var _local3 = Stage.align;
var _local5 = (_local9 - _local7) / 2;
var _local4 = (_local8 - _local6) / 2;
if (_local3 == "T") {
_local4 = 0;
} else if (_local3 == "B") {
_local4 = _local8 - _local6;
} else if (_local3 == "L") {
_local5 = 0;
} else if (_local3 == "R") {
_local5 = _local9 - _local7;
} else if (_local3 == "LT") {
_local4 = 0;
_local5 = 0;
} else if (_local3 == "TR") {
_local4 = 0;
_local5 = _local9 - _local7;
} else if (_local3 == "LB") {
_local4 = _local8 - _local6;
_local5 = 0;
} else if (_local3 == "RB") {
_local4 = _local8 - _local6;
_local5 = _local9 - _local7;
}
if (__screen == undefined) {
__screen = new Object();
}
__screen.x = _local5;
__screen.y = _local4;
__screen.width = _local7;
__screen.height = _local6;
_root.focusManager.relocate();
dispatchEvent({type:"resize"});
}
static function get screen() {
init();
if (__screen == undefined) {
onResize();
}
return(__screen);
}
static var _initialized = false;
static var idleFrames = 0;
static var isMouseDown = false;
static var forms = new Array();
}
Symbol 73 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent
{
var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject;
function FocusManager () {
super();
}
function get defaultPushButton() {
return(__defaultPushButton);
}
function set defaultPushButton(x) {
if (x != __defaultPushButton) {
__defaultPushButton.__set__emphasized(false);
__defaultPushButton = x;
defPushButton = x;
x.__set__emphasized(true);
}
//return(defaultPushButton);
}
function getMaxTabIndex(o) {
var _local3 = 0;
var _local6;
for (_local6 in o) {
var _local2 = o[_local6];
if (_local2._parent == o) {
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex > _local3) {
_local3 = _local2.tabIndex;
}
}
if (_local2.tabChildren == true) {
var _local4 = getMaxTabIndex(_local2);
if (_local4 > _local3) {
_local3 = _local4;
}
}
}
}
return(_local3);
}
function getNextTabIndex(Void) {
return(getMaxTabIndex(form) + 1);
}
function get nextTabIndex() {
return(getNextTabIndex());
}
function relocate(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
move(_local2.x - 1, _local2.y - 1);
}
function init(Void) {
super.init();
tabEnabled = false;
_width = (_height = 1);
_x = (_y = -1);
_alpha = 0;
_parent.focusManager = this;
_parent.tabChildren = true;
_parent.tabEnabled = false;
form = _parent;
_parent.addEventListener("hide", this);
_parent.addEventListener("reveal", this);
mx.managers.SystemManager.init();
mx.managers.SystemManager.addFocusManager(form);
tabCapture.tabIndex = 0;
watch("enabled", enabledChanged);
Selection.addListener(this);
lastMouse = new Object();
_global.ASSetPropFlags(_parent, "focusManager", 1);
_global.ASSetPropFlags(_parent, "tabChildren", 1);
_global.ASSetPropFlags(_parent, "tabEnabled", 1);
}
function enabledChanged(id, oldValue, newValue) {
_visible = newValue;
return(newValue);
}
function activate(Void) {
Key.addListener(this);
activated = (_visible = true);
if (lastFocus != undefined) {
bNeedFocus = true;
if (!mx.managers.SystemManager.isMouseDown) {
doLater(this, "restoreFocus");
}
}
}
function deactivate(Void) {
Key.removeListener(this);
activated = (_visible = false);
var _local2 = getSelectionFocus();
var _local3 = getActualFocus(_local2);
if (isOurFocus(_local3)) {
lastSelFocus = _local2;
lastFocus = _local3;
}
cancelAllDoLaters();
}
function isOurFocus(o) {
if (o.focusManager == this) {
return(true);
}
while (o != undefined) {
if (o.focusManager != undefined) {
return(false);
}
if (o._parent == _parent) {
return(true);
}
o = o._parent;
}
return(false);
}
function onSetFocus(o, n) {
if (n == null) {
if (activated) {
bNeedFocus = true;
}
} else {
var _local2 = getFocus();
if (isOurFocus(_local2)) {
bNeedFocus = false;
lastFocus = _local2;
lastSelFocus = n;
}
}
}
function restoreFocus(Void) {
var _local2 = lastSelFocus.hscroll;
if (_local2 != undefined) {
var _local5 = lastSelFocus.scroll;
var _local4 = lastSelFocus.background;
}
lastFocus.setFocus();
var _local3 = Selection;
Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex);
if (_local2 != undefined) {
lastSelFocus.scroll = _local5;
lastSelFocus.hscroll = _local2;
lastSelFocus.background = _local4;
}
}
function onUnload(Void) {
mx.managers.SystemManager.removeFocusManager(form);
}
function setFocus(o) {
if (o == null) {
Selection.setFocus(null);
} else if (o.setFocus == undefined) {
Selection.setFocus(o);
} else {
o.setFocus();
}
}
function getActualFocus(o) {
var _local1 = o._parent;
while (_local1 != undefined) {
if (_local1.focusTextField != undefined) {
while (_local1.focusTextField != undefined) {
o = _local1;
_local1 = _local1._parent;
if (_local1 == undefined) {
return(undefined);
}
if (_local1.focusTextField == undefined) {
return(o);
}
}
}
if (_local1.tabEnabled != true) {
return(o);
}
o = _local1;
_local1 = o._parent;
}
return(undefined);
}
function getSelectionFocus() {
var m = Selection.getFocus();
var o = eval (m);
return(o);
}
function getFocus(Void) {
var _local2 = getSelectionFocus();
return(getActualFocus(_local2));
}
function walkTree(p, index, groupName, dir, lookup, firstChild) {
var _local5 = true;
var _local11;
for (_local11 in p) {
var _local2 = p[_local11];
if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_local2 != _lastTarget) {
if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) {
continue;
}
if ((_local2 instanceof TextField) && (_local2.selectable == false)) {
continue;
}
if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) {
if (firstChild) {
_firstNode = _local2;
firstChild = false;
}
}
if (_nextIsNext == true) {
if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) {
_nextNode = _local2;
}
}
if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) {
if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) {
} else {
_lastx = _local2;
}
}
} else {
_prevNode = _lastx;
_needPrev = false;
_nextIsNext = true;
}
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex == index) {
if (_foundList[_local2._name] == undefined) {
if (_needPrev) {
_prevObj = _local2;
_needPrev = false;
}
_nextObj = _local2;
}
}
if (dir && (_local2.tabIndex > index)) {
if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) {
_nextObj = _local2;
}
} else if ((!dir) && (_local2.tabIndex < index)) {
if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) {
_prevObj = _local2;
}
}
if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) {
_firstObj = _local2;
}
if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) {
_lastObj = _local2;
}
}
if (_local2.tabChildren) {
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
} else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) {
if (_local2 == _lastTarget) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_prevNode == undefined) {
var _local3 = _lastx;
var _local7 = false;
while (_local3 != undefined) {
if (_local3 == _local2) {
_local7 = true;
break;
}
_local3 = _local3._parent;
}
if (_local7 == false) {
_prevNode = _lastx;
}
}
_needPrev = false;
if (_nextNode == undefined) {
_nextIsNext = true;
}
} else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
}
}
_lastNode = _lastx;
if (lookup) {
if (p._parent != undefined) {
if (p != _parent) {
if ((_prevNode == undefined) && (dir)) {
_needPrev = true;
} else if ((_nextNode == undefined) && (!dir)) {
_nextIsNext = false;
}
_lastTarget = _lastTarget._parent;
getTabCandidate(p._parent, index, groupName, dir, true);
}
}
}
}
function getTabCandidate(o, index, groupName, dir, firstChild) {
var _local2;
var _local3 = true;
if (o == _parent) {
_local2 = o;
_local3 = false;
} else {
_local2 = o._parent;
if (_local2 == undefined) {
_local2 = o;
_local3 = false;
}
}
walkTree(_local2, index, groupName, dir, _local3, firstChild);
}
function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) {
walkTree(o, index, groupName, dir, false, firstChild);
}
function getFocusManagerFromObject(o) {
while (o != undefined) {
if (o.focusManager != undefined) {
return(o.focusManager);
}
o = o._parent;
}
return(undefined);
}
function tabHandler(Void) {
bDrawFocus = true;
var _local5 = getSelectionFocus();
var _local4 = getActualFocus(_local5);
if (_local4 != _local5) {
_local5 = _local4;
}
if (getFocusManagerFromObject(_local5) != this) {
_local5 == undefined;
}
if (_local5 == undefined) {
_local5 = form;
} else if (_local5.tabIndex != undefined) {
if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) {
_foundList = new Object();
_foundList.tabIndex = _local5.tabIndex;
}
_foundList[_local5._name] = _local5;
}
var _local3 = Key.isDown(16) != true;
_searchKey = getTimer();
_needPrev = true;
_nextIsNext = false;
_lastx = undefined;
_firstNode = undefined;
_lastNode = undefined;
_nextNode = undefined;
_prevNode = undefined;
_firstObj = undefined;
_lastObj = undefined;
_nextObj = undefined;
_prevObj = undefined;
_lastTarget = _local5;
var _local6 = _local5;
getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true);
var _local2;
if (_local3) {
if (_nextObj != undefined) {
_local2 = _nextObj;
} else {
_local2 = _firstObj;
}
} else if (_prevObj != undefined) {
_local2 = _prevObj;
} else {
_local2 = _lastObj;
}
if (_local2.tabIndex != _local5.tabIndex) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
_foundList[_local2._name] = _local2;
} else {
if (_foundList == undefined) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
}
_foundList[_local2._name] = _local2;
}
if (_local2 == undefined) {
if (_local3 == false) {
if (_nextNode != undefined) {
_local2 = _nextNode;
} else {
_local2 = _firstNode;
}
} else if ((_prevNode == undefined) || (_local5 == form)) {
_local2 = _lastNode;
} else {
_local2 = _prevNode;
}
}
if (_local2 == undefined) {
return(undefined);
}
lastTabFocus = _local2;
setFocus(_local2);
if (_local2.emphasized != undefined) {
if (defPushButton != undefined) {
_local5 = defPushButton;
defPushButton = _local2;
_local5.emphasized = false;
_local2.emphasized = true;
}
} else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) {
_local5 = defPushButton;
defPushButton = __defaultPushButton;
_local5.emphasized = false;
__defaultPushButton.__set__emphasized(true);
}
}
function onKeyDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
if (defaultPushButtonEnabled) {
if (Key.getCode() == 13) {
if (defaultPushButton != undefined) {
doLater(this, "sendDefaultPushButtonEvent");
}
}
}
}
function sendDefaultPushButtonEvent(Void) {
defPushButton.dispatchEvent({type:"click"});
}
function getMousedComponentFromChildren(x, y, o) {
for (var _local7 in o) {
var _local2 = o[_local7];
if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) {
_local2._searchKey = _searchKey;
if (_local2.hitTest(x, y, true)) {
if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) {
return(_local2);
}
var _local3 = getMousedComponentFromChildren(x, y, _local2);
if (_local3 != undefined) {
return(_local3);
}
return(_local2);
}
}
}
return(undefined);
}
function mouseActivate(Void) {
if (!bNeedFocus) {
return(undefined);
}
_searchKey = getTimer();
var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form);
if (_local2 instanceof mx.core.UIComponent) {
return(undefined);
}
_local2 = findFocusFromObject(_local2);
if (_local2 == lastFocus) {
return(undefined);
}
if (_local2 == undefined) {
doLater(this, "restoreFocus");
return(undefined);
}
var _local3 = _local2.hscroll;
if (_local3 != undefined) {
var _local6 = _local2.scroll;
var _local5 = _local2.background;
}
setFocus(_local2);
var _local4 = Selection;
Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex);
if (_local3 != undefined) {
_local2.scroll = _local6;
_local2.hscroll = _local3;
_local2.background = _local5;
}
}
function _onMouseDown(Void) {
bDrawFocus = false;
if (lastFocus != undefined) {
lastFocus.drawFocus(false);
}
mx.managers.SystemManager.idleFrames = 0;
var _local3 = Selection;
_local3.lastBeginIndex = Selection.getBeginIndex();
_local3.lastEndIndex = Selection.getEndIndex();
lastMouse.x = _root._xmouse;
lastMouse.y = _root._ymouse;
_root.localToGlobal(lastMouse);
}
function onMouseUp(Void) {
if (_visible) {
doLater(this, "mouseActivate");
}
}
function handleEvent(e) {
if (e.type == "reveal") {
mx.managers.SystemManager.activate(form);
} else {
mx.managers.SystemManager.deactivate(form);
}
}
static function enableFocusManagement() {
if (!initialized) {
initialized = true;
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
}
}
static var symbolName = "FocusManager";
static var symbolOwner = mx.managers.FocusManager;
static var version = "2.0.2.127";
var className = "FocusManager";
var bNeedFocus = false;
var bDrawFocus = false;
var defaultPushButtonEnabled = true;
var activated = true;
static var initialized = false;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 74 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class mx.skins.halo.FocusRect extends mx.skins.SkinElement
{
var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible;
function FocusRect () {
super();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function draw(o) {
o.adjustFocusRect();
}
function setSize(w, h, r, a, rectCol) {
_xscale = (_yscale = 100);
clear();
if (typeof(r) == "object") {
r.br = ((r.br > 2) ? (r.br - 2) : 0);
r.bl = ((r.bl > 2) ? (r.bl - 2) : 0);
r.tr = ((r.tr > 2) ? (r.tr - 2) : 0);
r.tl = ((r.tl > 2) ? (r.tl - 2) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
r.br = ((r.br > 1) ? (r.br + 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl + 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr + 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl + 1) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(1, 1, w - 2, h - 2, r);
r.br = ((r.br > 1) ? (r.br - 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl - 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr - 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl - 1) : 0);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
} else {
var _local5;
if (r != 0) {
_local5 = r - 2;
} else {
_local5 = 0;
}
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
beginFill(rectCol, a * 0.3);
if (r != 0) {
_local5 = r - 2;
r = r - 1;
} else {
_local5 = 0;
r = 0;
}
drawRoundRect(1, 1, w - 2, h - 2, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
}
}
function handleEvent(e) {
if (e.type == "unload") {
_visible = true;
} else if (e.type == "resize") {
e.target.adjustFocusRect();
} else if (e.type == "move") {
e.target.adjustFocusRect();
}
}
static function classConstruct() {
mx.core.UIComponent.prototype.drawFocus = function (focused) {
var _local2 = this._parent.focus_mc;
if (!focused) {
_local2._visible = false;
this.removeEventListener("unload", _local2);
this.removeEventListener("move", _local2);
this.removeEventListener("resize", _local2);
} else {
if (_local2 == undefined) {
_local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop);
_local2.tabEnabled = false;
this._parent.focus_mc = _local2;
} else {
_local2._visible = true;
}
_local2.draw(this);
if (_local2.getDepth() < this.getDepth()) {
_local2.setDepthAbove(this);
}
this.addEventListener("unload", _local2);
this.addEventListener("move", _local2);
this.addEventListener("resize", _local2);
}
};
mx.core.UIComponent.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect;
mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var DefaultsDependency = mx.skins.halo.Defaults;
static var UIComponentDependency = mx.core.UIComponent;
}
Symbol 75 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows
{
function OverlappedWindows () {
}
static function checkIdle(Void) {
if (mx.managers.SystemManager.idleFrames > 10) {
mx.managers.SystemManager.dispatchEvent({type:"idle"});
} else {
mx.managers.SystemManager.idleFrames++;
}
}
static function __addEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager.interval == undefined) {
mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100);
}
}
mx.managers.SystemManager._xAddEventListener(e, o, l);
}
static function __removeEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) {
clearInterval(mx.managers.SystemManager.interval);
}
} else {
mx.managers.SystemManager._xRemoveEventListener(e, o, l);
}
}
static function onMouseDown(Void) {
mx.managers.SystemManager.idleFrames = 0;
mx.managers.SystemManager.isMouseDown = true;
var _local5 = _root;
var _local3;
var _local8 = _root._xmouse;
var _local7 = _root._ymouse;
if (mx.managers.SystemManager.form.modalWindow == undefined) {
if (mx.managers.SystemManager.forms.length > 1) {
var _local6 = mx.managers.SystemManager.forms.length;
var _local4;
_local4 = 0;
while (_local4 < _local6) {
var _local2 = mx.managers.SystemManager.forms[_local4];
if (_local2._visible) {
if (_local2.hitTest(_local8, _local7)) {
if (_local3 == undefined) {
_local3 = _local2.getDepth();
_local5 = _local2;
} else if (_local3 < _local2.getDepth()) {
_local3 = _local2.getDepth();
_local5 = _local2;
}
}
}
_local4++;
}
if (_local5 != mx.managers.SystemManager.form) {
mx.managers.SystemManager.activate(_local5);
}
}
}
var _local9 = mx.managers.SystemManager.form;
_local9.focusManager._onMouseDown();
}
static function onMouseMove(Void) {
mx.managers.SystemManager.idleFrames = 0;
}
static function onMouseUp(Void) {
mx.managers.SystemManager.isMouseDown = false;
mx.managers.SystemManager.idleFrames = 0;
}
static function activate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local1 = mx.managers.SystemManager.form;
_local1.focusManager.deactivate();
}
}
mx.managers.SystemManager.form = f;
f.focusManager.activate();
}
static function deactivate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local5 = mx.managers.SystemManager.form;
_local5.focusManager.deactivate();
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
var _local2;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
_local1 = _local1 + 1;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
mx.managers.SystemManager.form = _local2;
break;
}
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
_local5 = mx.managers.SystemManager.form;
_local5.focusManager.activate();
}
}
}
static function addFocusManager(f) {
mx.managers.SystemManager.forms.push(f);
mx.managers.SystemManager.activate(f);
}
static function removeFocusManager(f) {
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
if (mx.managers.SystemManager.form == f) {
mx.managers.SystemManager.deactivate(f);
}
mx.managers.SystemManager.forms.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
static function enableOverlappedWindows() {
if (!initialized) {
initialized = true;
mx.managers.SystemManager.checkIdle = checkIdle;
mx.managers.SystemManager.__addEventListener = __addEventListener;
mx.managers.SystemManager.__removeEventListener = __removeEventListener;
mx.managers.SystemManager.onMouseDown = onMouseDown;
mx.managers.SystemManager.onMouseMove = onMouseMove;
mx.managers.SystemManager.onMouseUp = onMouseUp;
mx.managers.SystemManager.activate = activate;
mx.managers.SystemManager.deactivate = deactivate;
mx.managers.SystemManager.addFocusManager = addFocusManager;
mx.managers.SystemManager.removeFocusManager = removeFocusManager;
}
}
static var initialized = false;
static var SystemManagerDependency = mx.managers.SystemManager;
}
Symbol 76 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class mx.styles.CSSSetStyle
{
var styleName, stylecache, _color, setColor, invalidateStyle;
function CSSSetStyle () {
}
function _setStyle(styleProp, newValue) {
this[styleProp] = newValue;
if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) {
if (styleProp == "color") {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
}
_level0.changeTextStyleInChildren(styleProp);
return(undefined);
}
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local7 = mx.styles.StyleManager.colorNames.haloBlue;
var _local6 = mx.styles.StyleManager.colorNames.haloGreen;
var _local8 = mx.styles.StyleManager.colorNames.haloOrange;
var _local4 = {};
_local4[_local7] = 12188666 /* 0xB9FBFA */;
_local4[_local6] = 13500353 /* 0xCDFFC1 */;
_local4[_local8] = 16766319 /* 0xFFD56F */;
var _local5 = {};
_local5[_local7] = 13958653 /* 0xD4FDFD */;
_local5[_local6] = 14942166 /* 0xE3FFD6 */;
_local5[_local8] = 16772787 /* 0xFFEEB3 */;
var _local9 = _local4[newValue];
var _local10 = _local5[newValue];
if (_local9 == undefined) {
_local9 = newValue;
}
if (_local10 == undefined) {
_local10 = newValue;
}
setStyle("selectionColor", _local9);
setStyle("rollOverColor", _local10);
}
_level0.changeColorStyleInChildren(styleName, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
_level0.notifyStyleChangeInChildren(styleName, styleProp, newValue);
}
}
function changeTextStyleInChildren(styleProp) {
var _local4 = getTimer();
var _local5;
for (_local5 in this) {
var _local2 = this[_local5];
if (_local2._parent == this) {
if (_local2.searchKey != _local4) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache.tf;
delete _local2.stylecache[styleProp];
}
_local2.invalidateStyle(styleProp);
_local2.changeTextStyleInChildren(styleProp);
_local2.searchKey = _local4;
}
}
}
}
function changeColorStyleInChildren(sheetName, colorStyle, newValue) {
var _local6 = getTimer();
var _local7;
for (_local7 in this) {
var _local2 = this[_local7];
if (_local2._parent == this) {
if (_local2.searchKey != _local6) {
if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[colorStyle];
}
if (typeof(_local2._color) == "string") {
if (_local2._color == colorStyle) {
var _local4 = _local2.getStyle(colorStyle);
if (colorStyle == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = _local4;
}
}
_local2.setColor(_local4);
}
} else if (_local2._color[colorStyle] != undefined) {
if (typeof(_local2) != "movieclip") {
_local2._parent.invalidateStyle();
} else {
_local2.invalidateStyle(colorStyle);
}
}
}
_local2.changeColorStyleInChildren(sheetName, colorStyle, newValue);
_local2.searchKey = _local6;
}
}
}
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
var _local5 = getTimer();
var _local6;
for (_local6 in this) {
var _local2 = this[_local6];
if (_local2._parent == this) {
if (_local2.searchKey != _local5) {
if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[styleProp];
delete _local2.stylecache.tf;
}
delete _local2.enabledColor;
_local2.invalidateStyle(styleProp);
}
_local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
_local2.searchKey = _local5;
}
}
}
}
function setStyle(styleProp, newValue) {
if (stylecache != undefined) {
delete stylecache[styleProp];
delete stylecache.tf;
}
this[styleProp] = newValue;
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local10 = mx.styles.StyleManager.colorNames.haloBlue;
var _local9 = mx.styles.StyleManager.colorNames.haloGreen;
var _local11 = mx.styles.StyleManager.colorNames.haloOrange;
var _local6 = {};
_local6[_local10] = 12188666 /* 0xB9FBFA */;
_local6[_local9] = 13500353 /* 0xCDFFC1 */;
_local6[_local11] = 16766319 /* 0xFFD56F */;
var _local7 = {};
_local7[_local10] = 13958653 /* 0xD4FDFD */;
_local7[_local9] = 14942166 /* 0xE3FFD6 */;
_local7[_local11] = 16772787 /* 0xFFEEB3 */;
var _local12 = _local6[newValue];
var _local13 = _local7[newValue];
if (_local12 == undefined) {
_local12 = newValue;
}
if (_local13 == undefined) {
_local13 = newValue;
}
setStyle("selectionColor", _local12);
setStyle("rollOverColor", _local13);
}
if (typeof(_color) == "string") {
if (_color == styleProp) {
if (styleProp == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = newValue;
}
}
setColor(newValue);
}
} else if (_color[styleProp] != undefined) {
invalidateStyle(styleProp);
}
changeColorStyleInChildren(undefined, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
invalidateStyle(styleProp);
}
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) {
var _local8;
var _local5 = newValue;
if (styleProp == "styleName") {
_local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5));
_local5 = _local8.themeColor;
if (_local5 != undefined) {
_local8.rollOverColor = (_local8.selectionColor = _local5);
}
}
notifyStyleChangeInChildren(undefined, styleProp, newValue);
}
}
static function enableRunTimeCSS() {
}
static function classConstruct() {
var _local2 = MovieClip.prototype;
var _local3 = mx.styles.CSSSetStyle.prototype;
mx.styles.CSSStyleDeclaration.prototype.setStyle = _local3._setStyle;
_local2.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
_local2.changeColorStyleInChildren = _local3.changeColorStyleInChildren;
_local2.notifyStyleChangeInChildren = _local3.notifyStyleChangeInChildren;
_local2.setStyle = _local3.setStyle;
_global.ASSetPropFlags(_local2, "changeTextStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "changeColorStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "notifyStyleChangeInChildren", 1);
_global.ASSetPropFlags(_local2, "setStyle", 1);
var _local4 = TextField.prototype;
_local4.setStyle = _local2.setStyle;
_local4.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
}
Symbol 77 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class mx.core.ext.UIComponentExtensions
{
function UIComponentExtensions () {
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
TextField.prototype.setFocus = function () {
Selection.setFocus(this);
};
TextField.prototype.onSetFocus = function (oldFocus) {
if (this.tabEnabled != false) {
if (this.getFocusManager().bDrawFocus) {
this.drawFocus(true);
}
}
};
TextField.prototype.onKillFocus = function (oldFocus) {
if (this.tabEnabled != false) {
this.drawFocus(false);
}
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager;
mx.managers.OverlappedWindows.enableOverlappedWindows();
mx.styles.CSSSetStyle.enableRunTimeCSS();
mx.managers.FocusManager.enableFocusManagement();
}
static var bExtended = false;
static var UIComponentExtended = Extensions();
static var UIComponentDependency = mx.core.UIComponent;
static var FocusManagerDependency = mx.managers.FocusManager;
static var OverlappedWindowsDependency = mx.managers.OverlappedWindows;
}
Symbol 735 MovieClip Frame 1
stop();
Symbol 738 MovieClip Frame 49
stop();
Symbol 747 MovieClip Frame 1
var menu = (new com.dialogs.XmlMenu(this, 10, "rootMenu"));
menu.create(false);
Symbol 748 MovieClip Frame 34
stop();