Section 1
//ARC4 (com.hurlant.crypto.prng.ARC4)
package com.hurlant.crypto.prng {
import flash.utils.*;
import com.hurlant.util.*;
import com.hurlant.crypto.symmetric.*;
public class ARC4 implements IPRNG, ICipher {
private const psize:uint = 0x0100;
private var S:ByteArray;
private var key:ByteArray;
private var i:int;// = 0
private var j:int;// = 0
public function ARC4(_arg1:ByteArray=null){
i = 0;
j = 0;
super();
S = new ByteArray();
if (_arg1){
init(_arg1);
};
}
public function decrypt(_arg1:ByteArray):void{
encrypt(_arg1);
}
public function init(_arg1:ByteArray):void{
var _local2:int;
var _local3:int;
var _local4:int;
this.key = _arg1;
_local2 = 0;
while (_local2 < 0x0100) {
S[_local2] = _local2;
_local2++;
};
_local3 = 0;
_local2 = 0;
while (_local2 < 0x0100) {
_local3 = (((_local3 + S[_local2]) + _arg1[(_local2 % _arg1.length)]) & 0xFF);
_local4 = S[_local2];
S[_local2] = S[_local3];
S[_local3] = _local4;
_local2++;
};
this.i = 0;
this.j = 0;
}
public function encrypt(_arg1:ByteArray):void{
var _local2:uint;
init(key);
_local2 = 0;
while (_local2 < _arg1.length) {
var _temp1 = _local2;
_local2 = (_local2 + 1);
var _local3 = _temp1;
_arg1[_local3] = (_arg1[_local3] ^ next());
};
}
public function dispose():void{
var _local1:uint;
_local1 = 0;
_local1 = 0;
while (_local1 < S.length) {
S[_local1] = (Math.random() * 0x0100);
_local1++;
};
_local1 = 0;
while (_local1 < key.length) {
key[_local1] = (Math.random() * 0x0100);
_local1++;
};
S.length = 0;
key.length = 0;
S = null;
key = null;
this.i = 0;
this.j = 0;
Memory.gc();
}
public function next():uint{
var _local1:int;
i = ((i + 1) & 0xFF);
j = ((j + S[i]) & 0xFF);
_local1 = S[i];
S[i] = S[j];
S[j] = _local1;
return (S[((_local1 + S[i]) & 0xFF)]);
}
public function getPoolSize():uint{
return (psize);
}
public function toString():String{
return ("rc4");
}
public function getBlockSize():uint{
return (1);
}
}
}//package com.hurlant.crypto.prng
Section 2
//IPRNG (com.hurlant.crypto.prng.IPRNG)
package com.hurlant.crypto.prng {
import flash.utils.*;
public interface IPRNG {
function init(_arg1:ByteArray):void;
function next():uint;
function dispose():void;
function getPoolSize():uint;
function toString():String;
}
}//package com.hurlant.crypto.prng
Section 3
//ICipher (com.hurlant.crypto.symmetric.ICipher)
package com.hurlant.crypto.symmetric {
import flash.utils.*;
public interface ICipher {
function encrypt(_arg1:ByteArray):void;
function dispose():void;
function getBlockSize():uint;
function toString():String;
function decrypt(_arg1:ByteArray):void;
}
}//package com.hurlant.crypto.symmetric
Section 4
//Base64 (com.hurlant.util.Base64)
package com.hurlant.util {
import flash.utils.*;
public class Base64 {
public static const version:String = "1.0.0";
private static const BASE64_CHARS:String = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
public function Base64(){
throw (new Error("Base64 class is static container only"));
}
public static function encode(_arg1:String):String{
var _local2:ByteArray;
_local2 = new ByteArray();
_local2.writeUTFBytes(_arg1);
return (encodeByteArray(_local2));
}
public static function encodeByteArray(_arg1:ByteArray):String{
var _local2:String;
var _local3:Array;
var _local4:Array;
var _local5:uint;
var _local6:uint;
var _local7:uint;
_local2 = "";
_local4 = new Array(4);
_arg1.position = 0;
while (_arg1.bytesAvailable > 0) {
_local3 = new Array();
_local5 = 0;
while ((((_local5 < 3)) && ((_arg1.bytesAvailable > 0)))) {
_local3[_local5] = _arg1.readUnsignedByte();
_local5++;
};
_local4[0] = ((_local3[0] & 252) >> 2);
_local4[1] = (((_local3[0] & 3) << 4) | (_local3[1] >> 4));
_local4[2] = (((_local3[1] & 15) << 2) | (_local3[2] >> 6));
_local4[3] = (_local3[2] & 63);
_local6 = _local3.length;
while (_local6 < 3) {
_local4[(_local6 + 1)] = 64;
_local6++;
};
_local7 = 0;
while (_local7 < _local4.length) {
_local2 = (_local2 + BASE64_CHARS.charAt(_local4[_local7]));
_local7++;
};
};
return (_local2);
}
public static function decode(_arg1:String):String{
var _local2:ByteArray;
_local2 = decodeToByteArray(_arg1);
return (_local2.readUTFBytes(_local2.length));
}
public static function decodeToByteArray(_arg1:String):ByteArray{
var _local2:ByteArray;
var _local3:Array;
var _local4:Array;
var _local5:uint;
var _local6:uint;
var _local7:uint;
_local2 = new ByteArray();
_local3 = new Array(4);
_local4 = new Array(3);
_local5 = 0;
while (_local5 < _arg1.length) {
_local6 = 0;
while ((((_local6 < 4)) && (((_local5 + _local6) < _arg1.length)))) {
_local3[_local6] = BASE64_CHARS.indexOf(_arg1.charAt((_local5 + _local6)));
_local6++;
};
_local4[0] = ((_local3[0] << 2) + ((_local3[1] & 48) >> 4));
_local4[1] = (((_local3[1] & 15) << 4) + ((_local3[2] & 60) >> 2));
_local4[2] = (((_local3[2] & 3) << 6) + _local3[3]);
_local7 = 0;
while (_local7 < _local4.length) {
if (_local3[(_local7 + 1)] == 64){
break;
};
_local2.writeByte(_local4[_local7]);
_local7++;
};
_local5 = (_local5 + 4);
};
_local2.position = 0;
return (_local2);
}
}
}//package com.hurlant.util
Section 5
//Hex (com.hurlant.util.Hex)
package com.hurlant.util {
import flash.utils.*;
public class Hex {
public static function fromString(_arg1:String, _arg2:Boolean=false):String{
var _local3:ByteArray;
_local3 = new ByteArray();
_local3.writeUTFBytes(_arg1);
return (fromArray(_local3, _arg2));
}
public static function toString(_arg1:String):String{
var _local2:ByteArray;
_local2 = toArray(_arg1);
return (_local2.readUTFBytes(_local2.length));
}
public static function toArray(_arg1:String):ByteArray{
var _local2:ByteArray;
var _local3:uint;
_arg1 = _arg1.replace(/\s|:/gm, "");
_local2 = new ByteArray();
if ((_arg1.length & (1 == 1))){
_arg1 = ("0" + _arg1);
};
_local3 = 0;
while (_local3 < _arg1.length) {
_local2[(_local3 / 2)] = parseInt(_arg1.substr(_local3, 2), 16);
_local3 = (_local3 + 2);
};
return (_local2);
}
public static function fromArray(_arg1:ByteArray, _arg2:Boolean=false):String{
var _local3:String;
var _local4:uint;
_local3 = "";
_local4 = 0;
while (_local4 < _arg1.length) {
_local3 = (_local3 + ("0" + _arg1[_local4].toString(16)).substr(-2, 2));
if (_arg2){
if (_local4 < (_arg1.length - 1)){
_local3 = (_local3 + ":");
};
};
_local4++;
};
return (_local3);
}
}
}//package com.hurlant.util
Section 6
//Memory (com.hurlant.util.Memory)
package com.hurlant.util {
import flash.net.*;
import flash.system.*;
public class Memory {
public static function gc():void{
try {
new LocalConnection().connect("foo");
new LocalConnection().connect("foo");
} catch(e) {
};
}
public static function get used():uint{
return (System.totalMemory);
}
}
}//package com.hurlant.util
Section 7
//Color (fl.motion.Color)
package fl.motion {
import flash.display.*;
import flash.geom.*;
public class Color extends ColorTransform {
private var _tintMultiplier:Number;// = 0
private var _tintColor:Number;// = 0
public function Color(_arg1:Number=1, _arg2:Number=1, _arg3:Number=1, _arg4:Number=1, _arg5:Number=0, _arg6:Number=0, _arg7:Number=0, _arg8:Number=0){
_tintColor = 0;
_tintMultiplier = 0;
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
}
public function setTint(_arg1:uint, _arg2:Number):void{
var _local3:uint;
var _local4:uint;
var _local5:uint;
this._tintColor = _arg1;
this._tintMultiplier = _arg2;
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = (1 - _arg2)));
_local3 = ((_arg1 >> 16) & 0xFF);
_local4 = ((_arg1 >> 8) & 0xFF);
_local5 = (_arg1 & 0xFF);
this.redOffset = Math.round((_local3 * _arg2));
this.greenOffset = Math.round((_local4 * _arg2));
this.blueOffset = Math.round((_local5 * _arg2));
}
public function set tintColor(_arg1:uint):void{
this.setTint(_arg1, this.tintMultiplier);
}
public function get brightness():Number{
return ((this.redOffset) ? (1 - this.redMultiplier) : (this.redMultiplier - 1));
}
private function deriveTintColor():uint{
var _local1:Number;
var _local2:uint;
var _local3:uint;
var _local4:uint;
var _local5:uint;
_local1 = (1 / this.tintMultiplier);
_local2 = Math.round((this.redOffset * _local1));
_local3 = Math.round((this.greenOffset * _local1));
_local4 = Math.round((this.blueOffset * _local1));
_local5 = (((_local2 << 16) | (_local3 << 8)) | _local4);
return (_local5);
}
public function get tintMultiplier():Number{
return (this._tintMultiplier);
}
public function get tintColor():uint{
return (this._tintColor);
}
public function set brightness(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (_arg1 > 1){
_arg1 = 1;
} else {
if (_arg1 < -1){
_arg1 = -1;
};
};
_local2 = (1 - Math.abs(_arg1));
_local3 = 0;
if (_arg1 > 0){
_local3 = (_arg1 * 0xFF);
};
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = _local2));
this.redOffset = (this.greenOffset = (this.blueOffset = _local3));
}
public function set tintMultiplier(_arg1:Number):void{
this.setTint(this.tintColor, _arg1);
}
private function parseXML(_arg1:XML=null):Color{
var _local2:XML;
var _local3:XML;
var _local4:String;
var _local5:uint;
if (!_arg1){
return (this);
};
_local2 = _arg1.elements()[0];
if (!_local2){
return (this);
};
for each (_local3 in _local2.attributes()) {
_local4 = _local3.localName();
if (_local4 == "tintColor"){
_local5 = (Number(_local3.toString()) as uint);
this.tintColor = _local5;
} else {
this[_local4] = Number(_local3.toString());
};
};
return (this);
}
public static function interpolateColor(_arg1:uint, _arg2:uint, _arg3:Number):uint{
var _local4:Number;
var _local5:uint;
var _local6:uint;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local10:uint;
var _local11:uint;
var _local12:uint;
var _local13:uint;
var _local14:uint;
var _local15:uint;
var _local16:uint;
var _local17:uint;
_local4 = (1 - _arg3);
_local5 = ((_arg1 >> 24) & 0xFF);
_local6 = ((_arg1 >> 16) & 0xFF);
_local7 = ((_arg1 >> 8) & 0xFF);
_local8 = (_arg1 & 0xFF);
_local9 = ((_arg2 >> 24) & 0xFF);
_local10 = ((_arg2 >> 16) & 0xFF);
_local11 = ((_arg2 >> 8) & 0xFF);
_local12 = (_arg2 & 0xFF);
_local13 = ((_local5 * _local4) + (_local9 * _arg3));
_local14 = ((_local6 * _local4) + (_local10 * _arg3));
_local15 = ((_local7 * _local4) + (_local11 * _arg3));
_local16 = ((_local8 * _local4) + (_local12 * _arg3));
_local17 = ((((_local13 << 24) | (_local14 << 16)) | (_local15 << 8)) | _local16);
return (_local17);
}
public static function interpolateTransform(_arg1:ColorTransform, _arg2:ColorTransform, _arg3:Number):ColorTransform{
var _local4:Number;
var _local5:ColorTransform;
_local4 = (1 - _arg3);
_local5 = new ColorTransform(((_arg1.redMultiplier * _local4) + (_arg2.redMultiplier * _arg3)), ((_arg1.greenMultiplier * _local4) + (_arg2.greenMultiplier * _arg3)), ((_arg1.blueMultiplier * _local4) + (_arg2.blueMultiplier * _arg3)), ((_arg1.alphaMultiplier * _local4) + (_arg2.alphaMultiplier * _arg3)), ((_arg1.redOffset * _local4) + (_arg2.redOffset * _arg3)), ((_arg1.greenOffset * _local4) + (_arg2.greenOffset * _arg3)), ((_arg1.blueOffset * _local4) + (_arg2.blueOffset * _arg3)), ((_arg1.alphaOffset * _local4) + (_arg2.alphaOffset * _arg3)));
return (_local5);
}
public static function fromXML(_arg1:XML):Color{
return (Color(new (Color).parseXML(_arg1)));
}
}
}//package fl.motion
Section 8
//caixa1_50 (previewer_v7_fla.caixa1_50)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class caixa1_50 extends MovieClip {
public function caixa1_50(){
addFrameScript(0, frame1, 4, frame5);
}
function frame1(){
stop();
}
function frame5(){
stop();
}
}
}//package previewer_v7_fla
Section 9
//CASheet_72 (previewer_v7_fla.CASheet_72)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class CASheet_72 extends MovieClip {
public function CASheet_72(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package previewer_v7_fla
Section 10
//cc_48 (previewer_v7_fla.cc_48)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class cc_48 extends MovieClip {
public function cc_48(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package previewer_v7_fla
Section 11
//DavidRodriguesGripping1_30 (previewer_v7_fla.DavidRodriguesGripping1_30)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class DavidRodriguesGripping1_30 extends MovieClip {
public var colored_object3_mc:BeheadedLighter;
public var colored_object4_mc:BeheadedLighter;
public var colored_object1_mc:BeheadedLighter;
public var colored_object7_mc:BeheadedLighterLaid;
public var colored_object5_mc:BeheadedLighter;
public function DavidRodriguesGripping1_30(){
addFrameScript(2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame3(){
this.colored_object1_mc.transform.colorTransform = this.colorTransformToken;
}
function frame6(){
this.colored_object5_mc.transform.colorTransform = this.colorTransformToken;
}
function frame7(){
this.colored_object7_mc.transform.colorTransform = this.colorTransformToken;
}
function frame4(){
this.colored_object3_mc.transform.colorTransform = this.colorTransformToken;
}
function frame5(){
this.colored_object4_mc.transform.colorTransform = this.colorTransformToken;
}
}
}//package previewer_v7_fla
Section 12
//DavidRodriguesGripping2_33 (previewer_v7_fla.DavidRodriguesGripping2_33)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class DavidRodriguesGripping2_33 extends MovieClip {
public var colored_object3_mc:LighterOpen;
public var colored_object1_mc:LighterOpen;
public var colored_object7_mc:LighterOpen;
public var colored_object5_mc:LighterOpen;
public function DavidRodriguesGripping2_33(){
addFrameScript(3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame6(){
this.colored_object5_mc.transform.colorTransform = this.colorTransformToken;
}
function frame7(){
this.colored_object7_mc.transform.colorTransform = this.colorTransformToken;
}
function frame4(){
this.colored_object1_mc.transform.colorTransform = this.colorTransformToken;
}
function frame5(){
this.colored_object3_mc.transform.colorTransform = this.colorTransformToken;
}
}
}//package previewer_v7_fla
Section 13
//DavidRodriguesStanding_22 (previewer_v7_fla.DavidRodriguesStanding_22)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class DavidRodriguesStanding_22 extends MovieClip {
public var colored_object4_mc:CASheetRoll;
public var colored_object1_mc:MovieClip;
public var colored_object2_mc:CASheetRoll;
public function DavidRodriguesStanding_22(){
addFrameScript(2, frame3, 3, frame4, 4, frame5);
}
function frame3(){
this.colored_object1_mc.transform.colorTransform = this.colorTransformToken;
}
function frame4(){
this.colored_object2_mc.transform.colorTransform = this.colorTransformToken;
}
function frame5(){
this.colored_object4_mc.transform.colorTransform = this.colorTransformToken;
}
}
}//package previewer_v7_fla
Section 14
//elevador_direito_64 (previewer_v7_fla.elevador_direito_64)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class elevador_direito_64 extends MovieClip {
public var _4mc:LighterClosedLaid;
public var _13mc:LighterClosedLaid;
public var _36mc:MovieClip;
public var _24mc:MovieClip;
public var _3mc:LighterClosedLaid;
public var _35mc:MovieClip;
public var _12mc:LighterClosedLaid;
public var _23mc:LighterClosedLaid;
public var _2mc:LighterClosedLaid;
public var _11mc:LighterClosedLaid;
public var _34mc:MovieClip;
public var _19mc:LighterClosedLaid;
public var _22mc:LighterClosedLaid;
public var _45mc:MovieClip;
public var _1mc:LighterClosedLaid;
public var _9mc:LighterClosedLaid;
public var _10mc:LighterClosedLaid;
public var _33mc:MovieClip;
public var _18mc:LighterClosedLaid;
public var _44mc:MovieClip;
public var _21mc:LighterClosedLaid;
public var _29mc:MovieClip;
public var _32mc:MovieClip;
public var _17mc:LighterClosedLaid;
public var _8mc:LighterClosedLaid;
public var _20mc:LighterClosedLaid;
public var _28mc:MovieClip;
public var _43mc:MovieClip;
public var _7mc:LighterClosedLaid;
public var _31mc:MovieClip;
public var _16mc:LighterClosedLaid;
public var _39mc:MovieClip;
public var _42mc:MovieClip;
public var _27mc:MovieClip;
public var _30mc:MovieClip;
public var _15mc:LighterClosedLaid;
public var _38mc:MovieClip;
public var _6mc:LighterClosedLaid;
public var _26mc:MovieClip;
public var _41mc:MovieClip;
public var _5mc:LighterClosedLaid;
public var _37mc:MovieClip;
public var _14mc:LighterClosedLaid;
public var _40mc:MovieClip;
public var _25mc:MovieClip;
public function elevador_direito_64(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 44, frame45, 45, frame46, 46, frame47);
}
function frame10(){
this._9mc.transform.colorTransform = this.colorTransformToken;
}
function frame14(){
this._13mc.transform.colorTransform = this.colorTransformToken;
}
function frame16(){
this._15mc.transform.colorTransform = this.colorTransformToken;
}
function frame15(){
this._14mc.transform.colorTransform = this.colorTransformToken;
}
function frame18(){
this._17mc.transform.colorTransform = this.colorTransformToken;
}
function frame17(){
this._16mc.transform.colorTransform = this.colorTransformToken;
}
function frame2(){
this._1mc.transform.colorTransform = this.colorTransformToken;
}
function frame4(){
this._3mc.transform.colorTransform = this.colorTransformToken;
}
function frame6(){
this._5mc.transform.colorTransform = this.colorTransformToken;
}
function frame7(){
this._6mc.transform.colorTransform = this.colorTransformToken;
}
function frame1(){
this.stop();
}
function frame3(){
this._2mc.transform.colorTransform = this.colorTransformToken;
}
function frame5(){
this._4mc.transform.colorTransform = this.colorTransformToken;
}
function frame12(){
this._11mc.transform.colorTransform = this.colorTransformToken;
}
function frame13(){
this._12mc.transform.colorTransform = this.colorTransformToken;
}
function frame9(){
this._8mc.transform.colorTransform = this.colorTransformToken;
}
function frame22(){
this._21mc.transform.colorTransform = this.colorTransformToken;
}
function frame23(){
this._22mc.transform.colorTransform = this.colorTransformToken;
}
function frame19(){
this._18mc.transform.colorTransform = this.colorTransformToken;
}
function frame21(){
this._20mc.transform.colorTransform = this.colorTransformToken;
}
function frame24(){
this._23mc.transform.colorTransform = this.colorTransformToken;
}
function frame26(){
this._24mc.transform.colorTransform = this.colorTransformToken;
}
function frame8(){
this._7mc.transform.colorTransform = this.colorTransformToken;
}
function frame11(){
this._10mc.transform.colorTransform = this.colorTransformToken;
}
function frame27(){
this._25mc.transform.colorTransform = this.colorTransformToken;
}
function frame29(){
this._27mc.transform.colorTransform = this.colorTransformToken;
}
function frame35(){
this._33mc.transform.colorTransform = this.colorTransformToken;
}
function frame30(){
this._28mc.transform.colorTransform = this.colorTransformToken;
}
function frame36(){
this._34mc.transform.colorTransform = this.colorTransformToken;
}
function frame38(){
this._36mc.transform.colorTransform = this.colorTransformToken;
}
function frame31(){
this._29mc.transform.colorTransform = this.colorTransformToken;
}
function frame32(){
this._30mc.transform.colorTransform = this.colorTransformToken;
}
function frame20(){
this._19mc.transform.colorTransform = this.colorTransformToken;
}
function frame33(){
this._31mc.transform.colorTransform = this.colorTransformToken;
}
function frame37(){
this._35mc.transform.colorTransform = this.colorTransformToken;
}
function frame39(){
this._37mc.transform.colorTransform = this.colorTransformToken;
}
function frame44(){
this._42mc.transform.colorTransform = this.colorTransformToken;
}
function frame46(){
this._44mc.transform.colorTransform = this.colorTransformToken;
}
function frame34(){
this._32mc.transform.colorTransform = this.colorTransformToken;
}
function frame41(){
this._39mc.transform.colorTransform = this.colorTransformToken;
}
function frame43(){
this._41mc.transform.colorTransform = this.colorTransformToken;
}
function frame47(){
this._45mc.transform.colorTransform = this.colorTransformToken;
}
function frame40(){
this._38mc.transform.colorTransform = this.colorTransformToken;
}
function frame28(){
this._26mc.transform.colorTransform = this.colorTransformToken;
}
function frame42(){
this._40mc.transform.colorTransform = this.colorTransformToken;
}
function frame45(){
this._43mc.transform.colorTransform = this.colorTransformToken;
}
}
}//package previewer_v7_fla
Section 15
//elevador_esquerda_41 (previewer_v7_fla.elevador_esquerda_41)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class elevador_esquerda_41 extends MovieClip {
public var _4mc:LighterClosedLaid;
public var _13mc:LighterClosedLaid;
public var _24mc:LighterClosedLaid;
public var _3mc:LighterClosedLaid;
public var _12mc:LighterClosedLaid;
public var _23mc:LighterClosedLaid;
public var _2mc:LighterClosedLaid;
public var _11mc:LighterClosedLaid;
public var _19mc:LighterClosedLaid;
public var _22mc:LighterClosedLaid;
public var _1mc:LighterClosedLaid;
public var _9mc:LighterClosedLaid;
public var _10mc:LighterClosedLaid;
public var _18mc:LighterClosedLaid;
public var _21mc:LighterClosedLaid;
public var _29mc:LighterClosedLaid;
public var _17mc:LighterClosedLaid;
public var _8mc:LighterClosedLaid;
public var _20mc:LighterClosedLaid;
public var _28mc:LighterClosedLaid;
public var _7mc:LighterClosedLaid;
public var _31mc:LighterClosedLaid;
public var _16mc:LighterClosedLaid;
public var _27mc:LighterClosedLaid;
public var _30mc:LighterClosedLaid;
public var _15mc:LighterClosedLaid;
public var _6mc:LighterClosedLaid;
public var _26mc:LighterClosedLaid;
public var _5mc:LighterClosedLaid;
public var _14mc:LighterClosedLaid;
public var _25mc:LighterClosedLaid;
public function elevador_esquerda_41(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33);
}
function frame10(){
this._9mc.transform.colorTransform = this.colorTransformToken;
}
function frame14(){
this._12mc.transform.colorTransform = this.colorTransformToken;
}
function frame16(){
this._14mc.transform.colorTransform = this.colorTransformToken;
}
function frame15(){
this._13mc.transform.colorTransform = this.colorTransformToken;
}
function frame18(){
this._16mc.transform.colorTransform = this.colorTransformToken;
}
function frame17(){
this._15mc.transform.colorTransform = this.colorTransformToken;
}
function frame2(){
this._1mc.transform.colorTransform = this.colorTransformToken;
}
function frame4(){
this._3mc.transform.colorTransform = this.colorTransformToken;
}
function frame5(){
this._4mc.transform.colorTransform = this.colorTransformToken;
}
function frame6(){
this._5mc.transform.colorTransform = this.colorTransformToken;
}
function frame7(){
this._6mc.transform.colorTransform = this.colorTransformToken;
}
function frame1(){
this.stop();
}
function frame3(){
this._2mc.transform.colorTransform = this.colorTransformToken;
}
function frame24(){
this._22mc.transform.colorTransform = this.colorTransformToken;
}
function frame12(){
this._10mc.transform.colorTransform = this.colorTransformToken;
}
function frame13(){
this._11mc.transform.colorTransform = this.colorTransformToken;
}
function frame9(){
this._8mc.transform.colorTransform = this.colorTransformToken;
}
function frame22(){
this._20mc.transform.colorTransform = this.colorTransformToken;
}
function frame23(){
this._21mc.transform.colorTransform = this.colorTransformToken;
}
function frame19(){
this._17mc.transform.colorTransform = this.colorTransformToken;
}
function frame21(){
this._19mc.transform.colorTransform = this.colorTransformToken;
}
function frame25(){
this._23mc.transform.colorTransform = this.colorTransformToken;
}
function frame26(){
this._24mc.transform.colorTransform = this.colorTransformToken;
}
function frame8(){
this._7mc.transform.colorTransform = this.colorTransformToken;
}
function frame27(){
this._25mc.transform.colorTransform = this.colorTransformToken;
}
function frame29(){
this._27mc.transform.colorTransform = this.colorTransformToken;
}
function frame30(){
this._28mc.transform.colorTransform = this.colorTransformToken;
}
function frame31(){
this._29mc.transform.colorTransform = this.colorTransformToken;
}
function frame32(){
this._30mc.transform.colorTransform = this.colorTransformToken;
}
function frame20(){
this._18mc.transform.colorTransform = this.colorTransformToken;
}
function frame33(){
this._31mc.transform.colorTransform = this.colorTransformToken;
}
function frame28(){
this._26mc.transform.colorTransform = this.colorTransformToken;
}
}
}//package previewer_v7_fla
Section 16
//Francisco_35 (previewer_v7_fla.Francisco_35)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class Francisco_35 extends MovieClip {
public var colored_object3_mc:LighterOpen;
public var colored_object6_mc:LighterOpen;
public var colored_object9_mc:LighterOpen;
public var colored_object4_mc:LighterOpen;
public var colored_object10_mc:LighterOpen;
public var colored_object1_mc:LighterOpen;
public var colored_object2_mc:LighterOpen;
public var colored_object11_mc:LighterOpen;
public var colored_object5_mc:LighterOpen;
public var colored_object8_mc:LighterOpen;
public function Francisco_35(){
addFrameScript(3, frame4, 4, frame5, 5, frame6, 6, frame7, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24);
}
function frame7(){
this.colored_object4_mc.transform.colorTransform = this.colorTransformToken;
}
function frame20(){
this.colored_object6_mc.transform.colorTransform = this.colorTransformToken;
}
function frame23(){
this.colored_object10_mc.transform.colorTransform = this.colorTransformToken;
}
function frame4(){
this.colored_object1_mc.transform.colorTransform = this.colorTransformToken;
}
function frame5(){
this.colored_object2_mc.transform.colorTransform = this.colorTransformToken;
}
function frame21(){
this.colored_object8_mc.transform.colorTransform = this.colorTransformToken;
}
function frame22(){
this.colored_object9_mc.transform.colorTransform = this.colorTransformToken;
}
function frame24(){
this.colored_object11_mc.transform.colorTransform = this.colorTransformToken;
}
function frame19(){
this.colored_object5_mc.transform.colorTransform = this.colorTransformToken;
}
function frame6(){
this.colored_object3_mc.transform.colorTransform = this.colorTransformToken;
}
}
}//package previewer_v7_fla
Section 17
//FredericoMartins_46 (previewer_v7_fla.FredericoMartins_46)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class FredericoMartins_46 extends MovieClip {
public var colored_object3_mc:BeheadedLighter;
public var colored_object6_mc:BeheadedLighter;
public var colored_object4_mc:BeheadedLighter;
public var colored_object1_mc:BeheadedLighter;
public var colored_object2_mc:BeheadedLighter;
public var colored_object5_mc:BeheadedLighter;
public function FredericoMartins_46(){
addFrameScript(12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18);
}
function frame14(){
this.colored_object2_mc.transform.colorTransform = this.colorTransformToken;
}
function frame18(){
this.colored_object6_mc.transform.colorTransform = this.colorTransformToken;
}
function frame15(){
this.colored_object3_mc.transform.colorTransform = this.colorTransformToken;
}
function frame16(){
this.colored_object4_mc.transform.colorTransform = this.colorTransformToken;
}
function frame17(){
this.colored_object5_mc.transform.colorTransform = this.colorTransformToken;
}
function frame13(){
this.colored_object1_mc.transform.colorTransform = this.colorTransformToken;
}
}
}//package previewer_v7_fla
Section 18
//HBot_49 (previewer_v7_fla.HBot_49)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class HBot_49 extends MovieClip {
public var colored_object3_mc:MovieClip;
public var colored_object1_mc:MovieClip;
public var colored_object2_mc:MovieClip;
public var caixa_mc:MovieClip;
public function HBot_49(){
addFrameScript(1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame3(){
this.colored_object2_mc.transform.colorTransform = this.colorTransformToken;
}
function frame4(){
this.colored_object3_mc.transform.colorTransform = this.colorTransformToken;
}
function frame5(){
this.colored_object4_mc.transform.colorTransform = this.colorTransformToken;
}
function frame2(){
this.colored_object1_mc.transform.colorTransform = this.colorTransformToken;
}
}
}//package previewer_v7_fla
Section 19
//highscores_89 (previewer_v7_fla.highscores_89)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class highscores_89 extends MovieClip {
public var day_worker_score_txt:TextField;
public var monthly_star_score_txt:TextField;
public var player4_name_txt:TextField;
public var monthly_star_highlight_mc:MovieClip;
public var player10_highlight_mc:MovieClip;
public var player1_motto_txt:TextField;
public var player9_motto_txt:TextField;
public var player5_score_txt:TextField;
public var player6_name_txt:TextField;
public var all_time_best_button:PositionButton;
public var i:int;
public var player9_highlight_mc:MovieClip;
public var player8_score_txt:TextField;
public var player8_name_txt:TextField;
public var all_time_hero_motto_txt:TextField;
public var player4_motto_txt:TextField;
public var all_time_hero_highlight_mc:MovieClip;
public var player4_highlight_mc:MovieClip;
public var player10_score_txt:TextField;
public var player1_name_txt:TextField;
public var player7_motto_txt:TextField;
public var player3_score_txt:TextField;
public var player3_highlight_mc:MovieClip;
public var player8_highlight_mc:MovieClip;
public var all_time_hero_name_txt:TextField;
public var player3_name_txt:TextField;
public var player2_motto_txt:TextField;
public var daily_workers_button:PositionButton;
public var player6_score_txt:TextField;
public var day_worker_highlight_mc:MovieClip;
public var day_worker_motto_txt:TextField;
public var monthly_star_motto_txt:TextField;
public var player2_highlight_mc:MovieClip;
public var player7_highlight_mc:MovieClip;
public var player5_name_txt:TextField;
public var player5_motto_txt:TextField;
public var player1_score_txt:TextField;
public var player9_score_txt:TextField;
public var all_time_hero_score_txt:TextField;
public var monthly_star_name_txt:TextField;
public var player10_name_txt:TextField;
public var player7_name_txt:TextField;
public var player1_highlight_mc:MovieClip;
public var player8_motto_txt:TextField;
public var player4_score_txt:TextField;
public var player10_motto_txt:TextField;
public var player6_highlight_mc:MovieClip;
public var player9_name_txt:TextField;
public var player3_motto_txt:TextField;
public var player7_score_txt:TextField;
public var day_worker_name_txt:TextField;
public var monthly_stars_button:PositionButton;
public var player2_name_txt:TextField;
public var continue_button:PositionButton;
public var player5_highlight_mc:MovieClip;
public var player6_motto_txt:TextField;
public var player2_score_txt:TextField;
public function highscores_89(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame4(){
this.stop();
this.all_time_best_button.enabled = true;
this.monthly_stars_button.enabled = true;
this.daily_workers_button.enabled = true;
this.all_time_best_button.visible = true;
this.monthly_stars_button.visible = true;
this.daily_workers_button.visible = true;
this.all_time_hero_name_txt.text = this.all_time_hero_name;
this.all_time_hero_score_txt.text = (((((this.all_time_hero_time + " LV:") + this.all_time_hero_level) + " ") + this.all_time_hero_score) + " PTS");
this.all_time_hero_motto_txt.text = this.all_time_hero_motto;
this.monthly_star_name_txt.text = this.monthly_star_name;
this.monthly_star_score_txt.text = (((((this.monthly_star_time + " LV:") + this.monthly_star_level) + " ") + this.monthly_star_score) + " PTS");
this.monthly_star_motto_txt.text = this.monthly_star_motto;
this.day_worker_name_txt.text = this.day_worker_name;
this.day_worker_score_txt.text = (((((this.day_worker_time + " LV:") + this.day_worker_level) + " ") + this.day_worker_score) + " PTS");
this.day_worker_motto_txt.text = this.day_worker_motto;
i = 11;
while (--i >= 1) {
this[(("player" + i) + "_name_txt")].text = this[(("daily_workers_player" + i) + "_name")];
this[(("player" + i) + "_score_txt")].text = (((((this[(("daily_workers_player" + i) + "_time")] + " LV:") + this[(("daily_workers_player" + i) + "_level")]) + " ") + this[(("daily_workers_player" + i) + "_score")]) + " PTS");
this[(("player" + i) + "_motto_txt")].text = this[(("daily_workers_player" + i) + "_motto")];
this[(("player" + i) + "_highlight_mc")].gotoAndStop("idle");
};
if (this.activeHighlight3 != null){
this.activeHighlight3.gotoAndPlay("start");
};
if (this.activeHighlight0 != null){
this.activeHighlight0.gotoAndPlay("start");
};
}
function frame1(){
this.stop();
this.all_time_best_button.enabled = false;
this.monthly_stars_button.enabled = false;
this.daily_workers_button.enabled = false;
this.all_time_best_button.visible = false;
this.monthly_stars_button.visible = false;
this.daily_workers_button.visible = false;
if (this.activeHighlight0 != null){
this.activeHighlight0.gotoAndPlay("idle");
};
if (this.activeHighlight1 != null){
this.activeHighlight1.gotoAndPlay("idle");
};
if (this.activeHighlight2 != null){
this.activeHighlight2.gotoAndPlay("idle");
};
if (this.activeHighlight3 != null){
this.activeHighlight3.gotoAndPlay("idle");
};
}
function frame3(){
this.stop();
this.all_time_best_button.enabled = true;
this.monthly_stars_button.enabled = true;
this.daily_workers_button.enabled = true;
this.all_time_best_button.visible = true;
this.monthly_stars_button.visible = true;
this.daily_workers_button.visible = true;
this.all_time_hero_name_txt.text = this.all_time_hero_name;
this.all_time_hero_score_txt.text = (((((this.all_time_hero_time + " LV:") + this.all_time_hero_level) + " ") + this.all_time_hero_score) + " PTS");
this.all_time_hero_motto_txt.text = this.all_time_hero_motto;
this.monthly_star_name_txt.text = this.monthly_star_name;
this.monthly_star_score_txt.text = (((((this.monthly_star_time + " LV:") + this.monthly_star_level) + " ") + this.monthly_star_score) + " PTS");
this.monthly_star_motto_txt.text = this.monthly_star_motto;
this.day_worker_name_txt.text = this.day_worker_name;
this.day_worker_score_txt.text = (((((this.day_worker_time + " LV:") + this.day_worker_level) + " ") + this.day_worker_score) + " PTS");
this.day_worker_motto_txt.text = this.day_worker_motto;
i = 11;
while (--i >= 1) {
this[(("player" + i) + "_name_txt")].text = this[(("monthly_stars_player" + i) + "_name")];
this[(("player" + i) + "_score_txt")].text = (((((this[(("monthly_stars_player" + i) + "_time")] + " LV:") + this[(("monthly_stars_player" + i) + "_level")]) + " ") + this[(("monthly_stars_player" + i) + "_score")]) + " PTS");
this[(("player" + i) + "_motto_txt")].text = this[(("monthly_stars_player" + i) + "_motto")];
this[(("player" + i) + "_highlight_mc")].gotoAndStop("idle");
};
if (this.activeHighlight2 != null){
this.activeHighlight2.gotoAndPlay("start");
};
if (this.activeHighlight0 != null){
this.activeHighlight0.gotoAndPlay("start");
};
}
function frame2(){
this.stop();
this.all_time_best_button.enabled = true;
this.monthly_stars_button.enabled = true;
this.daily_workers_button.enabled = true;
this.all_time_best_button.visible = true;
this.monthly_stars_button.visible = true;
this.daily_workers_button.visible = true;
this.all_time_hero_name_txt.text = this.all_time_hero_name;
this.all_time_hero_score_txt.text = (((((this.all_time_hero_time + " LV:") + this.all_time_hero_level) + " ") + this.all_time_hero_score) + " PTS");
this.all_time_hero_motto_txt.text = this.all_time_hero_motto;
this.monthly_star_name_txt.text = this.monthly_star_name;
this.monthly_star_score_txt.text = (((((this.monthly_star_time + " LV:") + this.monthly_star_level) + " ") + this.monthly_star_score) + " PTS");
this.monthly_star_motto_txt.text = this.monthly_star_motto;
this.day_worker_name_txt.text = this.day_worker_name;
this.day_worker_score_txt.text = (((((this.day_worker_time + " LV:") + this.day_worker_level) + " ") + this.day_worker_score) + " PTS");
this.day_worker_motto_txt.text = this.day_worker_motto;
i = 11;
while (--i >= 1) {
this[(("player" + i) + "_name_txt")].text = this[(("all_time_best_player" + i) + "_name")];
this[(("player" + i) + "_score_txt")].text = (((((this[(("all_time_best_player" + i) + "_time")] + " LV:") + this[(("all_time_best_player" + i) + "_level")]) + " ") + this[(("all_time_best_player" + i) + "_score")]) + " PTS");
this[(("player" + i) + "_motto_txt")].text = this[(("all_time_best_player" + i) + "_motto")];
this[(("player" + i) + "_highlight_mc")].gotoAndStop("idle");
};
if (this.activeHighlight1 != null){
this.activeHighlight1.gotoAndPlay("start");
};
if (this.activeHighlight0 != null){
this.activeHighlight0.gotoAndPlay("start");
};
}
}
}//package previewer_v7_fla
Section 20
//light_glow_71 (previewer_v7_fla.light_glow_71)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class light_glow_71 extends MovieClip {
public var loopID:Number;
public function light_glow_71(){
addFrameScript(0, frame1);
}
function frame1(){
clearInterval(loopID);
stop();
loopID = setInterval(loop, 3000);
}
public function loop(){
rr = Math.round((Math.random() * 2));
if (rr == 2){
gotoAndPlay((Math.round((Math.random() * 2)) + 1));
};
}
}
}//package previewer_v7_fla
Section 21
//liveup_81 (previewer_v7_fla.liveup_81)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class liveup_81 extends MovieClip {
public function liveup_81(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
this.stop();
}
function frame2(){
this.stop();
}
}
}//package previewer_v7_fla
Section 22
//LOSE00_87 (previewer_v7_fla.LOSE00_87)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class LOSE00_87 extends MovieClip {
public var submit_score_txt:TextField;
public var instructions_button:PositionButton;
public var play_again_button:PositionButton;
public var score_txt:TextField;
public var submit_score_button:PositionButton;
public var totals_total_txt:TextField;
public var totals_time_txt:TextField;
public var totals_level_txt:TextField;
public var totals_lighters_txt:TextField;
public var totals_shifts_txt:TextField;
public function LOSE00_87(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame3(){
this.stop();
this.play_again_button.visible = true;
this.instructions_button.visible = true;
this.submit_score_button.visible = true;
this.play_again_button.enabled = true;
this.instructions_button.enabled = true;
this.submit_score_button.enabled = true;
this.score_txt.text = this.totalScore;
if (!this.ALLOW_HIGHSCORES){
this.submit_score_button.enabled = false;
this.submit_score_button.visible = false;
this.submit_score_txt.visible = false;
};
}
function frame1(){
this.stop();
this.play_again_button.visible = false;
this.instructions_button.visible = false;
this.submit_score_button.visible = false;
this.play_again_button.enabled = false;
this.instructions_button.enabled = false;
this.submit_score_button.enabled = false;
if (!this.ALLOW_HIGHSCORES){
this.submit_score_button.enabled = false;
this.submit_score_button.visible = false;
};
}
function frame4(){
this.stop();
this.play_again_button.visible = true;
this.instructions_button.visible = true;
this.submit_score_button.visible = true;
this.play_again_button.enabled = true;
this.instructions_button.enabled = true;
this.submit_score_button.enabled = true;
this.score_txt.text = this.totalScore;
if (!this.ALLOW_HIGHSCORES){
this.submit_score_button.enabled = false;
this.submit_score_button.visible = false;
this.submit_score_txt.visible = false;
};
}
function frame5(){
this.stop();
this.play_again_button.visible = true;
this.instructions_button.visible = true;
this.submit_score_button.visible = true;
this.play_again_button.enabled = true;
this.instructions_button.enabled = true;
this.submit_score_button.enabled = true;
this.score_txt.text = this.totalScore;
if (!this.ALLOW_HIGHSCORES){
this.submit_score_button.enabled = false;
this.submit_score_button.visible = false;
this.submit_score_txt.visible = false;
};
}
function frame2(){
this.stop();
this.play_again_button.visible = false;
this.instructions_button.visible = false;
this.submit_score_button.visible = false;
this.play_again_button.enabled = false;
this.instructions_button.enabled = false;
this.submit_score_button.enabled = false;
this.totals_time_txt.text = this.totalsTime;
this.totals_level_txt.text = this.totalsLevel;
this.totals_lighters_txt.text = this.totalsLighters;
this.totals_shifts_txt.text = this.totalsShifts;
this.totals_total_txt.text = this.totalsTotal;
if (!this.ALLOW_HIGHSCORES){
this.submit_score_button.enabled = false;
this.submit_score_button.visible = false;
};
}
}
}//package previewer_v7_fla
Section 23
//lostlife_94 (previewer_v7_fla.lostlife_94)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class lostlife_94 extends MovieClip {
public var again_times_txt:TextField;
public function lostlife_94(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
this.stop();
}
function frame2(){
this.stop();
this.again_times_txt.text = this.againTimes;
}
}
}//package previewer_v7_fla
Section 24
//LuisMelo_51 (previewer_v7_fla.LuisMelo_51)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class LuisMelo_51 extends MovieClip {
public function LuisMelo_51(){
addFrameScript(0, frame1, 1, frame2, 6, frame7, 11, frame12);
}
function frame12(){
this.stop();
}
function frame7(){
this.stop();
}
function frame1(){
this.stop();
}
function frame2(){
this.stop();
}
}
}//package previewer_v7_fla
Section 25
//MainTimeline (previewer_v7_fla.MainTimeline)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class MainTimeline extends MovieClip {
public const ALLOW_HIGHSCORES:Boolean = false;
public var silva1_button:PositionButton;
public var left_lifter_mc:MovieClip;
public var silva2_mo_light3_mc:MovieClip;
public var myMenu_cm:ContextMenu;
public var david1_light_red_mc:MovieClip;
public var silva3_light_red_mc:MovieClip;
public var david3_mo_light1_mc:MovieClip;
public var remaining_score_stock_txt:TextField;
public var david4_button:PositionButton;
public var focus_lost_mc:MovieClip;
public var light_glow_L1_mc:MovieClip;
public var lighter_closed_mc:LighterClosed;
public var score_stock_txt:TextField;
public var silva2_mo_light4_mc:MovieClip;
public var sound_button:SimpleButton;
public var david3_mo_light2_mc:MovieClip;
public var screen_highscores_mc:MovieClip;
public var lighter_closed_side_view_mc:LighterClosedSideView;
public var screen_lost_life_mc:MovieClip;
public var david1_puff_mc:MovieClip;
public var silva1_smoke_pop_mc:MovieClip;
public var silva4_puff_mc:MovieClip;
public var stripped_curtain_mc:MovieClip;
public var score_transfers_txt:TextField;
public var david4_smoke_pop_mc:MovieClip;
public var silva2_puff_down_mc:MovieClip;
public var radio_left_speaker_mc:MovieClip;
public var silva4_light_green_mc:MovieClip;
public var shadow5_5_mc:MovieClip;
public var screen_submit_score_mc:MovieClip;
public var david1_mc:MovieClip;
public var david3_mo_light3_mc:MovieClip;
public var silva1_light_red_mc:MovieClip;
public var david1_mo_light1_mc:MovieClip;
public var silva2_button:PositionButton;
public var silva3_mo_light1_mc:MovieClip;
public var david4_light_red_mc:MovieClip;
public var fredericoMartins_mc:MovieClip;
public var silva2_light_green_mc:MovieClip;
public var incandescent_lighter2_mc:IncandescentLighter;
public var screen_level_start_mc:MovieClip;
public var beheaded_lighter_laid_mc:BeheadedLighterLaid;
public var silva2_puff_up_mc:MovieClip;
public var david2_puff_up_mc:MovieClip;
public var david3_mo_light4_mc:MovieClip;
public var david1_mo_light2_mc:MovieClip;
public var computer_mc:MovieClip;
public var fredericoJeronimo_mc:MovieClip;
public var silva3_mo_light2_mc:MovieClip;
public var l4:MovieClip;
public var baseVolume:int;
public var david3_light_green_mc:MovieClip;
public var david2_mc:MovieClip;
public var shadow6_5_mc:MovieClip;
public var life1_mc:MovieClip;
public var david1_button:PositionButton;
public var david2_smoke_pop_mc:MovieClip;
public var silva4_smoke_pop_mc:MovieClip;
public var david4_puff_mc:MovieClip;
public var hBot_mc:MovieClip;
public var david3_puff_down_mc:MovieClip;
public var lighter_closed_side_view_laid_mc:LighterClosedSideViewLaid;
public var david1_light_green_mc:MovieClip;
public var david1_mo_light3_mc:MovieClip;
public var david3_mc:MovieClip;
public var silva3_mo_light3_mc:MovieClip;
public var silva1_mo_light1_mc:MovieClip;
public var ricardo_mc:MovieClip;
public var david2_light_red_mc:MovieClip;
public var silva4_light_red_mc:MovieClip;
public var david4_mo_light1_mc:MovieClip;
public var silva3_button:PositionButton;
public var life2_mc:MovieClip;
public var nande_mc:MovieClip;
public var silva1_mc:MovieClip;
public var screen_connecting_mc:MovieClip;
public var playList:Array;
public var david4_mc:MovieClip;
public var david1_mo_light4_mc:MovieClip;
public var time_txt:TextField;
public var preloader_mc:MovieClip;
public var silva3_mo_light4_mc:MovieClip;
public var shadow7_5_mc:MovieClip;
public var silva1_mo_light2_mc:MovieClip;
public var radio_lcd_mc:MovieClip;
public var playListIndex:int;
public var david4_mo_light2_mc:MovieClip;
public var life3_mc:MovieClip;
public var screen_forgiving_mc:MovieClip;
public var silva2_mc:MovieClip;
public var silva2_smoke_pop_mc:MovieClip;
public var sc:SoundChannel;
public var david2_button:PositionButton;
public var screen_splash_mc:MovieClip;
public var liquid_gas_container_mc:MovieClip;
public var st:SoundTransform;
public var silva3_puff_down_mc:MovieClip;
public var silva1_mo_light3_mc:MovieClip;
public var david4_mo_light3_mc:MovieClip;
public var david2_mo_light1_mc:MovieClip;
public var david3_puff_up_mc:MovieClip;
public var tapume5_5_mc:MovieClip;
public var silva2_light_red_mc:MovieClip;
public var silva3_puff_up_mc:MovieClip;
public var lighter_open2_mc:LighterOpen;
public var lighter_closed_laid_mc:LighterClosedLaid;
public var final_package_mc:LighterPackage;
public var francisco_mc:MovieClip;
public var silva4_button:PositionButton;
public var silva4_mo_light1_mc:MovieClip;
public var silva3_mc:MovieClip;
public var music1:Sound;
public var music2:Sound;
public var silva1_mo_light4_mc:MovieClip;
public var david4_mo_light4_mc:MovieClip;
public var david2_mo_light2_mc:MovieClip;
public var silva3_light_green_mc:MovieClip;
public var beheaded_lighter_mc:BeheadedLighter;
public var silva4_mo_light2_mc:MovieClip;
public var shadow5_mc:MovieClip;
public var silva4_mc:MovieClip;
public var scrum_sheets_mc:ScrumSheets;
public var press_mc:MovieClip;
public var tapume6_5_mc:MovieClip;
public var david3_smoke_pop_mc:MovieClip;
public var volume:int;
public var silva1_light_green_mc:MovieClip;
public var ca_sheet_mc:MovieClip;
public var david3_button:PositionButton;
public var david4_light_green_mc:MovieClip;
public var david2_mo_light3_mc:MovieClip;
public var cadinho_mc:MovieClip;
public var luisMelo_mc:MovieClip;
public var tiago_mc:MovieClip;
public var silva2_mo_light1_mc:MovieClip;
public var david3_light_red_mc:MovieClip;
public var silva4_mo_light3_mc:MovieClip;
public var screen_lives_out_mc:MovieClip;
public var soundOn:Boolean;
public var shadow6_mc:MovieClip;
public var incandescent_lighter_mc:IncandescentLighter;
public var david2_light_green_mc:MovieClip;
public var lighter_closed_laid2_mc:LighterClosedLaid;
public var ca_sheet_roll_mc:CASheetRoll;
public var david2_mo_light4_mc:MovieClip;
public var radio_right_speaker_mc:MovieClip;
public var silva1_puff_mc:MovieClip;
public var silva4_mo_light4_mc:MovieClip;
public var silva2_mo_light2_mc:MovieClip;
public var lighter_open_mc:LighterOpen;
public var tapume7_5_mc:MovieClip;
public var molten_metal_mc:MoltenMetal;
public var shadow7_mc:MovieClip;
public var david1_smoke_pop_mc:MovieClip;
public var right_lifter_mc:MovieClip;
public var molten_metal2_mc:MoltenMetal;
public var silva3_smoke_pop_mc:MovieClip;
public var david2_puff_down_mc:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
if (ALLOW_HIGHSCORES){
Security.loadPolicyFile("http://www.ignite-games.com/IgniteAssemblyLine/crossdomain.xml");
};
stage.addEventListener(Event.ENTER_FRAME, preload_);
}
function frame2(){
stop();
myMenu_cm = new ContextMenu();
myMenu_cm.hideBuiltInItems();
contextMenu = myMenu_cm;
preloader_mc.stop();
stage.addEventListener(Event.ENTER_FRAME, preload);
}
function frame3(){
stop();
screen_splash_mc.ALLOW_HIGHSCORES = ALLOW_HIGHSCORES;
screen_lives_out_mc.ALLOW_HIGHSCORES = ALLOW_HIGHSCORES;
Util.setStage(stage);
luisMelo_mc.stop();
fredericoJeronimo_mc.stop();
fredericoMartins_mc.stop();
ricardo_mc.stop();
francisco_mc.stop();
tiago_mc.stop();
nande_mc.stop();
hBot_mc.stop();
computer_mc.stop();
cadinho_mc.stop();
press_mc.stop();
stripped_curtain_mc.stop();
silva1_mc.stop();
silva2_mc.stop();
silva3_mc.stop();
silva4_mc.stop();
david1_mc.stop();
david2_mc.stop();
david3_mc.stop();
david4_mc.stop();
silva2_mc.visible = false;
silva3_mc.visible = false;
silva4_mc.visible = false;
david2_mc.visible = false;
david3_mc.visible = false;
david4_mc.visible = false;
ca_sheet_roll_mc.stop();
scrum_sheets_mc.stop();
molten_metal_mc.stop();
molten_metal2_mc.stop();
incandescent_lighter_mc.stop();
incandescent_lighter2_mc.stop();
beheaded_lighter_mc.stop();
beheaded_lighter_laid_mc.stop();
lighter_closed_side_view_laid_mc.stop();
lighter_closed_side_view_mc.stop();
lighter_closed_mc.stop();
lighter_open_mc.stop();
lighter_open2_mc.stop();
lighter_closed_laid_mc.stop();
lighter_closed_laid2_mc.stop();
final_package_mc.stop();
ca_sheet_roll_mc.visible = false;
scrum_sheets_mc.visible = false;
molten_metal_mc.visible = false;
molten_metal2_mc.visible = false;
incandescent_lighter_mc.visible = false;
incandescent_lighter2_mc.visible = false;
beheaded_lighter_mc.visible = false;
beheaded_lighter_laid_mc.visible = false;
lighter_closed_side_view_laid_mc.visible = false;
lighter_closed_side_view_mc.visible = false;
lighter_closed_mc.visible = false;
lighter_open_mc.visible = false;
lighter_open2_mc.visible = false;
lighter_closed_laid_mc.visible = false;
lighter_closed_laid2_mc.visible = false;
final_package_mc.visible = false;
screen_splash_mc.stop();
screen_highscores_mc.stop();
screen_lives_out_mc.stop();
screen_lost_life_mc.stop();
screen_level_start_mc.stop();
GameManager.init();
stage.addEventListener(Event.ENTER_FRAME, GameManager.manage);
david1_button.addEventListener(MouseEvent.MOUSE_DOWN, GameManager.silvaDavidButtonClicked);
david2_button.addEventListener(MouseEvent.MOUSE_DOWN, GameManager.silvaDavidButtonClicked);
david3_button.addEventListener(MouseEvent.MOUSE_DOWN, GameManager.silvaDavidButtonClicked);
david4_button.addEventListener(MouseEvent.MOUSE_DOWN, GameManager.silvaDavidButtonClicked);
silva1_button.addEventListener(MouseEvent.MOUSE_DOWN, GameManager.silvaDavidButtonClicked);
silva2_button.addEventListener(MouseEvent.MOUSE_DOWN, GameManager.silvaDavidButtonClicked);
silva3_button.addEventListener(MouseEvent.MOUSE_DOWN, GameManager.silvaDavidButtonClicked);
silva4_button.addEventListener(MouseEvent.MOUSE_DOWN, GameManager.silvaDavidButtonClicked);
david1_button.addEventListener(MouseEvent.MOUSE_OVER, GameManager.silvaDavidButtonOverOut);
david2_button.addEventListener(MouseEvent.MOUSE_OVER, GameManager.silvaDavidButtonOverOut);
david3_button.addEventListener(MouseEvent.MOUSE_OVER, GameManager.silvaDavidButtonOverOut);
david4_button.addEventListener(MouseEvent.MOUSE_OVER, GameManager.silvaDavidButtonOverOut);
silva1_button.addEventListener(MouseEvent.MOUSE_OVER, GameManager.silvaDavidButtonOverOut);
silva2_button.addEventListener(MouseEvent.MOUSE_OVER, GameManager.silvaDavidButtonOverOut);
silva3_button.addEventListener(MouseEvent.MOUSE_OVER, GameManager.silvaDavidButtonOverOut);
silva4_button.addEventListener(MouseEvent.MOUSE_OVER, GameManager.silvaDavidButtonOverOut);
david1_button.addEventListener(MouseEvent.MOUSE_OUT, GameManager.silvaDavidButtonOverOut);
david2_button.addEventListener(MouseEvent.MOUSE_OUT, GameManager.silvaDavidButtonOverOut);
david3_button.addEventListener(MouseEvent.MOUSE_OUT, GameManager.silvaDavidButtonOverOut);
david4_button.addEventListener(MouseEvent.MOUSE_OUT, GameManager.silvaDavidButtonOverOut);
silva1_button.addEventListener(MouseEvent.MOUSE_OUT, GameManager.silvaDavidButtonOverOut);
silva2_button.addEventListener(MouseEvent.MOUSE_OUT, GameManager.silvaDavidButtonOverOut);
silva3_button.addEventListener(MouseEvent.MOUSE_OUT, GameManager.silvaDavidButtonOverOut);
silva4_button.addEventListener(MouseEvent.MOUSE_OUT, GameManager.silvaDavidButtonOverOut);
screen_lives_out_mc.play_again_button.addEventListener(MouseEvent.CLICK, GameManager.startNewGame);
screen_lives_out_mc.instructions_button.addEventListener(MouseEvent.CLICK, Screens.showInstructions);
screen_lives_out_mc.submit_score_button.addEventListener(MouseEvent.CLICK, Screens.showSubmitScore);
screen_submit_score_mc.cancel_button.addEventListener(MouseEvent.CLICK, Screens.cancelSubmitScore);
screen_submit_score_mc.submit_button.addEventListener(MouseEvent.CLICK, GameManager.submitScore);
screen_highscores_mc.all_time_best_button.addEventListener(MouseEvent.CLICK, function (){
screen_highscores_mc.gotoAndStop("all_time_best");
});
screen_highscores_mc.monthly_stars_button.addEventListener(MouseEvent.CLICK, function (){
screen_highscores_mc.gotoAndStop("monthly_stars");
});
screen_highscores_mc.daily_workers_button.addEventListener(MouseEvent.CLICK, function (){
screen_highscores_mc.gotoAndStop("daily_workers");
});
screen_highscores_mc.continue_button.addEventListener(MouseEvent.CLICK, Screens.showInstructions);
screen_splash_mc.highscores_button.addEventListener(MouseEvent.CLICK, Screens.showHighscores);
screen_splash_mc.play_button.addEventListener(MouseEvent.CLICK, GameManager.startNewGame);
sound_button.addEventListener(MouseEvent.CLICK, soundOnOff);
soundOn = true;
baseVolume = SoundMixer.soundTransform.volume;
st = new SoundTransform();
volume = 0;
music1 = new FactoryMusic1();
music2 = new FactoryMusic2();
playList = [music1, music1, music2, music2];
playListIndex = 0;
sc = playList[playListIndex].play();
sc.addEventListener(Event.SOUND_COMPLETE, musicCompleted);
}
public function musicCompleted(_arg1:Event):void{
playListIndex++;
if (playListIndex >= playList.length){
playListIndex = 0;
};
sc = playList[playListIndex].play();
sc.addEventListener(Event.SOUND_COMPLETE, musicCompleted);
}
public function preload(_arg1:Event):void{
var _local2:int;
_local2 = int(((preloader_mc.totalFrames * stage.loaderInfo.bytesLoaded) / stage.loaderInfo.bytesTotal));
if (_local2 >= preloader_mc.totalFrames){
stage.removeEventListener(Event.ENTER_FRAME, preload);
gotoAndStop(3);
} else {
preloader_mc.gotoAndStop(_local2);
};
}
public function soundOnOff(_arg1:Event):void{
volume = 0;
if (!soundOn){
volume = baseVolume;
radio_lcd_mc.gotoAndPlay(1);
radio_left_speaker_mc.gotoAndPlay(1);
radio_right_speaker_mc.gotoAndPlay(1);
} else {
radio_lcd_mc.gotoAndStop(1);
radio_left_speaker_mc.gotoAndStop(1);
radio_right_speaker_mc.gotoAndStop(1);
};
soundOn = !(soundOn);
st.volume = volume;
SoundMixer.soundTransform = st;
}
public function preload_(_arg1:Event):void{
if (framesLoaded >= 2){
stage.removeEventListener(Event.ENTER_FRAME, preload_);
gotoAndStop(2);
};
}
}
}//package previewer_v7_fla
Section 26
//nextlevel_92 (previewer_v7_fla.nextlevel_92)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class nextlevel_92 extends MovieClip {
public var level_txt:TextField;
public var objective_txt:TextField;
public function nextlevel_92(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
this.stop();
}
function frame2(){
this.stop();
this.level_txt.text = this.gameLevel;
this.objective_txt.text = this.gameObjective;
}
}
}//package previewer_v7_fla
Section 27
//NOOOO2_88 (previewer_v7_fla.NOOOO2_88)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class NOOOO2_88 extends MovieClip {
public function NOOOO2_88(){
addFrameScript(15, frame16);
}
function frame16(){
gotoAndPlay(14);
}
}
}//package previewer_v7_fla
Section 28
//onofflight_56 (previewer_v7_fla.onofflight_56)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class onofflight_56 extends MovieClip {
public function onofflight_56(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package previewer_v7_fla
Section 29
//onofflightSTATIC_55 (previewer_v7_fla.onofflightSTATIC_55)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class onofflightSTATIC_55 extends MovieClip {
public function onofflightSTATIC_55(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package previewer_v7_fla
Section 30
//Preloader_1 (previewer_v7_fla.Preloader_1)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class Preloader_1 extends MovieClip {
public function Preloader_1(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package previewer_v7_fla
Section 31
//puffsilvastantgoup_15 (previewer_v7_fla.puffsilvastantgoup_15)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class puffsilvastantgoup_15 extends MovieClip {
public function puffsilvastantgoup_15(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package previewer_v7_fla
Section 32
//puffsilvastantpop_14 (previewer_v7_fla.puffsilvastantpop_14)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class puffsilvastantpop_14 extends MovieClip {
public function puffsilvastantpop_14(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package previewer_v7_fla
Section 33
//Ricardo_36 (previewer_v7_fla.Ricardo_36)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class Ricardo_36 extends MovieClip {
public var colored_object3_mc:LighterClosedSideViewLaid;
public var colored_object6_mc:LighterClosedSideViewLaid;
public var colored_object4_mc:LighterClosedSideViewLaid;
public var colored_object1_mc:BeheadedLighterLaid;
public var colored_object2_mc:LighterClosedSideViewLaid;
public var colored_object5_mc:LighterClosedSideViewLaid;
public function Ricardo_36(){
addFrameScript(1, frame2, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11);
}
function frame10(){
this.colored_object5_mc.transform.colorTransform = this.colorTransformToken;
}
function frame7(){
this.colored_object2_mc.transform.colorTransform = this.colorTransformToken;
}
function frame8(){
this.colored_object3_mc.transform.colorTransform = this.colorTransformToken;
}
function frame9(){
this.colored_object4_mc.transform.colorTransform = this.colorTransformToken;
}
function frame11(){
this.colored_object6_mc.transform.colorTransform = this.colorTransformToken;
}
function frame2(){
this.colored_object1_mc.transform.colorTransform = this.colorTransformToken;
}
}
}//package previewer_v7_fla
Section 34
//SilvaGripping3_28 (previewer_v7_fla.SilvaGripping3_28)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class SilvaGripping3_28 extends MovieClip {
public var colored_object3_mc:LighterClosedSideView;
public var colored_object6_mc:LighterClosedSideView;
public var colored_object4_mc:LighterClosedSideView;
public var colored_object1_mc:LighterClosedSideView;
public var colored_object7_mc:LighterClosedSideView;
public function SilvaGripping3_28(){
addFrameScript(2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame3(){
this.colored_object1_mc.transform.colorTransform = this.colorTransformToken;
}
function frame6(){
this.colored_object6_mc.transform.colorTransform = this.colorTransformToken;
}
function frame7(){
this.colored_object7_mc.transform.colorTransform = this.colorTransformToken;
}
function frame4(){
this.colored_object3_mc.transform.colorTransform = this.colorTransformToken;
}
function frame5(){
this.colored_object4_mc.transform.colorTransform = this.colorTransformToken;
}
}
}//package previewer_v7_fla
Section 35
//SilvaStanding_17 (previewer_v7_fla.SilvaStanding_17)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class SilvaStanding_17 extends MovieClip {
public var colored_object3_mc:LighterClosed;
public var colored_object6_mc:LighterClosed;
public var colored_object4_mc:LighterClosed;
public var colored_object1_mc:LighterClosed;
public var colored_object2_mc:LighterClosed;
public var colored_object5_mc:LighterClosed;
public function SilvaStanding_17(){
addFrameScript(1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7);
}
function frame3(){
this.colored_object2_mc.transform.colorTransform = this.colorTransformToken;
}
function frame6(){
this.colored_object5_mc.transform.colorTransform = this.colorTransformToken;
}
function frame7(){
this.colored_object6_mc.transform.colorTransform = this.colorTransformToken;
}
function frame4(){
this.colored_object3_mc.transform.colorTransform = this.colorTransformToken;
}
function frame5(){
this.colored_object4_mc.transform.colorTransform = this.colorTransformToken;
}
function frame2(){
this.colored_object1_mc.transform.colorTransform = this.colorTransformToken;
}
}
}//package previewer_v7_fla
Section 36
//splash_97 (previewer_v7_fla.splash_97)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class splash_97 extends MovieClip {
public var view_highscores_txt:TextField;
public var view_highscores_arrow:MovieClip;
public var play_button:PositionButton;
public var highscores_button:PositionButton;
public function splash_97(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
this.stop();
this.highscores_button.enabled = false;
this.play_button.enabled = false;
this.highscores_button.visible = false;
this.play_button.visible = false;
if (!this.ALLOW_HIGHSCORES){
this.highscores_button.enabled = false;
this.highscores_button.visible = false;
this.view_highscores_txt.visible = false;
this.view_highscores_arrow.visible = false;
};
}
function frame2(){
this.highscores_button.enabled = true;
this.play_button.enabled = true;
this.highscores_button.visible = true;
this.play_button.visible = true;
if (!this.ALLOW_HIGHSCORES){
this.highscores_button.enabled = false;
this.highscores_button.visible = false;
this.view_highscores_txt.visible = false;
this.view_highscores_arrow.visible = false;
};
}
}
}//package previewer_v7_fla
Section 37
//Symbol17_9 (previewer_v7_fla.Symbol17_9)
package previewer_v7_fla {
import flash.display.*;
public dynamic class Symbol17_9 extends MovieClip {
public var liquid_gas_mc:MovieClip;
}
}//package previewer_v7_fla
Section 38
//Symbol29_85 (previewer_v7_fla.Symbol29_85)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class Symbol29_85 extends MovieClip {
public function Symbol29_85(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
this.stop();
}
function frame1(){
this.stop();
}
function frame2(){
this.stop();
}
}
}//package previewer_v7_fla
Section 39
//Symbol30_90 (previewer_v7_fla.Symbol30_90)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class Symbol30_90 extends MovieClip {
public function Symbol30_90(){
addFrameScript(0, frame1, 11, frame12);
}
function frame12(){
this.gotoAndPlay("start");
}
function frame1(){
this.stop();
}
}
}//package previewer_v7_fla
Section 40
//Symbol390000_82 (previewer_v7_fla.Symbol390000_82)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class Symbol390000_82 extends MovieClip {
public var motto_txt:TextField;
public var score_txt:TextField;
public var submit_button:PositionButton;
public var cancel_button:PositionButton;
public var name_txt:TextField;
public function Symbol390000_82(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
this.stop();
this.cancel_button.visible = false;
this.submit_button.visible = false;
this.cancel_button.enabled = false;
this.submit_button.enabled = false;
}
function frame2(){
this.stop();
this.cancel_button.visible = true;
this.submit_button.visible = true;
this.cancel_button.enabled = true;
this.submit_button.enabled = true;
this.score_txt.text = this.score;
if (this.playerName != null){
this.name_txt.text = this.playerName;
};
if (this.playerMotto != null){
this.motto_txt.text = this.playerMotto;
};
this.name_txt.addEventListener(Event.CHANGE, makeUpperCase);
}
public function makeUpperCase(_arg1:Event):void{
this.name_txt.text = this.name_txt.text.toUpperCase();
}
}
}//package previewer_v7_fla
Section 41
//tadanloser_77 (previewer_v7_fla.tadanloser_77)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class tadanloser_77 extends MovieClip {
public function tadanloser_77(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package previewer_v7_fla
Section 42
//Tiago_59 (previewer_v7_fla.Tiago_59)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class Tiago_59 extends MovieClip {
public var colored_object3_mc:MovieClip;
public var colored_object6_mc:MovieClip;
public var colored_object9_mc:MovieClip;
public var colored_object4_mc:MovieClip;
public var colored_object1_mc:MovieClip;
public var colored_object2_mc:MovieClip;
public var colored_object7_mc:MovieClip;
public var colored_object5_mc:MovieClip;
public var colored_object8_mc:MovieClip;
public function Tiago_59(){
addFrameScript(2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 21, frame22, 22, frame23, 23, frame24, 24, frame25);
}
function frame3(){
this.colored_object1_mc.transform.colorTransform = this.colorTransformToken;
}
function frame6(){
this.colored_object3_mc.transform.colorTransform = this.colorTransformToken;
}
function frame7(){
this.colored_object4_mc.transform.colorTransform = this.colorTransformToken;
}
function frame8(){
this.colored_object5_mc.transform.colorTransform = this.colorTransformToken;
}
function frame23(){
this.colored_object7_mc.transform.colorTransform = this.colorTransformToken;
}
function frame4(){
this.colored_object2_mc.transform.colorTransform = this.colorTransformToken;
}
function frame5(){
this.colored_object3_mc.transform.colorTransform = this.colorTransformToken;
}
function frame22(){
this.colored_object6_mc.transform.colorTransform = this.colorTransformToken;
}
function frame24(){
this.colored_object8_mc.transform.colorTransform = this.colorTransformToken;
}
function frame25(){
this.colored_object9_mc.transform.colorTransform = this.colorTransformToken;
}
}
}//package previewer_v7_fla
Section 43
//uplight_6 (previewer_v7_fla.uplight_6)
package previewer_v7_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class uplight_6 extends MovieClip {
public function uplight_6(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package previewer_v7_fla
Section 44
//Assets (Assets)
package {
public class Assets {
static const SILVA1_PUFF:String = "silva1_puff_mc";
static const MONTHLY_STARS_LABEL:String = "monthly_stars";
static const START2_LABEL:String = "start2";
static const LEVEL_START_SCREEN:String = "screen_level_start_mc";
static const LIGHTER_OPEN2:String = "lighter_open2_mc";
static const SILVA3_LIGHT_GREEN:String = "silva3_light_green_mc";
static const DAVID4_PUFF:String = "david4_puff_mc";
static const FREDERICO_MARTINS:String = "fredericoMartins_mc";
static const DAVID4_MO_LIGHT1:String = "david4_mo_light1_mc";
static const DAVID4_MO_LIGHT3:String = "david4_mo_light3_mc";
static const DAVID4_MO_LIGHT4:String = "david4_mo_light4_mc";
static const LIGHTER_CLOSED_SIDE_VIEW:String = "lighter_closed_side_view_mc";
static const CA_SHEET:String = "ca_sheet_mc";
static const TAPUME5_5:String = "tapume5_5_mc";
static const SILVA3_LIGHT_RED:String = "silva3_light_red_mc";
static const PRESS:String = "press_mc";
static const LIGHTER_CLOSED_LAID:String = "lighter_closed_laid_mc";
static const SILVA1_MO_LIGHT1:String = "silva1_mo_light1_mc";
static const VIRTUAL_STOP_LABEL:String = "_stop";
static const CATCH_LABEL:String = "catch";
static const SILVA1_MO_LIGHT2:String = "silva1_mo_light2_mc";
static const SILVA1_MO_LIGHT3:String = "silva1_mo_light3_mc";
static const IDLE2_LABEL:String = "idle2";
static const LEFT_LIFTER:String = "left_lifter_mc";
static const DAVID2_BUTTON:String = "david2_button";
static const LOW_SCORE_LABEL:String = "low_score";
static const FINAL_PACKAGE:String = "final_package_mc";
static const FREDERICO_JERONIMO:String = "fredericoJeronimo_mc";
static const DAVID1_PUFF:String = "david1_puff_mc";
static const SILVA1_SMOKE_POP:String = "silva1_smoke_pop_mc";
static const GOOD_SCORE_LABEL:String = "good_score";
static const DAVID4_MO_LIGHT2:String = "david4_mo_light2_mc";
static const FOCUS_LOST:String = "focus_lost_mc";
static const SCORE_TRANSFERS_TXT:String = "score_transfers_txt";
static const DAVID1_LIGHT_RED:String = "david1_light_red_mc";
static const DAVID4_SMOKE_POP:String = "david4_smoke_pop_mc";
static const SILVA1_MO_LIGHT4:String = "silva1_mo_light4_mc";
static const DAVID1:String = "david1_mc";
static const DAVID2:String = "david2_mc";
static const HBOT:String = "hBot_mc";
static const DAVID4:String = "david4_mc";
static const FORGIVING_SCREEN:String = "screen_forgiving_mc";
static const TIAGO:String = "tiago_mc";
static const DAVID3:String = "david3_mc";
static const SILVA1:String = "silva1_mc";
static const SILVA2:String = "silva2_mc";
static const SILVA3:String = "silva3_mc";
static const SILVA4:String = "silva4_mc";
static const SILVA4_MO_LIGHT2:String = "silva4_mo_light2_mc";
static const SILVA4_MO_LIGHT3:String = "silva4_mo_light3_mc";
static const PLATFORM5_LABEL:String = "platform5";
static const MOLTEN_METAL:String = "molten_metal_mc";
static const SILVA4_MO_LIGHT4:String = "silva4_mo_light4_mc";
static const DAVID3_LIGHT_GREEN:String = "david3_light_green_mc";
static const DAVID2_PUFF_DOWN:String = "david2_puff_down_mc";
static const LOST_LIFE_SCREEN:String = "screen_lost_life_mc";
static const SILVA4_MO_LIGHT1:String = "silva4_mo_light1_mc";
static const SILVA4_BUTTON:String = "silva4_button";
static const BEHEADED_LIGHTER_LAID:String = "beheaded_lighter_laid_mc";
static const SILVA4_SMOKE_POP:String = "silva4_smoke_pop_mc";
static const SILVA4_LIGHT_GREEN:String = "silva4_light_green_mc";
static const DAVID4_LIGHT_RED:String = "david4_light_red_mc";
static const START_LABEL:String = "start";
static const DAVID2_MO_LIGHT3:String = "david2_mo_light3_mc";
static const DAVID2_MO_LIGHT4:String = "david2_mo_light4_mc";
static const RIGHT_LIFTER:String = "right_lifter_mc";
static const DAVID2_MO_LIGHT1:String = "david2_mo_light1_mc";
static const SILVA1_LIGHT_RED:String = "silva1_light_red_mc";
static const DAVID2_MO_LIGHT2:String = "david2_mo_light2_mc";
static const IDLE_LABEL:String = "idle";
static const ALL_TIME_BEST_LABEL:String = "all_time_best";
static const PLATFORM2_LABEL:String = "platform2";
static const LIFE1:String = "life1_mc";
static const LIFE2:String = "life2_mc";
static const LIFE3:String = "life3_mc";
static const DAVID2_SMOKE_POP:String = "david2_smoke_pop_mc";
static const SCRUM_SHEETS:String = "scrum_sheets_mc";
static const LOOP_STANCE_LABEL:String = "loop_stance";
static const NANDE:String = "nande_mc";
static const SILVA3_PUFF_UP:String = "silva3_puff_up_mc";
static const SILVA2_BUTTON:String = "silva2_button";
static const SILVA2_PUFF_DOWN:String = "silva2_puff_down_mc";
static const INCANDESCENT_LIGHTER2:String = "incandescent_lighter2_mc";
static const DAVID2_PUFF_UP:String = "david2_puff_up_mc";
static const SILVA4_LIGHT_RED:String = "silva4_light_red_mc";
static const DAILY_WORKERS_LABEL:String = "daily_workers";
static const LIGHTER_OPEN:String = "lighter_open_mc";
static const SILVA2_MO_LIGHT1:String = "silva2_mo_light1_mc";
static const SILVA2_MO_LIGHT2:String = "silva2_mo_light2_mc";
static const SILVA2_MO_LIGHT3:String = "silva2_mo_light3_mc";
static const SILVA2_MO_LIGHT4:String = "silva2_mo_light4_mc";
static const LIGHTER_CLOSED_LAID2:String = "lighter_closed_laid2_mc";
static const PLATFORM7_LABEL:String = "platform7";
static const SILVA2_SMOKE_POP:String = "silva2_smoke_pop_mc";
static const DAVID4_LIGHT_GREEN:String = "david4_light_green_mc";
static const LIVES_OUT_SCREEN:String = "screen_lives_out_mc";
static const DAVID2_LIGHT_RED:String = "david2_light_red_mc";
static const LIGHTER_CLOSED:String = "lighter_closed_mc";
static const SILVA1_LIGHT_GREEN:String = "silva1_light_green_mc";
static const SHADOW7_5:String = "shadow7_5_mc";
static const FALL_LABEL:String = "fall";
static const SHADOW5:String = "shadow5_mc";
static const SHADOW6:String = "shadow6_mc";
static const SHADOW7:String = "shadow7_mc";
static const COMPUTER:String = "computer_mc";
static const MOLTEN_METAL2:String = "molten_metal2_mc";
static const GRAB_LABEL:String = "grab";
static const LOSE_LABEL:String = "lose";
static const STRIPPED_CURTAIN:String = "stripped_curtain_mc";
static const PLATFORM4_LABEL:String = "platform4";
static const DAVID3_PUFF_DOWN:String = "david3_puff_down_mc";
static const DAVID3_BUTTON:String = "david3_button";
static const SHADOW6_5:String = "shadow6_5_mc";
static const DAVID1_BUTTON:String = "david1_button";
static const DAVID3_MO_LIGHT2:String = "david3_mo_light2_mc";
static const DAVID3_MO_LIGHT4:String = "david3_mo_light4_mc";
static const DAVID3_MO_LIGHT1:String = "david3_mo_light1_mc";
static const LUIS_MELO:String = "luisMelo_mc";
static const RICARDO:String = "ricardo_mc";
static const DAVID3_MO_LIGHT3:String = "david3_mo_light3_mc";
static const BEHEADED_LIGHTER:String = "beheaded_lighter_mc";
static const PLATFORM1_LABEL:String = "platform1";
static const DAVID3_SMOKE_POP:String = "david3_smoke_pop_mc";
static const SILVA2_LIGHT_RED:String = "silva2_light_red_mc";
static const DAVID1_LIGHT_GREEN:String = "david1_light_green_mc";
static const AVERAGE_SCORE_LABEL:String = "average_score";
static const FRANCISCO:String = "francisco_mc";
static const SHADOW5_5:String = "shadow5_5_mc";
static const SILVA2_LIGHT_GREEN:String = "silva2_light_green_mc";
static const REMAINING_SCORE_STOCK_TXT:String = "remaining_score_stock_txt";
static const CADINHO:String = "cadinho_mc";
static const SILVA3_PUFF_DOWN:String = "silva3_puff_down_mc";
static const SILVA3_BUTTON:String = "silva3_button";
static const SUBMIT_SCORE_SCREEN:String = "screen_submit_score_mc";
static const TAPUME7_5:String = "tapume7_5_mc";
static const SILVA3_MO_LIGHT1:String = "silva3_mo_light1_mc";
static const SILVA3_MO_LIGHT2:String = "silva3_mo_light2_mc";
static const SILVA3_MO_LIGHT3:String = "silva3_mo_light3_mc";
static const INCANDESCENT_LIGHTER:String = "incandescent_lighter_mc";
static const SILVA3_SMOKE_POP:String = "silva3_smoke_pop_mc";
static const SILVA3_MO_LIGHT4:String = "silva3_mo_light4_mc";
static const PRE_PLATFORM1_LABEL:String = "pre_platform1";
static const PLATFORM6_LABEL:String = "platform6";
static const ERROR_LABEL:String = "error";
static const MAIN_MENU_SCREEN:String = "screen_splash_mc";
static const SILVA2_PUFF_UP:String = "silva2_puff_up_mc";
static const DAVID3_PUFF_UP:String = "david3_puff_up_mc";
static const DAVID3_LIGHT_RED:String = "david3_light_red_mc";
static const SILVA4_PUFF:String = "silva4_puff_mc";
static const CONNECTING_SCREEN:String = "screen_connecting_mc";
static const DAVID1_MO_LIGHT2:String = "david1_mo_light2_mc";
static const DAVID1_MO_LIGHT3:String = "david1_mo_light3_mc";
static const LIGHTER_CLOSED_SIDE_VIEW_LAID:String = "lighter_closed_side_view_laid_mc";
static const THROW_SHEET_LABEL:String = "throw_sheet";
static const TIME_TXT:String = "time_txt";
static const DAVID1_MO_LIGHT4:String = "david1_mo_light4_mc";
static const SILVA1_BUTTON:String = "silva1_button";
static const TAPUME6_5:String = "tapume6_5_mc";
static const DAVID1_MO_LIGHT1:String = "david1_mo_light1_mc";
static const DAVID1_SMOKE_POP:String = "david1_smoke_pop_mc";
static const HIGHSCORES_SCREEN:String = "screen_highscores_mc";
static const DAVID4_BUTTON:String = "david4_button";
static const AFTER_THROWING_SHEET_LABEL:String = "after_throwing_sheet";
static const PLATFORM3_LABEL:String = "platform3";
static const DAVID2_LIGHT_GREEN:String = "david2_light_green_mc";
static const SCORE_STOCK_TXT:String = "score_stock_txt";
static const CA_SHEET_ROLL:String = "ca_sheet_roll_mc";
}
}//package
Section 45
//BeheadedLighter (BeheadedLighter)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class BeheadedLighter extends MovieClip {
public function BeheadedLighter(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package
Section 46
//BeheadedLighterLaid (BeheadedLighterLaid)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class BeheadedLighterLaid extends MovieClip {
public function BeheadedLighterLaid(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package
Section 47
//CASheetRoll (CASheetRoll)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class CASheetRoll extends MovieClip {
public function CASheetRoll(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package
Section 48
//Crypto (Crypto)
package {
import flash.utils.*;
import com.hurlant.util.*;
import com.hurlant.crypto.prng.*;
public class Crypto {
private static const keyStr:String = String.fromCharCode(116, 50, 117, 35, 97, 64, 37, 65, 95, 117, 56, 120, 33, 97, 42, 109);
private static var ciphers:Object = {};
public static function encrypt(_arg1:Object):ByteArray{
var _local2:ByteArray;
setupEncryption();
_local2 = new ByteArray();
_local2.writeObject(_arg1);
ciphers.cipher1.encrypt(_local2);
return (_local2);
}
public static function setupEncryption():void{
var _local1:ByteArray;
var _local2:String;
var _local3:int;
if (ciphers.cipher1 == null){
_local1 = new ByteArray();
_local2 = "";
_local3 = 16;
while (--_local3 >= 0) {
_local2 = (_local2 + String.fromCharCode(int(((((126 - 33) + 1) * Math.random()) + 33))));
};
_local1.writeUTFBytes(_local2);
ciphers.cipher1 = new ARC4(_local1);
};
if (ciphers.cipher2 == null){
_local1 = new ByteArray();
_local1.writeUTFBytes(keyStr);
ciphers.cipher2 = new ARC4(_local1);
};
}
public static function encryptToExternal(_arg1:Object):ByteArray{
var _local2:ByteArray;
_local2 = Hex.toArray(Hex.fromString(_arg1));
ciphers.cipher2.encrypt(_local2);
return (_local2);
}
public static function decrypt(_arg1:ByteArray):Object{
var _local2:ByteArray;
var _local3:Object;
setupEncryption();
_local2 = new ByteArray();
_local2.writeBytes(_arg1);
ciphers.cipher1.decrypt(_local2);
_local2.position = 0;
_local3 = _local2.readObject();
_local2 = null;
return (_local3);
}
}
}//package
Section 49
//FactoryMusic1 (FactoryMusic1)
package {
import flash.media.*;
public dynamic class FactoryMusic1 extends Sound {
}
}//package
Section 50
//FactoryMusic2 (FactoryMusic2)
package {
import flash.media.*;
public dynamic class FactoryMusic2 extends Sound {
}
}//package
Section 51
//FrameAnimationTask (FrameAnimationTask)
package {
import flash.display.*;
import flash.utils.*;
public class FrameAnimationTask {
var lastLabel:String;// = ""
var instanceId:String;// = null
var inUse:Boolean;// = true
var animationLabels:Array;
var movieClip:MovieClip;// = null
var currentAnimationLabel:FrameLabel;// = null
var loop:Boolean;// = false
var playing:Boolean;// = false
var currentAnimationDuration:int;// = 0
var callbacksAtStart:Object;
var currentAnimationStartingFrame:int;// = 1
var callbacksAtStop:Object;
var startTime:int;
var callbacksAtLabel:Object;
var reverse:Boolean;// = false
var frameRate:Number;// = 12
var callbacksAtEnd:Object;
var currentAnimationTotalFrames:int;// = 0
static const STOP:int = 2;
static const START:int = 0;
static const END:int = 1;
static const LABEL:int = 3;
static var counter:int = 0;
public function FrameAnimationTask(_arg1:MovieClip){
instanceId = null;
movieClip = null;
currentAnimationLabel = null;
currentAnimationStartingFrame = 1;
currentAnimationTotalFrames = 0;
currentAnimationDuration = 0;
frameRate = 12;
playing = false;
loop = false;
reverse = false;
inUse = true;
lastLabel = "";
callbacksAtStart = {};
callbacksAtEnd = {};
callbacksAtStop = {};
callbacksAtLabel = {};
super();
this.setMovieClip(_arg1);
counter++;
this.instanceId = ("FrameAnimationTask_" + counter);
}
public function registerCallback(_arg1:Object, _arg2:String, _arg3:Function):void{
var _local4:*;
if (getQualifiedClassName(_arg1) == "int"){
switch (_arg1){
case START:
this.registerCallbackInternal(this.callbacksAtStart, _arg2, _arg3);
break;
case END:
this.registerCallbackInternal(this.callbacksAtEnd, _arg2, _arg3);
break;
case STOP:
this.registerCallbackInternal(this.callbacksAtStop, _arg2, _arg3);
break;
case LABEL:
this.registerCallbackInternal(this.callbacksAtLabel, _arg2, _arg3);
default:
break;
};
} else {
if (getQualifiedClassName(_arg1) == "Array"){
for (_local4 in _arg1) {
this.registerCallback(_arg1[_local4], _arg2, _arg3);
};
};
};
}
function stop(_arg1:String="", _arg2:Boolean=true):void{
var _local3:FrameLabel;
this.playing = false;
if (_arg1 != ""){
_local3 = this.getFrameLabelByName(_arg1);
if (_local3 != null){
this.movieClip.gotoAndStop(_local3.frame);
};
};
if (_arg2){
this.doCallback(this.callbacksAtStop);
};
}
public function getAnimationDuration(_arg1:String, _arg2:Number):int{
var _local3:int;
_local3 = this.getSubAnimationTotalFrames(this.getFrameLabelByName(_arg1));
return (((_local3 / _arg2) * 1000));
}
private function unregisterCallbackInternal(_arg1:Object, _arg2:String, _arg3:Function):void{
var _local4:int;
if (_arg1[_arg2] == null){
return;
};
_local4 = _arg1[_arg2].indexOf(_arg3);
if (_local4 != -1){
_arg1[_arg2].splice(_local4, 1);
};
}
private function getSubAnimationTotalFrames(_arg1:FrameLabel):int{
var _local2:Array;
var _local3:int;
var _local4:FrameLabel;
var _local5:int;
var _local6:int;
_local2 = this.animationLabels.filter(this.filterLabels);
_local3 = _local2.length;
_local4 = null;
_local5 = 0;
_local6 = 0;
while (_local6 < _local3) {
_local4 = _local2[_local6];
if (_local4 == _arg1){
if (_local6 < (_local3 - 1)){
_local5 = (_local2[(_local6 + 1)].frame - _local4.frame);
} else {
_local5 = ((this.movieClip.totalFrames + 1) - _local4.frame);
};
break;
};
_local6++;
};
return (_local5);
}
public function unregisterCallback(_arg1:int, _arg2:String, _arg3:Function):void{
switch (_arg1){
case START:
this.unregisterCallbackInternal(this.callbacksAtStart, _arg2, _arg3);
break;
case END:
this.unregisterCallbackInternal(this.callbacksAtEnd, _arg2, _arg3);
break;
case STOP:
this.unregisterCallbackInternal(this.callbacksAtStop, _arg2, _arg3);
break;
case LABEL:
this.unregisterCallbackInternal(this.callbacksAtLabel, _arg2, _arg3);
default:
break;
};
}
function isPlaying():Boolean{
return (this.playing);
}
private function filterLabels(_arg1, _arg2:int, _arg3:Array):Boolean{
return (!((_arg1.name.charAt(0) == "_")));
}
function setFrameRate(_arg1:Number):void{
this.frameRate = _arg1;
}
function play(_arg1:int, _arg2:Number, _arg3:String="", _arg4:Boolean=false, _arg5:Boolean=false, _arg6:Boolean=true):void{
if (this.playing){
this.stop("", _arg6);
};
this.startTime = _arg1;
this.loop = _arg4;
this.reverse = _arg5;
this.frameRate = _arg2;
if (_arg3 != ""){
this.currentAnimationLabel = this.getFrameLabelByName(_arg3);
this.currentAnimationTotalFrames = this.getSubAnimationTotalFrames(this.currentAnimationLabel);
this.currentAnimationStartingFrame = this.currentAnimationLabel.frame;
this.movieClip.gotoAndStop(this.currentAnimationLabel);
} else {
this.currentAnimationTotalFrames = this.movieClip.totalFrames;
this.currentAnimationStartingFrame = 1;
this.movieClip.gotoAndStop(this.currentAnimationStartingFrame);
};
this.currentAnimationDuration = ((this.currentAnimationTotalFrames / this.frameRate) * 1000);
this.playing = true;
this.doCallback(this.callbacksAtStart);
this.movieClip.gotoAndStop(this.currentAnimationStartingFrame);
}
function updateAnimation(_arg1:int):void{
var _local2:Number;
var _local3:int;
if (this.playing){
_local2 = ((_arg1 - this.startTime) / this.currentAnimationDuration);
if (_local2 > 1){
if (!this.loop){
this.playing = false;
this.movieClip.gotoAndStop(((this.currentAnimationStartingFrame + this.currentAnimationTotalFrames) - 1));
} else {
this.startTime = _arg1;
};
this.doCallback(this.callbacksAtEnd);
} else {
if (!reverse){
_local3 = Math.round((this.currentAnimationStartingFrame + ((this.currentAnimationTotalFrames - 1) * _local2)));
} else {
_local3 = ((this.currentAnimationStartingFrame + this.currentAnimationTotalFrames) - Math.round(((this.currentAnimationTotalFrames - 1) * _local2)));
};
this.movieClip.gotoAndStop(_local3);
if (this.movieClip.currentLabel != lastLabel){
this.doCallback(this.callbacksAtLabel, this.movieClip.currentLabel);
};
lastLabel = this.movieClip.currentLabel;
};
};
}
public function reset():void{
this.playing = false;
this.loop = false;
this.callbacksAtStart = {};
this.callbacksAtEnd = {};
this.callbacksAtStop = {};
this.callbacksAtLabel = {};
}
function setMovieClip(_arg1:MovieClip){
this.movieClip = _arg1;
this.animationLabels = this.movieClip.currentLabels;
if (this.animationLabels.length > 0){
this.currentAnimationLabel = this.animationLabels[0];
};
}
private function getFrameLabelByName(_arg1:String):FrameLabel{
var _local2:int;
var _local3:FrameLabel;
var _local4:int;
_local2 = this.animationLabels.length;
_local3 = null;
_local4 = 0;
while (_local4 < _local2) {
_local3 = this.animationLabels[_local4];
if (_local3.name == _arg1){
break;
};
_local4++;
};
return (_local3);
}
private function registerCallbackInternal(_arg1:Object, _arg2:String, _arg3:Function):void{
var _local4:Boolean;
_local4 = false;
if (_arg1[_arg2] == null){
_arg1[_arg2] = new Array();
_local4 = true;
};
if (_arg1[_arg2].indexOf(_arg3) == -1){
_local4 = true;
};
if (_local4){
_arg1[_arg2].push(_arg3);
};
}
private function doCallback(_arg1:Object, _arg2:String=""):void{
var _local3:Array;
var _local4:int;
if (_arg2 == ""){
_arg2 = this.currentAnimationLabel.name;
};
_local3 = _arg1[_arg2];
if (_local3 != null){
for (_local4 in _local3) {
var _local7 = _local3;
_local7[_local4](this);
};
};
}
public function getCurrentAnimationLabel():String{
return (this.movieClip.currentLabel);
}
}
}//package
Section 52
//FrameAnimationTaskFactory (FrameAnimationTaskFactory)
package {
import flash.display.*;
public class FrameAnimationTaskFactory {
private static var ALLOWINSTANTIATION:Boolean = false;
private static var INSTANCE:FrameAnimationTaskFactory = null;
private static var poolTasks:Array = [];
public static function getAnimationTask(_arg1:MovieClip):FrameAnimationTask{
var _local2:FrameAnimationTask;
_local2 = getTask(poolTasks);
if (_local2 == null){
_local2 = new FrameAnimationTask(_arg1);
_local2.inUse = true;
poolTasks.push(_local2);
} else {
_local2.setMovieClip(_arg1);
};
_arg1.inUse = true;
return (_local2);
}
private static function getTask(_arg1:Array):FrameAnimationTask{
var _local2:FrameAnimationTask;
var _local3:int;
_local2 = null;
for (_local3 in _arg1) {
_local2 = _arg1[_local3];
if (!_local2.inUse){
_local2.reset();
_local2.inUse = true;
break;
} else {
_local2 = null;
};
};
return (_local2);
}
}
}//package
Section 53
//GameManager (GameManager)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import fl.motion.*;
public class GameManager {
static const LEFT:int = 0;
static const TIME_STEP:int = 34;
static const LIGHTER_COLORS:Array = [0xFFFF00, 0xFF0000, 0xFF00D9, 0xFF00, 0xFF6800, 0x6600FF, 0xFF, 0xFFFFFF];
static const PLAYING:int = 2;
static const fullConsumersList:Array = [Assets.DAVID1, Assets.DAVID2, Assets.DAVID3, Assets.DAVID4, Assets.SILVA1, Assets.SILVA2, Assets.SILVA3, Assets.SILVA4];
static const PLATFORMS:int = 8;
static const cfg1:Object = {};
static const cfg2:Object = {};
static const cfg3:Object = {};
static const cfg4:Object = {};
static const PLATFORM_1:int = 0;
static const PLATFORM_2:int = 1;
static const PLATFORM_3:int = 2;
static const PLATFORM_4:int = 3;
static const PLATFORM_6:int = 5;
static const PLATFORM_7:int = 6;
static const PLATFORM_8:int = 7;
static const PLATFORM_5:int = 4;
static const MAX_LOOPS:int = 3;
static const fullShadowsList:Array = [Assets.SHADOW5, Assets.SHADOW6, Assets.SHADOW7, Assets.SHADOW5_5, Assets.SHADOW6_5, Assets.SHADOW7_5, Assets.TAPUME5_5, Assets.TAPUME6_5, Assets.TAPUME7_5];
static const PRE_PLATFORM_1:int = -1;
static const fullButtonsList:Array = [Assets.DAVID1_BUTTON, Assets.DAVID2_BUTTON, Assets.DAVID3_BUTTON, Assets.DAVID4_BUTTON, Assets.SILVA1_BUTTON, Assets.SILVA2_BUTTON, Assets.SILVA3_BUTTON, Assets.SILVA4_BUTTON];
static const fullTransformersList:Array = [Assets.FREDERICO_JERONIMO, Assets.COMPUTER, Assets.CADINHO, Assets.PRESS, Assets.FREDERICO_MARTINS, Assets.RICARDO, Assets.FRANCISCO, Assets.TIAGO, Assets.HBOT];
static const RIGHT:int = 1;
static var prioritaryFunctions:Object = {};
static var productionTimeInterval:int = 0;
static var primaryAnimationTasks:Object = {};
static var currentSilva:MovieClip;
static var davidPlatform:int = 0;
static var currentCfg:Object;
static var paused:Boolean = false;
static var requestedSilva:MovieClip;
static var platformBuffers:Array;
static var tertiaryAnimationTasks:Object = {};
static var numLoops:int;
static var currentDavid:MovieClip;
static var lastGameStartTime:int = 0;
static var realTime:int;
static var silvaPlatform:int = 0;
static var lastGameTime:int = 0;
static var currentState:int;
static var requestedDavid:MovieClip;
static var itemsInProcess:int = 0;
static var elapsedPauseTime:int = 0;
static var gameTime:int;
static var pauseTime:int = 0;
static var screenAnimationTasks:Object = {};
static var secondaryAnimationTasks:Object = {};
public static function getLastGameTime():int{
return (lastGameTime);
}
public static function throwSheet(_arg1:Object):void{
primaryAnimationTasks[Assets.LUIS_MELO].play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.AFTER_THROWING_SHEET_LABEL, false);
}
public static function startTransformation(_arg1:Object):void{
_arg1.movieClip.visible = false;
Util.getDO(_arg1.movieClip.transformer).colorTransformToken = _arg1.movieClip.colorTransformToken;
primaryAnimationTasks[_arg1.movieClip.transformer].play(getGameTime(), LevelManager.WORKERS_SPEED, Assets.START_LABEL, false);
}
public static function feedPlatform2(_arg1:Object):void{
var _local2:FrameAnimationTask;
var _local3:MovieClip;
var _local4:FrameAnimationTask;
_local2 = platformBuffers[LEFT][PLATFORM_1].shift();
_local3 = ObjectFactory.getObject(ObjectFactory.MOVIE_CLIP);
_local3.colorTransformToken = _local2.movieClip.colorTransformToken;
_local4 = FrameAnimationTaskFactory.getAnimationTask(_local3);
platformBuffers[LEFT][PLATFORM_2].push(_local4);
_local2.movieClip.inUse = false;
_local2.movieClip.visible = false;
_local2.inUse = false;
primaryAnimationTasks[Assets.SILVA1].play(getGameTime(), LevelManager.WORKERS_SPEED, Assets.IDLE_LABEL, false);
primaryAnimationTasks[Assets.COMPUTER].play(getGameTime(), LevelManager.WORKERS_SPEED, Assets.START_LABEL, false);
if (currentSilva != requestedSilva){
currentSilva.visible = false;
currentSilva.light_green.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.IDLE_LABEL, false);
currentSilva = requestedSilva;
currentSilva.light_green.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.START_LABEL, false);
currentSilva.visible = true;
};
}
public static function scoreSubmitted_(_arg1:Event):void{
var _local2:int;
var _local3:Timer;
_local2 = (getTimer() - Util.getDO(Assets.SUBMIT_SCORE_SCREEN).lastSubmitTime);
if (_local2 < Screens.CONNECTION_TASK_MINIMUM_DELAY){
_local3 = new Timer((Screens.CONNECTION_TASK_MINIMUM_DELAY - _local2), 1);
_local3.addEventListener(TimerEvent.TIMER, scoreSubmitted_);
_local3.start();
} else {
Util.mcGotoAndStop(Assets.CONNECTING_SCREEN, Assets.IDLE_LABEL);
Screens.showHighscores(null);
};
}
public static function silvaDavidButtonOverOut(_arg1:MouseEvent):void{
var _local2:*;
var _local3:FrameAnimationTask;
var _local4:int;
var _local5:*;
if (_arg1.currentTarget.enabled){
switch (_arg1.type){
case MouseEvent.MOUSE_OVER:
_local2 = Assets.START_LABEL;
break;
case MouseEvent.MOUSE_OUT:
_local2 = Assets.IDLE_LABEL;
break;
default:
break;
};
_local4 = getGameTime();
_local5 = LevelManager.SECONDARY_SPEED;
_arg1.currentTarget.mo_light1.play(_local4, _local5, _local2, false);
_arg1.currentTarget.mo_light2.play(_local4, _local5, _local2, false);
_arg1.currentTarget.mo_light3.play(_local4, _local5, _local2, false);
_arg1.currentTarget.mo_light4.play(_local4, _local5, _local2, false);
};
}
public static function setupLevel():void{
var _local1:Object;
var _local2:int;
var _local3:MovieClip;
var _local4:MovieClip;
_local1 = LevelManager.getLevelConfiguration();
if (_local1 != currentCfg){
currentCfg = _local1;
};
for (_local2 in fullTransformersList) {
Util.getDO(fullTransformersList[_local2]).visible = false;
};
for (_local2 in currentCfg.transformersList) {
Util.getDO(currentCfg.transformersList[_local2]).visible = true;
};
for (_local2 in fullButtonsList) {
Util.getDO(fullButtonsList[_local2]).enabled = false;
Util.getDO(fullButtonsList[_local2]).visible = false;
};
for (_local2 in currentCfg.buttonsList) {
Util.getDO(currentCfg.buttonsList[_local2]).enabled = true;
Util.getDO(currentCfg.buttonsList[_local2]).visible = true;
};
_local3 = Util.getDO(currentCfg.lastConsumer);
_local4 = currentCfg.lifterTask.movieClip;
_local4.sourcePlatform = _local3.sourcePlatform;
_local4.sourceSide = _local3.sourceSide;
_local4.destinationPlatform = currentCfg.mcDestinationPlatform;
_local4.destinationSide = currentCfg.mcDestinationSide;
_local4.objType = currentCfg.mcObjType;
_local4.objPlaceholder = currentCfg.mcObjPlaceholder;
_local4.consumerIdleLabel = currentCfg.mcConsumerIdleLabel;
_local4.consumerAnimLabel = currentCfg.mcConsumerAnimLabel;
_local4.animLabel = currentCfg.mcAnimLabel;
_local4.applyColor = currentCfg.mcApplyColor;
_local4.transformer = currentCfg.mcTransformer;
currentCfg.lifterTask.play(getGameTime(), LevelManager.WORKERS_SPEED, currentCfg.mcConsumerIdleLabel, false);
primaryAnimationTasks[cfg1.lastConsumer].unregisterCallback(FrameAnimationTask.LABEL, Assets.VIRTUAL_STOP_LABEL, primaryAnimationTasks[cfg1.lastConsumer].stop);
primaryAnimationTasks[cfg2.lastConsumer].unregisterCallback(FrameAnimationTask.LABEL, Assets.VIRTUAL_STOP_LABEL, primaryAnimationTasks[cfg2.lastConsumer].stop);
primaryAnimationTasks[cfg3.lastConsumer].unregisterCallback(FrameAnimationTask.LABEL, Assets.VIRTUAL_STOP_LABEL, primaryAnimationTasks[cfg3.lastConsumer].stop);
primaryAnimationTasks[cfg4.lastConsumer].unregisterCallback(FrameAnimationTask.LABEL, Assets.VIRTUAL_STOP_LABEL, primaryAnimationTasks[cfg4.lastConsumer].stop);
primaryAnimationTasks[currentCfg.lastConsumer].registerCallback(FrameAnimationTask.LABEL, Assets.VIRTUAL_STOP_LABEL, primaryAnimationTasks[currentCfg.lastConsumer].stop);
for (_local2 in fullShadowsList) {
Util.getDO(fullShadowsList[_local2]).visible = false;
};
for (_local2 in currentCfg.shadows) {
Util.getDO(currentCfg.shadows[_local2]).visible = true;
};
}
public static function resume():void{
paused = false;
elapsedPauseTime = (elapsedPauseTime + (getTimer() - pauseTime));
togglePositionButtons(true);
}
public static function feedPlatform(_arg1:FrameAnimationTask):void{
var obj:Object;
var baseObj:MovieClip;
var task:FrameAnimationTask;
var task_:FrameAnimationTask;
var caller = _arg1;
try {
primaryAnimationTasks[caller.movieClip.name].play(getGameTime(), LevelManager.WORKERS_SPEED, caller.movieClip.consumerIdleLabel, false);
if (caller.movieClip == Util.getDO(currentCfg.lastConsumer)){
feedLift(caller);
return;
};
if ((((caller.movieClip.sourcePlatform == PRE_PLATFORM_1)) && ((Util.getDO(Assets.CA_SHEET).visible == false)))){
Util.getDO(Assets.DAVID1).light_red.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.IDLE_LABEL, false);
};
if (caller.movieClip.sourcePlatform != PRE_PLATFORM_1){
task_ = platformBuffers[caller.movieClip.sourceSide][caller.movieClip.sourcePlatform].shift();
task_.movieClip.inUse = false;
task_.movieClip.visible = false;
task_.inUse = false;
};
obj = ObjectFactory.getObject(caller.movieClip.objType);
baseObj = Util.getDO(caller.movieClip.objPlaceholder);
obj.transform = baseObj.transform;
obj.colorTransformToken = caller.movieClip.colorTransformToken;
if (caller.movieClip.applyColor){
obj.transform.colorTransform = obj.colorTransformToken;
};
task = FrameAnimationTaskFactory.getAnimationTask(obj);
platformBuffers[caller.movieClip.destinationSide][caller.movieClip.destinationPlatform].push(task);
Util.addToStage(obj);
task.movieClip.transformer = caller.movieClip.transformer;
task.registerCallback(FrameAnimationTask.END, caller.movieClip.animLabel, startTransformation);
obj.visible = true;
task.play(getGameTime(), LevelManager.CONVEYOR_BELT_SPEED, caller.movieClip.animLabel, false, false);
if ((((((((caller.movieClip.name == Assets.DAVID1)) || ((caller.movieClip.name == Assets.DAVID2)))) || ((caller.movieClip.name == Assets.DAVID3)))) || ((caller.movieClip.name == Assets.DAVID4)))){
if (currentDavid != requestedDavid){
currentDavid.visible = false;
currentDavid.light_green.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.IDLE_LABEL, false);
currentDavid = requestedDavid;
currentDavid.light_green.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.START_LABEL, false);
currentDavid.visible = true;
};
} else {
if (currentSilva != requestedSilva){
currentSilva.visible = false;
currentSilva.light_green.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.IDLE_LABEL, false);
currentSilva = requestedSilva;
currentSilva.light_green.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.START_LABEL, false);
currentSilva.visible = true;
};
};
if (caller.movieClip.destinationPlatform == PLATFORM_1){
itemsInProcess++;
};
if (caller.movieClip.destinationPlatform == PLATFORM_8){
itemsInProcess--;
};
} catch(e:Error) {
};
}
public static function init(){
var _local1:int;
gameTime = getGameTime();
platformBuffers = new Array();
platformBuffers.push(new Array());
platformBuffers.push(new Array());
_local1 = PLATFORMS;
while (--_local1 >= 0) {
platformBuffers[LEFT].push(new Array());
platformBuffers[RIGHT].push(new Array());
};
GameManagerHelper.helperInit();
Util.getDO(Assets.SCORE_TRANSFERS_TXT).text = Util.formatNumber(0, 6);
Util.getDO(Assets.SCORE_STOCK_TXT).text = Util.formatNumber(0, 4);
Util.getDO(Assets.REMAINING_SCORE_STOCK_TXT).text = Util.formatNumber(0, 2);
updateLivesDisplay(LevelManager.getLives());
Util.getDO(Assets.TIME_TXT).text = Util.formatTime(0);
togglePositionButtons(false);
Util.getDO(Assets.HIGHSCORES_SCREEN).submittedScoreId = -1;
Screens.showMainMenu();
}
public static function afterThrowingSheet(_arg1:Object):void{
var _local2:MovieClip;
var _local3:*;
var _local4:int;
_local2 = Util.getDO(Assets.CA_SHEET);
Util.getDO(Assets.DAVID1).light_red.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.START_LABEL, false);
_local2.visible = true;
primaryAnimationTasks[Assets.CA_SHEET].play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.START_LABEL, false);
_local3 = Util.getDO(Assets.DAVID1);
if (_local3.visible){
_local2.visible = false;
primaryAnimationTasks[Assets.CA_SHEET].play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.IDLE_LABEL, false);
LevelManager.addTransferPoints(1);
_local4 = LevelManager.getTotalTransfersScore();
Util.getDO(Assets.SCORE_TRANSFERS_TXT).text = Util.formatNumber(_local4, 6);
primaryAnimationTasks[Assets.DAVID1].play(getGameTime(), LevelManager.WORKERS_SPEED, Assets.START_LABEL, false);
LevelManager.setLastCatchTime(getGameTime());
};
}
public static function puffEnded(_arg1:Object):void{
_arg1.play(getGameTime(), LevelManager.WORKERS_SPEED, Assets.IDLE_LABEL, false);
}
public static function disposePackage(_arg1:Object):void{
var _local2:FrameAnimationTask;
var _local3:Boolean;
var _local4:int;
var _local5:int;
var _local6:int;
_local2 = platformBuffers[RIGHT][PLATFORM_8].shift();
_local2.movieClip.inUse = false;
_local2.movieClip.visible = false;
_local2.inUse = false;
primaryAnimationTasks[Assets.STRIPPED_CURTAIN].play(getGameTime(), LevelManager.WORKERS_SPEED, Assets.IDLE_LABEL, false);
_local3 = LevelManager.lighterPacked();
productionTimeInterval = calculateProductionMinimumTimeInterval();
_local4 = LevelManager.getTotalStockScore();
_local5 = LevelManager.getCurrentLevelStockScore();
_local6 = LevelManager.getCurrentLevelObjective();
Util.getDO(Assets.SCORE_STOCK_TXT).text = Util.formatNumber(_local4, 4);
Util.getDO(Assets.REMAINING_SCORE_STOCK_TXT).text = Util.formatNumber((_local6 - _local5), 2);
if (_local3){
trace("LEVEL PASSED");
registerPrioritaryFunction(nextLevel, "nextLevel");
};
}
public static function inventColor(_arg1:Object):void{
var _local2:MovieClip;
var _local3:int;
var _local4:Color;
_local2 = Util.getDO(Assets.CA_SHEET);
_local3 = LIGHTER_COLORS[int((Math.random() * (LIGHTER_COLORS.length - 1)))];
_local4 = new Color();
_local4.setTint(_local3, 0.5);
_local2.colorTransformToken = _local4;
_local2.transform.colorTransform = _local4;
Util.getDO(Assets.DAVID1).colorTransformToken = _local4;
Util.getDO(Assets.LUIS_MELO).colorTransformToken = _local4;
}
public static function togglePositionButtons(_arg1:Boolean):void{
var _local2:int;
for (_local2 in fullButtonsList) {
Util.getDO(fullButtonsList[_local2]).enabled = false;
Util.getDO(fullButtonsList[_local2]).visible = false;
};
if (_arg1){
for (_local2 in currentCfg.buttonsList) {
Util.getDO(currentCfg.buttonsList[_local2]).enabled = true;
Util.getDO(currentCfg.buttonsList[_local2]).visible = true;
};
};
}
public static function hideSheet(_arg1:Object):void{
Util.getDO(Assets.CA_SHEET).visible = false;
}
public static function levelStart(_arg1:Object):void{
Screens.removeDelayedClick(Assets.LEVEL_START_SCREEN, levelStart);
Util.mcGotoAndStop(Assets.LEVEL_START_SCREEN, Assets.IDLE_LABEL);
resume();
primaryAnimationTasks[Assets.LUIS_MELO].play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.LOOP_STANCE_LABEL, true);
}
public static function silva4Consume(_arg1:Object):void{
silvaDavidConsume(platformBuffers[LEFT][PLATFORM_7][0]);
}
public static function updateLivesDisplay(_arg1:int):void{
var _local2:MovieClip;
var _local3:MovieClip;
var _local4:MovieClip;
var _local5:Color;
var _local6:Color;
_local2 = Util.getDO(Assets.LIFE1);
_local3 = Util.getDO(Assets.LIFE2);
_local4 = Util.getDO(Assets.LIFE3);
if (_local2.onColor == null){
_local5 = new Color();
_local5.setTint(0xFFFFFF, 0.5);
_local6 = new Color();
_local6.setTint(0, 0.8);
_local2.onColor = _local5;
_local2.offColor = _local6;
_local3.onColor = _local5;
_local3.offColor = _local6;
_local4.onColor = _local5;
_local4.offColor = _local6;
};
_local2.transform.colorTransform = _local2.onColor;
_local3.transform.colorTransform = _local3.onColor;
_local4.transform.colorTransform = _local4.onColor;
if (_arg1 >= 1){
_local4.transform.colorTransform = _local4.offColor;
};
if (_arg1 >= 2){
_local3.transform.colorTransform = _local3.offColor;
};
if (_arg1 >= 3){
_local2.transform.colorTransform = _local2.offColor;
};
}
public static function silva3Consume(_arg1:Object):void{
silvaDavidConsume(platformBuffers[LEFT][PLATFORM_5][0]);
}
static function nextLevel():void{
var mc:MovieClip;
pause();
reset();
LevelManager.nextLevel();
setupLevel();
Util.getDO(Assets.SCORE_TRANSFERS_TXT).text = Util.formatNumber(LevelManager.getTotalTransfersScore(), 6);
Util.getDO(Assets.SCORE_STOCK_TXT).text = Util.formatNumber(LevelManager.getTotalStockScore(), 4);
Util.getDO(Assets.REMAINING_SCORE_STOCK_TXT).text = Util.formatNumber(LevelManager.getCurrentLevelObjective(), 2);
updateLivesDisplay(LevelManager.getLives());
productionTimeInterval = calculateProductionMinimumTimeInterval();
if (LevelManager.getCurrentLevel() != 1){
mc = Util.getDO(Assets.LEVEL_START_SCREEN);
mc.gameLevel = (LevelManager.getCurrentLevel() - 1);
mc.gameObjective = LevelManager.getCurrentLevelObjective();
Screens.addClickDelay(Assets.LEVEL_START_SCREEN, 1000, function (){
Util.getDO(Assets.LEVEL_START_SCREEN).addEventListener(MouseEvent.CLICK, levelStart);
});
Util.bringToFront(mc);
mc.gotoAndStop(Assets.START_LABEL);
} else {
levelStart(null);
};
}
public static function getGameTime():int{
return ((getTimer() - elapsedPauseTime));
}
public static function luisDraw(_arg1:Object):void{
primaryAnimationTasks[Assets.LUIS_MELO].play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.LOOP_STANCE_LABEL, true);
}
public static function submitScore(_arg1:Event):void{
var _local2:MovieClip;
var _local3:String;
var _local4:String;
_local2 = Util.getDO(Assets.SUBMIT_SCORE_SCREEN);
_local3 = _local2.name_txt.text;
_local4 = _local2.motto_txt.text;
_local2.playerName = _local3;
_local2.playerMotto = _local4;
_local2.lastSubmitTime = getTimer();
_local2.gotoAndStop(Assets.IDLE_LABEL);
Util.bringToFront(Assets.CONNECTING_SCREEN);
Util.mcGotoAndStop(Assets.CONNECTING_SCREEN, Assets.START_LABEL);
Networking.submitScore(_local3, _local4, LevelManager.getCurrentLevel(), (LevelManager.getScore() + int(((getLastGameTime() / 1000) / 60))), Util.formatTime(GameManager.getLastGameTime()), scoreSubmitted, Screens.scoreSubmittedProblem);
}
public static function strippedCurtainProcess(_arg1:Object):void{
primaryAnimationTasks[Assets.STRIPPED_CURTAIN].play(getGameTime(), LevelManager.WORKERS_SPEED, Assets.START_LABEL, false);
}
static function reset():void{
var _local1:String;
var _local2:FrameAnimationTask;
var _local3:Array;
var _local4:int;
var _local5:int;
var _local6:int;
itemsInProcess = 0;
for (_local1 in prioritaryFunctions) {
delete prioritaryFunctions[_local1];
};
for (_local1 in primaryAnimationTasks) {
primaryAnimationTasks[_local1].play(getGameTime(), LevelManager.WORKERS_SPEED, Assets.IDLE_LABEL, false, false, false);
};
for (_local1 in secondaryAnimationTasks) {
_local2 = secondaryAnimationTasks[_local1];
_local2.stop("", false);
_local2.reset();
_local2.inUse = false;
_local2.movieClip.inUse = false;
_local2.movieClip.visible = false;
};
for (_local4 in platformBuffers) {
for (_local5 in platformBuffers[_local4]) {
_local3 = platformBuffers[_local4][_local5];
for (_local6 in _local3) {
_local2 = platformBuffers[_local4][_local5].pop();
_local2.reset();
_local2.inUse = false;
_local2.movieClip.inUse = false;
_local2.movieClip.visible = false;
};
};
};
if (currentDavid != null){
currentDavid.light_green.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.IDLE_LABEL, false, false, true);
};
if (currentSilva != null){
currentSilva.light_green.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.IDLE_LABEL, false, false, true);
};
currentDavid = Util.getDO(Assets.DAVID1);
currentSilva = Util.getDO(Assets.SILVA1);
requestedDavid = currentDavid;
requestedSilva = currentSilva;
silvaPlatform = PLATFORM_1;
davidPlatform = PLATFORM_1;
Util.getDO(Assets.DAVID1).visible = true;
Util.getDO(Assets.SILVA1).visible = true;
Util.getDO(Assets.DAVID2).visible = false;
Util.getDO(Assets.DAVID3).visible = false;
Util.getDO(Assets.DAVID4).visible = false;
Util.getDO(Assets.SILVA2).visible = false;
Util.getDO(Assets.SILVA3).visible = false;
Util.getDO(Assets.SILVA4).visible = false;
Util.getDO(Assets.CA_SHEET).visible = false;
currentDavid.light_green.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.START_LABEL, false);
currentSilva.light_green.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.START_LABEL, false);
Util.getDO(Assets.DAVID1).light_red.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.IDLE_LABEL, false);
Util.getDO(Assets.DAVID2).light_red.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.IDLE_LABEL, false);
Util.getDO(Assets.DAVID3).light_red.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.IDLE_LABEL, false);
Util.getDO(Assets.DAVID4).light_red.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.IDLE_LABEL, false);
Util.getDO(Assets.SILVA1).light_red.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.IDLE_LABEL, false);
Util.getDO(Assets.SILVA2).light_red.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.IDLE_LABEL, false);
Util.getDO(Assets.SILVA3).light_red.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.IDLE_LABEL, false);
Util.getDO(Assets.SILVA4).light_red.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.IDLE_LABEL, false);
Util.getDO(Assets.SCORE_TRANSFERS_TXT).text = Util.formatNumber(0, 6);
Util.getDO(Assets.SCORE_STOCK_TXT).text = Util.formatNumber(0, 4);
updateLivesDisplay(LevelManager.getLives());
}
public static function silvaDavidButtonClicked(_arg1:MouseEvent):void{
var _local2:String;
var _local3:FrameAnimationTask;
var _local4:int;
if (_arg1.currentTarget.enabled){
_local2 = _arg1.currentTarget.name;
switch (_local2){
case Assets.DAVID1_BUTTON:
davidMove(Assets.DAVID1, PRE_PLATFORM_1, PLATFORM_1, null);
_local3 = primaryAnimationTasks[Assets.CA_SHEET];
if (_local3.isPlaying()){
LevelManager.addTransferPoints(1);
_local4 = LevelManager.getTotalTransfersScore();
Util.getDO(Assets.SCORE_TRANSFERS_TXT).text = Util.formatNumber(_local4, 6);
_local3.movieClip.visible = false;
_local3.stop();
Util.getDO(Assets.DAVID1).colorTransformToken = _local3.movieClip.transform.colorTransform;
primaryAnimationTasks[Assets.DAVID1].play(getGameTime(), LevelManager.WORKERS_SPEED, Assets.START_LABEL, false);
LevelManager.setLastCatchTime(getGameTime());
};
break;
case Assets.DAVID2_BUTTON:
davidMove(Assets.DAVID2, RIGHT, PLATFORM_2, david2Consume);
break;
case Assets.DAVID3_BUTTON:
davidMove(Assets.DAVID3, RIGHT, PLATFORM_4, david3Consume);
break;
case Assets.DAVID4_BUTTON:
davidMove(Assets.DAVID4, RIGHT, PLATFORM_6, david4Consume);
break;
case Assets.SILVA1_BUTTON:
silvaMove(Assets.SILVA1, LEFT, PLATFORM_1, silva1Consume);
break;
case Assets.SILVA2_BUTTON:
silvaMove(Assets.SILVA2, LEFT, PLATFORM_3, silva2Consume);
break;
case Assets.SILVA3_BUTTON:
silvaMove(Assets.SILVA3, LEFT, PLATFORM_5, silva3Consume);
break;
case Assets.SILVA4_BUTTON:
silvaMove(Assets.SILVA4, LEFT, PLATFORM_7, silva4Consume);
break;
default:
break;
};
};
}
public static function silva2Consume(_arg1:Object):void{
silvaDavidConsume(platformBuffers[LEFT][PLATFORM_3][0]);
}
private static function silvaMove(_arg1:String, _arg2:int, _arg3:int, _arg4:Function):void{
var _local5:FrameAnimationTask;
var _local6:int;
requestedSilva = Util.getDO(_arg1);
_local5 = primaryAnimationTasks[currentSilva.name];
_local5.stop();
_local6 = (_arg3 - silvaPlatform);
playPuff(currentSilva, _local6);
currentSilva.visible = false;
currentSilva.light_green.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.IDLE_LABEL, false);
currentSilva = requestedSilva;
currentSilva.visible = true;
currentSilva.light_green.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.START_LABEL, false);
silvaPlatform = _arg3;
if (_local6 != 0){
currentSilva.smoke_pop.play(getGameTime(), LevelManager.WORKERS_SPEED, Assets.START_LABEL, false);
};
_local5 = platformBuffers[_arg2][_arg3][0];
if (_local5 != null){
if (_local5.getCurrentAnimationLabel() == Assets.CATCH_LABEL){
_arg4(_local5);
};
};
}
public static function manage(_arg1:Event):void{
if (_arg1.type == Event.ENTER_FRAME){
realTime = getTimer();
numLoops = 0;
while (((((realTime - gameTime) > TIME_STEP)) && ((numLoops < MAX_LOOPS)))) {
step(getGameTime());
gameTime = (gameTime + TIME_STEP);
numLoops++;
};
if ((realTime - gameTime) > TIME_STEP){
gameTime = (realTime - TIME_STEP);
};
};
}
public static function lostLife():void{
var _local1:int;
pause();
LevelManager.addLives(-1);
_local1 = LevelManager.getLives();
updateLivesDisplay(_local1);
}
public static function finishedTransforming(_arg1:FrameAnimationTask):void{
var _local2:FrameAnimationTask;
var _local3:Object;
var _local4:MovieClip;
var _local5:FrameAnimationTask;
_local2 = platformBuffers[_arg1.movieClip.inputSide][_arg1.movieClip.platform].shift();
_local3 = ObjectFactory.getObject(_arg1.movieClip.objType);
_local4 = Util.getDO(_arg1.movieClip.objPlaceholder);
_local3.transform = _local4.transform;
_local3.colorTransformToken = _local2.movieClip.colorTransformToken;
if (_arg1.movieClip.applyColor){
_local3.transform.colorTransform = _local2.movieClip.colorTransformToken;
};
_local5 = FrameAnimationTaskFactory.getAnimationTask(_local3);
platformBuffers[_arg1.movieClip.outputSide][_arg1.movieClip.platform].push(_local5);
Util.addToStage(_local3);
if (_arg1.movieClip.consumer != null){
Util.getDO(_arg1.movieClip.consumer).light_red.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.START_LABEL, false);
};
_local5.movieClip.consumer = _arg1.movieClip.consumer;
if (_arg1.movieClip.callback1 == strippedCurtainProcess){
_local5.registerCallback(FrameAnimationTask.START, _arg1.movieClip.label1, _arg1.movieClip.callback1);
} else {
_local5.registerCallback(FrameAnimationTask.END, _arg1.movieClip.label1, _arg1.movieClip.callback1);
};
_local5.registerCallback(FrameAnimationTask.END, _arg1.movieClip.label2, _arg1.movieClip.callback2);
_local2.movieClip.inUse = false;
_local2.movieClip.visible = false;
_local2.inUse = false;
_local5.play(getGameTime(), LevelManager.CONVEYOR_BELT_SPEED, _arg1.movieClip.label1, false, false);
primaryAnimationTasks[_arg1.movieClip.name].play(getGameTime(), LevelManager.WORKERS_SPEED, Assets.IDLE_LABEL, false);
}
public static function silvaDavidConsume(_arg1:FrameAnimationTask):void{
var _local2:MovieClip;
var _local3:FrameAnimationTask;
var _local4:int;
if (_arg1 != null){
if (_arg1.movieClip.consumer == currentCfg.lastConsumer){
primaryAnimationTasks[Assets.NANDE].play(getGameTime(), LevelManager.WORKERS_SPEED, Assets.START_LABEL, false);
};
_local2 = primaryAnimationTasks[_arg1.movieClip.consumer].movieClip;
_local3 = platformBuffers[_local2.sourceSide][_local2.sourcePlatform][0];
if (_local3 != null){
_local3.stop();
_local3.movieClip.visible = false;
_local2.colorTransformToken = _local3.movieClip.colorTransformToken;
primaryAnimationTasks[_local2.name].play(getGameTime(), LevelManager.WORKERS_SPEED, _local2.consumerAnimLabel, false);
LevelManager.addTransferPoints(1);
_local4 = LevelManager.getTotalTransfersScore();
Util.getDO(Assets.SCORE_TRANSFERS_TXT).text = Util.formatNumber(_local4, 6);
if (platformBuffers[_local2.sourceSide][_local2.sourcePlatform].length <= 1){
_local2.light_red.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.IDLE_LABEL, false);
};
};
};
}
public static function fall(_arg1:Object):void{
delete secondaryAnimationTasks[_arg1.instanceId];
_arg1.movieClip.inUse = false;
_arg1.movieClip.visible = false;
_arg1.inUse = false;
itemsInProcess--;
}
public static function silva1Consume(_arg1:Object):void{
silvaDavidConsume(platformBuffers[LEFT][PLATFORM_1][0]);
}
public static function sheetNotCaught(_arg1:Object):void{
Util.bringToFront(Assets.FOCUS_LOST);
screenAnimationTasks[Assets.FOCUS_LOST].play(getGameTime(), Screens.SCREENS_SPEED, Assets.PRE_PLATFORM1_LABEL, false);
Util.getDO(Assets.DAVID1).light_red.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.IDLE_LABEL, false);
registerPrioritaryFunction(lostLife, "lostLife");
}
private static function davidMove(_arg1:String, _arg2:int, _arg3:int, _arg4:Function):void{
var _local5:FrameAnimationTask;
var _local6:int;
requestedDavid = Util.getDO(_arg1);
_local5 = primaryAnimationTasks[currentDavid.name];
_local5.stop();
_local6 = (_arg3 - davidPlatform);
playPuff(currentDavid, _local6);
currentDavid.visible = false;
currentDavid.light_green.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.IDLE_LABEL, false);
currentDavid = requestedDavid;
currentDavid.visible = true;
currentDavid.light_green.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.START_LABEL, false);
davidPlatform = _arg3;
if (_local6 != 0){
currentDavid.smoke_pop.play(getGameTime(), LevelManager.WORKERS_SPEED, Assets.START_LABEL, false);
};
if (_arg3 > PLATFORM_1){
_local5 = platformBuffers[_arg2][_arg3][0];
if (_local5 != null){
if (_local5.getCurrentAnimationLabel() == Assets.CATCH_LABEL){
_arg4(_local5);
};
};
};
}
public static function produceNewConceptArt(_arg1:Object):void{
var _local2:int;
if (!Util.getDO(Assets.CA_SHEET).visible){
_local2 = getGameTime();
if (LevelManager.canProduceArt(_local2, productionTimeInterval, itemsInProcess)){
primaryAnimationTasks[Assets.LUIS_MELO].play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.THROW_SHEET_LABEL, false);
};
};
}
public static function david4Consume(_arg1:Object):void{
silvaDavidConsume(platformBuffers[RIGHT][PLATFORM_6][0]);
}
public static function forgiveMistake():void{
pause();
updateLivesDisplay(LevelManager.getLives());
Util.bringToFront(Assets.FORGIVING_SCREEN);
Util.mcGotoAndStop(Assets.FORGIVING_SCREEN, Assets.START_LABEL);
Screens.addClickDelay(Assets.FORGIVING_SCREEN, 1000, function (){
Util.getDO(Assets.FORGIVING_SCREEN).addEventListener(MouseEvent.CLICK, Screens.forgiveScreenOut);
});
}
public static function computerFinishedProcessing(_arg1:Object):void{
primaryAnimationTasks[Assets.COMPUTER].play(getGameTime(), LevelManager.WORKERS_SPEED, Assets.IDLE_LABEL, false);
primaryAnimationTasks[Assets.CADINHO].play(getGameTime(), LevelManager.WORKERS_SPEED, Assets.START_LABEL, false);
}
private static function calculateProductionMinimumTimeInterval():int{
return (primaryAnimationTasks[Assets.FREDERICO_JERONIMO].getAnimationDuration(Assets.START_LABEL, LevelManager.WORKERS_SPEED));
}
public static function scoreSubmitted(_arg1:Event):void{
var _local2:XML;
_local2 = XML(_arg1.target.data);
if (_local2 != ""){
Util.getDO(Assets.HIGHSCORES_SCREEN).submittedScoreId = int(_local2);
};
scoreSubmitted_(null);
}
public static function watchLifters(_arg1:FrameAnimationTask):void{
primaryAnimationTasks[Assets.NANDE].play(getGameTime(), LevelManager.WORKERS_SPEED, Assets.IDLE_LABEL, false);
}
public static function david3Consume(_arg1:Object):void{
silvaDavidConsume(platformBuffers[RIGHT][PLATFORM_4][0]);
}
public static function startFalling(_arg1:Object):void{
var _local2:MovieClip;
var _local3:String;
var _local4:FrameAnimationTask;
_local2 = primaryAnimationTasks[_arg1.movieClip.consumer].movieClip;
_local3 = Assets.IDLE_LABEL;
switch (_local2.sourcePlatform){
case PLATFORM_1:
_local3 = Assets.PLATFORM1_LABEL;
break;
case PLATFORM_2:
_local3 = Assets.PLATFORM2_LABEL;
break;
case PLATFORM_3:
_local3 = Assets.PLATFORM3_LABEL;
break;
case PLATFORM_4:
_local3 = Assets.PLATFORM4_LABEL;
break;
case PLATFORM_5:
_local3 = Assets.PLATFORM5_LABEL;
break;
case PLATFORM_6:
_local3 = Assets.PLATFORM6_LABEL;
break;
case PLATFORM_7:
_local3 = Assets.PLATFORM7_LABEL;
break;
default:
break;
};
Util.bringToFront(Assets.FOCUS_LOST);
screenAnimationTasks[Assets.FOCUS_LOST].play(getGameTime(), Screens.SCREENS_SPEED, _local3, false);
_local4 = platformBuffers[_local2.sourceSide][_local2.sourcePlatform].shift();
_local4.registerCallback(FrameAnimationTask.END, Assets.FALL_LABEL, fall);
secondaryAnimationTasks[_local4.instanceId] = _local4;
_local4.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.FALL_LABEL, false);
if (platformBuffers[_local2.sourceSide][_local2.sourcePlatform].length <= 0){
_local2.light_red.play(getGameTime(), LevelManager.SECONDARY_SPEED, Assets.IDLE_LABEL, false);
};
registerPrioritaryFunction(lostLife, "lostLife");
}
public static function feedLift(_arg1:FrameAnimationTask):void{
currentCfg.lifterTask.movieClip.colorTransformToken = _arg1.movieClip.colorTransformToken;
currentCfg.lifterTask.play(getGameTime(), LevelManager.WORKERS_SPEED, currentCfg.mcConsumerAnimLabel, false);
}
private static function step(_arg1:int):void{
var _local2:String;
var _local3:Array;
var _local4:int;
var _local5:int;
var _local6:int;
if (((!((prioritaryFunctions["lostLife"] == null))) && (!((prioritaryFunctions["nextLevel"] == null))))){
if ((LevelManager.getLives() - 1) == 0){
delete prioritaryFunctions["nextLevel"];
};
};
for (_local2 in prioritaryFunctions) {
var _local9 = prioritaryFunctions;
_local9[_local2]();
delete prioritaryFunctions[_local2];
};
switch (currentState){
case PLAYING:
if (!paused){
for (_local2 in primaryAnimationTasks) {
primaryAnimationTasks[_local2].updateAnimation(_arg1);
};
for (_local4 in platformBuffers) {
for (_local5 in platformBuffers[_local4]) {
_local3 = platformBuffers[_local4][_local5];
for (_local6 in _local3) {
_local3[_local6].updateAnimation(_arg1);
};
};
};
for (_local2 in secondaryAnimationTasks) {
secondaryAnimationTasks[_local2].updateAnimation(_arg1);
};
for (_local2 in tertiaryAnimationTasks) {
tertiaryAnimationTasks[_local2].updateAnimation(_arg1);
};
lastGameTime = (getGameTime() - lastGameStartTime);
Util.getDO(Assets.TIME_TXT).text = Util.formatTime(lastGameTime);
};
break;
default:
break;
};
for (_local2 in screenAnimationTasks) {
if (screenAnimationTasks[_local2] != null){
screenAnimationTasks[_local2].updateAnimation(_arg1);
};
};
}
public static function registerPrioritaryFunction(_arg1:Function, _arg2:String):void{
prioritaryFunctions[_arg2] = _arg1;
}
public static function david2Consume(_arg1:Object):void{
silvaDavidConsume(platformBuffers[RIGHT][PLATFORM_2][0]);
}
private static function playPuff(_arg1:MovieClip, _arg2:int):void{
var _local3:FrameAnimationTask;
if (_arg2 > 0){
_local3 = _arg1.puff_down;
} else {
if (_arg2 < 0){
_local3 = _arg1.puff_up;
};
};
if (_local3 != null){
_local3.play(getGameTime(), LevelManager.WORKERS_SPEED, Assets.START_LABEL, false);
};
}
public static function playCatch(_arg1:FrameAnimationTask):void{
if (primaryAnimationTasks[_arg1.movieClip.consumer].movieClip.visible){
silvaDavidConsume(_arg1);
} else {
_arg1.play(getGameTime(), LevelManager.CONVEYOR_BELT_SPEED, Assets.CATCH_LABEL, false);
};
}
public static function startNewGame(_arg1:Event):void{
pause();
LevelManager.reset();
nextLevel();
Util.mcGotoAndStop(Assets.LIVES_OUT_SCREEN, Assets.IDLE_LABEL);
Util.mcGotoAndStop(Assets.MAIN_MENU_SCREEN, Assets.IDLE_LABEL);
currentState = PLAYING;
lastGameTime = 0;
lastGameStartTime = getGameTime();
}
public static function pause():void{
paused = true;
pauseTime = getTimer();
togglePositionButtons(false);
}
}
}//package
Section 54
//GameManagerHelper (GameManagerHelper)
package {
import flash.display.*;
public class GameManagerHelper {
public static function helperInit():void{
var _local1:FrameAnimationTask;
var _local2:DisplayObject;
_local1 = new FrameAnimationTask(Util.getDO(Assets.LEFT_LIFTER));
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.START_LABEL, GameManager.feedPlatform);
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.START2_LABEL, GameManager.feedPlatform);
GameManager.primaryAnimationTasks[Assets.LEFT_LIFTER] = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.RIGHT_LIFTER));
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.START_LABEL, GameManager.feedPlatform);
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.START2_LABEL, GameManager.feedPlatform);
GameManager.primaryAnimationTasks[Assets.RIGHT_LIFTER] = _local1;
GameManager.cfg1.transformersList = [Assets.FREDERICO_JERONIMO, Assets.COMPUTER, Assets.CADINHO, Assets.PRESS, Assets.FREDERICO_MARTINS, Assets.HBOT];
GameManager.cfg1.buttonsList = [Assets.DAVID1_BUTTON, Assets.DAVID2_BUTTON, Assets.DAVID3_BUTTON, Assets.SILVA1_BUTTON, Assets.SILVA2_BUTTON];
GameManager.cfg1.lastConsumer = Assets.DAVID3;
GameManager.cfg1.mcDestinationPlatform = GameManager.PLATFORM_8;
GameManager.cfg1.mcDestinationSide = GameManager.LEFT;
GameManager.cfg1.mcObjType = ObjectFactory.LIGHTER_CLOSED_LAID;
GameManager.cfg1.mcObjPlaceholder = Assets.LIGHTER_CLOSED_LAID2;
GameManager.cfg1.mcApplyColor = true;
GameManager.cfg1.mcConsumerIdleLabel = Assets.IDLE2_LABEL;
GameManager.cfg1.mcConsumerAnimLabel = Assets.START2_LABEL;
GameManager.cfg1.mcAnimLabel = Assets.START2_LABEL;
GameManager.cfg1.mcTransformer = Assets.HBOT;
GameManager.cfg1.lifterTask = GameManager.primaryAnimationTasks[Assets.RIGHT_LIFTER];
GameManager.cfg1.shadows = [Assets.SHADOW5, Assets.SHADOW6, Assets.SHADOW7, Assets.SHADOW5_5, Assets.SHADOW6_5, Assets.SHADOW7_5, Assets.TAPUME5_5, Assets.TAPUME6_5, Assets.TAPUME7_5];
GameManager.cfg2.transformersList = GameManager.cfg1.transformersList.concat(Assets.RICARDO);
GameManager.cfg2.buttonsList = GameManager.cfg1.buttonsList.concat(Assets.SILVA3_BUTTON);
GameManager.cfg2.lastConsumer = Assets.SILVA3;
GameManager.cfg2.mcDestinationPlatform = GameManager.PLATFORM_8;
GameManager.cfg2.mcDestinationSide = GameManager.LEFT;
GameManager.cfg2.mcObjType = ObjectFactory.LIGHTER_CLOSED_LAID;
GameManager.cfg2.mcObjPlaceholder = Assets.LIGHTER_CLOSED_LAID;
GameManager.cfg2.mcApplyColor = true;
GameManager.cfg2.mcConsumerIdleLabel = Assets.IDLE2_LABEL;
GameManager.cfg2.mcConsumerAnimLabel = Assets.START2_LABEL;
GameManager.cfg2.mcAnimLabel = Assets.START_LABEL;
GameManager.cfg2.mcTransformer = Assets.HBOT;
GameManager.cfg2.lifterTask = GameManager.primaryAnimationTasks[Assets.LEFT_LIFTER];
GameManager.cfg2.shadows = [Assets.SHADOW6, Assets.SHADOW7, Assets.SHADOW6_5, Assets.SHADOW7_5, Assets.TAPUME6_5, Assets.TAPUME7_5];
GameManager.cfg3.transformersList = GameManager.cfg2.transformersList.concat(Assets.FRANCISCO);
GameManager.cfg3.buttonsList = GameManager.cfg2.buttonsList.concat(Assets.DAVID4_BUTTON);
GameManager.cfg3.lastConsumer = Assets.DAVID4;
GameManager.cfg3.mcDestinationPlatform = GameManager.PLATFORM_8;
GameManager.cfg3.mcDestinationSide = GameManager.LEFT;
GameManager.cfg3.mcObjType = ObjectFactory.LIGHTER_CLOSED_LAID;
GameManager.cfg3.mcObjPlaceholder = Assets.LIGHTER_CLOSED_LAID2;
GameManager.cfg3.mcApplyColor = true;
GameManager.cfg3.mcConsumerIdleLabel = Assets.IDLE_LABEL;
GameManager.cfg3.mcConsumerAnimLabel = Assets.START_LABEL;
GameManager.cfg3.mcAnimLabel = Assets.START2_LABEL;
GameManager.cfg3.mcTransformer = Assets.HBOT;
GameManager.cfg3.lifterTask = GameManager.primaryAnimationTasks[Assets.RIGHT_LIFTER];
GameManager.cfg3.shadows = [Assets.SHADOW7, Assets.SHADOW7_5, Assets.TAPUME7_5];
GameManager.cfg4.transformersList = GameManager.cfg3.transformersList.concat(Assets.TIAGO);
GameManager.cfg4.buttonsList = GameManager.cfg3.buttonsList.concat(Assets.SILVA4_BUTTON);
GameManager.cfg4.lastConsumer = Assets.SILVA4;
GameManager.cfg4.mcDestinationPlatform = GameManager.PLATFORM_8;
GameManager.cfg4.mcDestinationSide = GameManager.LEFT;
GameManager.cfg4.mcObjType = ObjectFactory.LIGHTER_CLOSED_LAID;
GameManager.cfg4.mcObjPlaceholder = Assets.LIGHTER_CLOSED_LAID;
GameManager.cfg4.mcApplyColor = true;
GameManager.cfg4.mcConsumerIdleLabel = Assets.IDLE_LABEL;
GameManager.cfg4.mcConsumerAnimLabel = Assets.START_LABEL;
GameManager.cfg4.mcAnimLabel = Assets.START_LABEL;
GameManager.cfg4.mcTransformer = Assets.HBOT;
GameManager.cfg4.lifterTask = GameManager.primaryAnimationTasks[Assets.LEFT_LIFTER];
GameManager.cfg4.shadows = [];
_local1 = new FrameAnimationTask(Util.getDO(Assets.LUIS_MELO));
GameManager.primaryAnimationTasks[Assets.LUIS_MELO] = _local1;
_local1.registerCallback(FrameAnimationTask.END, Assets.LOOP_STANCE_LABEL, GameManager.produceNewConceptArt);
_local1.registerCallback(FrameAnimationTask.START, Assets.THROW_SHEET_LABEL, GameManager.inventColor);
_local1.registerCallback(FrameAnimationTask.END, Assets.THROW_SHEET_LABEL, GameManager.throwSheet);
_local1.registerCallback(FrameAnimationTask.START, Assets.AFTER_THROWING_SHEET_LABEL, GameManager.afterThrowingSheet);
_local1.registerCallback(FrameAnimationTask.END, Assets.AFTER_THROWING_SHEET_LABEL, GameManager.luisDraw);
_local2 = Util.getDO(Assets.FREDERICO_JERONIMO);
_local2.platform = GameManager.PLATFORM_1;
_local2.inputSide = GameManager.RIGHT;
_local2.outputSide = GameManager.LEFT;
_local2.objType = ObjectFactory.SCRUM_SHEETS;
_local2.objPlaceholder = Assets.SCRUM_SHEETS;
_local2.applyColor = false;
_local2.label1 = Assets.START_LABEL;
_local2.callback1 = GameManager.playCatch;
_local2.label2 = Assets.CATCH_LABEL;
_local2.callback2 = GameManager.startFalling;
_local2.consumer = Assets.SILVA1;
_local1 = new FrameAnimationTask(_local2);
GameManager.primaryAnimationTasks[_local2.name] = _local1;
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.START_LABEL, GameManager.finishedTransforming);
_local2 = Util.getDO(Assets.CADINHO);
_local2.platform = GameManager.PLATFORM_2;
_local2.inputSide = GameManager.LEFT;
_local2.outputSide = GameManager.RIGHT;
_local2.objType = ObjectFactory.MOLTEN_METAL;
_local2.objPlaceholder = Assets.MOLTEN_METAL;
_local2.applyColor = false;
_local2.label1 = Assets.START_LABEL;
_local2.callback1 = GameManager.playCatch;
_local2.label2 = Assets.CATCH_LABEL;
_local2.callback2 = GameManager.startFalling;
_local2.consumer = Assets.DAVID2;
_local1 = new FrameAnimationTask(_local2);
GameManager.primaryAnimationTasks[_local2.name] = _local1;
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.START_LABEL, GameManager.finishedTransforming);
_local2 = Util.getDO(Assets.PRESS);
_local2.platform = GameManager.PLATFORM_3;
_local2.inputSide = GameManager.RIGHT;
_local2.outputSide = GameManager.LEFT;
_local2.objType = ObjectFactory.INCANDESCENT_LIGHTER;
_local2.objPlaceholder = Assets.INCANDESCENT_LIGHTER;
_local2.applyColor = false;
_local2.label1 = Assets.START_LABEL;
_local2.callback1 = GameManager.playCatch;
_local2.label2 = Assets.CATCH_LABEL;
_local2.callback2 = GameManager.startFalling;
_local2.consumer = Assets.SILVA2;
_local1 = new FrameAnimationTask(_local2);
GameManager.primaryAnimationTasks[_local2.name] = _local1;
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.START_LABEL, GameManager.finishedTransforming);
_local2 = Util.getDO(Assets.FREDERICO_MARTINS);
_local2.platform = GameManager.PLATFORM_4;
_local2.inputSide = GameManager.LEFT;
_local2.outputSide = GameManager.RIGHT;
_local2.objType = ObjectFactory.BEHEADED_LIGHTER;
_local2.objPlaceholder = Assets.BEHEADED_LIGHTER;
_local2.applyColor = true;
_local2.label1 = Assets.START_LABEL;
_local2.callback1 = GameManager.playCatch;
_local2.label2 = Assets.CATCH_LABEL;
_local2.callback2 = GameManager.startFalling;
_local2.consumer = Assets.DAVID3;
_local1 = new FrameAnimationTask(_local2);
GameManager.primaryAnimationTasks[_local2.name] = _local1;
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.START_LABEL, GameManager.finishedTransforming);
_local2 = Util.getDO(Assets.RICARDO);
_local2.platform = GameManager.PLATFORM_5;
_local2.inputSide = GameManager.RIGHT;
_local2.outputSide = GameManager.LEFT;
_local2.objType = ObjectFactory.LIGHTER_CLOSED_SIDE_VIEW_LAID;
_local2.objPlaceholder = Assets.LIGHTER_CLOSED_SIDE_VIEW_LAID;
_local2.applyColor = true;
_local2.label1 = Assets.START_LABEL;
_local2.callback1 = GameManager.playCatch;
_local2.label2 = Assets.CATCH_LABEL;
_local2.callback2 = GameManager.startFalling;
_local2.consumer = Assets.SILVA3;
_local1 = new FrameAnimationTask(_local2);
GameManager.primaryAnimationTasks[_local2.name] = _local1;
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.START_LABEL, GameManager.finishedTransforming);
_local2 = Util.getDO(Assets.FRANCISCO);
_local2.platform = GameManager.PLATFORM_6;
_local2.inputSide = GameManager.LEFT;
_local2.outputSide = GameManager.RIGHT;
_local2.objType = ObjectFactory.LIGHTER_OPEN;
_local2.objPlaceholder = Assets.LIGHTER_OPEN;
_local2.applyColor = true;
_local2.label1 = Assets.START_LABEL;
_local2.callback1 = GameManager.playCatch;
_local2.label2 = Assets.CATCH_LABEL;
_local2.callback2 = GameManager.startFalling;
_local2.consumer = Assets.DAVID4;
_local1 = new FrameAnimationTask(_local2);
GameManager.primaryAnimationTasks[_local2.name] = _local1;
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.START_LABEL, GameManager.finishedTransforming);
_local2 = Util.getDO(Assets.TIAGO);
_local2.platform = GameManager.PLATFORM_7;
_local2.inputSide = GameManager.RIGHT;
_local2.outputSide = GameManager.LEFT;
_local2.objType = ObjectFactory.LIGHTER_CLOSED;
_local2.objPlaceholder = Assets.LIGHTER_CLOSED;
_local2.applyColor = true;
_local2.label1 = Assets.START_LABEL;
_local2.callback1 = GameManager.playCatch;
_local2.label2 = Assets.CATCH_LABEL;
_local2.callback2 = GameManager.startFalling;
_local2.consumer = Assets.SILVA4;
_local1 = new FrameAnimationTask(_local2);
GameManager.primaryAnimationTasks[_local2.name] = _local1;
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.START_LABEL, GameManager.finishedTransforming);
_local2 = Util.getDO(Assets.HBOT);
_local2.platform = GameManager.PLATFORM_8;
_local2.inputSide = GameManager.LEFT;
_local2.outputSide = GameManager.RIGHT;
_local2.objType = ObjectFactory.LIGHTER_PACKAGE;
_local2.objPlaceholder = Assets.FINAL_PACKAGE;
_local2.applyColor = false;
_local2.label1 = Assets.START_LABEL;
_local2.callback1 = GameManager.strippedCurtainProcess;
_local2.label2 = Assets.START_LABEL;
_local2.callback2 = GameManager.disposePackage;
_local1 = new FrameAnimationTask(_local2);
GameManager.primaryAnimationTasks[_local2.name] = _local1;
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.START_LABEL, GameManager.finishedTransforming);
_local2 = Util.getDO(Assets.DAVID1);
_local2.sourcePlatform = GameManager.PRE_PLATFORM_1;
_local2.destinationPlatform = GameManager.PLATFORM_1;
_local2.sourceSide = GameManager.RIGHT;
_local2.destinationSide = GameManager.RIGHT;
_local2.objType = ObjectFactory.CA_SHEET_ROLL;
_local2.objPlaceholder = Assets.CA_SHEET_ROLL;
_local2.applyColor = true;
_local2.consumerIdleLabel = Assets.IDLE_LABEL;
_local2.consumerAnimLabel = Assets.GRAB_LABEL;
_local2.animLabel = Assets.START_LABEL;
_local2.transformer = Assets.FREDERICO_JERONIMO;
_local1 = new FrameAnimationTask(_local2);
GameManager.primaryAnimationTasks[_local2.name] = _local1;
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.START_LABEL, GameManager.feedPlatform);
_local2 = Util.getDO(Assets.DAVID2);
_local2.sourcePlatform = GameManager.PLATFORM_2;
_local2.destinationPlatform = GameManager.PLATFORM_3;
_local2.sourceSide = GameManager.RIGHT;
_local2.destinationSide = GameManager.RIGHT;
_local2.objType = ObjectFactory.MOLTEN_METAL;
_local2.objPlaceholder = Assets.MOLTEN_METAL2;
_local2.applyColor = false;
_local2.consumerIdleLabel = Assets.IDLE_LABEL;
_local2.consumerAnimLabel = Assets.GRAB_LABEL;
_local2.animLabel = Assets.START2_LABEL;
_local2.transformer = Assets.PRESS;
_local1 = new FrameAnimationTask(_local2);
GameManager.primaryAnimationTasks[_local2.name] = _local1;
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.GRAB_LABEL, GameManager.feedPlatform);
_local2 = Util.getDO(Assets.DAVID3);
_local2.sourcePlatform = GameManager.PLATFORM_4;
_local2.destinationPlatform = GameManager.PLATFORM_5;
_local2.sourceSide = GameManager.RIGHT;
_local2.destinationSide = GameManager.RIGHT;
_local2.objType = ObjectFactory.BEHEADED_LIGHTER_LAID;
_local2.objPlaceholder = Assets.BEHEADED_LIGHTER_LAID;
_local2.applyColor = true;
_local2.consumerIdleLabel = Assets.IDLE_LABEL;
_local2.consumerAnimLabel = Assets.GRAB_LABEL;
_local2.animLabel = Assets.START_LABEL;
_local2.transformer = Assets.RICARDO;
_local1 = new FrameAnimationTask(_local2);
GameManager.primaryAnimationTasks[_local2.name] = _local1;
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.GRAB_LABEL, GameManager.feedPlatform);
_local2 = Util.getDO(Assets.DAVID4);
_local2.sourcePlatform = GameManager.PLATFORM_6;
_local2.destinationPlatform = GameManager.PLATFORM_7;
_local2.sourceSide = GameManager.RIGHT;
_local2.destinationSide = GameManager.RIGHT;
_local2.objType = ObjectFactory.LIGHTER_OPEN;
_local2.objPlaceholder = Assets.LIGHTER_OPEN2;
_local2.applyColor = true;
_local2.consumerIdleLabel = Assets.IDLE_LABEL;
_local2.consumerAnimLabel = Assets.GRAB_LABEL;
_local2.animLabel = Assets.START2_LABEL;
_local2.transformer = Assets.TIAGO;
_local1 = new FrameAnimationTask(_local2);
GameManager.primaryAnimationTasks[_local2.name] = _local1;
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.GRAB_LABEL, GameManager.feedPlatform);
_local2 = Util.getDO(Assets.SILVA1);
_local2.sourcePlatform = GameManager.PLATFORM_1;
_local2.sourceSide = GameManager.LEFT;
_local2.destinationSide = GameManager.LEFT;
_local2.consumerIdleLabel = Assets.IDLE_LABEL;
_local2.consumerAnimLabel = Assets.GRAB_LABEL;
_local1 = new FrameAnimationTask(_local2);
GameManager.primaryAnimationTasks[_local2.name] = _local1;
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.GRAB_LABEL, GameManager.feedPlatform2);
_local2 = Util.getDO(Assets.SILVA2);
_local2.sourcePlatform = GameManager.PLATFORM_3;
_local2.destinationPlatform = GameManager.PLATFORM_4;
_local2.sourceSide = GameManager.LEFT;
_local2.destinationSide = GameManager.LEFT;
_local2.objType = ObjectFactory.INCANDESCENT_LIGHTER;
_local2.objPlaceholder = Assets.INCANDESCENT_LIGHTER2;
_local2.applyColor = false;
_local2.consumerIdleLabel = Assets.IDLE_LABEL;
_local2.consumerAnimLabel = Assets.GRAB_LABEL;
_local2.animLabel = Assets.START2_LABEL;
_local2.transformer = Assets.FREDERICO_MARTINS;
_local1 = new FrameAnimationTask(_local2);
GameManager.primaryAnimationTasks[_local2.name] = _local1;
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.GRAB_LABEL, GameManager.feedPlatform);
_local2 = Util.getDO(Assets.SILVA3);
_local2.sourcePlatform = GameManager.PLATFORM_5;
_local2.destinationPlatform = GameManager.PLATFORM_6;
_local2.sourceSide = GameManager.LEFT;
_local2.destinationSide = GameManager.LEFT;
_local2.objType = ObjectFactory.LIGHTER_CLOSED_SIDE_VIEW;
_local2.objPlaceholder = Assets.LIGHTER_CLOSED_SIDE_VIEW;
_local2.applyColor = true;
_local2.consumerIdleLabel = Assets.IDLE_LABEL;
_local2.consumerAnimLabel = Assets.GRAB_LABEL;
_local2.animLabel = Assets.START_LABEL;
_local2.transformer = Assets.FRANCISCO;
_local1 = new FrameAnimationTask(_local2);
GameManager.primaryAnimationTasks[_local2.name] = _local1;
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.GRAB_LABEL, GameManager.feedPlatform);
_local2 = Util.getDO(Assets.SILVA4);
_local2.sourcePlatform = GameManager.PLATFORM_7;
_local2.destinationPlatform = GameManager.PLATFORM_8;
_local2.sourceSide = GameManager.LEFT;
_local2.destinationSide = GameManager.LEFT;
_local2.objType = ObjectFactory.LIGHTER_CLOSED_LAID;
_local2.objPlaceholder = Assets.LIGHTER_CLOSED_LAID;
_local2.applyColor = true;
_local2.consumerIdleLabel = Assets.IDLE_LABEL;
_local2.consumerAnimLabel = Assets.GRAB_LABEL;
_local2.animLabel = Assets.START_LABEL;
_local2.transformer = Assets.HBOT;
_local1 = new FrameAnimationTask(_local2);
GameManager.primaryAnimationTasks[_local2.name] = _local1;
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.GRAB_LABEL, GameManager.feedPlatform);
_local2 = Util.getDO(Assets.NANDE);
_local1 = new FrameAnimationTask(_local2);
GameManager.primaryAnimationTasks[_local2.name] = _local1;
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.START_LABEL, GameManager.watchLifters);
_local1 = new FrameAnimationTask(Util.getDO(Assets.CA_SHEET));
GameManager.primaryAnimationTasks[Assets.CA_SHEET] = _local1;
_local1.registerCallback(FrameAnimationTask.END, Assets.START_LABEL, GameManager.sheetNotCaught);
_local1 = new FrameAnimationTask(Util.getDO(Assets.COMPUTER));
GameManager.primaryAnimationTasks[Assets.COMPUTER] = _local1;
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.START_LABEL, GameManager.computerFinishedProcessing);
_local1 = new FrameAnimationTask(Util.getDO(Assets.STRIPPED_CURTAIN));
GameManager.primaryAnimationTasks[Assets.STRIPPED_CURTAIN] = _local1;
_local1.registerCallback(FrameAnimationTask.STOP, Assets.START_LABEL, GameManager.strippedCurtainProcess);
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA1_PUFF));
GameManager.tertiaryAnimationTasks[Assets.SILVA1_PUFF] = _local1;
Util.getDO(Assets.SILVA1).puff_down = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA2_PUFF_DOWN));
GameManager.tertiaryAnimationTasks[Assets.SILVA2_PUFF_DOWN] = _local1;
Util.getDO(Assets.SILVA2).puff_down = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA2_PUFF_UP));
GameManager.tertiaryAnimationTasks[Assets.SILVA2_PUFF_UP] = _local1;
Util.getDO(Assets.SILVA2).puff_up = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA3_PUFF_DOWN));
GameManager.tertiaryAnimationTasks[Assets.SILVA3_PUFF_DOWN] = _local1;
Util.getDO(Assets.SILVA3).puff_down = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA3_PUFF_UP));
GameManager.tertiaryAnimationTasks[Assets.SILVA3_PUFF_UP] = _local1;
Util.getDO(Assets.SILVA3).puff_up = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA4_PUFF));
GameManager.tertiaryAnimationTasks[Assets.SILVA4_PUFF] = _local1;
Util.getDO(Assets.SILVA4).puff_up = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID1_PUFF));
GameManager.tertiaryAnimationTasks[Assets.DAVID1_PUFF] = _local1;
Util.getDO(Assets.DAVID1).puff_down = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID2_PUFF_DOWN));
GameManager.tertiaryAnimationTasks[Assets.DAVID2_PUFF_DOWN] = _local1;
Util.getDO(Assets.DAVID2).puff_down = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID2_PUFF_UP));
GameManager.tertiaryAnimationTasks[Assets.DAVID2_PUFF_UP] = _local1;
Util.getDO(Assets.DAVID2).puff_up = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID3_PUFF_DOWN));
GameManager.tertiaryAnimationTasks[Assets.DAVID3_PUFF_DOWN] = _local1;
Util.getDO(Assets.DAVID3).puff_down = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID3_PUFF_UP));
GameManager.tertiaryAnimationTasks[Assets.DAVID3_PUFF_UP] = _local1;
Util.getDO(Assets.DAVID3).puff_up = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID4_PUFF));
GameManager.tertiaryAnimationTasks[Assets.DAVID4_PUFF] = _local1;
Util.getDO(Assets.DAVID4).puff_up = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA1_SMOKE_POP));
GameManager.tertiaryAnimationTasks[Assets.SILVA1_SMOKE_POP] = _local1;
Util.getDO(Assets.SILVA1).smoke_pop = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA2_SMOKE_POP));
GameManager.tertiaryAnimationTasks[Assets.SILVA2_SMOKE_POP] = _local1;
Util.getDO(Assets.SILVA2).smoke_pop = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA3_SMOKE_POP));
GameManager.tertiaryAnimationTasks[Assets.SILVA3_SMOKE_POP] = _local1;
Util.getDO(Assets.SILVA3).smoke_pop = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA4_SMOKE_POP));
GameManager.tertiaryAnimationTasks[Assets.SILVA4_SMOKE_POP] = _local1;
Util.getDO(Assets.SILVA4).smoke_pop = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID1_SMOKE_POP));
GameManager.tertiaryAnimationTasks[Assets.DAVID1_SMOKE_POP] = _local1;
Util.getDO(Assets.DAVID1).smoke_pop = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID2_SMOKE_POP));
GameManager.tertiaryAnimationTasks[Assets.DAVID2_SMOKE_POP] = _local1;
Util.getDO(Assets.DAVID2).smoke_pop = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID3_SMOKE_POP));
GameManager.tertiaryAnimationTasks[Assets.DAVID3_SMOKE_POP] = _local1;
Util.getDO(Assets.DAVID3).smoke_pop = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID4_SMOKE_POP));
GameManager.tertiaryAnimationTasks[Assets.DAVID4_SMOKE_POP] = _local1;
Util.getDO(Assets.DAVID4).smoke_pop = _local1;
Util.getDO(Assets.SILVA1).smoke_pop.registerCallback(FrameAnimationTask.END, Assets.START_LABEL, GameManager.puffEnded);
Util.getDO(Assets.SILVA2).smoke_pop.registerCallback(FrameAnimationTask.END, Assets.START_LABEL, GameManager.puffEnded);
Util.getDO(Assets.SILVA3).smoke_pop.registerCallback(FrameAnimationTask.END, Assets.START_LABEL, GameManager.puffEnded);
Util.getDO(Assets.SILVA4).smoke_pop.registerCallback(FrameAnimationTask.END, Assets.START_LABEL, GameManager.puffEnded);
Util.getDO(Assets.DAVID1).smoke_pop.registerCallback(FrameAnimationTask.END, Assets.START_LABEL, GameManager.puffEnded);
Util.getDO(Assets.DAVID2).smoke_pop.registerCallback(FrameAnimationTask.END, Assets.START_LABEL, GameManager.puffEnded);
Util.getDO(Assets.DAVID3).smoke_pop.registerCallback(FrameAnimationTask.END, Assets.START_LABEL, GameManager.puffEnded);
Util.getDO(Assets.DAVID4).smoke_pop.registerCallback(FrameAnimationTask.END, Assets.START_LABEL, GameManager.puffEnded);
Util.getDO(Assets.SILVA1).puff_down.registerCallback(FrameAnimationTask.END, Assets.START_LABEL, GameManager.puffEnded);
Util.getDO(Assets.SILVA2).puff_down.registerCallback(FrameAnimationTask.END, Assets.START_LABEL, GameManager.puffEnded);
Util.getDO(Assets.SILVA2).puff_up.registerCallback(FrameAnimationTask.END, Assets.START_LABEL, GameManager.puffEnded);
Util.getDO(Assets.SILVA3).puff_down.registerCallback(FrameAnimationTask.END, Assets.START_LABEL, GameManager.puffEnded);
Util.getDO(Assets.SILVA3).puff_up.registerCallback(FrameAnimationTask.END, Assets.START_LABEL, GameManager.puffEnded);
Util.getDO(Assets.SILVA4).puff_up.registerCallback(FrameAnimationTask.END, Assets.START_LABEL, GameManager.puffEnded);
Util.getDO(Assets.DAVID1).puff_down.registerCallback(FrameAnimationTask.END, Assets.START_LABEL, GameManager.puffEnded);
Util.getDO(Assets.DAVID2).puff_down.registerCallback(FrameAnimationTask.END, Assets.START_LABEL, GameManager.puffEnded);
Util.getDO(Assets.DAVID2).puff_up.registerCallback(FrameAnimationTask.END, Assets.START_LABEL, GameManager.puffEnded);
Util.getDO(Assets.DAVID3).puff_down.registerCallback(FrameAnimationTask.END, Assets.START_LABEL, GameManager.puffEnded);
Util.getDO(Assets.DAVID3).puff_up.registerCallback(FrameAnimationTask.END, Assets.START_LABEL, GameManager.puffEnded);
Util.getDO(Assets.DAVID4).puff_up.registerCallback(FrameAnimationTask.END, Assets.START_LABEL, GameManager.puffEnded);
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA1_LIGHT_GREEN));
GameManager.tertiaryAnimationTasks[Assets.SILVA1_LIGHT_GREEN] = _local1;
Util.getDO(Assets.SILVA1).light_green = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA1_LIGHT_RED));
GameManager.tertiaryAnimationTasks[Assets.SILVA1_LIGHT_RED] = _local1;
Util.getDO(Assets.SILVA1).light_red = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA2_LIGHT_GREEN));
GameManager.tertiaryAnimationTasks[Assets.SILVA2_LIGHT_GREEN] = _local1;
Util.getDO(Assets.SILVA2).light_green = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA2_LIGHT_RED));
GameManager.tertiaryAnimationTasks[Assets.SILVA2_LIGHT_RED] = _local1;
Util.getDO(Assets.SILVA2).light_red = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA3_LIGHT_GREEN));
GameManager.tertiaryAnimationTasks[Assets.SILVA3_LIGHT_GREEN] = _local1;
Util.getDO(Assets.SILVA3).light_green = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA3_LIGHT_RED));
GameManager.tertiaryAnimationTasks[Assets.SILVA3_LIGHT_RED] = _local1;
Util.getDO(Assets.SILVA3).light_red = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA4_LIGHT_GREEN));
GameManager.tertiaryAnimationTasks[Assets.SILVA4_LIGHT_GREEN] = _local1;
Util.getDO(Assets.SILVA4).light_green = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA4_LIGHT_RED));
GameManager.tertiaryAnimationTasks[Assets.SILVA4_LIGHT_RED] = _local1;
Util.getDO(Assets.SILVA4).light_red = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID1_LIGHT_GREEN));
GameManager.tertiaryAnimationTasks[Assets.DAVID1_LIGHT_GREEN] = _local1;
Util.getDO(Assets.DAVID1).light_green = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID1_LIGHT_RED));
GameManager.tertiaryAnimationTasks[Assets.DAVID1_LIGHT_RED] = _local1;
Util.getDO(Assets.DAVID1).light_red = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID2_LIGHT_GREEN));
GameManager.tertiaryAnimationTasks[Assets.DAVID2_LIGHT_GREEN] = _local1;
Util.getDO(Assets.DAVID2).light_green = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID2_LIGHT_RED));
GameManager.tertiaryAnimationTasks[Assets.DAVID2_LIGHT_RED] = _local1;
Util.getDO(Assets.DAVID2).light_red = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID3_LIGHT_GREEN));
GameManager.tertiaryAnimationTasks[Assets.DAVID3_LIGHT_GREEN] = _local1;
Util.getDO(Assets.DAVID3).light_green = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID3_LIGHT_RED));
GameManager.tertiaryAnimationTasks[Assets.DAVID3_LIGHT_RED] = _local1;
Util.getDO(Assets.DAVID3).light_red = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID4_LIGHT_GREEN));
GameManager.tertiaryAnimationTasks[Assets.DAVID4_LIGHT_GREEN] = _local1;
Util.getDO(Assets.DAVID4).light_green = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID4_LIGHT_RED));
GameManager.tertiaryAnimationTasks[Assets.DAVID4_LIGHT_RED] = _local1;
Util.getDO(Assets.DAVID4).light_red = _local1;
_local2 = Util.getDO(Assets.SILVA1_BUTTON);
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA1_MO_LIGHT1));
GameManager.tertiaryAnimationTasks[Assets.SILVA1_MO_LIGHT1] = _local1;
_local2.mo_light1 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA1_MO_LIGHT2));
GameManager.tertiaryAnimationTasks[Assets.SILVA1_MO_LIGHT2] = _local1;
_local2.mo_light2 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA1_MO_LIGHT3));
GameManager.tertiaryAnimationTasks[Assets.SILVA1_MO_LIGHT3] = _local1;
_local2.mo_light3 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA1_MO_LIGHT4));
GameManager.tertiaryAnimationTasks[Assets.SILVA1_MO_LIGHT4] = _local1;
_local2.mo_light4 = _local1;
_local2 = Util.getDO(Assets.SILVA2_BUTTON);
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA2_MO_LIGHT1));
GameManager.tertiaryAnimationTasks[Assets.SILVA2_MO_LIGHT1] = _local1;
_local2.mo_light1 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA2_MO_LIGHT2));
GameManager.tertiaryAnimationTasks[Assets.SILVA2_MO_LIGHT2] = _local1;
_local2.mo_light2 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA2_MO_LIGHT3));
GameManager.tertiaryAnimationTasks[Assets.SILVA2_MO_LIGHT3] = _local1;
_local2.mo_light3 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA2_MO_LIGHT4));
GameManager.tertiaryAnimationTasks[Assets.SILVA2_MO_LIGHT4] = _local1;
_local2.mo_light4 = _local1;
_local2 = Util.getDO(Assets.SILVA3_BUTTON);
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA3_MO_LIGHT1));
GameManager.tertiaryAnimationTasks[Assets.SILVA3_MO_LIGHT1] = _local1;
_local2.mo_light1 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA3_MO_LIGHT2));
GameManager.tertiaryAnimationTasks[Assets.SILVA3_MO_LIGHT2] = _local1;
_local2.mo_light2 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA3_MO_LIGHT3));
GameManager.tertiaryAnimationTasks[Assets.SILVA3_MO_LIGHT3] = _local1;
_local2.mo_light3 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA3_MO_LIGHT4));
GameManager.tertiaryAnimationTasks[Assets.SILVA3_MO_LIGHT4] = _local1;
_local2.mo_light4 = _local1;
_local2 = Util.getDO(Assets.SILVA4_BUTTON);
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA4_MO_LIGHT1));
GameManager.tertiaryAnimationTasks[Assets.SILVA4_MO_LIGHT1] = _local1;
_local2.mo_light1 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA4_MO_LIGHT2));
GameManager.tertiaryAnimationTasks[Assets.SILVA4_MO_LIGHT2] = _local1;
_local2.mo_light2 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA4_MO_LIGHT3));
GameManager.tertiaryAnimationTasks[Assets.SILVA4_MO_LIGHT3] = _local1;
_local2.mo_light3 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.SILVA4_MO_LIGHT4));
GameManager.tertiaryAnimationTasks[Assets.SILVA4_MO_LIGHT4] = _local1;
_local2.mo_light4 = _local1;
_local2 = Util.getDO(Assets.DAVID1_BUTTON);
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID1_MO_LIGHT1));
GameManager.tertiaryAnimationTasks[Assets.DAVID1_MO_LIGHT1] = _local1;
_local2.mo_light1 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID1_MO_LIGHT2));
GameManager.tertiaryAnimationTasks[Assets.DAVID1_MO_LIGHT2] = _local1;
_local2.mo_light2 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID1_MO_LIGHT3));
GameManager.tertiaryAnimationTasks[Assets.DAVID1_MO_LIGHT3] = _local1;
_local2.mo_light3 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID1_MO_LIGHT4));
GameManager.tertiaryAnimationTasks[Assets.DAVID1_MO_LIGHT4] = _local1;
_local2.mo_light4 = _local1;
_local2 = Util.getDO(Assets.DAVID2_BUTTON);
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID2_MO_LIGHT1));
GameManager.tertiaryAnimationTasks[Assets.DAVID2_MO_LIGHT1] = _local1;
_local2.mo_light1 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID2_MO_LIGHT2));
GameManager.tertiaryAnimationTasks[Assets.DAVID2_MO_LIGHT2] = _local1;
_local2.mo_light2 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID2_MO_LIGHT3));
GameManager.tertiaryAnimationTasks[Assets.DAVID2_MO_LIGHT3] = _local1;
_local2.mo_light3 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID2_MO_LIGHT4));
GameManager.tertiaryAnimationTasks[Assets.DAVID2_MO_LIGHT4] = _local1;
_local2.mo_light4 = _local1;
_local2 = Util.getDO(Assets.DAVID3_BUTTON);
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID3_MO_LIGHT1));
GameManager.tertiaryAnimationTasks[Assets.DAVID3_MO_LIGHT1] = _local1;
_local2.mo_light1 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID3_MO_LIGHT2));
GameManager.tertiaryAnimationTasks[Assets.DAVID3_MO_LIGHT2] = _local1;
_local2.mo_light2 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID3_MO_LIGHT3));
GameManager.tertiaryAnimationTasks[Assets.DAVID3_MO_LIGHT3] = _local1;
_local2.mo_light3 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID3_MO_LIGHT4));
GameManager.tertiaryAnimationTasks[Assets.DAVID3_MO_LIGHT4] = _local1;
_local2.mo_light4 = _local1;
_local2 = Util.getDO(Assets.DAVID4_BUTTON);
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID4_MO_LIGHT1));
GameManager.tertiaryAnimationTasks[Assets.DAVID4_MO_LIGHT1] = _local1;
_local2.mo_light1 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID4_MO_LIGHT2));
GameManager.tertiaryAnimationTasks[Assets.DAVID4_MO_LIGHT2] = _local1;
_local2.mo_light2 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID4_MO_LIGHT3));
GameManager.tertiaryAnimationTasks[Assets.DAVID4_MO_LIGHT3] = _local1;
_local2.mo_light3 = _local1;
_local1 = new FrameAnimationTask(Util.getDO(Assets.DAVID4_MO_LIGHT4));
GameManager.tertiaryAnimationTasks[Assets.DAVID4_MO_LIGHT4] = _local1;
_local2.mo_light4 = _local1;
_local2 = Util.getDO(Assets.FOCUS_LOST);
_local1 = new FrameAnimationTask(_local2);
GameManager.screenAnimationTasks[_local2.name] = _local1;
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.PRE_PLATFORM1_LABEL, GameManager.hideSheet);
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.PRE_PLATFORM1_LABEL, Screens.showLostLifeScreen);
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.PLATFORM1_LABEL, Screens.showLostLifeScreen);
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.PLATFORM2_LABEL, Screens.showLostLifeScreen);
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.PLATFORM3_LABEL, Screens.showLostLifeScreen);
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.PLATFORM4_LABEL, Screens.showLostLifeScreen);
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.PLATFORM5_LABEL, Screens.showLostLifeScreen);
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.PLATFORM6_LABEL, Screens.showLostLifeScreen);
_local1.registerCallback([FrameAnimationTask.END, FrameAnimationTask.STOP], Assets.PLATFORM7_LABEL, Screens.showLostLifeScreen);
}
}
}//package
Section 55
//IncandescentLighter (IncandescentLighter)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class IncandescentLighter extends MovieClip {
public function IncandescentLighter(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package
Section 56
//LevelManager (LevelManager)
package {
import flash.utils.*;
public class LevelManager {
static const AVERAGE_SCORE_THRESHOLD:int = 200;
private static const INITIAL_LIVES:ByteArray = Crypto.encrypt(3);
private static const speedFunctions:Array = [fSpeed1, fSpeed2, fSpeed3, fSpeed4, fSpeed5, fSpeed6, fSpeed7];
private static const levelBurstsElements:Array = [1, 2, 3, 3, 3, 3, 3];
private static const burstIntervalFunctions:Array = [fBurstTime1, fBurstTime2, fBurstTime3, fBurstTime4, fBurstTime5, fBurstTime6, fBurstTime7];
private static const GOOD_DEEDS_FORGIVNESS_GOAL:ByteArray = Crypto.encrypt(100);
static const LOW_SCORE_THRESHOLD:int = 0;
static const GOOD_SCORE_THRESHOLD:int = 1000;
private static const INITIAL_SPEED:int = 11;
private static const burstFunctions:Array = [fBurst1, fBurst1, fBurst1, fBurst1, fBurst1, fBurst1, fBurst7];
private static const levelConfigurations:Array = [GameManager.cfg1, GameManager.cfg1, GameManager.cfg1, GameManager.cfg2, GameManager.cfg2, GameManager.cfg2, GameManager.cfg3, GameManager.cfg3, GameManager.cfg3, GameManager.cfg4, GameManager.cfg4, GameManager.cfg4];
private static const levelSpeedIncrements:Array = [0, 0.01, 0.02, -0.03, 0.015, 0.015, -0.1, 0.005, 0.0025, -0.1, 0.001];
private static const levelObjectives:Array = [3, 6, 8, 10, 12, 16];
private static var totalStockScore:ByteArray = Crypto.encrypt(0);
static var SECONDARY_SPEED:Number = 11;
private static var currentLevelPackedLighters:ByteArray = Crypto.encrypt(0);
private static var lives:ByteArray = INITIAL_LIVES;
static var lastBurstTime:int = 0;
private static var burst:Array = [];
private static var currentLevelIndex:ByteArray = Crypto.encrypt(-1);
private static var currentLevelInitialSpeed:Number = 0;
static var lastCatchTime:int = 0;
static var goodDeeds:ByteArray = Crypto.encrypt(0);
private static var currentLevelProducedBursts:int = 0;
static var lastProductionTime:int = 0;
static var CONVEYOR_BELT_SPEED:Number = 11;
static var levelFirstBurst:Boolean = true;
private static var totalTransfersScore:ByteArray = Crypto.encrypt(0);
static var WORKERS_SPEED:Number = 11;
public static function getCurrentLevel():int{
return ((Crypto.decrypt(currentLevelIndex) + 1));
}
public static function getCurrentLevelStockScore():int{
return (Crypto.decrypt(currentLevelPackedLighters));
}
static function fBurstTime2(_arg1:Number, _arg2:Number):Number{
return ((24000 + (1000 * Math.random())));
}
public static function canProduceArt(_arg1:int, _arg2:int, _arg3:int):Boolean{
var _local4:Function;
var _local5:Function;
var _local6:int;
var _local7:int;
_arg2 = (_arg2 + 400);
if (Crypto.decrypt(currentLevelIndex) < burstFunctions.length){
_local4 = burstFunctions[Crypto.decrypt(currentLevelIndex)];
} else {
_local4 = burstFunctions[(burstFunctions.length - 1)];
};
if (Crypto.decrypt(currentLevelIndex) < burstFunctions.length){
_local5 = burstIntervalFunctions[Crypto.decrypt(currentLevelIndex)];
} else {
_local5 = burstIntervalFunctions[(burstIntervalFunctions.length - 1)];
};
if (Crypto.decrypt(currentLevelIndex) < levelBurstsElements.length){
_local6 = levelBurstsElements[Crypto.decrypt(currentLevelIndex)];
} else {
_local6 = levelBurstsElements[(levelBurstsElements.length - 1)];
};
if (burst.length == 0){
if (((((((_arg1 - lastBurstTime) >= _local5(0, 0))) || (levelFirstBurst))) || ((_arg3 == 0)))){
_local7 = _local4(_local6, currentLevelProducedBursts);
while (--_local7 >= 0) {
burst.push(null);
};
trace("burst #elements:", _local4(_local6, currentLevelProducedBursts));
lastBurstTime = _arg1;
currentLevelProducedBursts++;
};
};
if (levelFirstBurst){
levelFirstBurst = false;
};
if (burst.length > 0){
if (((((_arg1 - lastProductionTime) > _arg2)) && (((_arg1 - lastCatchTime) > _arg2)))){
lastProductionTime = _arg1;
burst.pop();
return (true);
};
};
return (false);
}
public static function lighterPacked():Boolean{
var _local1:int;
var _local2:Function;
var _local3:Number;
currentLevelPackedLighters = Crypto.encrypt((Crypto.decrypt(currentLevelPackedLighters) + 1));
totalStockScore = Crypto.encrypt((Crypto.decrypt(totalStockScore) + 1));
_local1 = 0;
if (Crypto.decrypt(currentLevelIndex) < levelObjectives.length){
_local1 = levelObjectives[Crypto.decrypt(currentLevelIndex)];
} else {
_local1 = generateObjective(Crypto.decrypt(currentLevelIndex));
};
if (Crypto.decrypt(currentLevelPackedLighters) >= _local1){
return (true);
};
if (Crypto.decrypt(currentLevelIndex) < speedFunctions.length){
_local2 = speedFunctions[Crypto.decrypt(currentLevelIndex)];
} else {
_local2 = speedFunctions[(speedFunctions.length - 1)];
};
_local3 = _local2(currentLevelInitialSpeed, Crypto.decrypt(currentLevelPackedLighters));
trace("speed:", _local3, "fps");
WORKERS_SPEED = _local3;
CONVEYOR_BELT_SPEED = _local3;
return (false);
}
static function fBurst1(_arg1:Number, _arg2:Number):Number{
return (_arg1);
}
static function fBurst7(_arg1:Number, _arg2:Number):Number{
return ((_arg1 + int(((currentLevelIndex - 7) / 5))));
}
public static function addTransferPoints(_arg1:int):void{
totalTransfersScore = Crypto.encrypt((Crypto.decrypt(totalTransfersScore) + _arg1));
goodDeeds = Crypto.encrypt((Crypto.decrypt(goodDeeds) + 1));
if (Crypto.decrypt(goodDeeds) >= Crypto.decrypt(GOOD_DEEDS_FORGIVNESS_GOAL)){
if (Crypto.decrypt(lives) < 3){
lives = Crypto.encrypt((Crypto.decrypt(lives) + 1));
GameManager.forgiveMistake();
};
goodDeeds = Crypto.encrypt(0);
};
}
public static function getTotalTransfersScore():int{
return (Crypto.decrypt(totalTransfersScore));
}
public static function getCurrentLevelObjective():int{
var _local1:int;
_local1 = 0;
if (Crypto.decrypt(currentLevelIndex) < levelObjectives.length){
_local1 = levelObjectives[Crypto.decrypt(currentLevelIndex)];
} else {
_local1 = generateObjective(Crypto.decrypt(currentLevelIndex));
};
return (_local1);
}
public static function getLevelConfiguration():Object{
if (Crypto.decrypt(currentLevelIndex) < levelConfigurations.length){
return (levelConfigurations[Crypto.decrypt(currentLevelIndex)]);
};
return (GameManager.cfg4);
}
public static function getTotalStockScore():int{
return (Crypto.decrypt(totalStockScore));
}
static function fBurstTime4(_arg1:Number, _arg2:Number):Number{
return ((26000 + (1000 * Math.random())));
}
public static function reset(){
currentLevelIndex = Crypto.encrypt(-1);
totalStockScore = Crypto.encrypt(0);
totalTransfersScore = Crypto.encrypt(0);
lives = INITIAL_LIVES;
lastProductionTime = 0;
lastCatchTime = 0;
lastBurstTime = 0;
goodDeeds = Crypto.encrypt(0);
burst = [];
}
static function fSpeed1(_arg1:Number, _arg2:Number):Number{
return (((0.015 * _arg2) + _arg1));
}
public static function nextLevel():void{
var _local1:int;
currentLevelIndex = Crypto.encrypt((Crypto.decrypt(currentLevelIndex) + 1));
currentLevelPackedLighters = Crypto.encrypt(0);
currentLevelProducedBursts = 0;
levelFirstBurst = true;
for (_local1 in burst) {
burst.pop();
};
if (Crypto.decrypt(currentLevelIndex) == 0){
currentLevelInitialSpeed = INITIAL_SPEED;
};
if (Crypto.decrypt(currentLevelIndex) < levelSpeedIncrements.length){
currentLevelInitialSpeed = (currentLevelInitialSpeed * (1 + levelSpeedIncrements[Crypto.decrypt(currentLevelIndex)]));
} else {
currentLevelInitialSpeed = (currentLevelInitialSpeed * (1 + levelSpeedIncrements[(levelSpeedIncrements.length - 1)]));
};
WORKERS_SPEED = currentLevelInitialSpeed;
CONVEYOR_BELT_SPEED = currentLevelInitialSpeed;
trace(("Level index: " + Crypto.decrypt(currentLevelIndex)));
trace(("Level initial speed: " + currentLevelInitialSpeed));
trace(("WORKERS_SPEED: " + WORKERS_SPEED));
trace(("CONVEYOR_BELT_SPEED: " + CONVEYOR_BELT_SPEED));
trace(("SECONDARY_SPEED: " + SECONDARY_SPEED));
}
static function fSpeed3(_arg1:Number, _arg2:Number):Number{
return (((0.003 * _arg2) + _arg1));
}
static function generateObjective(_arg1:int):int{
return ((_arg1 * 2.5));
}
static function fSpeed5(_arg1:Number, _arg2:Number):Number{
return (((0.001 * _arg2) + _arg1));
}
static function fBurstTime7(_arg1:Number, _arg2:Number):Number{
return ((30000 + (2000 * Math.random())));
}
public static function getLives():int{
return (Crypto.decrypt(lives));
}
static function fSpeed4(_arg1:Number, _arg2:Number):Number{
return (((0.0016 * _arg2) + _arg1));
}
static function fSpeed7(_arg1:Number, _arg2:Number):Number{
return (((0 * _arg2) + _arg1));
}
static function fBurstTime6(_arg1:Number, _arg2:Number):Number{
return ((26000 + (2000 * Math.random())));
}
static function fSpeed2(_arg1:Number, _arg2:Number):Number{
return (((0.005 * _arg2) + _arg1));
}
public static function getScore():int{
return (((getCurrentLevel() + getTotalStockScore()) + getTotalTransfersScore()));
}
static function fBurstTime1(_arg1:Number, _arg2:Number):Number{
return ((18000 + (1000 * Math.random())));
}
public static function addLives(_arg1:int):void{
lives = Crypto.encrypt((Crypto.decrypt(lives) + _arg1));
if (_arg1 < 0){
goodDeeds = Crypto.encrypt(0);
};
}
public static function setLastCatchTime(_arg1:int):void{
lastCatchTime = _arg1;
}
static function fSpeed6(_arg1:Number, _arg2:Number):Number{
return (((0.0003 * _arg2) + _arg1));
}
static function fBurstTime3(_arg1:Number, _arg2:Number):Number{
return ((24000 + (1000 * Math.random())));
}
static function fBurstTime5(_arg1:Number, _arg2:Number):Number{
return ((28000 + (1000 * Math.random())));
}
}
}//package
Section 57
//LighterClosed (LighterClosed)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class LighterClosed extends MovieClip {
public function LighterClosed(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
this.stop();
}
}
}//package
Section 58
//LighterClosedLaid (LighterClosedLaid)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class LighterClosedLaid extends MovieClip {
public function LighterClosedLaid(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package
Section 59
//LighterClosedSideView (LighterClosedSideView)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class LighterClosedSideView extends MovieClip {
public function LighterClosedSideView(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package
Section 60
//LighterClosedSideViewLaid (LighterClosedSideViewLaid)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class LighterClosedSideViewLaid extends MovieClip {
public function LighterClosedSideViewLaid(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package
Section 61
//LighterOpen (LighterOpen)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class LighterOpen extends MovieClip {
public function LighterOpen(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package
Section 62
//LighterPackage (LighterPackage)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class LighterPackage extends MovieClip {
public function LighterPackage(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package
Section 63
//MoltenMetal (MoltenMetal)
package {
import flash.display.*;
public dynamic class MoltenMetal extends MovieClip {
}
}//package
Section 64
//Networking (Networking)
package {
import flash.events.*;
import com.hurlant.util.*;
import flash.net.*;
public class Networking {
private static const URL_DOWNLOAD_HIGHSCORES:String = "http://www.ignite-games.com/IgniteAssemblyLine/highscores.asp";
private static const URL_SUBMIT_SCORE:String = "http://www.ignite-games.com/IgniteAssemblyLine/highscores.asp?t=s";
public static function submitScore(_arg1:String, _arg2:String, _arg3:int, _arg4:int, _arg5:String, _arg6:Function, _arg7:Function):void{
var param:String;
var requestString:*;
var request:URLRequest;
var loader:URLLoader;
var name = _arg1;
var motto = _arg2;
var level = _arg3;
var score = _arg4;
var time = _arg5;
var successCallback = _arg6;
var errorCallback = _arg7;
if ((((name == "")) || ((name.toLowerCase() == "your name here")))){
name = "Anonymous";
};
if ((((motto == "")) || ((motto.toLowerCase() == "your motto here")))){
motto = " ";
};
param = ((((((((((((("&y=" + escape(Base64.encodeByteArray(Crypto.encryptToExternal(name)))) + "&x=") + escape(Base64.encodeByteArray(Crypto.encryptToExternal(motto)))) + "&w=") + escape(Base64.encodeByteArray(Crypto.encryptToExternal(level)))) + "&z=") + escape(Base64.encodeByteArray(Crypto.encryptToExternal(score)))) + "&s=") + escape(Base64.encodeByteArray(Crypto.encryptToExternal(time)))) + "&v=") + escape(Base64.encodeByteArray(Crypto.encryptToExternal(int((Math.random() * score)))))) + "&u=") + escape(Base64.encodeByteArray(Crypto.encryptToExternal(int(((Math.random() * score) * level))))));
param = param.replace(/\+/g, "%2B");
param = param.replace(/\//g, "%2F");
requestString = (URL_SUBMIT_SCORE + param);
request = new URLRequest(requestString);
request.method = URLRequestMethod.POST;
loader = new URLLoader();
loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorCallback);
loader.addEventListener(IOErrorEvent.IO_ERROR, errorCallback);
loader.addEventListener(Event.COMPLETE, successCallback);
try {
loader.load(request);
} catch(error:Error) {
errorCallback(null);
};
}
public static function getHighscores(_arg1:Function, _arg2:Function):void{
var request:URLRequest;
var loader:URLLoader;
var successCallback = _arg1;
var errorCallback = _arg2;
request = new URLRequest(URL_DOWNLOAD_HIGHSCORES);
request.method = URLRequestMethod.POST;
loader = new URLLoader();
loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorCallback);
loader.addEventListener(IOErrorEvent.IO_ERROR, errorCallback);
loader.addEventListener(Event.COMPLETE, successCallback);
try {
loader.load(request);
} catch(error:Error) {
errorCallback(null);
};
}
}
}//package
Section 65
//ObjectFactory (ObjectFactory)
package {
import flash.utils.*;
public class ObjectFactory {
static const CA_SHEET_ROLL:String = "CASheetRoll";
static const LIGHTER_CLOSED:String = "LighterClosed";
static const BEHEADED_LIGHTER_LAID:String = "BeheadedLighterLaid";
static const LIGHTER_PACKAGE:String = "LighterPackage";
static const LIGHTER_CLOSED_SIDE_VIEW:String = "LighterClosedSideView";
static const MOVIE_CLIP:String = "flash.display.MovieClip";
static const LIGHTER_CLOSED_LAID:String = "LighterClosedLaid";
static const INCANDESCENT_LIGHTER:String = "IncandescentLighter";
static const SCRUM_SHEETS:String = "ScrumSheets";
static const LIGHTER_CLOSED_SIDE_VIEW_LAID:String = "LighterClosedSideViewLaid";
static const LIGHTER_OPEN:String = "LighterOpen";
static const BEHEADED_LIGHTER:String = "BeheadedLighter";
static const MOLTEN_METAL:String = "MoltenMetal";
private static var poolCaSheetRoll:Array = [];
private static var poolLighterClosedSideView:Array = [];
private static var poolScrumSheets:Array = [];
private static var poolBeheadedLighterLaid:Array = [];
private static var INSTANCE:ObjectFactory = null;
private static var ALLOWINSTANTIATION:Boolean = false;
private static var poolBeheadedLighter:Array = [];
private static var poolIncandescentLighter:Array = [];
private static var poolLighterPackage:Array = [];
private static var poolLighterClosedLaid:Array = [];
private static var poolMoltenMetal:Array = [];
private static var poolLighterClosed:Array = [];
private static var poolMovieClip:Array = [];
private static var poolLighterOpen:Array = [];
private static var poolLighterClosedSideViewLaid:Array = [];
private static function getObjectInternal(_arg1:String, _arg2:Array):Object{
var _local3:Object;
var _local4:int;
_local3 = null;
for (_local4 in _arg2) {
_local3 = _arg2[_local4];
if (!_local3.inUse){
_local3.inUse = true;
_local3.visible = true;
break;
} else {
_local3 = null;
};
};
if (_local3 == null){
_local3 = new (getDefinitionByName(_arg1));
_arg2.push(_local3);
};
_local3.inUse = true;
return (_local3);
}
public static function getObject(_arg1:String):Object{
switch (_arg1){
case CA_SHEET_ROLL:
return (getObjectInternal(CA_SHEET_ROLL, poolCaSheetRoll));
case SCRUM_SHEETS:
return (getObjectInternal(SCRUM_SHEETS, poolScrumSheets));
case MOLTEN_METAL:
return (getObjectInternal(MOLTEN_METAL, poolMoltenMetal));
case INCANDESCENT_LIGHTER:
return (getObjectInternal(INCANDESCENT_LIGHTER, poolIncandescentLighter));
case BEHEADED_LIGHTER:
return (getObjectInternal(BEHEADED_LIGHTER, poolBeheadedLighter));
case BEHEADED_LIGHTER_LAID:
return (getObjectInternal(BEHEADED_LIGHTER_LAID, poolBeheadedLighterLaid));
case LIGHTER_CLOSED_SIDE_VIEW:
return (getObjectInternal(LIGHTER_CLOSED_SIDE_VIEW, poolLighterClosedSideView));
case LIGHTER_CLOSED_SIDE_VIEW_LAID:
return (getObjectInternal(LIGHTER_CLOSED_SIDE_VIEW_LAID, poolLighterClosedSideViewLaid));
case LIGHTER_CLOSED:
return (getObjectInternal(LIGHTER_CLOSED, poolLighterClosed));
case LIGHTER_CLOSED_LAID:
return (getObjectInternal(LIGHTER_CLOSED_LAID, poolLighterClosedLaid));
case LIGHTER_OPEN:
return (getObjectInternal(LIGHTER_OPEN, poolLighterOpen));
case LIGHTER_PACKAGE:
return (getObjectInternal(LIGHTER_PACKAGE, poolLighterPackage));
case MOVIE_CLIP:
return (getObjectInternal(MOVIE_CLIP, poolMovieClip));
};
}
}
}//package
Section 66
//PositionButton (PositionButton)
package {
import flash.display.*;
public dynamic class PositionButton extends SimpleButton {
}
}//package
Section 67
//Screens (Screens)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Screens {
static const s10:String = "_level";
static const s11:String = "_score";
static const s12:String = "_time";
static const CONNECTION_TASK_MINIMUM_DELAY:int = 1500;
static const s1:String = "all_time_best_player";
static const s2:String = "monthly_stars_player";
static const s3:String = "daily_workers_player";
static const s4:String = "all_time_hero";
static const s6:String = "day_worker";
static const s7:String = "_id";
static const s8:String = "_name";
static const s9:String = "_motto";
static const s5:String = "monthly_star";
static var SCREENS_SPEED:Number = 12;
public static function addClickDelay(_arg1:Object, _arg2:int, _arg3:Function):void{
var timer:Timer;
var obj = _arg1;
var delay = _arg2;
var callback = _arg3;
timer = new Timer(delay, 1);
timer.addEventListener(TimerEvent.TIMER, function (){
Util.translateDO(obj).addEventListener(MouseEvent.CLICK, callback);
});
timer.start();
}
public static function cancelSubmitScore(_arg1:Event):void{
Util.mcGotoAndStop(Assets.SUBMIT_SCORE_SCREEN, Assets.IDLE_LABEL);
Util.bringToFront(Assets.MAIN_MENU_SCREEN);
Util.mcGotoAndStop(Assets.MAIN_MENU_SCREEN, Assets.START_LABEL);
}
public static function showInstructions(_arg1:Event):void{
clearHighscores();
Util.mcGotoAndStop(Assets.HIGHSCORES_SCREEN, Assets.IDLE_LABEL);
Util.mcGotoAndStop(Assets.LIVES_OUT_SCREEN, Assets.IDLE_LABEL);
Util.bringToFront(Assets.MAIN_MENU_SCREEN);
Util.mcGotoAndStop(Assets.MAIN_MENU_SCREEN, Assets.START_LABEL);
}
public static function removeDelayedClick(_arg1:Object, _arg2:Function):void{
Util.translateDO(_arg1).removeEventListener(MouseEvent.CLICK, _arg2);
}
public static function showMainMenu():void{
GameManager.currentState = GameManager.MAIN_MENU;
Util.mcGotoAndStop(Assets.MAIN_MENU_SCREEN, Assets.START_LABEL);
}
public static function scoreSubmittedProblem(_arg1:Event):void{
var event = _arg1;
Util.bringToFront(Assets.CONNECTING_SCREEN);
Util.mcGotoAndStop(Assets.CONNECTING_SCREEN, Assets.ERROR_LABEL);
addClickDelay(Assets.CONNECTING_SCREEN, 1000, function (){
Util.getDO(Assets.CONNECTING_SCREEN).addEventListener(MouseEvent.CLICK, scoreSubmittedProblemOut);
});
}
public static function forgiveScreenOut(_arg1:Event):void{
removeDelayedClick(Assets.FORGIVING_SCREEN, forgiveScreenOut);
Util.mcGotoAndStop(Assets.FORGIVING_SCREEN, Assets.IDLE_LABEL);
GameManager.resume();
}
public static function scoreSubmittedProblemOut(_arg1:Event):void{
removeDelayedClick(Assets.CONNECTING_SCREEN, scoreSubmittedProblemOut);
Util.mcGotoAndStop(Assets.CONNECTING_SCREEN, Assets.IDLE_LABEL);
Util.bringToFront(Assets.MAIN_MENU_SCREEN);
Util.mcGotoAndStop(Assets.MAIN_MENU_SCREEN, Assets.START_LABEL);
}
public static function highscoresProblem(_arg1:Event):void{
var event = _arg1;
Util.bringToFront(Assets.CONNECTING_SCREEN);
Util.mcGotoAndStop(Assets.CONNECTING_SCREEN, Assets.ERROR_LABEL);
addClickDelay(Assets.CONNECTING_SCREEN, 1000, function (){
Util.getDO(Assets.CONNECTING_SCREEN).addEventListener(MouseEvent.CLICK, highscoresProblemOut);
});
}
public static function showSubmitScore(_arg1:Event):void{
Util.mcGotoAndStop(Assets.LIVES_OUT_SCREEN, Assets.IDLE_LABEL);
Util.getDO(Assets.SUBMIT_SCORE_SCREEN).score = (((((Util.formatTime(GameManager.getLastGameTime()) + " LV:") + LevelManager.getCurrentLevel()) + " ") + (LevelManager.getScore() + int(((GameManager.getLastGameTime() / 1000) / 60)))) + " POINTS");
Util.bringToFront(Assets.SUBMIT_SCORE_SCREEN);
Util.mcGotoAndStop(Assets.SUBMIT_SCORE_SCREEN, Assets.START_LABEL);
}
public static function showHighscores(_arg1:Event):void{
Util.mcGotoAndStop(Assets.MAIN_MENU_SCREEN, Assets.IDLE_LABEL);
Util.bringToFront(Assets.CONNECTING_SCREEN);
Util.mcGotoAndStop(Assets.CONNECTING_SCREEN, Assets.START_LABEL);
Util.getDO(Assets.HIGHSCORES_SCREEN).lastRequestTime = getTimer();
Networking.getHighscores(fillHighscoresInfo, highscoresProblem);
}
public static function highscoresProblemOut(_arg1:Event):void{
removeDelayedClick(Assets.CONNECTING_SCREEN, highscoresProblemOut);
Util.mcGotoAndStop(Assets.CONNECTING_SCREEN, Assets.IDLE_LABEL);
Util.bringToFront(Assets.MAIN_MENU_SCREEN);
Util.mcGotoAndStop(Assets.MAIN_MENU_SCREEN, Assets.START_LABEL);
}
public static function showLostLifeScreen(_arg1:Object):void{
var _local2:Timer;
var _local3:MovieClip;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
GameManager.screenAnimationTasks[Assets.FOCUS_LOST].play(GameManager.getGameTime(), SCREENS_SPEED, Assets.IDLE_LABEL, false);
_local2 = new Timer(1000, 1);
if (LevelManager.getLives() <= 0){
_local3 = Util.getDO(Assets.LIVES_OUT_SCREEN);
_local4 = GameManager.getLastGameTime();
_local5 = LevelManager.getCurrentLevel();
_local6 = LevelManager.getTotalStockScore();
_local7 = LevelManager.getTotalTransfersScore();
_local3.totalsTime = Util.formatTime(_local4);
_local3.totalsLevel = _local5;
_local3.totalsLighters = _local6;
_local3.totalsShifts = _local7;
_local3.totalsTotal = (((int(((_local4 / 1000) / 60)) + _local5) + _local6) + _local7);
_local3.totalScore = Util.formatNumber(_local3.totalsTotal, 7);
Util.bringToFront(_local3);
_local3.gotoAndStop(Assets.START_LABEL);
addClickDelay(_local3, 1000, showOptions);
} else {
Util.bringToFront(Assets.LOST_LIFE_SCREEN);
Util.getDO(Assets.LOST_LIFE_SCREEN).againTimes = LevelManager.getLives();
Util.mcGotoAndStop(Assets.LOST_LIFE_SCREEN, Assets.START_LABEL);
addClickDelay(Assets.LOST_LIFE_SCREEN, 1000, lostLifeScreenOut);
};
}
public static function lostLifeScreenOut(_arg1:Object):void{
removeDelayedClick(Assets.LOST_LIFE_SCREEN, lostLifeScreenOut);
Util.mcGotoAndStop(Assets.LOST_LIFE_SCREEN, Assets.IDLE_LABEL);
GameManager.resume();
}
public static function fillHighscoresInfo(_arg1:Event):void{
var _local2:XML;
var _local3:String;
var _local4:MovieClip;
var _local5:XMLList;
var _local6:int;
var _local7:*;
clearHighscores();
_local2 = XML(_arg1.target.data);
_local3 = "";
_local4 = Util.getDO(Assets.HIGHSCORES_SCREEN);
if (_local2 != ""){
_local5 = _local2.child("best-highscores-ever");
for (_local6 in _local5.highscore) {
_local4[((s1 + (_local6 + 1)) + s7)] = Util.define(_local5.highscore[_local6].id);
_local4[((s1 + (_local6 + 1)) + s8)] = Util.define(_local5.highscore[_local6].name).toUpperCase();
_local4[((s1 + (_local6 + 1)) + s9)] = Util.define(_local5.highscore[_local6].motto);
_local4[((s1 + (_local6 + 1)) + s10)] = Util.define(_local5.highscore[_local6].level);
_local4[((s1 + (_local6 + 1)) + s11)] = Util.define(_local5.highscore[_local6].score);
_local4[((s1 + (_local6 + 1)) + s12)] = Util.define(_local5.highscore[_local6]["survival-time"]);
if (_local5.highscore[_local6].id == _local4.submittedScoreId){
_local4.activeHighlight1 = _local4[(("player" + (_local6 + 1)) + "_highlight_mc")];
_local3 = Assets.ALL_TIME_BEST_LABEL;
};
};
_local5 = _local2.child("best-highscores-month");
for (_local6 in _local5.highscore) {
_local4[((s2 + (_local6 + 1)) + s7)] = Util.define(_local5.highscore[_local6].id);
_local4[((s2 + (_local6 + 1)) + s8)] = Util.define(_local5.highscore[_local6].name).toUpperCase();
_local4[((s2 + (_local6 + 1)) + s9)] = Util.define(_local5.highscore[_local6].motto);
_local4[((s2 + (_local6 + 1)) + s10)] = Util.define(_local5.highscore[_local6].level);
_local4[((s2 + (_local6 + 1)) + s11)] = Util.define(_local5.highscore[_local6].score);
_local4[((s2 + (_local6 + 1)) + s12)] = Util.define(_local5.highscore[_local6]["survival-time"]);
if (_local5.highscore[_local6].id == _local4.submittedScoreId){
_local4.activeHighlight2 = _local4[(("player" + (_local6 + 1)) + "_highlight_mc")];
if (_local3 == ""){
_local3 = Assets.MONTHLY_STARS_LABEL;
};
};
};
_local5 = _local2.child("best-highscores-day");
for (_local6 in _local5.highscore) {
_local4[((s3 + (_local6 + 1)) + s7)] = Util.define(_local5.highscore[_local6].id);
_local4[((s3 + (_local6 + 1)) + s8)] = Util.define(_local5.highscore[_local6].name).toUpperCase();
_local4[((s3 + (_local6 + 1)) + s9)] = Util.define(_local5.highscore[_local6].motto);
_local4[((s3 + (_local6 + 1)) + s10)] = Util.define(_local5.highscore[_local6].level);
_local4[((s3 + (_local6 + 1)) + s11)] = Util.define(_local5.highscore[_local6].score);
_local4[((s3 + (_local6 + 1)) + s12)] = Util.define(_local5.highscore[_local6]["survival-time"]);
if (_local5.highscore[_local6].id == _local4.submittedScoreId){
_local4.activeHighlight3 = _local4[(("player" + (_local6 + 1)) + "_highlight_mc")];
if (_local3 == ""){
_local3 = Assets.DAILY_WORKERS_LABEL;
};
};
};
_local7 = false;
_local5 = _local2.child("best-highscore-ever");
if (_local5.highscore != null){
_local4[(s4 + s7)] = Util.define(_local5.highscore.id);
_local4[(s4 + s8)] = Util.define(_local5.highscore.name).toUpperCase();
_local4[(s4 + s9)] = Util.define(_local5.highscore.motto);
_local4[(s4 + s10)] = Util.define(_local5.highscore.level);
_local4[(s4 + s11)] = Util.define(_local5.highscore.score);
_local4[(s4 + s12)] = Util.define(_local5.highscore["survival-time"]);
if (_local5.highscore.id == _local4.submittedScoreId){
_local4.activeHighlight0 = _local4["all_time_hero_highlight_mc"];
_local7 = true;
};
};
_local5 = _local2.child("best-highscore-month");
if (_local5.highscore != null){
_local4[(s5 + s7)] = Util.define(_local5.highscore.id);
_local4[(s5 + s8)] = Util.define(_local5.highscore.name).toUpperCase();
_local4[(s5 + s9)] = Util.define(_local5.highscore.motto);
_local4[(s5 + s10)] = Util.define(_local5.highscore.level);
_local4[(s5 + s11)] = Util.define(_local5.highscore.score);
_local4[(s5 + s12)] = Util.define(_local5.highscore["survival-time"]);
if (_local5.highscore.id == _local4.submittedScoreId){
if (!_local7){
_local4.activeHighlight0 = _local4["monthly_star_highlight_mc"];
_local7 = true;
};
};
};
_local5 = _local2.child("best-highscore-day");
if (_local5.highscore != null){
_local4[(s6 + s7)] = Util.define(_local5.highscore.id);
_local4[(s6 + s8)] = Util.define(_local5.highscore.name).toUpperCase();
_local4[(s6 + s9)] = Util.define(_local5.highscore.motto);
_local4[(s6 + s10)] = Util.define(_local5.highscore.level);
_local4[(s6 + s11)] = Util.define(_local5.highscore.score);
_local4[(s6 + s12)] = Util.define(_local5.highscore["survival-time"]);
if (_local5.highscore.id == _local4.submittedScoreId){
if (!_local7){
_local4.activeHighlight0 = _local4["day_worker_highlight_mc"];
};
};
};
};
if (_local3 == ""){
_local3 = Assets.ALL_TIME_BEST_LABEL;
};
_local4.startLabel = _local3;
showHighscores_(null);
}
public static function clearHighscores():void{
var _local1:MovieClip;
var _local2:int;
_local1 = Util.getDO(Assets.HIGHSCORES_SCREEN);
_local2 = 10;
while (--_local2 >= 0) {
_local1[((s1 + (_local2 + 1)) + s7)] = -1;
_local1[((s1 + (_local2 + 1)) + s8)] = "";
_local1[((s1 + (_local2 + 1)) + s9)] = "";
_local1[((s1 + (_local2 + 1)) + s10)] = "";
_local1[((s1 + (_local2 + 1)) + s11)] = "";
_local1[((s1 + (_local2 + 1)) + s12)] = "";
_local1[((s2 + (_local2 + 1)) + s7)] = -1;
_local1[((s2 + (_local2 + 1)) + s8)] = "";
_local1[((s2 + (_local2 + 1)) + s9)] = "";
_local1[((s2 + (_local2 + 1)) + s10)] = "";
_local1[((s2 + (_local2 + 1)) + s11)] = "";
_local1[((s2 + (_local2 + 1)) + s12)] = "";
_local1[((s3 + (_local2 + 1)) + s7)] = -1;
_local1[((s3 + (_local2 + 1)) + s8)] = "";
_local1[((s3 + (_local2 + 1)) + s9)] = "";
_local1[((s3 + (_local2 + 1)) + s10)] = "";
_local1[((s3 + (_local2 + 1)) + s11)] = "";
_local1[((s3 + (_local2 + 1)) + s12)] = "";
_local1[(("player" + (_local2 + 1)) + "_highlight_mc")].gotoAndStop(Assets.IDLE_LABEL);
};
_local1[(s4 + s7)] = -1;
_local1[(s4 + s8)] = "";
_local1[(s4 + s9)] = "";
_local1[(s4 + s10)] = "";
_local1[(s4 + s11)] = "";
_local1[(s4 + s12)] = "";
_local1["all_time_hero_highlight_mc"].gotoAndStop(Assets.IDLE_LABEL);
_local1[(s5 + s7)] = -1;
_local1[(s5 + s8)] = "";
_local1[(s5 + s9)] = "";
_local1[(s5 + s10)] = "";
_local1[(s5 + s11)] = "";
_local1[(s5 + s12)] = "";
_local1["monthly_star_highlight_mc"].gotoAndStop(Assets.IDLE_LABEL);
_local1[(s6 + s7)] = -1;
_local1[(s6 + s8)] = "";
_local1[(s6 + s9)] = "";
_local1[(s6 + s10)] = "";
_local1[(s6 + s11)] = "";
_local1[(s6 + s12)] = "";
_local1["day_worker_highlight_mc"].gotoAndStop(Assets.IDLE_LABEL);
if (_local1.activeHighlight0 != null){
_local1.activeHighlight0.gotoAndStop(Assets.IDLE_LABEL);
_local1.activeHighlight0 = null;
};
if (_local1.activeHighlight1 != null){
_local1.activeHighlight1.gotoAndStop(Assets.IDLE_LABEL);
_local1.activeHighlight1 = null;
};
if (_local1.activeHighlight2 != null){
_local1.activeHighlight2.gotoAndStop(Assets.IDLE_LABEL);
_local1.activeHighlight2 = null;
};
if (_local1.activeHighlight3 != null){
_local1.activeHighlight3.gotoAndStop(Assets.IDLE_LABEL);
_local1.activeHighlight3 = null;
};
}
public static function showOptions(_arg1:Object):void{
var _local2:int;
var _local3:String;
removeDelayedClick(Assets.LIVES_OUT_SCREEN, showOptions);
_local2 = Util.getDO(Assets.LIVES_OUT_SCREEN).totalsTotal;
_local3 = Assets.IDLE_LABEL;
if (_local2 >= LevelManager.LOW_SCORE_THRESHOLD){
_local3 = Assets.LOW_SCORE_LABEL;
};
if (_local2 >= LevelManager.AVERAGE_SCORE_THRESHOLD){
_local3 = Assets.AVERAGE_SCORE_LABEL;
};
if (_local2 >= LevelManager.GOOD_SCORE_THRESHOLD){
_local3 = Assets.GOOD_SCORE_LABEL;
};
Util.bringToFront(Assets.LIVES_OUT_SCREEN);
Util.mcGotoAndStop(Assets.LIVES_OUT_SCREEN, _local3);
}
public static function showHighscores_(_arg1:Event):void{
var _local2:int;
var _local3:Timer;
_local2 = (getTimer() - Util.getDO(Assets.HIGHSCORES_SCREEN).lastRequestTime);
if (_local2 < CONNECTION_TASK_MINIMUM_DELAY){
_local3 = new Timer((CONNECTION_TASK_MINIMUM_DELAY - _local2), 1);
_local3.addEventListener(TimerEvent.TIMER, showHighscores_);
_local3.start();
} else {
Util.mcGotoAndStop(Assets.CONNECTING_SCREEN, Assets.IDLE_LABEL);
Util.bringToFront(Assets.HIGHSCORES_SCREEN);
Util.mcGotoAndStop(Assets.HIGHSCORES_SCREEN, Util.getDO(Assets.HIGHSCORES_SCREEN).startLabel);
};
}
}
}//package
Section 68
//ScrumSheets (ScrumSheets)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class ScrumSheets extends MovieClip {
public function ScrumSheets(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package
Section 69
//Util (Util)
package {
import flash.display.*;
import flash.utils.*;
public class Util {
private static var theStage:Stage;
public static function mcGotoAndStop(_arg1:Object, _arg2:Object):void{
translateDO(_arg1).gotoAndStop(_arg2);
}
public static function getDO(_arg1:String):DisplayObject{
return (theStage.getChildAt(0).getChildByName(_arg1));
}
public static function setStage(_arg1:Stage):void{
theStage = _arg1;
}
public static function formatTime(_arg1:int):String{
var _local2:int;
var _local3:int;
_local2 = ((_arg1 / 60) / 1000);
_local3 = ((_arg1 / 1000) % 60);
return ((((((((_local2 < 10)) ? "0" : "" + _local2) + "' ") + ((_local3 < 10)) ? "0" : "") + _local3) + "\""));
}
public static function formatNumber(_arg1:int, _arg2:int):String{
var _local3:String;
_local3 = _arg1.toString();
while (_local3.length < _arg2) {
_local3 = ("0" + _local3);
};
return (_local3);
}
public static function addToStage(_arg1:DisplayObject):void{
theStage.getChildAt(0).addChild(_arg1);
}
public static function mcGotoAndPlay(_arg1:Object, _arg2:Object):void{
translateDO(_arg1).gotoAndPlay(_arg2);
}
public static function translateDO(_arg1:Object):DisplayObject{
var _local2:DisplayObject;
if (getQualifiedClassName(_arg1) == "String"){
_local2 = getDO(_arg1);
} else {
_local2 = _arg1;
};
return (_local2);
}
public static function define(_arg1):Object{
if ((((_arg1 == undefined)) || ((_arg1 == null)))){
return ("");
};
return (_arg1);
}
public static function bringToFront(_arg1:Object):void{
var _local2:DisplayObject;
if (getQualifiedClassName(_arg1) == "String"){
_local2 = getDO(_arg1);
} else {
_local2 = _arg1;
};
theStage.getChildAt(0).setChildIndex(_local2, (theStage.getChildAt(0).numChildren - 1));
}
}
}//package