Frame 1
function gotoSite() {
if (_root.localization_portal == "game_com_cn") {
getURL (_root.localization_url1, "_blank");
} else {
getURL (_root.localization_url1 + "&utm_term=button_mainscreen_moregames", "_blank");
}
}
function gotoFG() {
getURL ("http://www." + localization_short, _blank);
}
_root.localization_url1 = "http://www.agame.com/moregames/?utm_source=brandedgames_as2&utm_medium=code_monkey_tycoon";
_root.localization_language_nr = 1;
_root.localization_branding_nr = 1;
_root.localization_portal = "tweens";
_root.localization_short = "agame.com";
NewMenu = new ContextMenu();
NewMenu.hideBuiltInItems();
NewMenu.customItems.push(new ContextMenuItem(localization_short, gotoFG));
onEnterFrame = function () {
percentloaded = Math.round((this.getBytesLoaded() / this.getBytesTotal()) * 100);
pct.text = percentloaded + "%";
pantalla.mask._yscale = percentloaded;
if (percentloaded == 100) {
onEnterFrame = function () {
};
gotoAndStop (2);
}
};
stop();
Frame 2
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("5f9cd22c", this, 10301, true);
Frame 3
MochiAd.showInterLevelAd({id:"4ab9bae4b6ae5fe0", res:"800x600"});
Frame 4
function startGame() {
_root.init = false;
_root.juststarted = 1;
gotoAndStop ("gestion");
}
onEnterFrame = function () {
};
subpant.fportrait.gotoAndStop(random(subpant.fportrait._totalframes) + 1);
subpant.mportrait.gotoAndStop(random(subpant.mportrait._totalframes) + 1);
subpant._visible = false;
subpant.toto.enabled = false;
var myGame;
tuto._visible = true;
tuto._x = 645;
tuto._y = 399;
stop();
Frame 9
tuto._visible = false;
Frame 14
if (init != 1) {
tuto._x = 685.4;
tuto._y = 36.5;
init = 1;
juststarted = 0;
pantallas.gshowing = 0;
pantallas._visible = false;
var pla = new Array(6);
var i = 1;
while (i < 6) {
pla[i] = new Array(5);
pla[i][1] = random(4) + 1;
pla[i][2] = random(4) + 1;
pla[i][3] = random(2) + 1;
pla[i][4] = random(2) + 1;
plano["box" + i].tio1.gotoAndStop(pla[i][1]);
plano["box" + i].tio2.gotoAndStop(pla[i][2]);
plano["box" + i].tio3.gotoAndStop(pla[i][3]);
plano["box" + i].tio4.gotoAndStop(pla[i][4]);
i++;
}
} else if (juststarted == 1) {
if (_root.myGame.Games.length > 0) {
btn_desactivado._visible = false;
}
juststarted = 0;
tuto._x = 685.4;
tuto._y = 36.5;
juststarted = 0;
pantallas.gshowing = 0;
pantallas._visible = false;
tutorial._visible = false;
tuto._visible = false;
var pla = new Array(6);
var i = 1;
while (i < 6) {
pla[i] = new Array(5);
pla[i][1] = random(4) + 1;
pla[i][2] = random(4) + 1;
pla[i][3] = random(2) + 1;
pla[i][4] = random(2) + 1;
plano["box" + i].tio1.gotoAndStop(pla[i][1]);
plano["box" + i].tio2.gotoAndStop(pla[i][2]);
plano["box" + i].tio3.gotoAndStop(pla[i][3]);
plano["box" + i].tio4.gotoAndStop(pla[i][4]);
i++;
}
}
onEnterFrame = function () {
if (myGame.run() == false) {
tuto._visible = false;
gotoAndStop (44);
}
money = (((("\u20AC " + Auxiliary.displayNumAsText(Math.floor(myGame.money))) + ".") + Math.abs(Math.floor((myGame.money % 1) * 10))) + "") + Math.abs(Math.floor(((myGame.money * 10) % 1) * 10));
employees = _root.myGame.Employees.length;
};
stop();
var i = 1;
while (i < 6) {
plano["box" + i].tio1.gotoAndStop(pla[i][1]);
plano["box" + i].tio2.gotoAndStop(pla[i][2]);
plano["box" + i].tio3.gotoAndStop(pla[i][3]);
plano["box" + i].tio4.gotoAndStop(pla[i][4]);
i++;
}
_root.plano.pared01._visible = false;
_root.plano.pared02._visible = false;
_root.plano.pared03._visible = false;
_root.plano.pared04._visible = true;
_root.plano.pared05._visible = false;
_root.plano.pared06._visible = false;
_root.plano.tablon._visible = false;
Frame 18
var i = 1;
while (i < 6) {
plano["box" + i].tio1.gotoAndStop(pla[i][1]);
plano["box" + i].tio2.gotoAndStop(pla[i][2]);
plano["box" + i].tio3.gotoAndStop(pla[i][3]);
plano["box" + i].tio4.gotoAndStop(pla[i][4]);
i++;
}
_root.plano.pared01._visible = true;
_root.plano.pared02._visible = false;
_root.plano.pared03._visible = false;
_root.plano.pared04._visible = false;
_root.plano.pared05._visible = false;
_root.plano.pared06._visible = false;
_root.plano.tablon._visible = true;
Frame 23
var i = 1;
while (i < 6) {
plano["box" + i].tio1.gotoAndStop(pla[i][1]);
plano["box" + i].tio2.gotoAndStop(pla[i][2]);
plano["box" + i].tio3.gotoAndStop(pla[i][3]);
plano["box" + i].tio4.gotoAndStop(pla[i][4]);
i++;
}
_root.plano.pared01._visible = false;
_root.plano.pared02._visible = false;
_root.plano.pared03._visible = false;
_root.plano.pared04._visible = false;
_root.plano.pared05._visible = false;
_root.plano.pared06._visible = false;
_root.plano.tablon._visible = false;
Frame 33
var i = 1;
while (i < 6) {
plano["box" + i].tio1.gotoAndStop(pla[i][1]);
plano["box" + i].tio2.gotoAndStop(pla[i][2]);
plano["box" + i].tio3.gotoAndStop(pla[i][3]);
plano["box" + i].tio4.gotoAndStop(pla[i][4]);
i++;
}
_root.plano.pared01._visible = false;
_root.plano.pared02._visible = true;
_root.plano.pared03._visible = true;
_root.plano.pared04._visible = true;
_root.plano.pared05._visible = true;
_root.plano.pared06._visible = true;
_root.plano.tablon._visible = false;
Frame 44
onEnterFrame = function () {
};
init = 0;
stop();
Symbol 7 Button
on (release) {
_parent._parent._parent.pantallas.gshowing = this.gid;
_parent._parent.refreshThisToo();
}
Symbol 12 MovieClip [ventas] Frame 1
vnt.ventas = ventas;
stop();
Symbol 24 Button
on (release) {
gotoSite();
}
Symbol 81 MovieClip [retratom] Frame 1
stop();
Symbol 124 MovieClip [retratof] Frame 1
stop();
Symbol 125 Button
on (release) {
_parent._parent._parent.displayEmployee(this.eid);
}
Symbol 126 Button
on (release) {
_parent._parent._parent.tshowing = this.tid;
_parent._parent._parent.refreshThis();
}
Symbol 127 Button
on (release) {
_parent._parent._parent.addToTeam(this.eid);
_parent._parent._parent.refreshThis();
}
Symbol 130 Button
on (release) {
_parent._parent._parent.displayTeam(this.tid);
}
Symbol 131 MovieClip [boton_retrato] Frame 1
stop();
Symbol 131 MovieClip [boton_retrato] Frame 2
stop();
Symbol 131 MovieClip [boton_retrato] Frame 3
stop();
Symbol 131 MovieClip [boton_retrato] Frame 4
stop();
Symbol 131 MovieClip [boton_retrato] Frame 5
stop();
Symbol 136 MovieClip Frame 1
stop();
Symbol 147 MovieClip [equipos] Frame 1
stop();
Symbol 149 Button
on (release) {
_parent._parent._parent.pshowing = this.pid;
_parent._parent._parent.refreshThis();
}
Symbol 165 MovieClip Frame 1
stop();
Symbol 172 MovieClip [project_small] Frame 1
stop();
Symbol 187 MovieClip [tutor] Frame 1
#initclip 18
Object.registerClass("tutor", example.AvatarSprite);
#endinitclip
Symbol 286 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 291 MovieClip Frame 88
_parent.play();
stop();
Symbol 1228 MovieClip [__Packages.example.AvatarSprite] Frame 0
class example.AvatarSprite extends MovieClip
{
var animations, scrollRect, frame, frameRepeat, frameCounter, _name, active;
function AvatarSprite () {
super();
animations = {};
scrollRect = frame;
frameRepeat = 1;
frameCounter = 0;
}
function setFrameRepeat(frameRepeat) {
this.frameRepeat = frameRepeat || (this.frameRepeat);
frameCounter = 0;
}
function addAnimation(name, filmstripName, seq) {
var _local3 = this[filmstripName];
if (!_local3) {
meez.Logger.warn(((((("[" + _name) + "/") + name) + "] Unknown filmstrip '") + filmstripName) + "'");
return(undefined);
}
animations[name] = {name:name, filmstrip:_local3, seq:seq};
animations[name].framesPerRow = _local3._width / frame.width;
animations[name].ptr = -1;
trace((((((("--added==:" + animations[name]) + ":") + animations[name].name) + ", ") + animations[name].filmstrip) + ", ") + animations[name].seq);
_local3._visible = false;
}
function addDefaultAnimation(animation) {
var _local3 = meez.AnimationDefs.getAnimations()[animation];
var _local2 = 0;
while (_local2 < _local3.length) {
addAnimation(_local3[_local2].name, _local3[_local2].filmstrip, _local3[_local2].seq);
_local2++;
}
}
function playAnimation(name, next) {
var _local2 = animations[name];
if (!_local2) {
meez.Logger.warn(("Unknown animation '" + name) + "'");
return(undefined);
}
if (_local2 == active) {
return(undefined);
}
if (active) {
active.filmstrip._visible = false;
}
_local2.next = next;
_local2.ptr = 0;
var _local3 = _local2.seq[_local2.ptr];
var _local5 = (_local3 - 1) % _local2.framesPerRow;
var _local4 = Math.floor((_local3 - 1) / _local2.framesPerRow);
_local2.filmstrip._x = (_local5 * -1) * frame.width;
_local2.filmstrip._y = (_local4 * -1) * frame.height;
_local2.filmstrip._visible = true;
active = _local2;
}
function onEnterFrame() {
if (!active) {
return(undefined);
}
frameCounter++;
if (frameCounter < frameRepeat) {
return(undefined);
}
frameCounter = 0;
active.ptr++;
var _local2 = active.seq[active.ptr - 1];
var _local4 = (_local2 - 1) % active.framesPerRow;
var _local3 = Math.floor((_local2 - 1) / active.framesPerRow);
active.filmstrip._x = (_local4 * -1) * frame.width;
active.filmstrip._y = (_local3 * -1) * frame.height;
if (active.ptr >= active.seq.length) {
if (active.next) {
playAnimation(active.next);
} else {
active.ptr = 0;
}
}
}
}
Symbol 1229 MovieClip [__Packages.meez.Logger] Frame 0
class meez.Logger
{
static var externalLogger;
function Logger () {
}
static function log(level, msg) {
if (externalLogger != null) {
externalLogger(level, msg);
} else {
trace((("[" + LevelStr[level]) + "] ") + msg);
}
}
static function info(msg) {
log(Level.INFO, msg);
}
static function error(msg) {
log(Level.ERROR, msg);
}
static function warn(msg) {
log(Level.WARN, msg);
}
static function debug(msg) {
log(Level.DEBUG, msg);
}
static var Level = {DEBUG:0, WARN:1, ERROR:2, INFO:3};
static var LevelStr = ["DEBUG", "WARN", "ERROR", "INFO"];
}
Symbol 1230 MovieClip [__Packages.meez.AnimationDefs] Frame 0
class meez.AnimationDefs
{
function AnimationDefs () {
}
static function getAnimations() {
var _local1 = {IDLE:IDLE, HIRESIDLE:HIRES_IDLE, LOWRESWALK:LOWRESWALK_ANIMATIONS, PLATFORMER:PLATFORMER_ANIMATIONS, ISOPLATFORMER:ISO_PLATFORMER_ANIMATIONS, MARTIALARTS:MARTIALARTS_ANIMATIONS, SERVER:SERVER_ANIMATIONS, KISS:KISS, LAUGH:LAUGH, SAD:SAD, SHUTUP:SHUTUP, SMILE:SMILE, INDIANSTYLE:INDIANSTYLE, WTF:WTF, YAY:YAY, HOVER:HOVER, BUTTONPUSH:BUTTONPUSH, HELLO:HELLO, ASLEEP:ASLEEP, BMX:BMX_ANIMATIONS, SKATE:SKATE_ANIMATIONS, ACAR:ACAR_ANIMATIONS, BCAR:BCAR_ANIMATIONS, CCAR:CCAR_ANIMATIONS, DCAR:DCAR_ANIMATIONS, DANCE:DANCE_ANIMATIONS, BASS:BASS_ANIMATIONS, GUITAR:GUITAR_ANIMATIONS, DRUMS:DRUMS_ANIMATIONS, SINGER:SINGER_ANIMATIONS};
return(_local1);
}
static function getFilmstrips() {
var _local1 = {IDLE:"worldidle01", HIRESIDLE:"fgworldidle01", LOWRESWALK:"walk01", SERVER:"fgserver01", PLATFORMER:"fgplatformer01", ISOPLATFORMER:"fgplatformer02", MARTIALARTS:"martialarts01", KISS:"kissworld01", LAUGH:"laughworld01", SAD:"sadworld01", SHUTUP:"shutupworld01", SMILE:"smileworld01", INDIANSTYLE:"indianstyle01", WTF:"wtfworld01", YAY:"yayworld01", HOVER:"hover01", BUTTONPUSH:"buttonpush01", HELLO:"helloworld01", ASLEEP:"asleepworld01", BMX:"fgbike03", SKATE:"fgskate01", ACAR:"fgvehicle01", BCAR:"fgvehicle02", CCAR:"fgvehicle03", DCAR:"fgvehicle04", DANCE:"fgdance01", BASS:"fgbass01", GUITAR:"fgguitar01", DRUMS:"fgdrumset01", SINGER:"fgsinger01"};
return(_local1);
}
static var IDLE = [{name:"idle", filmstrip:"worldidle01", seq:[2, 4, 2, 3, 3, 3, 2, 2, 2, 1, 1, 1, 2, 2, 2, 2, 3, 3, 2, 2, 1, 1, 1, 2, 2, 2, 3, 3, 3, 2, 2, 2, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 2, 2, 1, 1, 1, 2, 2, 2, 3, 3, 3, 2, 2, 1, 1, 1, 2, 4, 2, 2, 3, 3, 2, 1, 1, 1, 2, 2, 2, 3, 3, 3, 2, 2, 2, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 2, 2, 1, 1, 1, 1]}];
static var HIRES_IDLE = [{name:"hiidle-front", filmstrip:"fgworldidle01", seq:[2, 4, 2, 3, 3, 3, 2, 2, 2, 1, 1, 1, 2, 2, 2, 2, 3, 3]}, {name:"hiidle-right", filmstrip:"fgworldidle01", seq:[6, 8, 6, 7, 7, 7, 6, 6, 6, 5, 5, 5, 6, 6, 6, 6, 7, 7]}, {name:"hiidle-back", filmstrip:"fgworldidle01", seq:[10, 12, 10, 11, 11, 11, 10, 10, 10, 9, 9, 9, 10, 10, 10, 10, 11, 11]}, {name:"hiidle-left", filmstrip:"fgworldidle01", seq:[14, 16, 14, 15, 15, 15, 14, 14, 14, 13, 13, 13, 14, 14, 14, 14, 15, 15]}];
static var LOWRESWALK_ANIMATIONS = [{name:"lowwalk-back", filmstrip:"walk01", seq:[9, 9, 10, 10, 11, 11, 12, 12]}, {name:"lowwalk-front", filmstrip:"walk01", seq:[1, 1, 2, 2, 3, 3, 4, 4]}, {name:"lowwalk-left", filmstrip:"walk01", seq:[13, 13, 14, 14, 15, 15, 16, 16]}, {name:"lowwalk-right", filmstrip:"walk01", seq:[5, 5, 6, 6, 7, 7, 8, 8]}];
static var PLATFORMER_ANIMATIONS = [{name:"run-right", filmstrip:"fgplatformer01", seq:[1, 2, 3, 4, 5, 6, 7, 9]}, {name:"run-back", filmstrip:"fgplatformer01", seq:[10, 11, 12, 13, 14, 15, 16, 17, 18]}, {name:"run-left", filmstrip:"fgplatformer01", seq:[19, 20, 21, 22, 23, 24, 25, 26, 27]}, {name:"run-front", filmstrip:"fgplatformer01", seq:[28, 29, 30, 31, 32, 33, 34, 35, 36]}, {name:"walk-right", filmstrip:"fgplatformer01", seq:[38, 39, 40, 41, 42, 43, 44, 45, 46, 47]}, {name:"walk-back", filmstrip:"fgplatformer01", seq:[49, 50, 51, 52, 53, 54, 55, 56, 57, 58]}, {name:"walk-left", filmstrip:"fgplatformer01", seq:[60, 61, 62, 63, 64, 65, 66, 67, 68, 69]}, {name:"walk-front", filmstrip:"fgplatformer01", seq:[71, 72, 73, 74, 75, 76, 77, 78, 79, 80]}, {name:"push-right", filmstrip:"fgplatformer01", seq:[82, 83, 84, 85, 86, 87, 88, 89, 90, 91]}, {name:"push-back", filmstrip:"fgplatformer01", seq:[93, 94, 95, 96, 97, 98, 99, 100, 101, 102]}, {name:"push-left", filmstrip:"fgplatformer01", seq:[104, 105, 106, 107, 108, 109, 110, 111, 112, 113]}, {name:"push-front", filmstrip:"fgplatformer01", seq:[115, 116, 117, 118, 119, 120, 121, 122, 123, 124]}, {name:"pjump-right", filmstrip:"fgplatformer01", seq:[125, 125, 125]}, {name:"pjump-back", filmstrip:"fgplatformer01", seq:[129, 129, 129]}, {name:"pjump-left", filmstrip:"fgplatformer01", seq:[133, 133, 133]}, {name:"pjump-front", filmstrip:"fgplatformer01", seq:[137, 137, 137]}, {name:"jump-right", filmstrip:"fgplatformer01", seq:[126, 127, 128, 128, 128]}, {name:"jump-back", filmstrip:"fgplatformer01", seq:[130, 130, 131, 131, 131, 132]}, {name:"jump-left", filmstrip:"fgplatformer01", seq:[134, 134, 135, 135, 135, 136]}, {name:"jump-front", filmstrip:"fgplatformer01", seq:[138, 138, 139, 139, 140]}, {name:"flip-right", filmstrip:"fgplatformer01", seq:[141, 141, 141]}, {name:"flip-back", filmstrip:"fgplatformer01", seq:[142, 142, 142]}, {name:"flip-left", filmstrip:"fgplatformer01", seq:[143, 143, 143]}, {name:"flip-front", filmstrip:"fgplatformer01", seq:[144, 144, 144]}, {name:"throw-right", filmstrip:"fgplatformer01", seq:[145, 146, 147]}, {name:"throw-back", filmstrip:"fgplatformer01", seq:[148, 149, 150]}, {name:"throw-left", filmstrip:"fgplatformer01", seq:[151, 152, 153]}, {name:"throw-front", filmstrip:"fgplatformer01", seq:[154, 155, 156]}, {name:"slide-right", filmstrip:"fgplatformer01", seq:[157, 157, 157]}, {name:"slide-back", filmstrip:"fgplatformer01", seq:[158, 158, 158]}, {name:"slide-left", filmstrip:"fgplatformer01", seq:[159, 159, 159]}, {name:"slide-front", filmstrip:"fgplatformer01", seq:[160, 160, 160]}, {name:"duck-right", filmstrip:"fgplatformer01", seq:[161, 161]}, {name:"duck-back", filmstrip:"fgplatformer01", seq:[162, 162]}, {name:"duck-left", filmstrip:"fgplatformer01", seq:[163, 163]}, {name:"duck-front", filmstrip:"fgplatformer01", seq:[164, 164]}, {name:"climb-right", filmstrip:"fgplatformer01", seq:[165, 165, 166, 166]}, {name:"climb-back", filmstrip:"fgplatformer01", seq:[167, 167, 168, 168]}, {name:"climb-left", filmstrip:"fgplatformer01", seq:[169, 169, 170, 170]}, {name:"punch-right", filmstrip:"fgplatformer01", seq:[173, 173]}, {name:"punch-back", filmstrip:"fgplatformer01", seq:[174, 174]}, {name:"punch-left", filmstrip:"fgplatformer01", seq:[175, 175]}, {name:"punch-front", filmstrip:"fgplatformer01", seq:[176, 176]}, {name:"kick-right", filmstrip:"fgplatformer01", seq:[177, 177]}, {name:"kick-back", filmstrip:"fgplatformer01", seq:[178, 178]}, {name:"kick-left", filmstrip:"fgplatformer01", seq:[179, 179]}, {name:"kick-front", filmstrip:"fgplatformer01", seq:[180, 180]}, {name:"die-right", filmstrip:"fgplatformer01", seq:[181, 181, 182, 182, 182, 182]}, {name:"die-back", filmstrip:"fgplatformer01", seq:[183, 183, 184, 184, 184, 184]}, {name:"die-left", filmstrip:"fgplatformer01", seq:[185, 185, 186, 186, 186, 186]}, {name:"die-front", filmstrip:"fgplatformer01", seq:[187, 187, 188, 188, 188, 188]}];
static var ISO_PLATFORMER_ANIMATIONS = [{name:"run-right", filmstrip:"fgplatformer02", seq:[1, 2, 3, 4, 5, 6, 7, 9]}, {name:"run-back", filmstrip:"fgplatformer02", seq:[10, 11, 12, 13, 14, 15, 16, 17, 18]}, {name:"run-left", filmstrip:"fgplatformer02", seq:[19, 20, 21, 22, 23, 24, 25, 26, 27]}, {name:"run-front", filmstrip:"fgplatformer02", seq:[28, 29, 30, 31, 32, 33, 34, 35, 36]}, {name:"walk-right", filmstrip:"fgplatformer02", seq:[38, 39, 40, 41, 42, 43, 44, 45, 46, 47]}, {name:"walk-back", filmstrip:"fgplatformer02", seq:[49, 50, 51, 52, 53, 54, 55, 56, 57, 58]}, {name:"walk-left", filmstrip:"fgplatformer02", seq:[60, 61, 62, 63, 64, 65, 66, 67, 68, 69]}, {name:"walk-front", filmstrip:"fgplatformer02", seq:[71, 72, 73, 74, 75, 76, 77, 78, 79, 80]}, {name:"push-right", filmstrip:"fgplatformer02", seq:[82, 83, 84, 85, 86, 87, 88, 89, 90, 91]}, {name:"push-back", filmstrip:"fgplatformer02", seq:[93, 94, 95, 96, 97, 98, 99, 100, 101, 102]}, {name:"push-left", filmstrip:"fgplatformer02", seq:[104, 105, 106, 107, 108, 109, 110, 111, 112, 113]}, {name:"push-front", filmstrip:"fgplatformer02", seq:[115, 116, 117, 118, 119, 120, 121, 122, 123, 124]}, {name:"pjump-right", filmstrip:"fgplatformer02", seq:[125, 125, 125]}, {name:"pjump-back", filmstrip:"fgplatformer02", seq:[129, 129, 129]}, {name:"pjump-left", filmstrip:"fgplatformer02", seq:[133, 133, 133]}, {name:"pjump-front", filmstrip:"fgplatformer02", seq:[137, 137, 137]}, {name:"jump-right", filmstrip:"fgplatformer02", seq:[126, 127, 128, 128, 128]}, {name:"jump-back", filmstrip:"fgplatformer02", seq:[130, 130, 131, 131, 131, 132]}, {name:"jump-left", filmstrip:"fgplatformer02", seq:[134, 134, 135, 135, 135, 136]}, {name:"jump-front", filmstrip:"fgplatformer02", seq:[138, 138, 139, 139, 140]}, {name:"flip-right", filmstrip:"fgplatformer02", seq:[141, 141, 141]}, {name:"flip-back", filmstrip:"fgplatformer02", seq:[142, 142, 142]}, {name:"flip-left", filmstrip:"fgplatformer02", seq:[143, 143, 143]}, {name:"flip-front", filmstrip:"fgplatformer02", seq:[144, 144, 144]}, {name:"throw-right", filmstrip:"fgplatformer02", seq:[145, 146, 147]}, {name:"throw-back", filmstrip:"fgplatformer02", seq:[148, 149, 150]}, {name:"throw-left", filmstrip:"fgplatformer02", seq:[151, 152, 153]}, {name:"throw-front", filmstrip:"fgplatformer02", seq:[154, 155, 156]}, {name:"slide-right", filmstrip:"fgplatformer02", seq:[157, 157, 157]}, {name:"slide-back", filmstrip:"fgplatformer02", seq:[158, 158, 158]}, {name:"slide-left", filmstrip:"fgplatformer02", seq:[159, 159, 159]}, {name:"slide-front", filmstrip:"fgplatformer02", seq:[160, 160, 160]}, {name:"duck-right", filmstrip:"fgplatformer02", seq:[161, 161]}, {name:"duck-back", filmstrip:"fgplatformer02", seq:[162, 162]}, {name:"duck-left", filmstrip:"fgplatformer02", seq:[163, 163]}, {name:"duck-front", filmstrip:"fgplatformer02", seq:[164, 164]}, {name:"climb-right", filmstrip:"fgplatformer02", seq:[165, 165, 166, 166]}, {name:"climb-back", filmstrip:"fgplatformer02", seq:[167, 167, 168, 168]}, {name:"climb-left", filmstrip:"fgplatformer02", seq:[169, 169, 170, 170]}, {name:"punch-right", filmstrip:"fgplatformer02", seq:[173, 173]}, {name:"punch-back", filmstrip:"fgplatformer02", seq:[174, 174]}, {name:"punch-left", filmstrip:"fgplatformer02", seq:[175, 175]}, {name:"punch-front", filmstrip:"fgplatformer02", seq:[176, 176]}, {name:"kick-right", filmstrip:"fgplatformer02", seq:[177, 177]}, {name:"kick-back", filmstrip:"fgplatformer02", seq:[178, 178]}, {name:"kick-left", filmstrip:"fgplatformer02", seq:[179, 179]}, {name:"kick-front", filmstrip:"fgplatformer02", seq:[180, 180]}, {name:"die-right", filmstrip:"fgplatformer02", seq:[181, 181, 182, 182, 182, 182]}, {name:"die-back", filmstrip:"fgplatformer02", seq:[183, 183, 184, 184, 184, 184]}, {name:"die-left", filmstrip:"fgplatformer02", seq:[185, 185, 186, 186, 186, 186]}, {name:"die-front", filmstrip:"fgplatformer02", seq:[187, 187, 188, 188, 188, 188]}];
static var SERVER_ANIMATIONS = [{name:"serverwalk-front", filmstrip:"fgserver01", seq:[1, 1, 2, 2, 3, 3, 4, 4]}, {name:"serverwalk-right", filmstrip:"fgserver01", seq:[5, 5, 6, 6, 7, 7, 8, 8]}, {name:"serverwalk-back", filmstrip:"fgserver01", seq:[9, 9, 10, 10, 11, 11, 12, 12]}, {name:"serverwalk-left", filmstrip:"fgserver01", seq:[13, 13, 14, 14, 15, 15, 16, 16]}, {name:"serveridle", filmstrip:"fgserver01", seq:[17, 17, 18, 18, 19, 19, 19, 18, 18, 17, 17, 17, 18, 18, 19, 19, 20, 19, 19, 18, 18]}];
static var KISS = [{name:"kiss", filmstrip:"kissworld01", seq:[1, 1, 2, 2, 3, 3, 3, 2, 2, 1, 1, 2, 2, 3, 3, 3, 2, 2]}];
static var LAUGH = [{name:"laugh", filmstrip:"laughworld01", seq:[1, 1, 2, 2, 3, 3, 3, 2, 2, 2, 3, 3, 3, 2, 2, 2, 3, 3]}];
static var SAD = [{name:"sad", filmstrip:"sadworld01", seq:[1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 3, 3]}];
static var SHUTUP = [{name:"shutup", filmstrip:"shutupworld01", seq:[1, 1, 1, 2, 2, 3, 3, 3]}];
static var SMILE = [{name:"smile", filmstrip:"smileworld01", seq:[1, 1, 2, 2, 2, 2, 3, 3, 3, 2, 2, 2, 2]}];
static var INDIANSTYLE = [{name:"indianstyle", filmstrip:"indianstyle01", seq:[1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 3, 3, 3, 3, 2, 2, 2]}];
static var WTF = [{name:"wtf", filmstrip:"wtfworld01", seq:[1, 1, 2, 2, 3, 3, 2, 2, 1, 1, 1, 2, 2]}];
static var YAY = [{name:"yay", filmstrip:"yayworld01", seq:[1, 1, 2, 2, 2, 3, 3, 3, 3, 2, 2, 1, 1]}];
static var HOVER = [{name:"hover", filmstrip:"hover01", seq:[1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 2, 2]}];
static var BUTTONPUSH = [{name:"buttonpush", filmstrip:"buttonpush01", seq:[1, 1, 2, 2, 2, 2, 2, 2]}];
static var HELLO = [{name:"hello", filmstrip:"helloworld01", seq:[1, 1, 2, 2, 3, 3, 3, 2, 2, 1, 1, 2, 2, 3, 3, 3, 2, 2]}];
static var ASLEEP = [{name:"asleep", filmstrip:"asleepworld01", seq:[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2]}];
static var BMX_ANIMATIONS = [{name:"bikecoast-right", filmstrip:"fgbike03", seq:[1, 1, 2, 2]}, {name:"bikecoast-rightback", filmstrip:"fgbike03", seq:[7, 7, 8, 8]}, {name:"bikecoast-back", filmstrip:"fgbike03", seq:[13, 13, 14, 14]}, {name:"bikecoast-leftback", filmstrip:"fgbike03", seq:[19, 19, 20, 20]}, {name:"bikecoast-left", filmstrip:"fgbike03", seq:[25, 25, 26, 26]}, {name:"bikecoast-leftfront", filmstrip:"fgbike03", seq:[31, 31, 32, 32]}, {name:"bikecoast-front", filmstrip:"fgbike03", seq:[37, 37, 38, 38]}, {name:"bikecoast-rightfront", filmstrip:"fgbike03", seq:[43, 43, 44, 44]}, {name:"bikejump-right", filmstrip:"fgbike03", seq:[3, 3, 4, 4]}, {name:"bikejump-rightback", filmstrip:"fgbike03", seq:[9, 9, 10, 10]}, {name:"bikejump-back", filmstrip:"fgbike03", seq:[15, 15, 16, 16]}, {name:"bikejump-leftback", filmstrip:"fgbike03", seq:[21, 21, 22, 22]}, {name:"bikejump-left", filmstrip:"fgbike03", seq:[27, 27, 28, 28]}, {name:"bikejump-leftfront", filmstrip:"fgbike03", seq:[33, 33, 34, 34]}, {name:"bikejump-front", filmstrip:"fgbike03", seq:[39, 39, 40, 40]}, {name:"bikejump-rightfront", filmstrip:"fgbike03", seq:[45, 45, 46, 46]}, {name:"biketrick-right", filmstrip:"fgbike03", seq:[5, 11, 17, 23, 29, 35, 41, 47]}, {name:"biketrick-rightback", filmstrip:"fgbike03", seq:[11, 17, 23, 29, 35, 41, 47, 5]}, {name:"biketrick-back", filmstrip:"fgbike03", seq:[17, 23, 29, 35, 41, 47, 5, 11]}, {name:"biketrick-leftback", filmstrip:"fgbike03", seq:[23, 29, 35, 41, 47, 5, 11, 17]}, {name:"biketrick-left", filmstrip:"fgbike03", seq:[29, 35, 41, 47, 5, 11, 17, 23]}, {name:"biketrick-leftfront", filmstrip:"fgbike03", seq:[35, 41, 47, 5, 11, 17, 23, 29]}, {name:"biketrick-front", filmstrip:"fgbike03", seq:[41, 47, 5, 11, 17, 23, 29, 35]}, {name:"biketrick-rightfront", filmstrip:"fgbike03", seq:[47, 5, 11, 17, 23, 29, 35, 41]}, {name:"bikefall-right", filmstrip:"fgbike03", seq:[6, 6]}, {name:"bikefall-rightback", filmstrip:"fgbike03", seq:[12, 12]}, {name:"bikefall-back", filmstrip:"fgbike03", seq:[18, 18]}, {name:"bikefall-leftback", filmstrip:"fgbike03", seq:[24, 24]}, {name:"bikefall-left", filmstrip:"fgbike03", seq:[30, 30]}, {name:"bikefall-leftfront", filmstrip:"fgbike03", seq:[36, 36]}, {name:"bikefall-front", filmstrip:"fgbike03", seq:[42, 42]}, {name:"bikefall-rightfront", filmstrip:"fgbike03", seq:[48, 48]}, {name:"bikepedal-right", filmstrip:"fgbike03", seq:[50, 51, 52, 53, 54]}, {name:"bikepedal-rightback", filmstrip:"fgbike03", seq:[57, 58, 59, 60, 61]}, {name:"bikepedal-back", filmstrip:"fgbike03", seq:[63, 64, 65, 66, 67]}, {name:"bikepedal-leftback", filmstrip:"fgbike03", seq:[69, 70, 71, 72, 73]}, {name:"bikepedal-left", filmstrip:"fgbike03", seq:[75, 76, 77, 78, 79]}, {name:"bikepedal-leftfront", filmstrip:"fgbike03", seq:[81, 82, 83, 84, 85]}, {name:"bikepedal-front", filmstrip:"fgbike03", seq:[87, 88, 89, 90, 91]}, {name:"bikepedal-rightfront", filmstrip:"fgbike03", seq:[93, 94, 95, 96, 97]}];
static var SKATE_ANIMATIONS = [{name:"skatecoast-right", filmstrip:"fgskate01", seq:[1, 1, 2, 2]}, {name:"skatecoast-rightback", filmstrip:"fgskate01", seq:[17, 17, 18, 18]}, {name:"skatecoast-back", filmstrip:"fgskate01", seq:[33, 33, 34, 34]}, {name:"skatecoast-leftback", filmstrip:"fgskate01", seq:[49, 49, 50, 50]}, {name:"skatecoast-left", filmstrip:"fgskate01", seq:[65, 65, 66, 66]}, {name:"skatecoast-leftfront", filmstrip:"fgskate01", seq:[81, 81, 82, 82]}, {name:"skatecoast-front", filmstrip:"fgskate01", seq:[97, 97, 98, 98]}, {name:"skatecoast-rightfront", filmstrip:"fgskate01", seq:[113, 113, 114, 114]}, {name:"skatepush-right", filmstrip:"fgskate01", seq:[3, 3, 4, 4, 5, 5]}, {name:"skatepush-rightback", filmstrip:"fgskate01", seq:[19, 19, 20, 20, 21, 21]}, {name:"skatepush-back", filmstrip:"fgskate01", seq:[35, 35, 36, 36, 37, 37]}, {name:"skatepush-leftback", filmstrip:"fgskate01", seq:[51, 51, 52, 52, 53, 53]}, {name:"skatepush-left", filmstrip:"fgskate01", seq:[67, 67, 68, 68, 69, 69]}, {name:"skatepush-leftfront", filmstrip:"fgskate01", seq:[83, 83, 84, 84, 85, 85]}, {name:"skatepush-front", filmstrip:"fgskate01", seq:[99, 99, 100, 100, 101, 101]}, {name:"skatepush-rightfront", filmstrip:"fgskate01", seq:[115, 115, 116, 116, 117, 117]}, {name:"skatejump-right", filmstrip:"fgskate01", seq:[6, 7, 8, 9]}, {name:"skatejump-rightback", filmstrip:"fgskate01", seq:[22, 23, 24, 25]}, {name:"skatejump-back", filmstrip:"fgskate01", seq:[38, 39, 40, 41]}, {name:"skatejump-leftback", filmstrip:"fgskate01", seq:[54, 55, 56, 57]}, {name:"skatejump-left", filmstrip:"fgskate01", seq:[70, 71, 72, 73]}, {name:"skatejump-leftfront", filmstrip:"fgskate01", seq:[86, 87, 88, 89]}, {name:"skatejump-front", filmstrip:"fgskate01", seq:[102, 103, 104, 105]}, {name:"skatejump-rightfront", filmstrip:"fgskate01", seq:[118, 119, 120, 121]}, {name:"skatetrick-right", filmstrip:"fgskate01", seq:[10, 11, 12, 13, 14]}, {name:"skatetrick-rightback", filmstrip:"fgskate01", seq:[26, 27, 28, 29, 30]}, {name:"skatetrick-back", filmstrip:"fgskate01", seq:[42, 43, 44, 45, 46]}, {name:"skatetrick-leftback", filmstrip:"fgskate01", seq:[58, 59, 60, 61, 62]}, {name:"skatetrick-left", filmstrip:"fgskate01", seq:[74, 75, 76, 77, 78]}, {name:"skatetrick-leftfront", filmstrip:"fgskate01", seq:[90, 91, 92, 93, 94]}, {name:"skatetrick-front", filmstrip:"fgskate01", seq:[106, 107, 108, 109, 110]}, {name:"skatetrick-rightfront", filmstrip:"fgskate01", seq:[122, 123, 124, 125, 126]}, {name:"skatefall-right", filmstrip:"fgskate01", seq:[15, 16, 16, 16, 16]}, {name:"skatefall-rightback", filmstrip:"fgskate01", seq:[31, 32, 32, 32, 32]}, {name:"skatefall-back", filmstrip:"fgskate01", seq:[47, 48, 48, 48, 48]}, {name:"skatefall-leftback", filmstrip:"fgskate01", seq:[63, 64, 64, 64, 64]}, {name:"skatefall-left", filmstrip:"fgskate01", seq:[79, 80, 80, 80, 80]}, {name:"skatefall-leftfront", filmstrip:"fgskate01", seq:[95, 96, 96, 96, 96]}, {name:"skatefall-front", filmstrip:"fgskate01", seq:[111, 112, 112, 112, 112]}, {name:"skatefall-rightfront", filmstrip:"fgskate01", seq:[127, 128, 128, 128, 128]}];
static var ACAR_ANIMATIONS = [{name:"acardrive-right", filmstrip:"fgvehicle01", seq:[1]}, {name:"acardrive-rightback", filmstrip:"fgvehicle01", seq:[16]}, {name:"acardrive-back", filmstrip:"fgvehicle01", seq:[31]}, {name:"acardrive-leftback", filmstrip:"fgvehicle01", seq:[46]}, {name:"acardrive-left", filmstrip:"fgvehicle01", seq:[61]}, {name:"acardrive-leftfront", filmstrip:"fgvehicle01", seq:[76]}, {name:"acardrive-front", filmstrip:"fgvehicle01", seq:[91]}, {name:"acardrive-rightfront", filmstrip:"fgvehicle01", seq:[106]}, {name:"acarfliph-right", filmstrip:"fgvehicle01", seq:[2, 3, 4, 5, 6, 7, 8]}, {name:"acarfliph-rightback", filmstrip:"fgvehicle01", seq:[17, 18, 19, 20, 21, 22, 23]}, {name:"acarfliph-back", filmstrip:"fgvehicle01", seq:[32, 33, 34, 35, 36, 37, 38]}, {name:"acarfliph-leftback", filmstrip:"fgvehicle01", seq:[47, 48, 49, 50, 51, 52, 53]}, {name:"acarfliph-left", filmstrip:"fgvehicle01", seq:[62, 63, 64, 65, 66, 67, 68]}, {name:"acarfliph-leftfront", filmstrip:"fgvehicle01", seq:[77, 78, 79, 80, 81, 82, 83]}, {name:"acarfliph-front", filmstrip:"fgvehicle01", seq:[92, 93, 94, 95, 96, 97, 98]}, {name:"acarfliph-rightfront", filmstrip:"fgvehicle01", seq:[107, 108, 109, 110, 111, 112, 113]}, {name:"acarflipv-right", filmstrip:"fgvehicle01", seq:[9, 10, 11, 12, 13, 14, 15]}, {name:"acarflipv-rightback", filmstrip:"fgvehicle01", seq:[24, 25, 26, 27, 28, 29, 30]}, {name:"acarflipv-back", filmstrip:"fgvehicle01", seq:[39, 40, 41, 42, 43, 44, 45]}, {name:"acarflipv-leftback", filmstrip:"fgvehicle01", seq:[54, 55, 56, 57, 58, 59, 60]}, {name:"acarflipv-left", filmstrip:"fgvehicle01", seq:[69, 70, 71, 72, 73, 74, 75]}, {name:"acarflipv-leftfront", filmstrip:"fgvehicle01", seq:[84, 85, 86, 87, 88, 89, 90]}, {name:"acarflipv-front", filmstrip:"fgvehicle01", seq:[99, 100, 101, 102, 103, 104, 105]}, {name:"acarflipv-rightfront", filmstrip:"fgvehicle01", seq:[114, 115, 116, 117, 118, 119, 120]}];
static var BCAR_ANIMATIONS = [{name:"bcardrive-right", filmstrip:"fgvehicle02", seq:[1]}, {name:"bcardrive-rightback", filmstrip:"fgvehicle02", seq:[16]}, {name:"bcardrive-back", filmstrip:"fgvehicle02", seq:[31]}, {name:"bcardrive-leftback", filmstrip:"fgvehicle02", seq:[46]}, {name:"bcardrive-left", filmstrip:"fgvehicle02", seq:[61]}, {name:"bcardrive-leftfront", filmstrip:"fgvehicle02", seq:[76]}, {name:"bcardrive-front", filmstrip:"fgvehicle02", seq:[91]}, {name:"bcardrive-rightfront", filmstrip:"fgvehicle02", seq:[106]}, {name:"bcarfliph-right", filmstrip:"fgvehicle02", seq:[2, 3, 4, 5, 6, 7, 8]}, {name:"bcarfliph-rightback", filmstrip:"fgvehicle02", seq:[17, 18, 19, 20, 21, 22, 23]}, {name:"bcarfliph-back", filmstrip:"fgvehicle02", seq:[32, 33, 34, 35, 36, 37, 38]}, {name:"bcarfliph-leftback", filmstrip:"fgvehicle02", seq:[47, 48, 49, 50, 51, 52, 53]}, {name:"bcarfliph-left", filmstrip:"fgvehicle02", seq:[62, 63, 64, 65, 66, 67, 68]}, {name:"bcarfliph-leftfront", filmstrip:"fgvehicle02", seq:[77, 78, 79, 80, 81, 82, 83]}, {name:"bcarfliph-front", filmstrip:"fgvehicle02", seq:[92, 93, 94, 95, 96, 97, 98]}, {name:"bcarfliph-rightfront", filmstrip:"fgvehicle02", seq:[107, 108, 109, 110, 111, 112, 113]}, {name:"bcarflipv-right", filmstrip:"fgvehicle02", seq:[9, 10, 11, 12, 13, 14, 15]}, {name:"bcarflipv-rightback", filmstrip:"fgvehicle02", seq:[24, 25, 26, 27, 28, 29, 30]}, {name:"bcarflipv-back", filmstrip:"fgvehicle02", seq:[39, 40, 41, 42, 43, 44, 45]}, {name:"bcarflipv-leftback", filmstrip:"fgvehicle02", seq:[54, 55, 56, 57, 58, 59, 60]}, {name:"bcarflipv-left", filmstrip:"fgvehicle02", seq:[69, 70, 71, 72, 73, 74, 75]}, {name:"bcarflipv-leftfront", filmstrip:"fgvehicle02", seq:[84, 85, 86, 87, 88, 89, 90]}, {name:"bcarflipv-front", filmstrip:"fgvehicle02", seq:[99, 100, 101, 102, 103, 104, 105]}, {name:"bcarflipv-rightfront", filmstrip:"fgvehicle02", seq:[114, 115, 116, 117, 118, 119, 120]}];
static var CCAR_ANIMATIONS = [{name:"ccardrive-right", filmstrip:"fgvehicle03", seq:[1]}, {name:"ccardrive-rightback", filmstrip:"fgvehicle03", seq:[16]}, {name:"ccardrive-back", filmstrip:"fgvehicle03", seq:[31]}, {name:"ccardrive-leftback", filmstrip:"fgvehicle03", seq:[46]}, {name:"ccardrive-left", filmstrip:"fgvehicle03", seq:[61]}, {name:"ccardrive-leftfront", filmstrip:"fgvehicle03", seq:[76]}, {name:"ccardrive-front", filmstrip:"fgvehicle03", seq:[91]}, {name:"ccardrive-rightfront", filmstrip:"fgvehicle03", seq:[106]}, {name:"ccarfliph-right", filmstrip:"fgvehicle03", seq:[2, 3, 4, 5, 6, 7, 8]}, {name:"ccarfliph-rightback", filmstrip:"fgvehicle03", seq:[17, 18, 19, 20, 21, 22, 23]}, {name:"ccarfliph-back", filmstrip:"fgvehicle03", seq:[32, 33, 34, 35, 36, 37, 38]}, {name:"ccarfliph-leftback", filmstrip:"fgvehicle03", seq:[47, 48, 49, 50, 51, 52, 53]}, {name:"ccarfliph-left", filmstrip:"fgvehicle03", seq:[62, 63, 64, 65, 66, 67, 68]}, {name:"ccarfliph-leftfront", filmstrip:"fgvehicle03", seq:[77, 78, 79, 80, 81, 82, 83]}, {name:"ccarfliph-front", filmstrip:"fgvehicle03", seq:[92, 93, 94, 95, 96, 97, 98]}, {name:"ccarfliph-rightfront", filmstrip:"fgvehicle03", seq:[107, 108, 109, 110, 111, 112, 113]}, {name:"ccarflipv-right", filmstrip:"fgvehicle03", seq:[9, 10, 11, 12, 13, 14, 15]}, {name:"ccarflipv-rightback", filmstrip:"fgvehicle03", seq:[24, 25, 26, 27, 28, 29, 30]}, {name:"ccarflipv-back", filmstrip:"fgvehicle03", seq:[39, 40, 41, 42, 43, 44, 45]}, {name:"ccarflipv-leftback", filmstrip:"fgvehicle03", seq:[54, 55, 56, 57, 58, 59, 60]}, {name:"ccarflipv-left", filmstrip:"fgvehicle03", seq:[69, 70, 71, 72, 73, 74, 75]}, {name:"ccarflipv-leftfront", filmstrip:"fgvehicle03", seq:[84, 85, 86, 87, 88, 89, 90]}, {name:"ccarflipv-front", filmstrip:"fgvehicle03", seq:[99, 100, 101, 102, 103, 104, 105]}, {name:"ccarflipv-rightfront", filmstrip:"fgvehicle03", seq:[114, 115, 116, 117, 118, 119, 120]}];
static var DCAR_ANIMATIONS = [{name:"dcardrive-right", filmstrip:"fgvehicle04", seq:[1]}, {name:"dcardrive-rightback", filmstrip:"fgvehicle04", seq:[16]}, {name:"dcardrive-back", filmstrip:"fgvehicle04", seq:[31]}, {name:"dcardrive-leftback", filmstrip:"fgvehicle04", seq:[46]}, {name:"dcardrive-left", filmstrip:"fgvehicle04", seq:[61]}, {name:"dcardrive-leftfront", filmstrip:"fgvehicle04", seq:[76]}, {name:"dcardrive-front", filmstrip:"fgvehicle04", seq:[91]}, {name:"dcardrive-rightfront", filmstrip:"fgvehicle04", seq:[106]}, {name:"dcarfliph-right", filmstrip:"fgvehicle04", seq:[2, 3, 4, 5, 6, 7, 8]}, {name:"dcarfliph-rightback", filmstrip:"fgvehicle04", seq:[17, 18, 19, 20, 21, 22, 23]}, {name:"dcarfliph-back", filmstrip:"fgvehicle04", seq:[32, 33, 34, 35, 36, 37, 38]}, {name:"dcarfliph-leftback", filmstrip:"fgvehicle04", seq:[47, 48, 49, 50, 51, 52, 53]}, {name:"dcarfliph-left", filmstrip:"fgvehicle04", seq:[62, 63, 64, 65, 66, 67, 68]}, {name:"dcarfliph-leftfront", filmstrip:"fgvehicle04", seq:[77, 78, 79, 80, 81, 82, 83]}, {name:"dcarfliph-front", filmstrip:"fgvehicle04", seq:[92, 93, 94, 95, 96, 97, 98]}, {name:"dcarfliph-rightfront", filmstrip:"fgvehicle04", seq:[107, 108, 109, 110, 111, 112, 113]}, {name:"dcarflipv-right", filmstrip:"fgvehicle04", seq:[9, 10, 11, 12, 13, 14, 15]}, {name:"dcarflipv-rightback", filmstrip:"fgvehicle04", seq:[24, 25, 26, 27, 28, 29, 30]}, {name:"dcarflipv-back", filmstrip:"fgvehicle04", seq:[39, 40, 41, 42, 43, 44, 45]}, {name:"dcarflipv-leftback", filmstrip:"fgvehicle04", seq:[54, 55, 56, 57, 58, 59, 60]}, {name:"dcarflipv-left", filmstrip:"fgvehicle04", seq:[69, 70, 71, 72, 73, 74, 75]}, {name:"dcarflipv-leftfront", filmstrip:"fgvehicle04", seq:[84, 85, 86, 87, 88, 89, 90]}, {name:"dcarflipv-front", filmstrip:"fgvehicle04", seq:[99, 100, 101, 102, 103, 104, 105]}, {name:"dcarflipv-rightfront", filmstrip:"fgvehicle04", seq:[114, 115, 116, 117, 118, 119, 120]}];
static var DRUMS_ANIMATIONS = [{name:"drumsplay", filmstrip:"fgdrumset01", seq:[1, 1, 2, 2, 1, 1, 2, 2, 1, 1, 2, 2, 3, 3, 2, 2, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 1, 1, 2, 2, 1, 1, 2, 2, 3, 3, 2, 2, 1, 1, 4, 4, 6, 6, 4, 4, 7, 7, 4, 4, 7, 7, 1, 1, 2, 2, 3, 3, 2, 2, 4, 4, 7, 7]}, {name:"drumsrockout", filmstrip:"fgdrumset01", seq:[8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 11, 10, 10, 11, 12, 12, 11, 13, 13, 11, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 8, 9, 11, 12, 12, 11, 14, 14]}, {name:"drumsmessup", filmstrip:"fgdrumset01", seq:[16, 17, 17]}, {name:"drumsidle", filmstrip:"fgdrumset01", seq:[18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23]}];
static var GUITAR_ANIMATIONS = [{name:"guitarplay", filmstrip:"fgguitar01", seq:[1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 3, 3, 4, 4, 1, 1, 2, 2, 5, 5, 6, 6]}, {name:"guitarrockout", filmstrip:"fgguitar01", seq:[7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 7, 7, 8, 8, 9, 9, 10, 10]}, {name:"guitarmessup", filmstrip:"fgguitar01", seq:[13, 13]}, {name:"guitaridle", filmstrip:"fgguitar01", seq:[14, 14, 15, 15]}];
static var BASS_ANIMATIONS = [{name:"bassplay", filmstrip:"fgbass01", seq:[1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 3, 3, 4, 4, 1, 1, 2, 2, 5, 5, 6, 6]}, {name:"bassrockout", filmstrip:"fgbass01", seq:[7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 7, 7, 8, 8, 9, 9, 10, 10]}, {name:"bassmessup", filmstrip:"fgbass01", seq:[13, 13]}, {name:"bassidle", filmstrip:"fgbass01", seq:[14, 14, 15, 15]}];
static var SINGER_ANIMATIONS = [{name:"singerplay", filmstrip:"fgsinger01", seq:[1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]}, {name:"singerrockout", filmstrip:"fgsinger01", seq:[14, 14, 15, 15, 14, 14, 15, 15, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 19, 19, 18, 18]}, {name:"singermessup", filmstrip:"fgsinger01", seq:[21, 21]}, {name:"singeridle", filmstrip:"fgsinger01", seq:[22, 22, 23, 23]}];
static var DANCE_ANIMATIONS = [{name:"danceloop", filmstrip:"fgdance01", seq:[1, 1, 2, 2, 3, 3, 2, 2, 1, 1, 2, 2, 3, 3, 2, 2, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 1, 1, 2, 2, 3, 3, 2, 2, 1, 1, 2, 2, 3, 3, 2, 2, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 5, 5, 4, 4, 5, 5]}, {name:"dancemove1", filmstrip:"fgdance01", seq:[7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12]}, {name:"dancemove2", filmstrip:"fgdance01", seq:[13, 13, 14, 14, 15, 15, 16, 16, 17, 17, 18, 18]}, {name:"dancemove3", filmstrip:"fgdance01", seq:[19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 22, 22, 21, 21, 20, 20]}, {name:"dancemove4", filmstrip:"fgdance01", seq:[24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 30, 30]}, {name:"dancemove5", filmstrip:"fgdance01", seq:[31, 31, 32, 32, 33, 33, 34, 34, 35, 35, 36, 36, 37, 37, 38, 38, 39, 39]}, {name:"dancemove6", filmstrip:"fgdance01", seq:[40, 40, 41, 41, 42, 42, 43, 43]}, {name:"dancefail", filmstrip:"fgdance01", seq:[44, 44]}];
static var MARTIALARTS_ANIMATIONS = [{name:"martial-idle", filmstrip:"fgmartialarts01", seq:[1, 1, 2, 2, 3, 3, 4, 4, 4, 3, 3, 2, 2, 1]}, {name:"martial-doublepunch", filmstrip:"fgmartialarts01", seq:[5, 6, 7, 8, 9, 9, 10]}, {name:"martial-flykick", filmstrip:"fgmartialarts01", seq:[14, 15, 16, 17]}, {name:"martial-spinkick", filmstrip:"fgmartialarts01", seq:[14, 15, 35, 36, 37, 39, 41, 34, 16, 17, 17, 13]}, {name:"martial-sidekick", filmstrip:"fgmartialarts01", seq:[80, 81, 82, 82, 83]}, {name:"martial-uppercut", filmstrip:"fgmartialarts01", seq:[68, 69, 70, 71, 72, 72, 73, 74, 75, 76, 77]}, {name:"martial-blockhigh", filmstrip:"fgmartialarts01", seq:[78, 79]}, {name:"martial-blocklow", filmstrip:"fgmartialarts01", seq:[80, 80]}, {name:"martial-croucha", filmstrip:"fgmartialarts01", seq:[11, 12]}, {name:"martial-crouchb", filmstrip:"fgmartialarts01", seq:[11, 84]}, {name:"martial-die", filmstrip:"fgmartialarts01", seq:[65, 66, 67]}, {name:"martial-wushu", filmstrip:"fgmartialarts01", seq:[42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 54, 54]}, {name:"martial-falling", filmstrip:"fgmartialarts01", seq:[64]}, {name:"martial-hitgut", filmstrip:"fgmartialarts01", seq:[25, 26, 27, 27, 28, 29, 30, 31]}, {name:"martial-hithead", filmstrip:"fgmartialarts01", seq:[18, 19, 20, 20, 21, 22, 23, 24]}, {name:"martial-hituppercut", filmstrip:"fgmartialarts01", seq:[56, 57, 58]}, {name:"martial-hituppercutfall", filmstrip:"fgmartialarts01", seq:[56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68]}, {name:"martial-jumpa", filmstrip:"fgmartialarts01", seq:[32, 33]}, {name:"martial-jumpb", filmstrip:"fgmartialarts01", seq:[11, 55]}, {name:"martial-jumpc", filmstrip:"fgmartialarts01", seq:[11, 15]}, {name:"martial-spinjump", filmstrip:"fgmartialarts01", seq:[34, 35, 36, 37, 38, 39, 40, 41]}];
}
Symbol 1231 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.7");
}
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;
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) {
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) {
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;
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) {
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 _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
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;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_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 1232 MovieClip [__Packages.TycoonGame] Frame 0
class TycoonGame
{
var date, day, month, months, years, frames, money, framesperday, dayspermonth, invTimes, thismonthsincomes, thismonthsexpenses, Expenses, Incomes, Moneys, Employees, Unemployed, despidos, Teams, Researchs, Projects, Games, Types;
function TycoonGame (gen, port) {
date = 0;
day = 0;
month = 0;
months = 0;
years = 0;
frames = 0;
money = 10000;
framesperday = 10;
dayspermonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
invTimes = [-1, -1, -1];
thismonthsincomes = 0;
thismonthsexpenses = 0;
Expenses = new Statistic();
Incomes = new Statistic();
Moneys = new Statistic();
Expenses.addS(0);
Incomes.addS(0);
Moneys.addS(money);
Employees = new Array();
Unemployed = new Array();
despidos = 0;
var _local2 = 0;
while (_local2 < 20) {
newUnemployed();
_local2++;
}
var _local3;
_local3 = new Employee();
_local3.eProgramming = 5;
_local3.eArt2D = 5;
_local3.eArt3D = 5;
_local3.eDesign = 5;
_local3.eInnovation = 5;
_local3.eEnglish = 5;
_local3.eMotivation = 100;
_local3.eRecommendedPay = 0;
_local3.ePay = 0;
_local3.gender = gen;
_local3.eName = _local3.gName(gen);
_local3.portrait = port;
Employees.push(_local3);
Teams = new Array();
Researchs = new Research();
Projects = new Array();
Games = new Array();
Types = new Array();
genTypes();
}
function run() {
frames++;
if (frames == framesperday) {
frames = 0;
day++;
date++;
tickDay();
if (money < 0) {
return(false);
}
}
if (day == dayspermonth[month]) {
months++;
month++;
frames = 0;
day = 0;
tickMonth();
Incomes.addS(thismonthsincomes);
Expenses.addS(thismonthsexpenses);
Moneys.addS(money);
_root.pantallas.refreshThis();
thismonthsincomes = 0;
thismonthsexpenses = 0;
if (money < 0) {
return(false);
}
}
if (month == 12) {
years++;
month = 0;
}
return(true);
}
function tickDay() {
var _local12;
var _local4 = [0, 0];
var _local6;
var _local11;
var _local8;
var _local7 = 0;
var _local5;
var _local10;
var _local9;
var _local3 = 0;
while (_local3 < Teams.length) {
if (Teams[_local3].tOccupation == 1) {
_local6 = calcCapacidad(_local3);
_local4[0] = _local4[0] + _local6[0];
_local4[1] = _local4[1] + _local6[1];
}
_local3++;
}
_local11 = getCurrentInv();
_local7 = (((_local11[0] != -1) ? 1 : 0) + ((_local11[1] != -1) ? 1 : 0)) + ((_local11[2] != -1) ? 1 : 0);
_local3 = 0;
while (_local3 < _local7) {
_local5 = ((_local4[0] + _local4[1]) / 2) / _local7;
_local8 = Researchs.Investigate(_local11[_local3], _local5);
if (_local5 > 0) {
invTimes[_local3] = _local8 / _local5;
} else {
invTimes[_local3] = -1;
}
_local3++;
}
_local3 = 0;
while (_local3 < Projects.length) {
if (Projects[_local3].work(getProjectEfficiency(_local3)) == true) {
_local10 = makeRevenues(Types[Projects[_local3].pTipoNum].expect(), Projects[_local3].pAverages, Projects[_local3].pPoints);
_local9 = new Game(Projects[_local3].pName, Projects[_local3].pType, Projects[_local3].pGenre, Projects[_local3].pTipoNum, Projects[_local3].pAverages, _local10, date);
Games.push(_local9);
delProject(_local3);
if (_root.clipjuego != undefined) {
_root.clipjuego.refreshThisToo();
}
_root.btn_desactivado._visible = false;
}
_local3++;
}
_root.pantallas.refreshThis();
}
function tickMonth() {
var _local2;
var _local4 = 1;
while (_local4 < Employees.length) {
_local2 = Math.floor(Employees[_local4].ePay / 12);
money = money - _local2;
thismonthsexpenses = thismonthsexpenses + _local2;
_local4++;
}
var _local3 = 0;
while (_local3 < Games.length) {
_local4 = 0;
while (_local4 < 6) {
_local2 = (Advertising.aCosts[_local4] * Games[_local3].publi.aAdverts[_local4]) / 100;
money = money - _local2;
thismonthsexpenses = thismonthsexpenses + _local2;
_local4++;
}
_local3++;
}
_local4 = 0;
while (_local4 < Games.length) {
_local2 = Games[_local4].copies.calcCosts();
money = money - _local2;
thismonthsexpenses = thismonthsexpenses + _local2;
_local4++;
}
_local4 = 0;
while (_local4 < Games.length) {
_local2 = Games[_local4].getCurrentRev(date, Games[_local4].publi.getPQuality(), Games[_local4].copies.calcQuality());
money = money + _local2;
thismonthsincomes = thismonthsincomes + _local2;
_local4++;
}
var _local6;
_local4 = 0;
while (_local4 < random(4)) {
_local6 = Math.random();
if ((_local6 > 0.5) && (Unemployed.length > 0)) {
var _local5 = random(Unemployed.length);
Unemployed = Unemployed.slice(0, _local5).concat(Unemployed.slice(_local5 + 1, Unemployed.length));
} else {
newUnemployed();
}
_local4++;
}
}
function newUnemployed() {
var _local2;
_local2 = new Employee();
Unemployed.push(_local2);
}
function Hire(eid) {
var _local2 = Unemployed[eid];
Employees.push(_local2);
Unemployed = Unemployed.slice(0, eid).concat(Unemployed.slice(eid + 1, Unemployed.length));
}
function checkIncome(eid) {
var _local2 = Moneys.yvalues[Math.max(months - 12, 0)];
var _local3 = Moneys.yvalues[months];
if (((money / 2) < Unemployed[eid].ePay) && ((_local3 - _local2) < Unemployed[eid].ePay)) {
return(true);
}
return(false);
}
function Fire(eid) {
if ((eid > 0) && (eid < Employees.length)) {
var _local4 = Employees[eid];
if (Employees[eid].eInTeam != -1) {
delFromTeam(eid);
}
var _local2 = 0;
while (_local2 < Teams.length) {
Teams[_local2].updateReferences(eid);
_local2++;
}
Unemployed.push(_local4);
Employees = Employees.slice(0, eid).concat(Employees.slice(eid + 1, Employees.length));
despidos++;
}
}
function avgSal() {
var _local3 = 0;
if (Employees.length > 1) {
var _local2 = 1;
while (_local2 < Employees.length) {
_local3 = _local3 + Employees[_local2].ePay;
_local2++;
}
return(_local3 / (Employees.length - 1));
}
return(0);
}
function newTeam() {
var _local2 = new Team([]);
Teams.push(_local2);
}
function delTeam(tid) {
if (tid < Teams.length) {
var _local2;
while (_local2 < Teams[tid].tEmployees.length) {
Employees[Teams[tid].tEmployees[_local2]].eInTeam = -1;
_local2++;
}
if (Teams[tid].tOccupation == 2) {
Projects[Teams[tid].tProject].delTeam(tid);
_local2 = 0;
while (_local2 < Projects.length) {
Projects[_local2].updateReferences(tid);
_local2++;
}
}
Teams = Teams.slice(0, tid).concat(Teams.slice(tid + 1, Teams.length));
}
}
function addToTeam(eid, tid) {
if ((tid < Teams.length) && (eid < Employees.length)) {
if (Employees[eid].eInTeam == tid) {
delFromTeam(eid);
} else {
if (Employees[eid].eInTeam != -1) {
delFromTeam(eid);
}
Teams[tid].addEmployee(eid);
Employees[eid].eInTeam = tid;
}
}
}
function delFromTeam(eid) {
var _local3;
if (eid < Employees.length) {
_local3 = Employees[eid].eInTeam;
if (_local3 > -1) {
Teams[_local3].delEmployee(eid);
}
Employees[eid].eInTeam = -1;
}
}
function addToLab(tid) {
if (Teams[tid].tOccupation == 2) {
Projects[Teams[tid].tProject].delTeam(tid);
}
if (tid < Teams.length) {
Teams[tid].tOccupation = 1;
}
}
function removeFromLab(tid) {
if (tid < Teams.length) {
Teams[tid].tOccupation = 0;
}
}
function calcCapacidad(tid) {
var _local4 = [0, 0];
if (tid < Teams.length) {
var _local2 = 0;
while (_local2 < Teams[tid].tEmployees.length) {
_local4[0] = _local4[0] + Employees[Teams[tid].tEmployees[_local2]].eInnovation;
_local4[1] = _local4[1] + (((((Employees[Teams[tid].tEmployees[_local2]].eInnovation + Employees[Teams[tid].tEmployees[_local2]].eEnglish) + Employees[Teams[tid].tEmployees[_local2]].eProgramming) + Employees[Teams[tid].tEmployees[_local2]].eDesign) + Employees[Teams[tid].tEmployees[_local2]].eArt2D) + Employees[Teams[tid].tEmployees[_local2]].eArt3D);
_local2++;
}
}
_local4[1] = Math.min(_local4[1] / 30, 10);
_local4[0] = Math.min(_local4[0] / 5, 10);
return(_local4);
}
function calcCapacidadProyectos(tid) {
var _local4 = [0, 0, 0, 0, 0];
if (tid < Teams.length) {
var _local2 = 0;
while (_local2 < Teams[tid].tEmployees.length) {
_local4[0] = _local4[0] + Employees[Teams[tid].tEmployees[_local2]].eProgramming;
_local4[1] = _local4[1] + Employees[Teams[tid].tEmployees[_local2]].eArt3D;
_local4[2] = _local4[2] + Employees[Teams[tid].tEmployees[_local2]].eArt2D;
_local4[3] = _local4[3] + Employees[Teams[tid].tEmployees[_local2]].eDesign;
_local4[4] = _local4[4] + Employees[Teams[tid].tEmployees[_local2]].eInnovation;
_local2++;
}
}
return(_local4);
}
function getCurrentInv() {
var _local4;
var _local5 = 0;
var _local6 = [-1, -1, -1];
var _local3 = 0;
while (_local3 < Researchs.Techs.length) {
if (Researchs.Techs[_local3].tInvestigated == false) {
_local4 = true;
var _local2 = 0;
while (_local2 < Researchs.Techs[_local3].tReqs.length) {
if (Researchs.Techs[Researchs.Techs[_local3].tReqs[_local2]].tInvestigated == false) {
_local4 = false;
}
_local2++;
}
if ((_local4 == true) && (_local5 < 3)) {
_local6[_local5] = _local3;
_local5++;
}
}
_local3++;
}
return(_local6);
}
function newProject(pname, tipo, genero, equipos, logo1, logo2) {
var _local4;
var _local5;
var _local2 = 0;
while (_local2 < Types.length) {
if (Types[_local2].tName == tipo) {
_local4 = _local2;
_local5 = Types[_local2].tPoints;
}
_local2++;
}
var _local7 = new Project(pname, tipo, genero, equipos, _local4, _local5, logo1, logo2);
_local2 = 0;
while (_local2 < equipos.length) {
if (Teams[equipos[_local2]].tOccupation == 2) {
Projects[Teams[equipos[_local2]].tProject].delTeam(equipos[_local2]);
}
Teams[equipos[_local2]].tOccupation = 2;
Teams[equipos[_local2]].tProject = Projects.length;
_local2++;
}
Projects.push(_local7);
}
function delProject(pid) {
var _local2 = 0;
while (_local2 < Teams.length) {
Teams[_local2].updateProject(pid);
_local2++;
}
Projects = Projects.slice(0, pid).concat(Projects.slice(pid + 1, Projects.length));
}
function addorRemoveFromProject(tid, pid) {
if (((tid < Teams.length) && (pid < Projects.length)) && (pid >= 0)) {
if ((Teams[tid].tOccupation == 2) && (Teams[tid].tProject == pid)) {
Projects[Teams[tid].tProject].delTeam(tid);
var _local2 = 0;
while (_local2 < Projects.length) {
Projects[_local2].updateReferences(tid);
_local2++;
}
Teams[tid].tOccupation = 0;
Teams[tid].tProject = -1;
} else {
addToProject(tid, pid);
}
}
}
function addToProject(tid, pid) {
if (((tid < Teams.length) && (pid < Projects.length)) && (pid >= 0)) {
if (Teams[tid].tOccupation == 2) {
Projects[Teams[tid].tProject].delTeam(tid);
}
Projects[pid].pTeams.push(tid);
Teams[tid].tOccupation = 2;
Teams[tid].tProject = pid;
}
}
function getTypes() {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < Types.length) {
if (Researchs.Techs[Types[_local2].tReqs].tInvestigated == true) {
_local3.push(_local2);
}
_local2++;
}
return(_local3);
}
function genTypes() {
var _local2;
_local2 = new Type("Flash Game", 6, 15, 30000, 50, 1, 0);
Types.push(_local2);
_local2 = new Type("Advergame", 6, 20, 10000, 10, 0, 0);
Types.push(_local2);
_local2 = new Type("Website", 0, 10, 2000, 3, 0, 0);
Types.push(_local2);
_local2 = new Type("PHP Multiplayer", 3, 60, 5000, 50, 2, 3);
Types.push(_local2);
_local2 = new Type("Flash Massively Multiplayer", 22, 365, 250000, 50, 2, 3);
Types.push(_local2);
_local2 = new Type("C++ Multiplayer", 17, 1460, 100000000, 2000, 2, 10);
Types.push(_local2);
_local2 = new Type("C++ Serious", 15, 730, 15000000, 30, 1, 10);
Types.push(_local2);
_local2 = new Type("C++ Casual", 12, 90, 1000000, 100, 1, 10);
Types.push(_local2);
}
function getProjectEfficiency(pid) {
var _local5 = [0, 0, 0, 0, 0, 0];
var _local4;
if ((pid >= 0) && (pid < Projects.length)) {
var _local3 = 0;
while (_local3 < Projects[pid].pTeams.length) {
_local4 = calcCapacidadProyectos(Projects[pid].pTeams[_local3]);
var _local2 = 0;
while (_local2 < 5) {
_local5[_local2] = _local5[_local2] + _local4[_local2];
_local2++;
}
_local3++;
}
}
return(_local5);
}
function makeRevenues(expect, qualities, points) {
var _local6;
var _local1 = 0;
var _local2 = new Array();
_local1 = _local1 + Math.min(qualities[0] / 25, 2 * points);
_local1 = _local1 + Math.min(qualities[1] / 25, points);
_local1 = _local1 + Math.min(qualities[2] / 25, points);
_local1 = _local1 + Math.min(qualities[3] / 25, points);
_local1 = _local1 + Math.min(qualities[4] / 25, points);
_local1 = (_local1 / 6) / points;
_local2 = _local2.concat(expect);
_local2.push(_local1);
return(_local2);
}
}
Symbol 1233 MovieClip [__Packages.Research] Frame 0
class Research
{
var Techs;
function Research () {
var _local2;
Techs = new Array();
_local2 = new Techtree("HTML", [], 100);
Techs.push(_local2);
_local2 = new Techtree("PHP", [0], 100);
Techs.push(_local2);
_local2 = new Techtree("MySQL", [1], 100);
Techs.push(_local2);
_local2 = new Techtree("Advanced PHP", [2], 100);
Techs.push(_local2);
_local2 = new Techtree("Javascript", [0], 100);
Techs.push(_local2);
_local2 = new Techtree("Ajax", [4, 1], 200);
Techs.push(_local2);
_local2 = new Techtree("Flash", [], 100);
Techs.push(_local2);
_local2 = new Techtree("Game Design", [], 100);
Techs.push(_local2);
_local2 = new Techtree("OOP", [], 300);
Techs.push(_local2);
_local2 = new Techtree("C++", [], 200);
Techs.push(_local2);
_local2 = new Techtree("Sprites", [9], 100);
Techs.push(_local2);
_local2 = new Techtree("3D Graphics", [10], 200);
Techs.push(_local2);
_local2 = new Techtree("Perspectives", [11], 100);
Techs.push(_local2);
_local2 = new Techtree("Server I/O", [12, 8], 300);
Techs.push(_local2);
_local2 = new Techtree("Advanced Graphics", [], 100);
Techs.push(_local2);
_local2 = new Techtree("C++ Effects", [14, 13], 100);
Techs.push(_local2);
_local2 = new Techtree("Advanced C++ Interactivity", [15], 300);
Techs.push(_local2);
_local2 = new Techtree("MMOGs in C++", [16], 1000);
Techs.push(_local2);
_local2 = new Techtree("PHP + Flash", [6, 3, 8], 100);
Techs.push(_local2);
_local2 = new Techtree("Flash Graphics", [18], 400);
Techs.push(_local2);
_local2 = new Techtree("Flash Effects", [19], 100);
Techs.push(_local2);
_local2 = new Techtree("Advanced Flash Interactivity", [20], 300);
Techs.push(_local2);
_local2 = new Techtree("MMOGs in Flash", [21], 1000);
Techs.push(_local2);
Complete(0);
Complete(6);
}
function Complete(tid) {
Techs[tid].tInvestigated = true;
Techs[tid].tDone = Techs[tid].tPoints;
}
function Investigate(tid, tp) {
Techs[tid].tDone = Techs[tid].tDone + tp;
if (Techs[tid].tDone >= Techs[tid].tPoints) {
Complete(tid);
}
return(Techs[tid].tPoints - Techs[tid].tDone);
}
}
Symbol 1234 MovieClip [__Packages.Techtree] Frame 0
class Techtree
{
var tName, tPoints, tReqs, tInvestigated, tDone;
function Techtree (vname, vreqs, points) {
tName = vname;
tPoints = points;
tReqs = vreqs;
tInvestigated = false;
tDone = 0;
}
function Investigate() {
tDone = tPoints;
tInvestigated = true;
}
}
Symbol 1235 MovieClip [__Packages.Statistic] Frame 0
class Statistic
{
var yvalues, maxy;
function Statistic () {
yvalues = new Array();
maxy = 0;
}
function addS(xval) {
yvalues.push(xval);
if (xval > maxy) {
maxy = xval;
}
}
}
Symbol 1236 MovieClip [__Packages.Employee] Frame 0
class Employee
{
var gender, eName, eSurname, eProgramming, eArt2D, eArt3D, eDesign, eEnglish, eInnovation, eMotivation, ePay, eRecommendedPay, eInTeam, portrait;
function Employee () {
gender = ((Math.random() > 0.7) ? true : false);
eName = gName(gender);
eSurname = gSurname();
var _local2 = Math.random();
var _local3 = Math.random();
eProgramming = gStat(_local2, _local3);
eArt2D = gStat(_local2, _local3);
eArt3D = gStat(_local2, _local3);
eDesign = gStat(_local2, _local3);
eEnglish = gStat(_local2, _local3);
eInnovation = gStat(_local2, _local3);
eMotivation = 50;
ePay = 1500 * (((((eProgramming + eArt2D) + eArt3D) + eDesign) + eEnglish) + eInnovation);
eRecommendedPay = ePay;
eInTeam = -1;
}
function gName(gender) {
if (gender == true) {
portrait = random(22);
return(fnames[random(fnames.length)]);
}
portrait = random(23);
return(mnames[random(mnames.length)]);
}
function gSurname() {
return(surnames[random(surnames.length)]);
}
function gStat(val, dis) {
var _local3;
var _local2;
var _local1;
_local3 = Math.random();
_local2 = (val * dis) + (_local3 * (1 - dis));
if (_local2 < 0.5) {
_local1 = 0.8 * _local2;
} else {
_local1 = 0.4 + ((_local2 - 0.5) * 1.2);
}
_local1 = Math.round(_local1 * 100) / 10;
return(_local1);
}
function gPay(e1, e2, e3, e4, e5, e6) {
var _local4 = (((((e1 + e2) + e3) + e4) + e5) + e6) / 6;
var _local3 = (((e1 + e2) + e3) + e4) / 4;
var _local10;
var _local1;
var _local2;
var _local9;
_local1 = Math.max(Math.max(e1, e2), Math.max(e3, e4));
_local2 = Math.min(_local1, _local3);
_local9 = (((0.4 * _local1) + (0.2 * _local4)) + (0.4 * _local2)) * 125000;
}
function risePay() {
ePay = Math.min(2 * eRecommendedPay, ePay + (0.1 * eRecommendedPay));
}
function lowerPay() {
ePay = Math.max(0.5 * eRecommendedPay, ePay - (0.1 * eRecommendedPay));
}
static var fnames = ["Ada", "Alice", "Ana", "Ashlee", "Augusta", "Brenda", "Carissa", "Caroline", "Chelsea", "Clara", "Claudette", "Deena", "Deidre", "Eula", "Fern", "Ila", "Iris", "Jacklyn", "Jeanine", "Jeannine", "Jerri", "Joanne", "Joy", "Joyce", "Karina", "Kate", "Laurel", "Leila", "Leonor", "Lily", "Lisa", "Lorrie", "Luisa", "Mamie", "Michelle", "Mildred", "Pearlie", "Penelope", "Priscilla", "Raquel", "Rosanne", "Sylvia", "Sabrina", "Tamika", "Tamra", "Tania", "Tanisha", "Thelma", "Trudy"];
static var mnames = ["Adalberto", "Alec", "Alton", "Arron", "Barney", "Benny", "Bernard", "Bruce", "Buford", "Carlton", "Chase", "Cliff", "Darius", "Devin", "Dewayne", "Domenic", "Eddie", "Emile", "Garland", "Gil", "Glen", "Harvey", "Humberto", "Israel", "Jacques", "Jake", "Josef", "Kieth", "Kristofer", "Lincoln", "Lonnie", "Lowell", "Luciano", "Maximo", "Mickey", "Nathan", "Odell", "Oscar", "Ray", "Ron", "Scotty", "Shad", "Sid", "Solomon", "Stanford", "Stewart", "Thad", "Tory", "Wiley", "Zachary"];
static var surnames = ["Atkins", "Banks", "Bartlett", "Bender", "Bird", "Boyle", "Branch", "Buchanan", "Chandler", "Chapman", "Chavez", "Calderon", "Darcy", "Dennis", "Domenech", "Glass", "Hatfield", "Henderson", "Henry", "Hill", "Howe", "Hunt", "Johns", "Larson", "Lewis", "Kidd", "Kirby", "Kirkland", "Levine", "Lowery", "Lucas", "Massey", "Mathis", "Mcfadden", "Mcleod", "Montoya", "Mullen", "Nelson", "Ortega", "Peck", "Pena", "Ramsey", "Rhodes", "Sims", "Small", "Steele", "Wade", "Washington", "Whitney", "Winters"];
}
Symbol 1237 MovieClip [__Packages.Game] Frame 0
class Game
{
var pagado, pName, pType, pGenre, pTipoNum, pAverages, pExpectedRevenues, pDate, stats, publi, copies, reviews, reviewmags, pCoeff, vmax, vmin, vrand, ventas0;
function Game (nam, tipo, gen, numtipo, averag, expect, date) {
pagado = false;
pName = nam;
pType = tipo;
pGenre = gen;
pTipoNum = numtipo;
pAverages = averag;
pExpectedRevenues = expect;
pDate = date;
getmyRevenues();
stats = new Statistic();
publi = new Advertising();
copies = new Reviewcopies();
reviews = new Array();
reviewmags = new Array();
genReviews();
}
function getmyRevenues() {
var _local3 = (pExpectedRevenues[4] * 0.8) + 0.2;
var _local2 = 0.5 + (0.5 * Math.random());
pCoeff = (_local3 * _local2) * pExpectedRevenues[1];
vmax = (pExpectedRevenues[0] * pCoeff) / pExpectedRevenues[1];
vmin = ((0.2 * Math.random()) + 0.1) * vmax;
vrand = Math.min((0.05 + (0.1 * Math.random())) * vmax, vmin);
ventas0 = (0.1 * vmax) * 1;
}
function getCurrentRev(today, publi, rev) {
var _local2 = 0;
var _local3 = pExpectedRevenues[2];
if (_local3 == 1) {
if ((today - pDate) < 730) {
_local2 = (((1 + (0.1 * rev)) * (1 + (publi / 2))) * (((Math.pow(((730 - today) + pDate) / 730, 2) * (vmax - vmin)) + vmin) + (((Math.random() * 2) - 1) * vrand))) / 9;
} else {
_local2 = (((1 + (0.05 * rev)) * (1 + (publi / 2))) * (vmin + (((Math.random() * 2) - 1) * vrand))) / 9;
}
} else if (_local3 == 2) {
ventas0 = ventas0 + (((0.05 * vmax) * (((publi - 0.4) / 0.6) + (0.1 * rev))) * (Math.random() - 0.2));
ventas0 = Math.min(vmax * (0.95 + (0.1 * Math.random())), ventas0);
ventas0 = Math.max(ventas0, vmin / 10);
_local2 = ventas0;
} else if (pagado == false) {
_local2 = pCoeff * vmax;
pagado = true;
}
stats.addS(_local2);
return(_local2);
}
function genReviews() {
var _local3;
var _local4 = ((pTipoNum > 3) ? 7 : 3);
var _local2 = 0;
while (_local2 < (Math.random(5) + 4)) {
_local3 = Review.DoReview(_local4, pExpectedRevenues[4] * 10);
reviews.push(_local3);
reviewmags.push(Review.genMag());
_local2++;
}
}
}
Symbol 1238 MovieClip [__Packages.Advertising] Frame 0
class Advertising
{
var aAdverts;
function Advertising () {
aAdverts = [0, 0, 0, 0, 0, 0];
}
function increase(spot) {
aAdverts[spot] = Math.min(aAdverts[spot] + 5, 100);
}
function decrease(spot) {
aAdverts[spot] = Math.max(aAdverts[spot] - 5, 0);
}
function getPQuality() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < 6) {
_local3 = _local3 + (aAdverts[_local2] / 600);
_local2++;
}
return(_local3);
}
static var aCosts = [10000, 10000, 10000, 10000, 10000, 10000];
}
Symbol 1239 MovieClip [__Packages.Reviewcopies] Frame 0
class Reviewcopies
{
var options, amt;
function Reviewcopies () {
options = [1, 0, 0, 0, 0];
amt = 0;
}
function calcCosts() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < 5) {
_local3 = _local3 + (options[_local2] * costs[_local2]);
_local2++;
}
_local3 = _local3 * amt;
return(_local3);
}
function calcQuality() {
var _local3 = 0;
var _local4;
var _local2 = 0;
while (_local2 < 5) {
_local3 = _local3 + options[_local2];
_local2++;
}
_local4 = (amt * _local3) / 250;
return(_local4);
}
function increaseamt() {
amt = Math.min(50, amt + 1);
}
function decreaseamt() {
amt = Math.max(0, amt - 1);
}
static var costs = [1, 0.5, 0.75, 5, 30];
}
Symbol 1240 MovieClip [__Packages.Review] Frame 0
class Review
{
function Review () {
}
static function DoReview(ambicion, diseno) {
var _local5 = ["It is a brilliant game; its quality is outstanding! ", "We are eagerly awaiting the expansion! ", "The game designers were inspired when they created this game!", "The world is immense and very detailed. ", "It will keep you on your toes while playing. ", "Nobody would have thought that this game could be made on such a low budget. ", "Such a good game cannot be real, I must be dreaming. Please don't wake me up. ", "This game should be among the top 10 games this year. ", "Addictive, fun and with impressive graphics. What else could a gamer ask for?", "If you're seeking a new source of entertainment, search no more. This game is what you're looking for. "];
var _local6 = ["This game will stay on the shelves. ", "We felt entertained for a while, but were soon bored. ", "It lacked the qualities that a good game requires. ", "It looks as if the game designers were thinking about something else when they made this game. ", "We almost fell asleep while playing. ", "This game could have been completed on half the budget. ", "I feel nauseated whenever I think of playing this game again. ", "Don't recommend it to your friends or they will hate you. ", "Did 8 year olds make this game?", "The game became more and more pointless as the levels progressed. "];
var _local4 = ((ambicion >= 5) ? 1 : 0);
var _local1 = ((diseno >= 5) ? 1 : 0);
var _local7 = (2 * _local4) + _local1;
var _local8 = ((_local4 == _local1) ? 0 : 1);
var _local9 = random(2);
var _local3 = "";
var _local2 = "";
if (_local1 == 1) {
_local2 = _local2 + _local5[random(_local5.length)];
} else {
_local2 = _local2 + _local6[random(_local6.length)];
}
_local3 = _local2;
return(_local3);
}
static function genMag() {
return(magazines[random(magazines.length)]);
}
static var design1 = new Array(4);
static var design2 = new Array(4);
static var programming1 = new Array(4);
static var programming2 = new Array(4);
static var contrarios = ["although"];
static var contrarios2 = ["but", "although", "however"];
static var iguales = ["and"];
static var magazines = ["Gamespot", "Gamesradar", "Silvia Domenech", "Gamedev", "Gamasutra", "Gamenews"];
}
Symbol 1241 MovieClip [__Packages.Team] Frame 0
class Team
{
var tEmployees, tLogoImg, tLogoCol, tOccupation, tProject;
function Team (members) {
tEmployees = members;
tLogoImg = random(6) + 1;
tLogoCol = random(5) + 1;
tOccupation = 0;
tProject = -1;
}
function addEmployee(eid) {
tEmployees.push(eid);
}
function delEmployee(eid) {
var _local3 = false;
var _local2 = 0;
while (_local2 < tEmployees.length) {
if (_local3 == false) {
if (tEmployees[_local2] == eid) {
_local3 = true;
tEmployees = tEmployees.slice(0, _local2).concat(tEmployees.slice(_local2 + 1, tEmployees.length));
}
}
_local2++;
}
}
function updateReferences(eid) {
var _local2 = 0;
while (_local2 < tEmployees.length) {
if (tEmployees[_local2] > eid) {
tEmployees[_local2]--;
}
_local2++;
}
}
function updateProject(pid) {
if (pid == tProject) {
tOccupation = 0;
tProject = -1;
} else if (tProject > pid) {
tProject--;
}
}
}
Symbol 1242 MovieClip [__Packages.Project] Frame 0
class Project
{
var pName, pTeams, pType, pGenre, pTipoNum, pPoints, pAverages, pDone, pLogo, pIcon;
function Project (nam, tipo, genero, equipos, tiponum, points, logo1, logo2) {
pName = nam;
pTeams = equipos;
pType = tipo;
pGenre = genero;
pTipoNum = tiponum;
pPoints = points;
pAverages = [0, 0, 0, 0, 0];
pDone = 0;
pLogo = logo1;
pIcon = logo2;
}
static function generateName() {
var _local2 = ["Mountains", "The Path", "The Lords", "The Lord", "The Adventure", "The Game", "The Truth", "History", "The Secret"];
var _local1 = ["of War", "of Life", "of the Rings", "of the Marks", "of the Clones", "of History"];
return((_local2[random(_local2.length)] + " ") + _local1[random(_local1.length)]);
}
static function generateGenre() {
var _local1 = ["Strategy", "Adventure", "Simulation", "RPG", "Sports", "Platformer", "Shooter"];
return(_local1[random(_local1.length)]);
}
function work(efficiencies) {
var _local4 = 0;
if (((((efficiencies[0] + efficiencies[1]) + efficiencies[2]) + efficiencies[3]) + efficiencies[4]) > 0) {
var _local2 = 0;
while (_local2 < 5) {
pAverages[_local2] = pAverages[_local2] + efficiencies[_local2];
_local2++;
}
pDone++;
}
if (pDone >= pPoints) {
return(true);
}
_local4 = _local4 + Math.min(pAverages[0] / 50, pPoints);
var _local2 = 1;
while (_local2 < 5) {
_local4 = _local4 + Math.min(pAverages[_local2] / 25, pPoints);
_local2++;
}
if ((_local4 / 5) >= pPoints) {
return(true);
}
return(false);
}
function delTeam(tid) {
var _local3 = false;
var _local2 = 0;
while (_local2 < pTeams.length) {
if (_local3 == false) {
if (pTeams[_local2] == tid) {
_local3 = true;
pTeams = pTeams.slice(0, _local2).concat(pTeams.slice(_local2 + 1, pTeams.length));
}
}
_local2++;
}
}
function updateReferences(tid) {
var _local2 = 0;
while (_local2 < pTeams.length) {
if (pTeams[_local2] > tid) {
pTeams[_local2]--;
}
_local2++;
}
}
}
Symbol 1243 MovieClip [__Packages.Type] Frame 0
class Type
{
var tName, tReqs, tPoints, tRevenue, tVariance, tType, tPersale;
function Type (ame, eqs, oints, enue, ance, ype, ersale) {
tName = ame;
tReqs = eqs;
tPoints = oints;
tRevenue = enue;
tVariance = ance;
tType = ype;
tPersale = ersale;
}
function expect() {
var _local2 = new Array();
_local2.push(tRevenue);
_local2.push(tVariance);
_local2.push(tType);
_local2.push(tPersale);
return(_local2);
}
}
Symbol 1244 MovieClip [__Packages.Auxiliary] Frame 0
class Auxiliary
{
function Auxiliary () {
}
static function resetBarra(what, bar, max) {
var _local2;
var _local5;
var _local4;
_local2 = (-what._height) + max;
what._y = Math.max(what._y, _local2);
what._y = Math.min(what._y, 0);
_local4 = what._y / _local2;
_local5 = bar.maxy * _local4;
bar._y = _local5 + bar.oy;
}
static function moveDown(what, bar, distance, max) {
var _local2;
var _local5;
var _local4;
_local2 = (-what._height) + max;
what._y = Math.max(what._y - distance, _local2);
what._y = Math.min(what._y, 0);
_local4 = what._y / _local2;
_local5 = bar.maxy * _local4;
bar._y = _local5 + bar.oy;
}
static function moveUp(what, bar, distance, max) {
var _local4;
var _local5;
var _local3;
_local4 = (-what._height) + max;
what._y = Math.min(what._y + distance, 0);
_local3 = what._y / _local4;
_local5 = bar.maxy * _local3;
bar._y = _local5 + bar.oy;
}
static function displayNumAsText(num) {
var _local1 = num;
var _local3 = "";
var _local4 = 0;
while ((_local1 / 10) >= 1) {
_local4++;
num = Math.round(_local1 - (Math.floor(_local1 / 10) * 10));
if (num == 10) {
num = 0;
}
_local3 = num + _local3;
_local1 = Math.round(_local1 - num) / 10;
if (_local4 == 3) {
_local3 = "," + _local3;
_local4 = 0;
}
}
_local3 = _local1 + _local3;
return(_local3);
}
static function displayDate(days) {
var _local2;
var _local3;
var _local4;
var _local1 = "";
_local2 = Math.floor(days / 365);
_local3 = Math.floor((days - (_local2 * 365)) / 30);
_local4 = Math.floor((days - (_local2 * 365)) - (_local3 * 30));
_local1 = _local1 + ((_local2 > 0) ? (_local2 + " years ") : "");
_local1 = _local1 + ((_local3 > 0) ? (_local3 + " months ") : "");
_local1 = _local1 + ((_local4 > 0) ? (_local4 + " days ") : "");
return(_local1);
}
static function borra(graph) {
graph.clear();
for (var _local2 in graph) {
graph[_local2].removeMovieClip();
}
}
static function pinta(vals, graph, color, vals2) {
var _local3 = 0;
var _local17 = 0;
var _local16 = 45;
if (vals.yvalues.length > 0) {
graph.lineStyle(1, color, 100);
var _local9 = 554 / (_local16 - 1);
if (vals2 == undefined) {
var _local5 = 316.9 / vals.maxy;
} else {
var _local5 = 316.9 / Math.max(vals.maxy, vals2.maxy);
}
var _local8 = Math.max(0, vals.yvalues.length - _local16);
var _local18 = Math.min(_local16, vals.yvalues.length);
var _local15 = Math.max(0, (_root.myGame.months - vals.yvalues.length) + 1);
_local15 = Math.max(_local15, (_root.myGame.months - _local16) + 1);
var _local4 = 0;
while (_local4 < 7) {
graph.attachMovie("grafica_dinero", "dinero" + _local4, graph.getNextHighestDepth(), {_x:0, _y:-48.7666666666667 * _local4, dinero:Math.round((48.7666666666667 * _local4) / _local5)});
_local4++;
}
_local4 = 0;
while (_local4 < 9) {
graph.attachMovie("grafica_fecha", "grafica" + _local4, graph.getNextHighestDepth(), {_x:_local3 + ((5 * _local4) * _local9), _y:0, fecha:(5 * _local4) + _local15});
_local4++;
}
graph.moveTo(_local3, (-vals.yvalues[_local8]) * _local5);
graph.attachMovie("ventas", "ventas" + _local8, graph.getNextHighestDepth(), {_x:_local3, _y:(-vals.yvalues[_local8]) * _local5, ventas:Math.round(vals.yvalues[_local8])});
_local4 = Math.max(1, _local8 + 1);
while (_local4 < vals.yvalues.length) {
_local3 = _local3 + _local9;
graph.lineTo(_local3, (-vals.yvalues[_local4]) * _local5);
graph.attachMovie("ventas", "ventas" + _local4, graph.getNextHighestDepth(), {_x:_local3, _y:(-vals.yvalues[_local4]) * _local5, ventas:Math.round(vals.yvalues[_local4])});
_local4++;
}
if (vals2 != undefined) {
_local3 = 0;
graph.lineStyle(1, 16711680, 100);
graph.moveTo(_local3, (-vals2.yvalues[_local8]) * _local5);
graph.attachMovie("ventas", "ventas2" + _local8, graph.getNextHighestDepth(), {_x:_local3, _y:(-vals2.yvalues[_local8]) * _local5, ventas:Math.round(vals2.yvalues[_local8])});
_local4 = Math.max(1, _local8 + 1);
while (_local4 < vals2.yvalues.length) {
_local3 = _local3 + _local9;
graph.lineTo(_local3, (-vals2.yvalues[_local4]) * _local5);
graph.attachMovie("ventas", "ventas2" + _local4, graph.getNextHighestDepth(), {_x:_local3, _y:(-vals2.yvalues[_local4]) * _local5, ventas:Math.round(vals2.yvalues[_local4])});
_local4++;
}
}
}
}
}
Symbol 311 Button
on (release) {
subpant._visible = true;
}
Symbol 313 Button
on (release) {
if (_root.init == true) {
_root.juststarted = 1;
gotoAndStop ("gestion");
} else {
subpant._visible = true;
}
}
Symbol 315 Button
on (release) {
gotoAndStop ("credits");
}
Symbol 321 Button
on (release) {
gotoSite();
}
Symbol 337 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 339 Button
on (rollOver) {
this.enabled = false;
}
Symbol 343 Button
on (release) {
_root.myGame = new TycoonGame(true, fportrait._currentframe);
init = 0;
_root.startGame();
}
Symbol 344 Button
on (release) {
_root.myGame = new TycoonGame(false, mportrait._currentframe);
init = 0;
_root.startGame();
}
Instance of Symbol 81 MovieClip [retratom] "mportrait" in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(this._totalframes) + 1);
}
Symbol 362 MovieClip Frame 28
_parent.gotoAndStop("still");
Symbol 377 MovieClip Frame 14
_parent.gotoAndStop("still");
Symbol 388 MovieClip Frame 1
a = random(11);
gotoAndPlay(a);
Symbol 389 MovieClip Frame 1
stop();
Symbol 391 Button
on (release) {
gotoAndStop (4);
}
Symbol 452 MovieClip Frame 1
a = random(60);
gotoAndPlay(a);
Symbol 452 MovieClip Frame 130
b = random(60);
gotoAndPlay(b + 130);
Symbol 467 MovieClip Frame 1
a = random(60);
gotoAndPlay(a);
Symbol 467 MovieClip Frame 130
b = random(60);
gotoAndPlay(b + 130);
Symbol 478 MovieClip Frame 1
a = random(60);
gotoAndPlay(a);
Symbol 478 MovieClip Frame 130
b = random(60);
gotoAndPlay(b + 130);
Symbol 489 MovieClip Frame 1
a = random(60);
gotoAndPlay(a);
Symbol 489 MovieClip Frame 131
b = random(60);
gotoAndPlay(b + 130);
Symbol 500 MovieClip Frame 1
a = random(60);
gotoAndPlay(a);
Symbol 500 MovieClip Frame 131
b = random(60);
gotoAndPlay(b + 130);
Symbol 501 MovieClip Frame 1
stop();
Symbol 501 MovieClip Frame 2
stop();
Symbol 501 MovieClip Frame 3
stop();
Symbol 501 MovieClip Frame 4
stop();
Symbol 514 MovieClip Frame 1
a = random(60);
gotoAndPlay(a);
Symbol 514 MovieClip Frame 131
b = random(60);
gotoAndPlay(b + 130);
Symbol 525 MovieClip Frame 1
a = random(60);
gotoAndPlay(a);
Symbol 525 MovieClip Frame 131
b = random(60);
gotoAndPlay(b + 130);
Symbol 526 MovieClip Frame 2
stop();
Symbol 536 MovieClip Frame 1
stop();
Symbol 536 MovieClip Frame 2
stop();
Symbol 543 MovieClip Frame 1
stop();
Symbol 543 MovieClip Frame 2
stop();
Symbol 558 MovieClip Frame 1
a = random(60);
gotoAndPlay(a);
Symbol 558 MovieClip Frame 130
b = random(60);
gotoAndPlay(b + 130);
Symbol 569 MovieClip Frame 1
a = random(60);
gotoAndPlay(a);
Symbol 569 MovieClip Frame 130
b = random(60);
gotoAndPlay(b + 130);
Symbol 580 MovieClip Frame 1
a = random(60);
gotoAndPlay(a);
Symbol 580 MovieClip Frame 130
b = random(60);
gotoAndPlay(b + 130);
Symbol 634 MovieClip Frame 1
a = random(60);
gotoAndPlay(a);
Symbol 634 MovieClip Frame 132
b = random(60);
gotoAndPlay(b + 130);
Symbol 687 MovieClip Frame 1
a = random(60);
gotoAndPlay(a);
Symbol 687 MovieClip Frame 130
b = random(60);
gotoAndPlay(b + 130);
Symbol 699 MovieClip Frame 1
a = random(60);
gotoAndPlay(a);
Symbol 699 MovieClip Frame 130
b = random(60);
gotoAndPlay(b + 130);
Symbol 711 Button
on (release) {
pantallas._visible = true;
pantallas.gotoAndStop("finanzas");
}
Symbol 714 Button
on (release) {
pantallas._visible = true;
pantallas.gotoAndStop("contratacion");
}
Symbol 717 Button
on (release) {
pantallas._visible = true;
pantallas.gotoAndStop("equipos");
}
Symbol 719 Button
on (release) {
pantallas._visible = true;
pantallas.gotoAndStop("plantilla");
}
Symbol 734 Button
on (release) {
pantallas._visible = false;
gotoAndStop ("distribucion");
}
Symbol 738 Button
on (release) {
pantallas._visible = false;
gotoAndStop ("marketing");
}
Symbol 742 Button
on (release) {
pantallas._visible = false;
gotoAndStop ("resultados");
}
Symbol 746 Button
on (release) {
pantallas._visible = false;
gotoAndStop ("gestion");
}
Symbol 749 Button
on (release) {
pantallas._visible = false;
gotoAndStop ("laboratorio");
}
Symbol 751 Button
on (release) {
pantallas._visible = false;
gotoAndStop ("desarrollo");
}
Symbol 756 Button
on (release) {
stopAllSounds();
gotoAndStop (4);
}
Symbol 764 Button
on (release) {
_root.pantallas._visible = false;
}
Symbol 770 Button
on (release) {
Auxiliary.moveUp(empleados.clips, barra, 20, 320);
muestraFrame();
}
Symbol 772 Button
on (release) {
Auxiliary.moveDown(empleados.clips, barra, 20, 320);
muestraFrame();
}
Symbol 796 Button
on (release) {
if (_root.myGame.checkIncome(eshowing) == true) {
mensaje._visible = true;
} else {
_root.myGame.Hire(eshowing);
refreshThis();
}
}
Symbol 813 Button
on (release) {
this._visible = false;
}
Symbol 818 Button
on (release) {
_root.myGame.Hire(_parent.eshowing);
_parent.refreshThis();
this._visible = false;
}
Symbol 819 MovieClip Frame 1
oscu._visible = false;
stop();
Symbol 832 Button
on (release) {
_root.myGame.Employees[eshowing].risePay();
displayEmployee(eshowing);
}
Symbol 836 Button
on (release) {
_root.myGame.Employees[eshowing].lowerPay();
displayEmployee(eshowing);
}
Symbol 841 Button
on (release) {
_root.myGame.Fire(eshowing);
refreshThis();
}
Symbol 849 Button
on (release) {
_root.myGame.newTeam();
refreshThis();
}
Symbol 853 Button
on (release) {
_root.myGame.delTeam(tshowing);
refreshThis();
}
Symbol 855 Button
on (release) {
Auxiliary.moveUp(equipos.clips, barra, 20, 235);
}
Symbol 856 Button
on (release) {
Auxiliary.moveDown(equipos.clips, barra, 20, 235);
}
Symbol 857 Button
on (release) {
Auxiliary.moveUp(empleados.clips, barra2, 20, 320);
}
Symbol 858 Button
on (release) {
Auxiliary.moveDown(empleados.clips, barra2, 20, 320);
}
Symbol 866 Button
on (release) {
_root.myGame.addToLab(tshowing);
refreshThis();
}
Symbol 870 Button
on (release) {
_root.myGame.removeFromLab(tshowing);
refreshThis();
}
Symbol 876 Button
on (release) {
Auxiliary.moveUp(equipos.clips, barra, 20, 290);
updateBarra();
}
Symbol 877 Button
on (release) {
Auxiliary.moveDown(equipos.clips, barra, 20, 290);
updateBarra();
}
Symbol 886 MovieClip Frame 1
stop();
Symbol 940 Button
on (release) {
genLogo();
}
Symbol 946 Button
on (release) {
_root.myGame.newProject(nombreJuego, nombreTipo, nombreGenero, calcEquipos(), logo._currentframe, logo.icono._currentframe);
genName();
gotoAndStop ("proyectosactuales");
}
Symbol 954 Button
on (release) {
Auxiliary.moveUp(equipos.clips, barra, 20, 235);
updateBarra();
}
Symbol 955 Button
on (release) {
Auxiliary.moveDown(equipos.clips, barra, 20, 235);
updateBarra();
}
Symbol 959 Button
on (release) {
var tipos = _root.myGame.getTypes();
nombreTipo = _root.myGame.Types[tipos[random(tipos.length)]].tName;
}
Symbol 977 Button
on (release) {
Auxiliary.moveUp(_parent.proyectos.clips, barra, 20, 595);
_parent.updateBarra();
}
Symbol 978 Button
on (release) {
Auxiliary.moveDown(_parent.proyectos.clips, barra, 20, 595);
_parent.updateBarra();
}
Instance of Symbol 768 MovieClip "barra" in Symbol 979 MovieClip Frame 1
onClipEvent (load) {
this.oy = this._y;
this.maxy = 489;
}
Symbol 995 Button
on (release) {
_root.myGame.Games[gshowing].publi.increase(0);
refreshThis();
}
Symbol 996 Button
on (release) {
_root.myGame.Games[gshowing].publi.decrease(0);
refreshThis();
}
Symbol 1002 Button
on (release) {
_root.myGame.Games[gshowing].publi.increase(1);
refreshThis();
}
Symbol 1003 Button
on (release) {
_root.myGame.Games[gshowing].publi.decrease(1);
refreshThis();
}
Symbol 1006 Button
on (release) {
_root.myGame.Games[gshowing].publi.increase(2);
refreshThis();
}
Symbol 1007 Button
on (release) {
_root.myGame.Games[gshowing].publi.decrease(2);
refreshThis();
}
Symbol 1010 Button
on (release) {
_root.myGame.Games[gshowing].publi.increase(3);
refreshThis();
}
Symbol 1011 Button
on (release) {
_root.myGame.Games[gshowing].publi.decrease(3);
refreshThis();
}
Symbol 1014 Button
on (release) {
_root.myGame.Games[gshowing].publi.increase(4);
refreshThis();
}
Symbol 1015 Button
on (release) {
_root.myGame.Games[gshowing].publi.decrease(4);
refreshThis();
}
Symbol 1018 Button
on (release) {
_root.myGame.Games[gshowing].publi.increase(5);
refreshThis();
}
Symbol 1019 Button
on (release) {
_root.myGame.Games[gshowing].publi.decrease(5);
refreshThis();
}
Symbol 1026 Button
on (release) {
_root.myGame.Games[gshowing].copies.increaseamt();
refreshThis();
}
Symbol 1027 Button
on (release) {
_root.myGame.Games[gshowing].copies.decreaseamt();
refreshThis();
}
Symbol 1038 Button
on (release) {
if (_parent.gshowing < _root.myGame.Games.length) {
_root.myGame.Games[_parent.gshowing].copies.options[toto] = ((_root.myGame.Games[_parent.gshowing].copies.options[toto] == 1) ? 0 : 1);
_parent.refreshThis();
}
}
Symbol 1046 Button
on (release) {
this._visible = false;
}
Symbol 1052 Button
on (release) {
Auxiliary.moveUp(reviews.clips, barr2, 20, 320);
}
Symbol 1053 Button
on (release) {
Auxiliary.moveDown(reviews.clips, barra, 20, 320);
}
Symbol 1076 Button
on (release) {
graphica = !graphica;
refreshThis();
}
Symbol 1078 MovieClip Frame 1
function updateThis() {
}
fondopantallas.enabled = false;
var gshowing = 0;
stop();
Symbol 1078 MovieClip Frame 2
function refreshThis() {
showUnemployed();
displayEmployee(eshowing);
Auxiliary.resetBarra(empleados.clips, barra, 320);
}
function muestraFrame() {
if (eshowing < _root.myGame.Unemployed.length) {
empleados.frame._x = empleados.clips["retrato" + eshowing]._x;
empleados.frame._y = empleados.clips["retrato" + eshowing]._y + empleados.clips._y;
} else {
empleados.frame._x = -100;
}
}
function showUnemployed() {
for (var _local2 in empleados.clips) {
empleados.clips[_local2].removeMovieClip();
}
var _local2 = 0;
while (_local2 < _root.myGame.Unemployed.length) {
xi = 42 + ((_local2 % 3) * 95);
yi = 47.5 + (Math.floor(_local2 / 3) * 110);
empleados.clips.attachMovie("retrato" + (_root.myGame.Unemployed[_local2].gender ? "f" : "m"), "retrato" + _local2, empleados.clips.getNextHighestDepth(), {_x:xi, _y:yi});
empleados.clips["retrato" + _local2].gotoAndStop(_root.myGame.Unemployed[_local2].portrait);
empleados.clips.attachMovie("boton_retrato", "boton_retrato" + _local2, empleados.clips.getNextHighestDepth(), {_x:xi, _y:yi});
empleados.clips["boton_retrato" + _local2].eid = _local2;
empleados.clips["boton_retrato" + _local2].gotoAndStop(1);
_local2++;
}
}
function displayEmployee(id) {
if (_root.myGame.Unemployed.length > id) {
botoncillo._visible = false;
this["pic" + (_root.myGame.Unemployed[id].gender ? "f" : "m")]._visible = true;
this["pic" + (_root.myGame.Unemployed[id].gender ? "m" : "f")]._visible = false;
this["pic" + (_root.myGame.Unemployed[id].gender ? "f" : "m")].gotoAndStop(_root.myGame.Unemployed[id].portrait);
eshowing = id;
pointer = _root.myGame.Unemployed[id];
ename = (pointer.eName + " ") + pointer.eSurname;
esalary = Auxiliary.displayNumAsText(pointer.eRecommendedPay);
eprog.mask._xscale = pointer.eProgramming * 10;
e2d.mask._xscale = pointer.eArt2D * 10;
e3d.mask._xscale = pointer.eArt3D * 10;
edes.mask._xscale = pointer.eDesign * 10;
einn.mask._xscale = pointer.eInnovation * 10;
eeng.mask._xscale = pointer.eEnglish * 10;
} else if (_root.myGame.Unemployed.length > 0) {
botoncillo._visible = false;
eshowing = 0;
refreshThis();
} else {
botoncillo._visible = true;
}
muestraFrame();
}
var xi;
var yi;
var eshowing = 0;
botoncillo.enabled = false;
Auxiliary.resetBarra(empleados.clips, barra, 320);
showUnemployed();
displayEmployee(eshowing);
muestraFrame();
mensaje._visible = false;
Instance of Symbol 768 MovieClip "barra" in Symbol 1078 MovieClip Frame 2
onClipEvent (load) {
this.oy = this._y;
this.maxy = 249.5;
}
Symbol 1078 MovieClip Frame 3
function refreshThis() {
showEmployees();
displayEmployee(eshowing);
Auxiliary.resetBarra(empleados.clips, barra, 320);
}
function muestraFrame() {
if (eshowing < _root.myGame.Employees.length) {
empleados.frame._x = empleados.clips["retrato" + eshowing]._x;
empleados.frame._y = empleados.clips["retrato" + eshowing]._y + empleados.clips._y;
} else {
empleados.frame._x = -100;
}
}
function showEmployees() {
for (var _local2 in empleados.clips) {
empleados.clips[_local2].removeMovieClip();
}
var _local2 = 0;
while (_local2 < _root.myGame.Employees.length) {
xi = 42 + ((_local2 % 3) * 95);
yi = 47.5 + (Math.floor(_local2 / 3) * 110);
empleados.clips.attachMovie("retrato" + (_root.myGame.Employees[_local2].gender ? "f" : "m"), "retrato" + _local2, empleados.clips.getNextHighestDepth(), {_x:xi, _y:yi});
empleados.clips["retrato" + _local2].gotoAndStop(_root.myGame.Employees[_local2].portrait);
empleados.clips.attachMovie("boton_retrato", "boton_retrato" + _local2, empleados.clips.getNextHighestDepth(), {_x:xi, _y:yi});
empleados.clips["boton_retrato" + _local2].eid = _local2;
empleados.clips["boton_retrato" + _local2].gotoAndStop(1);
_local2++;
}
}
function displayEmployee(id) {
if (id == 0) {
despido._visible = false;
btnmas._visible = false;
btnmen._visible = false;
} else {
despido._visible = true;
btnmas._visible = true;
btnmen._visible = true;
}
if (_root.myGame.Employees.length > id) {
this["pic" + (_root.myGame.Employees[id].gender ? "f" : "m")]._visible = true;
this["pic" + (_root.myGame.Employees[id].gender ? "m" : "f")]._visible = false;
this["pic" + (_root.myGame.Employees[id].gender ? "f" : "m")].gotoAndStop(_root.myGame.Employees[id].portrait);
eshowing = id;
pointer = _root.myGame.Employees[id];
ename = (pointer.eName + " ") + pointer.eSurname;
esalary = Auxiliary.displayNumAsText(pointer.eRecommendedPay);
if (pointer.ePay > pointer.eRecommendedPay) {
esalarybg.greenbg._visible = true;
esalarybg.greenbg._alpha = ((pointer.ePay / pointer.eRecommendedPay) - 1) * 100;
esalarybg.redbg._visible = false;
} else if (pointer.ePay < pointer.eRecommendedPay) {
esalarybg.greenbg._visible = false;
esalarybg.redbg._visible = true;
esalarybg.redbg._alpha = (1 - (pointer.ePay / pointer.eRecommendedPay)) * 200;
} else {
esalarybg.greenbg._visible = false;
esalarybg.redbg._visible = false;
}
eprog.mask._xscale = pointer.eProgramming * 10;
e2d.mask._xscale = pointer.eArt2D * 10;
e3d.mask._xscale = pointer.eArt3D * 10;
edes.mask._xscale = pointer.eDesign * 10;
einn.mask._xscale = pointer.eInnovation * 10;
eeng.mask._xscale = pointer.eEnglish * 10;
emot.mask._xscale = pointer.eMotivation;
esal = pointer.ePay;
} else if (_root.myGame.Employees.length > 0) {
eshowing = 0;
refreshThis();
}
muestraFrame();
}
var xi;
var yi;
var eshowing = 0;
Auxiliary.resetBarra(empleados.clips, barra, 320);
showEmployees();
displayEmployee(eshowing);
muestraFrame();
Symbol 1078 MovieClip Frame 4
function refreshThis() {
showEmployees();
displayTeam();
Auxiliary.resetBarra(equipos.clips, barra, 235);
Auxiliary.resetBarra(empleados.clips, barra2, 320);
}
function addToTeam(eid) {
_root.myGame.addToTeam(eid, tshowing);
}
function displayTeam() {
if (tshowing >= _root.myGame.Teams.length) {
tshowing = Math.max(_root.myGame.Teams.length - 1, 0);
}
var _local2 = 0;
while (_local2 < _root.myGame.Teams.length) {
equipos.clips["equipo" + _local2].frame._visible = false;
_local2++;
}
_local2 = 0;
while (_local2 < _root.myGame.Employees.length) {
empleados.clips["boton_retrato" + _local2].frame._visible = false;
_local2++;
}
if (tshowing < _root.myGame.Teams.length) {
equipos.clips["equipo" + tshowing].frame._visible = true;
_local2 = 0;
while (_local2 < _root.myGame.Teams[tshowing].tEmployees.length) {
empleados.clips["boton_retrato" + _root.myGame.Teams[tshowing].tEmployees[_local2]].frame._visible = true;
_local2++;
}
}
}
function showEmployees() {
for (var _local2 in equipos.clips) {
equipos.clips[_local2].removeMovieClip();
}
var _local2 = 0;
while (_local2 < _root.myGame.Teams.length) {
var _local3 = _root.myGame.Teams[_local2];
xi = 46.2 + ((_local2 % 2) * 113);
yi = 52.3 + (Math.floor(_local2 / 2) * 126);
equipos.clips.attachMovie("equipos", "equipo" + _local2, equipos.clips.getNextHighestDepth(), {_x:xi, _y:yi});
equipos.clips.attachMovie("boton_retrato", "boton_retrato" + _local2, equipos.clips.getNextHighestDepth(), {_x:xi, _y:yi, tid:_local2});
equipos.clips["boton_retrato" + _local2].gotoAndStop(2);
equipos.clips["equipo" + _local2].gotoAndStop(_local3.tLogoImg);
equipos.clips["equipo" + _local2].bg.gotoAndStop(_local3.tLogoCol);
equipos.clips["equipo" + _local2].frame._visible = false;
_local2++;
}
for (_local2 in empleados.clips) {
empleados.clips[_local2].removeMovieClip();
}
_local2 = 0;
while (_local2 < _root.myGame.Employees.length) {
xi = 42 + ((_local2 % 3) * 95);
yi = 47.5 + (Math.floor(_local2 / 3) * 110);
empleados.clips.attachMovie("retrato" + (_root.myGame.Employees[_local2].gender ? "f" : "m"), "retrato" + _local2, empleados.clips.getNextHighestDepth(), {_x:xi, _y:yi});
empleados.clips["retrato" + _local2].gotoAndStop(_root.myGame.Employees[_local2].portrait);
empleados.clips.attachMovie("boton_retrato", "boton_retrato" + _local2, empleados.clips.getNextHighestDepth(), {_x:xi, _y:yi});
empleados.clips["boton_retrato" + _local2].eid = _local2;
empleados.clips["boton_retrato" + _local2].gotoAndStop(3);
_local2++;
}
}
var xi;
var yi;
var tshowing = 0;
Auxiliary.resetBarra(equipos.clips, barra, 235);
Auxiliary.resetBarra(empleados.clips, barra2, 320);
showEmployees();
displayTeam();
empleados.frame._x = -200;
Instance of Symbol 768 MovieClip "barra" in Symbol 1078 MovieClip Frame 4
onClipEvent (load) {
this.oy = this._y;
this.maxy = 160.2;
}
Instance of Symbol 768 MovieClip "barra2" in Symbol 1078 MovieClip Frame 4
onClipEvent (load) {
this.oy = this._y;
this.maxy = 249.5;
}
Symbol 1078 MovieClip Frame 5
function refreshThis() {
showEmployees();
displayTeam();
Auxiliary.resetBarra(equipos.clips, barra, 290);
updateBarra();
}
function updateBarra() {
equipos.asignados._y = equipos.asignados.oy + equipos.clips._y;
equipos.otros._y = equipos.otros.oy + equipos.clips._y;
}
function addToTeam(eid) {
_root.myGame.addToTeam(eid, tshowing);
}
function displayTeam() {
if (tshowing >= _root.myGame.Teams.length) {
tshowing = Math.max(_root.myGame.Teams.length - 1, 0);
}
var _local2 = 0;
while (_local2 < _root.myGame.Teams.length) {
equipos.clips["equipo" + _local2].frame._visible = false;
_local2++;
}
if (tshowing < _root.myGame.Teams.length) {
var _local3 = _root.myGame.Teams[tshowing];
pic.gotoAndStop(_local3.tLogoImg);
pic.bg.gotoAndStop(_local3.tLogoCol);
equipos.clips["equipo" + tshowing].frame._visible = true;
var _local4 = _root.myGame.calcCapacidad(tshowing);
icap.mask._xscale = _local4[0] * 10;
ical.mask._xscale = _local4[1] * 10;
}
}
function showEmployees() {
var _local3;
var _local4;
var _local5;
var _local7;
for (var _local2 in equipos.clips) {
equipos.clips[_local2].removeMovieClip();
}
equipos.asignados._y = 0;
equipos.asignados.oy = 0;
_local4 = 73.3;
_local3 = 46.2;
_local5 = 0;
_local7 = false;
var _local2 = 0;
while (_local2 < _root.myGame.Teams.length) {
if (_root.myGame.Teams[_local2].tOccupation == 1) {
_local7 = true;
var _local6 = _root.myGame.Teams[_local2];
equipos.clips.attachMovie("equipos", "equipo" + _local2, equipos.clips.getNextHighestDepth(), {_x:_local3, _y:_local4});
equipos.clips.attachMovie("boton_retrato", "boton_retrato" + _local2, equipos.clips.getNextHighestDepth(), {_x:_local3, _y:_local4, tid:_local2});
equipos.clips["boton_retrato" + _local2].gotoAndStop(4);
equipos.clips["equipo" + _local2].gotoAndStop(_local6.tLogoImg);
equipos.clips["equipo" + _local2].bg.gotoAndStop(_local6.tLogoCol);
equipos.clips["equipo" + _local2].frame._visible = false;
_local5++;
if (_local5 == 2) {
_local5 = 0;
_local3 = 46.2;
_local4 = _local4 + 126;
} else {
_local3 = _local3 + 113;
}
}
_local2++;
}
if (_local5 == 1) {
equipos.otros._y = (_local4 + 63) + 13;
_local4 = _local4 + 126;
} else if (_local7 == false) {
equipos.otros._y = (_local4 - 63) + 13;
} else {
equipos.otros._y = (_local4 - 63) + 13;
}
equipos.otros.oy = equipos.otros._y;
_local5 = 0;
_local3 = 46.2;
_local4 = _local4 + 25;
_local2 = 0;
while (_local2 < _root.myGame.Teams.length) {
if (_root.myGame.Teams[_local2].tOccupation != 1) {
_local7 = true;
var _local6 = _root.myGame.Teams[_local2];
equipos.clips.attachMovie("equipos", "equipo" + _local2, equipos.clips.getNextHighestDepth(), {_x:_local3, _y:_local4});
equipos.clips.attachMovie("boton_retrato", "boton_retrato" + _local2, equipos.clips.getNextHighestDepth(), {_x:_local3, _y:_local4, tid:_local2});
equipos.clips["boton_retrato" + _local2].gotoAndStop(4);
equipos.clips["equipo" + _local2].gotoAndStop(_local6.tLogoImg);
equipos.clips["equipo" + _local2].bg.gotoAndStop(_local6.tLogoCol);
equipos.clips["equipo" + _local2].frame._visible = false;
_local5++;
if (_local5 == 2) {
_local5 = 0;
_local3 = 46.2;
_local4 = _local4 + 126;
} else {
_local3 = _local3 + 113;
}
}
_local2++;
}
if (_local7 == true) {
botoncillo._visible = false;
} else {
botoncillo._visible = true;
}
}
var xi;
var yi;
var tshowing = 0;
Auxiliary.resetBarra(equipos.clips, barra, 290);
showEmployees();
displayTeam();
botoncillo.enabled = false;
Instance of Symbol 768 MovieClip "barra" in Symbol 1078 MovieClip Frame 5
onClipEvent (load) {
this.oy = this._y;
this.maxy = 249.5;
}
Symbol 1078 MovieClip Frame 6
function refreshThis() {
var _local6;
var _local3 = 0;
while (_local3 < _root.myGame.Researchs.Techs.length) {
_local6 = true;
var _local5 = _root.myGame.Researchs.Techs[_local3];
var _local4 = 0;
while (_local4 < _local5.tReqs.length) {
if (_root.myGame.Researchs.Techs[_local5.tReqs[_local4]].tInvestigated == false) {
_local6 = false;
}
_local4++;
}
if (_local5.tInvestigated == true) {
this["tech" + _local3].gotoAndStop(3);
this["tech" + _local3].can = 0;
} else if (_local6 == true) {
this["tech" + _local3].gotoAndStop(1);
this["tech" + _local3].can = 1;
} else {
this["tech" + _local3].gotoAndStop(2);
this["tech" + _local3].can = 0;
}
_local3++;
}
}
refreshThis();
Symbol 1078 MovieClip Frame 7
function refreshThis() {
var _local4 = _root.myGame.getCurrentInv();
var _local3 = 0;
while (_local3 < 3) {
if (_local4[_local3] != -1) {
this["botoncillo" + (_local3 + 1)]._visible = false;
pointer = _root.myGame.Researchs.Techs[_local4[_local3]];
this["nombre" + (_local3 + 1)] = pointer.tName;
this["inv" + (_local3 + 1)].mask._xscale = (pointer.tDone / pointer.tPoints) * 100;
this["tiempoest" + (_local3 + 1)] = ((_root.myGame.invTimes[_local3] == -1) ? "Infinity" : (Auxiliary.displayDate(_root.myGame.invTimes[_local3])));
} else {
this["botoncillo" + (_local3 + 1)]._visible = true;
}
_local3++;
}
}
refreshThis();
botoncillo1.enabled = false;
botoncillo2.enabled = false;
botoncillo3.enabled = false;
Symbol 1078 MovieClip Frame 8
function refreshThis() {
}
function genName() {
var _local2 = _root.myGame.getTypes();
nombreTipo = _root.myGame.Types[_local2[random(_local2.length)]].tName;
nombreJuego = Project.generateName();
nombreGenero = Project.generateGenre();
genLogo();
}
function genLogo() {
logo.gotoAndStop(random(6) + 1);
logo.icono.gotoAndStop(random(6) + 1);
}
function displayTeam(tid) {
equipos.clips["equipo" + tid].frame._visible = !equipos.clips["equipo" + tid].frame._visible;
}
function calcEquipos() {
var _local2 = new Array();
i = 0;
while (i < _root.myGame.Teams.length) {
if (equipos.clips["equipo" + i].frame._visible == true) {
_local2.push(i);
}
i++;
}
return(_local2);
}
function showEmployees() {
for (var _local2 in equipos.clips) {
equipos.clips[_local2].removeMovieClip();
}
var _local2 = 0;
while (_local2 < _root.myGame.Teams.length) {
var _local3 = _root.myGame.Teams[_local2];
xi = 46.2 + ((_local2 % 2) * 113);
yi = 52.3 + (Math.floor(_local2 / 2) * 126);
equipos.clips.attachMovie("equipos", "equipo" + _local2, equipos.clips.getNextHighestDepth(), {_x:xi, _y:yi});
equipos.clips.attachMovie("boton_retrato", "boton_retrato" + _local2, equipos.clips.getNextHighestDepth(), {_x:xi, _y:yi, tid:_local2});
equipos.clips["boton_retrato" + _local2].gotoAndStop(5);
equipos.clips["equipo" + _local2].gotoAndStop(_local3.tLogoImg);
equipos.clips["equipo" + _local2].bg.gotoAndStop(_local3.tLogoCol);
equipos.clips["equipo" + _local2].frame._visible = false;
_local2++;
}
}
var xi;
var yi;
Auxiliary.resetBarra(equipos.clips, barra, 235);
showEmployees();
genName();
Instance of Symbol 768 MovieClip "barra" in Symbol 1078 MovieClip Frame 8
onClipEvent (load) {
this.oy = this._y;
this.maxy = 249.5;
}
Symbol 1078 MovieClip Frame 9
function refreshThis() {
showEmployees();
showProjects();
showProject();
muestraFrame();
Auxiliary.resetBarra(equipos.clips, barra, 235);
Auxiliary.resetBarra(proyectos.clips, barrah.barra, 595);
}
function muestraFrame() {
if ((pshowing < _root.myGame.Projects.length) && (pshowing >= 0)) {
proyectos.frame._x = proyectos.clips["proyecto" + pshowing]._x;
proyectos.frame._y = proyectos.clips["proyecto" + pshowing]._y + proyectos.clips._y;
} else {
proyectos.frame._x = -100;
}
}
function showProject() {
if (pshowing >= _root.myGame.Projects.length) {
pshowing = _root.myGame.Projects.length - 1;
}
if (pshowing >= 0) {
botoncillo._visible = false;
pointer = _root.myGame.Projects[pshowing];
nombreJuego = pointer.pName;
generoJuego = pointer.pGenre;
tipoJuego = pointer.pType;
progreso.mask._xscale = (pointer.pDone / pointer.pPoints) * 100;
pprog.mask._xscale = (pointer.pAverages[0] / pointer.pPoints) * 2;
p2d.mask._xscale = (pointer.pAverages[1] / pointer.pPoints) * 4;
p3d.mask._xscale = (pointer.pAverages[2] / pointer.pPoints) * 4;
pdes.mask._xscale = (pointer.pAverages[3] / pointer.pPoints) * 4;
pinn.mask._xscale = (pointer.pAverages[4] / pointer.pPoints) * 4;
} else {
botoncillo._visible = true;
}
}
function displayTeam(tid) {
_root.myGame.addorRemoveFromProject(tid, pshowing);
refreshThis();
}
function updateBarra() {
muestraFrame();
equipos.bar._y = equipos.bar.oy + equipos.clips._y;
}
function showProjects() {
var _local3;
var _local4;
for (var _local2 in proyectos.clips) {
proyectos.clips[_local2].removeMovieClip();
}
var _local2 = 0;
while (_local2 < _root.myGame.Projects.length) {
_local3 = 26.6;
_local4 = 26.6 + (_local2 * 67.9);
proyectos.clips.attachMovie("project_small", "proyecto" + _local2, proyectos.clips.getNextHighestDepth(), {_x:_local3, _y:_local4, pid:_local2});
proyectos.clips["proyecto" + _local2].gotoAndStop(_root.myGame.Projects[_local2].pLogo);
proyectos.clips["proyecto" + _local2].icono.gotoAndStop(_root.myGame.Projects[_local2].pIcon);
_local2++;
}
}
function showEmployees() {
var _local5 = true;
var _local10 = false;
var _local3 = 0;
for (var _local2 in equipos.clips) {
equipos.clips[_local2].removeMovieClip();
}
yi = 52.3;
xi = 46.2;
var _local6 = 0;
while (_local6 < 2) {
var _local2 = 0;
while (_local2 < _root.myGame.Teams.length) {
if ((((_local5 == true) && (_root.myGame.Teams[_local2].tOccupation == 2)) && (_root.myGame.Teams[_local2].tProject == pshowing)) || ((_local5 == false) && ((_root.myGame.Teams[_local2].tProject != pshowing) || (_root.myGame.Teams[_local2].tOccupation != 2)))) {
_local10 = true;
var _local4 = _root.myGame.Teams[_local2];
equipos.clips.attachMovie("equipos", "equipo" + _local2, equipos.clips.getNextHighestDepth(), {_x:xi, _y:yi});
equipos.clips.attachMovie("boton_retrato", "boton_retrato" + _local2, equipos.clips.getNextHighestDepth(), {_x:xi, _y:yi, tid:_local2});
equipos.clips["boton_retrato" + _local2].gotoAndStop(5);
equipos.clips["equipo" + _local2].gotoAndStop(_local4.tLogoImg);
equipos.clips["equipo" + _local2].bg.gotoAndStop(_local4.tLogoCol);
equipos.clips["equipo" + _local2].frame._visible = _local5;
if (_local3 == 1) {
xi = 46.2;
yi = yi + 126;
_local3 = 0;
} else {
xi = xi + 113;
_local3++;
}
}
_local2++;
}
if (_local6 == 0) {
if (_local10 == false) {
equipos.bar._y = yi - 53;
yi = yi + 10;
} else if (_local3 == 1) {
yi = yi + 126;
equipos.bar._y = yi - 53;
xi = 46.2;
_local3 = 0;
yi = yi + 10;
} else {
equipos.bar._y = yi - 53;
xi = 46.2;
_local3 = 0;
yi = yi + 10;
}
equipos.bar.oy = equipos.bar._y;
equipos.bar._y = equipos.bar._y + equipos.clips._y;
_local5 = false;
}
_local6++;
}
}
var xi;
var yi;
var pshowing = 0;
botoncillo.enabled = false;
Auxiliary.resetBarra(equipos.clips, barra, 235);
Auxiliary.resetBarra(proyectos.clips, barrah.barra, 595);
showEmployees();
showProjects();
showProject();
muestraFrame();
Instance of Symbol 768 MovieClip "barra" in Symbol 1078 MovieClip Frame 9
onClipEvent (load) {
this.oy = this._y;
this.maxy = 143.2;
}
Symbol 1078 MovieClip Frame 10
function refreshThis() {
vals = _root.myGame.Games[gshowing].stats;
Auxiliary.borra(graph);
Auxiliary.pinta(vals, graph, 65280);
}
refreshThis();
Symbol 1078 MovieClip Frame 11
function refreshThis() {
var _local3 = 0;
while (_local3 < 6) {
this["publi" + _local3].mask._xscale = _root.myGame.Games[gshowing].publi.aAdverts[_local3];
this["public" + _local3] = (Advertising.aCosts[_local3] * _root.myGame.Games[gshowing].publi.aAdverts[_local3]) / 100;
_local3++;
}
}
refreshThis();
Symbol 1078 MovieClip Frame 12
function refreshThis() {
numrev = _root.myGame.Games[gshowing].copies.amt;
var _local3 = 1;
while (_local3 < 5) {
this["opt" + _local3].tick._visible = _root.myGame.Games[gshowing].copies.options[_local3];
_local3++;
}
}
refreshThis();
Instance of Symbol 1041 MovieClip "opt1" in Symbol 1078 MovieClip Frame 12
onClipEvent (load) {
this.toto = 1;
}
Instance of Symbol 1041 MovieClip "opt2" in Symbol 1078 MovieClip Frame 12
onClipEvent (load) {
this.toto = 2;
}
Instance of Symbol 1041 MovieClip "opt3" in Symbol 1078 MovieClip Frame 12
onClipEvent (load) {
this.toto = 3;
}
Instance of Symbol 1041 MovieClip "opt4" in Symbol 1078 MovieClip Frame 12
onClipEvent (load) {
this.toto = 4;
}
Symbol 1078 MovieClip Frame 13
function refreshThis() {
Auxiliary.resetBarra(reviews.clips, barra, 320);
}
refreshThis();
for (var i in reviews.clips) {
reviews.clips[i].removeMovieClip();
}
var i = 0;
while (i < _root.myGame.Games[gshowing].reviews.length) {
var pointer = _root.myGame.Games[gshowing];
xi = 292.8;
yi = 54.5 + (119.2 * i);
reviews.clips.attachMovie("review", "review" + i, reviews.clips.getNextHighestDepth(), {_x:xi, _y:yi});
reviews.clips["review" + i].contenido = pointer.reviews[i];
reviews.clips["review" + i].autor = pointer.reviewmags[i];
i++;
}
Instance of Symbol 768 MovieClip "barra" in Symbol 1078 MovieClip Frame 13
onClipEvent (load) {
this.oy = this._y;
this.maxy = 249.5;
}
Symbol 1078 MovieClip Frame 14
function refreshThis() {
jtot = _root.myGame.Games.length;
jdev = _root.myGame.Projects.length;
pemps = _root.myGame.Employees.length - 1;
pavgsal = _root.myGame.avgSal();
pdesp = _root.myGame.despidos;
tyears = _root.myGame.years;
}
refreshThis();
Symbol 1078 MovieClip Frame 15
function refreshThis() {
if (graphica == false) {
vals = _root.myGame.Incomes;
vals2 = _root.myGame.Expenses;
Auxiliary.borra(graph);
Auxiliary.pinta(vals, graph, 65280, vals2);
} else {
vals = _root.myGame.Moneys;
Auxiliary.borra(graph);
Auxiliary.pinta(vals, graph, 255);
}
}
var graphica = false;
refreshThis();
Symbol 1093 MovieClip Frame 1
stop();
Symbol 1105 Button
on (release) {
_root.tuto._visible = false;
this._visible = false;
}
Symbol 1110 Button
on (release) {
gotoAndStop (2);
}
Symbol 1116 Button
on (release) {
gotoAndStop (3);
}
Symbol 1118 Button
on (release) {
gotoAndStop (4);
}
Symbol 1132 Button
on (release) {
_root.tuto._visible = false;
this._visible = false;
}
Symbol 1133 MovieClip Frame 1
stop();
Symbol 1133 MovieClip Frame 4
onEnterFrame = function () {
if (_root.plano._x == -134.75) {
nextFrame();
}
};
Symbol 1133 MovieClip Frame 5
onEnterFrame = function () {
if ((_root.pantallas._currentframe == 4) && (_root.pantallas._visible == true)) {
nextFrame();
} else if (_root.plano._x != -134.75) {
prevFrame();
}
};
Symbol 1133 MovieClip Frame 6
onEnterFrame = function () {
if (_root.myGame.Teams.length > 0) {
nextFrame();
} else if ((_root.pantallas._currentframe != 4) || (_root.pantallas._visible != true)) {
prevFrame();
}
};
Symbol 1133 MovieClip Frame 7
onEnterFrame = function () {
if (_root.myGame.Employees[0].eInTeam != -1) {
nextFrame();
} else if ((_root.pantallas._currentframe != 4) || (_root.pantallas._visible != true)) {
gotoAndStop (5);
} else if (_root.myGame.Teams.length == 0) {
prevFrame();
}
};
Symbol 1133 MovieClip Frame 8
tut.gotoAndStop("jump");
onEnterFrame = function () {
if (_root.plano._x == 465.85) {
nextFrame();
} else if (_root.myGame.Employees[0].eInTeam == -1) {
prevFrame();
}
};
Symbol 1133 MovieClip Frame 9
onEnterFrame = function () {
if ((_root.pantallas._currentframe == 8) && (_root.pantallas._visible == true)) {
nextFrame();
} else if (_root.plano._x != 465.85) {
prevFrame();
}
};
Symbol 1133 MovieClip Frame 10
onEnterFrame = function () {
if (_root.pantallas.equipos.clips.equipo0.frame._visible == true) {
nextFrame();
} else if ((_root.pantallas._currentframe != 8) || (_root.pantallas._visible != true)) {
prevFrame();
}
};
Symbol 1133 MovieClip Frame 11
onEnterFrame = function () {
if (_root.myGame.Projects.length > 0) {
nextFrame();
} else if ((_root.pantallas._currentframe != 8) || (_root.pantallas._visible != true)) {
gotoAndStop (9);
} else if (_root.pantallas.equipos.clips.equipo0.frame._visible != true) {
prevFrame();
}
};
Symbol 1133 MovieClip Frame 12
tut.gotoAndStop("wave");
onEnterFrame = function () {
};
Symbol 1135 MovieClip Frame 724
gotoAndPlay (1);
Symbol 1137 Button
on (release) {
pantallas._visible = true;
pantallas.gotoAndStop("equiposlab");
}
Symbol 1140 Button
on (release) {
pantallas._visible = true;
pantallas.gotoAndStop("invactuales");
}
Symbol 1143 Button
on (release) {
pantallas._visible = true;
pantallas.gotoAndStop("techtree");
}
Symbol 1148 Button
on (release) {
pantallas._visible = true;
pantallas.gotoAndStop("nuevoproyecto");
}
Symbol 1151 Button
on (release) {
pantallas._visible = true;
pantallas.gotoAndStop("proyectosactuales");
}
Symbol 1158 MovieClip Frame 1
onEnterFrame = function () {
if (Math.random() > 0.9) {
play();
}
};
stop();
Symbol 1158 MovieClip Frame 2
stop();
Symbol 1161 MovieClip Frame 1
onEnterFrame = function () {
if (Math.random() > 0.9) {
play();
}
};
stop();
Symbol 1161 MovieClip Frame 2
stop();
Symbol 1164 MovieClip Frame 1
onEnterFrame = function () {
if (Math.random() > 0.9) {
play();
}
};
stop();
Symbol 1164 MovieClip Frame 2
stop();
Symbol 1167 MovieClip Frame 1
onEnterFrame = function () {
if (Math.random() > 0.9) {
play();
}
};
stop();
Symbol 1167 MovieClip Frame 2
stop();
Symbol 1170 MovieClip Frame 1
onEnterFrame = function () {
if (Math.random() > 0.9) {
play();
}
};
stop();
Symbol 1170 MovieClip Frame 2
stop();
Symbol 1173 MovieClip Frame 1
onEnterFrame = function () {
if (Math.random() > 0.9) {
play();
}
};
stop();
Symbol 1173 MovieClip Frame 2
stop();
Symbol 1176 MovieClip Frame 1
onEnterFrame = function () {
if (Math.random() > 0.9) {
play();
}
};
stop();
Symbol 1176 MovieClip Frame 2
stop();
Symbol 1179 MovieClip Frame 1
onEnterFrame = function () {
if (Math.random() > 0.9) {
play();
}
};
stop();
Symbol 1179 MovieClip Frame 2
stop();
Symbol 1182 MovieClip Frame 1
onEnterFrame = function () {
if (Math.random() > 0.9) {
play();
}
};
stop();
Symbol 1182 MovieClip Frame 2
stop();
Symbol 1183 MovieClip Frame 1
stop();
Symbol 1183 MovieClip Frame 2
stop();
Symbol 1183 MovieClip Frame 3
stop();
Symbol 1183 MovieClip Frame 4
stop();
Symbol 1183 MovieClip Frame 5
stop();
Symbol 1183 MovieClip Frame 6
stop();
Symbol 1183 MovieClip Frame 7
stop();
Symbol 1183 MovieClip Frame 8
stop();
Symbol 1183 MovieClip Frame 9
stop();
Symbol 1183 MovieClip Frame 10
stop();
Symbol 1186 Button
on (release) {
Auxiliary.moveDown(clips, barra, 18, 155);
muestraFrame();
}
Symbol 1187 Button
on (release) {
Auxiliary.moveUp(clips, barra, 18, 155);
muestraFrame();
}
Symbol 1188 MovieClip Frame 1
function muestraFrame() {
if (_root.pantallas.gshowing < _root.myGame.Games.length) {
frame._x = clips["juego" + _root.pantallas.gshowing]._x;
frame._y = clips["juego" + _root.pantallas.gshowing]._y + clips._y;
} else {
frame._x = -300;
}
}
function refreshThisToo() {
for (var _local2 in clips) {
clips[_local2].removeMovieClip();
}
var _local2 = 0;
while (_local2 < _root.myGame.Games.length) {
xi = 0;
yi = 0 + (18 * _local2);
clips.attachMovie("sel_clip_juego", "juego" + _local2, clips.getNextHighestDepth(), {_x:xi, _y:yi, jname:_root.myGame.Games[_local2].pName, gid:_local2});
_local2++;
}
Auxiliary.resetBarra(clips, barra, 155);
muestraFrame();
_root.pantallas.refreshThis();
}
refreshThisToo();
stop();
Instance of Symbol 768 MovieClip "barra" in Symbol 1188 MovieClip Frame 1
onClipEvent (load) {
this.oy = this._y;
this.maxy = 62.8;
}
Symbol 1191 Button
on (release) {
pantallas._visible = true;
pantallas.gotoAndStop("ventas");
}
Symbol 1195 Button
on (release) {
pantallas._visible = true;
pantallas.gotoAndStop("anuncios");
}
Symbol 1198 Button
on (release) {
pantallas._visible = true;
pantallas.gotoAndStop("copiasreview");
}
Symbol 1206 Button
on (release) {
pantallas._visible = true;
pantallas.gotoAndStop("estadisticas");
}
Symbol 1209 Button
on (release) {
pantallas._visible = true;
pantallas.gotoAndStop("reviews");
}
Symbol 1226 Button
on (release) {
stopAllSounds();
gotoAndStop (4);
}