Frame 1
this.PrBar.onMouseDown = function () {
this.useHandCursor = true;
};
_root.onEnterFrame = function () {
var _local3 = _root.getBytesLoaded();
trace("------------>" + _local3);
var _local4 = _root.getBytesTotal();
percs = Math.floor((_local3 * 100) / _local4);
trace("prercs: " + percs);
this.PrBar.gotoAndStop(percs);
this.PrBar.txt.text = percs + "%";
trace(this.PrBar._width);
if (percs >= 100) {
delete this.PrBar.onMouseDown;
delete _root.onEnterFrame;
gotoAndPlay (3);
}
};
stop();
Instance of Symbol 29 MovieClip [preloader] "PrBar" in Frame 1
on (release) {
getURL (Helper.BUY_LINK, "_blank");
}
Frame 3
if (Helper.MOCHI_SHOW_PRELOADER == true) {
mochi.as2.MochiAd.showPreGameAd({id:Helper.MOCHIID, res:Helper.GAME_RESOLUTION, ad_finished:function () {
gotoAndPlay (4);
}});
}
Frame 4
function __com_mochibot__(swfid, mc, lv, trk) {
trace("MOCHIBOT ACTIVATED!");
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);
}
if (Helper.HASMOCHIBOT == true) {
__com_mochibot__("ce23cc08", this, 10301, true);
}
Frame 5
new Root();
stop();
Symbol 11 MovieClip Frame 1
txt.text = XMLMaster.getInterfaceTexts(68);
Symbol 12 MovieClip Frame 75
stop();
Symbol 19 MovieClip [PlantMc] Frame 1
#initclip 91
Object.registerClass("PlantMc", Plant);
#endinitclip
m0.text = XMLMaster.getInterfaceTexts(73);
Symbol 790 MovieClip [__Packages.XMLMaster] Frame 0
class XMLMaster
{
static var str, xml;
function XMLMaster () {
if (Helper.LANGUAGE == "ENG") {
str = "<texts><t>Play</t><t>Options</t><t>Get full</t><t>Sound volume</t><t>Music volume</t><t>Menu</t><t>Play</t><t>Get</t><t>Continue</t><t>Total buildings</t><t>Money earned:</t><t>Time left:</t><t>Time bonus:</t><t>Total money</t><t>Service</t><t>Houses</t><t>Buildings</t><t>Goal</t><t>Build</t><t>Map</t><t>Earn money:</t><t>Build Norwood house</t><t>Build Walnut house</t><t>Build Water Tower</t><t>Build Power Plant</t><t>Build Garage</t><t>Build Bank</t><t>Upgrade</t><t>Upgrade Norwood house</t><t>Build Norwood houses x3</t><t>Resume</t><t>To main menu</t><t>Click on free lots to buy them.</t><t>Congratulations! Click lot to see all its options below the screen. Power Plants and Water Towers are prerequisites for constructing all houses and buildings.</t><t>Then choose the lot where you would like to build it.</t><t>This is the money you have currently. To finish a level, you have to complete all the level goals.</t><t>Rent</t><t>No money</t><t>No power</t><t>No water</t><t>To build a house you will need to buy a lot that is the right size for it.</t><t>Select the house available for construction from the Houses List that is located on the Control Panel in lower left hand corner of the screen.</t><t>Now, move your cursor to the lot that you just bought and click on it.</t><t>Once you have built a house, click on the key icon next to it.</t><t>Click a furniture icon at the bottom of the screen and then move your cursor up to the house.</t><t>Your goal is to fill the progress bar at the top in order to get top dollar for the house. Them press button Rent.</t><t>After leasing the house it will periodically give you rent but you must collect it on time. If the circular rent icon fills up you will miss out on the rent.</t><t>To construct your next building you will need to upgrade the Power Plant and Water Tower. The green bars indicate the amount energy and water are being produced.</t><t>The building needs to be repaired. Click on it. Then click the 'Repair Button' on the Services List on the Control Panel.</t><t>Now click the building that needed to be repaired.</t><t>You can upgrade your buildings. Click the building you want to improve. Then click the Upgrade Button located on the Services List on the Control Panel.</t><t>Move the cursor to the building that you want to improve.</t><t>When the cursor is over the building you will see the cost to upgrade it.</t><t>Can not be demolished</t><t>Norwood house</t><t>Walnut house</t><t>Power Plant</t><t>Water Tower</t><t>Upgrade</t><t>Garage</t><t>Bank</t><t>Repair</t><t>Demolish</t><t>Max upgrade reached</t><t>Restart</t><t>Are you sure?</t><t>Yes</t><t>No</t><t>Lot purchased</t><t>Level complete</t><t>You lose</t><t>Back</t><t>RENT</t><t>Sale:</t><t>Goal</t><t>Congratulations!</t><t>OK</t><t>More games</t></texts><link>http://realore.com/games/janesrealty/</link><buy>Download now to get:\n\n\n\t- Unique system of furniture disposition;\n\n\n\t- Different weather conditions;\n\n\n\t- Sims element;\n\n\n\t- More than 27 different levels;\n\n\n\t- 2 game modes; \n\n\n\t- over 10 unique buildings;\n\n</buy>";
} else if (Helper.LANGUAGE == "RUS") {
str = "<texts><t>\u0418\u0433\u0440\u0430\u0442\u044C</t><t>\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438</t><t>\u041F\u043E\u043B\u043D\u0430\u044F \u0432\u0435\u0440\u0441\u0438\u044F</t><t>\u0413\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C \u0437\u0432\u0443\u043A\u0430</t><t>\u0413\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C \u043C\u0443\u0437\u044B\u043A\u0438</t><t>\u041C\u0435\u043D\u044E</t><t>\u0418\u0433\u0440\u0430\u0442\u044C</t><t>\u0421\u043A\u0430\u0447\u0430\u0442\u044C</t><t>\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C</t><t>\u041F\u043E\u0441\u0442\u0440\u043E\u0435\u043A \u0432\u0441\u0435\u0433\u043E</t><t>\u0417\u0430\u0440\u0430\u0431\u043E\u0442\u0430\u043D\u043E:</t><t>\u0412\u0440\u0435\u043C\u0435\u043D\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C:</t><t>\u0411\u043E\u043D\u0443\u0441 \u0437\u0430 \u0432\u0440\u0435\u043C\u044F:</t><t>\u0414\u0435\u043D\u0435\u0433 \u0432\u0441\u0435\u0433\u043E</t><t>\u0423\u0441\u043B\u0443\u0433\u0438</t><t>\u0414\u043E\u043C\u0430</t><t>\u0417\u0434\u0430\u043D\u0438\u044F</t><t>\u0426\u0435\u043B\u044C</t><t>\u041F\u043E\u0441\u0442\u0440\u043E\u0438\u0442\u044C</t><t>\u041A\u0430\u0440\u0442\u0430</t><t>\u0417\u0430\u0440\u0430\u0431\u043E\u0442\u0430\u0442\u044C \u0434\u0435\u043D\u0435\u0433:</t><t>\u041F\u043E\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u0434\u0430\u0447\u043D\u044B\u0439 \u0434\u043E\u043C\u0438\u043A</t><t>\u041F\u043E\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u0431\u0443\u043D\u0433\u0430\u043B\u043E</t><t>\u041F\u043E\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u0432\u043E\u0434\u043E\u043D\u0430\u043F\u043E\u0440\u043D\u0443\u044E \u0431\u0430\u0448\u043D\u044E</t><t>\u041F\u043E\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u0441\u0442\u0430\u043D\u0446\u0438\u044E</t><t>\u041F\u043E\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u0433\u0430\u0440\u0430\u0436</t><t>\u041F\u043E\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u0431\u0430\u043D\u043A</t><t>\u0423\u043B\u0443\u0447\u0448\u0438\u0442\u044C</t><t>\u0423\u043B\u0443\u0447\u0448\u0438\u0442\u044C \u0434\u0430\u0447\u043D\u044B\u0439 \u0434\u043E\u043C\u0438\u043A</t><t>\u041F\u043E\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u0434\u0430\u0447\u043D\u044B\u0435 \u0434\u043E\u043C\u0438\u043A\u0438 x3</t><t>\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C</t><t>\u0413\u043B\u0430\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E</t><t>\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u0441\u0432\u043E\u0431\u043E\u0434\u043D\u044B\u0439 \u0443\u0447\u0430\u0441\u0442\u043E\u043A, \u0447\u0442\u043E\u0431\u044B \u043A\u0443\u043F\u0438\u0442\u044C \u0435\u0433\u043E.</t><t>\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u0441\u0442\u0430\u043D\u0446\u0438\u044F \u0438 \u0432\u043E\u0434\u043E\u043D\u0430\u043F\u043E\u0440\u043D\u0430\u044F \u0431\u0430\u0448\u043D\u044F - \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0435 \u0443\u0441\u043B\u043E\u0432\u0438\u0435 \u0434\u043B\u044F \u043F\u043E\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0441\u0435\u0445 \u0434\u043E\u043C\u043E\u0432 \u0438 \u0437\u0434\u0430\u043D\u0438\u0439.</t><t>\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0443\u0447\u0430\u0441\u0442\u043E\u043A, \u043D\u0430 \u043A\u043E\u0442\u043E\u0440\u043E\u043C \u0445\u043E\u0442\u0438\u0442\u0435 \u043F\u043E\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u0437\u0434\u0430\u043D\u0438\u0435.</t><t>\u042D\u0442\u043E \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0430\u0448\u0438\u0445 \u0434\u0435\u043D\u0435\u0433. \u0427\u0442\u043E\u0431\u044B \u043F\u0440\u043E\u0439\u0442\u0438 \u0443\u0440\u043E\u0432\u0435\u043D\u044C, \u0432\u044B \u0434\u043E\u043B\u0436\u043D\u044B \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0432\u0441\u0435 \u0446\u0435\u043B\u0438.</t><t>\u0420\u0435\u043D\u0442\u0430</t><t>\u041D\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0434\u0435\u043D\u0435\u0433</t><t>\u041D\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u0442\u0432\u0430</t><t>\u041D\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0432\u043E\u0434\u044B</t><t>\u0414\u043B\u044F \u043F\u043E\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0434\u043E\u043C\u0430 \u043A\u0443\u043F\u0438\u0442\u0435 \u0443\u0447\u0430\u0441\u0442\u043E\u043A \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0449\u0435\u0439 \u0444\u043E\u0440\u043C\u044B.</t><t>\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0439 \u0434\u043B\u044F \u0441\u0442\u0440\u043E\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430 \u0434\u043E\u043C \u0432 \u0440\u0430\u0437\u0434\u0435\u043B\u0435 \u00AB\u0414\u043E\u043C\u0430\u00BB, \u043E\u0442\u043A\u0440\u044B\u0432\u0448\u0435\u043C\u0441\u044F \u043D\u0430 \u043F\u0430\u043D\u0435\u043B\u0438 \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u044F.</t><t>\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0443\u0440\u0441\u043E\u0440 \u043D\u0430 \u043A\u0443\u043F\u043B\u0435\u043D\u043D\u044B\u0439 \u0443\u0447\u0430\u0441\u0442\u043E\u043A \u0438 \u043A\u043B\u0438\u043A\u043D\u0438\u0442\u0435 \u043C\u044B\u0448\u043A\u043E\u0439.</t><t>\u041F\u043E\u0441\u043B\u0435 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F \u043F\u043E\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043A\u043B\u0438\u043A\u043D\u0438\u0442\u0435 \u043F\u043E \u0437\u043D\u0430\u0447\u043A\u0443 \u00AB\u043A\u043B\u044E\u0447\u00BB \u043D\u0430\u0434 \u0434\u043E\u043C\u043E\u043C.</t><t>\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043B\u044E\u0431\u043E\u0439 \u043F\u0440\u0435\u0434\u043C\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u044C\u0435\u0440\u0430. \u0422\u0435\u043F\u0435\u0440\u044C \u043D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0443\u0440\u0441\u043E\u0440 \u0442\u0443\u0434\u0430, \u043A\u0443\u0434\u0430 \u0431\u044B \u0432\u044B \u0445\u043E\u0442\u0435\u043B\u0438 \u043F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u044D\u0442\u043E\u0442 \u043F\u0440\u0435\u0434\u043C\u0435\u0442.</t><t>\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435 \u0448\u043A\u0430\u043B\u0443 \u00AB\u0441\u0435\u0440\u0434\u0435\u0447\u0435\u043A\u00BB. \u0417\u0430\u0442\u0435\u043C \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043D\u043E\u043F\u043A\u0443 \u00AB\u0420\u0435\u043D\u0442\u0430\u00BB, \u043A\u043E\u0433\u0434\u0430 \u043E\u043D\u0430 \u0441\u0442\u0430\u043D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430.</t><t>\u0421 \u0434\u043E\u043C\u0430 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0441\u043E\u0431\u0438\u0440\u0430\u0442\u044C \u0440\u0435\u043D\u0442\u0443. \u0412\u044B \u0434\u043E\u043B\u0436\u043D\u044B \u0443\u0441\u043F\u0435\u0442\u044C \u0449\u0435\u043B\u043A\u043D\u0443\u0442\u044C \u043F\u043E \u044D\u0442\u043E\u043C\u0443 \u043A\u0440\u0443\u0433\u0443, \u043F\u043E\u043A\u0430 \u043E\u043D \u043F\u043E\u043B\u043D\u043E\u0441\u0442\u044C\u044E \u043D\u0435 \u0441\u0442\u0430\u043B \u043A\u0440\u0430\u0441\u043D\u044B\u043C.</t><t>\u0427\u0442\u043E\u0431\u044B \u043F\u043E\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0434\u043E\u043C, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0443\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u0435 \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0438 \u0432\u043E\u0434\u043E\u043D\u0430\u043F\u043E\u0440\u043D\u043E\u0439 \u0431\u0430\u0448\u043D\u0438.</t><t>\u041D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u043E\u0442\u0440\u0435\u043C\u043E\u043D\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0434\u0430\u043D\u0438\u0435. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043D\u043E\u043F\u043A\u0443 \u00AB\u0420\u0435\u043C\u043E\u043D\u0442\u00BB \u0432 \u043E\u0442\u043A\u0440\u044B\u0432\u0448\u0435\u043C\u0441\u044F \u0440\u0430\u0437\u0434\u0435\u043B\u0435 \u043F\u0430\u043D\u0435\u043B\u0438 \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u044F.</t><t>\u0422\u0435\u043F\u0435\u0440\u044C \u043A\u043B\u0438\u043A\u043D\u0438\u0442\u0435 \u043F\u043E \u0437\u0434\u0430\u043D\u0438\u044E, \u043F\u043E\u0434\u0430\u0432\u0448\u0435\u043C\u0443 \u0437\u0430\u044F\u0432\u043A\u0443.</t><t>\u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0443\u043B\u0443\u0447\u0448\u0430\u0442\u044C \u0437\u0434\u0430\u043D\u0438\u044F. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u043A\u043D\u043E\u043F\u043A\u0443 \u00AB\u0423\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u0435\u00BB \u0432 \u043E\u0442\u043A\u0440\u044B\u0432\u0448\u0435\u043C\u0441\u044F \u0440\u0430\u0437\u0434\u0435\u043B\u0435 \u043F\u0430\u043D\u0435\u043B\u0438 \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u044F.</t><t>\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0443\u0440\u0441\u043E\u0440 \u043D\u0430 \u0437\u0434\u0430\u043D\u0438\u0435, \u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u0443\u043B\u0443\u0447\u0448\u0438\u0442\u044C.</t><t>\u041F\u043E\u0441\u043B\u0435 \u043D\u0430\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u043A\u0443\u0440\u0441\u043E\u0440\u0430 \u043D\u0430 \u0437\u0434\u0430\u043D\u0438\u0435, \u043D\u0430 \u044D\u043A\u0440\u0430\u043D\u0435 \u043E\u0442\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u0441\u044F \u0441\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u044D\u0442\u043E\u0433\u043E \u0443\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u044F.</t><t>\u0414\u0435\u043C\u043E\u043D\u0442\u0430\u0436 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u0435\u043D</t><t>\u0414\u0430\u0447\u043D\u044B\u0439 \u0434\u043E\u043C\u0438\u043A</t><t>\u0411\u0443\u043D\u0433\u0430\u043B\u043E</t><t>\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u0441\u0442\u0430\u043D\u0446\u0438\u044F</t><t>\u0412\u043E\u0434. \u0431\u0430\u0448\u043D\u044F</t><t>\u0423\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u0435</t><t>\u0413\u0430\u0440\u0430\u0436</t><t>\u0411\u0430\u043D\u043A</t><t>\u0420\u0435\u043C\u043E\u043D\u0442</t><t>\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C</t><t>\u0423\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u0435 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E</t><t>\u0417\u0430\u043D\u043E\u0432\u043E</t><t>\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B?</t><t>\u0414\u0430</t><t>\u041D\u0435\u0442</t><t>\u0423\u0447\u0430\u0441\u0442\u043E\u043A \u043A\u0443\u043F\u043B\u0435\u043D</t><t>\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043F\u0440\u043E\u0439\u0434\u0435\u043D</t><t>\u0412\u044B \u043F\u0440\u043E\u0438\u0433\u0440\u0430\u043B\u0438</t><t>\u041D\u0430\u0437\u0430\u0434</t><t>\u0420\u0435\u043D\u0442\u0430</t><t>\u0426\u0435\u043D\u0430:</t><t>\u0426\u0435\u043B\u044C</t><t>\u041F\u043E\u0437\u0434\u0440\u0430\u0432\u043B\u044F\u0435\u043C!</t><t>\u0414\u0430</t><t>\u0415\u0449\u0435 \u0438\u0433\u0440\u044B</t></texts><link>http://realore.com/games/janesrealty/</link><buy>\u041E\u0441\u043E\u0431\u0435\u043D\u043D\u043E\u0441\u0442\u0438 \u043F\u043E\u043B\u043D\u043E\u0439 \u0432\u0435\u0440\u0441\u0438\u0438:\n\n\n\t- \u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u0438 \u0432\u044B\u0431\u043E\u0440\u0430\n\n\t \u0438 \u0440\u0430\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 \u043C\u0435\u0431\u0435\u043B\u0438;\n\n\n\t- \u0420\u0430\u0437\u043B\u0438\u0447\u043D\u044B\u0435 \u043F\u043E\u0433\u043E\u0434\u043D\u044B\u0435 \u0443\u0441\u043B\u043E\u0432\u0438\u044F;\n\n\n\t- \u0418\u0433\u0440\u0430 \u0432 \u0441\u0442\u0438\u043B\u0435 \u0421\u0438\u043C\u0441;\n\n\n\t- \u0411\u043E\u043B\u0435\u0435 27 \u0440\u0430\u0437\u043B\u0438\u0447\u043D\u044B\u0445 \u0443\u0440\u043E\u0432\u043D\u0435\u0439;\n\n\n\t- 2 \u0440\u0435\u0436\u0438\u043C\u0430 \u0438\u0433\u0440\u044B;\n\n\n\t- \u0421\u0432\u044B\u0448\u0435 10 \u0443\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0445 \u043F\u043E\u0441\u0442\u0440\u043E\u0435\u043A;</buy>";
}
xml = new XML(str);
trace("\u0425\u044C\u044E\u0441\u0442\u043E\u043D!! \u0425\u044C\u044E\u0441\u0442\u043E\u043D! \u0423 \u043D\u0430\u0441 \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0430!!!");
xml.ignoreWhite = true;
Main.createMainMenu();
}
static function getInterfaceTexts(id) {
return(xml.firstChild.childNodes[id].firstChild);
}
static function getLink() {
return(xml.childNodes[1].firstChild);
}
static function getBuyItText() {
return(xml.childNodes[2].firstChild);
}
}
Symbol 791 MovieClip [__Packages.Helper] Frame 0
class Helper
{
function Helper () {
}
static function GetIt() {
if (!EXT_URL) {
getURL (DNLDLINK, "_blank");
return(undefined);
}
var xml_ = new XML();
xml_.load("url_.xml");
xml_.onLoad = function () {
trace("upload external url");
getURL (xml_.lastChild.firstChild.nodeValue, "_blank");
};
}
static function inArray(aVal, array) {
trace((("Helper.inArray > aVal : " + aVal) + ", array : ") + array);
for (var _local3 in array) {
trace("key : " + _local3);
if (array[_local3] == aVal) {
return(true);
}
}
return(false);
}
static function getRoot() {
var _local2 = _root._url;
if (_local2.indexOf("file:") != -1) {
_local2 = "localFile";
}
return(_local2);
}
static var REALOREARRAY = new Array(3, 5, 7, 9, 11, 13);
static var GETFULLARRAY = new Array(2, 4, 7);
static var MOCHIARRAY = new Array();
static var GOTOPATH = "http://realore.com";
static var MOREGAMES = "http://realore.com";
static var ONSTIESPAM = "http://www.realore.ru/?utm_source=flash&utm_medium=cpc&utm_campaign=flash-back";
static var BUY_LINK = "http://www.regnow.com/softsell/nph-softsell.cgi?item=8813-59&affiliate=238747";
static var DOWNLOADPATH = "http://www.regnow.com/softsell/nph-softsell.cgi?item=8813-59&affiliate=238747";
static var LANGUAGE = "ENG";
static var EXT_URL = false;
static var MOCHI_SHOW_PRELOADER = false;
static var MOCHIID = "9e3789f5d25826b8";
static var HASMOCHIBOT = false;
static var GAME_RESOLUTION = "640x480";
static var INGAMECLICK = true;
static var GAMEID = "RealtyOnline";
static var ADSLINK = (((("http://realore.com/bitrix/redirect.php?event1=FLA_ADS&event2=" + getRoot()) + "&event3=") + GAMEID) + "&goto=") + escape(GOTOPATH);
static var DNLDLINK = DOWNLOADPATH;
}
Symbol 792 MovieClip [__Packages.Main] Frame 0
class Main
{
static var bankCars, gameMenu, mapMc, winCheckFunction, blockScreenMc, blockScreenMc2, houses, levelCompleteMc, gameLosed, statsWindow, timeBar, goalsScreen, monet, inGameMenu, topBarLink, interrierMc, tutorial, currentHouse, megaLevel, action, mainMenu, interval, level, garages, garage, bank, plantMc, waterMc, goals, break_int;
function Main () {
}
static function houseIsPaying(h) {
payingHouses.push(h);
if (!bankCars[0].busy) {
bankCars[0].update();
}
}
static function addMoney(num, notForStats) {
console("Adding money: " + String(num));
money = money + num;
if ((num > 0) && (!notForStats)) {
stats[1] = stats[1] + num;
}
gameMenu.moneyTXT.text = String(money);
updateButtons();
checkVictory();
}
static function showMap() {
mapMc = root.attachMovie("Map", "Map", root.getNextHighestDepth());
}
static function destroyMap() {
mapMc.swapDepths(301);
mapMc.removeMovieClip();
}
static function checkVictory() {
if (winCheckFunction()) {
console("YOU WIN MWAHAAHHAAH!!!11!!1!11");
blockScreen();
_global.setTimeout(function () {
Main.win();
}, 2000);
}
}
static function blockScreen() {
unblockScreen();
blockScreenMc = root.createEmptyMovieClip("blockScreen", root.getNextHighestDepth());
blockScreenMc._alpha = 0;
blockScreenMc.beginFill(0, 100);
blockScreenMc.moveTo(0, 0);
blockScreenMc.lineTo(800, 0);
blockScreenMc.lineTo(800, 800);
blockScreenMc.lineTo(0, 800);
blockScreenMc.lineTo(0, 0);
blockScreenMc.onRelease = function () {
};
}
static function blackScreen(f1, param1, f2, param2) {
blockScreenMc2 = root.createEmptyMovieClip("blockScreen2", root.getNextHighestDepth());
blockScreenMc2.beginFill(0, 100);
blockScreenMc2.moveTo(0, 0);
blockScreenMc2.lineTo(800, 0);
blockScreenMc2.lineTo(800, 800);
blockScreenMc2.lineTo(0, 800);
blockScreenMc2.lineTo(0, 0);
blockScreenMc2.onRelease = function () {
};
blockScreenMc2.k = BLACKSCREEN_SPEED;
blockScreenMc2._alpha = 1;
blockScreenMc2.onEnterFrame = function () {
this._alpha = this._alpha + this.k;
if (this._alpha >= 100) {
if (f1) {
f1(param1);
}
if (f2) {
f2(param2);
}
this.k = -Main.BLACKSCREEN_SPEED;
this.swapDepths(9999999);
}
if (this._alpha <= 0) {
delete this.onEnterFrame;
this.swapDepths(301);
removeMovieClip(this);
}
};
}
static function unblockScreen() {
blockScreenMc.swapDepths(301);
removeMovieClip(blockScreenMc);
}
static function win() {
if (gamePaused) {
return(undefined);
}
blockScreen();
LevelScript.oldHouses = LevelScript.thisLevelHouses.slice();
gamePaused = true;
var _local3;
_local3 = "LevelComplete";
if (currentLevel == 8) {
upgradesArr = [];
var _local2 = houses.length;
while (_local2--) {
upgradesArr[houses[_local2]._x] = houses[_local2].upgrades;
}
trace("UPGRADES" + upgradesArr);
}
levelCompleteMc = root.attachMovie(_local3, "levelComplete", root.getNextHighestDepth());
levelCompleteMc._x = 80;
levelCompleteMc._y = 240;
if (currentLevel == mapLevel) {
mapLevel++;
}
SoundMaster.addSound("levelWon");
SoundMaster.musicOff();
if (mapLevel == 10) {
mapLevel = 9;
getItScreen();
createMainMenu();
}
_global.setTimeout(function () {
Main.showStats();
gs.TweenMax.to(Main.blockScreenMc, 1, {_alpha:30});
}, 2000);
saveAll();
}
static function getScore() {
return(totalMoney);
}
static function getLevel() {
if (mapLevel) {
return(mapLevel);
}
return(1);
}
static function saveAll() {
}
static function getItScreen() {
root.attachMovie("buyIt", "getIt", root.getNextHighestDepth());
}
static function lose() {
if (gamePaused) {
return(undefined);
}
blockScreen();
gamePaused = true;
var _local2;
_local2 = "LevelLose";
levelCompleteMc = root.attachMovie(_local2, "levelComplete", root.getNextHighestDepth());
levelCompleteMc._x = 80;
levelCompleteMc._y = 240;
SoundMaster.addSound("levelLosed");
SoundMaster.musicOff();
_global.setTimeout(function () {
Main.unblockScreen();
Main.removeStats();
Main.destroyGame();
Main.showMap();
}, 5000);
}
static function showStats() {
var _local1;
if (gameLosed) {
_local1 = "lose";
} else {
_local1 = "stats";
}
statsWindow = root.attachMovie(_local1, "stats", root.getNextHighestDepth());
statsWindow._y = -700;
gs.TweenMax.to(statsWindow, 2, {_y:20});
}
static function removeStats() {
statsWindow.swapDepths(301);
statsWindow.removeMovieClip();
}
static function getInfo() {
var _local2 = stats[1];
var _local4 = stats[0];
var _local3 = timeBar.getNonUsedTime();
var _local1 = _local3 * 20;
if (_local2) {
totalMoney = totalMoney + _local2;
}
if (_local1) {
totalMoney = totalMoney + _local1;
}
return([_local4, _local2, _local3, _local1, totalMoney]);
}
static function updateBankCars() {
if (!bankCars.length) {
console("No bank car to collect rent");
return(undefined);
}
trace(9);
var _local1 = bankCars[0];
_local1.initBankCar();
}
static function rentHere(house) {
if (!bankCars.length) {
console("No bank car to collect rent");
return(undefined);
}
var _local1 = bankCars[0];
toCollectRent.push(house);
_local1.initBankCar();
}
static function showGoalsScreen() {
pause();
goalsScreen = root.attachMovie("goalsScreen", "goalsScreen", root.getNextHighestDepth());
}
static function hideGoalsScreen() {
goalsScreen.swapDepths(301);
goalsScreen.removeMovieClip();
}
static function addEffect(type, param1, param2) {
if (type == "monet") {
SoundMaster.addSound("rentGet");
console("Launch monet!");
var _local1 = root.getNextHighestDepth();
monet = root.attachMovie("monet", "monet" + _local1, _local1);
monet._x = param1;
monet._y = param2;
} else {
console("Unknown effect: " + type);
}
}
static function showInGameMenu() {
inGameMenu = root.attachMovie("IngameMenu", "IngameMenu", root.getNextHighestDepth());
}
static function hideInGameMenu() {
inGameMenu.swapDepths(301);
inGameMenu.removeMovieClip();
unpause();
}
static function addCar() {
var _local1 = root.getNextHighestDepth();
var _local2 = root.attachMovie("Car", "car" + _local1, _local1, {_x:CarTest.home.x, _y:CarTest.home.y});
cars.push(_local2);
_local2._alpha = 0;
mx.behaviors.DepthControl.bringToFront(gameMenu);
mx.behaviors.DepthControl.bringToFront(topBarLink);
}
static function addBankCar() {
var _local2 = root.getNextHighestDepth();
var _local1 = root.attachMovie("Car", "car" + _local2, _local2, {_x:CarTest.bankHome.x, _y:CarTest.bankHome.y});
_local1.initBankCar();
_local1.addCF = 8;
bankCars.push(_local1);
mx.behaviors.DepthControl.bringToFront(gameMenu);
mx.behaviors.DepthControl.bringToFront(topBarLink);
}
static function startDoInterface(houseType) {
if (interrierMc) {
console("Interface already open!");
return(undefined);
}
if (currentLevel == 3) {
tutorial.nextStep();
}
pause();
interrierMc = root.attachMovie("HouseInterrier", "HouseInterrier", root.getNextHighestDepth());
}
static function settingInterrierDone(hearts, fail, notSendCar) {
interrierMc.swapDepths(301);
removeMovieClip(interrierMc);
interrierMc = null;
if (currentLevel == 3) {
tutorial.level3Step = 3;
tutorial._visible = false;
}
unpause();
if (!fail) {
if (!notSendCar) {
currentHouse.startRaspakovka(hearts);
}
}
}
function afterInterLevel() {
trace("huuuara! It's alive!!!");
createGame(megaLevel);
}
static function selectLevel(num) {
if ((num < 1) || (num > 9)) {
console("Bad level. Probably... Level num: " + num);
}
currentLevelPoints = wayPointsLevel1;
if (num > 3) {
currentLevelPoints = wayPointsLevel2;
}
if (num > 6) {
currentLevelPoints = wayPointsLevel3;
}
if ((currentLevel != undefined) && ((num - currentLevel) != 1)) {
if (((num - currentLevel) == 0) && (action != "restart")) {
action = "restart";
selectLevel(currentLevel);
action = "";
return(undefined);
}
LevelScript.thisLevelHouses = [];
}
currentLevel = num;
if (Helper.inArray(getLevel(), Helper.MOCHIARRAY)) {
trace("------------------------------MOCHI ADS-----------------------------");
megaLevel = num;
mochi.as2.MochiAd.showInterLevelAd({id:Helper.MOCHIID, res:Helper.GAME_RESOLUTION, ad_finished:function () {
trace("Oh!");
Main.createGame(Main.megaLevel);
}});
} else if (Helper.inArray(getLevel(), Helper.REALOREARRAY)) {
trace("------------------------------REALORE ADS-------------------------------");
exArgs[0] = num;
mc_ADS.showIngameAds(root, createGame, Main, exArgs, undefined, undefined);
} else {
createGame(num);
}
}
static function createMainMenu() {
mainMenu = root.attachMovie("MainMenu", "mainMenu", root.getNextHighestDepth());
}
static function destroyMainMenu() {
mainMenu.swapDepths(301);
removeMovieClip(mainMenu);
}
static function setCursor(type, typeN) {
console("Setting cursor");
if (currentAction != "none") {
console("Shit happens");
clearInterval(interval);
}
var _local2 = root.attachMovie("pointerBuildings", "pointerBuildings", root.getNextHighestDepth());
_local2.addBuilding(type, typeN);
root.onMouseDown = function () {
Main.deleteCursor();
delete Main.root.onMouseDown;
Main.interval = _global.setTimeout(function () {
Main.actionReset();
}, 500);
};
}
static function actionReset() {
console("Interval action reset");
currentAction = "none";
}
static function deleteCursor() {
root.pointerBuildings.swapDepths(301);
removeMovieClip(root.pointerBuildings);
}
static function createGame(levelNum) {
Root.startSleepCheck();
level = new Levels(levelNum);
SoundMaster.musicOn();
}
static function destroyGame() {
Root.stopSleepCheck();
var _local3 = _root;
_local3.bg.swapDepths(301);
removeMovieClip(_local3.bg);
_local3.topBar.swapDepths(301);
removeMovieClip(_local3.topBar);
var _local2 = houses.length;
while (_local2--) {
houses[_local2].swapDepths(301);
removeMovieClip(houses[_local2]);
}
root.p0.swapDepths(301);
removeMovieClip(root.p0);
root.p1.swapDepths(301);
removeMovieClip(root.p1);
_local2 = garages.length;
while (_local2--) {
garages[_local2].swapDepths(301);
removeMovieClip(garages[_local2]);
}
garage.swapDepths(301);
garage.removeMovieClip();
bank.swapDepths(301);
bank.removeMovieClip();
_local2 = cars.length;
while (_local2--) {
cars[_local2].swapDepths(301);
removeMovieClip(cars[_local2]);
}
bankCars[0].swapDepths(301);
bankCars[0].removeMovieClip();
_local3.downMenu.swapDepths(301);
removeMovieClip(_local3.downMenu);
_local3.car.swapDepths(301);
removeMovieClip(_local3.car);
tutorial.swapDepths(301);
tutorial.removeMovieClip();
removeMovieClip(tutorial);
plantsBuilded = 0;
currentWater = 0;
maxWater = 0;
maxElectro = 0;
currentElectro = 0;
gamePaused = false;
plantMc = null;
waterMc = null;
topBarLink = null;
gameMenu = null;
cars = [];
houses = [];
money = 0;
garages = [];
goals = null;
garage = null;
bank = null;
SoundMaster.musicOff();
clearInterval(break_int);
break_int = null;
unblockScreen();
if (levelCompleteMc) {
levelCompleteMc.swapDepths(301);
removeMovieClip(levelCompleteMc);
}
}
static function console(str, console2) {
return(undefined);
}
static function sendCarTo(obj) {
if (!obj.carTo) {
console("Error: carTo:Point not terminated");
return(undefined);
}
var _local1;
var _local3 = cars.length;
_local1 = cars[0];
if (_local1.busy) {
_local1 = cars[1];
if ((_local1 != undefined) && (_local1.busy)) {
_local1 = cars[2];
if ((_local1 != undefined) && (_local1.busy)) {
return(null);
}
}
}
_local1.caller = obj;
_local1.moveCarTo(obj._x + obj.carTo.x, obj._y + obj.carTo.y);
updateButtons();
return(_local1);
}
static function createPopUpText(text, x, y, color) {
var _local2 = root.getNextHighestDepth();
var _local1 = root.attachMovie("PopUpText", "PUT" + _local2, _local2++);
_local1._x = x;
_local1._y = y;
if (!color) {
color = 1;
}
_local1.showText(text, color);
}
static function haveFreeCars() {
var _local2;
var _local1 = cars.length;
while (_local1--) {
if (!cars[_local1].busy) {
return(true);
}
}
return(false);
}
static function pause() {
gamePaused = true;
var _local2 = cars.length;
var _local1;
while (_local2--) {
_local1 = cars[_local2];
_local1.pause();
}
bankCars[0].pause();
_local2 = peoplesCars.length;
while (_local2--) {
_local1 = peoplesCars[_local2];
if (_local1 != undefined) {
_local1.pause();
}
}
}
static function unpause() {
gamePaused = false;
var _local2 = cars.length;
var _local1;
while (_local2--) {
_local1 = cars[_local2];
_local1.resume();
}
bankCars[0].resume();
_local2 = peoplesCars.length;
while (_local2--) {
_local1 = peoplesCars[_local2];
if (_local1 != undefined) {
_local1.resume();
}
}
}
static function somethingChanged() {
updateButtons();
checkVictory();
}
static function updateButtons() {
GameMenu.checkButtons();
}
static function selectItem() {
}
static function disableButton(num) {
if (!num) {
console("Main.as -> disableButton: num==0 or undefined");
}
if (num == 1) {
gameMenu.ps.disable();
} else if (num == 2) {
gameMenu.ws.disable();
}
}
static var CAR_SPEED = 300;
static var TICK_K = 1;
static var FEE_INTERVAL = 6000;
static var RENT_TIMER_SPEED = 500;
static var BLACKSCREEN_SPEED = 10;
static var EFFECTS_MONET_STARS_INTERVAL = 100;
static var VICTORY_CHECK_INTERVAL = 3000;
static var musicVolume = 80;
static var money = 15000;
static var currentAction = "none";
static var plantsBuilded = 0;
static var stats = [];
static var exArgs = [];
static var maxElectro = 0;
static var maxWater = 0;
static var currentElectro = 0;
static var currentWater = 0;
static var g32B = false;
static var consoleMc = _root.console;
static var cars = [];
static var h32U = 0;
static var gamePaused = false;
static var currentLevelPoints = [];
static var wayPointsLevel1 = [];
static var wayPointsLevel2 = [];
static var wayPointsLevel3 = [];
static var currentLevel = 0;
static var root = _root;
static var housesBuilded = [];
static var soundVolume = 100;
static var showAd = false;
static var peoplesCars = [];
static var payingHouses = [];
static var upgradesArr = [];
static var mapLevel = 1;
static var forRestart = [];
static var cookie = SharedObject.getLocal();
static var totalMoney = 0;
static var toCollectRent = [];
static var addRandom = 0;
}
Symbol 793 MovieClip [__Packages.TimeBar] Frame 0
class TimeBar extends MovieClip
{
var stop, currentPosition, tick, interval, gotoAndStop;
function TimeBar () {
super();
Main.timeBar = this;
stop();
}
function init(time) {
currentPosition = 0;
Main.console("Initing time bar. Time: " + time);
Main.levelTime = time;
tick = 100 / time;
interval = setInterval(this, "tick_func", 1000);
}
function tick_func() {
if (Main.gamePaused) {
return(undefined);
}
currentPosition = currentPosition + tick;
if (currentPosition >= 100) {
gotoAndStop(100);
clearInterval(interval);
Main.lose();
} else {
gotoAndStop(Math.round(currentPosition));
}
}
function getNonUsedTime() {
return(Math.round((100 - Math.round(currentPosition)) / tick));
}
}
Symbol 794 MovieClip [__Packages.Garage] Frame 0
class Garage extends MovieClip
{
var carTo, stop, onRelease, nextFrame, lpMc, myTimer, attachMovie, thisAction, car, _alpha, gotoAndStop, _x, _y;
function Garage () {
super();
carTo = new flash.geom.Point(45, 110);
stop();
onRelease = function () {
if (Main.currentAction == "demolish") {
Main.createPopUpText(XMLMaster.getInterfaceTexts(53), this._x, this._y, 16711680);
return(undefined);
}
if (!this.sold) {
if (Main.money < 1500) {
Main.console("No money");
Main.createPopUpText(XMLMaster.getInterfaceTexts(37), this._x, this._y, 16711680);
return(undefined);
}
SoundMaster.addSound("lotBuy");
Main.addMoney(-1500);
this.sold = true;
LevelScript.thisLevelHouses.push([this._x, this._y, "g"]);
this.nextFrame();
Main.console("Lot purchased");
Main.currentAction = "none";
return(undefined);
}
if (!Main.haveFreeCars()) {
Main.console("No free cars");
return(undefined);
}
if ((Main.currentAction != "garage") && (Main.currentAction != "bank")) {
Main.gameMenu.selectO3();
Main.console("No action selected");
return(undefined);
}
if (this.thisType > 0) {
Main.console("Garage already built");
return(undefined);
}
if (Main.currentAction == "garage") {
this.thisType = 1;
} else {
this.thisType = 2;
}
if (Main.money < Garage.cost[this.thisType - 1]) {
this.thisType = 0;
Main.createPopUpText(XMLMaster.getInterfaceTexts(37), this._x, this._y, 16711680);
Main.console("No money");
return(undefined);
}
var _local3 = Garage.electroNeed[this.thisType - 1] + Main.currentElectro;
var _local2 = Garage.waterNeed[this.thisType - 1] + Main.currentWater;
if (_local3 > Main.maxElectro) {
Main.console((("Electro: " + String(_local3)) + "/") + String(Main.maxElectro));
this.thisType = 0;
return(undefined);
}
if (_local2 > Main.maxWater) {
Main.console((("Water: " + String(_local2)) + "/") + String(Main.maxWater));
this.thisType = 0;
return(undefined);
}
Main.addMoney(-Garage.cost[this.thisType - 1]);
this.thisAction = "build";
SoundMaster.addSound("objectSet");
if (this.thisType == 1) {
Main.garage = this;
} else {
Main.bank = this;
}
this.car = Main.sendCarTo(this);
};
}
function instantBuy() {
if (sold) {
return(undefined);
}
sold = true;
nextFrame();
lpMc.gotoAndStop(75);
}
function createTimer(type, fps) {
if (!type) {
type = 0;
}
if (!fps) {
fps = 20;
}
myTimer = attachMovie("CircleTimer", "myTimer", 1);
myTimer._x = 20;
myTimer._y = 20;
myTimer.setTimer(type, fps);
}
function timerComplete() {
if (thisAction == "build") {
if (Main.currentLevel == 8) {
Main.g32B = true;
}
car.freeCar();
_alpha = 0;
gs.TweenMax.to(this, 1, {_alpha:100});
gotoAndStop(thisType + 2);
Main.stats[0]++;
build = true;
var _local3 = electroNeed[thisType - 1] + Main.currentElectro;
var _local2 = waterNeed[thisType - 1] + Main.currentWater;
Main.currentElectro = _local3;
Main.currentWater = _local2;
if (thisType == 1) {
Main.console("Build garage finished");
Main.console("Adding 1 car");
CarTest.home = new flash.geom.Point(_x + carTo.x, _y + carTo.y);
Main.addCar();
} else {
Main.console("Build bank finished");
Main.console("Adding 1 bank car");
Main.addBankCar();
CarTest.bankHome = new flash.geom.Point(_x + carTo.x, _y + carTo.y);
}
SoundMaster.addSound("eventDone");
Main.somethingChanged();
}
}
function instantBuild(type) {
_alpha = 0;
gs.TweenMax.to(this, 1, {_alpha:100});
gotoAndStop(type + 2);
thisType = type;
sold = true;
var _local3 = electroNeed[thisType - 1] + Main.currentElectro;
var _local2 = waterNeed[thisType - 1] + Main.currentWater;
Main.currentElectro = _local3;
Main.currentWater = _local2;
if (thisType == 1) {
Main.addCar();
CarTest.home = new flash.geom.Point(_x + carTo.x, _y + carTo.y);
} else {
Main.addBankCar();
CarTest.bankHome = new flash.geom.Point(_x + carTo.x, _y + carTo.y);
}
build = true;
}
function carArrived() {
SoundMaster.addSound("buildingStart");
createTimer(0, 20);
}
var sold = false;
var thisType = 0;
static var electroNeed = [12, 10];
static var waterNeed = [12, 10];
var build = false;
static var cost = [7000, 10000];
}
Symbol 795 MovieClip [__Packages.SoundMaster] Frame 0
class SoundMaster extends Sound
{
static var soundObj, music, musicObj;
function SoundMaster () {
super();
}
static function addSound(id) {
var _local1 = new Sound(soundObj);
_local1.attachSound(id);
_local1.setVolume(Main.soundVolume);
_local1.start();
}
static function musicOn() {
if (music) {
music.stop();
delete music;
}
music = new Sound(musicObj);
music.attachSound("bgm");
updateVolume();
music.start(0, 999999);
}
static function musicOff() {
music.stop();
delete music;
}
static function updateVolume() {
music.setVolume(Main.musicVolume);
if (Main.musicVolume < 5) {
music.setVolume(0);
}
}
static function init() {
musicObj = Main.root.createEmptyMovieClip("musicObj", Main.root.getNextHighestDepth());
soundObj = Main.root.createEmptyMovieClip("soundObj", Main.root.getNextHighestDepth());
}
}
Symbol 796 MovieClip [__Packages.LevelScript] Frame 0
class LevelScript
{
var startIniting, levelNumber;
function LevelScript () {
}
function addMoney(num) {
Main.addMoney(num, true);
}
function addPlant(x, y, plantType) {
if ((!x) || (!y)) {
throw new Error("Level script error: addPlant. Not all parametrs specified");
return(undefined);
}
Main.console((("Level script: adding plant. _x: " + x) + ", _y") + y);
if (!startIniting) {
SoundMaster.addSound("zoneAdd");
}
var _local3 = Main.root;
var _local4 = _local3.getNextHighestDepth();
var _local5 = ((_local3.p0 == undefined) ? "p0" : "p1");
var _local2 = _local3.attachMovie("PlantMc", _local5, _local4, {_x:x, _y:y});
if (plantType) {
Main.console("Level script: instant build plant. Type: " + plantType);
_local2.instantBuild(plantType);
} else {
_local2._alpha = 0;
gs.TweenMax.to(_local2, 1, {_alpha:100});
}
}
function addLot(x, y, t) {
if ((!x) || (!y)) {
throw new Error("Level script error: addLot. Not all parametrs specified");
return(undefined);
}
var _local2 = Main.houses.length;
while (_local2--) {
if ((Main.houses[_local2]._x == x) && (Main.houses[_local2]._y == y)) {
trace("!!!");
return(undefined);
}
}
if (!startIniting) {
SoundMaster.addSound("zoneAdd");
}
var _local6 = Main.root;
var _local5 = _local6.getNextHighestDepth();
var _local9 = _local6.attachMovie("House", "h" + _local5, _local5, {_x:x, _y:y});
}
function addHouse(x, y, houseType, withInterrier, upgrades) {
if ((!x) || (!y)) {
throw new Error("Level script error: addHouse. Not all parametrs specified");
return(undefined);
}
var _local2 = Main.houses.length;
while (_local2--) {
trace(Main.houses[_local2]._x);
if ((Main.houses[_local2]._x == x) && (Main.houses[_local2]._y == y)) {
trace("!!!");
return(null);
}
}
Main.console((("Level script: adding house. _x: " + x) + ", _y") + y);
if (!startIniting) {
SoundMaster.addSound("zoneAdd");
}
var _local9 = Main.root;
var _local6 = _local9.getNextHighestDepth();
var _local5 = _local9.attachMovie("House", "h" + _local6, _local6, {_x:x, _y:y});
Main.houses.push(_local5);
if (houseType) {
Main.console("Level script: instant build house. Type: " + houseType);
if (!upgrades) {
upgrades = 0;
}
if (withInterrier) {
_local5.instantBuild(houseType, true, upgrades);
} else {
_local5.instantBuild(houseType, false, upgrades);
}
} else {
_local5._alpha = 0;
gs.TweenMax.to(_local5, 1, {_alpha:100});
}
return(_local5);
}
function addGarage(x, y, garageType) {
if ((!x) || (!y)) {
throw new Error("Level script error: addHouse. Not all parametrs specified");
return(undefined);
}
Main.console((("Level script: adding garage. _x: " + x) + ", _y") + y);
if (!startIniting) {
SoundMaster.addSound("zoneAdd");
}
var _local4 = Main.root;
var _local3 = _local4.getNextHighestDepth();
var _local2 = _local4.attachMovie("Garage", "g" + _local3, _local3, {_x:x, _y:y});
Main.garages.push(_local2);
if (garageType) {
_local2.instantBuild(garageType);
} else {
_local2._alpha = 0;
gs.TweenMax.to(_local2, 1, {_alpha:100});
}
}
function createLevelEnds(wictoryFunction) {
trace(oldHouses);
if (Main.action != "restart") {
oldHouses = thisLevelHouses.slice();
}
var _local4 = _root;
var _local5 = _local4.getNextHighestDepth();
Main.gameMenu = _local4.attachMovie("Menu", "downMenu", _local5++, {_x:0, _y:340});
Main.addCar();
Main.addMoney(0);
Main.updateButtons();
Main.unblockScreen();
mx.behaviors.DepthControl.bringToFront(Main.root.consoleText);
startIniting = false;
if (levelNumber > 3) {
Main.showAd = true;
}
var _local3 = Main.cars.length;
while (_local3--) {
mx.behaviors.DepthControl.bringToFront(Main.cars[_local3]);
}
mx.behaviors.DepthControl.bringToFront(Main.gameMenu);
mx.behaviors.DepthControl.bringToFront(Main.topBarLink);
Main.pause();
if ((Main.currentLevel <= 3) || (Main.currentLevel == 7)) {
Main.tutorial = Main.root.attachMovie("tutorial", "tutorial", Main.root.getNextHighestDepth());
Main.tutorial.selectLevelTutorial(Main.currentLevel);
}
addBrakeChance(levelNumber);
thisLevelHouses = [];
_root.attachMovie("empty", "WPHolder", _root.getNextHighestDepth());
mx.behaviors.DepthControl.bringToFront(Main.gameMenu);
}
function createLevelBegins(levelNum) {
if (levelNum) {
levelNumber = levelNum;
currentLevelBgFrame = 1;
if (levelNum > 3) {
currentLevelBgFrame = 2;
}
if (levelNum > 6) {
currentLevelBgFrame = 3;
}
}
var _local4 = _root;
if (Main.mapMc) {
Main.destroyMap();
}
Main.forRestart = thisLevelHouses.slice();
CarTest.home = new flash.geom.Point(700, 300);
var _local5 = _local4.getNextHighestDepth();
Main.bg = _local4.attachMovie("Background", "bg", _local5++);
CarTest.setLevelNumber(currentLevelBgFrame);
_local4.attachMovie("TopBar", "topBar", _local5++);
_local4.bg.gotoAndStop(currentLevelBgFrame);
Main.money = 0;
Main.houses = [];
Main.cars = [];
Main.peoplesCars = [];
Main.garages = [];
Main.plantsBuilded = 0;
Main.currentWater = 0;
Main.maxWater = 0;
Main.maxElectro = 0;
Main.currentElectro = 0;
Main.gamePaused = false;
Main.plantMc = null;
Main.waterMc = null;
Main.bankCars = [];
Main.stats[0] = 0;
Main.stats[1] = 0;
Main.goals.reset();
if (((levelNum == 4) || (levelNum == 7)) || (levelNum == 1)) {
thisLevelHouses = [];
}
if (Main.action == "restart") {
thisLevelHouses = oldHouses.slice();
}
startIniting = true;
}
function parseOldBuildings(levelNum) {
if ((levelNum <= 4) || (levelNum == 7)) {
return(undefined);
}
var _local3 = Main.housesBuilded[levelNum - 1];
var _local2 = _local3.length;
while (_local2--) {
if (_local3[_local2][2] == "h") {
addHouse(_local3[_local2][0], _local3[_local2][1], _local3[_local2][3], true);
} else if (_local3[_local2][2] == "p") {
addPlant(_local3[_local2][0], _local3[_local2][1], _local3[_local2][3]);
}
}
}
function addBrakeChance(chance) {
if ((Main.currentLevel <= 3) || (Main.currentLevel == 7)) {
return(undefined);
}
if (Main.break_int) {
clearInterval(Main.break_int);
}
Main.break_int = setInterval(this, "brakeSomething", Math.round(30000 / chance));
}
function brakeSomething() {
if (Main.gamePaused) {
return(undefined);
}
if (Math.random() < 0.1) {
var _local1 = Main.houses[random(Main.houses.length)];
if (((_local1.price && (!_local1.broked)) && (!_local1.paying)) && (!_local1.myTimer)) {
_local1.brake();
}
}
}
var currentLevelBgFrame = 1;
static var thisLevelHouses = [];
static var oldHouses = [];
static var byedLots = [];
}
Symbol 797 MovieClip [__Packages.gs.TweenLite] Frame 0
class gs.TweenLite
{
static var _e, _classInitted, currentTime, _gcInterval, overwriteManager;
var vars, duration, delay, combinedTimeScale, forceActive, target, ease, tweens, _subTweens, _hst, initted, initTime, startTime, endTargetID, _hasUpdate, gc, started;
function TweenLite ($target, $duration, $vars) {
if ((_e._visible != false) || (!_classInitted)) {
currentTime = getTimer();
var _local3 = 999;
while (_root.getInstanceAtDepth(_local3) != undefined) {
_local3++;
}
_e = _root.createEmptyMovieClip("__tweenLite_mc", _local3);
_e._visible = false;
clearInterval(_gcInterval);
_gcInterval = setInterval(killGarbage, 2000);
_e.onEnterFrame = executeAll;
if (overwriteManager == undefined) {
overwriteManager = {mode:1, enabled:false};
}
_classInitted = true;
}
vars = $vars;
duration = $duration || 0.001;
delay = $vars.delay || 0;
combinedTimeScale = $vars.timeScale || 1;
forceActive = ($duration == 0) && (delay == 0);
target = $target;
if (typeof(vars.ease) != "function") {
vars.ease = defaultEase;
}
if (vars.easeParams != undefined) {
vars.proxiedEase = vars.ease;
vars.ease = easeProxy;
}
ease = vars.ease;
if (typeof(vars.autoAlpha) == "number") {
vars._alpha = vars.autoAlpha;
vars._visible = vars._alpha > 0;
}
tweens = [];
_subTweens = [];
_hst = (initted = false);
initTime = currentTime;
startTime = initTime + (delay * 1000);
endTargetID = getID($target, true);
var _local6 = ((($vars.overwrite == undefined) || ((!overwriteManager.enabled) && ($vars.overwrite > 1))) ? (overwriteManager.mode) : (Number($vars.overwrite)));
if ((_local6 == 1) && ($target != undefined)) {
delete masterList[endTargetID];
masterList[endTargetID] = {target:$target, tweens:[]};
}
masterList[endTargetID].tweens.push(this);
if (forceActive || ((vars.runBackwards == true) && (vars.renderOnStart != true))) {
initTweenVals();
if (forceActive) {
render(startTime + 1);
} else {
render(startTime);
}
if ((vars._visible != undefined) && (vars.runBackwards == true)) {
target._visible = vars._visible;
}
}
}
function initTweenVals($hrp, $reservedProps) {
var _local6 = typeof(target) == "movieclip";
var _local2;
var _local3;
if (($hrp != true) && (overwriteManager.enabled)) {
overwriteManager.manageOverwrites(this, masterList[endTargetID].tweens);
}
if (target instanceof Array) {
var _local5 = vars.endArray || ([]);
_local3 = 0;
while (_local3 < _local5.length) {
if ((target[_local3] != _local5[_local3]) && (target[_local3] != undefined)) {
tweens[tweens.length] = [target, _local3.toString(), target[_local3], _local5[_local3] - target[_local3], _local3.toString()];
}
_local3++;
}
} else {
if (((vars.tint != undefined) || (vars.removeTint == true)) && (_local6 || (target instanceof TextField))) {
var _local10 = new Color(target);
var _local7 = vars._alpha;
if (_local7 != undefined) {
delete vars._alpha;
} else {
_local7 = target._alpha;
}
if (((vars.removeTint == true) || (vars.tint == null)) || (vars.tint == "")) {
addSubTween("tint", tintProxy, _local10.getTransform(), {rb:0, gb:0, bb:0, ab:0, ra:_local7, ga:_local7, ba:_local7, aa:_local7}, {color:_local10});
} else {
addSubTween("tint", tintProxy, _local10.getTransform(), {rb:vars.tint >> 16, gb:(vars.tint >> 8) & 255, bb:vars.tint & 255, ra:0, ga:0, ba:0, aa:_local7}, {color:_local10});
}
}
if ((vars.frame != undefined) && (_local6)) {
addSubTween("frame", frameProxy, {frame:target._currentframe}, {frame:vars.frame}, {mc:target});
}
if ((vars.volume != undefined) && (_local6 || (target instanceof Sound))) {
var _local11;
if (_local6) {
_local11 = new Sound(target);
} else {
_local11 = Sound(target);
}
addSubTween("volume", volumeProxy, {volume:_local11.getVolume()}, {volume:vars.volume}, {sound:_local11});
}
if ((vars._visible != undefined) && (_local6 || (target instanceof TextField))) {
addSubTween("_visible", visibleProxy, {}, {}, {tween:this});
}
for (_local2 in vars) {
if ((((((((((((((((((((_local2 == "ease") || (_local2 == "delay")) || (_local2 == "overwrite")) || (_local2 == "onComplete")) || (_local2 == "onCompleteParams")) || (_local2 == "onCompleteScope")) || (_local2 == "runBackwards")) || (_local2 == "onUpdate")) || (_local2 == "onUpdateParams")) || (_local2 == "onUpdateScope")) || (_local2 == "persist")) || (_local2 == "volume")) || ((_local2 == "timeScale") && (!(target instanceof gs.TweenLite)))) || (_local2 == "onStart")) || (_local2 == "onStartParams")) || (_local2 == "onStartScope")) || (_local2 == "renderOnStart")) || (_local2 == "proxiedEase")) || (_local2 == "easeParams")) || ($hrp && ($reservedProps.indexOf((" " + _local2) + " ") != -1))) {
} else if ((!(_local6 && (((((_local2 == "_visible") || (_local2 == "autoAlpha")) || (_local2 == "tint")) || (_local2 == "removeTint")) || (_local2 == "frame")))) && (target[_local2] != undefined)) {
if (typeof(vars[_local2]) == "number") {
tweens[tweens.length] = [target, _local2, target[_local2], vars[_local2] - target[_local2], _local2];
} else {
tweens[tweens.length] = [target, _local2, target[_local2], Number(vars[_local2]), _local2];
}
}
}
}
if (vars.runBackwards == true) {
var _local4;
_local3 = tweens.length - 1;
while (_local3 > -1) {
_local4 = tweens[_local3];
_local4[2] = _local4[2] + _local4[3];
_local4[3] = _local4[3] * -1;
_local3--;
}
}
if (vars.onUpdate != null) {
_hasUpdate = true;
}
initted = true;
}
function addSubTween($name, $proxy, $target, $props, $info) {
_subTweens[_subTweens.length] = {name:$name, proxy:$proxy, target:$target, info:$info};
for (var _local5 in $props) {
if (typeof($props[_local5]) == "number") {
tweens[tweens.length] = [$target, _local5, $target[_local5], $props[_local5] - $target[_local5], $name];
} else {
tweens[tweens.length] = [$target, _local5, $target[_local5], Number($props[_local5]), $name];
}
}
_hst = true;
}
static function to($target, $duration, $vars) {
return(new gs.TweenLite($target, $duration, $vars));
}
static function from($target, $duration, $vars) {
$vars.runBackwards = true;
return(new gs.TweenLite($target, $duration, $vars));
}
static function delayedCall($delay, $onComplete, $onCompleteParams, $onCompleteScope) {
return(new gs.TweenLite($onComplete, 0, {delay:$delay, onComplete:$onComplete, onCompleteParams:$onCompleteParams, onCompleteScope:$onCompleteScope, overwrite:0}));
}
function render($t) {
var _local4 = ($t - startTime) / 1000;
var _local5;
var _local3;
var _local2;
if (_local4 >= duration) {
_local4 = duration;
_local5 = (((ease == vars.ease) || (duration == 0.001)) ? 1 : 0);
} else {
_local5 = ease(_local4, 0, 1, duration);
}
_local2 = tweens.length - 1;
while (_local2 > -1) {
_local3 = tweens[_local2];
_local3[0][_local3[1]] = _local3[2] + (_local5 * _local3[3]);
_local2--;
}
if (_hst) {
_local2 = _subTweens.length - 1;
while (_local2 > -1) {
_subTweens[_local2].proxy(_subTweens[_local2], _local4);
_local2--;
}
}
if (_hasUpdate) {
vars.onUpdate.apply(vars.onUpdateScope, vars.onUpdateParams);
}
if (_local4 == duration) {
complete(true);
}
}
static function executeAll() {
var _local3 = (currentTime = getTimer());
var _local4 = masterList;
var _local5;
var _local2;
var _local1;
for (_local5 in _local4) {
_local2 = _local4[_local5].tweens;
_local1 = _local2.length - 1;
while (_local1 > -1) {
if (_local2[_local1].active) {
_local2[_local1].render(_local3);
}
_local1--;
}
}
}
function complete($skipRender) {
if ($skipRender != true) {
if (!initted) {
initTweenVals();
}
startTime = currentTime - ((duration * 1000) / combinedTimeScale);
render(currentTime);
return(undefined);
}
if (vars.persist != true) {
enabled = (false);
}
if (vars.onComplete) {
vars.onComplete.apply(vars.onCompleteScope, vars.onCompleteParams);
}
}
static function removeTween($t, $clear) {
if ($clear != false) {
$t.clear();
}
$t.__set__enabled(false);
}
function clear() {
tweens = [];
_subTweens = [];
vars = {};
_hst = (_hasUpdate = false);
}
static function killTweensOf($target, $complete) {
var _local5 = getID($target, true);
var _local3 = masterList[_local5];
var _local2;
var _local1;
if (_local3 != undefined) {
_local2 = _local3.length - 1;
while (_local2 > -1) {
_local1 = _local3[_local2];
if ($complete && (!_local1.gc)) {
_local1.complete(false);
}
_local1.clear();
_local2--;
}
delete masterList[_local5];
}
}
function killVars($vars) {
if (overwriteManager.enabled) {
overwriteManager.killVars($vars, vars, tweens, _subTweens, []);
}
}
static function getID($target, $lookup) {
var _local3;
if ($lookup) {
var _local1 = masterList;
if (typeof($target) == "movieclip") {
if (_local1[String($target)] != undefined) {
return(String($target));
}
_local3 = String($target);
masterList[_local3] = {target:$target, tweens:[]};
return(_local3);
}
for (var _local4 in _local1) {
if (_local1[_local4].target == $target) {
return(_local4);
}
}
}
_cnt++;
_local3 = "t" + _cnt;
masterList[_local3] = {target:$target, tweens:[]};
return(_local3);
}
static function killGarbage() {
var _local3 = masterList;
var _local4;
var _local5;
var _local2;
var _local1;
for (_local4 in _local3) {
_local2 = _local3[_local4].tweens;
_local1 = _local2.length - 1;
while (_local1 > -1) {
if (_local2[_local1].gc) {
_local2.splice(_local1, 1);
}
_local1--;
}
if (_local2.length == 0) {
delete _local3[_local4];
}
}
}
static function defaultEase($t, $b, $c, $d) {
$t = $t / $d;
return((((-$c) * $t) * ($t - 2)) + $b);
}
function easeProxy($t, $b, $c, $d) {
var _local3 = this;
return(_local3.proxiedEase.apply(null, arguments.concat(_local3.easeParams)));
}
static function tintProxy($o) {
$o.info.color.setTransform($o.target);
}
static function frameProxy($o) {
$o.info.mc.gotoAndStop(Math.round($o.target.frame));
}
static function volumeProxy($o) {
$o.info.sound.setVolume($o.target.volume);
}
static function visibleProxy($o, $time) {
var _local1 = $o.info.tween;
if (_local1.duration == $time) {
if ((_local1.vars.runBackwards != true) && (_local1.ease == _local1.vars.ease)) {
_local1.target._visible = _local1.vars._visible;
}
} else if (_local1.target._visible != true) {
_local1.target._visible = true;
}
}
function get active() {
if (forceActive) {
return(true);
}
if (gc) {
return(false);
}
if (currentTime >= startTime) {
started = (forceActive = true);
if (!initted) {
initTweenVals();
}
if (duration == 0.001) {
startTime = startTime - 1;
}
if (vars.onStart != undefined) {
vars.onStart.apply(vars.onStartScope, vars.onStartParams);
}
return(true);
}
return(false);
}
function get enabled() {
return(!gc);
}
function set enabled($b) {
if ($b) {
if (masterList[endTargetID] == undefined) {
masterList[endTargetID] = {target:target, tweens:[this]};
} else {
var _local3 = masterList[endTargetID].tweens;
var _local4;
var _local2;
_local2 = _local3.length - 1;
while (_local2 > -1) {
if (_local3[_local2] == this) {
_local4 = true;
break;
}
_local2--;
}
if (!_local4) {
masterList[endTargetID].tweens.push(this);
}
}
}
gc = !$b;
if (gc) {
forceActive = false;
} else {
forceActive = started;
}
//return(enabled);
}
static var version = 9.25;
static var killDelayedCallsTo = killTweensOf;
static var masterList = new Object();
static var _cnt = -16000;
static var _hrp = false;
}
Symbol 798 MovieClip [__Packages.gs.TweenFilterLite] Frame 0
class gs.TweenFilterLite extends gs.TweenLite
{
var combinedTimeScale, target, _timeScale, delay, startTime, initTime, endTargetID, _clrsa, _filters, _matrix, _roundProps, vars, _cmf, _endMatrix, tweens, duration, ease, _hst, _subTweens, _hasUpdate, complete, __get__enabled;
function TweenFilterLite ($target, $duration, $vars) {
super($target, $duration, $vars);
if ((combinedTimeScale != 1) && (target instanceof gs.TweenFilterLite)) {
_timeScale = 1;
combinedTimeScale = _globalTimeScale;
} else {
_timeScale = combinedTimeScale;
combinedTimeScale = combinedTimeScale * _globalTimeScale;
}
if ((combinedTimeScale != 1) && (delay != 0)) {
startTime = initTime + (delay * (1000 / combinedTimeScale));
}
if (gs.TweenLite.version < 9.24) {
trace("TweenFilterLite error: Please update your TweenLite class or try clearing your ASO files. TweenFilterLite requires a more recent version. Download updates at http://www.TweenLite.com.");
}
}
static function to($target, $duration, $vars) {
return(new gs.TweenFilterLite($target, $duration, $vars));
}
static function from($target, $duration, $vars) {
$vars.runBackwards = true;
return(new gs.TweenFilterLite($target, $duration, $vars));
}
function initTweenVals($hrp, $reservedProps) {
if (($hrp != true) && (gs.TweenLite.overwriteManager.enabled)) {
gs.TweenLite.overwriteManager.manageOverwrites(this, gs.TweenLite.masterList[endTargetID].tweens);
}
_clrsa = [];
_filters = [];
_matrix = _idMatrix.slice();
$reservedProps = $reservedProps || "";
$reservedProps = $reservedProps + " blurFilter glowFilter colorMatrixFilter dropShadowFilter bevelFilter roundProps ";
_roundProps = vars.roundProps instanceof Array;
var _local3;
var _local6;
if ((typeof(target) == "movieclip") || (target instanceof TextField)) {
if (vars.blurFilter != undefined) {
_local6 = vars.blurFilter;
addFilter("blurFilter", _local6, flash.filters.BlurFilter, ["blurX", "blurY", "quality"], new flash.filters.BlurFilter(0, 0, _local6.quality || 2));
}
if (vars.glowFilter != undefined) {
_local6 = vars.glowFilter;
addFilter("glowFilter", _local6, flash.filters.GlowFilter, ["alpha", "blurX", "blurY", "color", "quality", "strength", "inner", "knockout"], new flash.filters.GlowFilter(16777215, 0, 0, 0, _local6.strength || 1, _local6.quality || 2, _local6.inner, _local6.knockout));
}
if (vars.colorMatrixFilter != undefined) {
_local6 = vars.colorMatrixFilter;
var _local9 = addFilter("colorMatrixFilter", _local6, flash.filters.ColorMatrixFilter, [], new flash.filters.ColorMatrixFilter(_matrix));
_cmf = _local9.filter;
_matrix = _cmf.matrix;
if ((_local6.matrix != undefined) && (_local6.matrix instanceof Array)) {
_endMatrix = _local6.matrix;
} else {
if (_local6.relative == true) {
_endMatrix = _matrix.slice();
} else {
_endMatrix = _idMatrix.slice();
}
_endMatrix = setBrightness(_endMatrix, _local6.brightness);
_endMatrix = setContrast(_endMatrix, _local6.contrast);
_endMatrix = setHue(_endMatrix, _local6.hue);
_endMatrix = setSaturation(_endMatrix, _local6.saturation);
_endMatrix = setThreshold(_endMatrix, _local6.threshold);
if (!isNaN(_local6.colorize)) {
_endMatrix = colorize(_endMatrix, _local6.colorize, _local6.amount);
} else if (!isNaN(_local6.color)) {
_endMatrix = colorize(_endMatrix, _local6.color, _local6.amount);
}
}
_local3 = 0;
while (_local3 < _endMatrix.length) {
if ((_matrix[_local3] != _endMatrix[_local3]) && (_matrix[_local3] != undefined)) {
tweens[tweens.length] = [_matrix, _local3.toString(), _matrix[_local3], _endMatrix[_local3] - _matrix[_local3], "colorMatrixFilter"];
}
_local3++;
}
}
if (vars.dropShadowFilter != undefined) {
_local6 = vars.dropShadowFilter;
addFilter("dropShadowFilter", _local6, flash.filters.DropShadowFilter, ["alpha", "angle", "blurX", "blurY", "color", "distance", "quality", "strength", "inner", "knockout", "hideObject"], new flash.filters.DropShadowFilter(0, 45, 0, 0, 0, 0, 1, _local6.quality || 2, _local6.inner, _local6.knockout, _local6.hideObject));
}
if (vars.bevelFilter != undefined) {
_local6 = vars.bevelFilter;
addFilter("bevelFilter", _local6, flash.filters.BevelFilter, ["angle", "blurX", "blurY", "distance", "highlightAlpha", "highlightColor", "quality", "shadowAlpha", "shadowColor", "strength"], new flash.filters.BevelFilter(0, 0, 16777215, 0.5, 0, 0.5, 2, 2, 0, _local6.quality || 2));
}
if (vars.runBackwards == true) {
var _local4;
_local3 = 0;
while (_local3 < _clrsa.length) {
_local4 = _clrsa[_local3];
_local4.sr = _local4.sr + _local4.cr;
_local4.cr = _local4.cr * -1;
_local4.sg = _local4.sg + _local4.cg;
_local4.cg = _local4.cg * -1;
_local4.sb = _local4.sb + _local4.cb;
_local4.cb = _local4.cb * -1;
_local4.f[_local4.p] = ((_local4.sr << 16) | (_local4.sg << 8)) | _local4.sb;
_local3++;
}
}
super.initTweenVals(true, $reservedProps);
} else {
super.initTweenVals($hrp, $reservedProps);
}
if (_roundProps) {
var _local5;
var _local7;
_local3 = vars.roundProps.length - 1;
while (_local3 > -1) {
_local7 = vars.roundProps[_local3];
_local5 = tweens.length - 1;
while (_local5 > -1) {
if ((tweens[_local5][1] == _local7) && (tweens[_local5][0] == target)) {
tweens[_local5][5] = true;
break;
}
_local5--;
}
_local3--;
}
}
}
function addFilter($name, $fv, $filterType, $props, $defaultFilter) {
var _local5 = {type:$filterType, name:$name};
var _local8 = target.filters;
var _local3;
var _local2;
var _local9;
var _local4;
var _local7;
_local3 = 0;
while (_local3 < _local8.length) {
if (_local8[_local3] instanceof $filterType) {
_local5.filter = _local8[_local3];
break;
}
_local3++;
}
if (_local5.filter == undefined) {
_local5.filter = $defaultFilter;
_local8[_local8.length] = _local5.filter;
target.filters = _local8;
}
_local3 = 0;
while (_local3 < $props.length) {
_local2 = $props[_local3];
if ($fv[_local2] != undefined) {
if (((_local2 == "color") || (_local2 == "highlightColor")) || (_local2 == "shadowColor")) {
_local4 = HEXtoRGB(_local5.filter[_local2]);
_local7 = HEXtoRGB($fv[_local2]);
_clrsa[_clrsa.length] = {f:_local5.filter, p:_local2, sr:_local4.rb, cr:_local7.rb - _local4.rb, sg:_local4.gb, cg:_local7.gb - _local4.gb, sb:_local4.bb, cb:_local7.bb - _local4.bb};
} else if ((((_local2 == "quality") || (_local2 == "inner")) || (_local2 == "knockout")) || (_local2 == "hideObject")) {
_local5.filter[_local2] = $fv[_local2];
} else {
if (typeof($fv[_local2]) == "number") {
_local9 = $fv[_local2] - _local5.filter[_local2];
} else {
_local9 = Number($fv[_local2]);
}
tweens[tweens.length] = [_local5.filter, _local2, _local5.filter[_local2], _local9, $name];
}
}
_local3++;
}
_filters[_filters.length] = _local5;
_hf = true;
return(_local5);
}
function render($t) {
var _local10 = (($t - startTime) / 1000) * combinedTimeScale;
var _local5;
var _local2;
var _local3;
if (_local10 >= duration) {
_local10 = duration;
_local5 = (((ease == vars.ease) || (duration == 0.001)) ? 1 : 0);
} else {
_local5 = ease(_local10, 0, 1, duration);
}
if (!_roundProps) {
_local3 = tweens.length - 1;
while (_local3 > -1) {
_local2 = tweens[_local3];
_local2[0][_local2[1]] = _local2[2] + (_local5 * _local2[3]);
_local3--;
}
} else {
_local3 = tweens.length - 1;
while (_local3 > -1) {
_local2 = tweens[_local3];
if (_local2[5]) {
_local2[0][_local2[1]] = Math.round(_local2[2] + (_local5 * _local2[3]));
} else {
_local2[0][_local2[1]] = _local2[2] + (_local5 * _local2[3]);
}
_local3--;
}
}
if (_hf) {
var _local4;
var _local8;
var _local9;
var _local7;
_local3 = _clrsa.length - 1;
while (_local3 > -1) {
_local2 = _clrsa[_local3];
_local8 = _local2.sr + (_local5 * _local2.cr);
_local9 = _local2.sg + (_local5 * _local2.cg);
_local7 = _local2.sb + (_local5 * _local2.cb);
_local2.f[_local2.p] = ((_local8 << 16) | (_local9 << 8)) | _local7;
_local3--;
}
if (_cmf) {
_cmf.matrix = _matrix;
}
var _local6 = target.filters;
_local3 = 0;
while (_local3 < _filters.length) {
_local4 = _local6.length - 1;
while (_local4 > -1) {
if (_local6[_local4] instanceof _filters[_local3].type) {
_local6.splice(_local4, 1, _filters[_local3].filter);
break;
}
_local4--;
}
_local3++;
}
target.filters = _local6;
}
if (_hst) {
_local3 = _subTweens.length - 1;
while (_local3 > -1) {
_subTweens[_local3].proxy(_subTweens[_local3], _local10);
_local3--;
}
}
if (_hasUpdate) {
vars.onUpdate.apply(vars.onUpdateScope, vars.onUpdateParams);
}
if (_local10 == duration) {
complete(true);
}
}
function killVars($vars) {
if (gs.TweenLite.overwriteManager.enabled) {
gs.TweenLite.overwriteManager.killVars($vars, vars, tweens, _subTweens, _filters);
}
}
static function setGlobalTimeScale($scale) {
if ($scale < 1E-5) {
$scale = 1E-5;
}
var _local3 = gs.TweenLite.masterList;
var _local4;
var _local1;
var _local2;
_globalTimeScale = $scale;
for (_local4 in _local3) {
_local2 = _local3[_local4].tweens;
_local1 = _local2.length - 1;
while (_local1 > -1) {
if (_local2[_local1] instanceof gs.TweenFilterLite) {
_local2[_local1].timeScale = _local2[_local1].timeScale * 1;
}
_local1--;
}
}
}
function HEXtoRGB($n) {
return({rb:$n >> 16, gb:($n >> 8) & 255, bb:$n & 255});
}
static function colorize($m, $color, $amount) {
if (($color == undefined) || (isNaN($color))) {
return($m);
}
if ($amount == undefined) {
$amount = 1;
}
var _local3 = (($color >> 16) & 255) / 255;
var _local5 = (($color >> 8) & 255) / 255;
var _local2 = ($color & 255) / 255;
var _local4 = 1 - $amount;
var _local7 = [_local4 + (($amount * _local3) * _lumR), ($amount * _local3) * _lumG, ($amount * _local3) * _lumB, 0, 0, ($amount * _local5) * _lumR, _local4 + (($amount * _local5) * _lumG), ($amount * _local5) * _lumB, 0, 0, ($amount * _local2) * _lumR, ($amount * _local2) * _lumG, _local4 + (($amount * _local2) * _lumB), 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local7, $m));
}
static function setThreshold($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
var _local2 = [_lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * $n, _lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * $n, _lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * $n, 0, 0, 0, 1, 0];
return(applyMatrix(_local2, $m));
}
static function setHue($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
$n = $n * (Math.PI/180);
var _local1 = Math.cos($n);
var _local2 = Math.sin($n);
var _local4 = [(_lumR + (_local1 * (1 - _lumR))) + (_local2 * (-_lumR)), (_lumG + (_local1 * (-_lumG))) + (_local2 * (-_lumG)), (_lumB + (_local1 * (-_lumB))) + (_local2 * (1 - _lumB)), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * 0.143), (_lumG + (_local1 * (1 - _lumG))) + (_local2 * 0.14), (_lumB + (_local1 * (-_lumB))) + (_local2 * -0.283), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * (-(1 - _lumR))), (_lumG + (_local1 * (-_lumG))) + (_local2 * _lumG), (_lumB + (_local1 * (1 - _lumB))) + (_local2 * _lumB), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return(applyMatrix(_local4, $m));
}
static function setBrightness($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
$n = ($n * 100) - 100;
return(applyMatrix([1, 0, 0, 0, $n, 0, 1, 0, 0, $n, 0, 0, 1, 0, $n, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], $m));
}
static function setSaturation($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
var _local4 = 1 - $n;
var _local3 = _local4 * _lumR;
var _local5 = _local4 * _lumG;
var _local2 = _local4 * _lumB;
var _local6 = [_local3 + $n, _local5, _local2, 0, 0, _local3, _local5 + $n, _local2, 0, 0, _local3, _local5, _local2 + $n, 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local6, $m));
}
static function setContrast($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
$n = $n + 0.01;
var _local2 = [$n, 0, 0, 0, 128 * (1 - $n), 0, $n, 0, 0, 128 * (1 - $n), 0, 0, $n, 0, 128 * (1 - $n), 0, 0, 0, 1, 0];
return(applyMatrix(_local2, $m));
}
static function applyMatrix($m, $m2) {
if (((($m == undefined) || (!($m instanceof Array))) || ($m2 == undefined)) || (!($m2 instanceof Array))) {
return($m2);
}
var _local7 = [];
var _local2 = 0;
var _local5 = 0;
var _local6;
var _local1;
_local6 = 0;
while (_local6 < 4) {
_local1 = 0;
while (_local1 < 5) {
if (_local1 == 4) {
_local5 = $m[_local2 + 4];
} else {
_local5 = 0;
}
_local7[_local2 + _local1] = (((($m[_local2] * $m2[_local1]) + ($m[_local2 + 1] * $m2[_local1 + 5])) + ($m[_local2 + 2] * $m2[_local1 + 10])) + ($m[_local2 + 3] * $m2[_local1 + 15])) + _local5;
_local1++;
}
_local2 = _local2 + 5;
_local6++;
}
return(_local7);
}
function get timeScale() {
return(_timeScale);
}
function set timeScale($n) {
if ($n < 1E-5) {
$n = (_timeScale = 1E-5);
} else {
_timeScale = $n;
$n = $n * _globalTimeScale;
}
initTime = (gs.TweenLite.currentTime - ((((gs.TweenLite.currentTime - initTime) - (delay * (1000 / combinedTimeScale))) * combinedTimeScale) * (1 / $n))) - (delay * (1000 / $n));
if (startTime != 999999999999999) {
startTime = initTime + (delay * (1000 / $n));
}
combinedTimeScale = $n;
//return(timeScale);
}
function set enabled($b) {
super.__set__enabled($b);
if ($b) {
combinedTimeScale = _timeScale * _globalTimeScale;
}
//return(__get__enabled());
}
static function set globalTimeScale($n) {
setGlobalTimeScale($n);
//return(globalTimeScale);
}
static function get globalTimeScale() {
return(_globalTimeScale);
}
static var version = 9.24;
static var delayedCall = gs.TweenLite.delayedCall;
static var killTweensOf = gs.TweenLite.killTweensOf;
static var killDelayedCallsTo = gs.TweenLite.killTweensOf;
static var _globalTimeScale = 1;
static var _idMatrix = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
static var _lumR = 0.212671;
static var _lumG = 0.71516;
static var _lumB = 0.072169;
var _hf = false;
}
Symbol 799 MovieClip [__Packages.gs.OverwriteManager] Frame 0
class gs.OverwriteManager
{
static var mode, enabled;
function OverwriteManager () {
}
static function init($mode) {
if (gs.TweenLite.version < 9.21) {
trace("TweenLite warning: Your TweenLite class needs to be updated to work with OverwriteManager (or you may need to clear your ASO files). Please download and install the latest version from http://www.tweenlite.com.");
}
gs.TweenLite.overwriteManager = gs.OverwriteManager;
mode = (($mode == undefined) ? 2 : ($mode));
enabled = true;
return(mode);
}
static function manageOverwrites($tween, $targetTweens) {
var _local8 = $tween.vars;
var _local10 = ((_local8.overwrite == undefined) ? (mode) : (Number(_local8.overwrite)));
if ((_local10 < 2) || ($targetTweens == undefined)) {
return(undefined);
}
var _local6 = $tween.startTime;
var _local4 = [];
var _local2;
var _local1;
var _local3;
_local2 = $targetTweens.length - 1;
while (_local2 > -1) {
_local3 = $targetTweens[_local2];
if (((_local3 != $tween) && (_local3.startTime <= _local6)) && ((_local3.startTime + ((_local3.duration * 1000) / _local3.combinedTimeScale)) > _local6)) {
_local4[_local4.length] = _local3;
}
_local2--;
}
if (_local4.length == 0) {
return(undefined);
}
if (_local10 == AUTO) {
var _local5 = {};
for (_local1 in _local8) {
if (((((((((((((((((((_local1 == "ease") || (_local1 == "delay")) || (_local1 == "overwrite")) || (_local1 == "onComplete")) || (_local1 == "onCompleteParams")) || (_local1 == "runBackwards")) || (_local1 == "persist")) || (_local1 == "onUpdate")) || (_local1 == "onUpdateParams")) || (_local1 == "timeScale")) || (_local1 == "onStart")) || (_local1 == "onStartParams")) || (_local1 == "renderOnStart")) || (_local1 == "proxiedEase")) || (_local1 == "easeParams")) || (_local1 == "onCompleteAll")) || (_local1 == "onCompleteAllParams")) || (_local1 == "yoyo")) || (_local1 == "loop")) {
} else {
_local5[_local1] = 1;
if (_local1 == "removeTint") {
_local5.tint = 1;
} else if (_local1 == "autoAlpha") {
_local5.alpha = 1;
_local5._visible = 1;
}
}
}
_local2 = _local4.length - 1;
while (_local2 > -1) {
_local4[_local2].killVars(_local5);
_local2--;
}
} else {
_local2 = _local4.length - 1;
while (_local2 > -1) {
_local4[_local2].enabled = false;
_local2--;
}
}
}
static function killVars($killVars, $vars, $tweens, $subTweens, $filters) {
var _local1;
_local1 = $subTweens.length - 1;
while (_local1 > -1) {
if ($killVars[$subTweens[_local1].name] != undefined) {
$subTweens.splice(_local1, 1);
}
_local1--;
}
_local1 = $tweens.length - 1;
while (_local1 > -1) {
if ($killVars[$tweens[_local1][4]] != undefined) {
$tweens.splice(_local1, 1);
}
_local1--;
}
_local1 = $filters.length - 1;
while (_local1 > -1) {
if ($killVars[$filters[_local1].name] != undefined) {
$filters.splice(_local1, 1);
}
_local1--;
}
for (var _local6 in $killVars) {
delete $vars[_local6];
}
}
static var version = 0.992;
static var NONE = 0;
static var ALL = 1;
static var AUTO = 2;
static var CONCURRENT = 3;
}
Symbol 800 MovieClip [__Packages.gs.TweenMax] Frame 0
class gs.TweenMax extends gs.TweenFilterLite
{
var _thisReverseEase, vars, endTargetID, target, addSubTween, pauseTime, startTime, __set__enabled, combinedTimeScale, delay, initTime, active, forceActive, render, ease, duration, initted, tweens, _subTweens, _timeScale, killVars, gc, __get__active;
function TweenMax ($target, $duration, $vars) {
super($target, $duration, $vars);
_thisReverseEase = mx.utils.Delegate.create(this, reverseEase);
if ((vars.yoyo == true) || (vars.loop == true)) {
vars.persist = true;
}
if (gs.TweenFilterLite.version < 9.24) {
trace("TweenMax error! Please update your TweenFilterLite class or try deleting your ASO files. TweenMax requires a more recent version. Download updates at http://www.TweenMax.com.");
}
}
function initTweenVals($hrp, $reservedProps) {
$reservedProps = $reservedProps || "";
$reservedProps = $reservedProps + " hexColors bezier bezierThrough orientToBezier quaternions onCompleteAll onCompleteAllParams yoyo loop ";
var _local3;
var _local4;
var _local15;
var _local13;
var _local5;
var _local9 = bezierProxy;
if (($hrp != true) && (gs.TweenLite.overwriteManager.enabled)) {
gs.TweenLite.overwriteManager.manageOverwrites(this, gs.TweenLite.masterList[endTargetID].tweens);
}
if (vars.orientToBezier == true) {
vars.orientToBezier = [["_x", "_y", "_rotation", 0]];
_local9 = bezierProxy2;
} else if (vars.orientToBezier instanceof Array) {
_local9 = bezierProxy2;
}
if (vars.bezier != undefined) {
_local13 = {};
_local5 = vars.bezier;
_local4 = 0;
while (_local4 < _local5.length) {
for (_local3 in _local5[_local4]) {
if (_local13[_local3] == undefined) {
_local13[_local3] = [target[_local3]];
}
if (typeof(_local5[_local4][_local3]) == "number") {
_local13[_local3].push(_local5[_local4][_local3]);
} else {
_local13[_local3].push(target[_local3] + Number(_local5[_local4][_local3]));
}
}
_local4++;
}
for (_local3 in _local13) {
if (typeof(vars[_local3]) == "number") {
_local13[_local3].push(vars[_local3]);
} else {
_local13[_local3].push(target[_local3] + Number(vars[_local3]));
}
delete vars[_local3];
}
addSubTween("bezier", _local9, {t:0}, {t:1}, {props:parseBeziers(_local13, false), target:target, orientToBezier:vars.orientToBezier});
}
if (vars.bezierThrough != undefined) {
_local13 = {};
_local5 = vars.bezierThrough;
_local4 = 0;
while (_local4 < _local5.length) {
for (_local3 in _local5[_local4]) {
if (_local13[_local3] == undefined) {
_local13[_local3] = [target[_local3]];
}
if (typeof(_local5[_local4][_local3]) == "number") {
_local13[_local3].push(_local5[_local4][_local3]);
} else {
_local13[_local3].push(target[_local3] + Number(_local5[_local4][_local3]));
}
}
_local4++;
}
for (_local3 in _local13) {
if (typeof(vars[_local3]) == "number") {
_local13[_local3].push(vars[_local3]);
} else {
_local13[_local3].push(target[_local3] + Number(vars[_local3]));
}
delete vars[_local3];
}
addSubTween("bezierThrough", _local9, {t:0}, {t:1}, {props:parseBeziers(_local13, true), target:target, orientToBezier:vars.orientToBezier});
}
if ((vars.hexColors != undefined) && (typeof(vars.hexColors) == "object")) {
for (_local3 in vars.hexColors) {
addSubTween("hexColors", hexColorsProxy, {r:target[_local3] >> 16, g:(target[_local3] >> 8) & 255, b:target[_local3] & 255}, {r:vars.hexColors[_local3] >> 16, g:(vars.hexColors[_local3] >> 8) & 255, b:vars.hexColors[_local3] & 255}, {prop:_local3, target:target});
}
}
super.initTweenVals(true, $reservedProps);
}
function pause() {
if (isNaN(pauseTime)) {
pauseTime = gs.TweenLite.currentTime;
startTime = 999999999999999;
_pausedTweens[endTargetID] = this;
__set__enabled(false);
}
}
function resume() {
__set__enabled(true);
if (!isNaN(pauseTime)) {
var _local3 = delay * (1000 / combinedTimeScale);
var _local2 = pauseTime > (initTime + _local3);
initTime = initTime + (gs.TweenLite.currentTime - pauseTime);
startTime = initTime + _local3;
pauseTime = NaN;
if ((!_local2) && (gs.TweenLite.currentTime >= startTime)) {
_local2 = active;
} else {
forceActive = _local2;
}
delete _pausedTweens[endTargetID];
}
}
function restart($includeDelay) {
if ($includeDelay == true) {
initTime = gs.TweenLite.currentTime;
startTime = gs.TweenLite.currentTime + (delay * (1000 / combinedTimeScale));
} else {
startTime = gs.TweenLite.currentTime;
initTime = gs.TweenLite.currentTime - (delay * (1000 / combinedTimeScale));
}
if (target != vars.onComplete) {
render(startTime);
}
pauseTime = NaN;
__set__enabled(true);
}
function reverse($adjustDuration, $forcePlay) {
ease = ((vars.ease == ease) ? (_thisReverseEase) : (vars.ease));
var _local2 = progress;
if (($adjustDuration != false) && (_local2 > 0)) {
startTime = gs.TweenLite.currentTime - ((((1 - _local2) * duration) * 1000) / combinedTimeScale);
initTime = startTime - (delay * (1000 / combinedTimeScale));
}
if ($forcePlay != false) {
if (_local2 < 1) {
resume();
} else {
restart();
}
}
}
function reverseEase($t, $b, $c, $d) {
return(vars.ease($d - $t, $b, $c, $d));
}
function invalidate($adjustStartValues) {
if (initted) {
var _local2 = progress;
if (($adjustStartValues != true) && (_local2 != 0)) {
progress = (0);
}
tweens = [];
_subTweens = [];
initTweenVals();
_timeScale = vars.timeScale || 1;
combinedTimeScale = _timeScale * gs.TweenFilterLite._globalTimeScale;
delay = vars.delay || 0;
if (isNaN(pauseTime)) {
startTime = initTime + ((delay * 1000) / combinedTimeScale);
}
if (_local2 != 0) {
if ($adjustStartValues) {
adjustStartValues();
} else {
progress = (_local2);
}
}
}
}
function setDestination($property, $value, $adjustStartValues) {
var _local6 = progress;
if ((vars[$property] != undefined) && (initted)) {
if (($adjustStartValues == false) && (_local6 != 0)) {
var _local2 = tweens.length - 1;
while (_local2 > -1) {
if (tweens[_local2][4] == $property) {
tweens[_local2][0][tweens[_local2][1]] = tweens[_local2][2];
}
_local2--;
}
}
var _local5 = {};
_local5[$property] = 1;
killVars(_local5);
}
vars[$property] = $value;
if (initted) {
var _local4 = vars;
var _local8 = tweens;
var _local7 = _subTweens;
vars = {};
tweens = [];
_subTweens = [];
vars[$property] = $value;
initTweenVals();
if ((ease != _thisReverseEase) && (typeof(_local4.ease) == "function")) {
ease = _local4.ease;
}
if (($adjustStartValues != false) && (_local6 != 0)) {
adjustStartValues();
}
vars = _local4;
tweens = _local8.concat(tweens);
_subTweens = _local7.concat(_subTweens);
}
}
function adjustStartValues() {
var _local6 = progress;
if (_local6 != 0) {
var _local5 = 1 / (1 - ease(_local6 * duration, 0, 1, duration));
var _local4;
var _local2;
var _local3;
_local3 = tweens.length - 1;
while (_local3 > -1) {
_local2 = tweens[_local3];
_local4 = _local2[2] + _local2[3];
_local2[3] = (_local4 - _local2[0][_local2[1]]) * _local5;
_local2[2] = _local4 - _local2[3];
_local3--;
}
}
}
function killProperties($names) {
var _local4 = {};
var _local2;
_local2 = $names.length - 1;
while (_local2 > -1) {
if (vars[$names[_local2]] != undefined) {
_local4[$names[_local2]] = 1;
}
_local2--;
}
killVars(_local4);
}
function complete($skipRender) {
if ((vars.yoyo == true) || (vars.loop == true)) {
if (vars.yoyo == true) {
ease = ((vars.ease == ease) ? (_thisReverseEase) : (vars.ease));
}
startTime = gs.TweenLite.currentTime;
initTime = startTime - (delay * (1000 / combinedTimeScale));
} else if (vars.persist == true) {
pause();
}
super.complete($skipRender);
}
static function to($target, $duration, $vars) {
return(new gs.TweenMax($target, $duration, $vars));
}
static function from($target, $duration, $vars) {
$vars.runBackwards = true;
return(new gs.TweenMax($target, $duration, $vars));
}
static function allTo($targets, $duration, $vars) {
trace("WARNING: TweenMax.allTo() and TweenMax.allFrom() have been deprecated in favor of the much more powerful and flexible TweenGroup class. See http://blog.greensock.com/tweengroup/ for more details. Future versions of TweenMax may not include allTo() and allFrom() (to conserve file size).");
if ($targets.length == 0) {
return([]);
}
var _local4;
var _local3;
var _local1;
var _local10;
var _local7;
var _local5 = [];
var _local9 = $vars.delayIncrement || 0;
delete $vars.delayIncrement;
if ($vars.onCompleteAll == undefined) {
_local7 = $vars;
} else {
_local7 = {};
for (_local1 in $vars) {
_local7[_local1] = $vars[_local1];
}
_local7.onCompleteParams = [[$vars.onComplete, $vars.onCompleteAll], [$vars.onCompleteParams, $vars.onCompleteAllParams], [$vars.onCompleteScope, $vars.onCompleteAllScope]];
_local7.onComplete = callbackProxy;
delete $vars.onCompleteAll;
}
delete $vars.onCompleteAllParams;
delete $vars.onCompleteAllScope;
if (_local9 == 0) {
_local5[_local5.length] = new gs.TweenMax($targets[0], $duration, _local7);
_local4 = 1;
while (_local4 < $targets.length) {
_local3 = {};
for (_local1 in $vars) {
_local3[_local1] = $vars[_local1];
}
_local5[_local5.length] = new gs.TweenMax($targets[_local4], $duration, _local3);
_local4++;
}
} else {
_local10 = $vars.delay || 0;
_local4 = 0;
while (_local4 < ($targets.length - 1)) {
_local3 = {};
for (_local1 in $vars) {
_local3[_local1] = $vars[_local1];
}
_local3.delay = _local10 + (_local4 * _local9);
_local5[_local5.length] = new gs.TweenMax($targets[_local4], $duration, _local3);
_local4++;
}
_local7.delay = _local10 + (($targets.length - 1) * _local9);
_local5[_local5.length] = new gs.TweenMax($targets[$targets.length - 1], $duration, _local7);
}
return(_local5);
}
static function allFrom($targets, $duration, $vars) {
$vars.runBackwards = true;
return(allTo($targets, $duration, $vars));
}
static function callbackProxy($functions, $params, $scopes) {
var _local1 = 0;
while (_local1 < $functions.length) {
if ($functions[_local1] != undefined) {
$functions[_local1].apply($scopes[_local1], $params[_local1]);
}
_local1++;
}
}
static function sequence($target, $tweens) {
var _local1 = 0;
while (_local1 < $tweens.length) {
$tweens[_local1].target = $target;
_local1++;
}
return(multiSequence($tweens));
}
static function multiSequence($tweens) {
trace("WARNING: TweenMax.multiSequence() and TweenMax.sequence() have been deprecated in favor of the much more powerful and flexible TweenGroup class. See http://blog.greensock.com/tweengroup/ for more details. Future versions of TweenMax may not include sequence() and multiSequence() (to conserve file size).");
var _local3 = [];
var _local11 = [];
var _local14 = gs.TweenLite.overwriteManager.mode;
var _local12 = 0;
var _local4;
var _local6;
var _local9;
var _local10;
var _local7;
var _local1;
var _local5;
var _local8;
var _local2;
_local7 = 0;
while (_local7 < $tweens.length) {
_local4 = $tweens[_local7];
_local10 = _local4.time || 0;
_local1 = {};
for (_local5 in _local4) {
_local1[_local5] = _local4[_local5];
}
delete _local1.time;
_local9 = _local1.delay || 0;
_local1.delay = _local12 + _local9;
_local6 = _local1.target;
delete _local1.target;
if (_local14 == 1) {
_local8 = false;
_local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2] == _local6) {
_local8 = true;
break;
}
_local2++;
}
if ((!_local8) && (_local1.overwrite == undefined)) {
_local3[_local3.length] = _local6;
} else {
_local1.overwrite = 2;
}
}
_local11[_local11.length] = new gs.TweenMax(_local6, _local10, _local1);
_local12 = _local12 + (_local10 + _local9);
_local7++;
}
return(_local11);
}
static function delayedCall($delay, $onComplete, $onCompleteParams, $onCompleteScope, $persist) {
return(new gs.TweenMax($onComplete, 0, {delay:$delay, onComplete:$onComplete, onCompleteParams:$onCompleteParams, onCompleteScope:$onCompleteScope, persist:$persist, overwrite:0}));
}
static function parseBeziers($props, $through) {
var _local2;
var _local1;
var _local3;
var _local4;
var _local6 = {};
if ($through) {
for (_local4 in $props) {
_local1 = $props[_local4];
_local3 = [];
_local6[_local4] = _local3;
if (_local1.length > 2) {
_local3[_local3.length] = {s:_local1[0], cp:_local1[1] - ((_local1[2] - _local1[0]) / 4), e:_local1[1]};
_local2 = 1;
while (_local2 < (_local1.length - 1)) {
_local3[_local3.length] = {s:_local1[_local2], cp:_local1[_local2] + (_local1[_local2] - _local3[_local2 - 1].cp), e:_local1[_local2 + 1]};
_local2++;
}
} else {
_local3[_local3.length] = {s:_local1[0], cp:(_local1[0] + _local1[1]) / 2, e:_local1[1]};
}
}
} else {
for (_local4 in $props) {
_local1 = $props[_local4];
_local3 = [];
_local6[_local4] = _local3;
if (_local1.length > 3) {
_local3[_local3.length] = {s:_local1[0], cp:_local1[1], e:(_local1[1] + _local1[2]) / 2};
_local2 = 2;
while (_local2 < (_local1.length - 2)) {
_local3[_local3.length] = {s:_local3[_local2 - 2].e, cp:_local1[_local2], e:(_local1[_local2] + _local1[_local2 + 1]) / 2};
_local2++;
}
_local3[_local3.length] = {s:_local3[_local3.length - 1].e, cp:_local1[_local1.length - 2], e:_local1[_local1.length - 1]};
} else if (_local1.length == 3) {
_local3[_local3.length] = {s:_local1[0], cp:_local1[1], e:_local1[2]};
} else if (_local1.length == 2) {
_local3[_local3.length] = {s:_local1[0], cp:(_local1[0] + _local1[1]) / 2, e:_local1[1]};
}
}
}
return(_local6);
}
static function getTweensOf($target) {
var _local2 = gs.TweenLite.masterList[gs.TweenLite.getID($target, true)].tweens;
var _local3 = [];
if (_local2 != undefined) {
var _local1 = _local2.length - 1;
while (_local1 > -1) {
if (!_local2[_local1].gc) {
_local3[_local3.length] = _local2[_local1];
}
_local1--;
}
}
return(_local3);
}
static function isTweening($target) {
var _local2 = getTweensOf($target);
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].active && (!_local2[_local1].gc)) {
return(true);
}
_local1++;
}
return(false);
}
static function getAllTweens() {
var _local4 = gs.TweenLite.masterList;
var _local3 = [];
var _local2;
var _local5;
var _local1;
for (_local5 in _local4) {
_local2 = _local4[_local5].tweens;
_local1 = _local2.length - 1;
while (_local1 > -1) {
if (!_local2[_local1].gc) {
_local3[_local3.length] = _local2[_local1];
}
_local1--;
}
}
return(_local3);
}
static function killAllTweens($complete) {
killAll($complete, true, false);
}
static function killAllDelayedCalls($complete) {
killAll($complete, false, true);
}
static function killAll($complete, $tweens, $delayedCalls) {
if ($tweens == undefined) {
$tweens = true;
}
if ($delayedCalls == undefined) {
$delayedCalls = false;
}
var _local2 = getAllTweens();
var _local3;
var _local1 = _local2.length - 1;
while (_local1 > -1) {
_local3 = _local2[_local1].target == _local2[_local1].vars.onComplete;
if ((_local3 == $delayedCalls) || (_local3 != $tweens)) {
if ($complete) {
_local2[_local1].complete(false);
_local2[_local1].clear();
} else {
gs.TweenLite.removeTween(_local2[_local1], true);
}
}
_local1--;
}
}
static function pauseAll($tweens, $delayedCalls) {
changePause(true, $tweens, $delayedCalls);
}
static function resumeAll($tweens, $delayedCalls) {
changePause(false, $tweens, $delayedCalls);
}
static function changePause($pause, $tweens, $delayedCalls) {
if ($pause == undefined) {
$pause = true;
}
if ($tweens == undefined) {
$tweens = true;
}
if ($delayedCalls == undefined) {
$delayedCalls = false;
}
var _local2 = getAllTweens();
var _local3;
var _local1 = _local2.length - 1;
while (_local1 > -1) {
_local3 = _local2[_local1].target == _local2[_local1].vars.onComplete;
if ((_local2[_local1] instanceof gs.TweenMax) && ((_local3 == $delayedCalls) || (_local3 != $tweens))) {
_local2[_local1].paused = $pause;
}
_local1--;
}
}
static function hexColorsProxy($o, $time) {
$o.info.target[$o.info.prop] = (($o.target.r << 16) | ($o.target.g << 8)) | $o.target.b;
}
static function bezierProxy($o, $time) {
var _local6 = $o.target.t;
var _local3 = $o.info.props;
var _local8 = $o.info.target;
var _local2;
var _local1;
var _local4;
var _local7;
var _local5;
if (_local6 == 1) {
for (_local1 in _local3) {
_local2 = _local3[_local1].length - 1;
_local8[_local1] = _local3[_local1][_local2].e;
}
} else {
for (_local1 in _local3) {
_local5 = _local3[_local1].length;
if (_local6 < 0) {
_local2 = 0;
} else if (_local6 >= 1) {
_local2 = _local5 - 1;
} else {
_local2 = (_local5 * _local6) >> 0;
}
_local7 = (_local6 - (_local2 * (1 / _local5))) * _local5;
_local4 = _local3[_local1][_local2];
_local8[_local1] = _local4.s + (_local7 * (((2 * (1 - _local7)) * (_local4.cp - _local4.s)) + (_local7 * (_local4.e - _local4.s))));
}
}
}
static function bezierProxy2($o, $time) {
bezierProxy($o);
var _local4 = {};
var _local3 = $o.info.target;
$o.info.target = _local4;
$o.target.t = $o.target.t + 0.01;
bezierProxy($o);
var _local5 = $o.info.orientToBezier;
var _local10;
var _local7;
var _local6;
var _local1;
var _local8;
var _local2;
_local2 = 0;
while (_local2 < _local5.length) {
_local1 = _local5[_local2];
_local8 = _local1[3] || 0;
_local7 = _local4[_local1[0]] - _local3[_local1[0]];
_local6 = _local4[_local1[1]] - _local3[_local1[1]];
_local3[_local1[2]] = (Math.atan2(_local6, _local7) * RAD2DEG) + _local8;
_local2++;
}
$o.info.target = _local3;
$o.target.t = $o.target.t - 0.01;
}
function get paused() {
return(!isNaN(pauseTime));
}
function set paused($b) {
if ($b) {
pause();
} else {
resume();
}
//return(paused);
}
function get reversed() {
return(ease == _thisReverseEase);
}
function set reversed($b) {
if (reversed != $b) {
reverse();
}
//return(reversed);
}
static function set globalTimeScale($n) {
gs.TweenFilterLite.setGlobalTimeScale($n);
//return(globalTimeScale);
}
static function get globalTimeScale() {
return(gs.TweenFilterLite._globalTimeScale);
}
function get progress() {
var _local3 = ((!isNaN(pauseTime)) ? (pauseTime) : (gs.TweenLite.currentTime));
var _local2 = ((((_local3 - initTime) / 1000) - (delay / combinedTimeScale)) / duration) * combinedTimeScale;
if (_local2 > 1) {
return(1);
}
if (_local2 < 0) {
return(0);
}
return(_local2);
}
function set progress($n) {
startTime = gs.TweenLite.currentTime - ((duration * $n) * 1000);
initTime = startTime - (delay * (1000 / combinedTimeScale));
var _local2 = gc;
gc = false;
var _local3 = __get__active();
gc = _local2;
render(gs.TweenLite.currentTime);
if (!isNaN(pauseTime)) {
pauseTime = gs.TweenLite.currentTime;
startTime = 999999999999999;
forceActive = false;
}
//return(progress);
}
static var version = 3.36;
static var RAD2DEG = 57.2957795130823;
static var _overwriteMode = (gs.OverwriteManager.enabled ? (gs.OverwriteManager.mode) : (gs.OverwriteManager.init()));
static var killTweensOf = gs.TweenLite.killTweensOf;
static var killDelayedCallsTo = gs.TweenLite.killTweensOf;
static var removeTween = gs.TweenLite.removeTween;
static var _pausedTweens = {};
}
Symbol 801 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 _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 802 MovieClip [__Packages.mx.behaviors.DepthControl] Frame 0
class mx.behaviors.DepthControl extends Object
{
function DepthControl () {
super();
}
static function sendToBack(target) {
var _local2 = false;
while (_local2 == false) {
sendBackward(target);
_local2 = target == getInstanceAtLowest(target._parent);
}
}
static function bringToFront(target) {
var _local2 = false;
while (_local2 == false) {
bringForward(target);
_local2 = target == getInstanceAtHighest(target._parent);
}
}
static function sendBackward(target) {
var _local2 = trackDepths(target._parent);
if (target != getInstanceAtLowest(target._parent)) {
target.swapDepths(getInstanceLowerThan(target));
}
}
static function bringForward(target) {
if (target != getInstanceAtHighest(target._parent)) {
target.swapDepths(getInstanceHigherThan(target));
}
}
static function trackDepths(mcParent) {
var _local4 = [];
for (var _local5 in mcParent) {
if (typeof(mcParent[_local5]) == "movieclip") {
_local4.push({mc:mcParent[_local5], depth:mcParent[_local5].getDepth()});
}
}
_local4.sort(orderFunc);
return(_local4);
}
static function orderFunc(a, b) {
var _local2 = Number(a.depth);
var _local1 = Number(b.depth);
if (_local2 > _local1) {
return(-1);
}
if (_local1 > _local2) {
return(1);
}
return(0);
}
static function getInstanceAtLowest(targetParent) {
var _local1 = trackDepths(targetParent);
return(_local1[_local1.length - 1].mc);
}
static function getInstanceAtHighest(targetParent) {
var _local1 = trackDepths(targetParent);
return(_local1[0].mc);
}
static function getInstanceLowerThan(target) {
var _local2 = trackDepths(target._parent);
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].mc == target) {
break;
}
_local1++;
}
return(_local2[_local1 + 1].mc);
}
static function getInstanceHigherThan(target) {
var _local2 = trackDepths(target._parent);
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].mc == target) {
break;
}
_local1++;
}
return(_local2[_local1 - 1].mc);
}
}
Symbol 803 MovieClip [__Packages.CarTest] Frame 0
class CarTest extends MovieClip
{
static var bankHome, wayPoints, home, links;
var stop, onEnterFrame, caller, _x, _y, toGo, carTween, finish, gotoAndStop, wherePaint;
function CarTest () {
super();
stop();
if (DEBUG) {
var t = this;
_global.setTimeout(function () {
t.wherePaint = _root.WPHolder;
}, 200);
debugShowWayPoints();
debugDrawLines();
}
}
function initBankCar() {
bankCar = true;
busy = false;
update();
onEnterFrame = function () {
if ((flash.geom.Point.distance(CarTest.bankHome, new flash.geom.Point(this._x, this._y)) < 60) && (this.caller == null)) {
this._visible = false;
} else {
this._visible = true;
}
};
}
function update(flag) {
var _local4 = Main.payingHouses.length;
var _local2 = _local4;
while (_local2--) {
if (!Main.payingHouses[_local2].paying) {
Main.payingHouses.splice(_local2, 1);
}
}
var _local3 = Main.payingHouses[0];
if (_local3 == undefined) {
moveCarTo(bankHome.x, bankHome.y, true);
return(undefined);
}
if ((caller != null) || (caller)) {
return(undefined);
}
moveCarTo(_local3._x + _local3.carTo.x, _local3._y + _local3.carTo.y, false);
caller = _local3;
busy = true;
}
function feeLost() {
if (!Main.payingHouses[0].paying) {
update();
}
}
function moveCarTo(x, y, getOut, _destroy) {
if (paused) {
return(undefined);
}
if (!getOut) {
busy = true;
}
if (_destroy) {
destroy = true;
}
oneArriveWas = false;
gs.TweenMax.to(this, 0.5, {_alpha:100});
var _local6 = new flash.geom.Point(_x, _y);
var _local4 = new flash.geom.Point(x, y);
var _local5 = getNearestPoint(_local6);
var _local7 = getNearestPoint(_local4);
var _local3 = findPath(_local5, _local7);
_local3.splice(0, 0, _local5);
if (DEBUG) {
debugDrawPath(_local3, _local6, _local4);
}
toGo = [];
toGo.push(_local4);
var _local2 = _local3.length;
while (_local2--) {
toGo.push(wayPoints[_local3[_local2]]);
}
toGo.reverse();
carTween.clear();
finish = _local4.clone();
moveCar();
}
function bankCarHere() {
return(true);
}
function moveCar() {
if ((toGo.length == 0) || (oneArriveWas)) {
return(undefined);
}
var t = this;
var _local2 = toGo.shift();
var _local3 = Math.round((Math.atan2(_local2.y - _y, _local2.x - _x) * 180) / Math.PI);
if ((_local3 > 0) && (_local3 < 90)) {
gotoAndStop(1 + addCF);
} else if ((_local3 < 0) && (_local3 > -90)) {
gotoAndStop(2 + addCF);
} else if (_local3 > 90) {
gotoAndStop(4 + addCF);
} else {
gotoAndStop(3 + addCF);
}
carTween = gs.TweenMax.to(this, flash.geom.Point.distance(new flash.geom.Point(_x, _y), _local2) / Main.CAR_SPEED, {overwrite:true, _alpha:100, _x:_local2.x, _y:_local2.y, ease:gs.easing.Linear.easeNone, onComplete:function () {
t.moveCar();
}, onUpdate:function () {
if (flash.geom.Point.distance(new flash.geom.Point(t._x, t._y), t.finish) < 35) {
if (t.destroy) {
t.carTween.clear();
t.swapDepths(301);
t.removeMovieClip();
}
if (t.bankCar) {
t.carTween.clear();
t.caller.bankCarHere();
t.caller = null;
t.update();
} else if (!t.oneArriveWas) {
t.oneArriveWas = true;
t.carTween.clear();
gs.TweenMax.to(t, 0.5, {_x:t._x, _y:t._y});
t.carArrived();
}
}
}});
}
function freeCar() {
busy = false;
Main.console("Now car is free");
Main.updateButtons();
Main.topBarLink.updateElectroIndicator();
Main.topBarLink.updateWaterIndicator();
getOut();
}
function getOut() {
if (!bankCar) {
moveCarTo(home.x, home.y, true);
} else {
moveCarTo(bankHome.x, bankHome.y, true);
}
}
function carArrived() {
if (!busy) {
Main.console("Car hided");
gs.TweenMax.to(this, 0.5, {_alpha:0});
return(undefined);
}
caller.carArrived();
}
function pause() {
carTween.pause();
}
function resume() {
carTween.resume();
}
function get paused() {
return(carTween.__get__paused());
}
function debugDrawPath($visited, $first, $second) {
debugDrawLines();
var _local4 = $visited.length;
wherePaint.lineStyle(5, 65280);
wherePaint.moveTo($first.x, $first.y);
var _local2 = 0;
while (_local2 < _local4) {
wherePaint.lineTo(wayPoints[$visited[_local2]].x, wayPoints[$visited[_local2]].y);
_local2++;
}
wherePaint.lineTo($second.x, $second.y);
}
function debugDrawLines() {
wherePaint.clear();
var _local2 = links.length;
wherePaint.lineStyle(3, 0);
while (_local2--) {
var _local3 = links[_local2].length;
while (_local3--) {
wherePaint.moveTo(wpMcs[_local2]._x, wpMcs[_local2]._y);
wherePaint.lineTo(wpMcs[links[_local2][_local3]]._x, wpMcs[links[_local2][_local3]]._y);
}
}
}
function debugShowWayPoints() {
var _local3 = wayPoints.length;
var _local7 = this;
while (_local3--) {
var _local4 = _root.attachMovie("wayPoint", "wp" + _local3, _root.getNextHighestDepth(), {_x:wayPoints[_local3].x, _y:wayPoints[_local3].y});
wpMcs[_local3] = _local4;
_root["wp" + _local3].txt.text = _local3;
}
}
function getNearestPoint(p) {
var _local1 = 0;
var _local3 = flash.geom.Point.distance(p, wayPoints[0]);
var _local5 = 0;
var _local2;
var _local6 = wayPoints.length;
_local1 = 1;
while (_local1 < _local6) {
_local2 = flash.geom.Point.distance(p, wayPoints[_local1]);
if (_local2 < _local3) {
if (!((_local1 == 4) && (p.y < 200))) {
_local3 = _local2;
_local5 = _local1;
}
}
_local1++;
}
return(_local5);
}
function findPath(p1, p2) {
var _local2 = true;
var _local6 = 0;
var _local1 = p1;
var _local7 = [];
var _local4;
var _local12 = -1;
if ((p1 == 6) && (p2 == 4)) {
return([6, 4]);
}
if ((p1 == 7) && (p2 == 5)) {
return([7, 5]);
}
if ((p1 == 7) && (p2 == 4)) {
return([7, 5, 4]);
}
if ((p1 == 6) && (p2 == 5)) {
return([6, 4, 5]);
}
if (((p1 == 3) || (p1 == 2)) && (p2 == 0)) {
return([2, 1, 0, 5]);
}
if (((p2 == 6) || (p2 == 7)) && (p1 < 6)) {
var _local9 = p2;
p2 = p2 - 2;
} else if (((p1 == 6) || (p1 == 7)) && (p2 < 6)) {
var _local11 = p1;
p1 = p1 - 2;
_local7.push(p1);
} else if ((p1 > 5) && (p2 > 5)) {
_local7.push(p1);
_local7.push(p2);
return(_local7);
}
while (_local2) {
_local6++;
if (_local6 == 20) {
break;
}
if (_local1 != p2) {
_local4 = links[_local1][0];
_local1 = _local4;
_local7.push(_local1);
} else {
_local2 = false;
}
}
var _local8 = [];
_local1 = p1;
_local2 = true;
if (_local11) {
p1 = _local11;
}
if (_local9) {
p2 = _local9;
}
if (((p1 == 6) || (p1 == 7)) && (p2 < 6)) {
p1 = p1 - 2;
_local8.push(p1);
}
while (_local2) {
_local6++;
if (_local6 == 20) {
break;
}
if (_local1 != p2) {
_local4 = links[_local1][1];
_local1 = _local4;
_local8.push(_local1);
} else {
_local2 = false;
}
}
var _local10;
if (_local7.length < _local8.length) {
_local10 = _local7;
} else {
_local10 = _local8;
}
if (_local9) {
_local10.push(_local9);
}
return(_local10);
}
static function setLevelNumber(num) {
wayPoints = [];
links = [];
if (num == 1) {
wayPoints.push(new flash.geom.Point(123, 228));
wayPoints.push(new flash.geom.Point(197, 95));
wayPoints.push(new flash.geom.Point(681, 237));
wayPoints.push(new flash.geom.Point(684, 394));
links[0] = [1, 3];
links[1] = [2, 0];
links[2] = [3, 1];
links[3] = [0, 2];
} else if (num == 2) {
wayPoints.push(new flash.geom.Point(201, 84));
wayPoints.push(new flash.geom.Point(201, 84));
wayPoints.push(new flash.geom.Point(676, 224));
wayPoints.push(new flash.geom.Point(677, 359));
wayPoints.push(new flash.geom.Point(545, 323));
wayPoints.push(new flash.geom.Point(136, 203));
wayPoints.push(new flash.geom.Point(483, 440));
wayPoints.push(new flash.geom.Point(70, 321));
links[0] = [1, 5];
links[1] = [2, 0];
links[2] = [3, 1];
links[3] = [4, 2];
links[4] = [5, 3];
links[5] = [0, 4];
} else if (num == 3) {
wayPoints.push(new flash.geom.Point(-2, 188));
wayPoints.push(new flash.geom.Point(69, 57));
wayPoints.push(new flash.geom.Point(643, 225));
wayPoints.push(new flash.geom.Point(571, 354));
wayPoints.push(new flash.geom.Point(490, 331));
wayPoints.push(new flash.geom.Point(62, 207));
wayPoints.push(new flash.geom.Point(421, 457));
wayPoints.push(new flash.geom.Point(-2, 332));
links[0] = [1, 5];
links[1] = [2, 0];
links[2] = [3, 1];
links[3] = [4, 2];
links[4] = [5, 3];
links[5] = [0, 4];
}
}
var busy = false;
var bankCar = false;
var destroy = false;
var DEBUG = false;
var wpMcs = [];
var addCF = 0;
var oneArriveWas = false;
}
Symbol 804 MovieClip [__Packages.gs.easing.Linear] Frame 0
class gs.easing.Linear
{
function Linear () {
}
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);
}
}
Symbol 805 MovieClip [__Packages.House] Frame 0
class House extends MovieClip
{
var carTo, stop, onRelease, nextFrame, lpMc, feeMc, peoplesCar, mark, attachMovie, paying, price, _x, _y, myTimer, brakeMc, _alpha, houseMc, keysMc, repairMc, thisNum, removeMovieClip, gotoAndStop, demolishCar, car, thisRandom, hearts;
function House () {
super();
carTo = new flash.geom.Point(40, 85);
stop();
onRelease = function () {
if (this.paying) {
this.getFee();
Main.currentAction = "none";
Main.createPopUpText((XMLMaster.getInterfaceTexts(36) + "\n+") + this.price, this._x, this._y, 65280);
}
if (((Main.currentAction == "upgrade") || (Main.currentAction == "demolish")) && (this.myTimer)) {
return(undefined);
}
if (((this.thisAction == "in") || (this.thisAction == "repair")) || (this.thisAction == "upgrade")) {
return(undefined);
}
if (this.build && (Main.currentAction == "demolish")) {
if (Main.tutorial._visible) {
return(undefined);
}
this.demolishing = true;
this.waitingInterface = false;
this.mark._alpha = 100;
this.mark._alpha = 100;
this.mark.swapDepths(99);
this.mark._visible = true;
this.broked = false;
this.brakeMc._visible = false;
this.sendDemolishCarHere();
this.feeOut();
this.keysMc._visible = false;
this.feeMc.stopRent();
this.build = false;
SoundMaster.addSound("task");
this.mark.swapDepths(30);
LevelScript.thisLevelHouses.push([this._x, this._y, "lh"]);
LevelScript.thisLevelHouses[this.thisNum - 1][0] = null;
LevelScript.thisLevelHouses[this.thisNum - 1] = null;
return(undefined);
}
if (this.demolishing) {
return(undefined);
}
if (((((Main.currentAction == "none") && (!this.waitingInterface)) && (!this.paying)) && (!this.brakeMc._visible)) && (this.build)) {
Main.gameMenu.selectO1();
}
if (this.brakeMc._visible) {
Main.gameMenu.selectO1();
}
if (this.waitingInterface) {
Main.console("Fucking interface...");
Main.currentHouse = this;
Main.startDoInterface(this.houseType);
}
if (!this.sold) {
if (Main.money < 1000) {
Main.createPopUpText(XMLMaster.getInterfaceTexts(37), this._x, this._y, 16711680);
Main.console("No money");
return(undefined);
}
SoundMaster.addSound("lotBuy");
Main.addMoney(-1000);
this.sold = true;
this.nextFrame();
Main.console("Lot purchased");
Main.tutorial.level2("hlot");
LevelScript.thisLevelHouses.push([this._x, this._y, "lh"]);
return(undefined);
}
if ((((((Main.currentAction.charAt(0) != "h") && (Main.currentAction != "upgrade")) && (Main.currentAction != "repair")) && (!this.brakeMc._visible)) && (this.sold)) && (!this.build)) {
Main.console("No action selected");
Main.gameMenu.selectO2();
return(undefined);
}
if (Main.currentAction.charAt(0) == "h") {
Main.console("Trying to build house");
if (this.houseType > 0) {
Main.console("House already built!");
Main.currentAction = "none";
return(undefined);
}
this.houseType = Number(Main.currentAction.charAt(1));
var _local3 = House.electroNeed[this.houseType - 1] + Main.currentElectro;
var _local2 = House.waterNeed[this.houseType - 1] + Main.currentWater;
if (_local3 > Main.maxElectro) {
Main.console((("Electro: " + String(_local3)) + "/") + String(Main.maxElectro));
this.houseType = 0;
return(undefined);
}
if (_local2 > Main.maxWater) {
Main.console((("Water: " + String(_local2)) + "/") + String(Main.maxWater));
this.houseType = 0;
return(undefined);
}
var _local4 = House.COST[this.houseType - 1];
if (_local4 > Main.money) {
Main.createPopUpText(XMLMaster.getInterfaceTexts(37), this._x, this._y, 16711680);
Main.console("No money");
this.houseType = 0;
return(undefined);
}
SoundMaster.addSound("objectSet");
Main.addMoney(-_local4);
Main.currentWater = _local2;
Main.currentElectro = _local3;
this.thisAction = "build";
Main.tutorial.level2("buildHouse");
this.car = Main.sendCarTo(this);
} else if (Main.currentAction == "upgrade") {
if (!this.peopleIn) {
return(undefined);
}
if (this.costToUpgrade > Main.money) {
Main.createPopUpText(XMLMaster.getInterfaceTexts(37), this._x, this._y, 16711680);
Main.console("No money");
return(undefined);
}
if (this.upgrades == 2) {
Main.createPopUpText(XMLMaster.getInterfaceTexts(63), this._x, this._y, 65280);
Main.console("Upgraded 3/3.");
return(undefined);
}
if (this.houseType == 0) {
Main.console("No house");
return(undefined);
}
this.thisAction = "upgrade";
Main.tutorial.level4("upgrade");
this.car = Main.sendCarTo(this);
Main.addMoney(-this.costToUpgrade);
} else if (Main.currentAction == "repair") {
if (!this.broked) {
Main.console("Not broked");
Main.currentAction = "none";
return(undefined);
}
Main.console("Repairing...");
this.thisAction = "repair";
Main.tutorial.level3("repair");
this.car = Main.sendCarTo(this);
}
Main.currentAction = "none";
Main.console("Current action reseted");
};
}
function instantBuy() {
sold = true;
nextFrame();
lpMc.gotoAndStop(75);
var t = this;
_global.setTimeout(function () {
LevelScript.thisLevelHouses.push([t._x, t._y, "lh"]);
}, 1000);
}
function collectRent() {
if (feeMc._visible) {
getFee();
}
removeMarkOk();
}
function carArrived() {
if (thisAction == "upgrade") {
SoundMaster.addSound("upgradeStart");
createTimer(0, 40);
} else if (thisAction == "build") {
SoundMaster.addSound("buildingStart");
createTimer(0, 20);
} else if (thisAction == "in") {
peopleIn = true;
thisAction = "none";
Main.console("People arrived");
Main.tutorial.level4("time");
var t = this;
gs.TweenMax.to(peoplesCar, 1, {_alpha:0, onComplete:function () {
Main.console("Removing " + t.peoplesCar);
t.peoplesCar.swapDepths(301);
this.removeMovieClip();
t.startPay();
}});
} else if (thisAction == "repair") {
SoundMaster.addSound("buildingStart");
createTimer(2, 20);
} else if (thisAction == "demolish") {
SoundMaster.addSound("demolish");
createTimer(0, 20);
} else {
Main.console("House --> carArrived(): thisAction==null");
return(undefined);
}
}
function removeMarkOk() {
mark._alpha = 0;
}
function markOk() {
mark._alpha = 100;
}
function startPay() {
Main.console(String(this) + " wants start to pay");
feeMc = attachMovie("rentTimer", "rentTimer", 10, {_x:50, _y:50});
feeMc._visible = false;
mark.swapDepths(11);
feeMc.start(Main.FEE_INTERVAL);
}
function fee() {
Main.console("Time to fee!");
paying = true;
}
function bankCarHere() {
if (!paying) {
return(undefined);
}
getFee();
Main.createPopUpText((XMLMaster.getInterfaceTexts(36) + "\n+") + price, _x, _y, 65280);
}
function feeOut() {
Main.console("Paying off");
paying = false;
feeMc._visible = false;
}
function getFee() {
Main.console("Fee getted!");
Main.addMoney(price);
Main.addEffect("monet", _x + 50, _y + 50);
Main.tutorial.level3("rentGet");
feeOut();
Main.bankCars[0].feeLost();
}
function createTimer(type, fps) {
if (!type) {
type = 0;
}
if (!fps) {
fps = 20;
}
myTimer = attachMovie("CircleTimer", "myTimer", 100);
myTimer._x = 20;
myTimer._y = 20;
myTimer.setTimer(type, fps);
}
function brake() {
broked = true;
brakeMc.gotoAndPlay(1);
brakeMc._visible = true;
SoundMaster.addSound("breakSound");
}
function timerComplete() {
myTimer = null;
if (thisAction == "build") {
_alpha = 0;
gs.TweenMax.to(this, 1, {_alpha:100});
nextFrame();
houseMc.gotoAndStop(houseType);
houseMc.houseMc.stop();
mark = mark;
removeMarkOk();
waitingInterface = true;
keysMc = keysMc;
brakeMc = repairMc;
brakeMc._visible = false;
mark._alpha = 0;
SoundMaster.addSound("keyAppear");
build = true;
Main.stats[0]++;
thisNum = LevelScript.thisLevelHouses.push([_x, _y, "h", houseType, 0]);
removeMarkOk();
SoundMaster.addSound("eventDone");
thisAction = "none";
} else if (thisAction == "upgrade") {
houseMc.houseMc.nextFrame();
thisAction = "none";
upgrades++;
price = getCost(houseType);
Main.tutorial.l7Close();
trace("\u0411\u044B\u043B\u043E: " + LevelScript.thisLevelHouses[thisNum - 1][4]);
LevelScript.thisLevelHouses[thisNum - 1][4] = upgrades;
} else if (thisAction == "rasp") {
Main.console("Raspakovka done");
sendPeoplesCarHere();
} else if (thisAction == "repair") {
Main.console("Repair done");
broked = false;
brakeMc._visible = false;
Main.tutorial.l3Repaired();
thisAction = "none";
} else if (thisAction == "demolish") {
if ((Main.currentLevel == 8) && (Main.houses[0] == this)) {
Main.h32U = 0;
}
Main.topBarLink.setElectro(Main.currentElectro - electroNeed[houseType - 1]);
Main.topBarLink.setWater(Main.currentWater - waterNeed[houseType - 1]);
houseType = 0;
var _local2 = this;
upgrades = 0;
removeMovieClip();
gotoAndStop(2);
lpMc.gotoAndStop(75);
price = null;
mark = mark;
demolishing = false;
removeMarkOk();
demolishCar.moveCarTo(700, 300, false, true);
paying = false;
brakeMc._visible = false;
waitingInterface = false;
thisAction = "none";
}
GameMenu.checkButtons();
Main.console("Action complete catched");
car.freeCar();
car = null;
}
function instantUpgrade(num) {
upgrades = num;
price = getCost(houseType);
houseMc.houseMc.gotoAndStop(num + 1);
}
function sendDemolishCarHere() {
var _local3 = Main.root;
var _local2 = _local3.getNextHighestDepth();
demolishCar = _local3.attachMovie("Car", "dcar" + _local2, _local2, {_x:700, _y:81});
demolishCar.addCF = 12;
demolishCar.caller = this;
thisAction = "demolish";
mx.behaviors.DepthControl.bringToFront(Main.gameMenu);
mx.behaviors.DepthControl.bringToFront(Main.topBarLink);
demolishCar.moveCarTo(_x + carTo.x, _y + carTo.y);
}
function sendPeoplesCarHere() {
var _local3 = Main.root;
var _local2 = _local3.getNextHighestDepth();
peoplesCar = _local3.attachMovie("Car", "pcar" + _local2, _local2, {_x:700, _y:81});
peoplesCar.addCF = 4;
peoplesCar.caller = this;
thisAction = "in";
mx.behaviors.DepthControl.bringToFront(Main.gameMenu);
mx.behaviors.DepthControl.bringToFront(Main.topBarLink);
peoplesCar.moveCarTo(_x + carTo.x, _y + carTo.y);
Main.peoplesCars.push(peoplesCar);
}
function getCost(num) {
return(Math.round((((hearts * RENT_PER_HEART[num - 1]) + thisRandom) * (1 + (upgrades * 0.2))) + START_RENT[num - 1]));
}
function instantBuild(num, withInterrier, $upgrades) {
_alpha = 0;
trace($upgrades);
gs.TweenMax.to(this, 1, {_alpha:100});
gotoAndStop(3);
houseMc.gotoAndStop(num);
houseMc.houseMc.stop();
houseType = num;
sold = true;
mark = mark;
removeMarkOk();
var _local5 = electroNeed[houseType - 1] + Main.currentElectro;
var _local4 = waterNeed[houseType - 1] + Main.currentWater;
brakeMc = repairMc;
brakeMc._visible = false;
Main.currentElectro = _local5;
Main.currentWater = _local4;
var t = this;
thisNum = LevelScript.thisLevelHouses.push([_x, _y, "h", houseType, 0]);
_global.setTimeout(function () {
LevelScript.thisLevelHouses.push([t._x, t._y, "h", t.houseType, 0]);
}, 1000);
if (withInterrier) {
hearts = 100;
waitingInterface = false;
keysMc._visible = false;
thisAction = "in";
peoplesCar = null;
carArrived();
thisAction = "none";
keysMc._visible = false;
thisRandom = random(50) + 50;
hearts = 100;
if ($upgrades > 0) {
upgrades = upgrades + $upgrades;
LevelScript.thisLevelHouses[thisNum - 1][4] = upgrades;
houseMc.houseMc.gotoAndStop(upgrades + 1);
} else {
upgrades = 0;
}
price = getCost(num);
} else {
waitingInterface = true;
}
build = true;
Main.stats[0]++;
}
function startRaspakovka($hearts) {
hearts = $hearts;
thisRandom = Main.addRandom;
price = getCost(houseType);
keysMc._visible = false;
waitingInterface = false;
thisAction = "rasp";
createTimer(1, 20);
SoundMaster.addSound("rasp");
}
var sold = false;
var houseType = 0;
var thisAction = "";
var upgrades = 0;
var waitingInterface = false;
var wantToUpgrade = true;
var costToUpgrade = 250;
var build = false;
static var electroNeed = [6, 10];
static var waterNeed = [6, 9];
static var RENT_PER_HEART = [2, 5];
static var START_RENT = [187, 440];
static var COST = [1700, 4000];
var broked = false;
var peopleIn = false;
var demolishing = false;
}
Symbol 806 MovieClip [__Packages.GameMenu] Frame 0
class GameMenu extends MovieClip
{
static var staticButons;
var moneyTXT, moneytxt, gotoMenu, gotoMainMenu, house1, house2, ps, ws, upgrade, o1, o2, o3, bank, bankButton, garage, garageButton, repair, demolish, demolishButton, all, l, m1, m2, m3, m4, m5, getNextHighestDepth, goals, attachMovie, mapText;
function GameMenu () {
super();
moneyTXT = moneytxt;
gotoMenu = gotoMainMenu;
house1 = house1;
house2 = house2;
ps = ps;
ws = ws;
upgrade = upgrade;
o1 = o1;
o2 = o2;
o3 = o3;
bank = bankButton;
garage = garageButton;
repair = repair;
demolish = demolishButton;
all = [house1, house2, ps, ws, upgrade, garage, bank, repair];
staticButons = all;
l = all.length;
house1.cost = 1700;
house2.cost = 4000;
ps.cost = 2500;
ws.cost = 2500;
garageButton.cost = Garage.cost[0];
bankButton.cost = Garage.cost[1];
house1.electroNeed = House.electroNeed[0];
house1.waterNeed = House.waterNeed[0];
house2.electroNeed = House.electroNeed[1];
house2.waterNeed = House.waterNeed[1];
garageButton.waterNeed = Garage.waterNeed[0];
garageButton.electroNeed = Garage.electroNeed[0];
bankButton.electroNeed = Garage.electroNeed[1];
bankButton.waterNeed = Garage.electroNeed[1];
m1.text = XMLMaster.getInterfaceTexts(14);
m2.text = XMLMaster.getInterfaceTexts(15);
m3.text = XMLMaster.getInterfaceTexts(16);
m4.text = XMLMaster.getInterfaceTexts(5);
m5.text = XMLMaster.getInterfaceTexts(17);
var _local5 = getNextHighestDepth();
goals = attachMovie("Goals", "Goals" + _local5, _local5);
goals._x = 550;
goals._y = 50;
house1.onRelease = function () {
this._parent.whyNot(this);
if ((!this.enabledFromWarnings) || (!this.enabled)) {
return(undefined);
}
Main.tutorial.level2("button");
SoundMaster.addSound("downMenuHouse");
Main.console("Build House 1 selected");
Main.currentAction = "h1";
Main.setCursor("h", 1);
Main.selectItem();
};
house2.onRelease = function () {
this._parent.whyNot(this);
if ((!this.enabledFromWarnings) || (!this.enabled)) {
return(undefined);
}
SoundMaster.addSound("downMenuHouse");
Main.console("Build House 2 selected");
Main.currentAction = "h2";
Main.setCursor("h", 2);
Main.selectItem();
};
ps.onRelease = function () {
this._parent.whyNot(this);
if ((!this.enabledFromWarnings) || (!this.enabled)) {
return(undefined);
}
Main.tutorial.level1("button");
SoundMaster.addSound("downMenuHouse");
Main.console("Build PS selected");
Main.setCursor("p", 1);
Main.currentAction = "ps";
Main.selectItem();
};
ws.onRelease = function () {
this._parent.whyNot(this);
if ((!this.enabledFromWarnings) || (!this.enabled)) {
return(undefined);
}
Main.tutorial.level1("button");
SoundMaster.addSound("downMenuHouse");
Main.console("Build WS selected");
Main.setCursor("p", 2);
Main.currentAction = "ws";
Main.selectItem();
};
upgrade.onRelease = function () {
this._parent.whyNot(this);
if ((!this.enabledFromWarnings) || (!this.enabled)) {
return(undefined);
}
Main.tutorial.level4("button");
SoundMaster.addSound("downMenuHouse");
Main.console("Upgrade selected");
Main.setCursor("upgrade", 1);
Main.currentAction = "upgrade";
Main.selectItem();
};
garage.onRelease = function () {
this._parent.whyNot(this);
if ((!this.enabledFromWarnings) || (!this.enabled)) {
return(undefined);
}
SoundMaster.addSound("downMenuHouse");
Main.console("Garage build selected");
Main.currentAction = "garage";
Main.setCursor("garage", 0);
Main.selectItem();
};
bank.onRelease = function () {
this._parent.whyNot(this);
if ((!this.enabledFromWarnings) || (!this.enabled)) {
return(undefined);
}
SoundMaster.addSound("downMenuHouse");
Main.console("Bank build selected");
Main.currentAction = "bank";
Main.setCursor("bank", 0);
Main.selectItem();
};
repair.onRelease = function () {
if ((!this.enabledFromWarnings) || (!this.enabled)) {
return(undefined);
}
Main.tutorial.level3("button");
SoundMaster.addSound("downMenuHouse");
Main.console("Repair selected");
Main.currentAction = "repair";
Main.setCursor("repair", 0);
Main.selectItem();
};
demolish.onRelease = function () {
if ((!this.enabledFromWarnings) || (!this.enabled)) {
return(undefined);
}
SoundMaster.addSound("downMenuHouse");
Main.currentAction = "demolish";
Main.setCursor("demolish", 0);
Main.selectItem();
};
o1.onRelease = function () {
SoundMaster.addSound("downMenuGroup");
this._parent.selectO1();
};
o2.onRelease = function () {
SoundMaster.addSound("downMenuGroup");
this._parent.selectO2();
};
o3.onRelease = function () {
SoundMaster.addSound("downMenuGroup");
this._parent.selectO3();
};
gotoMenu.onRelease = function () {
Main.pause();
Main.showInGameMenu();
};
selectO3();
mapText.text = maptxt;
var _local3 = all.length;
while (_local3--) {
var _local4 = all[_local3];
_local4.hintNumber = _local3;
}
demolish.hintNumber = 8;
}
function whyNot(mc) {
if (!mc.enabled) {
return(true);
}
if (mc.enabledFromWarnings) {
return(true);
}
if (!Main.haveFreeCars()) {
return(true);
}
if ((mc.waterNeed + Main.currentWater) > Main.maxWater) {
Main.createPopUpText(XMLMaster.getInterfaceTexts(39), Main.root._xmouse - 20, Main.root._ymouse, 16711680);
return(true);
}
if ((mc.electroNeed + Main.currentElectro) > Main.maxElectro) {
Main.createPopUpText(XMLMaster.getInterfaceTexts(38), Main.root._xmouse - 20, Main.root._ymouse, 16711680);
return(true);
}
if (mc.cost > Main.money) {
Main.createPopUpText(XMLMaster.getInterfaceTexts(37), Main.root._xmouse - 20, Main.root._ymouse, 16711680);
return(true);
}
return(false);
}
function selectO1() {
hideAll();
upgrade._visible = true;
repair._visible = true;
demolish._visible = true;
o1.enabled = false;
o1.gotoAndStop(3);
o2.enabled = true;
o3.enabled = true;
o2.gotoAndStop(1);
o3.gotoAndStop(1);
}
function selectO2() {
hideAll();
o2.enabled = false;
o2.gotoAndStop(3);
house1._visible = true;
house2._visible = true;
o1.enabled = true;
o3.enabled = true;
o1.gotoAndStop(1);
o3.gotoAndStop(1);
}
function selectO3() {
hideAll();
o3.enabled = false;
o3.gotoAndStop(3);
ps._visible = true;
ws._visible = true;
garage._visible = true;
bank._visible = true;
o2.enabled = true;
o1.enabled = true;
o2.gotoAndStop(1);
o1.gotoAndStop(1);
}
function hideAll() {
var _local2 = 0;
while (_local2 < l) {
all[_local2]._visible = false;
_local2++;
}
demolish._visible = false;
}
function disableAllButtonsExceptPlants() {
Main.console("Disable all buttons, except plants");
var _local2 = l;
while (_local2--) {
all[_local2].disable();
}
ps.enable();
ws.enable();
repair.enable();
demolish.enable();
}
function disableAll() {
var _local2 = l;
while (_local2--) {
all[_local2].disable();
}
repair.enable();
demolish.enable();
}
static function checkButtons(s) {
Main.console("Checking buttons accesebility");
var _local2 = staticButons.length;
var _local3 = Main.haveFreeCars();
if (!_local3) {
Main.topBarLink.blockAllEButtons();
Main.topBarLink.blockAllWButtons();
} else {
Main.topBarLink.enableAllEButtons();
Main.topBarLink.enableAllWButtons();
}
while (_local2--) {
var _local1 = staticButons[_local2];
if (_local1.enabled) {
switchOn(_local1);
}
if (!_local3) {
switchOff(_local1);
} else if ((_local1.cost != undefined) && (_local1.cost > Main.money)) {
switchOff(_local1);
} else if ((_local1.waterNeed != undefined) && ((_local1.waterNeed + Main.currentWater) > Main.maxWater)) {
switchOff(_local1);
} else if ((_local1.electroNeed != undefined) && ((_local1.electroNeed + Main.currentElectro) > Main.maxElectro)) {
switchOff(_local1);
}
}
}
static function switchOff(b) {
b.gotoAndStop(2);
b.enabledFromWarnings = false;
}
static function switchOn(b) {
b.gotoAndStop(1);
b.enabledFromWarnings = true;
}
static function setMapText(text) {
maptxt = text;
}
static var maptxt = "o_O";
}
Symbol 807 MovieClip [__Packages.MenuButton] Frame 0
class MenuButton extends MovieClip
{
var stop, lockMc, attachMovie, my_color, onRollOver, onRollOut, gotoAndStop;
function MenuButton () {
super();
stop();
var _local7;
lockMc = attachMovie("lock", "lockMc", 1);
hideLock();
my_color = new Color(this);
var transformNormal = my_color.getTransform();
var transformOver = my_color.getTransform();
transformOver = {ra:130, ba:130, ga:130};
onRollOver = function () {
if (!this.enabled) {
return(undefined);
}
if (this.hintNumber >= 0) {
this.hintMc = this.attachMovie("MBHint", "MBHint", 5);
this.hintMc.txt.text = XMLMaster.getInterfaceTexts(this.hintNumber + 54);
this.hintMc._visible = true;
}
if (!this.enabledFromWarnings) {
return(undefined);
}
this.my_color.setTransform(transformOver);
};
onRollOut = function () {
if (this.hintNumber >= 0) {
var _local2 = this;
this.hintMc.removeMovieClip();
}
if ((!this.enabled) || (!this.enabledFromWarnings)) {
return(undefined);
}
this.my_color.setTransform(transformNormal);
};
}
function addHint(num) {
trace(num);
hintNumber = num;
}
function disable() {
gotoAndStop(2);
showLock();
enabled = false;
}
function enable() {
gotoAndStop(1);
hideLock();
enabled = true;
}
function mark(what) {
}
function removeMark(what) {
}
function showLock() {
lockMc._visible = true;
}
function hideLock() {
lockMc._visible = false;
}
var enabled = true;
var marks = [];
var enabledFromWarnings = true;
var hintNumber = -1;
}
Symbol 808 MovieClip [__Packages.TopBar] Frame 0
class TopBar extends MovieClip
{
var waterBar, waterArrow, electroBar, electroArrow, pluse1, pluse2, pluse3, plusw3, plusw2, plusw1, waterMc, w, electroMc, e, water, electro;
function TopBar () {
super();
waterBar = waterBar;
waterArrow = waterArrow;
electroBar = electroBar;
electroArrow = electroArrow;
pluse1 = pluse1;
pluse2 = pluse2;
pluse3 = pluse3;
plusw3 = plusw3;
plusw2 = plusw2;
plusw1 = plusw1;
pluse1.i = UPGRADES_ADD[0];
pluse2.i = UPGRADES_ADD[1];
pluse3.i = UPGRADES_ADD[2];
plusw1.i = UPGRADES_ADD[0];
plusw2.i = UPGRADES_ADD[1];
plusw3.i = UPGRADES_ADD[2];
pluse1.p = UPGRADES_COST[0];
pluse2.p = UPGRADES_COST[1];
pluse3.p = UPGRADES_COST[2];
plusw1.p = UPGRADES_COST[0];
plusw2.p = UPGRADES_COST[1];
plusw3.p = UPGRADES_COST[2];
waterMc = w;
electroMc = e;
waterMc._visible = false;
electroMc._visible = false;
Main.topBarLink = this;
var i = 1;
while (i <= 3) {
this["pluse" + i].onRelease = function () {
if (((Main.tutorial._visible && (Main.tutorial._alpha > 50)) && (Main.tutorial.inMc._visible)) && (Main.tutorial.inMc._alpha > 50)) {
return(undefined);
}
if (Main.plantMc == undefined) {
Main.console("No plant to upgrade");
return(undefined);
}
if (Main.maxElectro >= 100) {
Main.console("Max plant upgrades");
return(undefined);
}
if (Main.plantMc.thisAction == "upgrade") {
Main.console("already upgrading");
return(undefined);
}
if (!Main.haveFreeCars()) {
Main.console("No cars");
return(undefined);
}
if (Main.money < this.p) {
Main.console("no money");
return(undefined);
}
this._parent.uprE = true;
Main.addMoney(-this.p);
SoundMaster.addSound("task");
this._parent.blockAllEButtons();
Main.plantMc.thisAction = "upgrade";
Main.plantMc.upgradePlus = this.i;
Main.plantMc.upgradeTime = 40 - (this.i / 2);
Main.plantMc.upgradePlant = true;
Main.plantMc.car = Main.sendCarTo(Main.plantMc);
};
this["plusw" + i].onRelease = function () {
trace(Main.tutorial.inMc._visible);
trace(Main.tutorial.inMc._alpha);
if (((Main.tutorial._visible && (Main.tutorial._alpha > 50)) && (Main.tutorial.inMc._visible)) && (Main.tutorial.inMc._alpha > 50)) {
return(undefined);
}
if (Main.waterMc == undefined) {
Main.console("No waterplant to upgrade");
return(undefined);
}
if (Main.maxWater >= 100) {
Main.console("Max water upgrades");
return(undefined);
}
if (Main.waterMc.thisAction == "upgrade") {
Main.console("already upgrading");
return(undefined);
}
if (!Main.haveFreeCars()) {
Main.console("No cars");
return(undefined);
}
if (Main.money < this.p) {
Main.console("no money");
return(undefined);
}
Main.addMoney(-this.p);
SoundMaster.addSound("task");
this._parent.blockAllWButtons();
this._parent.uprW = true;
Main.waterMc.thisAction = "upgrade";
Main.waterMc.upgradePlus = this.i;
Main.waterMc.upgradeTime = 40 - (this.i / 2);
Main.waterMc.upgradePlant = true;
Main.waterMc.car = Main.sendCarTo(Main.waterMc);
};
i++;
}
water = Main.currentWater;
electro = Main.currentElectro;
updateElectroIndicator();
updateWaterIndicator();
}
function blockAllEButtons() {
pluse1.disable();
pluse2.disable();
pluse3.disable();
}
function blockAllWButtons() {
plusw1.disable();
plusw2.disable();
plusw3.disable();
}
function enableAllEButtons() {
if ((Main.maxElectro >= 100) || (uprE)) {
return(undefined);
}
pluse1.enable();
pluse2.enable();
pluse3.enable();
pluse1.gotoAndStop(1);
pluse2.gotoAndStop(1);
pluse3.gotoAndStop(1);
}
function enableAllWButtons() {
if ((Main.maxWater >= 100) || (uprW)) {
return(undefined);
}
plusw1.enable();
plusw2.enable();
plusw3.enable();
plusw1.gotoAndStop(1);
plusw2.gotoAndStop(1);
plusw3.gotoAndStop(1);
}
function addMaxWater(num) {
Main.maxWater = Main.maxWater + num;
if (Main.maxWater > 100) {
Main.maxWater = 100;
}
Main.console("Max water raised. +" + num);
updateWaterIndicator();
}
function addMaxElectro(num) {
Main.maxElectro = Main.maxElectro + num;
if (Main.maxElectro > 100) {
Main.maxElectro = 100;
}
Main.console("Max electro raised. +" + num);
updateElectroIndicator();
}
function setWater(num) {
Main.currentWater = num;
waterArrow.gotoAndStop(num + 1);
}
function setElectro(num) {
Main.currentElectro = num;
electroArrow.gotoAndStop(num + 1);
}
function updateWaterIndicator() {
waterMc.text = (("Water: " + Main.currentWater) + "/") + Main.maxWater;
waterBar.onEnterFrame = function () {
if (this._currentframe >= Main.maxWater) {
this.gotoAndStop(Main.maxWater);
delete this.onEnterFrame;
} else {
this.nextFrame();
}
};
waterArrow.onEnterFrame = function () {
if (this._currentframe >= Main.currentWater) {
this.gotoAndStop(Main.currentWater);
delete this.onEnterFrame;
} else {
this.nextFrame();
}
};
Main.somethingChanged();
}
function updateElectroIndicator() {
electroMc.text = (("Electro: " + Main.currentElectro) + "/") + Main.maxElectro;
electroBar.onEnterFrame = function () {
if (this._currentframe >= Main.maxElectro) {
this.gotoAndStop(Main.maxElectro);
delete this.onEnterFrame;
} else {
this.nextFrame();
}
};
electroArrow.onEnterFrame = function () {
if (this._currentframe >= Main.currentElectro) {
this.gotoAndStop(Main.currentElectro);
delete this.onEnterFrame;
} else {
this.nextFrame();
}
};
Main.somethingChanged();
}
static var UPGRADES_ADD = [10, 20, 30];
static var UPGRADES_COST = [200, 500, 900];
var uprW = false;
var uprE = false;
var animArr = [0, 0, 0, 0];
}
Symbol 809 MovieClip [__Packages.flufme.as2.DebugManager] Frame 0
class flufme.as2.DebugManager extends MovieClip
{
var beginFill, moveTo, lineTo, endFill;
function DebugManager () {
super();
}
function showPoints(pArray) {
var _local2 = pArray.length;
while (_local2--) {
drawPoint(pArray[_local2]);
}
}
function drawPoint(p, color) {
if (!color) {
color = 16711680 /* 0xFF0000 */;
}
drawRect(p.x, p.y, 5, 5, color);
}
function drawRect(x, y, width, height, color) {
beginFill(color, 100);
moveTo(x, y);
lineTo(x + width, y);
lineTo(x + width, y + height);
lineTo(x, y + height);
lineTo(x, y);
endFill();
}
}
Symbol 810 MovieClip [__Packages.Goals] Frame 0
class Goals extends MovieClip
{
var gaas, ga1, ga2, ga3, g1, g2, g3;
function Goals () {
super();
Main.console("New Goals created");
reset();
}
function countActiveGoals() {
return(gaUsed);
}
function addGoal(num, text, param) {
var _local2;
_local2 = goalsMc[gaUsed];
_local2.gotoAndStop(num);
_local2._visible = true;
_local2.obj.gotoAndStop(param);
gaas[gaUsed]._visible = true;
_local2.txt.text = text;
gaUsed++;
selectGa(0);
}
function finishAddGoals() {
Main.showGoalsScreen();
}
function isGoalAlive(num) {
if (goalsMc[num]._visible) {
return(true);
}
return(false);
}
function removeGoal(num) {
if (!gaas[num]._visible) {
return(undefined);
}
gaas[num]._visible = false;
goalsMc[num]._visible = false;
selectGa(0);
gaUsed--;
}
function selectGa(num) {
if (!gaas[num]._visible) {
num++;
}
if (!gaas[num]._visible) {
num++;
}
if (!gaas[num]._visible) {
num = 0;
}
switchOffAll();
hideAll();
gaas[num].gotoAndStop(2);
goalsMc[num]._alpha = 100;
}
function hideAll() {
var _local2 = goalsMc.length;
while (_local2--) {
goalsMc[_local2]._alpha = 0;
}
}
function switchOffAll() {
var _local2 = gaas.length;
while (_local2--) {
gaas[_local2].gotoAndStop(1);
}
}
function reset() {
Main.goals = this;
ga1 = ga1;
ga2 = ga2;
ga3 = ga3;
g1 = g1;
g2 = g2;
g3 = g3;
g1._visible = false;
g2._visible = false;
g3._visible = false;
goalsMc = [g1, g2, g3];
gaas = [ga1, ga2, ga3];
var i = gaas.length;
var _local2;
while (i--) {
_local2 = gaas[i];
_local2.stop();
_local2.i = i;
_local2._visible = false;
_local2.onRelease = function () {
SoundMaster.addSound("downMenuGoalClick");
this._parent.selectGa(this.i);
};
}
}
function getGoals() {
var _local3 = [];
var _local2 = 2;
while (_local2--) {
if (isGoalAlive(0)) {
_local3.push([goalsMc[_local2]._currentframe, goalsMc[_local2].obj._currentframe, goalsMc[_local2].txt.text]);
}
}
return(_local3);
}
var gaUsed = 0;
var goalsMc = [];
}
Symbol 811 MovieClip [__Packages.Car] Frame 0
class Car extends MovieClip
{
var stop, oldX, _x, oldY, _y, endPoint, caller, _alpha, thisDestPoint, gotoAndStop;
function Car () {
super();
stop();
oldX = _x;
oldY = _y;
endPoint = new flash.geom.Point();
pointsStart = Main.currentLevelPoints;
}
function initBankCar() {
if (busy) {
return(undefined);
}
var _local3 = 0;
var _local2 = Main.toCollectRent[0];
if (Main.toCollectRent.length == 0) {
busy = false;
moveCarTo(300, 300, true);
return(undefined);
}
if (_local2 == undefined) {
return(undefined);
}
while (true) {
_local3++;
if (_local3 > 10) {
break;
}
if (Main.toCollectRent.length == 0) {
break;
}
_local2 = Main.toCollectRent[0];
if (_local2 == undefined) {
break;
}
if (!_local2.paying) {
Main.toCollectRent = Main.toCollectRent.splice(0, 1);
} else {
break;
}
}
if (_local2.paying && (_local2.feeMc._visible)) {
caller = _local2;
moveCarTo(_local2._x + _local2.carTo.x, _local2._y + _local2.carTo.y);
_local2.markOk();
Main.toCollectRent.splice(0, 1);
}
}
function unpause() {
}
function moveCarTo(x, y, getOut) {
if (getOut) {
return(undefined);
}
var _local10 = getTimer();
if (x && (y)) {
_alpha = 100;
if (!getOut) {
busy = true;
}
points.splice(0, points.length);
points = null;
points = pointsStart.slice();
endPoint.x = x;
endPoint.y = y;
points.push(endPoint);
} else if (dist(endPoint.x, endPoint.y, _x, _y) < 10) {
if (!busy) {
Main.console("Car hided");
gs.TweenMax.to(this, 0.5, {_alpha:0});
return(undefined);
}
if (!bankCar) {
caller.carArrived();
} else {
busy = false;
caller.collectRent();
initBankCar();
}
Main.console("Car has arrived");
thisDestPoint = null;
return(undefined);
}
var _local13 = 0;
var _local3 = points.slice();
var _local2 = getNearestPoint(_x, _y, points);
points.splice(_local2[0], 1);
var _local4 = getNearestPoint(_x, _y, points);
var _local9 = _local3[_local2[0]].x;
var _local7 = points[_local4[0]].x;
var _local8 = _local3[_local2[0]].y;
var _local6 = points[_local4[0]].y;
var _local12 = dist(endPoint.x, endPoint.y, _local9, _local8);
var _local11 = dist(endPoint.x, endPoint.y, _local7, _local6);
var _local5;
if (_local12 >= _local11) {
_local5 = points[_local4[0]];
} else {
_local5 = _local3[_local2[0]];
}
goTo(_local5);
Main.console(("Pathfind time: " + (getTimer() - _local10)) + " ms", true);
}
function getNearestPoint(mcX, mcY, pArray) {
var _local7 = pArray.length;
var _local2 = 0;
var _local5 = dist(mcX, mcY, pArray[_local2].x, pArray[_local2].y);
var _local6 = _local2;
var _local3;
_local2 = 1;
while (_local2 < _local7) {
_local3 = dist(mcX, mcY, pArray[_local2].x, pArray[_local2].y);
if (_local3 < _local5) {
_local5 = _local3;
_local6 = _local2;
}
_local2++;
}
return([_local6, _local5]);
}
function freeCar() {
busy = false;
Main.console("Now car is free");
Main.updateButtons();
Main.topBarLink.updateElectroIndicator();
Main.topBarLink.updateWaterIndicator();
getOut();
}
function goTo(p) {
thisDestPoint = p;
var _local3 = Math.atan((_x - p.x) / (_y - p.y));
if (_local3 > 0) {
if ((p.x - _x) > 0) {
gotoAndStop(1 + addCF);
} else {
gotoAndStop(3 + addCF);
}
} else if ((p.y - _y) > 0) {
gotoAndStop(4 + addCF);
} else {
gotoAndStop(2 + addCF);
}
var TH = this;
gs.TweenMax.to(this, flash.geom.Point.distance(p, new flash.geom.Point(_x, _y)) / Main.CAR_SPEED, {overwrite:true, _x:p.x, _y:p.y, ease:gs.easing.Linear.easeNone, onComplete:function () {
TH.moveCarTo();
}});
}
function pause() {
Main.console(this + " want a pause");
if (thisDestPoint == null) {
return(undefined);
}
gs.TweenMax.to(this, 0.1, {_x:_x, overwrite:true});
}
function resume() {
if (thisDestPoint == null) {
return(undefined);
}
var _local2 = thisDestPoint;
var TH = this;
gs.TweenMax.to(this, flash.geom.Point.distance(_local2, new flash.geom.Point(_x, _y)) / 100, {_x:_local2.x, _y:_local2.y, ease:gs.easing.Linear.easeNone, onComplete:function () {
TH.moveCarTo();
}});
}
function dist(x1, y1, x2, y2) {
var _local2 = x2 - x1;
var _local1 = y2 - y1;
return((_local2 * _local2) + (_local1 * _local1));
}
function getOut() {
moveCarTo(700, 300, true);
}
var points = [];
var pointsStart = [];
var busy = false;
var addCF = 0;
var bankCar = false;
}
Symbol 812 MovieClip [__Packages.Levels] Frame 0
class Levels extends LevelScript
{
var createLevelBegins, addMoney, createLevelEnds, addPlant, addGarage, addHouse, winInterval;
function Levels (levelNumber) {
super();
Main.console("New level: level code " + levelNumber);
createLevelBegins(levelNumber);
if (levelNumber == 0) {
Main.console("Entering debug level");
Main.winCheckFunction = debugLevelWictory;
debugLevel();
}
if (levelNumber == 1) {
Main.console("Level 1");
Main.winCheckFunction = level1Victory;
level1();
addMoney(6600);
_global.setTimeout(function () {
Main.timeBar.init(150);
Main.gameMenu.disableAllButtonsExceptPlants();
Main.tutorial.gotoFrame(1);
GameMenu.checkButtons();
}, 200);
} else if (levelNumber == 2) {
Main.console("Level 2");
Main.winCheckFunction = level2Victory;
level2();
addMoney(2700);
_global.setTimeout(function () {
Main.timeBar.init(200);
Main.gameMenu.disableAll();
Main.gameMenu.house1.enable();
Main.tutorial.gotoFrame(2);
GameMenu.checkButtons();
}, 200);
} else if (levelNumber == 3) {
Main.console("Level 3");
Main.winCheckFunction = level3Victory;
level3();
addMoney(1500);
_global.setTimeout(function () {
Main.timeBar.init(90);
Main.gameMenu.disableAll();
Main.gameMenu.house1.enable();
Main.tutorial.gotoFrame(3);
GameMenu.checkButtons();
}, 200);
} else if (levelNumber == 4) {
Main.console("Level 4");
Main.winCheckFunction = level4Victory;
level4();
addMoney(11000);
_global.setTimeout(function () {
Main.timeBar.init(180);
Main.gameMenu.disableAllButtonsExceptPlants();
Main.gameMenu.house1.enable();
GameMenu.checkButtons();
}, 200);
} else if (levelNumber == 5) {
Main.console("Level 5");
Main.winCheckFunction = level5Victory;
level5();
addMoney(0);
_global.setTimeout(function () {
Main.timeBar.init(163);
Main.gameMenu.disableAll();
Main.gameMenu.house1.enable();
Main.gameMenu.house2.enable();
GameMenu.checkButtons();
}, 200);
} else if (levelNumber == 6) {
Main.console("Level 6");
Main.winCheckFunction = level6Victory;
level6();
addMoney(0);
_global.setTimeout(function () {
Main.timeBar.init(170);
Main.gameMenu.disableAll();
Main.gameMenu.house1.enable();
Main.gameMenu.house2.enable();
GameMenu.checkButtons();
}, 200);
} else if (levelNumber == 7) {
Main.console("Level 7");
Main.winCheckFunction = level7Victory;
level7();
addMoney(0);
_global.setTimeout(function () {
Main.timeBar.init(350);
Main.gameMenu.disableAllButtonsExceptPlants();
Main.gameMenu.house1.enable();
Main.gameMenu.house2.enable();
Main.gameMenu.upgrade.enable();
GameMenu.checkButtons();
}, 200);
} else if (levelNumber == 8) {
Main.console("Level 8");
Main.winCheckFunction = level8Victory;
level8();
addMoney(0);
Main.g32B = false;
Main.h32U = 0;
_global.setTimeout(function () {
Main.timeBar.init(225);
Main.gameMenu.disableAll();
Main.gameMenu.house1.enable();
Main.gameMenu.house2.enable();
Main.gameMenu.upgrade.enable();
Main.h32U = Main.houses[0].upgrades;
GameMenu.checkButtons();
}, 200);
} else if (levelNumber == 9) {
Main.console("Level 9");
Main.winCheckFunction = level9Victory;
level9();
addMoney(0);
_global.setTimeout(function () {
Main.timeBar.init(190);
Main.gameMenu.disableAll();
Main.gameMenu.house1.enable();
Main.gameMenu.house2.enable();
Main.gameMenu.upgrade.enable();
if (!Main.g32B) {
Main.gameMenu.garage.enable();
}
GameMenu.checkButtons();
}, 200);
}
createLevelEnds();
}
function level9() {
GameMenu.setMapText(XMLMaster.getInterfaceTexts(19) + ": 3-3");
_global.setTimeout(function () {
Main.goals.addGoal(2, XMLMaster.getInterfaceTexts(18), 6);
Main.goals.addGoal(1, "25000", 1);
Main.goals.finishAddGoals();
Main.topBarLink.addMaxElectro(35);
Main.topBarLink.addMaxWater(35);
}, GOAL_SHOW_TIMEOUT);
addPlant(427, 81, 2);
addPlant(34, 265, 1);
if (Main.g32B) {
addGarage(50, 85, 1);
} else {
addGarage(50, 85);
}
var _local3 = LevelScript.thisLevelHouses;
if (_local3[0] === undefined) {
addHouse(152, 305, 1, true);
addHouse(300, 38, 2, true);
addHouse(469, 230, 2, false);
addHouse(500, 96, 1, true, 2);
addHouse(290, 180, 1, true);
addHouse(180, 148, 2, true);
} else {
var _local4 = _local3.length;
while (_local4--) {
if (_local3[_local4][2] == "h") {
trace("HN " + _local4);
addHouse(_local3[_local4][0], _local3[_local4][1], _local3[_local4][3], true, 0);
} else if (_local3[_local4][2] == "lh") {
trace("LEEEHEEE");
var _local5 = addHouse(_local3[_local4][0], _local3[_local4][1]);
_local5.instantBuy();
} else if (_local3[_local4][2] == "g") {
Main.garages[0].instantBuy();
}
}
_local4 = Main.houses.length;
while (_local4--) {
Main.houses[_local4].instantUpgrade(Main.upgradesArr[Main.houses[_local4]._x]);
}
}
Main.topBarLink.addMaxWater(20);
Main.topBarLink.addMaxElectro(20);
}
function level9Victory() {
if ((Main.money >= 6000) && (Main.garages.length == 1)) {
Main.level.addGarage(329, 319);
mx.behaviors.DepthControl.bringToFront(Main.gameMenu);
Main.gameMenu.bank.enable();
Main.gameMenu.bank.gotoAndStop(2);
Main.gameMenu.bank.enabledFromWarnings = false;
}
if (Main.money >= 25000) {
Main.goals.removeGoal(1);
}
if (Main.bank.build) {
Main.goals.removeGoal(0);
}
if ((Main.goals.countActiveGoals() == 0) && (Main.bank.build)) {
return(true);
}
return(false);
}
function level8Victory() {
if (Main.houses.length == 1) {
Main.level.addHouse(290, 180);
} else if (Main.houses.length == 2) {
Main.level.addHouse(180, 148);
}
if ((Main.money >= 1000) && (Main.houses.length == 3)) {
Main.level.addHouse(152, 300);
}
if ((Main.money >= 3000) && (Main.houses.length == 4)) {
Main.level.addHouse(300, 38);
}
if ((Main.money >= 5000) && (Main.garages.length == 0)) {
Main.level.addGarage(50, 85);
Main.gameMenu.garage.enable();
}
if (Main.money >= 23000) {
Main.goals.removeGoal(0);
return(true);
}
return(false);
}
function level8() {
GameMenu.setMapText(XMLMaster.getInterfaceTexts(19) + ": 3-2");
_global.setTimeout(function () {
Main.goals.addGoal(1, "23000", 1);
Main.goals.finishAddGoals();
Main.topBarLink.addMaxElectro(30);
Main.topBarLink.addMaxWater(30);
}, GOAL_SHOW_TIMEOUT);
addPlant(427, 81, 2);
addPlant(34, 265, 1);
var _local4 = LevelScript.thisLevelHouses;
if (_local4[0] === undefined) {
addHouse(500, 96, 1, true, 2);
addHouse(290, 180, 1, true);
addHouse(180, 148, 2, true);
} else {
var _local3 = _local4.length;
while (_local3--) {
if (_local4[_local3][2] == "h") {
trace("HN " + _local3);
addHouse(_local4[_local3][0], _local4[_local3][1], _local4[_local3][3], true, _local4[_local3][4]);
} else if (_local4[_local3][2] == "lh") {
trace("LEEEHEEE");
var _local5 = addHouse(_local4[_local3][0], _local4[_local3][1]);
_local5.instantBuy();
}
}
}
}
function level7Victory() {
if ((Main.waterMc.builded && (Main.plantMc.builded)) && (Main.houses.length == 0)) {
Main.level.addHouse(500, 96);
}
if (((Main.houses[0].build == 1) && (Main.money >= 1000)) && (Main.houses.length == 1)) {
Main.level.addHouse(290, 180);
}
if ((Main.houses.length == 2) && (Main.houses[1].build)) {
Main.level.addHouse(180, 148);
}
if ((((Main.houses.length == 3) && (Main.houses[0].build)) && (Main.houses[1].build)) && (Main.houses[2].build)) {
Main.level.addHouse(152, 298);
}
if (Main.money >= 14500) {
Main.goals.removeGoal(2);
}
if (Main.goals.isGoalAlive(0)) {
var _local1 = Main.houses.length;
while (_local1--) {
if (Main.houses[_local1].build && (Main.houses[_local1].houseType == 1)) {
Main.goals.removeGoal(0);
break;
}
}
}
if (Main.goals.isGoalAlive(1)) {
var _local1 = Main.houses.length;
while (_local1--) {
if ((Main.houses[_local1].build && (Main.houses[_local1].houseType == 1)) && (Main.houses[_local1].upgrades == 1)) {
Main.goals.removeGoal(1);
break;
}
}
}
if ((Main.goals.countActiveGoals() == 0) && (Main.houses.length > 0)) {
return(true);
}
return(false);
}
function level7() {
addPlant(427, 81);
addPlant(34, 265);
addMoney(11500);
GameMenu.setMapText(XMLMaster.getInterfaceTexts(19) + ": 3-1");
_global.setTimeout(function () {
Main.goals.addGoal(2, XMLMaster.getInterfaceTexts(18), 1);
Main.goals.addGoal(3, XMLMaster.getInterfaceTexts(27), 1);
Main.goals.addGoal(1, "14500", 1);
Main.goals.finishAddGoals();
}, GOAL_SHOW_TIMEOUT);
}
function level6Victory() {
if ((Main.money >= 1000) && (Main.garages[0] == undefined)) {
Main.level.addGarage(190, 255);
Main.gameMenu.garage.enable();
}
if ((Main.houses.length == 4) && (Main.money >= 2000)) {
Main.level.addHouse(253, 158);
}
if (Main.money >= 16500) {
Main.goals.removeGoal(1);
}
if (Main.garage.build) {
Main.goals.removeGoal(0);
}
if ((Main.goals.countActiveGoals() == 0) && (Main.money >= 100)) {
return(true);
}
return(false);
}
function level6() {
var _local4 = LevelScript.thisLevelHouses;
addPlant(180, 131, 1);
addPlant(494, 81, 2);
trace(_local4);
if (_local4[0] === undefined) {
trace("oops");
addHouse(354, 43, 2, true);
addHouse(217, 7, 1, false);
addHouse(352, 326, 1, true);
addHouse(370, 191, 1, true);
} else {
var _local3 = _local4.length;
while (_local3--) {
if (_local4[_local3][2] == "h") {
trace("HN " + _local3);
addHouse(_local4[_local3][0], _local4[_local3][1], _local4[_local3][3], true, _local4[_local3][4]);
} else if (_local4[_local3][2] == "lh") {
trace("LEEEHEEE");
var _local5 = addHouse(_local4[_local3][0], _local4[_local3][1]);
_local5.instantBuy();
}
}
}
GameMenu.setMapText(XMLMaster.getInterfaceTexts(19) + ": 2-3");
_global.setTimeout(function () {
Main.goals.addGoal(2, XMLMaster.getInterfaceTexts(18), 5);
Main.goals.addGoal(1, "16500", 1);
Main.goals.finishAddGoals();
Main.topBarLink.addMaxElectro(30);
Main.topBarLink.addMaxWater(30);
}, GOAL_SHOW_TIMEOUT);
}
function level5() {
addPlant(494, 81, 2);
addPlant(180, 131, 1);
addHouse(355, 40);
var _local4 = LevelScript.thisLevelHouses;
if (_local4[0] === undefined) {
addHouse(217, 7, 1, true);
addHouse(370, 185, 1, true);
addHouse(352, 326, 1, false);
} else {
var _local3 = _local4.length;
while (_local3--) {
if (_local4[_local3][2] == "h") {
trace("HN " + _local3);
addHouse(_local4[_local3][0], _local4[_local3][1], _local4[_local3][3], true, _local4[_local3][4]);
} else if (_local4[_local3][2] == "lh") {
trace("LEEEHEEE");
var _local5 = addHouse(_local4[_local3][0], _local4[_local3][1]);
_local5.instantBuy();
}
}
}
GameMenu.setMapText(XMLMaster.getInterfaceTexts(19) + ": 2-2");
_global.setTimeout(function () {
Main.goals.addGoal(2, XMLMaster.getInterfaceTexts(18), 2);
Main.goals.addGoal(1, "10000", 1);
Main.goals.finishAddGoals();
Main.topBarLink.addMaxElectro(20);
Main.topBarLink.addMaxWater(20);
}, GOAL_SHOW_TIMEOUT);
}
function level5Victory() {
if (Main.money >= 10000) {
Main.goals.removeGoal(1);
}
var _local1 = Main.houses.length;
while (_local1--) {
if ((Main.houses[_local1].houseType == 2) && (Main.houses[_local1].build)) {
Main.goals.removeGoal(0);
break;
}
}
if ((Main.houses.length == 3) && (Main.money >= 5000)) {
Main.level.addHouse(253, 150);
}
if ((Main.goals.countActiveGoals() == 0) && (Main.money > 0)) {
return(true);
}
return(false);
}
function level4Victory() {
var _local1 = 0;
if ((Main.houses[0].build && (Main.houses[1].build)) && (Main.houses[2].build)) {
_local1++;
Main.goals.removeGoal(0);
}
if (Main.waterMc.builded && (Main.plantMc.builded)) {
if (Main.houses.length == 0) {
Main.level.addHouse(217, 7);
}
if ((Main.houses[0].build && (Main.money >= 1000)) && (Main.houses.length == 1)) {
Main.level.addHouse(352, 326);
}
if (Main.houses[1].build && (Main.houses.length == 2)) {
Main.level.addHouse(370, 185);
}
}
if (_local1 == 1) {
return(true);
}
return(false);
}
function level4() {
addPlant(494, 81);
addPlant(180, 131);
_global.setTimeout(function () {
Main.goals.addGoal(2, XMLMaster.getInterfaceTexts(18) + " x3", 1);
Main.goals.finishAddGoals();
}, GOAL_SHOW_TIMEOUT);
GameMenu.setMapText(XMLMaster.getInterfaceTexts(19) + ": 2-1");
}
function level3() {
_global.setTimeout(function () {
Main.goals.addGoal(1, "3500", 1);
Main.goals.finishAddGoals();
}, GOAL_SHOW_TIMEOUT);
addPlant(180, 155, 1);
addPlant(500, 250, 2);
addHouse(310, 40, 1, false);
GameMenu.setMapText(XMLMaster.getInterfaceTexts(19) + ": 1-3");
}
function level3Victory() {
var _local1 = 0;
if (Main.money >= 3500) {
_local1++;
Main.goals.removeGoal(0);
}
if (_local1 == 1) {
return(true);
}
return(false);
}
function level2() {
_global.setTimeout(function () {
Main.goals.addGoal(2, XMLMaster.getInterfaceTexts(18), 1);
Main.goals.finishAddGoals();
}, GOAL_SHOW_TIMEOUT);
addPlant(180, 155, 1);
addPlant(500, 250, 2);
addHouse(310, 40);
GameMenu.setMapText(XMLMaster.getInterfaceTexts(19) + ": 1-2");
}
function level2Victory() {
var _local1 = 0;
if (Main.houses[0].build) {
_local1++;
Main.goals.removeGoal(0);
}
if (_local1 == 1) {
return(true);
}
return(false);
}
function level1() {
_global.setTimeout(function () {
Main.goals.addGoal(2, XMLMaster.getInterfaceTexts(18), 3);
Main.goals.addGoal(2, XMLMaster.getInterfaceTexts(18), 4);
Main.goals.finishAddGoals();
}, GOAL_SHOW_TIMEOUT);
addPlant(180, 155);
addPlant(500, 250);
GameMenu.setMapText(XMLMaster.getInterfaceTexts(19) + ": 1-1");
}
function level1Victory() {
var _local1 = 0;
if (Main.waterMc.builded) {
Main.tutorial.l1Close();
_local1++;
Main.goals.removeGoal(1);
}
if (Main.plantMc.builded) {
Main.tutorial.l1Close();
_local1++;
Main.goals.removeGoal(0);
}
if (_local1 == 2) {
return(true);
}
return(false);
}
function startWaitingVictory() {
winInterval = setInterval(this, "debugLevelWictory", 1000);
}
function debugLevel() {
addHouse(264, 30, 1, true);
addHouse(145, 150, 2, true);
addHouse(450, 240, 1, true);
addPlant(525, 100, 1);
addPlant(425, 75, 2);
addGarage(250, 150, 2);
addMoney(999999);
GameMenu.setMapText(XMLMaster.getInterfaceTexts(19) + ": 0-0");
}
function debugLevelWictory() {
Main.console("Checking victory...");
Main.console("No wining function in debug level!");
return(false);
}
var GOAL_SHOW_TIMEOUT = 500;
static var moneyCollected = false;
}
Symbol 813 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("3.0 as2");
}
static function showPreGameAd(options) {
var _local26 = {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 () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = 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 _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
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 _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {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 () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = 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 _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {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 () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = 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 _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
if (_local7._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
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 _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 814 MovieClip [__Packages.mc_ADS] Frame 0
class mc_ADS extends MovieClip
{
static var hasChild, exFunc, exCaller, exArgs, CLIPINSTANCE, remId, clockId, clockTxt;
var createEmptyMovieClip, onRelease, _name, removeMovieClip, attachBitmap;
function mc_ADS () {
super();
}
static function showIngameAds(mc_Parent, aFunc, aCaller, aArgs, aChild, clockLength) {
trace("show Ingame Ads");
trace("Name: " + mc_Parent._width);
hasChild = false;
var _local2 = mc_Parent.attachMovie("mc_ADS", "mc_ADS1", mc_Parent.getNextHighestDepth(), {_alpha:100});
trace("ADSNAME: " + _local2._name);
if (clockLength != undefined) {
CLOCKLENGTH = clockLength;
}
if (aChild != undefined) {
trace("adding Child");
trace(aChild);
var _local5 = mc_Parent.mc_ADS1.attachMovie(aChild, aChild + "1", CHILDDEPTH);
hasChild = true;
}
_local2.create(aFunc, aCaller, aArgs);
trace("In process...");
}
function create(aFunc, aCaller, aArgs) {
trace("creating Ads");
exFunc = aFunc;
exCaller = aCaller;
exArgs = aArgs;
if (addBitmap()) {
trace("createAds");
CLIPINSTANCE = this;
remId = setInterval(this, "removeIt", CLOCKLENGTH);
clockId = setInterval(this, "showClock", 1000);
clockTxt = createEmptyMovieClip("mc_Clock", CLOCKDEPTH);
var _local2 = clockTxt.createTextField("mc_txt", 0, Stage.width - 50, 0, 50, 30);
var _local3 = new TextFormat();
_local3.bold = true;
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
_local2.selectable = false;
_local2.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");
trace("RABOTAET--------->" + Helper.ADSLINK);
};
}
}
}
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() {
exFunc.apply(exCaller, exArgs);
clearInterval(remId);
clearInterval(clockId);
trace("THIS NAME: _--> " + _name);
delete onRelease;
removeMovieClip();
trace("XXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
}
function addBitmap() {
var _local3 = "splash" + LASTNUM;
LASTNUM++;
if (LASTNUM > 3) {
LASTNUM = 1;
}
var _local2 = flash.display.BitmapData.loadBitmap(_local3);
if (_local2 == undefined) {
return(false);
}
attachBitmap(_local2, BITMAPDEPTH);
return(true);
}
static var CLOCKDEPTH = 1000;
static var CHILDDEPTH = 100;
static var BITMAPDEPTH = 50;
static var LASTNUM = 1;
static var CLOCKLENGTH = 7000;
}
Symbol 815 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 _local1 = false;
var _local2 = false;
switch (c) {
case "start" :
case "stop" :
case "pause" :
case "resume" :
case "setStartProps" :
if (inGroup != true) {
_local1 = true;
}
break;
case "delay" :
case "trigger" :
if (simple == true) {
if (hasArg == true) {
_local1 = true;
}
} else {
_local2 = true;
}
inGroup = false;
break;
case "skipTo" :
if (!((hasArg == true) && (inGroup != true))) {
break;
}
_local1 = true;
}
if ((outputLevel > 0) && (_local1 == false)) {
error("109", c, inGroup, _local2);
}
return(_local1);
}
static function output(s) {
if (typeof(logOutput) == "function") {
logOutput(s);
} else {
trace(s);
}
}
static function error(errorCode) {
var _local3 = arguments[1];
var _local4 = arguments[2];
var _local6 = arguments[3];
if (VERBOSE != true) {
output(("[FuseKitCommon#" + errorCode) + "]");
return(undefined);
}
var _local2 = "";
var _local5 = newline;
switch (errorCode) {
case "001" :
_local2 = _local2 + "** ERROR: When using simpleSetup to extend prototypes, you must pass the Shortcuts class. **";
_local2 = _local2 + (_local5 + " import com.mosesSupposes.fuse.*;");
_local2 = _local2 + ((_local5 + " ZigoEngine.simpleSetup(Shortcuts);") + _local5);
break;
case "002" :
_local2 = _local2 + "** ZigoEngine.doShortcut: shortcuts missing. Use the setup commands: import com.mosesSupposes.fuse.*; ZigoEngine.register(Shortcuts); **";
break;
case "003" :
_local2 = _local2 + ((_local5 + "*** Error: DO NOT use #include \"lmc_tween.as\" with this version of ZigoEngine! ***") + _local5);
break;
case "004" :
_local2 = _local2 + (("** ZigoEngine.doTween - too few arguments [" + _local3) + "].");
if (Boolean(_local4) == true) {
_local2 = _local2 + " If you are trying to use Object Syntax without Fuse, pass FuseItem in your register() or simpleSetup() call. **";
} else {
_local2 = _local2 + " Object syntax call failed. **";
}
break;
case "005" :
_local2 = _local2 + (((("** ZigoEngine.doTween - missing targets[" + _local3) + "] and/or props[") + _local4) + "] **");
break;
case "006" :
_local2 = _local2 + (("** Error: easing shortcut string not recognized (\"" + _local3) + "\"). You may need to pass the in PennerEasing class during register or simpleSetup. **");
break;
case "007" :
_local2 = _local2 + (((("- ZigoEngine: Target locked [" + _local3) + "], ignoring tween call [") + _local4) + "]");
break;
case "008" :
_local2 = _local2 + "** You must register the Shortcuts class in order to use easy string-type callback parsing. **";
break;
case "009" :
_local2 = _local2 + (("** ZigoEngine: A callback parameter \"" + _local3) + "\" was not recognized. **");
break;
case "010" :
_local2 = _local2 + ((((("** " + ((_local3 == true) ? "ZigoEngine" : "FuseItem")) + " unable to parse ") + ((_local4 == 1) ? "callback[" : (String(_local4) + " callbacks["))) + _local6) + "]. Try using the syntax {scope:this, func:\"myFunction\"} **");
break;
case "011" :
_local2 = _local2 + (((("- ZigoEngine: Callbacks discarded via skipLevel 2 option [" + _local3) + "|") + _local4) + "].");
break;
case "012" :
_local2 = _local2 + (((((("- Engine set props or ignored no-change tween on: " + _local3) + ", props passed:[") + _local4) + "], endvals passed:[") + _local6) + "]");
break;
case "013" :
_local2 = _local2 + (((((("- Engine added tween on:\n\ttargets:[" + _local3) + "]\n\tprops:[") + _local4) + "]\n\tendvals:[") + _local6) + "]");
break;
case "014" :
_local2 = _local2 + "** Error: easing function passed is not usable with this engine. Functions need to follow the Robert Penner model. **";
break;
case "015" :
_local2 = _local2 + "** Error: The CustomEasing class must be passed during setup (register or simpleSetup) to use custom easing Arrays. **";
break;
case "016" :
_local2 = _local2 + (("[ ZigoEngine.TIME_MULTIPLIER: " + String(Number(Number(_local3) * 100))) + "% ]");
break;
case "101" :
_local2 = _local2 + "** ERROR: Fuse simpleSetup was removed in version 2.0! **";
_local2 = _local2 + (_local5 + " You must now use the following commands:");
_local2 = _local2 + ((_local5 + _local5) + "\timport com.mosesSupposes.fuse.*;");
_local2 = _local2 + (_local5 + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);");
_local2 = _local2 + ((_local5 + "Note that PennerEasing is optional, and FuseFMP is also accepted. (FuseFMP.simpleSetup is run automatically if included.)") + _local5);
break;
case "102" :
_local2 = _local2 + (((("** Fuse " + _local3) + " index or label not found (") + _local4) + ") or out of range. **");
break;
case "103" :
_local2 = _local2 + (((("** Fuse skipTo (" + _local3) + ") ignored - targets the current index (") + _local4) + "). **");
break;
case "104" :
_local2 = _local2 + (("** Fuse fastForward index out of play range (" + _local3) + ") - skipTo has been called instead. **");
break;
case "105" :
_local2 = _local2 + "** An unsupported Array method was called on Fuse. **";
break;
case "106" :
_local2 = _local2 + "** ERROR: You have not set up Fuse correctly. **";
_local2 = _local2 + (_local5 + "You must now use the following commands (PennerEasing is optional).");
_local2 = _local2 + (_local5 + "\timport com.mosesSupposes.fuse.*;");
_local2 = _local2 + ((_local5 + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);") + _local5);
break;
case "107" :
_local2 = _local2 + "** Fuse :: id not found - Aborting open(). **";
break;
case "108" :
_local2 = _local2 + "** Fuse.startRecent: No recent Fuse found to start! **";
break;
case "109" :
_local2 = _local2 + (("** Command \"" + _local3) + "\" discarded. ");
if (_local4 == true) {
_local2 = _local2 + "Not allowed within a group. **";
} else if (_local6 == true) {
_local2 = _local2 + (("Not supported in Object Syntax, use the " + _local3) + " property instead. **");
} else {
_local2 = _local2 + "The command may be unrecognized or missing an argument. **";
}
break;
case "110" :
_local2 = _local2 + (((("** " + _local3) + " illegal Fuse property discarded:\"") + _local4) + "\". Bezier keywords other than x and y cannot be set as start values. **");
break;
case "112" :
_local2 = _local2 + "** Fuse: missing com.mosesSupposes.fuse.ZigoEngine! Cannot tween. **";
break;
case "113" :
_local2 = _local2 + "** FuseItem: A callback has been discarded. Actions with a command may only contain: label, delay, scope, args. **";
break;
case "115" :
_local2 = _local2 + ((_local3 + " overlapping prop discarded: ") + _local4);
break;
case "116" :
_local2 = _local2 + ("** 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. **" + _local5);
break;
case "117" :
_local2 = _local2 + (("** " + _local3) + ": infinite cycles are not allowed within Fuses - discarded. **");
break;
case "118" :
_local2 = _local2 + ((("** " + _local3) + ": No targets found!") + ((_local4 == true) ? " [Unable to set start props] **" : " [Skipping tween parameters in this action] **"));
break;
case "119" :
_local2 = _local2 + ((((("** " + _local3) + ": ") + ((_local4 == 1) ? "" : (_local4 + " actions in the group"))) + " missing targets") + ((_local6 == true) ? " during setStartProps **" : " **"));
break;
case "120" :
_local2 = _local2 + (((("** " + _local3) + ": conflict with \"") + _local4) + "\". Property might be doubled within a grouped-action array. **");
break;
case "121" :
_local2 = _local2 + "** Fuse timecode formatting requires \"00:\" formatting (example:\"01:01:33\" yields 61.33 seconds.) **";
break;
case "122" :
_local2 = _local2 + (("** Event \"" + _local3) + "\" reserved by Fuse. **");
break;
case "123" :
_local2 = _local2 + (("** A Fuse event parameter failed in " + _local3) + " **");
break;
case "124" :
_local2 = _local2 + (((("** " + _local3) + ": trigger:") + _local4) + " ignored - only one trigger is allowed per action **");
break;
case "125" :
_local2 = _local2 + (_local3 + " Warning - fastForward hit an item during its tween cycle, may malfunction.");
break;
case "201" :
_local2 = _local2 + (("**** FuseFMP cannot initialize argument " + _local3) + " (BitmapFilters cannot be applied to this object type) ****");
break;
case "202" :
_local2 = _local2 + (((("** FuseFMP error: A " + _local3) + " could not be created for ") + _local4) + " **");
break;
case "203" :
_local2 = _local2 + (("** FuseFMP.setFilterProps - too few arguments passed (" + _local3) + ") - minimum 2 required. **");
break;
case "204" :
_local2 = _local2 + (("** FuseFMP.setFilterProps could not locate the filter passed. (" + _local3) + ") **");
}
output(_local2);
}
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 816 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 _local3 = "|fuse|fuseItem|fuseFMP|shortcuts|pennerEasing|customEasing|";
for (var _local4 in arguments) {
var _local2 = arguments[_local4].registryKey;
if ((extensions[_local2] == undefined) && (_local3.indexOf(("|" + _local2) + "|") > -1)) {
extensions[_local2] = arguments[_local4];
if ((_local2 == "fuseFMP") || (_local2 == "shortcuts")) {
Object(extensions[_local2]).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 _local4 = instance.paramsObj(targets, props, endvals, true);
var _local7 = (((_local4.tg[0] == null) || (_local4.tg.length == 0)) ? undefined : (_local4.tg));
if (((_local4.pa == undefined) || (_local7 == 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", _local7.toString(), _local4.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 _local12 = com.mosesSupposes.fuse.FuseKitCommon.parseCallback(callback, _local7, OUTPUT_LEVEL, true);
var _local9;
if (typeof(ease) == "function") {
if (typeof(Function(ease).call(null, 1, 1, 1, 1)) == "number") {
_local9 = Function(ease);
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("014", ease);
}
} else if ((ease == null) || (ease == "")) {
if (EASING instanceof Function) {
_local9 = Function(EASING);
} else if (extensions.pennerEasing != undefined) {
ease = EASING;
}
}
if ((typeof(ease) == "string") && (ease != "")) {
if (extensions.pennerEasing[ease] != undefined) {
_local9 = extensions.pennerEasing[ease];
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("006", ease);
}
} else if (ease instanceof Array) {
if (extensions.customEasing != undefined) {
_local12.extra1 = ease;
if (typeof(ease[0]) == "number") {
_local9 = extensions.customEasing.precalced;
} else {
_local9 = extensions.customEasing.fromCurve;
}
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("015", ease);
}
}
if (typeof(_local9) != "function") {
_local9 = function (t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
};
}
if (_listeners.length > 0) {
broadcastMessage.call(com.mosesSupposes.fuse.ZigoEngine, "onTweenAdd", _local7, _local4.pa, _local4.va, seconds, _local9, delay, _local12);
}
var _local6 = "";
for (var _local13 in _local7) {
var _local3 = _local7[_local13];
if (_local3.__zigoID__ == null) {
initializeTargets(_local3);
} else if (instance.getStatus("locked", _local3) == true) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("007", ((_local3._name != undefined) ? (_local3._name) : (_local3.toString())), _local4.pa.toString());
}
continue;
}
var _local5 = instance.addTween(_local3, _local4.pa, _local4.va, seconds, _local9, delay, _local12);
_local6 = ((_local5 == null) ? "|" : (_local5 + "|")) + _local6;
}
_local6 = _local6.slice(0, -1);
return((((_local6 == "") || (_local6 == "|")) ? null : (_local6)));
}
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 _local3 = 100 - Math.abs(amt);
var _local4 = ((amt > 0) ? (255 * (amt / 100)) : 0);
return({ra:_local3, rb:_local4, ga:_local3, gb:_local4, ba:_local3, bb:_local4});
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 _local5;
if (typeof(rgb) == "string") {
if (rgb.charAt(0) == "#") {
rgb = rgb.slice(1);
}
rgb = ((rgb.charAt(1).toLowerCase() != "x") ? ("0x" + rgb) : (rgb));
}
_local5 = Number(rgb);
return({ra:100 - amt, rb:(_local5 >> 16) * (amt / 100), ga:100 - amt, gb:((_local5 >> 8) & 255) * (amt / 100), ba:100 - amt, bb:(_local5 & 255) * (amt / 100)});
}
return({rb:0, ra:100, gb:0, ga:100, bb:0, ba:100});
}
static function getColorKeysObj(targOrTransObj) {
var _local1 = ((targOrTransObj.ra != undefined) ? (targOrTransObj) : (new Color(targOrTransObj).getTransform()));
var _local6 = (_local1.ra == _local1.ga) && (_local1.ga == _local1.ba);
var _local8 = (_local1.rb == _local1.gb) && (_local1.gb == _local1.bb);
var _local3 = {tintPercent:Number(((_local6 == true) ? (100 - _local1.ra) : 0))};
if (_local3.tintPercent != 0) {
var _local5 = 100 / _local3.tintPercent;
_local3.tint = (((_local1.rb * _local5) << 16) | ((_local1.gb * _local5) << 8)) | (_local1.bb * _local5);
var _local2 = _local3.tint.toString(16);
var _local4 = 6 - _local2.length;
while ((_local4--) > 0) {
_local2 = "0" + _local2;
}
_local3.tintString = "0x" + _local2.toUpperCase();
}
if ((_local6 == true) && (_local8 == true)) {
if (_local1.ra < 0) {
_local3.invertColor = _local1.rb * 0.392156862745098;
} else if ((_local1.ra == 100) && (_local1.rb != 0)) {
_local3.brightOffset = _local1.rb * 0.392156862745098;
}
if (_local1.ra != 100) {
if ((_local1.rb == 0) || ((_local1.rb != 0) && (((255 * ((100 - _local1.ra) / 100)) - _local1.rb) <= 1))) {
_local3.brightness = ((_local1.rb != 0) ? (100 - _local1.ra) : (_local1.ra - 100));
}
if (((128 - (1.28 * _local1.ra)) - _local1.rb) <= 1) {
_local3.contrast = _local1.ra;
}
}
}
return(_local3);
}
static function initializeTargets() {
for (var _local5 in arguments) {
var _local4 = arguments[_local5];
if ((((_local4 == MovieClip.prototype) || (_local4 == Button.prototype)) || (_local4 == TextField.prototype)) || (_local4 == Object.prototype)) {
if (_local4.oldAddListener == undefined) {
if (_local4 == TextField.prototype) {
_local4.oldAddListener = _local4.addListener;
_global.ASSetPropFlags(_local4, "oldAddListener", 7, 1);
}
_local4.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 (_local4 == MovieClip.prototype) {
_global.ASSetPropFlags(_local4, "addListener", 7, 1);
}
}
} else if (_local4.__zigoID__ == undefined) {
_local4.__zigoID__ = zigoIDs;
_global.ASSetPropFlags(_local4, "__zigoID__", 7, 1);
zigoIDs++;
if ((_local4._listeners == null) || (_local4.addListener == null)) {
AsBroadcaster.initialize(_local4);
}
}
}
}
static function deinitializeTargets() {
for (var _local4 in arguments) {
var _local3 = arguments[_local4];
if (_local3.__zigoID__ != undefined) {
_global.ASSetPropFlags(_local3, "__zigoID__,_listeners,broadcastMessage,addListener,removeListener", 0, 2);
delete _local3.__zigoID__;
delete _local3._listeners;
delete _local3.broadcastMessage;
delete _local3.addListener;
delete _local3.removeListener;
}
if (_local3.oldAddListener != undefined) {
_global.ASSetPropFlags(_local3, "oldAddListener", 0, 2);
_local3.addListener = _local3.oldAddListener;
delete _local3.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 817 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 _local24 = ((callback.skipLevel == undefined) ? 0 : (callback.skipLevel));
var _local44 = ((callback.cycles == undefined) ? 1 : (callback.cycles));
var _local30 = callback.extra1;
var _local29 = callback.extra2;
var _local23 = [];
var _local14 = _global.com.mosesSupposes.fuse.FuseFMP;
var _local43 = String(("|" + _local14.getAllShortcuts().join("|")) + "|");
var _local42 = com.mosesSupposes.fuse.FuseKitCommon._cts();
var _local25 = "";
var _local28 = "";
var _local22 = obj.__zigoID__;
var _local7 = tweens[String(_local22)];
if ((_local7 != undefined) && (com.mosesSupposes.fuse.ZigoEngine.AUTOSTOP == true)) {
if (obj._listeners.length > 0) {
for (var _local40 in _local7.props) {
_local23.unshift(_local40);
}
}
_local7.numProps = 0;
cleanUp(true);
}
for (var _local47 in props) {
var _local5 = props[_local47];
var _local4 = endvals[_local47];
var _local15 = 0;
if (_local5 == "_fade") {
_local5 = "_alpha";
_local15 = ((_local4 < 50) ? -1 : 1);
}
var _local16 = _local42.indexOf(("|" + _local5) + "|") > -1;
var _local18 = _local7.colorProp;
if (_local7 != undefined) {
if ((_local16 == true) && (_local18 != undefined)) {
_local23.unshift(_local18);
delete _local7.props[_local18];
delete _local7.colorProp;
_local7.numProps--;
} else if (_local7.props[_local5] != undefined) {
_local23.unshift(_local5);
delete _local7[_local5];
_local7.numProps--;
}
}
var _local3 = {c:-1, fmp:-1, complex:-1};
var _local11 = ((_local24 == 0) && ((seconds + delay) == 0)) || ((_local24 > 0) && (seconds == 0));
var _local10 = false;
var _local13 = (_local14 != undefined) && (_local43.indexOf(("|" + _local5) + "|") > -1);
var _local19 = (_local5.toLowerCase().indexOf("colors") > -1) && (_local4 instanceof Array);
var _local27 = ((_local13 == true) && (_local5.indexOf("lor") > -1)) && (_local5.charAt(2) != "l");
if (_local13 == true) {
_local3.fmp = _local14;
_local3.ps = _local14.getFilterProp(obj, _local5, true);
_local3.special = true;
}
if (((_local16 == true) || (_local19 == true)) || (_local27 && (_local11 == false))) {
_local3.complex = 1;
if (_local16 == true) {
_local3.c = new Color(obj);
_local3.ps = Color(_local3.c).getTransform();
var _local17 = ((((_local5 == "_tint") || (_local5 == "_tintPercent")) || (_local5 == "_colorReset")) ? "tint" : (_local5.slice(1)));
var _local9 = null;
var _local12 = null;
if (_local5 != "_colorTransform") {
if (_local17 == "tint") {
if (typeof(_local4) == "object") {
_local12 = _local4.tint;
_local9 = ((_global.isNaN(_local4.percent) == true) ? 100 : (_local4.percent));
} else if ((_local5 == "_tintPercent") || (_local5 == "_colorReset")) {
var _local20 = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tintPercent;
if (_local5 == "_colorReset") {
_local9 = Math.min(_local20, 100 - Math.abs(Number(_local4)));
} else {
_local9 = ((typeof(_local4) == "string") ? ((_local20 || 0) + Number(_local4)) : Number(_local4));
}
_local9 = Math.max(0, Math.min(_local9, 100));
_local12 = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tint || 0;
} else {
_local12 = _local4;
_local9 = 100;
}
} else {
_local9 = ((typeof(_local4) == "string") ? ((com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj)[_local17] || 0) + Number(_local4)) : (_local4));
}
_local4 = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj(_local17, _local9, _local12);
}
if (_local11 == true) {
if (_local5 == "_colorTransform") {
Color(_local3.c).setTransform(_local4);
} else {
com.mosesSupposes.fuse.ZigoEngine.setColorByKey(obj, _local17, _local9, _local12);
}
} else {
var _local21 = getChangeObj(_local3.ps, _local4, false, false);
_local3.ch = _local21.map;
if (_local21.changed == true) {
_local10 = true;
}
}
} else if (_local11 == true) {
_local14.setFilterProp(obj, _local5, _local4);
} else if (_local19 == true) {
_local3.c = 2;
_local3.ch = [];
for (var _local40 in _local4) {
if (_local4[_local40] != null) {
if (_local3.ps == null) {
_local3.ps = [];
}
_local3.ps[_local40] = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, ((_local3.ps[_local40] == null) ? obj[_local5][_local40] : _local3.ps[_local40]));
var _local21 = getChangeObj(_local3.ps[_local40], com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local4[_local40]), true, false);
_local3.ch[_local40] = _local21.map;
if (_local21.changed == true) {
_local10 = true;
}
}
}
} else {
_local3.c = 1;
_local3.ps = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local3.ps);
var _local21 = getChangeObj(_local3.ps, com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local4), true, false);
_local3.ch = _local21.map;
if (_local21.changed == true) {
_local10 = true;
}
}
} else if (_local5 == "_bezier_") {
removeTween(obj, "_x,_y", true);
if (_local11 == true) {
if ((_local4.x != null) && (_global.isNaN(Number(_local4.x)) == false)) {
obj._x = ((typeof(_local4.x) == "string") ? (obj._x + Number(_local4.x)) : (_local4.x));
}
if ((_local4.y != null) && (_global.isNaN(Number(_local4.y)) == false)) {
obj._y = ((typeof(_local4.y) == "string") ? (obj._y + Number(_local4.y)) : (_local4.y));
}
} else {
_local3.special = true;
_local3.ps = 0;
_local3.ch = 1;
_local3.bz = {sx:obj._x, sy:obj._y};
if ((_local4.x == null) || (_global.isNaN(Number(_local4.x)))) {
_local4.x = _local3.bz.sx;
}
if ((_local4.y == null) || (_global.isNaN(Number(_local4.y)))) {
_local4.y = _local3.bz.sy;
}
_local3.bz.chx = ((typeof(_local4.x) == "string") ? (Number(_local4.x)) : (_local4.x - _local3.bz.sx));
if (_global.isNaN(_local3.bz.chx) == true) {
_local3.bx.chx = 0;
}
_local3.bz.chy = ((typeof(_local4.y) == "string") ? (Number(_local4.y)) : (_local4.y - _local3.bz.sy));
if (_global.isNaN(_local3.bz.chy) == true) {
_local3.bx.chy = 0;
}
if ((_local4.controlX == null) || (_global.isNaN(Number(_local4.controlX)))) {
_local3.bz.ctrlx = _local3.bz.sx + (_local3.bz.chx / 2);
} else {
_local3.bz.ctrlx = ((typeof(_local4.controlX) == "string") ? (_local3.bz.sx + Number(_local4.controlX)) : (_local4.controlX));
}
if ((_local4.controlY == null) || (_global.isNaN(Number(_local4.controlY)))) {
_local3.bz.ctrly = _local3.bz.sy + (_local3.bz.chy / 2);
} else {
_local3.bz.ctrly = ((typeof(_local4.controlY) == "string") ? (_local3.bz.sy + Number(_local4.controlY)) : (_local4.controlY));
}
_local3.bz.ctrlx = _local3.bz.ctrlx - _local3.bz.sx;
_local3.bz.ctrly = _local3.bz.ctrly - _local3.bz.sy;
_local10 = (_local3.bz.chx + _local3.bz.chy) != 0;
}
} else {
if (typeof(_local4) == "object") {
_local3.complex = ((_local4 instanceof Array) ? 0 : 1);
}
if ((_local5 == "_x") || (_local5 == "_y")) {
removeTween(obj, "_bezier_", true);
}
if ((_local5 == "_frame") && (typeof(obj) == "movieclip")) {
_local3.ps = obj._currentframe;
_local3.special = true;
} else if (_local13 == false) {
if (_local3.complex > -1) {
_local3.ps = ((_local3.complex == 0) ? ([]) : ({}));
for (var _local40 in _local4) {
_local3.ps[_local40] = obj[_local5][_local40];
}
} else {
_local3.ps = obj[_local5];
}
}
if (_local11 == true) {
if (_local13 == true) {
_local14.setFilterProp(obj, _local5, ((typeof(_local4) == "string") ? (_local3.ps + Number(_local4)) : (_local4)));
} else if (_local3.complex > -1) {
for (var _local40 in _local4) {
if ((_local4[_local40] != null) && (_global.isNaN(Number(_local4[_local40])) == false)) {
obj[_local5][_local40] = ((typeof(_local4[_local40]) == "string") ? (_local3.ps[_local40] + Number(_local4[_local40])) : _local4[_local40]);
if (_global.isNaN(obj[_local5][_local40]) == true) {
obj[_local5][_local40] = 0;
}
}
}
} else {
obj[_local5] = ((typeof(_local4) == "string") ? (_local3.ps + Number(_local4)) : (_local4));
if (_local15 == 1) {
obj._visible = true;
} else if (_local15 == -1) {
obj._visible = false;
}
}
} else if (_local3.complex > -1) {
var _local21 = getChangeObj(_local3.ps, _local4, _local13, _local3.complex == 0);
_local3.ch = _local21.map;
if (_local21.changed == true) {
_local10 = true;
}
} else {
if ((_local4 == null) || (_global.isNaN(Number(_local4)))) {
_local4 = _local3.ps;
}
_local3.ch = ((typeof(_local4) == "string") ? (Number(_local4)) : (Number(_local4) - _local3.ps));
if (_global.isNaN(_local3.ch) == true) {
_local3.ch = 0;
}
_local10 = _local3.ch != 0;
}
}
if (((_local24 == 0) && ((_local10 == true) || (_local11 == false))) || ((_local10 == true) && (_local11 == false))) {
if ((_local3.complex > -1) && (!(_local3.c === 2))) {
_local3.ps = [_local3.ps];
_local3.ch = [_local3.ch];
}
_local3.ts = now + (delay * 1000);
_local3.pt = -1;
_local3.d = seconds * 1000;
_local3.ef = ease;
_local3.sf = false;
_local3.cycles = _local44;
if (_local30 != undefined) {
_local3.e1 = _local30;
}
if (_local29 != undefined) {
_local3.e2 = _local29;
}
_local3.v = _local15;
if (callback.start != undefined) {
_local3.scb = callback.start;
}
if (callback.upd != undefined) {
_local3.ucb = callback.upd;
}
if (callback.end != undefined) {
_local3.ecb = callback.end;
}
if (callback.roundResults != undefined) {
_local3.rr = callback.roundResults;
}
if (tweens[String(_local22)] == undefined) {
_local7 = (tweens[String(_local22)] = {numProps:0, locked:false, targ:obj, targID:String(("\"" + ((obj._name != undefined) ? (obj._name) : (obj.toString()))) + "\""), targZID:_local22, props:{}});
numTweens++;
}
if (_local16 == true) {
_local7.colorProp = _local5;
}
_local7.props[_local5] = _local3;
_local7.numProps++;
_local25 = (_local5 + ",") + _local25;
_local28 = (((typeof(_local4) == "string") ? (("\"" + _local4) + "\"") : (_local4)) + ",") + _local28;
}
_local3 = undefined;
}
if ((_local7 == undefined) || (_local7.numProps <= 0)) {
cleanUp();
}
if ((_local23.length > 0) && (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0)) {
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:obj, props:_local23, __zigoID__:_local22, during:"add"});
}
if (_local25 == "") {
if (_local24 == 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 _local48 = obj._listeners.length > 0;
if (_local48 == true) {
obj.broadcastMessage("onTweenStart", {target:obj, props:props});
}
if (callback.start != undefined) {
callback.start.f.apply(callback.start.s, callback.start.a);
}
if (_local48 == true) {
obj.broadcastMessage("onTweenUpdate", {target:obj, props:props});
}
if (callback.upd != undefined) {
callback.upd.f.apply(callback.upd.s, callback.upd.a);
}
if (_local48 == 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 (_local25 == "") {
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())), _local25.slice(0, -1), _local28.slice(0, -1));
}
}
return(((_local25 == "") ? null : (_local25.slice(0, -1))));
}
function removeTween(targs, props, noInit) {
var _local4 = {};
var _local12 = paramsObj(targs, props);
if (_local12.none == true) {
return(undefined);
}
var _local16 = _local12.all;
var _local17 = _local12.allprops;
var _local9 = ((_local16 == true) ? (tweens) : (Object(_local12.tg)));
var _local8 = false;
for (var _local20 in _local9) {
var _local3 = ((_local16 == true) ? (_local20) : (String(_local9[_local20].__zigoID__)));
var _local2 = tweens[_local3];
var _local6 = ((_local17 == true) ? (_local2.props) : (_local12.props));
for (var _local14 in _local6) {
var _local5 = (_local14 == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) && (_local2.colorProp != undefined);
if ((_local2.props[_local14] != undefined) || (_local5 == true)) {
if (_local4[_local3] == null) {
_local4[_local3] = [];
}
_local4[_local3].unshift(_local14);
if ((_local14 == _local2.colorProp) || (_local5 == true)) {
delete _local2.props[_local2.colorProp];
delete _local2.colorProp;
} else {
delete _local2.props[_local14];
}
_local2.numProps--;
if (_local2.numProps <= 0) {
_local8 = true;
break;
}
}
}
}
if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) {
for (var _local19 in _local4) {
var _local7 = tweens[_local19].targ;
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(_local7.addProperty) == "function") ? (_local7) : (("[MISSING(\"" + tweens[_local19].targID) + "\")]")), props:_local4[_local19], __zigoID__:tweens[_local19].targZID, during:((noInit == true) ? "add" : "remove")});
}
}
if (_local8 == true) {
cleanUp(noInit);
}
}
function alterTweens(type, targs, props, pauseFlag, noEvents, skipTo) {
if (type == "lock") {
tweens[String(targs.__zigoID__)].locked = props;
return(undefined);
}
var _local11 = paramsObj(targs, props);
if (_local11.none == true) {
return(undefined);
}
var _local14 = _local11.all;
var _local15 = _local11.allprops;
var _local9 = ((_local14 == true) ? (tweens) : (Object(_local11.tg)));
var _local8 = 0;
for (var _local16 in _local9) {
var _local7 = ((_local14 == true) ? (_local16) : (String(_local9[_local16].__zigoID__)));
var _local5 = tweens[_local7];
var _local4 = ((_local15 == true) ? (_local5.props) : (_local11.props));
if (_local4.ALLCOLOR == true) {
_local4[_local5.colorProp] = true;
delete _local4.ALLCOLOR;
}
for (var _local10 in _local4) {
_local8++;
var _local2 = _local5.props[_local10];
if (type == "rewind") {
if (pauseFlag == true) {
_local2.pt = now;
}
_local2.ts = now;
if (noEvents != true) {
_local2.sf = false;
if (_local2.scb != undefined) {
_local2.scb.fired = false;
}
}
} else if (type == "ff") {
if (noEvents == true) {
_local2.suppressEnd = true;
}
_local2.o = true;
_local2.pt = -1;
_local2.ts = now - _local2.d;
} else if (type == "skipTo") {
_local2.ts = Math.min(now, (_local2.ts + (now - _local2.ts)) - (skipTo * 1000));
} else if (type == "pause") {
if (_local2.pt == -1) {
_local2.pt = now;
}
} else if (type == "unpause") {
if (_local2.pt != -1) {
_local2.ts = now - (_local2.pt - _local2.ts);
_local2.pt = -1;
}
}
}
}
if ((type == "ff") && (_local8 > 0)) {
update();
} else if ((type == "rewind") && (_local8 > 0)) {
update(true);
}
}
function getStatus(type, targ, param) {
if (targ == null) {
return(null);
}
var _local8 = String(targ).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL;
var _local4 = tweens[String(targ.__zigoID__)];
switch (type) {
case "paused" :
var _local2 = _local4.props;
if (param != null) {
if (_local2[String(param)] == undefined) {
return(false);
}
return(Boolean(_local2[String(param)].pt != -1));
}
for (var _local6 in _local2) {
if (_local2[_local6].pt != -1) {
return(true);
}
}
return(false);
case "active" :
if (param == null) {
return(Boolean(_local4 != undefined));
}
if (String(param).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) {
return(Boolean(_local4.colorProp != undefined));
}
return(Boolean(_local4.props[String(param)] != undefined));
case "count" :
if (!_local8) {
return(_local4.numProps);
}
var _local3 = 0;
for (var _local6 in tweens) {
_local3 = _local3 + tweens[_local6].numProps;
}
return(_local3);
case "locked" :
return(_local4.locked);
}
}
function update(force) {
var _local22 = {};
var _local24 = {};
var _local23 = {};
var _local15 = {};
var _local13 = {};
var _local14 = {};
var _local26 = false;
var _local20 = com.mosesSupposes.fuse.ZigoEngine.ROUND_RESULTS;
for (var _local35 in tweens) {
var _local12 = tweens[_local35];
var _local5 = _local12.targ;
var _local34 = _local12.props;
var _local21 = _local5._listeners.length > 0;
if (_local5.__zigoID__ == undefined) {
_local26 = true;
if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) {
var _local25 = [];
for (var _local30 in _local34) {
_local25.unshift(_local30);
}
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(_local5.addProperty) == "function") ? (_local5) : (("[MISSING:" + _local12.targID) + "]")), props:_local25, __zigoID__:_local12.targZID, during:"update"});
}
continue;
}
for (var _local30 in _local34) {
var _local3 = _local34[_local30];
if (((_local3.ts > now) || (_local3.pt != -1)) && (force != true)) {
continue;
}
var _local9 = now >= (_local3.ts + _local3.d);
if (_local3.complex == -1) {
var _local6;
if (_local9 == true) {
_local6 = _local3.ps + _local3.ch;
if ((_local3.cycles > 1) || (_local3.cycles == 0)) {
if (_local3.cycles > 1) {
_local3.cycles--;
}
_local3.ps = _local6;
_local3.ch = -_local3.ch;
_local3.ts = now;
_local9 = false;
}
} else {
_local6 = _local3.ef(now - _local3.ts, _local3.ps, _local3.ch, _local3.d, _local3.e1, _local3.e2);
}
if (_global.isNaN(_local6) == false) {
if ((_local30 != "_bezier_") && ((_local3.rr == true) || ((_local20 == true) && (!(_local3.rr === false))))) {
_local6 = Math.round(Number(_local6));
}
if (_local3.special != true) {
_local5[_local30] = _local6;
} else if (_local3.fmp != -1) {
_local3.fmp.setFilterProp(_local5, _local30, _local6);
} else if (_local30 == "_bezier_") {
var _local10 = _local3.bz;
var _local18 = _local10.sx + (_local6 * (((2 * (1 - _local6)) * _local10.ctrlx) + (_local6 * _local10.chx)));
var _local17 = _local10.sy + (_local6 * (((2 * (1 - _local6)) * _local10.ctrly) + (_local6 * _local10.chy)));
if ((_local3.rr == true) || ((_local20 == true) && (!(_local3.rr === false)))) {
_local18 = Math.round(Number(_local18));
_local17 = Math.round(Number(_local17));
}
_local5._x = _local18;
_local5._y = _local17;
} else if (_local30 == "_frame") {
MovieClip(_local5).gotoAndStop(Math.ceil(_local6));
}
}
} else {
var _local16 = (_local9 == true) && ((_local3.cycles > 1) || (_local3.cycles == 0));
var _local7 = [];
for (var _local27 in _local3.ch) {
var _local4 = ((_local3.complex == 0) ? ([]) : ({}));
for (var _local28 in _local3.ch[_local27]) {
var _local8 = _local3.ch[_local27][_local28];
var _local11 = _local3.ps[_local27][_local28];
if (_local9 == true) {
_local4[_local28] = _local11 + _local8;
if (_local16 == true) {
_local3.ch[_local27][_local28] = -_local8;
}
} else {
_local4[_local28] = _local3.ef(now - _local3.ts, _local11, _local8, _local3.d, _local3.e1, _local3.e2);
}
if (_global.isNaN(_local4[_local28]) == false) {
if ((_local3.rr == true) || ((_local20 == true) && (!(_local3.rr === false)))) {
_local4[_local28] = Math.round(_local4[_local28]);
}
}
if ((_local3.fmp == -1) && (_local3.c == -1)) {
_local5[_local30][_local28] = _local4[_local28];
}
}
_local7.push(_local4);
if ((_local3.fmp == -1) && (_local3.c == 2)) {
_local5[_local30][_local27] = Number(((_local4.rb << 16) | (_local4.gb << 8)) | _local4.bb);
}
}
if (_local3.fmp != -1) {
if (_local3.c == 1) {
_local3.fmp.setFilterProp(_local5, _local30, ((_local7[0].rb << 16) | (_local7[0].gb << 8)) | _local7[0].bb);
} else if (_local3.c == 2) {
var _local19 = [];
for (var _local28 in _local7) {
_local19.unshift(((_local7[_local28].rb << 16) | (_local7[_local28].gb << 8)) | _local7[_local28].bb);
}
_local3.fmp.setFilterProp(_local5, _local30, _local19);
} else {
_local3.fmp.setFilterProp(_local5, _local30, _local7[0]);
}
} else if (_local3.c != -1) {
_local3.c.setTransform(_local7[0]);
}
if (_local16 == true) {
if (_local3.cycles > 1) {
_local3.cycles--;
}
_local9 = false;
_local3.ts = now;
_local3.ps = _local7;
}
}
if (_local3.sf == false) {
if (_local3.v != 0) {
_local5._visible = true;
}
if (_local21 == true) {
if (_local15[_local35] == undefined) {
_local15[_local35] = [_local5, []];
}
_local15[_local35][1].unshift(_local30);
}
_local3.sf = true;
}
if (_local3.scb.fired == false) {
_local22[String(_local3.scb.id)] = _local3.scb;
_local3.scb.fired = true;
}
if (_local21 == true) {
if (_local13[_local35] == undefined) {
_local13[_local35] = [_local5, []];
}
_local13[_local35][1].unshift(_local30);
}
if (_local3.ucb != undefined) {
_local24[String(_local3.ucb.id)] = _local3.ucb;
}
if (_local9 == true) {
if (_local3.v === -1) {
_local5._visible = false;
}
if (_local3.suppressEnd != true) {
if (_local21 == true) {
if (_local14[_local35] == undefined) {
_local14[_local35] = [_local5, []];
}
_local14[_local35][1].unshift(_local30);
}
if (_local3.ecb != undefined) {
_local23[String(_local3.ecb.id)] = _local3.ecb;
}
}
delete _local34[_local30];
if (_local30 == _local12.colorProp) {
delete _local12.colorProp;
}
_local12.numProps--;
if (_local12.numProps <= 0) {
_local26 = true;
}
}
delete _local3.suppressEnd;
}
}
for (var _local35 in _local15) {
_local15[_local35][0].broadcastMessage("onTweenStart", {target:_local15[_local35][0], props:_local15[_local35][1]});
}
for (var _local35 in _local22) {
_local22[_local35].f.apply(_local22[_local35].s, _local22[_local35].a);
}
for (var _local35 in _local13) {
_local13[_local35][0].broadcastMessage("onTweenUpdate", {target:_local13[_local35][0], props:_local13[_local35][1]});
}
for (var _local35 in _local24) {
_local24[_local35].f.apply(_local24[_local35].s, _local24[_local35].a);
}
for (var _local35 in _local14) {
_local14[_local35][0].broadcastMessage("onTweenEnd", {target:_local14[_local35][0], props:_local14[_local35][1]});
}
for (var _local35 in _local23) {
_local23[_local35].f.apply(_local23[_local35].s, _local23[_local35].a);
}
if (_local26) {
cleanUp();
}
now = getTimer();
}
function cleanUp(noInit) {
for (var _local4 in tweens) {
var _local2 = tweens[_local4].targ;
if ((tweens[_local4].numProps <= 0) || (_local2.__zigoID__ == undefined)) {
if ((((_local2 != undefined) && (_local2.tween == undefined)) && (noInit != true)) && (_local2._listeners.length <= 0)) {
com.mosesSupposes.fuse.ZigoEngine.deinitializeTargets(_local2);
}
delete tweens[_local4];
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 _local6 = {};
_local6.all = String(targs).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL;
_local6.none = Boolean(targs == null);
if (_local6.all == true) {
_local6.tg = [null];
} else {
_local6.tg = ((targs instanceof Array) ? (targs) : ([targs]));
for (var _local11 in _local6.tg) {
var _local7 = _local6.tg[_local11];
if ((_local7 == null) || (!((typeof(_local7) == "object") || (typeof(_local7) == "movieclip")))) {
_local6.tg.splice(Number(_local11), 1);
}
}
}
_local6.allprops = props == null;
var _local1;
var _local4;
var _local3 = {};
if (_local6.allprops == false) {
if ((typeof(props) == "string") && ((String(props).indexOf(" ") > -1) || (String(props).indexOf(",") > -1))) {
props = String(props.split(" ").join("")).split(",");
}
_local1 = ((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(",");
}
_local4 = ((endvals instanceof Array) ? (endvals.slice()) : ([endvals]));
while (_local4.length < _local1.length) {
_local4.push(_local4[_local4.length - 1]);
}
_local4.splice(_local1.length, _local4.length - _local1.length);
}
for (var _local11 in _local1) {
var _local2 = Number(_local11);
if ((_local1[_local11] != "_scale") && (_local1[_local11] != "_size")) {
if (_local3[_local1[_local11]] == undefined) {
if ((_local1[_local11] == "_fade") && (retainFade != true)) {
_local1[_local11] = "_alpha";
}
if (String(_local1[_local11]).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) {
_local1[_local11] = com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR;
}
_local3[_local1[_local11]] = true;
} else {
_local1.splice(_local2, 1);
_local4.splice(_local2, 1);
}
} else {
var _local8 = String(_local1.splice(_local2, 1)[0]);
var _local5 = _local4.splice(_local2, 1)[0];
if (_local8 == "_scale") {
if (_local3._xscale == undefined) {
_local1.splice(_local2, 0, "_xscale");
_local4.splice(_local2, 0, _local5);
_local3._xscale = true;
_local2++;
}
if (_local3._yscale == undefined) {
_local1.splice(_local2, 0, "_yscale");
_local4.splice(_local2, 0, _local5);
_local3._yscale = true;
}
}
if (_local8 == "_size") {
if (_local3._width == undefined) {
_local1.splice(_local2, 0, "_width");
_local4.splice(_local2, 0, _local5);
_local3._width = true;
_local2++;
}
if (_local3._yscale == undefined) {
_local1.splice(_local2, 0, "_height");
_local4.splice(_local2, 0, _local5);
_local3._height = true;
}
}
}
}
for (var _local11 in _local1) {
if (((_local1[_local11] == "_xscale") && (_local3._width == true)) || ((_local1[_local11] == "_yscale") && (_local3._height == true))) {
_local1.splice(Number(_local11), 1);
_local4.splice(Number(_local11), 1);
delete _local3[_local1[_local11]];
}
}
}
_local6.pa = _local1;
_local6.va = _local4;
_local6.props = _local3;
return(_local6);
}
function getChangeObj(ps, ep, isFMP, useArray) {
var _local3 = {map:((useArray == true) ? ([]) : ({})), changed:false};
for (var _local7 in ep) {
if ((((((isFMP == true) && (_local7.charAt(1) == "b")) || (ep[_local7] != ps[_local7])) || (useArray == true)) && (ep[_local7] != null)) && (_global.isNaN(Number(ep[_local7])) == false)) {
_local3.map[_local7] = ((typeof(ep[_local7]) == "string") ? (Number(ep[_local7])) : (ep[_local7] - ps[_local7]));
if (_global.isNaN(_local3.map[_local7]) == true) {
_local3.map[_local7] = 0;
} else if (_local3.map[_local7] != 0) {
_local3.changed = true;
}
}
}
return(_local3);
}
var numTweens = 0;
}
Symbol 818 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 819 MovieClip [__Packages.Root] Frame 0
class Root
{
var accObj, kpa;
function Root () {
trace("create Root");
accObj = {};
accObj.parent = this;
Key.addListener(accObj);
kpa = [0, 0, 0, 0];
accObj.onKeyDown = function () {
this.parent.kpa.shift();
this.parent.kpa.push(chr(Key.getAscii()));
if (this.parent.kpa.join("") == this.parent.cheatWord) {
this.parent.cheat();
} else if (this.parent.kpa.join("") == this.parent.addMoneyWord) {
this.parent.cheat(true);
}
};
var _local2 = Main.wayPointsLevel1;
_local2.push(new flash.geom.Point(125, 226));
_local2.push(new flash.geom.Point(147, 233));
_local2.push(new flash.geom.Point(127, 214));
_local2.push(new flash.geom.Point(135, 231));
_local2.push(new flash.geom.Point(140, 193));
_local2.push(new flash.geom.Point(152, 168));
_local2.push(new flash.geom.Point(168, 141));
_local2.push(new flash.geom.Point(187, 107));
_local2.push(new flash.geom.Point(196, 92));
_local2.push(new flash.geom.Point(219, 101));
_local2.push(new flash.geom.Point(206, 95));
_local2.push(new flash.geom.Point(191, 98));
_local2.push(new flash.geom.Point(241, 105));
_local2.push(new flash.geom.Point(267, 112));
_local2.push(new flash.geom.Point(301, 122));
_local2.push(new flash.geom.Point(341, 133));
_local2.push(new flash.geom.Point(378, 142));
_local2.push(new flash.geom.Point(414, 152));
_local2.push(new flash.geom.Point(446, 163));
_local2.push(new flash.geom.Point(486, 176));
_local2.push(new flash.geom.Point(523, 186));
_local2.push(new flash.geom.Point(560, 196));
_local2.push(new flash.geom.Point(598, 207));
_local2.push(new flash.geom.Point(634, 216));
_local2.push(new flash.geom.Point(672, 221));
_local2.push(new flash.geom.Point(679, 256));
_local2.push(new flash.geom.Point(684, 288));
_local2.push(new flash.geom.Point(685, 322));
_local2.push(new flash.geom.Point(684, 361));
_local2.push(new flash.geom.Point(654, 377));
_local2.push(new flash.geom.Point(627, 380));
_local2.push(new flash.geom.Point(604, 375));
_local2.push(new flash.geom.Point(572, 362));
_local2.push(new flash.geom.Point(541, 351));
_local2.push(new flash.geom.Point(496, 338));
_local2.push(new flash.geom.Point(451, 322));
_local2.push(new flash.geom.Point(408, 310));
_local2.push(new flash.geom.Point(366, 298));
_local2.push(new flash.geom.Point(321, 284));
_local2.push(new flash.geom.Point(282, 274));
_local2.push(new flash.geom.Point(247, 265));
_local2.push(new flash.geom.Point(212, 253));
_local2.push(new flash.geom.Point(174, 243));
_local2 = Main.wayPointsLevel2;
_local2.push(new flash.geom.Point(200.85, 85.95));
_local2.push(new flash.geom.Point(192.2, 100.7));
_local2.push(new flash.geom.Point(218.65, 90));
_local2.push(new flash.geom.Point(257.8, 100.7));
_local2.push(new flash.geom.Point(308.15, 115.95));
_local2.push(new flash.geom.Point(362.55, 130.7));
_local2.push(new flash.geom.Point(423.05, 150.5));
_local2.push(new flash.geom.Point(492.75, 168.3));
_local2.push(new flash.geom.Point(560.35, 187.65));
_local2.push(new flash.geom.Point(634.1, 210));
_local2.push(new flash.geom.Point(174.4, 134.25));
_local2.push(new flash.geom.Point(157.15, 164.25));
_local2.push(new flash.geom.Point(144.95, 187.65));
_local2.push(new flash.geom.Point(132.75, 201.35));
_local2.push(new flash.geom.Point(144.4, 205.4));
_local2.push(new flash.geom.Point(160.7, 211.55));
_local2.push(new flash.geom.Point(207.5, 224.25));
_local2.push(new flash.geom.Point(265.45, 241));
_local2.push(new flash.geom.Point(320.85, 256.8));
_local2.push(new flash.geom.Point(396.1, 279.15));
_local2.push(new flash.geom.Point(456.1, 295.95));
_local2.push(new flash.geom.Point(520.7, 315.75));
_local2.push(new flash.geom.Point(127.65, 208.45));
_local2.push(new flash.geom.Point(120, 221.2));
_local2.push(new flash.geom.Point(102.75, 251.7));
_local2.push(new flash.geom.Point(84.95, 285.25));
_local2.push(new flash.geom.Point(72.75, 307.65));
_local2.push(new flash.geom.Point(67.65, 318.8));
_local2.push(new flash.geom.Point(78.3, 324.4));
_local2.push(new flash.geom.Point(101.2, 329));
_local2.push(new flash.geom.Point(145.45, 343.75));
_local2.push(new flash.geom.Point(203.9, 360));
_local2.push(new flash.geom.Point(263.9, 376.25));
_local2.push(new flash.geom.Point(342.75, 398.65));
_local2.push(new flash.geom.Point(544.6, 322.35));
_local2.push(new flash.geom.Point(533.9, 344.75));
_local2.push(new flash.geom.Point(568, 330));
_local2.push(new flash.geom.Point(624.4, 344.75));
_local2.push(new flash.geom.Point(386.95, 413.4));
_local2.push(new flash.geom.Point(436.3, 428.15));
_local2.push(new flash.geom.Point(469.35, 439.3));
_local2.push(new flash.geom.Point(481.55, 442.35));
_local2.push(new flash.geom.Point(489.15, 429.65));
_local2.push(new flash.geom.Point(497.8, 412.9));
_local2.push(new flash.geom.Point(514.6, 382.35));
_local2 = Main.wayPointsLevel3;
_local2.push(new flash.geom.Point(66, 58));
_local2.push(new flash.geom.Point(1, 186));
_local2.push(new flash.geom.Point(637, 225));
_local2.push(new flash.geom.Point(571, 350));
_local2.push(new flash.geom.Point(484, 328));
_local2.push(new flash.geom.Point(60, 205));
_local2.push(new flash.geom.Point(0, 332));
_local2.push(new flash.geom.Point(417, 456));
_local2.push(new flash.geom.Point(702, 390));
_local2.push(new flash.geom.Point(754, 250));
Main.topBarLink.w._visible = false;
Main.topBarLink.e._visible = false;
SoundMaster.init();
new XMLMaster();
if (!Main.getLevel()) {
Main.mapLevel = 1;
Main.totalMoney = 0;
Main.saveAll();
} else {
Main.mapLevel = Main.getLevel();
Main.totalMoney = Main.getScore();
}
}
function cheat(money) {
if (money) {
if (!Main.topBarLink) {
Main.createPopUpText("Only in game", 250, 200);
return(undefined);
}
Main.createPopUpText("Money for beer added", 220, 200);
Main.addMoney(500000);
return(undefined);
}
if (Main.CAR_SPEED < 500) {
Main.CAR_SPEED = 1000;
Main.TICK_K = 5;
Main.musicVolume = 0;
Main.soundVolume = 0;
House.START_RENT = [5000, 5000];
SoundMaster.updateVolume();
Main.createPopUpText("Cheats enabled!", 250, 200);
} else {
Main.CAR_SPEED = 300;
Main.TICK_K = 1;
Main.musicVolume = 80;
Main.soundVolume = 100;
House.START_RENT = [187, 440];
SoundMaster.updateVolume();
Main.createPopUpText("Cheats disabled!", 250, 200);
}
}
static function startSleepCheck() {
sleepSeconds = 0;
_root.onEnterFrame = function () {
Root.sleepSeconds++;
if ((((Main.gamePaused || (!Main.topBarLink)) || (!Main.houses[0].peopleIn)) || (Main.tutorial._visible)) || (Main.gamePaused)) {
Root.sleepSeconds = 0;
}
if (Root.sleepSeconds >= Root.sleepTime) {
Main.pause();
Main.showInGameMenu();
Root.sleepSeconds = 0;
}
if ((Main.root._xmouse != Root.oldX) || (Main.root._ymouse != Root.oldY)) {
Root.sleepSeconds = 0;
}
Root.oldX = Main.root._xmouse;
Root.oldY = Main.root._ymouse;
};
}
static function stopSleepCheck() {
delete _root.onEnterFrame;
}
static function sleepCheck() {
trace("sleepCheck");
if (Main.gamePaused || (!Main.topBarLink)) {
return(undefined);
}
if ((sleepSeconds++) == sleepTime) {
Main.pause();
Main.showInGameMenu();
}
if ((Main.root._xmouse != oldX) || (Main.root._ymouse != oldY)) {
sleepSeconds = 0;
}
oldX = Main.root._xmouse;
oldY = Main.root._ymouse;
}
function showConsole() {
}
var listener = {};
var consoleShowed = false;
var cheatWord = "tpmb";
var addMoneyWord = "iaam";
static var sleepTime = 600;
static var sleepSeconds = 0;
static var oldX = 0;
static var oldY = 0;
}
Symbol 820 MovieClip [__Packages.Plant] Frame 0
class Plant extends MovieClip
{
var topBar, carTo, stop, onRelease, myTimer, attachMovie, thisAction, upgradePlus, _x, _y, car, _alpha, nextFrame, gotoAndStop;
function Plant () {
super();
topBar = _root.topBar;
carTo = new flash.geom.Point(40, 80);
stop();
onRelease = function () {
if (Main.currentAction == "demolish") {
Main.createPopUpText(XMLMaster.getInterfaceTexts(53), this._x, this._y, 16711680);
return(undefined);
}
if (!this.sold) {
if (Main.root.pointerBuildings) {
return(undefined);
}
if (Main.money < 800) {
Main.createPopUpText(XMLMaster.getInterfaceTexts(37), this._x, this._y, 16711680);
Main.console("No money");
return(undefined);
}
Main.tutorial.level1("lot");
Main.addMoney(-800);
SoundMaster.addSound("lotBuy");
this.sold = true;
this.nextFrame();
Main.console("Lot purchased");
Main.currentAction = "none";
return(undefined);
}
if (!Main.haveFreeCars()) {
Main.console("No free cars");
return(undefined);
}
if (((Main.currentAction != "ps") && (Main.currentAction != "ws")) && (!this.builded)) {
Main.gameMenu.selectO3();
Main.console("No action selected");
return(undefined);
}
if ((Main.currentAction == "ps") || (Main.currentAction == "ws")) {
Main.console("Trying to build powerstation");
if (this.plantType > 0) {
Main.console("S already built!");
return(undefined);
}
if (Main.money < 2500) {
Main.createPopUpText(XMLMaster.getInterfaceTexts(37), this._x, this._y, 16711680);
Main.console("No money");
return(undefined);
}
this.plantType = ((Main.currentAction == "ps") ? 1 : 2);
if ((this.plantType == 1) && (Main.plantsBuilded == 0)) {
Main.plantsBuilded = 1;
} else if ((this.plantType == 2) && (Main.plantsBuilded == 0)) {
Main.plantsBuilded = 2;
} else {
if ((this.plantType == 1) && (Main.plantsBuilded == 1)) {
Main.console("Already have 1 ps");
this.plantType = 0;
return(undefined);
}
if ((this.plantType == 2) && (Main.plantsBuilded == 2)) {
Main.console("Already have 1 ws");
this.plantType = 0;
return(undefined);
}
Main.plantsBuilded = 3;
}
Main.addMoney(-2500);
if (this.plantType == 1) {
Main.disableButton(1);
} else {
Main.disableButton(2);
}
SoundMaster.addSound("objectSet");
Main.tutorial.level1("buildTower");
this.car = Main.sendCarTo(this);
}
};
}
function carArrived() {
SoundMaster.addSound("buildingStart");
createTimer(0, upgradeTime);
}
function createTimer(type, fps) {
if (!type) {
type = 0;
}
if (!fps) {
fps = 20;
}
myTimer = attachMovie("CircleTimer", "myTimer", 1);
myTimer._x = 20;
myTimer._y = 20;
myTimer.setTimer(type, fps);
}
function timerComplete() {
if (thisAction == "upgrade") {
if (plantType == 1) {
SoundMaster.addSound("PSBuild");
topBar.addMaxElectro(upgradePlus);
topBar.uprE = false;
topBar.enableAllEButtons();
} else {
SoundMaster.addSound("WPBuild");
topBar.addMaxWater(upgradePlus);
topBar.uprW = false;
topBar.enableAllWButtons();
}
LevelScript.thisLevelHouses.push([_x, _y, "p", plantType]);
car.freeCar();
thisAction = "none";
return(undefined);
}
_alpha = 0;
gs.TweenMax.to(this, 1, {_alpha:100});
Main.tutorial.level1("buildingTowerFinished");
Main.stats[0]++;
if (plantType == 1) {
SoundMaster.addSound("eventDone");
SoundMaster.addSound("PSBuild");
nextFrame();
topBar.addMaxElectro(ADD_AFTER_BUILD);
Main.plantMc = this;
builded = true;
}
if (plantType == 2) {
SoundMaster.addSound("eventDone");
SoundMaster.addSound("WPBuild");
nextFrame();
nextFrame();
topBar.addMaxWater(ADD_AFTER_BUILD);
Main.waterMc = this;
builded = true;
}
car.freeCar();
}
function instantBuild(type) {
if ((plantType == 1) && (Main.plantsBuilded == 0)) {
Main.plantsBuilded = 1;
} else if ((plantType == 2) && (Main.plantsBuilded == 0)) {
Main.plantsBuilded = 2;
} else {
if ((plantType == 1) && (Main.plantsBuilded == 1)) {
Main.console("IB: Already have 1 ps");
plantType = 0;
return(undefined);
}
if ((plantType == 2) && (Main.plantsBuilded == 2)) {
Main.console("IB: Already have 1 ws");
plantType = 0;
return(undefined);
}
Main.plantsBuilded = 3;
}
plantType = type;
builded = true;
if (type == 1) {
Main.disableButton(1);
} else {
Main.disableButton(2);
}
_alpha = 0;
sold = true;
gotoAndStop(2);
gs.TweenMax.to(this, 1, {_alpha:100});
if (plantType == 1) {
nextFrame();
topBar.addMaxElectro(ADD_AFTER_BUILD);
Main.plantMc = this;
}
if (plantType == 2) {
nextFrame();
nextFrame();
topBar.addMaxWater(ADD_AFTER_BUILD);
Main.waterMc = this;
}
}
var sold = false;
var plantType = 0;
var upgradeTime = 20;
var builded = false;
static var electroNeed = [0, 0];
static var waterNeed = [0, 0];
static var ADD_AFTER_BUILD = 10;
}
Symbol 821 MovieClip [__Packages.InterrierButton] Frame 0
class InterrierButton extends MenuButton
{
var txt, createTextField;
function InterrierButton () {
super();
txt = createTextField("txt", 1, 50, 3, 100, 100);
txt.selectable = false;
txt.textColor = 16750848 /* 0xFF9900 */;
txt.html = true;
txt.filters = [new flash.filters.GlowFilter(1222069, 100, 5, 5, 200, 1, false, false)];
updateCounter();
}
function updateCounter() {
txt.htmlText = ("<b>" + String(left)) + "</b>";
}
var left = 2;
}
Symbol 822 MovieClip [__Packages.MMButton] Frame 0
class MMButton extends MovieClip
{
var stop, onRollOver, onRollOut, onDragOut, onMouseDown;
function MMButton () {
super();
stop();
onRollOver = function () {
this.gotoAndStop(2);
SoundMaster.addSound("menuOver");
};
onRollOut = (onDragOut = function () {
this.gotoAndStop(1);
});
onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
SoundMaster.addSound("menuClick");
}
};
}
}
Symbol 823 MovieClip [__Packages.BuyIt] Frame 0
class BuyIt extends MovieClip
{
var square, buyIt, getIt, ok, m1, m2, swapDepths, removeMovieClip;
function BuyIt () {
super();
square = square;
mx.behaviors.DepthControl.bringToFront(this);
buyIt = getIt;
ok = ok;
m1.text = XMLMaster.getInterfaceTexts(7);
m2.text = XMLMaster.getInterfaceTexts(8);
if ((!Main.inGameMenu._currentframe) && (Main.currentLevel == 9)) {
m2.text = XMLMaster.getInterfaceTexts(31);
}
square.onRelease = function () {
};
buyIt.onRelease = function () {
Helper.GetIt();
this._parent.destroy();
};
ok.onRelease = function () {
trace(Main.inGameMenu._currentframe);
if (Main.inGameMenu._currentframe || (Main.currentLevel < 9)) {
this._parent.destroy();
} else {
this._parent.destroy();
Main.destroyMap();
Main.createMainMenu();
}
};
}
function destroy() {
swapDepths(301);
removeMovieClip();
}
}
Symbol 824 MovieClip [__Packages.HeartsFountain] Frame 0
class HeartsFountain extends MovieClip
{
var getNextHighestDepth, attachMovie;
function HeartsFountain () {
super();
}
function doFountain(hearts, x, y, destx, desty) {
if (!hearts) {
hearts = 5;
}
var _local4 = hearts;
var _local2;
var _local3 = getNextHighestDepth();
var _local13 = this;
while (_local4--) {
_local2 = attachMovie("Heart", "Heart" + _local3, _local3++);
_local2._x = x;
_local2._y = y;
gs.TweenLite.to(_local2, ((_local4 + 1) * 3) / 5, {_x:destx, _y:desty, _alpha:0});
}
}
}
Symbol 825 MovieClip [__Packages.GoalsScreen] Frame 0
class GoalsScreen extends MovieClip
{
var header, ok, square, texts, goal1Text, goal2Text, goal3Text, m1, arr;
function GoalsScreen () {
super();
header.text = XMLMaster.getInterfaceTexts(74);
ok.onRelease = function () {
Main.unpause();
Main.hideGoalsScreen();
};
square.onRelease = function () {
};
texts = [goal1Text, goal2Text, goal3Text];
m1.text = XMLMaster.getInterfaceTexts(8);
arr = Main.goals.getGoals();
var _local3 = 3;
while (_local3--) {
texts[_local3].text = "";
}
addGoal();
}
function addGoal() {
if (Main.currentLevel == 1) {
texts[0].text = XMLMaster.getInterfaceTexts(23);
texts[1].text = XMLMaster.getInterfaceTexts(24);
} else if (Main.currentLevel == 2) {
texts[0].text = XMLMaster.getInterfaceTexts(21);
} else if (Main.currentLevel == 3) {
texts[0].text = XMLMaster.getInterfaceTexts(20) + " 3500";
} else if (Main.currentLevel == 4) {
texts[0].text = XMLMaster.getInterfaceTexts(29);
} else if (Main.currentLevel == 5) {
texts[0].text = XMLMaster.getInterfaceTexts(22);
texts[1].text = XMLMaster.getInterfaceTexts(20) + " 10000";
} else if (Main.currentLevel == 6) {
texts[0].text = XMLMaster.getInterfaceTexts(25);
texts[1].text = XMLMaster.getInterfaceTexts(20) + " 16500";
} else if (Main.currentLevel == 7) {
texts[0].text = XMLMaster.getInterfaceTexts(21);
texts[1].text = XMLMaster.getInterfaceTexts(28);
texts[1].text = XMLMaster.getInterfaceTexts(20) + " 14500";
} else if (Main.currentLevel == 8) {
texts[1].text = XMLMaster.getInterfaceTexts(20) + " 23000";
} else if (Main.currentLevel == 9) {
texts[0].text = XMLMaster.getInterfaceTexts(26);
texts[1].text = XMLMaster.getInterfaceTexts(20) + " 25000";
}
}
var num = 0;
}
Symbol 826 MovieClip [__Packages.LoveBar] Frame 0
class LoveBar extends MovieClip
{
var stop, rentButton, rentSum, onEnterFrame;
function LoveBar () {
super();
stop();
rentButton = rentButton;
rentSum.text = String(House.START_RENT[Main.currentHouse.houseType - 1]);
rentButton._visible = false;
onEnterFrame = function () {
if (this._currentframe < this.hearts) {
this.nextFrame();
}
if (this.hearts >= 70) {
this.rentButton._visible = true;
}
if (this.hearts >= 100) {
this._parent.heartMax();
}
};
rentButton.onRelease = function () {
Main.settingInterrierDone(this._parent.hearts);
};
}
function addHearts(num) {
hearts = hearts + num;
Main.addRandom = Main.addRandom + random(10);
var _local2 = Main.currentHouse.houseType - 1;
rentSum.text = String((House.START_RENT[_local2] + (hearts * House.RENT_PER_HEART[_local2])) + Main.addRandom);
}
var hearts = 1;
}
Symbol 827 MovieClip [__Packages.HouseInterrier] Frame 0
class HouseInterrier extends MovieClip
{
static var cells, houseNumber, selector, tiles, select;
var isometric, money, loveBar, exit, heartsFountain, houseMC, attachMovie, getNextHighestDepth, buttons, paintButton, zaborButton, grassButton, chearButton, tableButton, txt, bedButton, pointer, snapTest, zones, ground, testMc, createEmptyMovieClip, isoMc;
function HouseInterrier () {
super();
thisObjects = [];
cells = [];
Main.addRandom = 0;
var _local3 = Main.currentHouse.houseType;
houseNumber = _local3;
isometric = new iso.Isometric(_local3, this);
money = money;
money.text = String(Main.money);
money._visible = false;
loveBar = loveBar;
exit = exit;
exit._visible = false;
heartsFountain = heartsFountain;
houseMC = attachMovie(("House" + String(_local3)) + "InterrierMc", "houseInterrier", getNextHighestDepth(), {_x:20, _y:69});
buttons = [paintButton, zaborButton, grassButton, chearButton, tableButton, txt, bedButton];
txt.text = XMLMaster.getInterfaceTexts(71);
if (_local3 == 1) {
houseMC._width = 599;
houseMC._height = 331;
var _local5 = buttons.pop();
_local5._visible = false;
}
if (_local3 == 2) {
houseMC._y = houseMC._y - 10;
}
pointer = attachMovie("PointerFreeObjects", "pfo", getNextHighestDepth());
pointer._visible = false;
loveBar.swapDepths(10);
heartsFountain.swapDepths(11);
houseMC.i0._alpha = 0;
houseMC.i1._alpha = 0;
houseMC.i2._alpha = 0;
snapTest = snapTest;
zones = houseMC.zones;
zones._visible = false;
houseMC.zagl.onRelease = function () {
};
var i = buttons.length;
var t;
while (i--) {
buttons[i]._visible = false;
buttons[i].i = i;
if (i > 2) {
buttons[i].left = 2;
}
buttons[i].onRelease = function () {
t = this.i;
HouseInterrier.select = t;
if (this.enabled) {
SoundMaster.addSound("downMenuHouse");
}
if (t <= 2) {
this._parent.pointer.addFreeObject(t + 1, this._parent.houseMC);
return(undefined);
}
if (t <= 4) {
iso.Isometric.lefter = 0;
iso.Isometric.righter = 0;
iso.Isometric.upper = 0;
iso.Isometric.lower = 0;
} else if (t == 5) {
iso.Isometric.lefter = 0;
iso.Isometric.righter = 1;
iso.Isometric.upper = 1;
iso.Isometric.lower = 1;
}
this._parent.tiles._alpha = 100;
this._parent.pointer.addLinkedObject(t + 1, this._parent.houseMC);
};
}
i = buttons.length;
var _local4 = ground;
_local4._width = 200;
_local4._height = 200;
_local4.onRelease = function () {
};
var t = this;
loveBar._visible = false;
houseMC._visible = false;
gs.TweenMax.to(_local4, 0.5, {_width:640, _height:480, onComplete:function () {
t.houseMC._visible = true;
var _local1 = t.buttons.length;
t.loveBar._visible = true;
do {
if (!(_local1--)) {
break;
}
t.buttons[_local1]._visible = true;
} while (_local1 >= -10);
t.money._visible = true;
t.exit._visible = true;
t.txt._visible = true;
t.createIso();
if (Main.currentLevel == 3) {
mx.behaviors.DepthControl.bringToFront(Main.tutorial);
}
}});
testMc = createEmptyMovieClip("testMc", getNextHighestDepth());
selector = attachMovie("selector", "selector", getNextHighestDepth());
exit.onRelease = function () {
Main.tutorial.level3Step = 3;
Main.settingInterrierDone(0, true);
};
isoMc = createEmptyMovieClip("isoMc", getNextHighestDepth());
tiles = isoMc.createEmptyMovieClip("tiles", isoMc.getNextHighestDepth());
pointer.swapDepths(getNextHighestDepth());
tiles._alpha = 0;
isometric.createTillWorld(tiles, "tile", isometric.tilesArray, null, null, true);
if (_local3 == 1) {
isoMc._x = 320;
isoMc._y = 145;
} else if (_local3 == 2) {
isoMc._x = 270;
isoMc._y = 155;
}
}
function createIso() {
}
function cancelSelect() {
}
function acceptSelect(x, y) {
var _local3 = select;
if (_local3 == -1) {
return(undefined);
}
var _local7 = pointer.hearts._currentframe;
if (!x) {
x = Main.root._xmouse;
}
if (!y) {
y = Main.root._ymouse;
}
SoundMaster.addSound("interSet");
heartsFountain.doFountain(_local7, x, y, 320, 50);
Main.createPopUpText("+" + String(_local7), x, y, 2);
if (_local3 == 0) {
houseMC["i" + select]._alpha = 100;
buttons[_local3].disable();
addHearts(25);
} else if (_local3 == 1) {
houseMC["i" + select]._alpha = 100;
buttons[_local3].disable();
addHearts(25);
} else if (_local3 == 2) {
houseMC["i" + select]._alpha = 100;
buttons[_local3].disable();
addHearts(25);
} else if (((_local3 == 3) || (_local3 == 4)) || (_local3 == 5)) {
x = Math.round(x);
y = Math.round(y);
var _local8 = getNextHighestDepth();
var _local6 = attachMovie("PointerFreeObjects", (("Object" + y) + "") + x, _local8);
_local6._x = x;
_local6._y = y;
_local6.gotoAndStop(_local3 + 1);
_local6.hearts._visible = false;
thisObjects.push(_local6);
thisObjects.sort();
var _local2 = thisObjects.length;
thisObjects.reverse();
while (_local2--) {
if (_local2 < -10) {
throw new Error("Fuck!");
break;
}
mx.behaviors.DepthControl.bringToFront(thisObjects[_local2]);
}
mx.behaviors.DepthControl.bringToFront(pointer);
addHearts(pointer.hearts._currentframe * 7);
buttons[_local3].left--;
buttons[_local3].updateCounter();
if (buttons[_local3].left == 0) {
buttons[_local3].disable();
}
}
select = -1;
}
function heartMax() {
var _local2 = buttons.length;
while (_local2--) {
buttons[_local2].disable();
}
}
function getColor(x, y) {
if (houseMC.greenZone.hitTest(Main.root._xmouse, Main.root._ymouse, true)) {
return(0);
}
if (houseMC.yellowZone.hitTest(Main.root._xmouse, Main.root._ymouse, true)) {
return(1);
}
return(2);
}
function setHeartsNum(obj, col) {
if (select <= 2) {
obj.gotoAndStop(4);
} else {
var _local3 = 5;
var _local2 = thisObjects.length;
while (_local2--) {
if (thisObjects[_local2]._currentframe == (select + 1)) {
_local3--;
}
}
_local3 = _local3 - col;
if (_local3 <= 0) {
_local3 = 1;
}
obj.gotoAndStop(_local3);
}
}
function inZone() {
pointer.hearts._visible = true;
if (select > 2) {
return(undefined);
}
houseMC["i" + select]._alpha = 40;
}
function outOfZone() {
pointer.hearts._visible = false;
if (select > 2) {
return(undefined);
}
houseMC["i" + select]._alpha = 0;
}
function addHearts(num) {
if ((!num) || (num == undefined)) {
num = 33;
}
Main.tutorial.level3("inHouse");
loveBar.addHearts(num);
}
var zonesX = 173;
var zonesY = 141;
var thisObjects = [];
}
Symbol 828 MovieClip [__Packages.iso.Isometric] Frame 0
class iso.Isometric
{
var linkToHouse, offsetX, offsetY, tilesArray, pointer, root, m;
function Isometric (levelNum, $linkToHouse) {
linkToHouse = $linkToHouse;
if (levelNum == 1) {
offsetX = 320;
offsetY = 145;
tilesArray = [[1, 1, 1, 2, 2, 2, 2, 2], [1, 1, 1, 1, 1, 1, 1, 3], [1, 1, 1, 1, 1, 1, 1, 3], [2, 3, 3, 1, 1, 1, 1, 3], [0, 0, 0, 3, 3, 1, 1, 3], [0, 0, 0, 3, 3, 3, 3, 3], [0, 0, 0, 0, 3, 0, 0, 0], [0, 0, 2, 3, 3, 2, 2, 2], [0, 0, 2, 1, 1, 1, 1, 1], [0, 0, 2, 1, 1, 1, 1, 1], [0, 0, 2, 1, 1, 1, 1, 1]];
} else if (levelNum == 2) {
offsetX = 270;
offsetY = 155;
tilesArray = [[0, 0, 0, 0, 0, 3, 3, 3, 3, 3], [2, 2, 2, 2, 2, 2, 2, 2, 2, 3], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 2, 2, 2, 2, 3], [3, 2, 1, 1, 1, 1, 1, 1, 2, 3], [0, 2, 1, 1, 1, 1, 1, 1, 2, 3], [0, 0, 3, 3, 3, 3, 3, 3, 3, 2]];
}
pointer = root.pointer;
pointer.swapDepths(9999);
}
function createTillWorld(whereAttach, mcName, arr, tillWidth, tillHeight, iso) {
if (!tillHeight) {
tillHeight = tileHeight;
}
if (!tillWidth) {
tillWidth = tileWidth;
}
var _local5 = whereAttach;
if (iso) {
m = _local5.transform.matrix;
m.rotate(0.698131700797732);
m.scale(1, 0.4);
}
var _local15;
var _local3;
var _local10 = _local5.getNextHighestDepth();
var _local9 = arr.length;
var _local8 = arr[0].length;
var _local4 = 0;
while (_local4 < _local9) {
var _local2 = 0;
while (_local2 < _local8) {
var _local6 = (("tile" + _local2) + "") + _local4;
_local5.attachMovie(mcName, _local6, _local10++);
_local3 = _local5[_local6];
_local3._width = tillWidth;
_local3._height = tillHeight;
_local3._x = tileWidth * _local2;
_local3._y = tillHeight * _local4;
_local3.numInLine = _local2;
_local3.line = _local4;
_local3.showName();
addBehaviors(_local3);
_local3.setColor(arr[_local4][_local2]);
_local2++;
}
_local4++;
}
_local4 = 0;
while (_local4 < _local9) {
var _local2 = 0;
while (_local2 < _local8) {
_local3 = _local5[(("tile" + _local2) + "") + _local4];
_local3.leftTile = _local5[(("tile" + (_local2 - 1)) + "") + _local4];
_local3.rightTile = _local5[(("tile" + (_local2 + 1)) + "") + _local4];
_local3.upTile = _local5[(("tile" + _local2) + "") + (_local4 - 1)];
_local3.downTile = _local5[(("tile" + _local2) + "") + (_local4 + 1)];
_local2++;
}
_local4++;
}
if (iso) {
_local5.transform.matrix = m;
}
}
function mapToScreen(p) {
return(m.transformPoint(p));
}
function addBehaviors(mc) {
var hse = linkToHouse;
var THIS = this;
mc.onRollOver = function () {
if (HouseInterrier.select >= 3) {
var _local2 = THIS.mapToScreen(new flash.geom.Point(this._x, this._y));
hse.pointer.canDrag = false;
hse.pointer._x = _local2.x + THIS.offsetX;
hse.pointer._y = _local2.y + THIS.offsetY;
THIS.highlightSquare(this, iso.Isometric.lefter, iso.Isometric.righter, iso.Isometric.upper, iso.Isometric.lower);
if ((((iso.Isometric.lefter > 0) || (iso.Isometric.righter > 0)) || (iso.Isometric.upper > 0)) || (iso.Isometric.lower > 0)) {
hse.setHeartsNum(hse.pointer.hearts, Math.round(THIS.middleSquareColor(this) / 3) - 2);
} else {
hse.setHeartsNum(hse.pointer.hearts, this.colorNum);
}
}
};
mc.onRollOut = function () {
if (HouseInterrier.select >= 3) {
hse.pointer.canDrag = true;
THIS.highlightSquare(this, iso.Isometric.lefter, iso.Isometric.righter, iso.Isometric.upper, iso.Isometric.lower, 0);
}
};
mc.onPress = function () {
if (!iso.Isometric.canPlaceNow) {
return(undefined);
}
if (this._parent._alpha < 50) {
return(undefined);
}
this.onRollOut();
var _local2 = THIS.mapToScreen(new flash.geom.Point(this._x, this._y));
hse.acceptSelect(_local2.x + THIS.offsetX, _local2.y + THIS.offsetY);
THIS.removeSquare(this);
};
}
function highlightSquare(tile, left, right, up, down, colorNum) {
var _local3 = tile.getTilesSquare(left, right, up, down);
if ((colorNum == null) || (colorNum == undefined)) {
var _local5 = _local3[1];
if (_local5) {
colorNum = 2;
canPlaceNow = false;
} else {
canPlaceNow = true;
linkToHouse.pointer.setNormalColor();
}
}
_local3 = _local3[0];
var _local2 = _local3.length;
while (_local2--) {
_local3[_local2].highlight(colorNum);
}
}
function removeSquare(tile, left, right, up, down) {
if (!left) {
left = lefter;
}
if (!right) {
right = righter;
}
if (!up) {
up = upper;
}
if (!down) {
down = lower;
}
var _local2 = tile.getTilesSquare(left, right, up, down)[0];
var _local1 = _local2.length;
while (_local1--) {
removeMovieClip(_local2[_local1]);
}
}
function middleSquareColor(tile, left, right, up, down) {
if (!left) {
left = lefter;
}
if (!right) {
right = righter;
}
if (!up) {
up = upper;
}
if (!down) {
down = lower;
}
var _local2 = tile.getTilesSquare(left, right, up, down)[0];
var _local1 = _local2.length;
var _local3 = 0;
while (_local1--) {
if (_local2[_local1].colorNum != undefined) {
_local3 = _local3 + _local2[_local1].colorNum;
continue;
}
return(null);
}
return(_local3);
}
var lines = 11;
var numInLines = 8;
var tileWidth = 25;
var tileHeight = 28;
static var upper = 0;
static var lower = 0;
static var lefter = 0;
static var righter = 0;
static var canPlaceNow = false;
}
Symbol 829 MovieClip [__Packages.iso.Tile] Frame 0
class iso.Tile extends MovieClip
{
var highlightBad, color, colorTransform, removeMovieClip, colorNum, rightTile;
function Tile () {
super();
highlightOn = {ra:120, ga:120, ba:120};
highlightBad = {ra:120, ga:40, ba:40};
}
function showName() {
}
function highlight(num) {
if (num == 0) {
highlighted = false;
color.setTransform(colorTransform);
return(undefined);
}
highlighted = true;
if (num == 1) {
color.setTransform(highlightOn);
} else {
color.setTransform(highlightBad);
}
}
function setColor($colorNum) {
color = new Color(this);
colorTransform = color.getTransform();
if ($colorNum == 1) {
colorTransform = {ra:0, ba:0, ga:200};
} else if ($colorNum == 2) {
colorTransform = {ra:200, ba:0, ga:200};
} else if ($colorNum == 3) {
colorTransform = {ra:500, ba:0, ga:0};
} else {
if ($colorNum == 0) {
removeMovieClip();
return(undefined);
}
throw new Error("as2.iso.Tile.as -> setColor(color) - color is bad! ColorNum: " + colorNum);
}
colorNum = $colorNum;
color.setTransform(colorTransform);
}
function getTilesSquare(left, right, up, down) {
if (!left) {
left = 0;
}
if (!right) {
right = 0;
}
if (!up) {
up = 0;
}
if (!down) {
down = 0;
}
var _local4 = [];
var _local2;
var _local7 = false;
_local4.push(this);
var _local3 = 0;
while (_local3 < left) {
_local2 = _local4[_local3].leftTile;
if (_local2.toString() != undefined) {
_local4.push(_local2);
} else {
_local7 = true;
}
_local3++;
}
if (right > 0) {
_local2 = rightTile;
_local4.push(_local2);
}
var _local6 = left;
_local3 = 1;
while (_local3 < right) {
_local2 = _local4[_local3 + _local6].rightTile;
if (_local2.toString() != undefined) {
_local4.push(_local2);
} else {
_local7 = true;
}
_local3++;
}
_local6 = 0;
var _local8 = _local4.length;
_local3 = 0;
while (_local3 < up) {
var _local5 = 0;
while (_local5 < _local8) {
_local2 = _local4[_local5 + _local6].upTile;
if (_local2.toString() != undefined) {
_local4.push(_local2);
} else {
_local7 = true;
}
_local5++;
}
_local6 = _local6 + _local8;
_local3++;
}
_local6 = 0;
_local3 = 0;
while (_local3 < down) {
var _local5 = 0;
while (_local5 < _local8) {
_local2 = _local4[_local5 + _local6].downTile;
if (_local2.toString() != undefined) {
_local4.push(_local2);
} else {
_local7 = true;
}
_local5++;
}
_local6 = _local6 + _local8;
_local3++;
}
return([_local4, _local7]);
}
function addObject(cont, nameToAttach, frame) {
throw new Error("as2.iso.Tile.as: addObject -> \u043D\u0435 \u0440\u0435\u0430\u043B\u0438\u0437\u043E\u0432\u0430\u043D\u043E");
return(undefined);
}
var highlightOn = {};
var highlighted = false;
}
Symbol 830 MovieClip [__Packages.Pointer] Frame 0
class Pointer extends MovieClip
{
var canClick, color, transformNormal, transformRed, mListener, hearts, gotoAndStop, _visible, linkToHouse, linkToHZ, onEnterFrame;
function Pointer () {
super();
canClick = false;
color = new Color(this);
transformNormal = color.getTransform();
transformRed = {ra:300, ba:50, ga:50};
mListener = new Object();
hearts.stop();
}
function addFreeObject(num, _linkToHouse) {
gotoAndStop(num);
_visible = true;
linkToHouse = _linkToHouse;
linkToHZ = _linkToHouse["hz" + String(num - 1)];
Mouse.addListener(mListener);
mListener.linkToThis = this;
mListener.hearts = hearts;
mListener.onMouseMove = function () {
if (!this.linkToThis.linkToHZ.hitTest(Main.root._xmouse, Main.root._ymouse, true)) {
this.linkToThis.color.setTransform(this.linkToThis.transformRed);
this.linkToThis.linkToHouse._parent.outOfZone();
this.linkToThis.canClick = false;
} else {
this.linkToThis.color.setTransform(this.linkToThis.transformNormal);
this.linkToThis.linkToHouse._parent.inZone();
this.linkToThis.canClick = true;
this.linkToThis.linkToHouse._parent.setHeartsNum(this.hearts);
}
this.linkToThis._x = Main.root._xmouse;
this.linkToThis._y = Main.root._ymouse;
updateAfterEvent();
};
mListener.onMouseMove();
mListener.onMouseDown = function () {
Mouse.removeListener(this.linkToThis.mListener);
this.linkToThis._visible = false;
if (!this.linkToThis.canClick) {
this.linkToThis.linkToHouse._parent.cancelSelect();
return(undefined);
}
this.linkToThis.linkToHouse._parent.acceptSelect();
};
}
function addLinkedObject(num, _linkToHouse) {
gotoAndStop(num);
linkToHouse = _linkToHouse;
_visible = true;
mListener.linkToThis = this;
Mouse.addListener(mListener);
mListener.onMouseMove = function () {
if (this.linkToThis.canDrag) {
this.linkToThis._x = Main.root._xmouse;
this.linkToThis._y = Main.root._ymouse;
this.linkToThis.color.setTransform(this.linkToThis.transformRed);
this.hearts._visible = false;
}
};
onEnterFrame = function () {
if (!iso.Isometric.canPlaceNow) {
this.setRedColor();
}
};
mListener.onMouseMove();
mListener.onMouseDown = function () {
this.linkToThis._visible = false;
this.linkToThis.linkToHouse._parent.cancelSelect();
Mouse.removeListener(this.linkToThis.mListener);
_global.setTimeout(function () {
HouseInterrier.select = -1;
HouseInterrier.tiles._alpha = 0;
}, 100);
delete this.linkToThis.onEnterFrame;
};
}
function setNormalColor() {
color.setTransform(transformNormal);
hearts._visible = true;
}
function setRedColor() {
color.setTransform(transformRed);
hearts._visible = false;
}
var ceilWidth = 15;
var ceilHeight = 15;
var canDrag = true;
}
Symbol 831 MovieClip [__Packages.Cell] Frame 0
class Cell extends MovieClip
{
var mainArray, num, stop, onRollOver, onRollOut;
function Cell () {
super();
mainArray = HouseInterrier.cells;
num = mainArray.push(this);
stop();
onRollOver = function () {
var _local2 = this.mainArray.length;
HouseInterrier.selector._x = this._x;
HouseInterrier.selector._y = this._y;
while (_local2--) {
if (HouseInterrier.selector.hitTest(this.mainArray[_local2])) {
this.mainArray[_local2].gotoAndStop(2);
}
}
};
onRollOut = function () {
this.gotoAndStop(1);
var _local2 = this.mainArray.length;
while (_local2--) {
this.mainArray[_local2].gotoAndStop(1);
}
};
}
}
Symbol 832 MovieClip [__Packages.Stats] Frame 0
class Stats extends MovieClip
{
var header, totalB, moneyE, timeL, timeB, totalM, menu, restart, continueButton, m6, m1, m2, m3, m4, m5;
function Stats () {
super();
header.text = XMLMaster.getInterfaceTexts(75);
totalB = totalB;
moneyE = moneyE;
timeL = timeL;
timeB = timeB;
totalM = totalM;
menu = menu;
restart = restart;
continueButton = continueButton;
var _local3 = Main.getInfo();
totalB.text = String(_local3[0]);
moneyE.text = String(_local3[1]);
timeL.text = String(_local3[2]);
timeB.text = String(_local3[3]);
totalM.text = String(_local3[4]);
m6.text = XMLMaster.getInterfaceTexts(8);
m1.text = XMLMaster.getInterfaceTexts(9);
m2.text = XMLMaster.getInterfaceTexts(10);
m3.text = XMLMaster.getInterfaceTexts(11);
m4.text = XMLMaster.getInterfaceTexts(12);
m5.text = XMLMaster.getInterfaceTexts(13);
continueButton.onRelease = function () {
Main.unblockScreen();
Main.removeStats();
Main.destroyGame();
Main.showMap();
};
menu.onRelease = function () {
Main.unblockScreen();
Main.removeStats();
Main.destroyGame();
Main.createMainMenu();
};
restart.onRelease = function () {
Main.unblockScreen();
Main.removeStats();
Main.destroyGame();
Main.selectLevel(Main.currentLevel);
};
}
}
Symbol 833 MovieClip [__Packages.effects.Monet] Frame 0
class effects.Monet extends MovieClip
{
var _y, ymov, onEnterFrame, int, _x;
function Monet () {
super();
gs.TweenMax.to(this, Math.abs(_y - 450) / 150, {_x:600, ease:gs.easing.Strong.easeOut});
ymov = -8;
onEnterFrame = function () {
this._y = this._y + this.ymov;
this.ymov = this.ymov + 1;
if (this._y >= 380) {
delete this.onEnterFrame;
this.swapDepths(301);
this.removeMovieClip();
}
};
int = setInterval(this, "addStar", Main.EFFECTS_MONET_STARS_INTERVAL);
}
function addStar() {
var _local4 = Main.root;
var _local3 = _local4.getNextHighestDepth();
var _local2 = _local4.attachMovie("EffectStar" + (random(3) + 1), "es" + _local3, _local3);
_local2._x = _x;
_local2._y = _y;
_local2.onEnterFrame = function () {
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
this.swapDepths(301);
this.removeMovieClip();
}
};
}
}
Symbol 834 MovieClip [__Packages.gs.easing.Strong] Frame 0
class gs.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
}
Symbol 835 MovieClip [__Packages.PointerBuildings] Frame 0
class PointerBuildings extends MovieClip
{
var plants, color, transformNormal, transformRed, gotoAndStop, onMouseMove;
function PointerBuildings () {
super();
plants = [Main.root.p0, Main.root.p1];
color = new Color(this);
transformNormal = color.getTransform();
transformNormal = {ra:100, ba:100, ga:200};
transformRed = {ra:200, ba:100, ga:100};
}
function addBuilding(type, typeN) {
Main.console("Cursor: addBuilding");
if (type == "p") {
Main.console("Type plant, typeN: " + String(typeN));
gotoAndStop(typeN + 1);
onMouseMove = function () {
var _local2 = 0;
while (_local2 < 2) {
if ((this.plants[_local2].sold && (this.plants[_local2].plantType == 0)) && (this.plants[_local2].hitTest(Main.root._xmouse, Main.root._ymouse, true))) {
this._x = this.plants[_local2]._x;
this._y = this.plants[_local2]._y;
this.color.setTransform(this.transformNormal);
break;
}
this.color.setTransform(this.transformRed);
this._x = Main.root._xmouse - 50;
this._y = Main.root._ymouse - 50;
_local2++;
}
};
} else if (type == "h") {
Main.console("Type house, typeN: " + String(typeN));
gotoAndStop(typeN + 3);
l = Main.houses.length;
onMouseMove = function () {
var _local2 = 0;
while (_local2 < l) {
if ((Main.houses[_local2].sold && (Main.houses[_local2].houseType == 0)) && (Main.houses[_local2].hitTest(Main.root._xmouse, Main.root._ymouse, true))) {
this._x = Main.houses[_local2]._x + 15;
this._y = Main.houses[_local2]._y + 20;
this.color.setTransform(this.transformNormal);
break;
}
this.color.setTransform(this.transformRed);
this._x = Main.root._xmouse - 50;
this._y = Main.root._ymouse - 50;
_local2++;
}
};
} else if ((type == "garage") || (type == "bank")) {
Main.console("Type garage, don`t need typeN");
if (type != "garage") {
gotoAndStop(8);
} else {
gotoAndStop(7);
}
var l = Main.garages.length;
onMouseMove = function () {
var _local2 = 0;
while (_local2 < l) {
if ((Main.garages[_local2].sold && (Main.garages[_local2].thisType == 0)) && (Main.garages[_local2].hitTest(Main.root._xmouse, Main.root._ymouse, true))) {
this._x = Main.garages[_local2]._x;
this._y = Main.garages[_local2]._y;
this.color.setTransform(this.transformNormal);
break;
}
this.color.setTransform(this.transformRed);
this._x = Main.root._xmouse - 50;
this._y = Main.root._ymouse - 50;
_local2++;
}
};
} else if (type == "upgrade") {
Main.console("Upgrade, typeN: " + typeN);
if (typeN == 1) {
Main.console("Upgrade building");
l = Main.houses.length;
gotoAndStop(9);
onMouseMove = function () {
var _local2 = 0;
while (_local2 < l) {
if (Main.houses[_local2].wantToUpgrade && Main.houses[_local2].hitTest(Main.root._xmouse, Main.root._ymouse, true)) {
if (Main.houses[_local2].costToUpgrade > Main.money) {
this.gotoAndStop(11);
} else {
this.gotoAndStop(10);
}
this._x = Main.houses[_local2]._x + 50;
this._y = Main.houses[_local2]._y + 50;
break;
}
this._x = Main.root._xmouse;
this._y = Main.root._ymouse;
_local2++;
}
};
}
} else if (type == "repair") {
Main.console("repair");
gotoAndStop(12);
onMouseMove = function () {
this._x = Main.root._xmouse;
this._y = Main.root._ymouse;
};
} else if (type == "demolish") {
gotoAndStop(13);
onMouseMove = function () {
this._x = Main.root._xmouse;
this._y = Main.root._ymouse;
};
} else {
Main.console("Shit happens. Unknown type: " + type);
return(undefined);
}
onMouseMove();
}
}
Symbol 836 MovieClip [__Packages.MapPoint] Frame 0
class MapPoint extends MovieClip
{
var stop, onRelease;
function MapPoint () {
super();
stop();
onRelease = function () {
this._parent.dotClicked(this.num);
};
}
}
Symbol 837 MovieClip [__Packages.PopUpText] Frame 0
class PopUpText extends MovieClip
{
var _visible, gotoAndStop, txt;
function PopUpText () {
super();
_visible = false;
}
function showText(text, type) {
_visible = true;
gotoAndStop(type);
txt.text = text;
var t = this;
gs.TweenMax.to(this, 3, {_y:t._y - 50, _alpha:100, onComplete:function () {
t.swapDepths(301);
t.removeMovieClip();
}});
}
}
Symbol 838 MovieClip [__Packages.RentTimer] Frame 0
class RentTimer extends MovieClip
{
var stop, _int, show_int, _parent, _currentframe, _visible, int, nextFrame, gotoAndStop, _xscale, _yscale;
function RentTimer () {
super();
stop();
}
function startPay() {
}
function start(int) {
_int = int;
show_int = setInterval(this, "showInt", int + random(3000));
var t = this;
_global.setTimeout(function () {
t.showInt();
}, random(2000));
}
function showInt() {
if (((_parent.broked || (_parent.thisAction == "in")) || (_parent.thisAction == "demolish")) || (_parent.thisAction == "upgrade")) {
return(undefined);
}
if (!Main.gamePaused) {
if (_currentframe == 1) {
SoundMaster.addSound("rent");
Main.tutorial.level3("rent");
_parent.paying = true;
Main.houseIsPaying(_parent);
_visible = true;
shake();
int = setInterval(this, "updTimer", Main.RENT_TIMER_SPEED);
Main.rentHere(_parent);
}
}
}
function updTimer() {
if (!Main.gamePaused) {
nextFrame();
}
if ((_currentframe == 13) || (_currentframe == 16)) {
shake(0.4);
}
}
function stopRent() {
clearInterval(int);
clearInterval(show_int);
}
function shake(time) {
if (!time) {
time = 0.5;
}
var t = this;
gs.TweenMax.to(this, time, {_xscale:120, _yscale:120, onComplete:function () {
gs.TweenMax.to(t, time, {_xscale:100, _yscale:100, onComplete:function () {
}});
}});
}
function feeLost() {
clearInterval(int);
clearInterval(show_int);
show_int = setInterval(this, "showInt", _int + random(3000));
_parent.feeOut();
_visible = false;
gotoAndStop(1);
_xscale = 100;
_yscale = 100;
Main.bankCars[0].feeLost();
_parent.mark._visible = false;
}
var anim = false;
}
Symbol 839 MovieClip [__Packages.Tutorial] Frame 0
class Tutorial extends MovieClip
{
var inMc, _visible, gotoAndStop;
function Tutorial () {
super();
inMc = inMc;
}
function level1(where) {
if (Main.currentLevel != 1) {
return(undefined);
}
if ((level1Step == 0) && (where == "lot")) {
nextStep();
} else if ((level1Step == 1) && (where == "button")) {
nextStep();
} else if ((level1Step == 2) && (where == "buildTower")) {
nextStep();
} else if ((level1Step == 3) && (where == "buildingTowerFinished")) {
nextStep(true);
} else {
return(undefined);
}
level1Step++;
}
function level2(where) {
if (Main.currentLevel != 2) {
return(undefined);
}
if ((level2Step == 0) && (where == "hlot")) {
nextStep();
} else if ((level2Step == 1) && (where == "button")) {
nextStep();
} else if ((level2Step == 2) && (where == "buildHouse")) {
_visible = false;
} else {
return(undefined);
}
level2Step++;
}
function level3(where) {
if (Main.currentLevel != 3) {
return(undefined);
}
mx.behaviors.DepthControl.bringToFront(this);
if ((level3Step == 1) && (where == "inHouse")) {
nextStep();
} else if ((level3Step == 2) && (where == "inHouse")) {
nextStep();
} else if ((level3Step == 3) && (where == "rent")) {
_visible = true;
setStep(5);
Main.pause();
} else if ((level3Step == 4) && (where == "rentGet")) {
Main.unpause();
nextStep(true);
} else if ((level3Step == 5) && (where == "button")) {
nextStep();
} else if ((level3Step == 6) && (where == "repair")) {
_visible = false;
} else {
return(undefined);
}
level3Step++;
}
function level4(where) {
if (Main.currentLevel != 7) {
return(undefined);
}
trace(where);
if ((level4Step == 0) && (where == "time")) {
nextStep();
} else if ((level4Step == 1) && (where == "button")) {
nextStep();
} else if ((level4Step == 2) && (where == "upgrade")) {
nextStep(true);
} else {
return(undefined);
}
level4Step++;
}
function setStep(num) {
mx.behaviors.DepthControl.bringToFront(this);
inMc.gotoAndStop(num);
inMc._visible = true;
}
function nextStep(block) {
inMc.nextFrame();
inMc._visible = true;
mx.behaviors.DepthControl.bringToFront(this);
trace("step");
if (block) {
inMc.onRelease = function () {
Main.unpause();
if (this._parent._currentframe == this._totalframes) {
this._parent._visible = false;
} else {
this.nextFrame();
delete this.onRelease;
}
};
}
}
function selectLevelTutorial(num) {
_visible = true;
if (num == 1) {
gotoAndStop(1);
} else if (num == 2) {
gotoAndStop(2);
} else if (num == 3) {
gotoAndStop(3);
} else if (num == 7) {
gotoAndStop(4);
}
inMc = inMc;
inMc._visible = true;
if (num == 7) {
inMc._visible = false;
}
inMc.gotoAndStop(1);
}
var level1Step = 0;
var level2Step = 0;
var level3Step = 1;
var level4Step = 0;
}
Symbol 840 MovieClip [__Packages.CircleTimer] Frame 0
class CircleTimer extends MovieClip
{
var stop, type, gfx, fps, tim, _parent, removeMovieClip, gotoAndStop;
function CircleTimer () {
super();
stop();
}
function setTimer(_type, _fps) {
type = _type;
gfx.gotoAndStop(type + 1);
fps = _fps / 10;
tim = setInterval(this, "updTimer", 100);
}
function updTimer() {
if (Main.gamePaused) {
return(undefined);
}
counter = counter + Main.TICK_K;
var _local2 = counter * fps;
if (_local2 >= 100) {
Main.console("Action complete");
clearInterval(tim);
if (!_parent.timerComplete) {
Main.console("Error: timerComplete() not terminated");
} else {
_parent.timerComplete();
}
removeMovieClip();
} else {
gotoAndStop(_local2);
}
}
var counter = 0;
}
Symbol 841 MovieClip [__Packages.Map] Frame 0
class Map extends MovieClip
{
var menuButton, menu, playButton, playGame, m1, m2;
function Map () {
super();
Main.mapLevel = Main.getLevel();
menuButton = menu;
playButton = playGame;
var _local4;
var _local3 = 1;
while (_local3 <= 9) {
_local4 = this["p" + _local3];
_local4.num = _local3;
points.push(_local4);
points[_local3]._visible = true;
_local3++;
}
_local3 = 9;
while ((_local3--) > Main.mapLevel) {
if (Main.CAR_SPEED < 500) {
points[_local3]._visible = false;
}
}
m1.text = XMLMaster.getInterfaceTexts(5);
m2.text = XMLMaster.getInterfaceTexts(6);
dotClicked(Main.mapLevel);
menuButton.onRelease = function () {
Main.blackScreen(Main.destroyMap, 0, Main.createMainMenu, 0);
};
playButton.onRelease = function () {
Main.blackScreen(Main.selectLevel, this._parent.select, Main.destroyMap);
};
Main.console("Map created");
if (Helper.inArray(Main.getLevel(), Helper.GETFULLARRAY)) {
Main.getItScreen();
}
}
function dotClicked(num) {
if (select > -1) {
points[select - 1].gotoAndStop(1);
}
points[num - 1].gotoAndStop(2);
select = num;
}
var select = -1;
var points = [];
}
Symbol 842 MovieClip [__Packages.OptionsWindow] Frame 0
class OptionsWindow extends MovieClip
{
static var sndBar, musicBar;
var square, sndBar, musicBar, ok, m1, m2, m3, onLoad;
function OptionsWindow () {
super();
square = square;
square.onRelease = function () {
};
sndBar = sndBar;
musicBar = musicBar;
ok = ok;
m1.text = XMLMaster.getInterfaceTexts(3);
m2.text = XMLMaster.getInterfaceTexts(4);
m3.text = XMLMaster.getInterfaceTexts(76);
ok.onRelease = function () {
var _local2 = this._parent;
Main.soundVolume = _local2.sndBar.getResult();
Main.musicVolume = _local2.musicBar.getResult();
SoundMaster.updateVolume();
_local2.swapDepths(301);
_local2.removeMovieClip();
};
onLoad = function () {
OptionsWindow.sndBar.setProperty("soundVolume");
OptionsWindow.musicBar.setProperty("musicVolume");
SoundMaster.updateVolume();
};
}
}
Symbol 843 MovieClip [__Packages.SlideBar] Frame 0
class SlideBar extends MovieClip
{
var stop, width, _width, onPress, onRelease, onReleaseOutside, gotoAndStop, _currentframe, onEnterFrame;
function SlideBar () {
super();
stop();
width = _width;
onPress = function () {
this.addEnterFrameFunction();
};
onRelease = (onReleaseOutside = function () {
this.removeEnterFrameFunction();
});
}
function setProperty(s) {
my_property = s;
gotoAndStop(Main[s]);
}
function getResult() {
return(_currentframe);
}
function addEnterFrameFunction() {
if ((my_property = "")) {
return(undefined);
}
Mouse.hide();
onEnterFrame = function () {
var _local2 = (this._xmouse / this.width) * 100;
if (_local2 > 100) {
_local2 = 100;
} else if (_local2 < 0) {
_local2 = 0;
}
_local2 = Math.round(_local2);
this.gotoAndStop(_local2);
Main[this.my_property] = _local2;
Main.soundVolume = OptionsWindow.sndBar.getResult();
Main.musicVolume = OptionsWindow.musicBar.getResult();
SoundMaster.updateVolume();
};
}
function removeEnterFrameFunction() {
if ((my_property = "")) {
return(undefined);
}
Mouse.show();
delete onEnterFrame;
}
var my_property = "";
}
Symbol 844 MovieClip [__Packages.ConfirmWindow] Frame 0
class ConfirmWindow extends MovieClip
{
var m1, m2, m3, ok, abort, square;
function ConfirmWindow () {
super();
m1.text = XMLMaster.getInterfaceTexts(65);
m2.text = XMLMaster.getInterfaceTexts(66);
m3.text = XMLMaster.getInterfaceTexts(67);
ok.onRelease = function () {
trace((">>>>>>" + Helper.ONSTIESPAM) + "<<<<<<<");
this._parent._parent.doAction();
};
abort.onRelease = function () {
this._parent.swapDepths(301);
this._parent.removeMovieClip();
};
square.onRelease = function () {
};
}
}
Symbol 845 MovieClip [__Packages.MainMenu] Frame 0
class MainMenu extends MovieClip
{
var playGame, options, buyIt, buy, help, howTo, more, m1, m2, m3, m4;
function MainMenu () {
super();
Main.console("Main menu created");
Main.showAd = false;
playGame = playGame;
options = options;
buyIt = buy;
help = howTo;
more = more;
m1.text = XMLMaster.getInterfaceTexts(0);
m2.text = XMLMaster.getInterfaceTexts(1);
m3.text = XMLMaster.getInterfaceTexts(2);
m4.text = XMLMaster.getInterfaceTexts(77);
buyIt.onRelease = function () {
Main.getItScreen();
};
more.onRelease = function () {
this.getURL(Helper.MOREGAMES, "_blank");
};
help.onRelease = function () {
};
options.onRelease = function () {
this._parent.window = this._parent.attachMovie("optionsWindow", "windowows", 5);
};
playGame.onRelease = function () {
Main.blackScreen(Main.showMap, 0, Main.destroyMainMenu);
};
}
function destroyMenu() {
}
}
Symbol 846 MovieClip [__Packages.IngameMenu] Frame 0
class IngameMenu extends MovieClip
{
var m1, m2, m3, m4, m5, m6, buyIt, square, resume, restart, options, gotoMain, more;
function IngameMenu () {
super();
m1.text = XMLMaster.getInterfaceTexts(30);
m2.text = XMLMaster.getInterfaceTexts(1);
m3.text = XMLMaster.getInterfaceTexts(31);
m4.text = XMLMaster.getInterfaceTexts(64);
m5.text = XMLMaster.getInterfaceTexts(2);
m6.text = XMLMaster.getInterfaceTexts(77);
buyIt.onRelease = function () {
Main.getItScreen();
};
square.onRelease = function () {
};
resume.onRelease = function () {
Main.hideInGameMenu();
};
restart.onRelease = function () {
Main.action = "restart";
this._parent.attachMovie("confirmWindow", "confirmWindow", 5);
};
options.onRelease = function () {
this._parent.attachMovie("optionsWindow", "windowows", 5);
};
gotoMain.onRelease = function () {
Main.action = "main";
this._parent.attachMovie("confirmWindow", "confirmWindow", 5);
};
more.onRelease = function () {
this.getURL(Helper.MOREGAMES, "_blank");
};
}
function doAction() {
if (Main.action == "restart") {
Main.hideInGameMenu();
Main.destroyGame();
trace("RESTART");
Main.selectLevel(Main.currentLevel);
Main.action = "";
} else {
Main.unpause();
Main.hideInGameMenu();
Main.destroyGame();
Main.createMainMenu();
}
}
}
Symbol 398 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 _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.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 _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local2 = __width;
var _local3 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local2, oldHeight:_local3});
}
}
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 _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = createObject(className.symbolOwner.symbolName, id, depth, initobj);
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.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 _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
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 _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
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 399 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 400 MovieClip [__Packages.mx.core.View] Frame 0
class mx.core.View extends mx.core.UIComponent
{
var tabChildren, tabEnabled, boundingBox_mc, border_mc, __get__width, __get__height, __tabIndex, depth, createObject, createClassObject, loadExternal, destroyObject, createClassChildAtDepth, doLater;
function View () {
super();
}
function init() {
super.init();
tabChildren = true;
tabEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function size() {
border_mc.move(0, 0);
border_mc.setSize(__get__width(), __get__height());
doLayout();
}
function draw() {
size();
}
function get numChildren() {
var _local3 = childNameBase;
var _local2 = 0;
while (true) {
if (this[_local3 + _local2] == undefined) {
return(_local2);
}
_local2++;
}
}
function get tabIndex() {
return((tabEnabled ? (__tabIndex) : undefined));
}
function set tabIndex(n) {
__tabIndex = n;
//return(tabIndex);
}
function addLayoutObject(object) {
}
function createChild(className, instanceName, initProps) {
if (depth == undefined) {
depth = 1;
}
var _local2;
if (typeof(className) == "string") {
_local2 = createObject(className, instanceName, depth++, initProps);
} else {
_local2 = createClassObject(className, instanceName, depth++, initProps);
}
if (_local2 == undefined) {
_local2 = loadExternal(className, _loadExternalClass, instanceName, depth++, initProps);
} else {
this[childNameBase + numChildren] = _local2;
_local2._complete = true;
childLoaded(_local2);
}
addLayoutObject(_local2);
return(_local2);
}
function getChildAt(childIndex) {
return(this[childNameBase + childIndex]);
}
function destroyChildAt(childIndex) {
if (!((childIndex >= 0) && (childIndex < numChildren))) {
return(undefined);
}
var _local4 = childNameBase + childIndex;
var _local6 = numChildren;
var _local3;
for (_local3 in this) {
if (_local3 == _local4) {
_local4 = "";
destroyObject(_local3);
break;
}
}
var _local2 = Number(childIndex);
while (_local2 < (_local6 - 1)) {
this[childNameBase + _local2] = this[childNameBase + (_local2 + 1)];
_local2++;
}
delete this[childNameBase + (_local6 - 1)];
depth--;
}
function initLayout() {
if (!hasBeenLayedOut) {
doLayout();
}
}
function doLayout() {
hasBeenLayedOut = true;
}
function createChildren() {
if (border_mc == undefined) {
border_mc = createClassChildAtDepth(_global.styles.rectBorderClass, mx.managers.DepthManager.kBottom, {styleName:this});
}
doLater(this, "initLayout");
}
function convertToUIObject(obj) {
}
function childLoaded(obj) {
convertToUIObject(obj);
}
static function extension() {
mx.core.ExternalContent.enableExternalContent();
}
static var symbolName = "View";
static var symbolOwner = mx.core.View;
static var version = "2.0.2.127";
var className = "View";
static var childNameBase = "_child";
var hasBeenLayedOut = false;
var _loadExternalClass = "UIComponent";
}
Symbol 401 MovieClip [__Packages.mx.core.ScrollView] Frame 0
class mx.core.ScrollView extends mx.core.View
{
var __width, hScroller, vScroller, __maxHPosition, propsInited, scrollAreaChanged, specialHScrollCase, createObject, viewableColumns, __height, oldRndUp, viewableRows, __viewMetrics, owner, enabled, border_mc, __get__width, __get__height, invLayout, mask_mc, _parent, dispatchEvent;
function ScrollView () {
super();
}
function getHScrollPolicy(Void) {
return(__hScrollPolicy);
}
function setHScrollPolicy(policy) {
__hScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get hScrollPolicy() {
return(getHScrollPolicy());
}
function set hScrollPolicy(policy) {
setHScrollPolicy(policy);
//return(hScrollPolicy);
}
function getVScrollPolicy(Void) {
return(__vScrollPolicy);
}
function setVScrollPolicy(policy) {
__vScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get vScrollPolicy() {
return(getVScrollPolicy());
}
function set vScrollPolicy(policy) {
setVScrollPolicy(policy);
//return(vScrollPolicy);
}
function get hPosition() {
return(getHPosition());
}
function set hPosition(pos) {
setHPosition(pos);
//return(hPosition);
}
function getHPosition(Void) {
return(__hPosition);
}
function setHPosition(pos) {
hScroller.__set__scrollPosition(pos);
__hPosition = pos;
}
function get vPosition() {
return(getVPosition());
}
function set vPosition(pos) {
setVPosition(pos);
//return(vPosition);
}
function getVPosition(Void) {
return(__vPosition);
}
function setVPosition(pos) {
vScroller.__set__scrollPosition(pos);
__vPosition = pos;
}
function get maxVPosition() {
var _local2 = vScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function get maxHPosition() {
return(getMaxHPosition());
}
function set maxHPosition(pos) {
setMaxHPosition(pos);
//return(maxHPosition);
}
function getMaxHPosition(Void) {
if (__maxHPosition != undefined) {
return(__maxHPosition);
}
var _local2 = hScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function setMaxHPosition(pos) {
__maxHPosition = pos;
}
function setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) {
var _local3 = getViewMetrics();
if (hPadding == undefined) {
hPadding = 0;
}
if (wPadding == undefined) {
wPadding = 0;
}
propsInited = true;
delete scrollAreaChanged;
heightPadding = hPadding;
widthPadding = wPadding;
if (colWidth == 0) {
colWidth = 1;
}
if (rwHeight == 0) {
rwHeight = 1;
}
var _local5 = Math.ceil((((__width - _local3.left) - _local3.right) - widthPadding) / colWidth);
if ((__hScrollPolicy == "on") || ((_local5 < colCount) && (__hScrollPolicy == "auto"))) {
if ((hScroller == undefined) || (specialHScrollCase)) {
delete specialHScrollCase;
hScroller = createObject("HScrollBar", "hSB", 1001);
hScroller.__set__lineScrollSize(20);
hScroller.scrollHandler = scrollProxy;
hScroller.__set__scrollPosition(__hPosition);
scrollAreaChanged = true;
}
if ((((numberOfCols != colCount) || (columnWidth != colWidth)) || (viewableColumns != _local5)) || (scrollAreaChanged)) {
hScroller.setScrollProperties(_local5, 0, colCount - _local5);
viewableColumns = _local5;
numberOfCols = colCount;
columnWidth = colWidth;
}
} else if (((__hScrollPolicy == "auto") || (__hScrollPolicy == "off")) && (hScroller != undefined)) {
hScroller.removeMovieClip();
delete hScroller;
scrollAreaChanged = true;
}
if (heightPadding == undefined) {
heightPadding = 0;
}
var _local4 = Math.ceil((((__height - _local3.top) - _local3.bottom) - heightPadding) / rwHeight);
var _local8 = (((__height - _local3.top) - _local3.bottom) % rwHeight) != 0;
if ((__vScrollPolicy == "on") || ((_local4 < (rwCount + _local8)) && (__vScrollPolicy == "auto"))) {
if (vScroller == undefined) {
vScroller = createObject("VScrollBar", "vSB", 1002);
vScroller.scrollHandler = scrollProxy;
vScroller.__set__scrollPosition(__vPosition);
scrollAreaChanged = true;
rowH = 0;
}
if ((((rowC != rwCount) || (rowH != rwHeight)) || ((viewableRows + _local8) != (_local4 + oldRndUp))) || (scrollAreaChanged)) {
vScroller.setScrollProperties(_local4, 0, (rwCount - _local4) + _local8);
viewableRows = _local4;
rowC = rwCount;
rowH = rwHeight;
oldRndUp = _local8;
}
} else if (((__vScrollPolicy == "auto") || (__vScrollPolicy == "off")) && (vScroller != undefined)) {
vScroller.removeMovieClip();
delete vScroller;
scrollAreaChanged = true;
}
numberOfCols = colCount;
columnWidth = colWidth;
if (scrollAreaChanged) {
doLayout();
var _local2 = __viewMetrics;
var _local12 = ((owner != undefined) ? (owner) : this);
_local12.layoutContent(_local2.left, _local2.top, ((columnWidth * numberOfCols) - _local2.left) - _local2.right, rowC * rowH, (__width - _local2.left) - _local2.right, (__height - _local2.top) - _local2.bottom);
}
if (!enabled) {
setEnabled(false);
}
}
function getViewMetrics(Void) {
var _local2 = __viewMetrics;
var _local3 = border_mc.__get__borderMetrics();
_local2.left = _local3.left;
_local2.right = _local3.right;
if (vScroller != undefined) {
_local2.right = _local2.right + vScroller.minWidth;
}
_local2.top = _local3.top;
if ((hScroller == undefined) && ((__hScrollPolicy == "on") || (__hScrollPolicy == true))) {
hScroller = createObject("FHScrollBar", "hSB", 1001);
specialHScrollCase = true;
}
_local2.bottom = _local3.bottom;
if (hScroller != undefined) {
_local2.bottom = _local2.bottom + hScroller.minHeight;
}
return(_local2);
}
function doLayout(Void) {
var _local10 = __get__width();
var _local8 = __get__height();
delete invLayout;
var _local3 = (__viewMetrics = getViewMetrics());
var _local2 = _local3.left;
var _local9 = _local3.right;
var _local5 = _local3.top;
var _local11 = _local3.bottom;
var _local7 = hScroller;
var _local6 = vScroller;
_local7.setSize((_local10 - _local2) - _local9, _local7.minHeight + 0);
_local7.move(_local2, _local8 - _local11);
_local6.setSize(_local6.minWidth + 0, (_local8 - _local5) - _local11);
_local6.move(_local10 - _local9, _local5);
var _local4 = mask_mc;
_local4._width = (_local10 - _local2) - _local9;
_local4._height = (_local8 - _local5) - _local11;
_local4._x = _local2;
_local4._y = _local5;
}
function createChild(id, name, props) {
var _local2 = super.createChild(id, name, props);
return(_local2);
}
function init(Void) {
super.init();
__viewMetrics = new Object();
if (_global.__SVMouseWheelManager == undefined) {
var _local4 = (_global.__SVMouseWheelManager = new Object());
_local4.onMouseWheel = __onMouseWheel;
Mouse.addListener(_local4);
}
}
function __onMouseWheel(delta, scrollTarget) {
var _local4 = scrollTarget;
var _local1;
while (_local4 != undefined) {
if (_local4 instanceof mx.core.ScrollView) {
_local1 = _local4;
}
_local4 = _local4._parent;
}
if (_local1 != undefined) {
_local4 = ((delta <= 0) ? 1 : -1);
var _local2 = _local1.vScroller.lineScrollSize;
if (_local2 == undefined) {
_local2 = 0;
}
_local2 = Math.max(Math.abs(delta), _local2);
var _local3 = _local1.vPosition + (_local2 * _local4);
_local1.vPosition = Math.max(0, Math.min(_local3, _local1.maxVPosition));
_local1.dispatchEvent({type:"scroll", direction:"vertical", position:_local1.vPosition});
}
}
function createChildren(Void) {
super.createChildren();
if (mask_mc == undefined) {
mask_mc = createObject("BoundingBox", "mask_mc", MASK_DEPTH);
}
mask_mc._visible = false;
}
function invalidate(Void) {
super.invalidate();
}
function draw(Void) {
size();
}
function size(Void) {
super.size();
}
function scrollProxy(docObj) {
_parent.onScroll(docObj);
}
function onScroll(docObj) {
var _local3 = docObj.target;
var _local2 = _local3.scrollPosition;
if (_local3 == vScroller) {
var _local4 = "vertical";
var _local5 = "__vPosition";
} else {
var _local4 = "horizontal";
var _local5 = "__hPosition";
}
this[_local5] = _local2;
dispatchEvent({type:"scroll", direction:_local4, position:_local2});
}
function setEnabled(v) {
vScroller.enabled = (hScroller.enabled = v);
}
function childLoaded(obj) {
super.childLoaded(obj);
obj.setMask(mask_mc);
}
static var symbolName = "ScrollView";
static var symbolOwner = mx.core.ScrollView;
static var version = "2.0.2.127";
var className = "ScrollView";
var __vScrollPolicy = "auto";
var __hScrollPolicy = "off";
var __vPosition = 0;
var __hPosition = 0;
var numberOfCols = 0;
var rowC = 0;
var columnWidth = 1;
var rowH = 0;
var heightPadding = 0;
var widthPadding = 0;
var MASK_DEPTH = 10000;
}
Symbol 402 MovieClip [__Packages.mx.controls.TextArea] Frame 0
class mx.controls.TextArea extends mx.core.ScrollView
{
var label, invalidate, initText, dispatchValueChangedEvent, getHPosition, setHPosition, getVPosition, setVPosition, _color, focusTextField, tfx, tfy, tfw, tfh, doLater, _vpos, _hpos, hookedV, vScroller, hookedH, hScroller, getViewMetrics, __get__width, __get__height, hScrollPolicy, vScrollPolicy, getStyle, getFocusManager, addEventListener, removeEventListener, _getTextFormat;
function TextArea () {
super();
}
function get maxChars() {
return(label.maxChars);
}
function set maxChars(x) {
label.maxChars = x;
//return(maxChars);
}
function get length() {
return(label.length);
}
function get restrict() {
return(label.restrict);
}
function set restrict(s) {
label.restrict = ((s == "") ? null : (s));
//return(restrict);
}
function get wordWrap() {
return(label.wordWrap);
}
function set wordWrap(s) {
label.wordWrap = s;
invalidate();
//return(wordWrap);
}
function get editable() {
return(__editable);
}
function set editable(x) {
__editable = x;
label.type = (x ? "input" : "dynamic");
//return(editable);
}
function get password() {
return(label.password);
}
function set password(s) {
label.password = s;
//return(password);
}
function get html() {
return(getHtml());
}
function set html(value) {
setHtml(value);
//return(html);
}
function getHtml() {
return(label.html);
}
function setHtml(value) {
if (value != label.html) {
label.html = value;
}
}
function get text() {
return(getText());
}
function set text(t) {
setText(t);
//return(text);
}
function getText() {
if (initializing) {
return(initText);
}
var _local2 = label;
if (_local2.html == true) {
return(_local2.htmlText);
}
return(_local2.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = label;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
invalidate();
}
dispatchValueChangedEvent(t);
}
function get hPosition() {
return(getHPosition());
}
function set hPosition(pos) {
setHPosition(pos);
label.hscroll = pos;
label.background = false;
//return(hPosition);
}
function get vPosition() {
return(getVPosition());
}
function set vPosition(pos) {
setVPosition(pos);
label.scroll = pos + 1;
label.background = false;
//return(vPosition);
}
function get maxVPosition() {
var _local2 = label.maxscroll - 1;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function get maxHPosition() {
var _local2 = label.maxhscroll;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function init(Void) {
super.init();
label.styleName = this;
_color = mx.core.UIObject.textColorList;
focusTextField = label;
label.owner = this;
label.onSetFocus = function (x) {
this._parent.onSetFocus(x);
};
label.onKillFocus = function (x) {
this._parent.onKillFocus(x);
};
label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
label.onChanged = function () {
this.owner.adjustScrollBars();
this.owner.dispatchEvent({type:"change"});
this.owner.dispatchValueChangedEvent(this.owner.text);
};
label.onScroller = function () {
this.owner.hPosition = this.hscroll;
this.owner.vPosition = this.scroll - 1;
};
if (text == undefined) {
text = ("");
}
}
function createChildren(Void) {
super.createChildren();
label.autoSize = "none";
}
function layoutContent(x, y, totalW, totalH, displayW, displayH) {
var _local2 = label;
if ((((tfx != x) || (tfy != y)) || (tfw != displayW)) || (tfh != displayH)) {
tfx = x;
tfy = y;
tfw = displayW;
tfh = displayH;
_local2.move(tfx, tfy);
_local2.setSize(tfw, tfh);
doLater(this, "adjustScrollBars");
}
}
function scrollChanged(Void) {
var _local2 = Selection;
if (_local2.lastBeginIndex != undefined) {
restoreSelection();
}
label.background = false;
}
function onScroll(docObj) {
var _local3 = label;
super.onScroll(docObj);
_local3.hscroll = hPosition + 0;
_local3.scroll = vPosition + 1;
_vpos = _local3.scroll;
_hpos = _local3.hscroll;
_local3.background = false;
if (hookedV != true) {
vScroller.addEventListener("scrollChanged", this);
hookedV = true;
}
if (hookedH != true) {
hScroller.addEventListener("scrollChanged", this);
hookedH = true;
}
}
function size(Void) {
var _local3 = getViewMetrics();
var _local7 = _local3.left + _local3.right;
var _local4 = _local3.top + _local3.bottom;
var _local6 = _local3.left;
var _local5 = _local3.top;
tfx = _local6;
tfy = _local5;
tfw = __get__width() - _local7;
tfh = __get__height() - _local4;
super.size();
label.move(tfx, tfy);
label.setSize(tfw, tfh);
if (__get__height() <= 40) {
hScrollPolicy = "off";
vScrollPolicy = "off";
}
doLater(this, "adjustScrollBars");
}
function setEnabled(enable) {
vScroller.enabled = enable;
hScroller.enabled = enable;
label.type = (((editable == false) || (enable == false)) ? "dynamic" : "input");
label.selectable = enable;
var _local3 = getStyle((enable ? "color" : "disabledColor"));
if (_local3 == undefined) {
_local3 = (enable ? 0 : 8947848);
}
setColor(_local3);
}
function setColor(col) {
label.textColor = col;
}
function setFocus(Void) {
Selection.setFocus(label);
}
function onSetFocus(x) {
var f = Selection.getFocus();
var o = eval (f);
if (o != label) {
Selection.setFocus(label);
return(undefined);
}
getFocusManager().defaultPushButtonEnabled = false;
addEventListener("keyDown", this);
super.onSetFocus(x);
}
function onKillFocus(x) {
getFocusManager().defaultPushButtonEnabled = true;
removeEventListener("keyDown", this);
super.onKillFocus(x);
}
function restoreSelection(x) {
var _local2 = Selection;
Selection.setSelection(_local2.lastBeginIndex, _local2.lastEndIndex);
label.scroll = _vpos;
label.hscroll = _hpos;
}
function getLineOffsets(Void) {
var _local16 = _getTextFormat();
var _local18 = _local16.getTextExtent2(label.text);
var _local5 = _root._getTextExtent;
_local5.setNewTextFormat(_local16);
var _local14 = label.wordWrap;
var _local9 = 0;
var _local7 = (label._width - 2) - 2;
var _local12 = new Array();
var _local17 = new String(label.text);
var _local15 = _local17.split("\r");
var _local11 = 0;
while (_local11 < _local15.length) {
_local12.push(_local9);
var _local4 = _local15[_local11];
_local5.text = _local4;
var _local13 = Math.ceil(_local5.textWidth / _local7);
var _local10 = Math.floor(_local4.length / _local13);
var _local3;
while (_local14 && (_local5.textWidth > _local7)) {
_local3 = _local4.indexOf(" ", _local10);
var _local6;
if (_local3 == -1) {
_local3 = _local4.lastIndexOf(" ");
if (_local3 == -1) {
_local3 = _local10;
}
}
_local6 = _local4.substr(0, _local3);
_local5.text = _local6;
if (_local5.textWidth > _local7) {
while (_local5.textWidth > _local7) {
var _local8 = _local3;
_local3 = _local4.lastIndexOf(" ", _local3 - 1);
if (_local3 == -1) {
_local3 = _local8 - 1;
}
_local6 = _local4.substr(0, _local3);
_local5.text = _local6;
}
} else if (_local5.textWidth < _local7) {
var _local8 = _local3;
while (_local5.textWidth < _local7) {
_local8 = _local3;
_local3 = _local4.indexOf(" ", _local3 + 1);
if (_local3 == -1) {
if (_local4.indexOf(" ", 0) != -1) {
break;
}
_local3 = _local8 + 1;
}
_local6 = _local4.substr(0, _local3);
_local5.text = _local6;
}
_local3 = _local8;
}
_local9 = _local9 + _local3;
_local12.push(_local9 + 1);
_local4 = _local4.substr(_local3);
if (_local4.charAt(0) == " ") {
_local4 = _local4.substr(1, _local4.length - 1);
_local9 = _local9 + 1;
}
_local5.text = _local4;
}
_local9 = _local9 + (_local4.length + 1);
_local11++;
}
return(_local12);
}
function keyDown(e) {
var _local5 = e.code;
if (_local5 == 34) {
var _local6 = (label.bottomScroll - label.scroll) + 1;
var _local3 = getLineOffsets();
var _local2 = Math.min(label.bottomScroll + 1, label.maxscroll);
if (_local2 == label.maxscroll) {
var _local4 = label.length;
Selection.setSelection(_local4, _local4);
} else {
label.scroll = _local2;
Selection.setSelection(_local3[_local2 - 1], _local3[_local2 - 1]);
}
} else if (_local5 == 33) {
var _local6 = (label.bottomScroll - label.scroll) + 1;
var _local3 = getLineOffsets();
var _local2 = label.scroll - 1;
if (_local2 < 1) {
Selection.setSelection(0, 0);
} else {
Selection.setSelection(_local3[_local2 - 1], _local3[_local2 - 1]);
label.scroll = Math.max(_local2 - _local6, 1);
}
}
}
function draw(Void) {
var _local2 = label;
var _local4 = getText();
if (initializing) {
initializing = false;
delete initText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
_local2.multiline = true;
_local2.wordWrap = wordWrap == true;
if (_local2.html == true) {
_local2.setTextFormat(_local3);
_local2.htmlText = _local4;
} else {
_local2.text = _local4;
}
_local2.type = ((editable == true) ? "input" : "dynamic");
size();
_local2.background = false;
}
function adjustScrollBars() {
var _local2 = label;
var _local4 = (_local2.bottomScroll - _local2.scroll) + 1;
var _local3 = (_local4 + _local2.maxscroll) - 1;
if (_local3 < 1) {
_local3 = 1;
}
var _local5 = 0;
if ((_local2.textWidth + 5) > _local2._width) {
if (!_local2.wordWrap) {
_local5 = _local2._width + _local2.maxhscroll;
}
} else {
_local2.hscroll = 0;
_local2.background = false;
}
if ((_local2.height / _local4) != Math.round(_local2.height / _local4)) {
_local3--;
}
setScrollProperties(_local5, 1, _local3, _local2.height / _local4);
}
function setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) {
super.setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding);
if (vScroller == undefined) {
hookedV = false;
}
if (hScroller == undefined) {
hookedH = false;
}
}
function get tabIndex() {
return(label.tabIndex);
}
function set tabIndex(w) {
label.tabIndex = w;
//return(tabIndex);
}
function set _accProps(val) {
label._accProps = val;
//return(_accProps);
}
function get _accProps() {
return(label._accProps);
}
function get styleSheet() {
return(label.styleSheet);
}
function set styleSheet(v) {
label.styleSheet = v;
//return(styleSheet);
}
static var symbolName = "TextArea";
static var symbolOwner = mx.controls.TextArea;
static var version = "2.0.2.127";
var className = "TextArea";
var initializing = true;
var clipParameters = {text:1, wordWrap:1, editable:1, maxChars:1, restrict:1, html:1, password:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextArea.prototype.clipParameters, mx.core.ScrollView.prototype.clipParameters);
var __vScrollPolicy = "auto";
var __hScrollPolicy = "auto";
var __editable = true;
}
Symbol 497 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 498 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 499 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 500 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
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 501 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject
{
function Border () {
super();
}
function init(Void) {
super.init();
}
static var symbolName = "Border";
static var symbolOwner = mx.skins.Border;
var className = "Border";
var tagBorder = 0;
var idNames = new Array("border_mc");
}
Symbol 502 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height, offset, __borderMetrics;
function RectBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function draw(Void) {
size();
}
function getBorderMetrics(Void) {
var _local2 = offset;
if (__borderMetrics == undefined) {
__borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2};
} else {
__borderMetrics.left = _local2;
__borderMetrics.top = _local2;
__borderMetrics.right = _local2;
__borderMetrics.bottom = _local2;
}
return(__borderMetrics);
}
function get borderMetrics() {
return(getBorderMetrics());
}
function drawBorder(Void) {
}
function size(Void) {
drawBorder();
}
function setColor(Void) {
drawBorder();
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.RectBorder;
static var version = "2.0.2.127";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 503 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 504 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
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 _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.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 _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 505 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 506 MovieClip [__Packages.mx.core.ExternalContent] Frame 0
class mx.core.ExternalContent
{
var createObject, numChildren, prepList, doLater, loadList, dispatchEvent, loadedList, childLoaded;
function ExternalContent () {
}
function loadExternal(url, placeholderClassName, instanceName, depth, initProps) {
var _local2;
_local2 = createObject(placeholderClassName, instanceName, depth, initProps);
this[mx.core.View.childNameBase + numChildren] = _local2;
if (prepList == undefined) {
prepList = new Object();
}
prepList[instanceName] = {obj:_local2, url:url, complete:false, initProps:initProps};
prepareToLoadMovie(_local2);
return(_local2);
}
function prepareToLoadMovie(obj) {
obj.unloadMovie();
doLater(this, "waitForUnload");
}
function waitForUnload() {
var _local3;
for (_local3 in prepList) {
var _local2 = prepList[_local3];
if (_local2.obj.getBytesTotal() == 0) {
if (loadList == undefined) {
loadList = new Object();
}
loadList[_local3] = _local2;
_local2.obj.loadMovie(_local2.url);
delete prepList[_local3];
doLater(this, "checkLoadProgress");
} else {
doLater(this, "waitForUnload");
}
}
}
function checkLoadProgress() {
var _local8 = false;
var _local3;
for (_local3 in loadList) {
var _local2 = loadList[_local3];
_local2.loaded = _local2.obj.getBytesLoaded();
_local2.total = _local2.obj.getBytesTotal();
if (_local2.total > 0) {
_local2.obj._visible = false;
dispatchEvent({type:"progress", target:_local2.obj, current:_local2.loaded, total:_local2.total});
if (_local2.loaded == _local2.total) {
if (loadedList == undefined) {
loadedList = new Object();
}
loadedList[_local3] = _local2;
delete loadList[_local3];
doLater(this, "contentLoaded");
}
} else if (_local2.total == -1) {
if (_local2.failedOnce != undefined) {
_local2.failedOnce++;
if (_local2.failedOnce > 3) {
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadList[_local3];
}
} else {
_local2.failedOnce = 0;
}
}
_local8 = true;
}
if (_local8) {
doLater(this, "checkLoadProgress");
}
}
function contentLoaded() {
var _local4;
for (_local4 in loadedList) {
var _local2 = loadedList[_local4];
_local2.obj._visible = true;
_local2.obj._complete = true;
var _local3;
for (_local3 in _local2.initProps) {
_local2.obj[_local3] = _local2.initProps[_local3];
}
childLoaded(_local2.obj);
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadedList[_local4];
}
}
function convertToUIObject(obj) {
if (obj.setSize == undefined) {
var _local2 = mx.core.UIObject.prototype;
obj.addProperty("width", _local2.__get__width, null);
obj.addProperty("height", _local2.__get__height, null);
obj.addProperty("left", _local2.__get__left, null);
obj.addProperty("x", _local2.__get__x, null);
obj.addProperty("top", _local2.__get__top, null);
obj.addProperty("y", _local2.__get__y, null);
obj.addProperty("right", _local2.__get__right, null);
obj.addProperty("bottom", _local2.__get__bottom, null);
obj.addProperty("visible", _local2.__get__visible, _local2.__set__visible);
obj.move = mx.core.UIObject.prototype.move;
obj.setSize = mx.core.UIObject.prototype.setSize;
obj.size = mx.core.UIObject.prototype.size;
mx.events.UIEventDispatcher.initialize(obj);
}
}
static function enableExternalContent() {
}
static function classConstruct() {
var _local1 = mx.core.View.prototype;
var _local2 = mx.core.ExternalContent.prototype;
_local1.loadExternal = _local2.loadExternal;
_local1.prepareToLoadMovie = _local2.prepareToLoadMovie;
_local1.waitForUnload = _local2.waitForUnload;
_local1.checkLoadProgress = _local2.checkLoadProgress;
_local1.contentLoaded = _local2.contentLoaded;
_local1.convertToUIObject = _local2.convertToUIObject;
return(true);
}
static var classConstructed = classConstruct();
static var ViewDependency = mx.core.View;
}
Symbol 507 MovieClip [__Packages.mx.skins.CustomBorder] Frame 0
class mx.skins.CustomBorder extends mx.skins.Border
{
var __width, __height, l_mc, setSkin, minHeight, minWidth, m_mc, r_mc;
function CustomBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function createChildren(Void) {
}
function draw(Void) {
if (l_mc == undefined) {
var _local2 = setSkin(tagL, leftSkin);
if (horizontal) {
minHeight = l_mc._height;
minWidth = l_mc._width;
} else {
minHeight = l_mc._height;
minWidth = l_mc._width;
}
}
if (m_mc == undefined) {
setSkin(tagM, middleSkin);
if (horizontal) {
minHeight = m_mc._height;
minWidth = minWidth + m_mc._width;
} else {
minHeight = minHeight + m_mc._height;
minWidth = m_mc._width;
}
}
if (r_mc == undefined) {
setSkin(tagR, rightSkin);
if (horizontal) {
minHeight = r_mc._height;
minWidth = minWidth + r_mc._width;
} else {
minHeight = minHeight + r_mc._height;
minWidth = r_mc._width;
}
}
size();
}
function size(Void) {
l_mc.move(0, 0);
if (horizontal) {
r_mc.move(width - r_mc.width, 0);
m_mc.move(l_mc.width, 0);
m_mc.setSize(r_mc.x - m_mc.x, m_mc.height);
} else {
r_mc.move(0, height - r_mc.height, 0);
m_mc.move(0, l_mc.height);
m_mc.setSize(m_mc.width, r_mc.y - m_mc.y);
}
}
static var symbolName = "CustomBorder";
static var symbolOwner = mx.skins.CustomBorder;
static var version = "2.0.2.127";
var className = "CustomBorder";
static var tagL = 0;
static var tagM = 1;
static var tagR = 2;
var idNames = new Array("l_mc", "m_mc", "r_mc");
var leftSkin = "F3PieceLeft";
var middleSkin = "F3PieceMiddle";
var rightSkin = "F3PieceRight";
var horizontal = true;
}
Symbol 508 MovieClip [__Packages.mx.controls.scrollClasses.ScrollThumb] Frame 0
class mx.controls.scrollClasses.ScrollThumb extends mx.skins.CustomBorder
{
var useHandCursor, ymin, ymax, datamin, datamax, scrollMove, lastY, _ymouse, _y, _parent, onMouseMove, grip_mc, setSkin, gripSkin, __get__width, __get__height;
function ScrollThumb () {
super();
}
function createChildren(Void) {
super.createChildren();
useHandCursor = false;
}
function setRange(_ymin, _ymax, _datamin, _datamax) {
ymin = _ymin;
ymax = _ymax;
datamin = _datamin;
datamax = _datamax;
}
function dragThumb(Void) {
scrollMove = _ymouse - lastY;
scrollMove = scrollMove + _y;
if (scrollMove < ymin) {
scrollMove = ymin;
} else if (scrollMove > ymax) {
scrollMove = ymax;
}
_parent.isScrolling = true;
_y = scrollMove;
var _local2 = Math.round(((datamax - datamin) * (_y - ymin)) / (ymax - ymin)) + datamin;
_parent.scrollPosition = _local2;
_parent.dispatchScrollEvent("ThumbTrack");
updateAfterEvent();
}
function stopDragThumb(Void) {
_parent.isScrolling = false;
_parent.dispatchScrollEvent("ThumbPosition");
_parent.dispatchScrollChangedEvent();
delete onMouseMove;
}
function onPress(Void) {
_parent.pressFocus();
lastY = _ymouse;
onMouseMove = dragThumb;
super.onPress();
}
function onRelease(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onRelease();
}
function onReleaseOutside(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onReleaseOutside();
}
function draw() {
super.draw();
if (grip_mc == undefined) {
setSkin(3, gripSkin);
}
}
function size() {
super.size();
grip_mc.move((__get__width() - grip_mc.width) / 2, (__get__height() - grip_mc.height) / 2);
}
static var symbolOwner = mx.skins.CustomBorder.symbolOwner;
var className = "ScrollThumb";
var btnOffset = 0;
var horizontal = false;
var idNames = new Array("l_mc", "m_mc", "r_mc", "grip_mc");
}
Symbol 509 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 510 MovieClip [__Packages.mx.controls.scrollClasses.ScrollBar] Frame 0
class mx.controls.scrollClasses.ScrollBar extends mx.core.UIComponent
{
var isScrolling, scrollTrack_mc, scrollThumb_mc, __height, tabEnabled, focusEnabled, boundingBox_mc, setSkin, upArrow_mc, _minHeight, _minWidth, downArrow_mc, createObject, createClassObject, enabled, _height, dispatchEvent, minMode, maxMode, plusMode, minusMode, _parent, getStyle, scrolling, _ymouse;
function ScrollBar () {
super();
}
function get scrollPosition() {
return(_scrollPosition);
}
function set scrollPosition(pos) {
_scrollPosition = pos;
if (isScrolling != true) {
pos = Math.min(pos, maxPos);
pos = Math.max(pos, minPos);
var _local3 = (((pos - minPos) * (scrollTrack_mc.height - scrollThumb_mc._height)) / (maxPos - minPos)) + scrollTrack_mc.top;
scrollThumb_mc.move(0, _local3);
}
//return(scrollPosition);
}
function get pageScrollSize() {
return(largeScroll);
}
function set pageScrollSize(lScroll) {
largeScroll = lScroll;
//return(pageScrollSize);
}
function set lineScrollSize(sScroll) {
smallScroll = sScroll;
//return(lineScrollSize);
}
function get lineScrollSize() {
return(smallScroll);
}
function get virtualHeight() {
return(__height);
}
function init(Void) {
super.init();
_scrollPosition = 0;
tabEnabled = false;
focusEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function createChildren(Void) {
if (scrollTrack_mc == undefined) {
setSkin(skinIDTrack, scrollTrackName);
}
scrollTrack_mc.visible = false;
var _local3 = new Object();
_local3.enabled = false;
_local3.preset = mx.controls.SimpleButton.falseDisabled;
_local3.initProperties = 0;
_local3.autoRepeat = true;
_local3.tabEnabled = false;
var _local2;
if (upArrow_mc == undefined) {
_local2 = createButton(upArrowName, "upArrow_mc", skinIDUpArrow, _local3);
}
_local2.buttonDownHandler = onUpArrow;
_local2.clickHandler = onScrollChanged;
_minHeight = _local2.height;
_minWidth = _local2.width;
if (downArrow_mc == undefined) {
_local2 = createButton(downArrowName, "downArrow_mc", skinIDDownArrow, _local3);
}
_local2.buttonDownHandler = onDownArrow;
_local2.clickHandler = onScrollChanged;
_minHeight = _minHeight + _local2.height;
}
function createButton(linkageName, id, skinID, o) {
if (skinID == skinIDUpArrow) {
o.falseUpSkin = upArrowUpName;
o.falseDownSkin = upArrowDownName;
o.falseOverSkin = upArrowOverName;
} else {
o.falseUpSkin = downArrowUpName;
o.falseDownSkin = downArrowDownName;
o.falseOverSkin = downArrowOverName;
}
var _local3 = createObject(linkageName, id, skinID, o);
this[id].visible = false;
this[id].useHandCursor = false;
return(_local3);
}
function createThumb(Void) {
var _local2 = new Object();
_local2.validateNow = true;
_local2.tabEnabled = false;
_local2.leftSkin = thumbTopName;
_local2.middleSkin = thumbMiddleName;
_local2.rightSkin = thumbBottomName;
_local2.gripSkin = thumbGripName;
createClassObject(mx.controls.scrollClasses.ScrollThumb, "scrollThumb_mc", skinIDThumb, _local2);
}
function setScrollProperties(pSize, mnPos, mxPos, ls) {
var _local4;
var _local2 = scrollTrack_mc;
pageSize = pSize;
largeScroll = (((ls != undefined) && (ls > 0)) ? (ls) : (pSize));
minPos = Math.max(mnPos, 0);
maxPos = Math.max(mxPos, 0);
_scrollPosition = Math.max(minPos, _scrollPosition);
_scrollPosition = Math.min(maxPos, _scrollPosition);
if (((maxPos - minPos) > 0) && (enabled)) {
var _local5 = _scrollPosition;
if (!initializing) {
upArrow_mc.enabled = true;
downArrow_mc.enabled = true;
}
_local2.onPress = (_local2.onDragOver = startTrackScroller);
_local2.onRelease = releaseScrolling;
_local2.onDragOut = (_local2.stopScrolling = stopScrolling);
_local2.onReleaseOutside = releaseScrolling;
_local2.useHandCursor = false;
if (scrollThumb_mc == undefined) {
createThumb();
}
var _local3 = scrollThumb_mc;
if (scrollTrackOverName.length > 0) {
_local2.onRollOver = trackOver;
_local2.onRollOut = trackOut;
}
_local4 = (pageSize / ((maxPos - minPos) + pageSize)) * _local2.height;
if (_local4 < _local3.minHeight) {
if (_local2.height < _local3.minHeight) {
_local3.__set__visible(false);
} else {
_local4 = _local3.minHeight;
_local3.__set__visible(true);
_local3.setSize(_minWidth, _local3.minHeight + 0);
}
} else {
_local3.__set__visible(true);
_local3.setSize(_minWidth, _local4);
}
_local3.setRange(upArrow_mc.__get__height() + 0, (virtualHeight - downArrow_mc.__get__height()) - _local3.__get__height(), minPos, maxPos);
_local5 = Math.min(_local5, maxPos);
scrollPosition = (Math.max(_local5, minPos));
} else {
scrollThumb_mc.__set__visible(false);
if (!initializing) {
upArrow_mc.enabled = false;
downArrow_mc.enabled = false;
}
delete _local2.onPress;
delete _local2.onDragOver;
delete _local2.onRelease;
delete _local2.onDragOut;
delete _local2.onRollOver;
delete _local2.onRollOut;
delete _local2.onReleaseOutside;
}
if (initializing) {
scrollThumb_mc.__set__visible(false);
}
}
function setEnabled(enabledFlag) {
super.setEnabled(enabledFlag);
setScrollProperties(pageSize, minPos, maxPos, largeScroll);
}
function draw(Void) {
if (initializing) {
initializing = false;
scrollTrack_mc.visible = true;
upArrow_mc.__set__visible(true);
downArrow_mc.__set__visible(true);
}
size();
}
function size(Void) {
if (_height == 1) {
return(undefined);
}
if (upArrow_mc == undefined) {
return(undefined);
}
var _local3 = upArrow_mc.__get__height();
var _local2 = downArrow_mc.__get__height();
upArrow_mc.move(0, 0);
var _local4 = scrollTrack_mc;
_local4._y = _local3;
_local4._height = (virtualHeight - _local3) - _local2;
downArrow_mc.move(0, virtualHeight - _local2);
setScrollProperties(pageSize, minPos, maxPos, largeScroll);
}
function dispatchScrollEvent(detail) {
dispatchEvent({type:"scroll", detail:detail});
}
function isScrollBarKey(k) {
if (k == 36) {
if (scrollPosition != 0) {
scrollPosition = (0);
dispatchScrollEvent(minMode);
}
return(true);
}
if (k == 35) {
if (scrollPosition < maxPos) {
scrollPosition = (maxPos);
dispatchScrollEvent(maxMode);
}
return(true);
}
return(false);
}
function scrollIt(inc, mode) {
var _local3 = smallScroll;
if (inc != "Line") {
_local3 = ((largeScroll == 0) ? (pageSize) : (largeScroll));
}
var _local2 = _scrollPosition + (mode * _local3);
if (_local2 > maxPos) {
_local2 = maxPos;
} else if (_local2 < minPos) {
_local2 = minPos;
}
if (scrollPosition != _local2) {
scrollPosition = (_local2);
var _local4 = ((mode < 0) ? (minusMode) : (plusMode));
dispatchScrollEvent(inc + _local4);
}
}
function startTrackScroller(Void) {
_parent.pressFocus();
if (_parent.scrollTrackDownName.length > 0) {
if (_parent.scrollTrackDown_mc == undefined) {
_parent.setSkin(skinIDTrackDown, scrollTrackDownName);
} else {
_parent.scrollTrackDown_mc.visible = true;
}
}
_parent.trackScroller();
_parent.scrolling = setInterval(_parent, "scrollInterval", getStyle("repeatDelay"), "Page", -1);
}
function scrollInterval(inc, mode) {
clearInterval(scrolling);
if (inc == "Page") {
trackScroller();
} else {
scrollIt(inc, mode);
}
scrolling = setInterval(this, "scrollInterval", getStyle("repeatInterval"), inc, mode);
}
function trackScroller(Void) {
if ((scrollThumb_mc._y + scrollThumb_mc.__get__height()) < _ymouse) {
scrollIt("Page", 1);
} else if (scrollThumb_mc._y > _ymouse) {
scrollIt("Page", -1);
}
}
function dispatchScrollChangedEvent(Void) {
dispatchEvent({type:"scrollChanged"});
}
function stopScrolling(Void) {
clearInterval(_parent.scrolling);
_parent.scrollTrackDown_mc.visible = false;
}
function releaseScrolling(Void) {
_parent.releaseFocus();
stopScrolling();
_parent.dispatchScrollChangedEvent();
}
function trackOver(Void) {
if (_parent.scrollTrackOverName.length > 0) {
if (_parent.scrollTrackOver_mc == undefined) {
_parent.setSkin(skinIDTrackOver, scrollTrackOverName);
} else {
_parent.scrollTrackOver_mc.visible = true;
}
}
}
function trackOut(Void) {
_parent.scrollTrackOver_mc.visible = false;
}
function onUpArrow(Void) {
_parent.scrollIt("Line", -1);
}
function onDownArrow(Void) {
_parent.scrollIt("Line", 1);
}
function onScrollChanged(Void) {
_parent.dispatchScrollChangedEvent();
}
static var symbolOwner = mx.core.UIComponent;
var className = "ScrollBar";
var minPos = 0;
var maxPos = 0;
var pageSize = 0;
var largeScroll = 0;
var smallScroll = 1;
var _scrollPosition = 0;
var scrollTrackName = "ScrollTrack";
var scrollTrackOverName = "";
var scrollTrackDownName = "";
var upArrowName = "BtnUpArrow";
var upArrowUpName = "ScrollUpArrowUp";
var upArrowOverName = "ScrollUpArrowOver";
var upArrowDownName = "ScrollUpArrowDown";
var downArrowName = "BtnDownArrow";
var downArrowUpName = "ScrollDownArrowUp";
var downArrowOverName = "ScrollDownArrowOver";
var downArrowDownName = "ScrollDownArrowDown";
var thumbTopName = "ScrollThumbTopUp";
var thumbMiddleName = "ScrollThumbMiddleUp";
var thumbBottomName = "ScrollThumbBottomUp";
var thumbGripName = "ScrollThumbGripUp";
static var skinIDTrack = 0;
static var skinIDTrackOver = 1;
static var skinIDTrackDown = 2;
static var skinIDUpArrow = 3;
static var skinIDDownArrow = 4;
static var skinIDThumb = 5;
var idNames = new Array("scrollTrack_mc", "scrollTrackOver_mc", "scrollTrackDown_mc", "upArrow_mc", "downArrow_mc");
var clipParameters = {minPos:1, maxPos:1, pageSize:1, scrollPosition:1, lineScrollSize:1, pageScrollSize:1, visible:1, enabled:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.scrollClasses.ScrollBar.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var initializing = true;
}
Symbol 511 MovieClip [__Packages.mx.controls.HScrollBar] Frame 0
class mx.controls.HScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var _minHeight, _minWidth, _xscale, _rotation, __width, scrollIt;
function HScrollBar () {
super();
}
function getMinWidth(Void) {
return(_minHeight);
}
function getMinHeight(Void) {
return(_minWidth);
}
function init(Void) {
super.init();
_xscale = -100;
_rotation = -90;
}
function get virtualHeight() {
return(__width);
}
function isScrollBarKey(k) {
if (k == 37) {
scrollIt("Line", -1);
return(true);
}
if (k == 39) {
scrollIt("Line", 1);
return(true);
}
return(super.isScrollBarKey(k));
}
static var symbolName = "HScrollBar";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
var className = "HScrollBar";
var minusMode = "Left";
var plusMode = "Right";
var minMode = "AtLeft";
var maxMode = "AtRight";
}
Symbol 512 MovieClip [__Packages.mx.controls.Button] Frame 0
class mx.controls.Button extends mx.controls.SimpleButton
{
var initializing, labelPath, initIcon, getState, enabled, phase, idNames, __width, __height, setState, invalidate, iconName, refresh, createLabel, _iconLinkageName, removeIcons, hitArea_mc, createEmptyObject;
function Button () {
super();
}
function init(Void) {
super.init();
}
function draw() {
if (initializing) {
labelPath.visible = true;
}
super.draw();
if (initIcon != undefined) {
_setIcon(initIcon);
}
delete initIcon;
}
function onRelease(Void) {
super.onRelease();
}
function createChildren(Void) {
super.createChildren();
}
function setSkin(tag, linkageName, initobj) {
return(super.setSkin(tag, linkageName, initobj));
}
function viewSkin(varName) {
var _local3 = (getState() ? "true" : "false");
_local3 = _local3 + (enabled ? (phase) : "disabled");
super.viewSkin(varName, {styleName:this, borderStyle:_local3});
}
function invalidateStyle(c) {
labelPath.invalidateStyle(c);
super.invalidateStyle(c);
}
function setColor(c) {
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]].redraw(true);
_local2++;
}
}
function setEnabled(enable) {
labelPath.enabled = enable;
super.setEnabled(enable);
}
function calcSize(tag, ref) {
if ((__width == undefined) || (__height == undefined)) {
return(undefined);
}
if (tag < 7) {
ref.setSize(__width, __height, true);
}
}
function size(Void) {
setState(getState());
setHitArea(__width, __height);
var _local3 = 0;
while (_local3 < 8) {
var _local4 = idNames[_local3];
if (typeof(this[_local4]) == "movieclip") {
this[_local4].setSize(__width, __height, true);
}
_local3++;
}
super.size();
}
function set labelPlacement(val) {
__labelPlacement = val;
invalidate();
//return(labelPlacement);
}
function get labelPlacement() {
return(__labelPlacement);
}
function getLabelPlacement(Void) {
return(__labelPlacement);
}
function setLabelPlacement(val) {
__labelPlacement = val;
invalidate();
}
function getBtnOffset(Void) {
if (getState()) {
var _local2 = btnOffset;
} else if (phase == "down") {
var _local2 = btnOffset;
} else {
var _local2 = 0;
}
return(_local2);
}
function setView(offset) {
var _local16 = (offset ? (btnOffset) : 0);
var _local12 = getLabelPlacement();
var _local7 = 0;
var _local6 = 0;
var _local9 = 0;
var _local8 = 0;
var _local5 = 0;
var _local4 = 0;
var _local3 = labelPath;
var _local2 = iconName;
var _local15 = _local3.textWidth;
var _local14 = _local3.textHeight;
var _local10 = (__width - borderW) - borderW;
var _local11 = (__height - borderW) - borderW;
if (_local2 != undefined) {
_local7 = _local2._width;
_local6 = _local2._height;
}
if ((_local12 == "left") || (_local12 == "right")) {
if (_local3 != undefined) {
_local9 = Math.min(_local10 - _local7, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11, _local14 + 5);
_local3._height = _local8;
}
if (_local12 == "right") {
_local5 = _local7;
if (centerContent) {
_local5 = _local5 + (((_local10 - _local9) - _local7) / 2);
}
_local2._x = _local5 - _local7;
} else {
_local5 = (_local10 - _local9) - _local7;
if (centerContent) {
_local5 = _local5 / 2;
}
_local2._x = _local5 + _local9;
}
_local4 = 0;
_local2._y = _local4;
if (centerContent) {
_local2._y = (_local11 - _local6) / 2;
_local4 = (_local11 - _local8) / 2;
}
if (!centerContent) {
_local2._y = _local2._y + Math.max(0, (_local8 - _local6) / 2);
}
} else {
if (_local3 != undefined) {
_local9 = Math.min(_local10, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11 - _local6, _local14 + 5);
_local3._height = _local8;
}
_local5 = (_local10 - _local9) / 2;
_local2._x = (_local10 - _local7) / 2;
if (_local12 == "top") {
_local4 = (_local11 - _local8) - _local6;
if (centerContent) {
_local4 = _local4 / 2;
}
_local2._y = _local4 + _local8;
} else {
_local4 = _local6;
if (centerContent) {
_local4 = _local4 + (((_local11 - _local8) - _local6) / 2);
}
_local2._y = _local4 - _local6;
}
}
var _local13 = borderW + _local16;
_local3._x = _local5 + _local13;
_local3._y = _local4 + _local13;
_local2._x = _local2._x + _local13;
_local2._y = _local2._y + _local13;
}
function set label(lbl) {
setLabel(lbl);
//return(label);
}
function setLabel(label) {
if (label == "") {
labelPath.removeTextField();
refresh();
return(undefined);
}
if (labelPath == undefined) {
var _local2 = createLabel("labelPath", 200, label);
_local2._width = _local2.textWidth + 5;
_local2._height = _local2.textHeight + 5;
if (initializing) {
_local2.visible = false;
}
} else {
delete labelPath.__text;
labelPath.text = label;
refresh();
}
}
function getLabel(Void) {
return(((labelPath.__text != undefined) ? (labelPath.__text) : (labelPath.text)));
}
function get label() {
return(getLabel());
}
function _getIcon(Void) {
return(_iconLinkageName);
}
function get icon() {
if (initializing) {
return(initIcon);
}
return(_iconLinkageName);
}
function _setIcon(linkage) {
if (initializing) {
if (linkage == "") {
return(undefined);
}
initIcon = linkage;
} else {
if (linkage == "") {
removeIcons();
return(undefined);
}
super.changeIcon(0, linkage);
super.changeIcon(1, linkage);
super.changeIcon(3, linkage);
super.changeIcon(4, linkage);
super.changeIcon(5, linkage);
_iconLinkageName = linkage;
refresh();
}
}
function set icon(linkage) {
_setIcon(linkage);
//return(icon);
}
function setHitArea(w, h) {
if (hitArea_mc == undefined) {
createEmptyObject("hitArea_mc", 100);
}
var _local2 = hitArea_mc;
_local2.clear();
_local2.beginFill(16711680);
_local2.drawRect(0, 0, w, h);
_local2.endFill();
_local2.setVisible(false);
}
static var symbolName = "Button";
static var symbolOwner = mx.controls.Button;
var className = "Button";
static var version = "2.0.2.127";
var btnOffset = 0;
var _color = "buttonColor";
var __label = "default value";
var __labelPlacement = "right";
var falseUpSkin = "ButtonSkin";
var falseDownSkin = "ButtonSkin";
var falseOverSkin = "ButtonSkin";
var falseDisabledSkin = "ButtonSkin";
var trueUpSkin = "ButtonSkin";
var trueDownSkin = "ButtonSkin";
var trueOverSkin = "ButtonSkin";
var trueDisabledSkin = "ButtonSkin";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var clipParameters = {labelPlacement:1, icon:1, toggle:1, selected:1, label:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters);
var centerContent = true;
var borderW = 1;
}
Symbol 513 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 514 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 515 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 516 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 517 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 518 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 519 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 520 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 521 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 522 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class mx.skins.halo.RectBorder extends mx.skins.RectBorder
{
var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill;
function RectBorder () {
super();
}
function init(Void) {
borderWidths.default = 3;
super.init();
}
function getBorderMetrics(Void) {
if (offset == undefined) {
var _local3 = getStyle(borderStyleName);
offset = borderWidths[_local3];
}
if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) {
__borderMetrics = {left:3, top:1, right:3, bottom:3};
return(__borderMetrics);
}
return(super.getBorderMetrics());
}
function drawBorder(Void) {
var _local6 = _global.styles[className];
if (_local6 == undefined) {
_local6 = _global.styles.RectBorder;
}
var _local5 = getStyle(borderStyleName);
var _local7 = getStyle(borderColorName);
if (_local7 == undefined) {
_local7 = _local6[borderColorName];
}
var _local8 = getStyle(backgroundColorName);
if (_local8 == undefined) {
_local8 = _local6[backgroundColorName];
}
var _local16 = getStyle("backgroundImage");
if (_local5 != "none") {
var _local14 = getStyle(shadowColorName);
if (_local14 == undefined) {
_local14 = _local6[shadowColorName];
}
var _local13 = getStyle(highlightColorName);
if (_local13 == undefined) {
_local13 = _local6[highlightColorName];
}
var _local12 = getStyle(buttonColorName);
if (_local12 == undefined) {
_local12 = _local6[buttonColorName];
}
var _local11 = getStyle(borderCapColorName);
if (_local11 == undefined) {
_local11 = _local6[borderCapColorName];
}
var _local10 = getStyle(shadowCapColorName);
if (_local10 == undefined) {
_local10 = _local6[shadowCapColorName];
}
}
offset = borderWidths[_local5];
var _local9 = offset;
var _local3 = __get__width();
var _local4 = __get__height();
clear();
_color = undefined;
if (_local5 == "none") {
} else if (_local5 == "inset") {
_color = colorList;
draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10);
} else if (_local5 == "outset") {
_color = colorList;
draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10);
} else if (_local5 == "alert") {
var _local15 = getStyle("themeColor");
drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50);
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100);
} else if (_local5 == "default") {
drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial");
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100);
} else if (_local5 == "dropDown") {
drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear");
drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100);
} else if (_local5 == "menuBorder") {
var _local15 = getStyle("themeColor");
drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10);
drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear");
drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50);
drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100);
} else if (_local5 == "comboNonEdit") {
} else {
beginFill(_local7);
drawRect(0, 0, _local3, _local4);
drawRect(1, 1, _local3 - 1, _local4 - 1);
endFill();
_color = borderColorName;
}
if (_local8 != undefined) {
beginFill(_local8);
drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9);
endFill();
}
}
function draw3dBorder(c1, c2, c3, c4, c5, c6) {
var _local3 = __get__width();
var _local2 = __get__height();
beginFill(c1);
drawRect(0, 0, _local3, _local2);
drawRect(1, 0, _local3 - 1, _local2);
endFill();
beginFill(c2);
drawRect(1, 0, _local3 - 1, 1);
endFill();
beginFill(c3);
drawRect(1, _local2 - 1, _local3 - 1, _local2);
endFill();
beginFill(c4);
drawRect(1, 1, _local3 - 1, 2);
endFill();
beginFill(c5);
drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1);
endFill();
beginFill(c6);
drawRect(1, 2, _local3 - 1, _local2 - 2);
drawRect(2, 2, _local3 - 2, _local2 - 2);
endFill();
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.styles.rectBorderClass = mx.skins.halo.RectBorder;
_global.skinRegistry.RectBorder = true;
return(true);
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.halo.RectBorder;
static var version = "2.0.2.127";
var borderCapColorName = "borderCapColor";
var shadowCapColorName = "shadowCapColor";
var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0};
var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2};
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 523 MovieClip [__Packages.mx.skins.halo.ButtonSkin] Frame 0
class mx.skins.halo.ButtonSkin extends mx.skins.RectBorder
{
var __get__width, __get__height, getStyle, _parent, clear, drawRoundRect, __get__x, __get__y;
function ButtonSkin () {
super();
}
function init() {
super.init();
}
function size() {
drawHaloRect(__get__width(), __get__height());
}
function drawHaloRect(w, h) {
var _local6 = getStyle("borderStyle");
var _local4 = getStyle("themeColor");
var _local5 = _parent.emphasized;
clear();
switch (_local6) {
case "falseup" :
if (_local5) {
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 75);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 75);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
} else {
drawRoundRect(0, 0, w, h, 5, 9542041, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, "radial");
drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, "radial");
drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100);
}
break;
case "falsedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "falserollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 50);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "falsedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
break;
case "trueup" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16250871, 100);
break;
case "truedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "truerollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 40);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "truedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.skinRegistry.ButtonSkin = true;
return(true);
}
static var symbolName = "ButtonSkin";
static var symbolOwner = mx.skins.halo.ButtonSkin;
var className = "ButtonSkin";
var backgroundColorName = "buttonColor";
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 524 MovieClip [__Packages.mx.controls.VScrollBar] Frame 0
class mx.controls.VScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var scrollIt;
function VScrollBar () {
super();
}
function init(Void) {
super.init();
}
function isScrollBarKey(k) {
if (k == 38) {
scrollIt("Line", -1);
return(true);
}
if (k == 40) {
scrollIt("Line", 1);
return(true);
}
if (k == 33) {
scrollIt("Page", -1);
return(true);
}
if (k == 34) {
scrollIt("Page", 1);
return(true);
}
return(super.isScrollBarKey(k));
}
static var symbolName = "VScrollBar";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
var className = "VScrollBar";
var minusMode = "Up";
var plusMode = "Down";
var minMode = "AtTop";
var maxMode = "AtBottom";
}
Symbol 60 MovieClip [Background] Frame 1
stop();
Symbol 69 MovieClip [bar] Frame 1
#initclip 168
Object.registerClass("bar", SlideBar);
#endinitclip
Symbol 74 MovieClip [bedButton] Frame 1
#initclip 113
Object.registerClass("bedButton", InterrierButton);
#endinitclip
Symbol 83 MovieClip [MMButton] Frame 1
#initclip 114
Object.registerClass("MMButton", MMButton);
#endinitclip
Symbol 86 MovieClip [buyIt] Frame 1
#initclip 115
Object.registerClass("buyIt", BuyIt);
#endinitclip
txt.text = XMLMaster.getBuyItText();
Symbol 119 MovieClip [Car] Frame 1
#initclip 116
Object.registerClass("Car", CarTest);
#endinitclip
Symbol 130 MovieClip [DownMenuService] Frame 1
#initclip 117
Object.registerClass("DownMenuService", MenuButton);
#endinitclip
Symbol 135 MovieClip [DownMenuHomes] Frame 1
#initclip 118
Object.registerClass("DownMenuHomes", MenuButton);
#endinitclip
Symbol 140 MovieClip [DownMenuBuildings] Frame 1
#initclip 119
Object.registerClass("DownMenuBuildings", MenuButton);
#endinitclip
Symbol 162 MovieClip [Goals] Frame 1
#initclip 120
Object.registerClass("Goals", Goals);
#endinitclip
Symbol 166 MovieClip [HeartsFountain] Frame 1
#initclip 121
Object.registerClass("HeartsFountain", HeartsFountain);
#endinitclip
Symbol 171 MovieClip [goalsScreen] Frame 1
#initclip 122
Object.registerClass("goalsScreen", GoalsScreen);
#endinitclip
Symbol 230 MovieClip [zaborButton] Frame 1
#initclip 123
Object.registerClass("zaborButton", MenuButton);
#endinitclip
Symbol 233 MovieClip [paintButton] Frame 1
#initclip 124
Object.registerClass("paintButton", MenuButton);
#endinitclip
Symbol 236 MovieClip [grassButton] Frame 1
#initclip 125
Object.registerClass("grassButton", MenuButton);
#endinitclip
Symbol 239 MovieClip [chearButton] Frame 1
#initclip 126
Object.registerClass("chearButton", InterrierButton);
#endinitclip
Symbol 242 MovieClip [tableButton] Frame 1
#initclip 127
Object.registerClass("tableButton", InterrierButton);
#endinitclip
Symbol 258 MovieClip [LoveBar] Frame 1
#initclip 128
Object.registerClass("LoveBar", LoveBar);
#endinitclip
txt2.text = XMLMaster.getInterfaceTexts(72);
Symbol 266 MovieClip [HouseInterrier] Frame 1
#initclip 129
Object.registerClass("HouseInterrier", HouseInterrier);
#endinitclip
Symbol 282 MovieClip [PointerFreeObjects] Frame 1
#initclip 130
Object.registerClass("PointerFreeObjects", Pointer);
#endinitclip
Symbol 285 MovieClip [CellGreen] Frame 1
#initclip 131
Object.registerClass("CellGreen", Cell);
#endinitclip
Symbol 295 MovieClip Frame 1
txt.text = XMLMaster.getInterfaceTexts(69);
Symbol 296 MovieClip [LevelComplete] Frame 30
stop();
Symbol 298 MovieClip Frame 1
txt.text = XMLMaster.getInterfaceTexts(70);
Symbol 299 MovieClip [LevelLose] Frame 30
stop();
Symbol 317 MovieClip [lose] Frame 1
#initclip 132
Object.registerClass("lose", Stats);
#endinitclip
Symbol 324 MovieClip [monet] Frame 1
#initclip 133
Object.registerClass("monet", effects.Monet);
#endinitclip
Symbol 329 MovieClip [pluse1] Frame 1
#initclip 134
Object.registerClass("pluse1", MenuButton);
#endinitclip
Symbol 334 MovieClip [pluse2] Frame 1
#initclip 135
Object.registerClass("pluse2", MenuButton);
#endinitclip
Symbol 339 MovieClip [pluse3] Frame 1
#initclip 136
Object.registerClass("pluse3", MenuButton);
#endinitclip
Symbol 344 MovieClip [plusw1] Frame 1
#initclip 137
Object.registerClass("plusw1", MenuButton);
#endinitclip
Symbol 349 MovieClip [plusw2] Frame 1
#initclip 138
Object.registerClass("plusw2", MenuButton);
#endinitclip
Symbol 354 MovieClip [plusw3] Frame 1
#initclip 139
Object.registerClass("plusw3", MenuButton);
#endinitclip
Symbol 373 MovieClip [pointerBuildings] Frame 1
#initclip 140
Object.registerClass("pointerBuildings", PointerBuildings);
#endinitclip
Symbol 376 MovieClip [pointSmall] Frame 1
#initclip 141
Object.registerClass("pointSmall", MapPoint);
#endinitclip
Symbol 379 MovieClip [PopUpText] Frame 1
#initclip 142
Object.registerClass("PopUpText", PopUpText);
#endinitclip
Symbol 397 MovieClip [rentTimer] Frame 1
#initclip 143
Object.registerClass("rentTimer", RentTimer);
#endinitclip
Symbol 397 MovieClip [rentTimer] Frame 18
feeLost();
Symbol 408 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 410 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 413 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 415 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 418 MovieClip [Defaults] Frame 1
#initclip 92
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 419 MovieClip [UIObjectExtensions] Frame 1
#initclip 93
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 420 MovieClip [UIObject] Frame 1
#initclip 94
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 423 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 424 MovieClip Frame 1
#initclip 95
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 425 MovieClip [FocusRect] Frame 1
#initclip 96
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 426 MovieClip [FocusManager] Frame 1
#initclip 97
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 427 MovieClip [UIComponentExtensions] Frame 1
#initclip 98
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 428 MovieClip [UIComponent] Frame 1
#initclip 99
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 429 MovieClip [SimpleButton] Frame 1
#initclip 100
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 430 MovieClip [Border] Frame 1
#initclip 101
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 431 MovieClip [RectBorder] Frame 1
#initclip 102
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 432 MovieClip [ButtonSkin] Frame 1
#initclip 103
Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin);
#endinitclip
Symbol 433 MovieClip [Button] Frame 1
#initclip 104
Object.registerClass("Button", mx.controls.Button);
#endinitclip
stop();
Instance of Symbol 429 MovieClip [SimpleButton] in Symbol 433 MovieClip [Button] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 434 MovieClip [CustomBorder] Frame 1
#initclip 105
Object.registerClass("CustomBorder", mx.skins.CustomBorder);
mx.skins.SkinElement.registerElement("CustomBorder", mx.skins.CustomBorder);
#endinitclip
Symbol 446 MovieClip [ScrollThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 448 MovieClip [ScrollThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 459 MovieClip [ThumbThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 461 MovieClip [ThumbThemeColor3] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 468 MovieClip [ThumbThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 489 MovieClip [BtnDownArrow] Frame 1
#initclip 106
Object.registerClass("BtnDownArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 490 MovieClip [BtnUpArrow] Frame 1
#initclip 107
Object.registerClass("BtnUpArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 492 MovieClip [HScrollBar] Frame 1
#initclip 108
Object.registerClass("HScrollBar", mx.controls.HScrollBar);
#endinitclip
stop();
Instance of Symbol 433 MovieClip [Button] in Symbol 492 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 429 MovieClip [SimpleButton] in Symbol 492 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 493 MovieClip [VScrollBar] Frame 1
#initclip 109
Object.registerClass("VScrollBar", mx.controls.VScrollBar);
#endinitclip
stop();
Instance of Symbol 433 MovieClip [Button] in Symbol 493 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 429 MovieClip [SimpleButton] in Symbol 493 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 494 MovieClip [View] Frame 1
#initclip 110
Object.registerClass("View", mx.core.View);
#endinitclip
stop();
Symbol 495 MovieClip [ScrollView] Frame 1
#initclip 111
Object.registerClass("ScrollView", mx.core.ScrollView);
#endinitclip
stop();
Instance of Symbol 492 MovieClip [HScrollBar] in Symbol 495 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 493 MovieClip [VScrollBar] in Symbol 495 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 496 MovieClip [TextArea] Frame 1
#initclip 112
Object.registerClass("TextArea", mx.controls.TextArea);
#endinitclip
stop();
Symbol 528 MovieClip [tile] Frame 1
#initclip 144
Object.registerClass("tile", iso.Tile);
#endinitclip
stop();
Symbol 535 MovieClip [TimeBar] Frame 1
#initclip 145
Object.registerClass("TimeBar", TimeBar);
#endinitclip
Symbol 550 MovieClip Frame 1
m1.text = XMLMaster.getInterfaceTexts(32);
Symbol 550 MovieClip Frame 2
m1.text = XMLMaster.getInterfaceTexts(33);
Symbol 550 MovieClip Frame 3
m1.text = XMLMaster.getInterfaceTexts(34);
Symbol 550 MovieClip Frame 5
m1.text = XMLMaster.getInterfaceTexts(35);
Symbol 556 MovieClip Frame 1
m1.text = XMLMaster.getInterfaceTexts(40);
Symbol 556 MovieClip Frame 2
m1.text = XMLMaster.getInterfaceTexts(41);
Symbol 556 MovieClip Frame 3
m1.text = XMLMaster.getInterfaceTexts(42);
Symbol 565 MovieClip Frame 1
m1.text = XMLMaster.getInterfaceTexts(43);
Symbol 565 MovieClip Frame 2
m1.text = XMLMaster.getInterfaceTexts(44);
Symbol 565 MovieClip Frame 3
m1.text = XMLMaster.getInterfaceTexts(45);
Symbol 565 MovieClip Frame 5
m1.text = XMLMaster.getInterfaceTexts(46);
Symbol 565 MovieClip Frame 6
m1.text = XMLMaster.getInterfaceTexts(47);
Symbol 565 MovieClip Frame 7
m1.text = XMLMaster.getInterfaceTexts(48);
Main.houses[0].brake();
Symbol 565 MovieClip Frame 8
m1.text = XMLMaster.getInterfaceTexts(49);
Symbol 571 MovieClip Frame 2
m1.text = XMLMaster.getInterfaceTexts(50);
Symbol 571 MovieClip Frame 3
m1.text = XMLMaster.getInterfaceTexts(51);
Symbol 571 MovieClip Frame 4
m1.text = XMLMaster.getInterfaceTexts(52);
Symbol 572 MovieClip [tutorial] Frame 1
#initclip 146
Object.registerClass("tutorial", Tutorial);
#endinitclip
Symbol 591 MovieClip Frame 1
stop();
Symbol 594 MovieClip Frame 1
stop();
Symbol 598 MovieClip [TopBar] Frame 1
#initclip 147
Object.registerClass("TopBar", TopBar);
#endinitclip
Symbol 625 MovieClip [CircleTimer] Frame 1
#initclip 148
Object.registerClass("CircleTimer", CircleTimer);
#endinitclip
Symbol 634 MovieClip [PSBMc] Frame 1
#initclip 149
Object.registerClass("PSBMc", MenuButton);
#endinitclip
Symbol 639 MovieClip [WSBMc] Frame 1
#initclip 150
Object.registerClass("WSBMc", MenuButton);
#endinitclip
Symbol 645 MovieClip [GarrageButton] Frame 1
#initclip 151
Object.registerClass("GarrageButton", MenuButton);
#endinitclip
Symbol 650 MovieClip [BankButton] Frame 1
#initclip 152
Object.registerClass("BankButton", MenuButton);
#endinitclip
Symbol 656 MovieClip [UpgradeButton] Frame 1
#initclip 153
Object.registerClass("UpgradeButton", MenuButton);
#endinitclip
Symbol 659 MovieClip [repairButton] Frame 1
#initclip 154
Object.registerClass("repairButton", MenuButton);
#endinitclip
Symbol 663 MovieClip [House1Button] Frame 1
#initclip 155
Object.registerClass("House1Button", MenuButton);
#endinitclip
Symbol 667 MovieClip [House2Button] Frame 1
#initclip 156
Object.registerClass("House2Button", MenuButton);
#endinitclip
Symbol 671 MovieClip [DemolishButton] Frame 1
#initclip 157
Object.registerClass("DemolishButton", MenuButton);
#endinitclip
Symbol 677 MovieClip [Menu] Frame 1
#initclip 158
Object.registerClass("Menu", GameMenu);
#endinitclip
Symbol 703 MovieClip Frame 64
stop();
Symbol 706 MovieClip Frame 15
stop();
Symbol 710 MovieClip [House] Frame 1
#initclip 159
Object.registerClass("House", House);
#endinitclip
m0.text = XMLMaster.getInterfaceTexts(73);
Symbol 715 MovieClip [Map] Frame 1
#initclip 160
Object.registerClass("Map", Map);
#endinitclip
Symbol 722 MovieClip [optionsWindow] Frame 1
#initclip 161
Object.registerClass("optionsWindow", OptionsWindow);
#endinitclip
Symbol 726 MovieClip [confirmWindow] Frame 1
#initclip 162
Object.registerClass("confirmWindow", ConfirmWindow);
#endinitclip
Symbol 741 MovieClip [stats] Frame 1
#initclip 163
Object.registerClass("stats", Stats);
#endinitclip
Symbol 749 MovieClip [MainMenu] Frame 1
#initclip 164
Object.registerClass("MainMenu", MainMenu);
#endinitclip
Symbol 759 MovieClip [IngameMenu] Frame 1
#initclip 165
Object.registerClass("IngameMenu", IngameMenu);
#endinitclip
Symbol 766 MovieClip [Garage] Frame 1
#initclip 166
Object.registerClass("Garage", Garage);
#endinitclip
m0.text = XMLMaster.getInterfaceTexts(73);
Symbol 783 MovieClip [mc_ADS] Frame 1
#initclip 167
Object.registerClass("mc_ADS", mc_ADS);
#endinitclip
Instance of Symbol 496 MovieClip [TextArea] in Symbol 788 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
editable = true;
html = false;
text = "";
wordWrap = true;
maxChars = 0;
restrict = "";
enabled = true;
password = false;
visible = true;
minHeight = 0;
minWidth = 0;
}