Section 1
//FlashChecker (classes.gamezhero.FlashChecker)
package classes.gamezhero {
import flash.display.*;
public dynamic class FlashChecker extends MovieClip {
public var b:SimpleButton;
public function FlashChecker(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package classes.gamezhero
Section 2
//MD5 (com.gamezhero.as3.crypto.MD5)
package com.gamezhero.as3.crypto {
import com.gamezhero.as3.utils.*;
public class MD5 {
private function ff(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(f, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
private function createBlocks(_arg1:String):Array{
var _local2:Array = new Array();
var _local3:int = (_arg1.length * 8);
var _local4 = 0xFF;
var _local5:int;
while (_local5 < _local3) {
_local2[(_local5 >> 5)] = (_local2[(_local5 >> 5)] | ((_arg1.charCodeAt((_local5 / 8)) & _local4) << (_local5 % 32)));
_local5 = (_local5 + 8);
};
_local2[(_local3 >> 5)] = (_local2[(_local3 >> 5)] | (128 << (_local3 % 32)));
_local2[((((_local3 + 64) >>> 9) << 4) + 14)] = _local3;
return (_local2);
}
private function f(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 & _arg2) | (~(_arg1) & _arg3)));
}
private function hh(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(h, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
private function h(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 ^ _arg2) ^ _arg3));
}
private function i(_arg1:int, _arg2:int, _arg3:int):int{
return ((_arg2 ^ (_arg1 | ~(_arg3))));
}
private function transform(_arg1:Function, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int):int{
var _local9:int = (((_arg2 + int(_arg1(_arg3, _arg4, _arg5))) + _arg6) + _arg8);
return ((IntUtil.rol(_local9, _arg7) + _arg3));
}
private function g(_arg1:int, _arg2:int, _arg3:int):int{
return (((_arg1 & _arg3) | (_arg2 & ~(_arg3))));
}
private function ii(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(i, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
public function hash(_arg1:String):String{
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local2 = 1732584193;
var _local3 = -271733879;
var _local4 = -1732584194;
var _local5 = 271733878;
var _local10:Array = createBlocks(_arg1);
var _local11:int = _local10.length;
var _local12:int;
while (_local12 < _local11) {
_local6 = _local2;
_local7 = _local3;
_local8 = _local4;
_local9 = _local5;
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 0)], 7, -680876936);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 1)], 12, -389564586);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 2)], 17, 606105819);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 3)], 22, -1044525330);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 4)], 7, -176418897);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 5)], 12, 1200080426);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 6)], 17, -1473231341);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 7)], 22, -45705983);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 8)], 7, 1770035416);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 9)], 12, -1958414417);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 10)], 17, -42063);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 11)], 22, -1990404162);
_local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 12)], 7, 1804603682);
_local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 13)], 12, -40341101);
_local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 14)], 17, -1502002290);
_local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 15)], 22, 1236535329);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 1)], 5, -165796510);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 6)], 9, -1069501632);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 11)], 14, 643717713);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 0)], 20, -373897302);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 5)], 5, -701558691);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 10)], 9, 38016083);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 15)], 14, -660478335);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 4)], 20, -405537848);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 9)], 5, 568446438);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 14)], 9, -1019803690);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 3)], 14, -187363961);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 8)], 20, 1163531501);
_local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 13)], 5, -1444681467);
_local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 2)], 9, -51403784);
_local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 7)], 14, 1735328473);
_local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 12)], 20, -1926607734);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 5)], 4, -378558);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 8)], 11, -2022574463);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 11)], 16, 1839030562);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 14)], 23, -35309556);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 1)], 4, -1530992060);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 4)], 11, 1272893353);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 7)], 16, -155497632);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 10)], 23, -1094730640);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 13)], 4, 681279174);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 0)], 11, -358537222);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 3)], 16, -722521979);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 6)], 23, 76029189);
_local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 9)], 4, -640364487);
_local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 12)], 11, -421815835);
_local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 15)], 16, 530742520);
_local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 2)], 23, -995338651);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 0)], 6, -198630844);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 7)], 10, 1126891415);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 14)], 15, -1416354905);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 5)], 21, -57434055);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 12)], 6, 1700485571);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 3)], 10, -1894986606);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 10)], 15, -1051523);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 1)], 21, -2054922799);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 8)], 6, 1873313359);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 15)], 10, -30611744);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 6)], 15, -1560198380);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 13)], 21, 1309151649);
_local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 4)], 6, -145523070);
_local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 11)], 10, -1120210379);
_local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 2)], 15, 718787259);
_local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 9)], 21, -343485551);
_local2 = (_local2 + _local6);
_local3 = (_local3 + _local7);
_local4 = (_local4 + _local8);
_local5 = (_local5 + _local9);
_local12 = (_local12 + 16);
};
return ((((IntUtil.toHex(_local2) + IntUtil.toHex(_local3)) + IntUtil.toHex(_local4)) + IntUtil.toHex(_local5)));
}
private function gg(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (transform(g, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
}
}//package com.gamezhero.as3.crypto
Section 3
//ClassLoader (com.gamezhero.as3.utils.ClassLoader)
package com.gamezhero.as3.utils {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.system.*;
public class ClassLoader extends EventDispatcher {
private var swfLib:String;
private var request:URLRequest;
private var loadedClass:Class;
private var loader:Loader;
public static var CLASS_LOADED:String = "classLoaded";
public static var LOAD_ERROR:String = "loadError";
public function ClassLoader(){
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
}
public function getClass(_arg1:String):Class{
var className = _arg1;
try {
return ((loader.contentLoaderInfo.applicationDomain.getDefinition(className) as Class));
} catch(e:Error) {
trace("ERROR");
};
return (null);
}
private function ioErrorHandler(_arg1:Event):void{
dispatchEvent(new Event(ClassLoader.LOAD_ERROR));
}
private function securityErrorHandler(_arg1:Event):void{
dispatchEvent(new Event(ClassLoader.LOAD_ERROR));
}
private function completeHandler(_arg1:Event):void{
dispatchEvent(new Event(ClassLoader.CLASS_LOADED));
}
public function load(_arg1:String):void{
swfLib = _arg1;
request = new URLRequest(swfLib);
var _local2:LoaderContext = new LoaderContext();
_local2.applicationDomain = new ApplicationDomain();
loader.load(request, _local2);
}
}
}//package com.gamezhero.as3.utils
Section 4
//IntUtil (com.gamezhero.as3.utils.IntUtil)
package com.gamezhero.as3.utils {
public class IntUtil {
private static var hexChars:String = "0123456789abcdef";
public static function toHex(_arg1:int, _arg2:Boolean=false):String{
var _local4:int;
var _local5:int;
var _local3 = "";
if (_arg2){
_local4 = 0;
while (_local4 < 4) {
_local3 = (_local3 + (hexChars.charAt(((_arg1 >> (((3 - _local4) * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> ((3 - _local4) * 8)) & 15))));
_local4++;
};
} else {
_local5 = 0;
while (_local5 < 4) {
_local3 = (_local3 + (hexChars.charAt(((_arg1 >> ((_local5 * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> (_local5 * 8)) & 15))));
_local5++;
};
};
return (_local3);
}
public static function ror(_arg1:int, _arg2:int):uint{
var _local3:int = (32 - _arg2);
return (((_arg1 << _local3) | (_arg1 >>> (32 - _local3))));
}
public static function rol(_arg1:int, _arg2:int):int{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
}
}//package com.gamezhero.as3.utils
Section 5
//GamePreloader (com.gamezhero.as3.GamePreloader)
package com.gamezhero.as3 {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.ui.*;
public class GamePreloader extends MovieClip {
private var par:MovieClip;
private var urls:Dictionary;
public var bg:MovieClip;
public var intro:MovieClip;
private var align_old:String;
private var rate_old:Number;
private var scale_old:String;
private var obj:Object;
public static const finish:String = "PRELOAD_COMPLETE";
public function GamePreloader(_arg1:MovieClip, _arg2:Object){
var _local5:String;
var _local6:ContextMenuItem;
urls = new Dictionary();
super();
obj = _arg2;
par = _arg1;
par.addChild(this);
stage.addEventListener(Event.RESIZE, resizeStage);
this.addEventListener(Event.ENTER_FRAME, iniPreloader);
scale_old = stage.scaleMode;
align_old = stage.align;
rate_old = stage.frameRate;
trace(scale_old, align_old);
resizeStage(null);
var _local3:ContextMenu = new ContextMenu();
_local3.hideBuiltInItems();
var _local4:ContextMenuBuiltInItems = _local3.builtInItems;
for (_local5 in _arg2.gamezhero_menu) {
_local6 = new ContextMenuItem(_local5);
_local6.caption = _local5;
urls[_local6] = _arg2.gamezhero_menu[_local5];
_local6.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, getURLContextMenu);
_local3.customItems.push(_local6);
};
par.loaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
par.loaderInfo.addEventListener(Event.COMPLETE, comp);
this.parent.contextMenu = _local3;
this.addEventListener(MouseEvent.MOUSE_DOWN, getURLPreloader);
this.useHandCursor = true;
this.buttonMode = true;
}
public function ioErrorHandler(_arg1:Event):void{
}
public function resizeStage(_arg1:Event):void{
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.frameRate = 20;
this["bg"].width = Math.round(stage.stageWidth);
this["bg"].height = Math.round(stage.stageHeight);
this["intro"].x = Math.round((stage.stageWidth / 2));
this["intro"].y = Math.round((stage.stageHeight / 2));
}
public function getURLContextMenu(_arg1:ContextMenuEvent=null):void{
getURL(urls[_arg1.target]);
}
public function comp(_arg1:Event=null):void{
}
public function iniPreloader(_arg1:Event):void{
var _local2:Number = (-128 + (132 * (par.loaderInfo.bytesLoaded / par.loaderInfo.bytesTotal)));
this["intro"]["pr"]["begun"].x = (this["intro"]["pr"]["begun"].x - ((this["intro"]["pr"]["begun"].x - _local2) / 5));
if (par.loaderInfo.bytesLoaded != par.loaderInfo.bytesTotal){
if (this["intro"].currentLabel == "stopFrame"){
this["intro"].stop();
};
} else {
if (this["intro"].currentLabel == "stopFrame"){
this["intro"].play();
};
if (this["intro"].currentFrame == this["intro"].totalFrames){
this["intro"].stop();
action();
};
if (obj.debug){
action();
};
};
}
public function getURL(_arg1:String):void{
var _local2:URLRequest = new URLRequest(_arg1);
navigateToURL(_local2, "_blank");
}
public function action(_arg1:Event=null):void{
stage.scaleMode = scale_old;
stage.align = align_old;
stage.frameRate = rate_old;
this.removeEventListener(Event.ENTER_FRAME, iniPreloader);
stage.removeEventListener(Event.RESIZE, resizeStage);
par.loaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
par.loaderInfo.removeEventListener(Event.COMPLETE, comp);
var _local2:Event = new Event(finish);
this.dispatchEvent(_local2);
par.removeChild(this);
}
public function getURLPreloader(_arg1:MouseEvent=null):void{
getURL(obj.gamezhero_url);
}
}
}//package com.gamezhero.as3
Section 6
//SubmitArea (com.gamezhero.as3.SubmitArea)
package com.gamezhero.as3 {
import flash.events.*;
import flash.display.*;
import com.gamezhero.as3.crypto.*;
import com.gamezhero.as3.utils.*;
import flash.text.*;
import flash.system.*;
public class SubmitArea extends MovieClip {
private var score_value:Number;// = 0
private var scoreLibrary:ClassLoader;
private var x_pos:Number;// = 0
private var y_pos:Number;// = 0
private var score;
private var goal:MovieClip;
private var language:String;
public var versionGame:String;// = "1.0"
public var secret:MD5;
private var infoText:TextField;
public static const CONTINUE:String = "gamezhero_continue";
public static const SUBMITED:String = "gamezhero_submited";
public function SubmitArea(_arg1:MovieClip, _arg2:int, _arg3:int, _arg4:Number, _arg5:Array, _arg6:String="ENG"){
x_pos = _arg2;
y_pos = _arg3;
goal = _arg1;
score_value = _arg4;
language = _arg6;
Security.allowDomain("www.gamezhero.com", "gamezhero.com", "files.gamezhero.com", "*.gamezhero.com");
secret = new MD5();
scoreLibrary = new ClassLoader();
scoreLibrary.addEventListener(ClassLoader.LOAD_ERROR, loadErrorHandler);
scoreLibrary.addEventListener(ClassLoader.CLASS_LOADED, classLoadedHandler);
var _local7 = "";
var _local8:uint;
while (_local8 < _arg5.length) {
_local7 = (_local7 + String.fromCharCode(_arg5[_local8]));
_local8++;
};
trace(_local7);
scoreLibrary.load(_local7);
createIniText();
infoText.text = "loading score...";
goal.addChild(this);
}
public function diactivateAllEvents():void{
scoreLibrary.removeEventListener(ClassLoader.LOAD_ERROR, loadErrorHandler);
scoreLibrary.removeEventListener(ClassLoader.CLASS_LOADED, classLoadedHandler);
}
public function createIniText():void{
infoText = new TextField();
infoText.autoSize = TextFieldAutoSize.LEFT;
var _local1:TextFormat = new TextFormat();
_local1.color = 0;
_local1.size = 11;
_local1.font = "Arial";
infoText.defaultTextFormat = _local1;
this.addChild(infoText);
infoText.x = 10;
infoText.y = 10;
}
public function loadErrorHandler(_arg1:Event=null):void{
(infoText as TextField).text = "error loading";
}
public function classLoadedHandler(_arg1:Event=null):void{
this.x = x_pos;
this.y = y_pos;
(infoText as TextField).text = "";
var _local2:Class = scoreLibrary.getClass("Score");
score = new _local2((this as MovieClip), null, score_value, language);
this.addChild(score);
}
public function submitAction(_arg1:String=""):void{
diactivateAllEvents();
goal.removeChild(this);
dispatchEvent(new Event(SUBMITED));
}
public function continueAction():void{
diactivateAllEvents();
goal.removeChild(this);
dispatchEvent(new Event(CONTINUE));
}
}
}//package com.gamezhero.as3
Section 7
//AdjustColor (fl.motion.AdjustColor)
package fl.motion {
public class AdjustColor {
private var m_brightnessMatrix:ColorMatrix;
private var m_saturationMatrix:ColorMatrix;
private var m_hueMatrix:ColorMatrix;
private var m_finalMatrix:ColorMatrix;
private var m_contrastMatrix:ColorMatrix;
private static var s_arrayOfDeltaIndex:Array = [0, 0.01, 0.02, 0.04, 0.05, 0.06, 0.07, 0.08, 0.1, 0.11, 0.12, 0.14, 0.15, 0.16, 0.17, 0.18, 0.2, 0.21, 0.22, 0.24, 0.25, 0.27, 0.28, 0.3, 0.32, 0.34, 0.36, 0.38, 0.4, 0.42, 0.44, 0.46, 0.48, 0.5, 0.53, 0.56, 0.59, 0.62, 0.65, 0.68, 0.71, 0.74, 0.77, 0.8, 0.83, 0.86, 0.89, 0.92, 0.95, 0.98, 1, 1.06, 1.12, 1.18, 1.24, 1.3, 1.36, 1.42, 1.48, 1.54, 1.6, 1.66, 1.72, 1.78, 1.84, 1.9, 1.96, 2, 2.12, 2.25, 2.37, 2.5, 2.62, 2.75, 2.87, 3, 3.2, 3.4, 3.6, 3.8, 4, 4.3, 4.7, 4.9, 5, 5.5, 6, 6.5, 6.8, 7, 7.3, 7.5, 7.8, 8, 8.4, 8.7, 9, 9.4, 9.6, 9.8, 10];
private function CalculateFinalMatrix():Boolean{
if (!this.AllValuesAreSet()){
return (false);
};
this.m_finalMatrix = new ColorMatrix();
this.m_finalMatrix.Multiply(this.m_brightnessMatrix);
this.m_finalMatrix.Multiply(this.m_contrastMatrix);
this.m_finalMatrix.Multiply(this.m_saturationMatrix);
this.m_finalMatrix.Multiply(this.m_hueMatrix);
return (true);
}
public function set brightness(_arg1:Number):void{
if (this.m_brightnessMatrix == null){
this.m_brightnessMatrix = new ColorMatrix();
};
if (_arg1 != 0){
this.m_brightnessMatrix.SetBrightnessMatrix(_arg1);
};
}
public function set contrast(_arg1:Number):void{
var _local2:Number = _arg1;
if (_arg1 == 0){
_local2 = 127;
} else {
if (_arg1 > 0){
_local2 = ((s_arrayOfDeltaIndex[int(_arg1)] * 127) + 127);
} else {
_local2 = (((_arg1 / 100) * 127) + 127);
};
};
if (this.m_contrastMatrix == null){
this.m_contrastMatrix = new ColorMatrix();
};
this.m_contrastMatrix.SetContrastMatrix(_local2);
}
public function set hue(_arg1:Number):void{
if (this.m_hueMatrix == null){
this.m_hueMatrix = new ColorMatrix();
};
if (_arg1 != 0){
this.m_hueMatrix.SetHueMatrix(((_arg1 * Math.PI) / 180));
};
}
public function CalculateFinalFlatArray():Array{
if (this.CalculateFinalMatrix()){
return (this.m_finalMatrix.GetFlatArray());
};
return (null);
}
public function AllValuesAreSet():Boolean{
return (((((((this.m_brightnessMatrix) && (this.m_contrastMatrix))) && (this.m_saturationMatrix))) && (this.m_hueMatrix)));
}
public function set saturation(_arg1:Number):void{
var _local2:Number = _arg1;
if (_arg1 == 0){
_local2 = 1;
} else {
if (_arg1 > 0){
_local2 = (1 + ((3 * _arg1) / 100));
} else {
_local2 = ((_arg1 / 100) + 1);
};
};
if (this.m_saturationMatrix == null){
this.m_saturationMatrix = new ColorMatrix();
};
this.m_saturationMatrix.SetSaturationMatrix(_local2);
}
}
}//package fl.motion
Section 8
//Animator (fl.motion.Animator)
package fl.motion {
import flash.geom.*;
import flash.display.*;
public class Animator extends AnimatorBase {
public function Animator(_arg1:XML=null, _arg2:DisplayObject=null){
this.motion = new Motion(_arg1);
super(_arg1, _arg2);
}
override protected function setTimeClassic(_arg1:int, _arg2:MotionBase, _arg3:KeyframeBase):Boolean{
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Matrix;
var _local21:Number;
var _local4:Motion = (_arg2 as Motion);
if (!_local4){
return (false);
};
var _local5:Number = _local4.getValue(_arg1, Tweenables.X);
var _local6:Number = _local4.getValue(_arg1, Tweenables.Y);
var _local7:Point = new Point(_local5, _local6);
if (this.positionMatrix){
_local7 = this.positionMatrix.transformPoint(_local7);
};
_local7.x = (_local7.x + this.targetState.x);
_local7.y = (_local7.y + this.targetState.y);
var _local8:Number = (_local4.getValue(_arg1, Tweenables.SCALE_X) * this.targetState.scaleX);
var _local9:Number = (_local4.getValue(_arg1, Tweenables.SCALE_Y) * this.targetState.scaleY);
var _local10:Number = 0;
var _local11:Number = 0;
if (this.orientToPath){
_local17 = _local4.getValue((_arg1 + 1), Tweenables.X);
_local18 = _local4.getValue((_arg1 + 1), Tweenables.Y);
_local19 = (Math.atan2((_local18 - _local6), (_local17 - _local5)) * (180 / Math.PI));
if (!isNaN(_local19)){
_local10 = (_local19 + this.targetState.skewX);
_local11 = (_local19 + this.targetState.skewY);
};
} else {
_local10 = (_local4.getValue(_arg1, Tweenables.SKEW_X) + this.targetState.skewX);
_local11 = (_local4.getValue(_arg1, Tweenables.SKEW_Y) + this.targetState.skewY);
};
var _local12:Matrix = new Matrix((_local8 * Math.cos((_local11 * (Math.PI / 180)))), (_local8 * Math.sin((_local11 * (Math.PI / 180)))), (-(_local9) * Math.sin((_local10 * (Math.PI / 180)))), (_local9 * Math.cos((_local10 * (Math.PI / 180)))), 0, 0);
var _local13:Boolean;
if (_local4.useRotationConcat(_arg1)){
_local20 = new Matrix();
_local21 = _local4.getValue(_arg1, Tweenables.ROTATION_CONCAT);
_local20.rotate(_local21);
_local12.concat(_local20);
_local13 = true;
};
_local12.tx = _local7.x;
_local12.ty = _local7.y;
var _local14:Point = _local12.transformPoint(this.targetState.transformPointInternal);
var _local15:Number = (_local12.tx - _local14.x);
var _local16:Number = (_local12.ty - _local14.y);
_local12.tx = (_local12.tx + _local15);
_local12.ty = (_local12.ty + _local16);
if (!_local13){
this._target.rotation = _local11;
};
this._target.transform.matrix = _local12;
if (((((_local13) && ((this._target.scaleX == 0)))) && ((this._target.scaleY == 0)))){
this._target.scaleX = _local8;
this._target.scaleY = _local9;
};
this._target.cacheAsBitmap = _arg3.cacheAsBitmap;
return (true);
}
override public function set motion(_arg1:MotionBase):void{
super.motion = _arg1;
var _local2:Motion = (_arg1 as Motion);
if (((((_local2) && (_local2.source))) && (_local2.source.transformationPoint))){
this.transformationPoint = _local2.source.transformationPoint.clone();
};
}
override protected function setTargetState():void{
var _local2:Number;
var _local3:Number;
var _local4:Point;
this.targetState.scaleX = this._target.scaleX;
this.targetState.scaleY = this._target.scaleY;
this.targetState.skewX = MatrixTransformer.getSkewX(this._target.transform.matrix);
this.targetState.skewY = MatrixTransformer.getSkewY(this._target.transform.matrix);
var _local1:Object = (this.targetState.bounds = this._target.getBounds(this._target));
if (this.transformationPoint){
_local2 = ((this.transformationPoint.x * _local1.width) + _local1.left);
_local3 = ((this.transformationPoint.y * _local1.height) + _local1.top);
this.targetState.transformPointInternal = new Point(_local2, _local3);
_local4 = this._target.transform.matrix.transformPoint(this.targetState.transformPointInternal);
this.targetState.x = _local4.x;
this.targetState.y = _local4.y;
} else {
this.targetState.transformPointInternal = new Point(0, 0);
this.targetState.x = this._target.x;
this.targetState.y = this._target.y;
};
this.targetState.z = 0;
this.targetState.rotationX = (this.targetState.rotationY = 0);
}
public static function fromXMLString(_arg1:String, _arg2:DisplayObject=null):Animator{
return (new Animator(new XML(_arg1), _arg2));
}
}
}//package fl.motion
Section 9
//AnimatorBase (fl.motion.AnimatorBase)
package fl.motion {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.utils.*;
public class AnimatorBase extends EventDispatcher {
public var transformationPoint:Point;
protected var targetState:Object;
private var _isPlaying:Boolean;// = false
private var _time:int;// = -1
protected var _target:DisplayObject;
public var repeatCount:int;// = 1
private var _lastRenderedTime:int;// = -1
private var _spanStart:int;// = -1
public var transformationPointZ:int;
protected var _isAnimator3D:Boolean;
private var _sceneName:String;// = ""
public var positionMatrix:Matrix;
private var _frameEvent:String;// = "enterFrame"
public var autoRewind:Boolean;// = false
private var _motion:MotionBase;
private var _targetName:String;// = ""
private var _useCurrentFrame:Boolean;// = false
private var playCount:int;// = 0
public var orientToPath:Boolean;// = false
private var targetStateOriginal:Object;// = null
private var _targetState3D:Array;// = null
private var _targetParent:DisplayObjectContainer;// = null
private static var _registeredParents:Dictionary = new Dictionary(true);
private static var enterFrameBeacon:MovieClip = new MovieClip();
public function AnimatorBase(_arg1:XML=null, _arg2:DisplayObject=null){
this.target = _arg2;
this._isAnimator3D = false;
this.transformationPoint = new Point(0.5, 0.5);
this.transformationPointZ = 0;
this._sceneName = "";
}
protected function setTime3D(_arg1:int, _arg2:MotionBase):Boolean{
return (false);
}
private function handleLastFrame(_arg1:Boolean=false, _arg2:Boolean=true):void{
this.playCount++;
if ((((this.repeatCount == 0)) || ((this.playCount < this.repeatCount)))){
this.rewind();
} else {
this.end(_arg1, _arg2);
};
}
public function get targetState3D():Array{
return (this._targetState3D);
}
public function get target():DisplayObject{
return (this._target);
}
private function get enterFrameHandler():Function{
if (AnimatorBase.hasRegisteredParents){
return (AnimatorBase.parentEnterFrameHandler);
};
return (this.handleEnterFrame);
}
public function get usingCurrentFrame():Boolean{
return (this._useCurrentFrame);
}
public function set initialPosition(_arg1:Array):void{
}
public function useCurrentFrame(_arg1:Boolean, _arg2:int):void{
this._useCurrentFrame = _arg1;
this._spanStart = _arg2;
}
public function set time(_arg1:int):void{
var _local5:ColorTransform;
var _local6:Array;
if (_arg1 == this._time){
return;
};
var _local2:MotionBase = this.motion;
if (_arg1 > (_local2.duration - 1)){
_arg1 = (_local2.duration - 1);
} else {
if (_arg1 < 0){
_arg1 = 0;
};
};
this._time = _arg1;
this.dispatchEvent(new MotionEvent(MotionEvent.TIME_CHANGE));
var _local3:KeyframeBase = _local2.getCurrentKeyframe(_arg1);
var _local4:Boolean = (((_local3.index == this._lastRenderedTime)) && (!(_local3.tweensLength)));
if (_local4){
return;
};
this._target.visible = false;
if (!_local3.blank){
if (this._isAnimator3D){
this.setTime3D(_arg1, _local2);
} else {
this.setTimeClassic(_arg1, _local2, _local3);
};
_local5 = _local2.getColorTransform(_arg1);
if (_local5){
this._target.transform.colorTransform = _local5;
};
_local6 = _local2.getFilters(_arg1);
if (_local6){
this._target.filters = _local6;
};
this._target.blendMode = _local3.blendMode;
this._target.visible = true;
};
this._lastRenderedTime = this._time;
this.dispatchEvent(new MotionEvent(MotionEvent.MOTION_UPDATE));
}
public function set target(_arg1:DisplayObject):void{
if (!_arg1){
return;
};
this._target = _arg1;
var _local2:Boolean;
if (((this.targetParent) && (!((this.targetName == ""))))){
if (this.targetStateOriginal){
this.targetState = this.targetStateOriginal;
return;
};
_local2 = true;
};
this.targetState = {};
this.setTargetState();
if (_local2){
this.targetStateOriginal = this.targetState;
};
}
public function get isPlaying():Boolean{
return (this._isPlaying);
}
public function startFrameEvents():void{
enterFrameBeacon.addEventListener(this.frameEvent, this.enterFrameHandler, false, 0, true);
}
public function get frameEvent():String{
return (this._frameEvent);
}
public function stop():void{
enterFrameBeacon.removeEventListener(this.frameEvent, this.enterFrameHandler);
this._isPlaying = false;
this.playCount = 0;
this.rewind();
this.dispatchEvent(new MotionEvent(MotionEvent.MOTION_END));
}
public function get spanEnd():int{
if (((this._motion) && ((this._motion.duration > 0)))){
return (((this._spanStart + this._motion.duration) - 1));
};
return (this._spanStart);
}
public function get targetParent():DisplayObjectContainer{
return (this._targetParent);
}
public function get spanStart():int{
return (this._spanStart);
}
public function play(_arg1:int=-1, _arg2:Boolean=true):void{
if (!this._isPlaying){
if ((((((this._target == null)) && (this._targetParent))) && (!((this._targetName == ""))))){
this.target = this._targetParent[this._targetName];
if (!this.target){
this.target = this._targetParent.getChildByName(this._targetName);
};
};
if (_arg2){
enterFrameBeacon.addEventListener(this.frameEvent, this.enterFrameHandler, false, 0, true);
};
if (!this.target){
return;
};
this._isPlaying = true;
};
this.playCount = 0;
if (_arg1 > -1){
this.time = _arg1;
} else {
this.rewind();
};
this.dispatchEvent(new MotionEvent(MotionEvent.MOTION_START));
}
public function get targetName():String{
return (this._targetName);
}
public function set targetParent(_arg1:DisplayObjectContainer):void{
this._targetParent = _arg1;
}
protected function setTargetState():void{
}
protected function setTimeClassic(_arg1:int, _arg2:MotionBase, _arg3:KeyframeBase):Boolean{
return (false);
}
private function handleEnterFrame(_arg1:Event):void{
this.nextFrame();
}
public function get motion():MotionBase{
return (this._motion);
}
public function get sceneName():String{
return (this._sceneName);
}
public function nextFrame():void{
if (this.time >= (this.motion.duration - 1)){
this.handleLastFrame();
} else {
this.time++;
};
}
public function get time():int{
return (this._time);
}
public function resume():void{
enterFrameBeacon.addEventListener(this.frameEvent, this.enterFrameHandler, false, 0, true);
this._isPlaying = true;
}
public function rewind():void{
this.time = 0;
}
public function set frameEvent(_arg1:String):void{
this._frameEvent = _arg1;
}
public function set targetState3D(_arg1:Array):void{
this._targetState3D = _arg1;
}
public function end(_arg1:Boolean=false, _arg2:Boolean=true):void{
if (_arg2){
enterFrameBeacon.removeEventListener(this.frameEvent, this.enterFrameHandler);
};
this._isPlaying = false;
this.playCount = 0;
if (this.autoRewind){
this.rewind();
} else {
if (this.time != (this.motion.duration - 1)){
this.time = (this.motion.duration - 1);
};
};
if (_arg1){
if (((this._targetParent) && (!((this._targetName == ""))))){
this._target = null;
};
this._lastRenderedTime = -1;
this._time = -1;
};
this.dispatchEvent(new MotionEvent(MotionEvent.MOTION_END));
}
public function set motion(_arg1:MotionBase):void{
this._motion = _arg1;
}
public function set sceneName(_arg1:String):void{
this._sceneName = _arg1;
}
public function pause():void{
enterFrameBeacon.removeEventListener(this.frameEvent, this.enterFrameHandler);
this._isPlaying = false;
}
public function set targetName(_arg1:String):void{
this._targetName = _arg1;
}
public static function processCurrentFrame(_arg1:MovieClip, _arg2:AnimatorBase, _arg3:Boolean, _arg4:Boolean=false):void{
var _local5:int;
var _local6:int;
if (((_arg2) && (_arg1))){
if (!_arg1.root){
if (((((_arg2.usingCurrentFrame) && (!(_arg2.isPlaying)))) && (_arg4))){
_arg2.startFrameEvents();
};
return;
};
if (_arg2.usingCurrentFrame){
_local5 = (_arg1.currentFrame - 1);
if (_arg1.scenes.length > 1){
if (_arg1.currentScene.name != _arg2.sceneName){
_local5 = -1;
};
};
if ((((_local5 >= _arg2.spanStart)) && ((_local5 <= _arg2.spanEnd)))){
_local6 = (_local5 - _arg2.spanStart);
if (!_arg2.isPlaying){
_arg2.play(_local6, _arg3);
} else {
if (!_arg4){
if (_local5 == _arg2.spanEnd){
_arg2.handleLastFrame(true, false);
} else {
_arg2.time = _local6;
};
};
};
} else {
if (((_arg2.isPlaying) && (!(_arg4)))){
_arg2.end(true, false);
} else {
if (((!(_arg2.isPlaying)) && (_arg4))){
_arg2.startFrameEvents();
};
};
};
} else {
if (((((_arg2.targetParent) && ((_arg2.targetParent[_arg2.targetName] == null)))) && ((_arg2.targetParent.getChildByName(_arg2.targetName) == null)))){
if (_arg2.isPlaying){
_arg2.end(true, false);
} else {
if (_arg4){
_arg2.startFrameEvents();
};
};
} else {
if (!_arg2.isPlaying){
_arg2.play(0, _arg3);
} else {
if (!_arg4){
_arg2.nextFrame();
};
};
};
};
};
}
public static function registerParentFrameHandler(_arg1:MovieClip, _arg2:AnimatorBase, _arg3:int, _arg4:int=0, _arg5:Boolean=false):void{
var _local6:AnimatorParent = (_registeredParents[_arg1] as AnimatorParent);
if (_local6 == null){
_local6 = new AnimatorParent();
_local6.parent = _arg1;
_registeredParents[_arg1] = _local6;
};
if (_arg3 == -1){
_arg3 = (_arg1.currentFrame - 1);
};
if (_arg5){
_arg2.useCurrentFrame(true, _arg3);
} else {
_arg2.repeatCount = _arg4;
};
_local6.animators.push(_arg2);
}
private static function parentEnterFrameHandler(_arg1:Event):void{
var _local2:*;
var _local3:AnimatorParent;
var _local4:MovieClip;
var _local5:Array;
var _local6:int;
var _local7:AnimatorBase;
for (_local2 in _registeredParents) {
_local3 = (_registeredParents[_local2] as AnimatorParent);
if (!_local3){
} else {
_local4 = _local3.parent;
_local5 = _local3.animators;
if (((!(_local4)) || (!(_local5)))){
} else {
_local6 = 0;
while (_local6 < _local5.length) {
_local7 = (_local5[_local6] as AnimatorBase);
if (((!(_local7.usingCurrentFrame)) || (!((_local4.currentFrame == _local3.lastFrameHandled))))){
processCurrentFrame(_local4, _local7, false);
};
_local6++;
};
_local3.lastFrameHandled = _local4.currentFrame;
};
};
};
}
public static function registerButtonState(_arg1:SimpleButton, _arg2:AnimatorBase, _arg3:int):void{
var _local4:DisplayObject = _arg1.upState;
switch (_arg3){
case 1:
_local4 = _arg1.overState;
break;
case 2:
_local4 = _arg1.downState;
break;
case 3:
_local4 = _arg1.hitTestState;
break;
};
if (!_local4){
return;
};
_arg2.target = _local4;
_arg2.time = 0;
}
private static function get hasRegisteredParents():Boolean{
var _local1:*;
for (_local1 in _registeredParents) {
return (true);
};
return (false);
}
}
}//package fl.motion
import flash.display.*;
class AnimatorParent {
public var parent:MovieClip;// = null
public var lastFrameHandled:int;// = -1
public var animators:Array;
private function AnimatorParent(){
this.animators = new Array();
super();
}
}
Section 10
//BezierEase (fl.motion.BezierEase)
package fl.motion {
import flash.geom.*;
public class BezierEase implements ITween {
public var points:Array;
private var firstNode:Point;
private var _target:String;// = ""
private var lastNode:Point;
public function BezierEase(_arg1:XML=null){
this.points = [];
this.parseXML(_arg1);
}
public function set target(_arg1:String):void{
this._target = _arg1;
}
private function parseXML(_arg1:XML=null):BezierEase{
var _local3:XML;
if (!_arg1){
return (this);
};
if (_arg1.@target.length()){
this.target = _arg1.@target;
};
var _local2:XMLList = _arg1.elements();
for each (_local3 in _local2) {
this.points.push(new Point(Number(_local3.@x), Number(_local3.@y)));
};
return (this);
}
public function get target():String{
return (this._target);
}
public function getValue(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg4 <= 0){
return (NaN);
};
var _local5:Number = (_arg1 / _arg4);
if (_local5 <= 0){
return (_arg2);
};
if (_local5 >= 1){
return ((_arg2 + _arg3));
};
this.firstNode = new Point(0, _arg2);
this.lastNode = new Point(1, (_arg2 + _arg3));
var _local6:Array = [this.firstNode].concat(this.points);
_local6.push(this.lastNode);
var _local7:Number = CustomEase.getYForPercent(_local5, _local6);
return (_local7);
}
}
}//package fl.motion
Section 11
//BezierSegment (fl.motion.BezierSegment)
package fl.motion {
import flash.geom.*;
public class BezierSegment {
public var a:Point;
public var c:Point;
public var b:Point;
public var d:Point;
public function BezierSegment(_arg1:Point, _arg2:Point, _arg3:Point, _arg4:Point){
this.a = _arg1;
this.b = _arg2;
this.c = _arg3;
this.d = _arg4;
}
public function getValue(_arg1:Number):Point{
var _local2:Number = this.a.x;
var _local3:Number = (((((_arg1 * _arg1) * (this.d.x - _local2)) + ((3 * (1 - _arg1)) * ((_arg1 * (this.c.x - _local2)) + ((1 - _arg1) * (this.b.x - _local2))))) * _arg1) + _local2);
var _local4:Number = this.a.y;
var _local5:Number = (((((_arg1 * _arg1) * (this.d.y - _local4)) + ((3 * (1 - _arg1)) * ((_arg1 * (this.c.y - _local4)) + ((1 - _arg1) * (this.b.y - _local4))))) * _arg1) + _local4);
return (new Point(_local3, _local5));
}
public function getYForX(_arg1:Number, _arg2:Array=null):Number{
var _local6:Number;
if (this.a.x < this.d.x){
if (_arg1 <= (this.a.x + 1E-16)){
return (this.a.y);
};
if (_arg1 >= (this.d.x - 1E-16)){
return (this.d.y);
};
} else {
if (_arg1 >= (this.a.x + 1E-16)){
return (this.a.y);
};
if (_arg1 <= (this.d.x - 1E-16)){
return (this.d.y);
};
};
if (!_arg2){
_arg2 = getCubicCoefficients(this.a.x, this.b.x, this.c.x, this.d.x);
};
var _local3:Array = getCubicRoots(_arg2[0], _arg2[1], _arg2[2], (_arg2[3] - _arg1));
var _local4:Number = NaN;
if (_local3.length == 0){
_local4 = 0;
} else {
if (_local3.length == 1){
_local4 = _local3[0];
} else {
for each (_local6 in _local3) {
if ((((0 <= _local6)) && ((_local6 <= 1)))){
_local4 = _local6;
break;
};
};
};
};
if (isNaN(_local4)){
return (NaN);
};
var _local5:Number = getSingleValue(_local4, this.a.y, this.b.y, this.c.y, this.d.y);
return (_local5);
}
public static function getCubicCoefficients(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Array{
return ([(((-(_arg1) + (3 * _arg2)) - (3 * _arg3)) + _arg4), (((3 * _arg1) - (6 * _arg2)) + (3 * _arg3)), ((-3 * _arg1) + (3 * _arg2)), _arg1]);
}
public static function getSingleValue(_arg1:Number, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0, _arg5:Number=0):Number{
return ((((((_arg1 * _arg1) * (_arg5 - _arg2)) + ((3 * (1 - _arg1)) * ((_arg1 * (_arg4 - _arg2)) + ((1 - _arg1) * (_arg3 - _arg2))))) * _arg1) + _arg2));
}
public static function getCubicRoots(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0):Array{
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:int;
var _local16:Number;
if (!_arg1){
return (BezierSegment.getQuadraticRoots(_arg2, _arg3, _arg4));
};
if (_arg1 != 1){
_arg2 = (_arg2 / _arg1);
_arg3 = (_arg3 / _arg1);
_arg4 = (_arg4 / _arg1);
};
var _local5:Number = (((_arg2 * _arg2) - (3 * _arg3)) / 9);
var _local6:Number = (((((_arg2 * _arg2) - (3 * _arg3)) / 9) * _local5) * _local5);
var _local7:Number = ((((((2 * _arg2) * _arg2) * _arg2) - ((9 * _arg2) * _arg3)) + (27 * _arg4)) / 54);
var _local8:Number = (_local6 - (_local7 * _local7));
if (_local8 >= 0){
if (!_local5){
return ([0]);
};
_local9 = Math.acos((_local7 / Math.sqrt(_local6)));
_local10 = Math.sqrt(_local5);
_local11 = (((-2 * _local10) * Math.cos((_local9 / 3))) - (_arg2 / 3));
_local12 = (((-2 * _local10) * Math.cos(((_local9 + (2 * Math.PI)) / 3))) - (_arg2 / 3));
_local13 = (((-2 * _local10) * Math.cos(((_local9 + (4 * Math.PI)) / 3))) - (_arg2 / 3));
return ([_local11, _local12, _local13]);
//unresolved jump
};
_local14 = Math.pow((Math.sqrt(-(_local8)) + Math.abs(_local7)), (1 / 3));
_local15 = ((_local7)>0) ? 1 : ((_local7 < 0)) ? -1 : 0;
_local16 = ((-(_local15) * (_local14 + (_local5 / _local14))) - (_arg2 / 3));
return ([_local16]);
}
public static function getQuadraticRoots(_arg1:Number, _arg2:Number, _arg3:Number):Array{
var _local7:Number;
var _local4:Array = [];
if (!_arg1){
if (!_arg2){
return ([]);
};
_local4[0] = (-(_arg3) / _arg2);
return (_local4);
};
var _local5:Number = ((_arg2 * _arg2) - ((4 * _arg1) * _arg3));
var _local6:int = ((_local5)>0) ? 1 : ((_local5 < 0)) ? -1 : 0;
if (_local6 < 0){
return ([]);
};
if (!_local6){
_local4[0] = (-(_arg2) / (2 * _arg1));
} else {
_local4[0] = (_local4[1] = (-(_arg2) / (2 * _arg1)));
_local7 = (Math.sqrt(_local5) / (2 * _arg1));
_local4[0] = (_local4[0] - _local7);
_local4[1] = (_local4[1] + _local7);
};
return (_local4);
}
}
}//package fl.motion
Section 12
//Color (fl.motion.Color)
package fl.motion {
import flash.geom.*;
import flash.display.*;
public class Color extends ColorTransform {
private var _tintColor:Number;// = 0
private var _tintMultiplier: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){
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
}
private function deriveTintColor():uint{
var _local1:Number = (1 / this.tintMultiplier);
var _local2:uint = Math.round((this.redOffset * _local1));
var _local3:uint = Math.round((this.greenOffset * _local1));
var _local4:uint = Math.round((this.blueOffset * _local1));
var _local5:uint = (((_local2 << 16) | (_local3 << 8)) | _local4);
return (_local5);
}
public function set brightness(_arg1:Number):void{
if (_arg1 > 1){
_arg1 = 1;
} else {
if (_arg1 < -1){
_arg1 = -1;
};
};
var _local2:Number = (1 - Math.abs(_arg1));
var _local3:Number = 0;
if (_arg1 > 0){
_local3 = (_arg1 * 0xFF);
};
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = _local2));
this.redOffset = (this.greenOffset = (this.blueOffset = _local3));
}
private function parseXML(_arg1:XML=null):Color{
var _local3:XML;
var _local4:String;
var _local5:uint;
if (!_arg1){
return (this);
};
var _local2:XML = _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 function get tintColor():uint{
return (this._tintColor);
}
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));
}
public function set tintMultiplier(_arg1:Number):void{
this.setTint(this.tintColor, _arg1);
}
public function get tintMultiplier():Number{
return (this._tintMultiplier);
}
public function setTint(_arg1:uint, _arg2:Number):void{
this._tintColor = _arg1;
this._tintMultiplier = _arg2;
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = (1 - _arg2)));
var _local3:uint = ((_arg1 >> 16) & 0xFF);
var _local4:uint = ((_arg1 >> 8) & 0xFF);
var _local5:uint = (_arg1 & 0xFF);
this.redOffset = Math.round((_local3 * _arg2));
this.greenOffset = Math.round((_local4 * _arg2));
this.blueOffset = Math.round((_local5 * _arg2));
}
public static function interpolateColor(_arg1:uint, _arg2:uint, _arg3:Number):uint{
var _local4:Number = (1 - _arg3);
var _local5:uint = ((_arg1 >> 24) & 0xFF);
var _local6:uint = ((_arg1 >> 16) & 0xFF);
var _local7:uint = ((_arg1 >> 8) & 0xFF);
var _local8:uint = (_arg1 & 0xFF);
var _local9:uint = ((_arg2 >> 24) & 0xFF);
var _local10:uint = ((_arg2 >> 16) & 0xFF);
var _local11:uint = ((_arg2 >> 8) & 0xFF);
var _local12:uint = (_arg2 & 0xFF);
var _local13:uint = ((_local5 * _local4) + (_local9 * _arg3));
var _local14:uint = ((_local6 * _local4) + (_local10 * _arg3));
var _local15:uint = ((_local7 * _local4) + (_local11 * _arg3));
var _local16:uint = ((_local8 * _local4) + (_local12 * _arg3));
var _local17:uint = ((((_local13 << 24) | (_local14 << 16)) | (_local15 << 8)) | _local16);
return (_local17);
}
public static function interpolateTransform(_arg1:ColorTransform, _arg2:ColorTransform, _arg3:Number):ColorTransform{
var _local4:Number = (1 - _arg3);
var _local5:ColorTransform = 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 13
//ColorMatrix (fl.motion.ColorMatrix)
package fl.motion {
public class ColorMatrix extends DynamicMatrix {
protected static const LUMINANCEB:Number = 0.082;
protected static const LUMINANCER:Number = 0.3086;
protected static const LUMINANCEG:Number = 0.6094;
public function ColorMatrix(){
super(5, 5);
LoadIdentity();
}
public function GetFlatArray():Array{
var _local4:int;
if (!m_matrix){
return (null);
};
var _local1:Array = new Array();
var _local2:int;
var _local3:int;
while (_local3 < 4) {
_local4 = 0;
while (_local4 < 5) {
_local1[_local2] = m_matrix[_local3][_local4];
_local2++;
_local4++;
};
_local3++;
};
return (_local1);
}
public function SetBrightnessMatrix(_arg1:Number):void{
if (!m_matrix){
return;
};
m_matrix[0][4] = _arg1;
m_matrix[1][4] = _arg1;
m_matrix[2][4] = _arg1;
}
public function SetContrastMatrix(_arg1:Number):void{
if (!m_matrix){
return;
};
var _local2:Number = (0.5 * (127 - _arg1));
_arg1 = (_arg1 / 127);
m_matrix[0][0] = _arg1;
m_matrix[1][1] = _arg1;
m_matrix[2][2] = _arg1;
m_matrix[0][4] = _local2;
m_matrix[1][4] = _local2;
m_matrix[2][4] = _local2;
}
public function SetHueMatrix(_arg1:Number):void{
var _local11:int;
if (!m_matrix){
return;
};
LoadIdentity();
var _local2:DynamicMatrix = new DynamicMatrix(3, 3);
var _local3:DynamicMatrix = new DynamicMatrix(3, 3);
var _local4:DynamicMatrix = new DynamicMatrix(3, 3);
var _local5:Number = Math.cos(_arg1);
var _local6:Number = Math.sin(_arg1);
var _local7:Number = 0.213;
var _local8:Number = 0.715;
var _local9:Number = 0.072;
_local2.SetValue(0, 0, _local7);
_local2.SetValue(1, 0, _local7);
_local2.SetValue(2, 0, _local7);
_local2.SetValue(0, 1, _local8);
_local2.SetValue(1, 1, _local8);
_local2.SetValue(2, 1, _local8);
_local2.SetValue(0, 2, _local9);
_local2.SetValue(1, 2, _local9);
_local2.SetValue(2, 2, _local9);
_local3.SetValue(0, 0, (1 - _local7));
_local3.SetValue(1, 0, -(_local7));
_local3.SetValue(2, 0, -(_local7));
_local3.SetValue(0, 1, -(_local8));
_local3.SetValue(1, 1, (1 - _local8));
_local3.SetValue(2, 1, -(_local8));
_local3.SetValue(0, 2, -(_local9));
_local3.SetValue(1, 2, -(_local9));
_local3.SetValue(2, 2, (1 - _local9));
_local3.MultiplyNumber(_local5);
_local4.SetValue(0, 0, -(_local7));
_local4.SetValue(1, 0, 0.143);
_local4.SetValue(2, 0, -((1 - _local7)));
_local4.SetValue(0, 1, -(_local8));
_local4.SetValue(1, 1, 0.14);
_local4.SetValue(2, 1, _local8);
_local4.SetValue(0, 2, (1 - _local9));
_local4.SetValue(1, 2, -0.283);
_local4.SetValue(2, 2, _local9);
_local4.MultiplyNumber(_local6);
_local2.Add(_local3);
_local2.Add(_local4);
var _local10:int;
while (_local10 < 3) {
_local11 = 0;
while (_local11 < 3) {
m_matrix[_local10][_local11] = _local2.GetValue(_local10, _local11);
_local11++;
};
_local10++;
};
}
public function SetSaturationMatrix(_arg1:Number):void{
if (!m_matrix){
return;
};
var _local2:Number = (1 - _arg1);
var _local3:Number = (_local2 * LUMINANCER);
m_matrix[0][0] = (_local3 + _arg1);
m_matrix[1][0] = _local3;
m_matrix[2][0] = _local3;
_local3 = (_local2 * LUMINANCEG);
m_matrix[0][1] = _local3;
m_matrix[1][1] = (_local3 + _arg1);
m_matrix[2][1] = _local3;
_local3 = (_local2 * LUMINANCEB);
m_matrix[0][2] = _local3;
m_matrix[1][2] = _local3;
m_matrix[2][2] = (_local3 + _arg1);
}
}
}//package fl.motion
class XFormData {
public var ox:Number;
public var oy:Number;
public var oz:Number;
private function XFormData(){
}
}
Section 14
//CustomEase (fl.motion.CustomEase)
package fl.motion {
import flash.geom.*;
public class CustomEase implements ITween {
public var points:Array;
private var firstNode:Point;
private var _target:String;// = ""
private var lastNode:Point;
public function CustomEase(_arg1:XML=null){
this.points = [];
this.parseXML(_arg1);
this.firstNode = new Point(0, 0);
this.lastNode = new Point(1, 1);
}
public function set target(_arg1:String):void{
this._target = _arg1;
}
private function parseXML(_arg1:XML=null):CustomEase{
var _local3:XML;
if (!_arg1){
return (this);
};
if (_arg1.@target.length()){
this.target = _arg1.@target;
};
var _local2:XMLList = _arg1.elements();
for each (_local3 in _local2) {
this.points.push(new Point(Number(_local3.@x), Number(_local3.@y)));
};
return (this);
}
public function get target():String{
return (this._target);
}
public function getValue(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg4 <= 0){
return (NaN);
};
var _local5:Number = (_arg1 / _arg4);
if (_local5 <= 0){
return (_arg2);
};
if (_local5 >= 1){
return ((_arg2 + _arg3));
};
var _local6:Array = [this.firstNode].concat(this.points);
_local6.push(this.lastNode);
var _local7:Number = getYForPercent(_local5, _local6);
return ((_arg2 + (_local7 * _arg3)));
}
static function getYForPercent(_arg1:Number, _arg2:Array):Number{
var _local8:int;
var _local9:BezierSegment;
var _local3:BezierSegment = new BezierSegment(_arg2[0], _arg2[1], _arg2[2], _arg2[3]);
var _local4:Array = [_local3];
var _local5 = 3;
while (_local5 < (_arg2.length - 3)) {
_local4.push(new BezierSegment(_arg2[_local5], _arg2[(_local5 + 1)], _arg2[(_local5 + 2)], _arg2[(_local5 + 3)]));
_local5 = (_local5 + 3);
};
var _local6:BezierSegment = _local3;
if (_arg2.length >= 5){
_local8 = 0;
while (_local8 < _local4.length) {
_local9 = _local4[_local8];
if ((((_local9.a.x <= _arg1)) && ((_arg1 <= _local9.d.x)))){
_local6 = _local9;
break;
};
_local8++;
};
};
var _local7:Number = _local6.getYForX(_arg1);
return (_local7);
}
}
}//package fl.motion
Section 15
//DynamicMatrix (fl.motion.DynamicMatrix)
package fl.motion {
public class DynamicMatrix {
protected var m_matrix:Array;
protected var m_width:int;
protected var m_height:int;
public static const MATRIX_ORDER_APPEND:int = 1;
public static const MATRIX_ORDER_PREPEND:int = 0;
public function DynamicMatrix(_arg1:int, _arg2:int){
this.Create(_arg1, _arg2);
}
public function Add(_arg1:DynamicMatrix):Boolean{
var _local5:int;
var _local6:Number;
if (((!(this.m_matrix)) || (!(_arg1)))){
return (false);
};
var _local2:int = _arg1.GetHeight();
var _local3:int = _arg1.GetWidth();
if (((!((this.m_width == _local3))) || (!((this.m_height == _local2))))){
return (false);
};
var _local4:int;
while (_local4 < this.m_height) {
_local5 = 0;
while (_local5 < this.m_width) {
_local6 = 0;
_local6 = (this.m_matrix[_local4][_local5] + _arg1.GetValue(_local4, _local5));
this.m_matrix[_local4][_local5] = _local6;
_local5++;
};
_local4++;
};
return (true);
}
public function LoadIdentity():void{
var _local1:int;
var _local2:int;
if (this.m_matrix){
_local1 = 0;
while (_local1 < this.m_height) {
_local2 = 0;
while (_local2 < this.m_width) {
if (_local1 == _local2){
this.m_matrix[_local1][_local2] = 1;
} else {
this.m_matrix[_local1][_local2] = 0;
};
_local2++;
};
_local1++;
};
};
}
public function LoadZeros():void{
var _local1:int;
var _local2:int;
if (this.m_matrix){
_local1 = 0;
while (_local1 < this.m_height) {
_local2 = 0;
while (_local2 < this.m_width) {
this.m_matrix[_local1][_local2] = 0;
_local2++;
};
_local1++;
};
};
}
public function Multiply(_arg1:DynamicMatrix, _arg2:int=0):Boolean{
var _local5:DynamicMatrix;
var _local6:int;
var _local7:int;
var _local8:Number;
var _local9:int;
var _local10:int;
if (((!(this.m_matrix)) || (!(_arg1)))){
return (false);
};
var _local3:int = _arg1.GetHeight();
var _local4:int = _arg1.GetWidth();
if (_arg2 == MATRIX_ORDER_APPEND){
if (this.m_width != _local3){
return (false);
};
_local5 = new DynamicMatrix(_local4, this.m_height);
_local6 = 0;
while (_local6 < this.m_height) {
_local7 = 0;
while (_local7 < _local4) {
_local8 = 0;
_local9 = 0;
_local10 = 0;
while ((((_local9 < Math.max(this.m_height, _local3))) && ((_local10 < Math.max(this.m_width, _local4))))) {
_local8 = (_local8 + (_arg1.GetValue(_local9, _local7) * this.m_matrix[_local6][_local10]));
_local9++;
_local10++;
};
_local5.SetValue(_local6, _local7, _local8);
_local7++;
};
_local6++;
};
this.Destroy();
this.Create(_local4, this.m_height);
_local6 = 0;
while (_local6 < _local3) {
_local7 = 0;
while (_local7 < this.m_width) {
this.m_matrix[_local6][_local7] = _local5.GetValue(_local6, _local7);
_local7++;
};
_local6++;
};
} else {
if (this.m_height != _local4){
return (false);
};
_local5 = new DynamicMatrix(this.m_width, _local3);
_local6 = 0;
while (_local6 < _local3) {
_local7 = 0;
while (_local7 < this.m_width) {
_local8 = 0;
_local9 = 0;
_local10 = 0;
while ((((_local9 < Math.max(_local3, this.m_height))) && ((_local10 < Math.max(_local4, this.m_width))))) {
_local8 = (_local8 + (this.m_matrix[_local9][_local7] * _arg1.GetValue(_local6, _local10)));
_local9++;
_local10++;
};
_local5.SetValue(_local6, _local7, _local8);
_local7++;
};
_local6++;
};
this.Destroy();
this.Create(this.m_width, _local3);
_local6 = 0;
while (_local6 < _local3) {
_local7 = 0;
while (_local7 < this.m_width) {
this.m_matrix[_local6][_local7] = _local5.GetValue(_local6, _local7);
_local7++;
};
_local6++;
};
};
return (true);
}
public function MultiplyNumber(_arg1:Number):Boolean{
var _local3:int;
var _local4:Number;
if (!this.m_matrix){
return (false);
};
var _local2:int;
while (_local2 < this.m_height) {
_local3 = 0;
while (_local3 < this.m_width) {
_local4 = 0;
_local4 = (this.m_matrix[_local2][_local3] * _arg1);
this.m_matrix[_local2][_local3] = _local4;
_local3++;
};
_local2++;
};
return (true);
}
public function SetValue(_arg1:int, _arg2:int, _arg3:Number):void{
if ((((((((_arg1 >= 0)) && ((_arg1 < this.m_height)))) && ((_arg2 >= 0)))) && ((_arg2 <= this.m_width)))){
this.m_matrix[_arg1][_arg2] = _arg3;
};
}
public function GetWidth():Number{
return (this.m_width);
}
protected function Destroy():void{
this.m_matrix = null;
}
public function GetValue(_arg1:int, _arg2:int):Number{
var _local3:Number = 0;
if ((((((((_arg1 >= 0)) && ((_arg1 < this.m_height)))) && ((_arg2 >= 0)))) && ((_arg2 <= this.m_width)))){
_local3 = this.m_matrix[_arg1][_arg2];
};
return (_local3);
}
protected function Create(_arg1:int, _arg2:int):void{
var _local3:int;
var _local4:int;
if ((((_arg1 > 0)) && ((_arg2 > 0)))){
this.m_width = _arg1;
this.m_height = _arg2;
this.m_matrix = new Array(_arg2);
_local3 = 0;
while (_local3 < _arg2) {
this.m_matrix[_local3] = new Array(_arg1);
_local4 = 0;
while (_local4 < _arg2) {
this.m_matrix[_local3][_local4] = 0;
_local4++;
};
_local3++;
};
};
}
public function GetHeight():Number{
return (this.m_height);
}
}
}//package fl.motion
Section 16
//FunctionEase (fl.motion.FunctionEase)
package fl.motion {
import flash.utils.*;
public class FunctionEase implements ITween {
private var _functionName:String;// = ""
public var parameters:Array;// = null
private var _target:String;// = ""
public var easingFunction:Function;// = null
public function FunctionEase(_arg1:XML=null){
this.parseXML(_arg1);
}
public function get functionName():String{
return (this._functionName);
}
public function set target(_arg1:String):void{
this._target = _arg1;
}
public function set functionName(_arg1:String):void{
var _local2:Array = _arg1.split(".");
var _local3:String = _local2.pop();
var _local4:String = _local2.join(".");
var _local5:Class = (getDefinitionByName(_local4) as Class);
if ((_local5[_local3] is Function)){
this.easingFunction = _local5[_local3];
this._functionName = _arg1;
};
}
public function get target():String{
return (this._target);
}
public function getValue(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
var _local5:Array;
if ((this.parameters is Array)){
_local5 = [_arg1, _arg2, _arg3, _arg4].concat(this.parameters);
return (this.easingFunction.apply(null, _local5));
};
return (this.easingFunction(_arg1, _arg2, _arg3, _arg4));
}
private function parseXML(_arg1:XML=null):FunctionEase{
if (!_arg1){
return (this);
};
if (_arg1.@functionName.length()){
this.functionName = _arg1.@functionName;
};
if (_arg1.@target.length()){
this.target = _arg1.@target;
};
return (this);
}
}
}//package fl.motion
Section 17
//ITween (fl.motion.ITween)
package fl.motion {
public interface ITween {
function get target():String;
function set target(_arg1:String):void;
function getValue(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number;
}
}//package fl.motion
Section 18
//Keyframe (fl.motion.Keyframe)
package fl.motion {
import flash.filters.*;
import flash.utils.*;
public class Keyframe extends KeyframeBase {
public var tweenSync:Boolean;// = false
public var tweens:Array;
public var tweenSnap:Boolean;// = false
public var tweenScale:Boolean;// = true
public function Keyframe(_arg1:XML=null){
super(_arg1);
this.tweens = [];
this.parseXML(_arg1);
}
private function parseXML(_arg1:XML=null):KeyframeBase{
var tweenableName:String;
var elements:XMLList;
var filtersArray:Array;
var child:XML;
var attribute:XML;
var attributeValue:String;
var name:String;
var tweenChildren:XMLList;
var tweenChild:XML;
var tweenName:String;
var filtersChildren:XMLList;
var filterXML:XML;
var filterName:String;
var filterClassName:String;
var filterClass:Object;
var filterInstance:BitmapFilter;
var filterTypeInfo:XML;
var accessorList:XMLList;
var ratios:Array;
var attrib:XML;
var attribName:String;
var accessor:XML;
var attribType:String;
var attribValue:String;
var uintValue:uint;
var valuesArray:Array;
var xml = _arg1;
if (!xml){
return (this);
};
var indexString:String = xml.@index.toXMLString();
var indexValue:int = parseInt(indexString);
if (indexString){
this.index = indexValue;
} else {
throw (new Error("<Keyframe> is missing the required attribute \"index\"."));
};
if (xml.@label.length()){
this.label = xml.@label;
};
if (xml.@tweenScale.length()){
this.tweenScale = (xml.@tweenScale.toString() == "true");
};
if (xml.@tweenSnap.length()){
this.tweenSnap = (xml.@tweenSnap.toString() == "true");
};
if (xml.@tweenSync.length()){
this.tweenSync = (xml.@tweenSync.toString() == "true");
};
if (xml.@blendMode.length()){
this.blendMode = xml.@blendMode;
};
if (xml.@cacheAsBitmap.length()){
this.cacheAsBitmap = (xml.@cacheAsBitmap.toString() == "true");
};
if (xml.@rotateDirection.length()){
this.rotateDirection = xml.@rotateDirection;
};
if (xml.@rotateTimes.length()){
this.rotateTimes = parseInt(xml.@rotateTimes);
};
if (xml.@orientToPath.length()){
this.orientToPath = (xml.@orientToPath.toString() == "true");
};
if (xml.@blank.length()){
this.blank = (xml.@blank.toString() == "true");
};
var tweenableNames:Array = ["x", "y", "scaleX", "scaleY", "rotation", "skewX", "skewY"];
for each (tweenableName in tweenableNames) {
attribute = xml.attribute(tweenableName)[0];
if (!attribute){
} else {
attributeValue = attribute.toString();
if (attributeValue){
this[tweenableName] = Number(attributeValue);
};
};
};
elements = xml.elements();
filtersArray = [];
for each (child in elements) {
name = child.localName();
if (name == "tweens"){
tweenChildren = child.elements();
for each (tweenChild in tweenChildren) {
tweenName = tweenChild.localName();
if (tweenName == "SimpleEase"){
this.tweens.push(new SimpleEase(tweenChild));
} else {
if (tweenName == "CustomEase"){
this.tweens.push(new CustomEase(tweenChild));
} else {
if (tweenName == "BezierEase"){
this.tweens.push(new BezierEase(tweenChild));
} else {
if (tweenName == "FunctionEase"){
this.tweens.push(new FunctionEase(tweenChild));
};
};
};
};
};
} else {
if (name == "filters"){
filtersChildren = child.elements();
for each (filterXML in filtersChildren) {
filterName = filterXML.localName();
filterClassName = ("flash.filters." + filterName);
if (filterName == "AdjustColorFilter"){
} else {
filterClass = getDefinitionByName(filterClassName);
filterInstance = new (filterClass);
filterTypeInfo = describeType(filterInstance);
accessorList = filterTypeInfo.accessor;
ratios = [];
for each (attrib in filterXML.attributes()) {
attribName = attrib.localName();
accessor = accessorList.(@name == attribName)[0];
attribType = accessor.@type;
attribValue = attrib.toString();
if (attribType == "int"){
filterInstance[attribName] = parseInt(attribValue);
} else {
if (attribType == "uint"){
filterInstance[attribName] = (parseInt(attribValue) as uint);
uintValue = (parseInt(attribValue) as uint);
} else {
if (attribType == "Number"){
filterInstance[attribName] = Number(attribValue);
} else {
if (attribType == "Boolean"){
filterInstance[attribName] = (attribValue == "true");
} else {
if (attribType == "Array"){
attribValue = attribValue.substring(1, (attribValue.length - 1));
valuesArray = null;
if ((((attribName == "ratios")) || ((attribName == "colors")))){
valuesArray = splitUint(attribValue);
} else {
if (attribName == "alphas"){
valuesArray = splitNumber(attribValue);
};
};
if (attribName == "ratios"){
ratios = valuesArray;
} else {
if (valuesArray){
filterInstance[attribName] = valuesArray;
};
};
} else {
if (attribType == "String"){
filterInstance[attribName] = attribValue;
};
};
};
};
};
};
};
if (ratios.length){
filterInstance["ratios"] = ratios;
};
filtersArray.push(filterInstance);
};
};
} else {
if (name == "color"){
this.color = Color.fromXML(child);
};
};
};
this.filters = filtersArray;
};
return (this);
}
override public function get tweensLength():int{
return (this.tweens.length);
}
override protected function hasTween():Boolean{
return (!((this.getTween() == null)));
}
public function getTween(_arg1:String=""):ITween{
var _local2:ITween;
for each (_local2 in this.tweens) {
if ((((((((_local2.target == _arg1)) || ((((_local2.target == "rotation")) && ((((_arg1 == "skewX")) || ((_arg1 == "skewY")))))))) || ((((_local2.target == "position")) && ((((_arg1 == "x")) || ((_arg1 == "y")))))))) || ((((_local2.target == "scale")) && ((((_arg1 == "scaleX")) || ((_arg1 == "scaleY")))))))){
return (_local2);
};
};
return (null);
}
private static function splitNumber(_arg1:String):Array{
var _local2:Array = _arg1.split(",");
var _local3:int;
while (_local3 < _local2.length) {
_local2[_local3] = Number(_local2[_local3]);
_local3++;
};
return (_local2);
}
private static function splitUint(_arg1:String):Array{
var _local2:Array = _arg1.split(",");
var _local3:int;
while (_local3 < _local2.length) {
_local2[_local3] = (parseInt(_local2[_local3]) as uint);
_local3++;
};
return (_local2);
}
private static function splitInt(_arg1:String):Array{
var _local2:Array = _arg1.split(",");
var _local3:int;
while (_local3 < _local2.length) {
_local2[_local3] = (parseInt(_local2[_local3]) as int);
_local3++;
};
return (_local2);
}
}
}//package fl.motion
Section 19
//KeyframeBase (fl.motion.KeyframeBase)
package fl.motion {
import flash.display.*;
import flash.filters.*;
import flash.utils.*;
public class KeyframeBase {
public var y:Number;// = NAN
public var filters:Array;
public var skewX:Number;// = NAN
public var skewY:Number;// = NAN
public var blendMode:String;
public var useRotationConcat:Boolean;// = false
public var rotationX:Number;// = NAN
public var rotationY:Number;// = NAN
public var firstFrame:String;
public var cacheAsBitmap:Boolean;// = false
public var rotateTimes:uint;// = 0
public var loop:String;
public var rotationConcat:Number;// = NAN
public var scaleX:Number;// = NAN
public var scaleY:Number;// = NAN
private var _index:int;// = -1
public var blank:Boolean;// = false
public var adjustColorObjects:Dictionary;// = null
public var color:Color;
public var orientToPath:Boolean;// = false
public var rotateDirection:String;// = "auto"
public var label:String;// = ""
public var x:Number;// = NAN
public var matrix3D:Object;// = null
public var z:Number;// = NAN
public function KeyframeBase(_arg1:XML=null){
this.blendMode = BlendMode.NORMAL;
super();
this.filters = [];
this.adjustColorObjects = new Dictionary();
}
public function set index(_arg1:int):void{
this._index = ((_arg1)<0) ? 0 : _arg1;
if (this._index == 0){
this.setDefaults();
};
}
public function getValue(_arg1:String):Number{
return (Number(this[_arg1]));
}
public function setValue(_arg1:String, _arg2:Number):void{
this[_arg1] = _arg2;
}
public function get index():int{
return (this._index);
}
private function setDefaults():void{
if (isNaN(this.x)){
this.x = 0;
};
if (isNaN(this.y)){
this.y = 0;
};
if (isNaN(this.z)){
this.z = 0;
};
if (isNaN(this.scaleX)){
this.scaleX = 1;
};
if (isNaN(this.scaleY)){
this.scaleY = 1;
};
if (isNaN(this.skewX)){
this.skewX = 0;
};
if (isNaN(this.skewY)){
this.skewY = 0;
};
if (isNaN(this.rotationConcat)){
this.rotationConcat = 0;
};
if (!this.color){
this.color = new Color();
};
}
public function setAdjustColorProperty(_arg1:int, _arg2:String, _arg3):void{
var _local5:ColorMatrixFilter;
var _local6:Array;
if (_arg1 >= this.filters.length){
return;
};
var _local4:AdjustColor = this.adjustColorObjects[_arg1];
if (_local4 == null){
_local4 = new AdjustColor();
this.adjustColorObjects[_arg1] = _local4;
};
switch (_arg2){
case "adjustColorBrightness":
_local4.brightness = _arg3;
break;
case "adjustColorContrast":
_local4.contrast = _arg3;
break;
case "adjustColorSaturation":
_local4.saturation = _arg3;
break;
case "adjustColorHue":
_local4.hue = _arg3;
break;
};
if (_local4.AllValuesAreSet()){
_local5 = (this.filters[_arg1] as ColorMatrixFilter);
if (_local5){
_local6 = _local4.CalculateFinalFlatArray();
if (_local6){
_local5.matrix = _local6;
};
};
};
}
public function affectsTweenable(_arg1:String=""):Boolean{
return (((((((((((((!(_arg1)) || (!(isNaN(this[_arg1]))))) || ((((_arg1 == "color")) && (this.color))))) || ((((_arg1 == "filters")) && (this.filters.length))))) || ((((_arg1 == "matrix3D")) && (this.matrix3D))))) || (this.blank))) || (this.hasTween())));
}
public function get tweensLength():int{
return (0);
}
protected function hasTween():Boolean{
return (false);
}
public function set rotation(_arg1:Number):void{
if (((isNaN(this.skewX)) || (isNaN(this.skewY)))){
this.skewX = _arg1;
} else {
this.skewX = (this.skewX + (_arg1 - this.skewY));
};
this.skewY = _arg1;
}
public function get rotation():Number{
return (this.skewY);
}
}
}//package fl.motion
Section 20
//MatrixTransformer (fl.motion.MatrixTransformer)
package fl.motion {
import flash.geom.*;
public class MatrixTransformer {
public static function getSkewY(_arg1:Matrix):Number{
return ((Math.atan2(_arg1.b, _arg1.a) * (180 / Math.PI)));
}
public static function getScaleX(_arg1:Matrix):Number{
return (Math.sqrt(((_arg1.a * _arg1.a) + (_arg1.b * _arg1.b))));
}
public static function getScaleY(_arg1:Matrix):Number{
return (Math.sqrt(((_arg1.c * _arg1.c) + (_arg1.d * _arg1.d))));
}
public static function setSkewXRadians(_arg1:Matrix, _arg2:Number):void{
var _local3:Number = getScaleY(_arg1);
_arg1.c = (-(_local3) * Math.sin(_arg2));
_arg1.d = (_local3 * Math.cos(_arg2));
}
public static function setRotation(_arg1:Matrix, _arg2:Number):void{
setRotationRadians(_arg1, (_arg2 * (Math.PI / 180)));
}
public static function rotateAroundInternalPoint(_arg1:Matrix, _arg2:Number, _arg3:Number, _arg4:Number):void{
var _local5:Point = new Point(_arg2, _arg3);
_local5 = _arg1.transformPoint(_local5);
_arg1.tx = (_arg1.tx - _local5.x);
_arg1.ty = (_arg1.ty - _local5.y);
_arg1.rotate((_arg4 * (Math.PI / 180)));
_arg1.tx = (_arg1.tx + _local5.x);
_arg1.ty = (_arg1.ty + _local5.y);
}
public static function setSkewX(_arg1:Matrix, _arg2:Number):void{
setSkewXRadians(_arg1, (_arg2 * (Math.PI / 180)));
}
public static function setSkewY(_arg1:Matrix, _arg2:Number):void{
setSkewYRadians(_arg1, (_arg2 * (Math.PI / 180)));
}
public static function setScaleX(_arg1:Matrix, _arg2:Number):void{
var _local4:Number;
var _local5:Number;
var _local3:Number = getScaleX(_arg1);
if (_local3){
_local4 = (_arg2 / _local3);
_arg1.a = (_arg1.a * _local4);
_arg1.b = (_arg1.b * _local4);
} else {
_local5 = getSkewYRadians(_arg1);
_arg1.a = (Math.cos(_local5) * _arg2);
_arg1.b = (Math.sin(_local5) * _arg2);
};
}
public static function setScaleY(_arg1:Matrix, _arg2:Number):void{
var _local4:Number;
var _local5:Number;
var _local3:Number = getScaleY(_arg1);
if (_local3){
_local4 = (_arg2 / _local3);
_arg1.c = (_arg1.c * _local4);
_arg1.d = (_arg1.d * _local4);
} else {
_local5 = getSkewXRadians(_arg1);
_arg1.c = (-(Math.sin(_local5)) * _arg2);
_arg1.d = (Math.cos(_local5) * _arg2);
};
}
public static function setRotationRadians(_arg1:Matrix, _arg2:Number):void{
var _local3:Number = getRotationRadians(_arg1);
var _local4:Number = getSkewXRadians(_arg1);
setSkewXRadians(_arg1, ((_local4 + _arg2) - _local3));
setSkewYRadians(_arg1, _arg2);
}
public static function setSkewYRadians(_arg1:Matrix, _arg2:Number):void{
var _local3:Number = getScaleX(_arg1);
_arg1.a = (_local3 * Math.cos(_arg2));
_arg1.b = (_local3 * Math.sin(_arg2));
}
public static function getSkewX(_arg1:Matrix):Number{
return ((Math.atan2(-(_arg1.c), _arg1.d) * (180 / Math.PI)));
}
public static function getSkewYRadians(_arg1:Matrix):Number{
return (Math.atan2(_arg1.b, _arg1.a));
}
public static function getSkewXRadians(_arg1:Matrix):Number{
return (Math.atan2(-(_arg1.c), _arg1.d));
}
public static function getRotation(_arg1:Matrix):Number{
return ((getRotationRadians(_arg1) * (180 / Math.PI)));
}
public static function rotateAroundExternalPoint(_arg1:Matrix, _arg2:Number, _arg3:Number, _arg4:Number):void{
_arg1.tx = (_arg1.tx - _arg2);
_arg1.ty = (_arg1.ty - _arg3);
_arg1.rotate((_arg4 * (Math.PI / 180)));
_arg1.tx = (_arg1.tx + _arg2);
_arg1.ty = (_arg1.ty + _arg3);
}
public static function getRotationRadians(_arg1:Matrix):Number{
return (getSkewYRadians(_arg1));
}
public static function matchInternalPointWithExternal(_arg1:Matrix, _arg2:Point, _arg3:Point):void{
var _local4:Point = _arg1.transformPoint(_arg2);
var _local5:Number = (_arg3.x - _local4.x);
var _local6:Number = (_arg3.y - _local4.y);
_arg1.tx = (_arg1.tx + _local5);
_arg1.ty = (_arg1.ty + _local6);
}
}
}//package fl.motion
Section 21
//Motion (fl.motion.Motion)
package fl.motion {
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
public class Motion extends MotionBase {
public var source:Source;
private var _keyframesCompact:Array;
private static var typeCache:Object = {};
public function Motion(_arg1:XML=null){
var _local2:Keyframe;
super();
this.keyframes = [];
this.parseXML(_arg1);
if (!this.source){
this.source = new Source();
};
if (this.duration == 0){
_local2 = (this.getNewKeyframe() as Keyframe);
_local2.index = 0;
this.addKeyframe(_local2);
};
}
override protected function findTweenedValue(_arg1:Number, _arg2:String, _arg3:KeyframeBase, _arg4:Number, _arg5:Number):Number{
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local6:Keyframe = (_arg3 as Keyframe);
if (!_local6){
return (NaN);
};
var _local7:ITween = ((_local6.getTween(_arg2)) || (_local6.getTween()));
if (((((!(_local7)) || (((!(_local6.tweenScale)) && ((((_arg2 == Tweenables.SCALE_X)) || ((_arg2 == Tweenables.SCALE_Y)))))))) || ((((_local6.rotateDirection == RotateDirection.NONE)) && ((((((_arg2 == Tweenables.ROTATION)) || ((_arg2 == Tweenables.SKEW_X)))) || ((_arg2 == Tweenables.SKEW_Y)))))))){
return (_arg5);
};
var _local8:String = _arg2;
if (_local7.target == ""){
_local8 = "";
};
var _local9:Keyframe = (this.getNextKeyframe(_arg1, _local8) as Keyframe);
if (((!(_local9)) || (_local9.blank))){
return (_arg5);
};
_local10 = _local9.getValue(_arg2);
if (isNaN(_local10)){
_local10 = _arg5;
};
_local11 = (_local10 - _arg5);
if ((((((_arg2 == Tweenables.SKEW_X)) || ((_arg2 == Tweenables.SKEW_Y)))) || ((_arg2 == Tweenables.ROTATION)))){
if (_local6.rotateDirection == RotateDirection.AUTO){
_local11 = (_local11 % 360);
if (_local11 > 180){
_local11 = (_local11 - 360);
} else {
if (_local11 < -180){
_local11 = (_local11 + 360);
};
};
} else {
if (_local6.rotateDirection == RotateDirection.CW){
if (_local11 < 0){
_local11 = ((_local11 % 360) + 360);
};
_local11 = (_local11 + (_local6.rotateTimes * 360));
} else {
if (_local11 > 0){
_local11 = ((_local11 % 360) - 360);
};
_local11 = (_local11 - (_local6.rotateTimes * 360));
};
};
};
_local12 = (_local9.index - _local6.index);
return (_local7.getValue(_arg4, _arg5, _local11, _local12));
}
private function parseXML(_arg1:XML):Motion{
var _local4:XML;
var _local5:XML;
if (!_arg1){
return (this);
};
if (_arg1.@duration.length()){
this.duration = parseInt(_arg1.@duration);
};
var _local2:XMLList = _arg1.elements();
var _local3:Number = 0;
while (_local3 < _local2.length()) {
_local4 = _local2[_local3];
if (_local4.localName() == "source"){
_local5 = _local4.children()[0];
this.source = new Source(_local5);
} else {
if (_local4.localName() == "Keyframe"){
this.addKeyframe(this.getNewKeyframe(_local4));
};
};
_local3++;
};
return (this);
}
override public function getFilters(_arg1:Number):Array{
var _local7:Keyframe;
var _local8:Array;
var _local9:Number;
var _local10:Number;
var _local2:Array;
var _local3:Keyframe = (this.getCurrentKeyframe(_arg1, "filters") as Keyframe);
if (((!(_local3)) || (((_local3.filters) && (!(_local3.filters.length)))))){
return ([]);
};
var _local4:Array = _local3.filters;
var _local5:Number = (_arg1 - _local3.index);
var _local6:ITween = ((_local3.getTween("filters")) || (_local3.getTween()));
if ((((_local5 == 0)) || (!(_local6)))){
_local2 = _local4;
} else {
if (_local6){
_local7 = (this.getNextKeyframe(_arg1, "filters") as Keyframe);
if (((!(_local7)) || (!(_local7.filters.length)))){
_local2 = _local4;
} else {
_local8 = _local7.filters;
_local9 = (_local7.index - _local3.index);
_local10 = _local6.getValue(_local5, 0, 1, _local9);
_local2 = interpolateFilters(_local4, _local8, _local10);
};
};
};
return (_local2);
}
override protected function getNewKeyframe(_arg1:XML=null):KeyframeBase{
return (new Keyframe(_arg1));
}
public function set keyframesCompact(_arg1:Array):void{
var _local2:KeyframeBase;
this._keyframesCompact = _arg1.concat();
this.keyframes = [];
for each (_local2 in this._keyframesCompact) {
this.addKeyframe(_local2);
};
}
public function get keyframesCompact():Array{
var _local1:KeyframeBase;
this._keyframesCompact = [];
for each (_local1 in this.keyframes) {
if (_local1){
this._keyframesCompact.push(_local1);
};
};
return (this._keyframesCompact);
}
override public function getColorTransform(_arg1:int):ColorTransform{
var _local7:Keyframe;
var _local8:ColorTransform;
var _local9:Number;
var _local10:Number;
var _local2:ColorTransform;
var _local3:Keyframe = (this.getCurrentKeyframe(_arg1, "color") as Keyframe);
if (((!(_local3)) || (!(_local3.color)))){
return (null);
};
var _local4:ColorTransform = _local3.color;
var _local5:Number = (_arg1 - _local3.index);
var _local6:ITween = ((((_local3.getTween("color")) || (_local3.getTween("alpha")))) || (_local3.getTween()));
if ((((_local5 == 0)) || (!(_local6)))){
_local2 = _local4;
} else {
if (_local6){
_local7 = (this.getNextKeyframe(_arg1, "color") as Keyframe);
if (((!(_local7)) || (!(_local7.color)))){
_local2 = _local4;
} else {
_local8 = _local7.color;
_local9 = (_local7.index - _local3.index);
_local10 = _local6.getValue(_local5, 0, 1, _local9);
_local2 = Color.interpolateTransform(_local4, _local8, _local10);
};
};
};
return (_local2);
}
private static function getTypeInfo(_arg1):XML{
var _local2 = "";
if ((_arg1 is String)){
_local2 = _arg1;
} else {
_local2 = getQualifiedClassName(_arg1);
};
if ((_local2 in typeCache)){
return (typeCache[_local2]);
};
if ((_arg1 is String)){
_arg1 = getDefinitionByName(_arg1);
};
return ((typeCache[_local2] = describeType(_arg1)));
}
public static function interpolateFilter(_arg1:BitmapFilter, _arg2:BitmapFilter, _arg3:Number):BitmapFilter{
var _local8:XML;
var _local9:String;
var _local10:String;
var _local11:uint;
var _local12:uint;
var _local13:uint;
var _local14:Array;
var _local15:Array;
var _local16:Array;
var _local17:int;
var _local18:int;
var _local19:int;
var _local20:int;
var _local21:int;
var _local22:Number;
var _local23:uint;
var _local24:Number;
var _local25:int;
var _local26:Number;
var _local27:uint;
var _local28:Number;
var _local29:int;
var _local30:uint;
var _local31:Number;
if (((!(_arg2)) || (!((_arg1["constructor"] == _arg2["constructor"]))))){
return (_arg1);
};
if (_arg3 > 1){
_arg3 = 1;
} else {
if (_arg3 < 0){
_arg3 = 0;
};
};
var _local4:Number = (1 - _arg3);
var _local5:BitmapFilter = _arg1.clone();
var _local6:XML = getTypeInfo(_arg1);
var _local7:XMLList = _local6.accessor;
for each (_local8 in _local7) {
_local9 = _local8.@name.toString();
_local10 = _local8.@type;
if ((((_local10 == "Number")) || ((_local10 == "int")))){
_local5[_local9] = ((_arg1[_local9] * _local4) + (_arg2[_local9] * _arg3));
} else {
if (_local10 == "uint"){
switch (_local9){
case "color":
case "highlightColor":
case "shadowColor":
_local11 = _arg1[_local9];
_local12 = _arg2[_local9];
_local13 = Color.interpolateColor(_local11, _local12, _arg3);
_local5[_local9] = _local13;
break;
default:
_local5[_local9] = ((_arg1[_local9] * _local4) + (_arg2[_local9] * _arg3));
break;
};
};
};
};
if ((((_arg1 is GradientGlowFilter)) || ((_arg1 is GradientBevelFilter)))){
_local14 = [];
_local15 = [];
_local16 = [];
_local17 = _arg1["ratios"].length;
_local18 = _arg2["ratios"].length;
_local19 = Math.max(_local17, _local18);
_local20 = 0;
while (_local20 < _local19) {
_local21 = Math.min(_local20, (_local17 - 1));
_local22 = _arg1["ratios"][_local21];
_local23 = _arg1["colors"][_local21];
_local24 = _arg1["alphas"][_local21];
_local25 = Math.min(_local20, (_local18 - 1));
_local26 = _arg2["ratios"][_local25];
_local27 = _arg2["colors"][_local25];
_local28 = _arg2["alphas"][_local25];
_local29 = ((_local22 * _local4) + (_local26 * _arg3));
_local30 = Color.interpolateColor(_local23, _local27, _arg3);
_local31 = ((_local24 * _local4) + (_local28 * _arg3));
_local14[_local20] = _local29;
_local15[_local20] = _local30;
_local16[_local20] = _local31;
_local20++;
};
_local5["colors"] = _local15;
_local5["alphas"] = _local16;
_local5["ratios"] = _local14;
};
return (_local5);
}
public static function interpolateFilters(_arg1:Array, _arg2:Array, _arg3:Number):Array{
var _local6:BitmapFilter;
var _local7:BitmapFilter;
var _local8:BitmapFilter;
if (_arg1.length != _arg2.length){
return (null);
};
var _local4:Array = [];
var _local5:int;
while (_local5 < _arg1.length) {
_local6 = _arg1[_local5];
_local7 = _arg2[_local5];
_local8 = interpolateFilter(_local6, _local7, _arg3);
if (_local8){
_local4.push(_local8);
};
_local5++;
};
return (_local4);
}
public static function fromXMLString(_arg1:String):Motion{
var _local2:XML = new XML(_arg1);
return (new Motion(_local2));
}
}
}//package fl.motion
Section 22
//MotionBase (fl.motion.MotionBase)
package fl.motion {
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
public class MotionBase {
private var _is3D:Boolean;// = false
public var keyframes:Array;
private var _overrideSkew:Boolean;
private var _overrideScale:Boolean;
private var _overrideRotate:Boolean;
private var _duration:int;// = 0
public function MotionBase(_arg1:XML=null){
var _local2:KeyframeBase;
super();
this.keyframes = [];
if (this.duration == 0){
_local2 = this.getNewKeyframe();
_local2.index = 0;
this.addKeyframe(_local2);
};
this._overrideScale = false;
this._overrideSkew = false;
this._overrideRotate = false;
}
public function addKeyframe(_arg1:KeyframeBase):void{
this.keyframes[_arg1.index] = _arg1;
if (this.duration < this.keyframes.length){
this.duration = this.keyframes.length;
};
}
public function initFilters(_arg1:Array, _arg2:Array, _arg3:int=-1, _arg4:int=-1):void{
var _local6:Class;
var _local7:int;
var _local8:KeyframeBase;
var _local9:BitmapFilter;
var _local10:int;
if ((((_arg3 == -1)) || ((_arg4 == -1)))){
_arg3 = 0;
_arg4 = this.duration;
};
var _local5:int;
while (_local5 < _arg1.length) {
_local6 = (getDefinitionByName(_arg1[_local5]) as Class);
_local7 = _arg3;
while (_local7 < _arg4) {
_local8 = KeyframeBase(this.keyframes[_local7]);
if (_local8 == null){
_local8 = this.getNewKeyframe();
_local8.index = _local7;
this.addKeyframe(_local8);
};
if (((_local8) && ((_local8.filters == null)))){
_local8.filters = new Array();
};
if (((_local8) && (_local8.filters))){
_local9 = null;
switch (_arg1[_local5]){
case "flash.filters.GradientBevelFilter":
case "flash.filters.GradientGlowFilter":
_local10 = _arg2[_local5];
_local9 = BitmapFilter(new _local6(4, 45, new Array(_local10), new Array(_local10), new Array(_local10)));
break;
default:
_local9 = BitmapFilter(new (_local6));
break;
};
if (_local9){
_local8.filters.push(_local9);
};
};
_local7++;
};
_local5++;
};
}
public function getCurrentKeyframe(_arg1:int, _arg2:String=""):KeyframeBase{
var _local4:KeyframeBase;
if (((((isNaN(_arg1)) || ((_arg1 < 0)))) || ((_arg1 > (this.duration - 1))))){
return (null);
};
var _local3:int = _arg1;
while (_local3 > 0) {
_local4 = this.keyframes[_local3];
if (((_local4) && (_local4.affectsTweenable(_arg2)))){
return (_local4);
};
_local3--;
};
return (this.keyframes[0]);
}
public function addFilterPropertyArray(_arg1:int, _arg2:String, _arg3:Array, _arg4:int=-1, _arg5:int=-1):void{
var _local10:KeyframeBase;
var _local11:*;
var _local12:int;
var _local6:int = _arg3.length;
var _local7:* = null;
var _local8:Boolean;
if (_local6 > 0){
if ((_arg3[0] is Number)){
_local8 = false;
};
};
if (this.duration < _local6){
this.duration = _local6;
};
if ((((_arg4 == -1)) || ((_arg5 == -1)))){
_arg4 = 0;
_arg5 = this.duration;
};
var _local9:int = _arg4;
while (_local9 < _arg5) {
_local10 = KeyframeBase(this.keyframes[_local9]);
if (_local10 == null){
_local10 = this.getNewKeyframe();
_local10.index = _local9;
this.addKeyframe(_local10);
};
_local11 = _local7;
_local12 = (_local9 - _arg4);
if (_local12 < _arg3.length){
if (((_arg3[_local12]) || (!(_local8)))){
_local11 = _arg3[_local12];
};
};
switch (_arg2){
case "adjustColorBrightness":
case "adjustColorContrast":
case "adjustColorSaturation":
case "adjustColorHue":
_local10.setAdjustColorProperty(_arg1, _arg2, _local11);
break;
default:
if (_arg1 < _local10.filters.length){
_local10.filters[_arg1][_arg2] = _local11;
};
break;
};
_local7 = _local11;
_local9++;
};
}
public function get duration():int{
if (this._duration < this.keyframes.length){
this._duration = this.keyframes.length;
};
return (this._duration);
}
public function useRotationConcat(_arg1:int):Boolean{
var _local2:KeyframeBase = this.getCurrentKeyframe(_arg1, "rotationConcat");
return ((_local2) ? _local2.useRotationConcat : false);
}
public function get is3D():Boolean{
return (this._is3D);
}
public function getFilters(_arg1:Number):Array{
var _local2:Array;
var _local3:KeyframeBase = this.getCurrentKeyframe(_arg1, "filters");
if (((!(_local3)) || (((_local3.filters) && (!(_local3.filters.length)))))){
return ([]);
};
var _local4:Array = _local3.filters;
var _local5:Number = (_arg1 - _local3.index);
if (_local5 == 0){
_local2 = _local4;
};
return (_local2);
}
protected function findTweenedValue(_arg1:Number, _arg2:String, _arg3:KeyframeBase, _arg4:Number, _arg5:Number):Number{
return (NaN);
}
public function addPropertyArray(_arg1:String, _arg2:Array, _arg3:int=-1, _arg4:int=-1):void{
var _local10:KeyframeBase;
var _local11:*;
var _local12:int;
var _local13:*;
var _local5:int = _arg2.length;
var _local6:* = null;
var _local7:Boolean;
var _local8:Number = 0;
if (_local5 > 0){
if ((_arg2[0] is Number)){
_local7 = false;
if ((_arg2[0] is Number)){
_local8 = Number(_arg2[0]);
};
};
};
if (this.duration < _local5){
this.duration = _local5;
};
if ((((_arg3 == -1)) || ((_arg4 == -1)))){
_arg3 = 0;
_arg4 = this.duration;
};
var _local9:int = _arg3;
while (_local9 < _arg4) {
_local10 = KeyframeBase(this.keyframes[_local9]);
if (_local10 == null){
_local10 = this.getNewKeyframe();
_local10.index = _local9;
this.addKeyframe(_local10);
};
if (((_local10.filters) && ((_local10.filters.length == 0)))){
_local10.filters = null;
};
_local11 = _local6;
_local12 = (_local9 - _arg3);
if (_local12 < _arg2.length){
if (((_arg2[_local12]) || (!(_local7)))){
_local11 = _arg2[_local12];
};
};
switch (_arg1){
case "blendMode":
_local10.blendMode = _local11;
break;
case "matrix3D":
_local10[_arg1] = _local11;
break;
case "rotationConcat":
_local10.useRotationConcat = true;
if (((!(this._overrideRotate)) && (!(_local7)))){
_local10.setValue(_arg1, (((_local11 - _local8) * Math.PI) / 180));
} else {
_local10.setValue(_arg1, ((_local11 * Math.PI) / 180));
};
break;
case "brightness":
case "tintMultiplier":
case "tintColor":
case "alphaMultiplier":
case "alphaOffset":
case "redMultiplier":
case "redOffset":
case "greenMultiplier":
case "greenOffset":
case "blueMultiplier":
case "blueOffset":
if (_local10.color == null){
_local10.color = new Color();
};
_local10.color[_arg1] = _local11;
break;
case "rotationZ":
_local10.useRotationConcat = true;
this._is3D = true;
if (((!(this._overrideRotate)) && (!(_local7)))){
_local10.setValue("rotationConcat", (_local11 - _local8));
} else {
_local10.setValue("rotationConcat", _local11);
};
break;
case "rotationX":
case "rotationY":
case "z":
this._is3D = true;
default:
_local13 = _local11;
if (!_local7){
switch (_arg1){
case "scaleX":
case "scaleY":
if (!this._overrideScale){
if (_local8 == 0){
_local13 = (_local11 + 1);
} else {
_local13 = (_local11 / _local8);
};
};
break;
case "skewX":
case "skewY":
if (!this._overrideSkew){
_local13 = (_local11 - _local8);
};
break;
case "rotationX":
case "rotationY":
if (!this._overrideRotate){
_local13 = (_local11 - _local8);
};
break;
};
};
_local10.setValue(_arg1, _local13);
break;
};
_local6 = _local11;
_local9++;
};
}
public function getMatrix3D(_arg1:int):Object{
var _local2:KeyframeBase = this.getCurrentKeyframe(_arg1, "matrix3D");
return ((_local2) ? _local2.matrix3D : null);
}
public function setValue(_arg1:int, _arg2:String, _arg3:Number):void{
if (_arg1 == 0){
return;
};
var _local4:KeyframeBase = this.keyframes[_arg1];
if (!_local4){
_local4 = this.getNewKeyframe();
_local4.index = _arg1;
this.addKeyframe(_local4);
};
_local4.setValue(_arg2, _arg3);
}
private function indexOutOfRange(_arg1:int):Boolean{
return (((((isNaN(_arg1)) || ((_arg1 < 0)))) || ((_arg1 > (this.duration - 1)))));
}
public function overrideTargetTransform(_arg1:Boolean=true, _arg2:Boolean=true, _arg3:Boolean=true):void{
this._overrideScale = _arg1;
this._overrideSkew = _arg2;
this._overrideRotate = _arg3;
}
public function set duration(_arg1:int):void{
if (_arg1 < this.keyframes.length){
_arg1 = this.keyframes.length;
};
this._duration = _arg1;
}
protected function getNewKeyframe(_arg1:XML=null):KeyframeBase{
return (new KeyframeBase(_arg1));
}
public function getValue(_arg1:Number, _arg2:String):Number{
var _local3:Number = NaN;
var _local4:KeyframeBase = this.getCurrentKeyframe(_arg1, _arg2);
if (((!(_local4)) || (_local4.blank))){
return (NaN);
};
var _local5:Number = _local4.getValue(_arg2);
if (((isNaN(_local5)) && ((_local4.index > 0)))){
_local5 = this.getValue((_local4.index - 1), _arg2);
};
if (isNaN(_local5)){
return (NaN);
};
var _local6:Number = (_arg1 - _local4.index);
if (_local6 == 0){
return (_local5);
};
_local3 = this.findTweenedValue(_arg1, _arg2, _local4, _local6, _local5);
return (_local3);
}
public function set is3D(_arg1:Boolean):void{
this._is3D = _arg1;
}
public function getNextKeyframe(_arg1:int, _arg2:String=""):KeyframeBase{
var _local4:KeyframeBase;
if (((((isNaN(_arg1)) || ((_arg1 < 0)))) || ((_arg1 > (this.duration - 1))))){
return (null);
};
var _local3:int = (_arg1 + 1);
while (_local3 < this.keyframes.length) {
_local4 = this.keyframes[_local3];
if (((_local4) && (_local4.affectsTweenable(_arg2)))){
return (_local4);
};
_local3++;
};
return (null);
}
public function getColorTransform(_arg1:int):ColorTransform{
var _local2:ColorTransform;
var _local3:KeyframeBase = this.getCurrentKeyframe(_arg1, "color");
if (((!(_local3)) || (!(_local3.color)))){
return (null);
};
var _local4:ColorTransform = _local3.color;
var _local5:Number = (_arg1 - _local3.index);
if (_local5 == 0){
_local2 = _local4;
};
return (_local2);
}
}
}//package fl.motion
Section 23
//MotionEvent (fl.motion.MotionEvent)
package fl.motion {
import flash.events.*;
public class MotionEvent extends Event {
public static const MOTION_UPDATE:String = "motionUpdate";
public static const TIME_CHANGE:String = "timeChange";
public static const MOTION_START:String = "motionStart";
public static const MOTION_END:String = "motionEnd";
public function MotionEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function clone():Event{
return (new MotionEvent(this.type, this.bubbles, this.cancelable));
}
}
}//package fl.motion
Section 24
//RotateDirection (fl.motion.RotateDirection)
package fl.motion {
public class RotateDirection {
public static const CW:String = "cw";
public static const CCW:String = "ccw";
public static const NONE:String = "none";
public static const AUTO:String = "auto";
}
}//package fl.motion
Section 25
//SimpleEase (fl.motion.SimpleEase)
package fl.motion {
public class SimpleEase implements ITween {
private var _ease:Number;// = 0
private var _target:String;// = ""
public function SimpleEase(_arg1:XML=null){
this.parseXML(_arg1);
}
public function set target(_arg1:String):void{
this._target = _arg1;
}
private function parseXML(_arg1:XML=null):SimpleEase{
if (_arg1){
if (_arg1.@ease.length()){
this.ease = Number(_arg1.@ease);
};
if (_arg1.@target.length()){
this.target = _arg1.@target;
};
};
return (this);
}
public function get ease():Number{
return (this._ease);
}
public function get target():String{
return (this._target);
}
public function getValue(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (easeQuadPercent(_arg1, _arg2, _arg3, _arg4, this.ease));
}
public function set ease(_arg1:Number):void{
this._ease = ((_arg1 > 1)) ? 1 : ((_arg1 < -1)) ? -1 : (isNaN(_arg1)) ? 0 : _arg1;
}
public static function easeQuadPercent(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Number{
if (_arg4 <= 0){
return (NaN);
};
if (_arg1 <= 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 >= 1){
return ((_arg2 + _arg3));
};
if (!_arg5){
return (((_arg3 * _arg1) + _arg2));
};
if (_arg5 > 1){
_arg5 = 1;
} else {
if (_arg5 < -1){
_arg5 = -1;
};
};
if (_arg5 < 0){
return ((((_arg3 * _arg1) * ((_arg1 * -(_arg5)) + (1 + _arg5))) + _arg2));
};
return ((((_arg3 * _arg1) * (((2 - _arg1) * _arg5) + (1 - _arg5))) + _arg2));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg4 <= 0){
return (NaN);
};
if (_arg1 <= 0){
return (_arg2);
};
if (_arg1 >= _arg4){
return ((_arg2 + _arg3));
};
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
}
}//package fl.motion
Section 26
//Source (fl.motion.Source)
package fl.motion {
import flash.geom.*;
public class Source {
public var instanceName:String;// = ""
public var symbolName:String;// = ""
public var dimensions:Rectangle;
public var scaleX:Number;// = 1
public var skewX:Number;// = 0
public var skewY:Number;// = 0
public var elementType:String;// = ""
public var transformationPoint:Point;
public var linkageID:String;// = ""
public var scaleY:Number;// = 1
public var frameRate:Number;// = NAN
public var x:Number;// = 0
public var y:Number;// = 0
public var rotation:Number;// = 0
public function Source(_arg1:XML=null){
this.parseXML(_arg1);
}
private function parseXML(_arg1:XML=null):Source{
var _local3:XML;
var _local4:XML;
var _local5:XML;
if (!_arg1){
return (this);
};
if (_arg1.@instanceName){
this.instanceName = String(_arg1.@instanceName);
};
if (_arg1.@symbolName){
this.symbolName = String(_arg1.@symbolName);
};
if (_arg1.@linkageID){
this.linkageID = String(_arg1.@linkageID);
};
if (!isNaN(_arg1.@frameRate)){
this.frameRate = Number(_arg1.@frameRate);
};
var _local2:XMLList = _arg1.elements();
for each (_local3 in _local2) {
if (_local3.localName() == "transformationPoint"){
_local4 = _local3.children()[0];
this.transformationPoint = new Point(Number(_local4.@x), Number(_local4.@y));
} else {
if (_local3.localName() == "dimensions"){
_local5 = _local3.children()[0];
this.dimensions = new Rectangle(Number(_local5.@left), Number(_local5.@top), Number(_local5.@width), Number(_local5.@height));
};
};
};
return (this);
}
}
}//package fl.motion
Section 27
//Tweenables (fl.motion.Tweenables)
package fl.motion {
public class Tweenables {
public static const SCALE_X:String = "scaleX";
public static const SCALE_Y:String = "scaleY";
public static const SKEW_X:String = "skewX";
public static const SKEW_Y:String = "skewY";
public static const ROTATION_CONCAT:String = "rotationConcat";
public static const ROTATION_X:String = "rotationX";
public static const X:String = "x";
public static const Y:String = "y";
public static const Z:String = "z";
public static const ROTATION:String = "rotation";
public static const ROTATION_Y:String = "rotationY";
}
}//package fl.motion
Section 28
//Regular (fl.transitions.easing.Regular)
package fl.transitions.easing {
public class Regular {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
}
}//package fl.transitions.easing
Section 29
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Tween extends EventDispatcher {
private var _position:Number;// = NAN
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var isPlaying:Boolean;// = false
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var begin:Number;// = NAN
private var _finish:Number;// = NAN
public var change:Number;// = NAN
public var looping:Boolean;// = false
private var _intervalID:uint;// = 0
public var func:Function;
private var _timer:Timer;// = null
private var _startTime:Number;// = NAN
public var prop:String;// = ""
private var _duration:Number;// = NAN
public var obj:Object;// = null
public var useSeconds:Boolean;// = false
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
this.func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function get duration():Number{
return (this._duration);
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function get FPS():Number{
return (this._fps);
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function get time():Number{
return (this._time);
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
}
}//package fl.transitions
Section 30
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var position:Number;// = NAN
public var time:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_LOOP:String = "motionLoop";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_RESUME:String = "motionResume";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 31
//Back (gs.easing.Back)
package gs.easing {
public class Back {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_arg5 + 1) * _arg1) - _arg5)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) - _arg5))) + _arg2));
};
_arg1 = (_arg1 - 2);
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 2)) + _arg2));
}
}
}//package gs.easing
Section 32
//Elastic (gs.easing.Elastic)
package gs.easing {
public class Elastic {
private static const _2PI:Number = 6.28318530717959;
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * 0.3);
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5)));
};
--_arg1;
return ((-(((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6)))) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * (0.3 * 1.5));
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6)))) + _arg2));
};
--_arg1;
return ((((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6))) * 0.5) + _arg3) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * 0.3);
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5)));
};
return (((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6))) + _arg3) + _arg2));
}
}
}//package gs.easing
Section 33
//TransformProxy (gs.utils.TransformProxy)
package gs.utils {
import flash.geom.*;
import flash.display.*;
import flash.utils.*;
public class TransformProxy {
private static const _DEG2RAD:Number = 0.0174532925199433;
private static const _RAD2DEG:Number = 57.2957795130823;
private static var _dict:Dictionary = new Dictionary();
private static var _registration:Point;
public static var curMatrix:Matrix;
public static var _target:DisplayObject;
private static var _localRegistration:Point;
private static var _regAt0:Boolean;
private static var _proxies:Array;
public static function set registrationY(_arg1:Number):void{
_registration.y = _arg1;
calibrateLocal();
}
public static function get skewY2():Number{
return ((skewY2Radians * _RAD2DEG));
}
public static function get skewXRadians():Number{
var _local1:Matrix;
_local1 = _target.transform.matrix;
return (Math.atan2(-(_local1.c), _local1.d));
}
public static function get rotation():Number{
return ((rotationRadians * _RAD2DEG));
}
public static function set skewY2(_arg1:Number):void{
skewY2Radians = (_arg1 * _DEG2RAD);
}
public static function set localRegistration(_arg1:Point):void{
_localRegistration = _arg1;
calibrateRegistration();
}
public static function get skewX():Number{
return ((skewXRadians * _RAD2DEG));
}
public static function get skewY():Number{
return ((skewYRadians * _RAD2DEG));
}
public static function get target():DisplayObject{
return (_target);
}
public static function get localRegistrationX():Number{
return (_localRegistration.x);
}
public static function set skewXRadians(_arg1:Number):void{
var _local2:Matrix;
var _local3:Number;
_local2 = _target.transform.matrix;
_local3 = Math.sqrt(((_local2.c * _local2.c) + (_local2.d * _local2.d)));
_local2.c = (-(_local3) * Math.sin(_arg1));
_local2.d = (_local3 * Math.cos(_arg1));
_target.transform.matrix = _local2;
if (!_regAt0){
reposition();
};
}
public static function get rotationRadians():Number{
var _local1:Matrix;
var _local2:Number;
var _local3:Number;
_local1 = _target.transform.matrix;
_local2 = Math.atan2(_local1.b, _local1.a);
_local3 = Math.atan2(-(_local1.c), _local1.d);
if ((_local3 * _local2) < 0){
if (_local2 <= 0){
return ((_local2 + Math.PI));
};
return ((_local2 - Math.PI));
//unresolved jump
};
return (_local2);
}
public static function get localRegistrationY():Number{
return (_localRegistration.y);
}
public static function set skewY(_arg1:Number):void{
skewYRadians = (_arg1 * _DEG2RAD);
}
public static function calibrateRegistration():void{
_registration = _target.parent.globalToLocal(_target.localToGlobal(_localRegistration));
if (_localRegistration.x == 0){
};
_regAt0 = (_localRegistration.y == 0);
}
public static function set skewX(_arg1:Number):void{
skewXRadians = (_arg1 * _DEG2RAD);
}
public static function set scaleY(_arg1:Number):void{
var _local2:Matrix;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local2 = _target.transform.matrix;
_local3 = Math.sqrt(((_local2.c * _local2.c) + (_local2.d * _local2.d)));
if (_local2.d < 0){
_local3 = -(_local3);
};
if (_local3){
_local4 = (_arg1 / _local3);
_local2.c = (_local2.c * _local4);
_local2.d = (_local2.d * _local4);
} else {
_local5 = Math.atan2(-(_local2.c), _local2.d);
_local2.c = (-(Math.sin(_local5)) * _arg1);
_local2.d = (Math.cos(_local5) * _arg1);
};
_target.transform.matrix = _local2;
if (!_regAt0){
reposition();
};
}
public static function get y():Number{
return (_registration.y);
}
public static function set localRegistrationX(_arg1:Number):void{
_localRegistration.x = _arg1;
calibrateRegistration();
}
public static function set target(_arg1:DisplayObject){
_target = _arg1;
_localRegistration = new Point(0, 0);
calibrateRegistration();
}
public static function set localRegistrationY(_arg1:Number):void{
_localRegistration.y = _arg1;
calibrateRegistration();
}
public static function set scaleX(_arg1:Number):void{
var _local2:Matrix;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local2 = _target.transform.matrix;
_local3 = Math.sqrt(((_local2.a * _local2.a) + (_local2.b * _local2.b)));
if (_local2.a < 0){
_local3 = -(_local3);
};
if (_local3){
_local4 = (_arg1 / _local3);
_local2.a = (_local2.a * _local4);
_local2.b = (_local2.b * _local4);
} else {
_local5 = Math.atan2(_local2.b, _local2.a);
_local2.a = (Math.cos(_local5) * _arg1);
_local2.b = (Math.sin(_local5) * _arg1);
};
_target.transform.matrix = _local2;
if (!_regAt0){
reposition();
};
}
public static function set scale(_arg1:Number):void{
var _local2:* = _arg1;
scaleY = _arg1;
scaleX = _local2;
}
public static function set rotationRadians(_arg1:Number):void{
var _local2:Matrix;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
_local2 = _target.transform.matrix;
_local3 = Math.atan2(_local2.b, _local2.a);
_local4 = Math.atan2(-(_local2.c), _local2.d);
_local5 = ((_local4 + _arg1) - _local3);
_local6 = Math.sqrt(((_local2.c * _local2.c) + (_local2.d * _local2.d)));
_local2.c = (-(_local6) * Math.sin(_local5));
_local2.d = (_local6 * Math.cos(_local5));
_local7 = Math.sqrt(((_local2.a * _local2.a) + (_local2.b * _local2.b)));
_local2.a = (_local7 * Math.cos(_arg1));
_local2.b = (_local7 * Math.sin(_arg1));
_target.transform.matrix = _local2;
if (!_regAt0){
reposition();
};
}
public static function moveRegX(_arg1:Number):void{
_registration.x = (_registration.x + _arg1);
}
public static function moveRegY(_arg1:Number):void{
_registration.y = (_registration.y + _arg1);
}
public static function get registration():Point{
return (_registration);
}
public static function get registrationX():Number{
return (_registration.x);
}
public static function get registrationY():Number{
return (_registration.y);
}
public static function get localRegistration():Point{
return (_localRegistration);
}
public static function set skewYRadians(_arg1:Number):void{
var _local2:Matrix;
var _local3:Number;
_local2 = _target.transform.matrix;
_local3 = Math.sqrt(((_local2.a * _local2.a) + (_local2.b * _local2.b)));
_local2.a = (_local3 * Math.cos(_arg1));
_local2.b = (_local3 * Math.sin(_arg1));
_target.transform.matrix = _local2;
if (!_regAt0){
reposition();
};
}
public static function get scale():Number{
return (((scaleX + scaleY) / 2));
}
public static function get scaleX():Number{
var _local1:Matrix;
_local1 = _target.transform.matrix;
if (_local1.a < 0){
return (-(Math.sqrt(((_local1.a * _local1.a) + (_local1.b * _local1.b)))));
};
return (Math.sqrt(((_local1.a * _local1.a) + (_local1.b * _local1.b))));
}
public static function set skewX2(_arg1:Number):void{
skewX2Radians = (_arg1 * _DEG2RAD);
}
public static function get scaleY():Number{
var _local1:Matrix;
_local1 = _target.transform.matrix;
if (_local1.d < 0){
return (-(Math.sqrt(((_local1.c * _local1.c) + (_local1.d * _local1.d)))));
};
return (Math.sqrt(((_local1.c * _local1.c) + (_local1.d * _local1.d))));
}
private static function reposition():void{
var _local1:Point;
_local1 = _target.parent.globalToLocal(_target.localToGlobal(_localRegistration));
_target.x = (_target.x + (_registration.x - _local1.x));
_target.y = (_target.y + (_registration.y - _local1.y));
}
public static function set skewY2Radians(_arg1:Number):void{
var _local2:Matrix;
_local2 = _target.transform.matrix;
_local2.b = Math.tan(_arg1);
_target.transform.matrix = _local2;
if (!_regAt0){
reposition();
};
}
public static function get skewYRadians():Number{
var _local1:Matrix;
_local1 = _target.transform.matrix;
return (Math.atan2(_local1.b, _local1.a));
}
public static function get skewX2():Number{
return ((skewX2Radians * _RAD2DEG));
}
private static function calibrateLocal():void{
_localRegistration = _target.globalToLocal(_target.parent.localToGlobal(_registration));
if (_localRegistration.x == 0){
};
_regAt0 = (_localRegistration.y == 0);
}
public static function get skewX2Radians():Number{
return (-(Math.atan(_target.transform.matrix.c)));
}
public static function get skewY2Radians():Number{
return (Math.atan(_target.transform.matrix.b));
}
public static function set x(_arg1:Number):void{
var _local2:Number;
var _local3:int;
_local2 = (_arg1 - _registration.x);
_target.x = (_target.x + _local2);
while (_local3-- > -1) {
_proxies[_proxies.length--].moveRegX(_local2);
};
}
public static function set registration(_arg1:Point):void{
_registration = _arg1;
calibrateLocal();
}
public static function set skewX2Radians(_arg1:Number):void{
var _local2:Matrix;
_local2 = _target.transform.matrix;
_local2.c = Math.tan(-(_arg1));
_target.transform.matrix = _local2;
if (!_regAt0){
reposition();
};
}
public static function get x():Number{
return (_registration.x);
}
public static function set y(_arg1:Number):void{
var _local2:Number;
var _local3:int;
_local2 = (_arg1 - _registration.y);
_target.y = (_target.y + _local2);
while (_local3-- > -1) {
_proxies[_proxies.length--].moveRegY(_local2);
};
}
public static function set rotation(_arg1:Number):void{
rotationRadians = (_arg1 * _DEG2RAD);
}
public static function set registrationX(_arg1:Number):void{
_registration.x = _arg1;
calibrateLocal();
}
}
}//package gs.utils
Section 34
//TweenFilterLite (gs.TweenFilterLite)
package gs {
import flash.filters.*;
import flash.utils.*;
public class TweenFilterLite extends TweenLite {
protected var _matrix:Array;
protected var _hf:Boolean;// = false
protected var _cmf:ColorMatrixFilter;
protected var _uncombinedTimeScale:Number;
protected var _filters:Array;
protected var _endMatrix:Array;
protected var _originalEase:Function;
protected var _clrsa:Array;
public static var removeTween:Function = TweenLite.removeTween;
public static var version:Number = 8.22;
private static var _idMatrix:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
private static var _lumB:Number = 0.072169;
public static var delayedCall:Function = TweenLite.delayedCall;
public static var killTweensOf:Function = TweenLite.killTweensOf;
private static var _lumG:Number = 0.71516;
protected static var _globalTimeScale:Number = 1;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
private static var _lumR:Number = 0.212671;
public static var getD:Function = TweenLite.getD;
public static var getP:Function = TweenLite.getP;
public function TweenFilterLite(_arg1:Object, _arg2:Number, _arg3:Object){
_filters = [];
super(_arg1, _arg2, _arg3);
_originalEase = this.vars.ease;
if (((!((_timeScale == 1))) && ((this.target is TweenFilterLite)))){
_uncombinedTimeScale = 1;
_timeScale = _globalTimeScale;
} else {
_uncombinedTimeScale = _timeScale;
_timeScale = (_timeScale * _globalTimeScale);
};
if (((!((_timeScale == 1))) && (!((this.delay == 0))))){
this.startTime = (this.initTime + (this.delay * (1000 / _timeScale)));
};
if (TweenLite.version < 8.16){
trace("TweenFilterLite error! Please update your TweenLite class or try deleting your ASO files. TweenFilterLite requires a more recent version. Download updates at http://www.TweenLite.com.");
};
if (_arg3.type != undefined){
trace((("TweenFilterLite error: " + _arg1) + " is using deprecated syntax. Please update to the new syntax. See http://www.TweenFilterLite.com for details."));
};
}
override public function killVars(_arg1:Object):void{
if (TweenLite.overwriteManager.enabled){
TweenLite.overwriteManager.killVars(_arg1, this.vars, this.tweens, _subTweens, _filters);
};
}
override public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{
var _local3:int;
var _local4:Object;
var _local5:Object;
var _local6:Object;
if (((((!(_arg1)) && (!((this.delay == 0))))) && (TweenLite.overwriteManager.enabled))){
TweenLite.overwriteManager.manageOverwrites(this, _all[this.target]);
};
_clrsa = [];
_filters = [];
_matrix = _idMatrix.slice();
_arg2 = (_arg2 + " blurFilter glowFilter colorMatrixFilter dropShadowFilter bevelFilter ");
if (_isDisplayObject){
if (this.vars.blurFilter != null){
_local4 = this.vars.blurFilter;
addFilter("blurFilter", _local4, BlurFilter, ["blurX", "blurY", "quality"], new BlurFilter(0, 0, ((_local4.quality) || (1))));
};
if (this.vars.glowFilter != null){
_local4 = this.vars.glowFilter;
addFilter("glowFilter", _local4, GlowFilter, ["alpha", "blurX", "blurY", "color", "quality", "strength", "inner", "knockout"], new GlowFilter(0xFFFFFF, 0, 0, 0, ((_local4.strength) || (1)), ((_local4.quality) || (1)), _local4.inner, _local4.knockout));
};
if (this.vars.colorMatrixFilter != null){
_local4 = this.vars.colorMatrixFilter;
_local5 = addFilter("colorMatrixFilter", _local4, ColorMatrixFilter, [], new ColorMatrixFilter(_matrix));
_cmf = _local5.filter;
_matrix = ColorMatrixFilter(_cmf).matrix;
if (((!((_local4.matrix == null))) && ((_local4.matrix is Array)))){
_endMatrix = _local4.matrix;
} else {
if (_local4.relative == true){
_endMatrix = _matrix.slice();
} else {
_endMatrix = _idMatrix.slice();
};
_endMatrix = setBrightness(_endMatrix, _local4.brightness);
_endMatrix = setContrast(_endMatrix, _local4.contrast);
_endMatrix = setHue(_endMatrix, _local4.hue);
_endMatrix = setSaturation(_endMatrix, _local4.saturation);
_endMatrix = setThreshold(_endMatrix, _local4.threshold);
if (!isNaN(_local4.colorize)){
_endMatrix = colorize(_endMatrix, _local4.colorize, _local4.amount);
} else {
if (!isNaN(_local4.color)){
_endMatrix = colorize(_endMatrix, _local4.color, _local4.amount);
};
};
};
_local3 = 0;
while (_local3 < _endMatrix.length) {
if (((!((_matrix[_local3] == _endMatrix[_local3]))) && (!((_matrix[_local3] == undefined))))){
this.tweens[this.tweens.length] = {o:_matrix, p:_local3.toString(), s:_matrix[_local3], c:(_endMatrix[_local3] - _matrix[_local3]), name:"colorMatrixFilter"};
};
_local3++;
};
};
if (this.vars.dropShadowFilter != null){
_local4 = this.vars.dropShadowFilter;
addFilter("dropShadowFilter", _local4, DropShadowFilter, ["alpha", "angle", "blurX", "blurY", "color", "distance", "quality", "strength", "inner", "knockout", "hideObject"], new DropShadowFilter(0, 45, 0, 0, 0, 0, 1, ((_local4.quality) || (1)), _local4.inner, _local4.knockout, _local4.hideObject));
};
if (this.vars.bevelFilter != null){
_local4 = this.vars.bevelFilter;
addFilter("bevelFilter", _local4, BevelFilter, ["angle", "blurX", "blurY", "distance", "highlightAlpha", "highlightColor", "quality", "shadowAlpha", "shadowColor", "strength"], new BevelFilter(0, 0, 0xFFFFFF, 0.5, 0, 0.5, 2, 2, 0, ((_local4.quality) || (1))));
};
if (this.vars.runBackwards == true){
_local3 = (_clrsa.length - 1);
while (_local3 > -1) {
_local6 = _clrsa[_local3];
_clrsa[_local3].sr = (_local6.sr + _local6.cr);
_local6.cr = (_local6.cr * -1);
_local6.sg = (_local6.sg + _local6.cg);
_local6.cg = (_local6.cg * -1);
_local6.sb = (_local6.sb + _local6.cb);
_local6.cb = (_local6.cb * -1);
_local6.f[_local6.p] = (((_local6.sr << 16) | (_local6.sg << 8)) | _local6.sb);
_local3--;
};
};
super.initTweenVals(true, _arg2);
} else {
super.initTweenVals(_arg1, _arg2);
};
}
public function set timeScale(_arg1:Number):void{
if (_arg1 < 1E-5){
_arg1 = (_uncombinedTimeScale = 1E-5);
} else {
_uncombinedTimeScale = _arg1;
_arg1 = (_arg1 * _globalTimeScale);
};
this.initTime = ((_curTime - ((((_curTime - this.initTime) - (this.delay * (1000 / _timeScale))) * _timeScale) * (1 / _arg1))) - (this.delay * (1000 / _arg1)));
if (this.startTime != 99999999999){
this.startTime = (this.initTime + (this.delay * (1000 / _arg1)));
};
_timeScale = _arg1;
}
public function get timeScale():Number{
return (_uncombinedTimeScale);
}
override public function render(_arg1:uint):void{
var _local3:Number;
var _local4:Object;
var _local5:int;
var _local6:Array;
var _local7:int;
var _local2:Number = (((_arg1 - this.startTime) / 1000) * _timeScale);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((_originalEase == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.vars.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4.o[_local4.p] = (_local4.s + (_local3 * _local4.c));
_local5--;
};
if (_hf){
_local5 = (_clrsa.length - 1);
while (_local5 > -1) {
_local4 = _clrsa[_local5];
_local4.f[_local4.p] = ((((_local4.sr + (_local3 * _local4.cr)) << 16) | ((_local4.sg + (_local3 * _local4.cg)) << 8)) | (_local4.sb + (_local3 * _local4.cb)));
_local5--;
};
if (_cmf != null){
ColorMatrixFilter(_cmf).matrix = _matrix;
};
_local6 = this.target.filters;
_local5 = 0;
while (_local5 < _filters.length) {
_local7 = (_local6.length - 1);
while (_local7 > -1) {
if ((_local6[_local7] is _filters[_local5].type)){
_local6.splice(_local7, 1, _filters[_local5].filter);
break;
};
_local7--;
};
_local5++;
};
this.target.filters = _local6;
};
if (_hst){
_local5 = (_subTweens.length - 1);
while (_local5 > -1) {
_subTweens[_local5].proxy(_subTweens[_local5]);
_local5--;
};
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
private function addFilter(_arg1:String, _arg2:Object, _arg3:Class, _arg4:Array, _arg5:BitmapFilter):Object{
var _local8:int;
var _local9:String;
var _local10:Number;
var _local11:Object;
var _local12:Object;
var _local6:Object = {type:_arg3, name:_arg1};
var _local7:Array = this.target.filters;
_local8 = 0;
while (_local8 < _local7.length) {
if ((_local7[_local8] is _arg3)){
_local6.filter = _local7[_local8];
break;
};
_local8++;
};
if (_local6.filter == undefined){
_local6.filter = _arg5;
_local7[_local7.length] = _local6.filter;
this.target.filters = _local7;
};
_local8 = 0;
while (_local8 < _arg4.length) {
_local9 = _arg4[_local8];
if (_arg2[_local9] != undefined){
if ((((((_local9 == "color")) || ((_local9 == "highlightColor")))) || ((_local9 == "shadowColor")))){
_local11 = HEXtoRGB(_local6.filter[_local9]);
_local12 = HEXtoRGB(_arg2[_local9]);
_clrsa[_clrsa.length] = {f:_local6.filter, p:_local9, sr:_local11.rb, cr:(_local12.rb - _local11.rb), sg:_local11.gb, cg:(_local12.gb - _local11.gb), sb:_local11.bb, cb:(_local12.bb - _local11.bb)};
} else {
if ((((((((_local9 == "quality")) || ((_local9 == "inner")))) || ((_local9 == "knockout")))) || ((_local9 == "hideObject")))){
_local6.filter[_local9] = _arg2[_local9];
} else {
if (typeof(_arg2[_local9]) == "number"){
_local10 = (_arg2[_local9] - _local6.filter[_local9]);
} else {
_local10 = Number(_arg2[_local9]);
};
this.tweens[this.tweens.length] = {o:_local6.filter, p:_local9, s:_local6.filter[_local9], c:_local10, name:_arg1};
};
};
};
_local8++;
};
_filters[_filters.length] = _local6;
_hf = true;
return (_local6);
}
public static function set globalTimeScale(_arg1:Number):void{
setGlobalTimeScale(_arg1);
}
public static function setHue(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 * (Math.PI / 180));
var _local3:Number = Math.cos(_arg2);
var _local4:Number = Math.sin(_arg2);
var _local5:Array = [((_lumR + (_local3 * (1 - _lumR))) + (_local4 * -(_lumR))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * -(_lumG))), ((_lumB + (_local3 * -(_lumB))) + (_local4 * (1 - _lumB))), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * 0.143)), ((_lumG + (_local3 * (1 - _lumG))) + (_local4 * 0.14)), ((_lumB + (_local3 * -(_lumB))) + (_local4 * -0.283)), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * -((1 - _lumR)))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * _lumG)), ((_lumB + (_local3 * (1 - _lumB))) + (_local4 * _lumB)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return (applyMatrix(_local5, _arg1));
}
public static function setContrast(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 + 0.01);
var _local3:Array = [_arg2, 0, 0, 0, (128 * (1 - _arg2)), 0, _arg2, 0, 0, (128 * (1 - _arg2)), 0, 0, _arg2, 0, (128 * (1 - _arg2)), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
public static function applyMatrix(_arg1:Array, _arg2:Array):Array{
var _local6:int;
var _local7:int;
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (_arg2);
};
var _local3:Array = [];
var _local4:int;
var _local5:int;
_local6 = 0;
while (_local6 < 4) {
_local7 = 0;
while (_local7 < 5) {
if (_local7 == 4){
_local5 = _arg1[(_local4 + 4)];
} else {
_local5 = 0;
};
_local3[(_local4 + _local7)] = (((((_arg1[_local4] * _arg2[_local7]) + (_arg1[(_local4 + 1)] * _arg2[(_local7 + 5)])) + (_arg1[(_local4 + 2)] * _arg2[(_local7 + 10)])) + (_arg1[(_local4 + 3)] * _arg2[(_local7 + 15)])) + _local5);
_local7++;
};
_local4 = (_local4 + 5);
_local6++;
};
return (_local3);
}
public static function colorize(_arg1:Array, _arg2:Number, _arg3:Number=1):Array{
if (isNaN(_arg2)){
return (_arg1);
};
if (isNaN(_arg3)){
_arg3 = 1;
};
var _local4:Number = (((_arg2 >> 16) & 0xFF) / 0xFF);
var _local5:Number = (((_arg2 >> 8) & 0xFF) / 0xFF);
var _local6:Number = ((_arg2 & 0xFF) / 0xFF);
var _local7:Number = (1 - _arg3);
var _local8:Array = [(_local7 + ((_arg3 * _local4) * _lumR)), ((_arg3 * _local4) * _lumG), ((_arg3 * _local4) * _lumB), 0, 0, ((_arg3 * _local5) * _lumR), (_local7 + ((_arg3 * _local5) * _lumG)), ((_arg3 * _local5) * _lumB), 0, 0, ((_arg3 * _local6) * _lumR), ((_arg3 * _local6) * _lumG), (_local7 + ((_arg3 * _local6) * _lumB)), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local8, _arg1));
}
public static function setBrightness(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = ((_arg2 * 100) - 100);
return (applyMatrix([1, 0, 0, 0, _arg2, 0, 1, 0, 0, _arg2, 0, 0, 1, 0, _arg2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], _arg1));
}
public static function setSaturation(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
var _local3:Number = (1 - _arg2);
var _local4:Number = (_local3 * _lumR);
var _local5:Number = (_local3 * _lumG);
var _local6:Number = (_local3 * _lumB);
var _local7:Array = [(_local4 + _arg2), _local5, _local6, 0, 0, _local4, (_local5 + _arg2), _local6, 0, 0, _local4, _local5, (_local6 + _arg2), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local7, _arg1));
}
public static function get globalTimeScale():Number{
return (_globalTimeScale);
}
public static function setGlobalTimeScale(_arg1:Number):void{
var _local3:Object;
var _local4:Object;
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
var _local2:Dictionary = _all;
_globalTimeScale = _arg1;
for each (_local3 in _local2) {
for (_local4 in _local3) {
if ((_local3[_local4] is TweenFilterLite)){
_local3[_local4].timeScale = (_local3[_local4].timeScale * 1);
};
};
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenFilterLite{
_arg3.runBackwards = true;
return (new TweenFilterLite(_arg1, _arg2, _arg3));
}
public static function HEXtoRGB(_arg1:Number):Object{
return ({rb:(_arg1 >> 16), gb:((_arg1 >> 8) & 0xFF), bb:(_arg1 & 0xFF)});
}
public static function setThreshold(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
var _local3:Array = [(_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenFilterLite{
return (new TweenFilterLite(_arg1, _arg2, _arg3));
}
}
}//package gs
Section 35
//TweenLite (gs.TweenLite)
package gs {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.utils.*;
import gs.utils.*;
public class TweenLite {
public var delay:Number;
protected var _hasUpdate:Boolean;
protected var _subTweens:Array;
protected var _initted:Boolean;
public var startTime:int;
public var target:Object;
public var duration:Number;
protected var _hst:Boolean;
protected var _isDisplayObject:Boolean;
protected var _active:Boolean;
public var tweens:Array;
public var vars:Object;
public var initTime:int;
protected var _timeScale:Number;
private static var _timer:Timer = new Timer(2000);
private static var _classInitted:Boolean;
public static var defaultEase:Function = TweenLite.easeOut;
public static var version:Number = 8.16;
protected static var _all:Dictionary = new Dictionary();
private static var _sprite:Sprite = new Sprite();
protected static var _curTime:uint;
public static var overwriteManager:Object;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
private static var _listening:Boolean;
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local5:*;
super();
if (_arg1 == null){
return;
};
if (!_classInitted){
_curTime = getTimer();
_sprite.addEventListener(Event.ENTER_FRAME, executeAll);
if (overwriteManager == null){
overwriteManager = {mode:0, enabled:false};
};
_classInitted = true;
};
this.vars = _arg3;
this.duration = ((_arg2) || (0.001));
this.delay = ((_arg3.delay) || (0));
_timeScale = ((_arg3.timeScale) || (1));
_active = (((_arg2 == 0)) && ((this.delay == 0)));
this.target = _arg1;
_isDisplayObject = (_arg1 is DisplayObject);
if (!(this.vars.ease is Function)){
this.vars.ease = defaultEase;
};
if (this.vars.easeParams != null){
this.vars.proxiedEase = this.vars.ease;
this.vars.ease = easeProxy;
};
if (!isNaN(Number(this.vars.autoAlpha))){
this.vars.alpha = Number(this.vars.autoAlpha);
this.vars.visible = (this.vars.alpha > 0);
};
this.tweens = [];
_subTweens = [];
_hst = (_initted = false);
this.initTime = _curTime;
this.startTime = (this.initTime + (this.delay * 1000));
var _local4:int = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
if ((((_all[_arg1] == undefined)) || (((!((_arg1 == null))) && ((_local4 == 1)))))){
delete _all[_arg1];
_all[_arg1] = new Dictionary(true);
} else {
if ((((_local4 > 1)) && ((this.delay == 0)))){
overwriteManager.manageOverwrites(this, _all[_arg1]);
};
};
_all[_arg1][this] = this;
if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (_active))){
initTweenVals();
if (_active){
render((this.startTime + 1));
} else {
render(this.startTime);
};
_local5 = this.vars.visible;
if (this.vars.isTV == true){
_local5 = this.vars.exposedProps.visible;
};
if (((((!((_local5 == null))) && ((this.vars.runBackwards == true)))) && (_isDisplayObject))){
this.target.visible = Boolean(_local5);
};
};
if (((!(_listening)) && (!(_active)))){
_timer.addEventListener("timer", killGarbage);
_timer.start();
_listening = true;
};
}
protected function addSubTween(_arg1:String, _arg2:Function, _arg3:Object, _arg4:Object, _arg5:Object=null):void{
var _local7:String;
var _local6:Object = {name:_arg1, proxy:_arg2, target:_arg3, info:_arg5};
_subTweens[_subTweens.length] = _local6;
for (_local7 in _arg4) {
if (typeof(_arg4[_local7]) == "number"){
this.tweens[this.tweens.length] = {o:_arg3, p:_local7, s:_arg3[_local7], c:(_arg4[_local7] - _arg3[_local7]), sub:_local6, name:_arg1};
} else {
this.tweens[this.tweens.length] = {o:_arg3, p:_local7, s:_arg3[_local7], c:Number(_arg4[_local7]), sub:_local6, name:_arg1};
};
};
_hst = true;
}
public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{
var _local3:String;
var _local4:int;
var _local6:Array;
var _local7:ColorTransform;
var _local8:ColorTransform;
var _local9:Point;
var _local10:*;
var _local11:*;
var _local12:Object;
var _local5:Object = this.vars;
if (_local5.isTV == true){
_local5 = _local5.exposedProps;
};
if (((((!(_arg1)) && (!((this.delay == 0))))) && (overwriteManager.enabled))){
overwriteManager.manageOverwrites(this, _all[this.target]);
};
if ((this.target is Array)){
_local6 = ((this.vars.endArray) || ([]));
_local4 = 0;
while (_local4 < _local6.length) {
if (((!((this.target[_local4] == _local6[_local4]))) && (!((this.target[_local4] == undefined))))){
this.tweens[this.tweens.length] = {o:this.target, p:_local4.toString(), s:this.target[_local4], c:(_local6[_local4] - this.target[_local4]), name:_local4.toString()};
};
_local4++;
};
} else {
if (((((!((typeof(_local5.tint) == "undefined"))) || ((this.vars.removeTint == true)))) && (_isDisplayObject))){
_local7 = this.target.transform.colorTransform;
_local8 = new ColorTransform();
if (_local5.alpha != undefined){
_local8.alphaMultiplier = _local5.alpha;
delete _local5.alpha;
} else {
_local8.alphaMultiplier = this.target.alpha;
};
if (((!((this.vars.removeTint == true))) && (((((!((_local5.tint == null))) && (!((_local5.tint == ""))))) || ((_local5.tint == 0)))))){
_local8.color = _local5.tint;
};
addSubTween("tint", tintProxy, {progress:0}, {progress:1}, {target:this.target, color:_local7, endColor:_local8});
};
if (_local5.Transform != null){
if (!this.target.parent){
return;
};
if (_local5.Transform.Point != null){
_local9 = new Point(((_local5.Transform.Point.x * this.target.width) / this.target.scaleX), ((_local5.Transform.Point.y * this.target.height) / this.target.scaleY));
} else {
_local9 = new Point(((0.5 * this.target.width) / this.target.scaleX), ((0.5 * this.target.height) / this.target.scaleY));
};
delete _local5.Transform["Point"];
_local10 = new Object();
TransformProxy.target = (this.target as DisplayObject);
for (_local11 in _local5.Transform) {
_local10[_local11] = TransformProxy[_local11];
};
addSubTween("matrix", transformProxy, {progress:0}, {progress:1}, {target:this.target, transfer:_local5.Transform, source:_local10, tpoint:_local9});
};
if (((!((_local5.frame == null))) && (_isDisplayObject))){
addSubTween("frame", frameProxy, {frame:this.target.currentFrame}, {frame:_local5.frame}, {target:this.target});
};
if (((!(isNaN(this.vars.volume))) && (this.target.hasOwnProperty("soundTransform")))){
addSubTween("volume", volumeProxy, this.target.soundTransform, {volume:this.vars.volume}, {target:this.target});
};
for (_local3 in _local5) {
if ((((((((((((((((((((((((((((((((((((((_local3 == "ease")) || ((_local3 == "delay")))) || ((_local3 == "overwrite")))) || ((_local3 == "onComplete")))) || ((_local3 == "onCompleteParams")))) || ((_local3 == "runBackwards")))) || ((_local3 == "visible")))) || ((_local3 == "autoOverwrite")))) || ((_local3 == "persist")))) || ((_local3 == "onUpdate")))) || ((_local3 == "onUpdateParams")))) || ((_local3 == "autoAlpha")))) || ((((_local3 == "timeScale")) && (!((this.target is TweenLite))))))) || ((_local3 == "onStart")))) || ((_local3 == "onStartParams")))) || ((_local3 == "renderOnStart")))) || ((_local3 == "proxiedEase")))) || ((_local3 == "easeParams")))) || (((_arg1) && (!((_arg2.indexOf(((" " + _local3) + " ")) == -1))))))){
} else {
if (((!(((_isDisplayObject) && ((((((((_local3 == "tint")) || ((_local3 == "Transform")))) || ((_local3 == "removeTint")))) || ((_local3 == "frame"))))))) && (!((((_local3 == "volume")) && (this.target.hasOwnProperty("soundTransform"))))))){
if (typeof(_local5[_local3]) == "number"){
this.tweens[this.tweens.length] = {o:this.target, p:_local3, s:this.target[_local3], c:(_local5[_local3] - this.target[_local3]), name:_local3};
} else {
this.tweens[this.tweens.length] = {o:this.target, p:_local3, s:this.target[_local3], c:Number(_local5[_local3]), name:_local3};
};
};
};
};
};
if (this.vars.runBackwards == true){
_local4 = (this.tweens.length - 1);
while (_local4 > -1) {
_local12 = this.tweens[_local4];
this.tweens[_local4].s = (_local12.s + _local12.c);
_local12.c = (_local12.c * -1);
_local4--;
};
};
if ((((_local5.visible == true)) && (_isDisplayObject))){
this.target.visible = true;
};
if (this.vars.onUpdate != null){
_hasUpdate = true;
};
_initted = true;
}
public function get active():Boolean{
if (_active){
return (true);
};
if (_curTime >= this.startTime){
_active = true;
if (!_initted){
initTweenVals();
} else {
if (((!((this.vars.visible == undefined))) && (_isDisplayObject))){
this.target.visible = true;
};
};
if (this.vars.onStart != null){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
return (true);
//unresolved jump
};
return (false);
}
public function render(_arg1:uint):void{
var _local3:Number;
var _local4:Object;
var _local5:int;
var _local2:Number = ((_arg1 - this.startTime) / 1000);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = 1;
} else {
_local3 = this.vars.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4.o[_local4.p] = (_local4.s + (_local3 * _local4.c));
_local5--;
};
if (_hst){
_local5 = (_subTweens.length - 1);
while (_local5 > -1) {
_subTweens[_local5].proxy(_subTweens[_local5]);
_local5--;
};
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
public function killVars(_arg1:Object):void{
if (overwriteManager.enabled){
overwriteManager.killVars(_arg1, this.vars, this.tweens, _subTweens, []);
};
}
public function complete(_arg1:Boolean=false):void{
if (!_arg1){
if (!_initted){
initTweenVals();
};
this.startTime = (_curTime - ((this.duration * 1000) / _timeScale));
render(_curTime);
return;
};
if (((!((this.vars.visible == undefined))) && (_isDisplayObject))){
if (((!(isNaN(this.vars.autoAlpha))) && ((this.target.alpha == 0)))){
this.target.visible = false;
} else {
if (this.vars.runBackwards != true){
this.target.visible = this.vars.visible;
};
};
};
if (this.vars.persist != true){
removeTween(this);
};
if (this.vars.onComplete != null){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
};
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function frameProxy(_arg1:Object):void{
_arg1.info.target.gotoAndStop(Math.round(_arg1.target.frame));
}
public static function tintProxy(_arg1:Object):void{
var _local2:Number = _arg1.target.progress;
var _local3:Number = (1 - _local2);
var _local4:Object = _arg1.info.color;
var _local5:Object = _arg1.info.endColor;
_arg1.info.target.transform.colorTransform = new ColorTransform(((_local4.redMultiplier * _local3) + (_local5.redMultiplier * _local2)), ((_local4.greenMultiplier * _local3) + (_local5.greenMultiplier * _local2)), ((_local4.blueMultiplier * _local3) + (_local5.blueMultiplier * _local2)), ((_local4.alphaMultiplier * _local3) + (_local5.alphaMultiplier * _local2)), ((_local4.redOffset * _local3) + (_local5.redOffset * _local2)), ((_local4.greenOffset * _local3) + (_local5.greenOffset * _local2)), ((_local4.blueOffset * _local3) + (_local5.blueOffset * _local2)), ((_local4.alphaOffset * _local3) + (_local5.alphaOffset * _local2)));
}
public static function removeTween(_arg1:TweenLite=null):void{
if (((!((_arg1 == null))) && (!((_all[_arg1.target] == undefined))))){
_all[_arg1.target][_arg1] = null;
delete _all[_arg1.target][_arg1];
};
}
public static function transformProxy(_arg1:Object):void{
var _local4:String;
if (!_arg1.info.target.parent){
return;
};
var _local2:Number = _arg1.target.progress;
var _local3:Number = (1 - _local2);
TransformProxy.target = _arg1.info.target;
TransformProxy.localRegistration = _arg1.info.tpoint;
for (_local4 in _arg1.info.transfer) {
TransformProxy[_local4] = ((_arg1.info.source[_local4] * _local3) + (_arg1.info.transfer[_local4] * _local2));
};
}
public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{
var _local3:Object;
var _local4:*;
if (((!((_arg1 == null))) && (!((_all[_arg1] == undefined))))){
if (_arg2){
_local3 = _all[_arg1];
for (_local4 in _local3) {
_local3[_local4].complete(false);
};
};
delete _all[_arg1];
};
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0}));
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function executeAll(_arg1:Event=null):void{
var _local3:Dictionary;
var _local4:Object;
var _local5:Object;
var _local2:uint = (_curTime = getTimer());
if (_listening){
_local3 = _all;
for each (_local4 in _local3) {
for (_local5 in _local4) {
if (((!((_local4[_local5] == undefined))) && (_local4[_local5].active))){
_local4[_local5].render(_local2);
};
};
};
};
}
public static function volumeProxy(_arg1:Object):void{
_arg1.info.target.soundTransform = _arg1.target;
}
public static function getD(_arg1:Object=null):Number{
var _local4:TweenLite;
var _local2:Number = 0;
var _local3:Dictionary = _all[_arg1];
for each (_local4 in _local3) {
_local2 = (_local2 + (_local4.duration + _local4.delay));
};
return (_local2);
}
public static function killGarbage(_arg1:TimerEvent):void{
var _local3:Boolean;
var _local4:Object;
var _local5:Object;
var _local6:Object;
var _local2:uint;
for (_local4 in _all) {
_local3 = false;
for (_local5 in _all[_local4]) {
_local3 = true;
break;
};
if (!_local3){
delete _all[_local4];
} else {
_local2++;
};
};
if (_local2 == 0){
_timer.removeEventListener("timer", killGarbage);
_timer.stop();
_listening = false;
};
}
public static function getP(_arg1:Object=null):Boolean{
var _local3:TweenLite;
var _local2:Dictionary = _all[_arg1];
for each (_local3 in _local2) {
return (true);
};
return (false);
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package gs
Section 36
//CheckSounds_26 (nwq_fla.CheckSounds_26)
package nwq_fla {
import flash.display.*;
public dynamic class CheckSounds_26 extends MovieClip {
public function CheckSounds_26(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package nwq_fla
Section 37
//gameZheroPreloader_98 (nwq_fla.gameZheroPreloader_98)
package nwq_fla {
import flash.display.*;
public dynamic class gameZheroPreloader_98 extends MovieClip {
public var pr:MovieClip;
public function gameZheroPreloader_98(){
addFrameScript(139, frame140);
}
function frame140(){
stop();
}
}
}//package nwq_fla
Section 38
//mcTime_64 (nwq_fla.mcTime_64)
package nwq_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.filters.*;
import flash.utils.*;
import objects.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.system.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class mcTime_64 extends MovieClip {
public var field;
public function mcTime_64(){
addFrameScript(0, frame1);
}
function frame1(){
field = addChild(new SpriteText("0", 20));
field.x = 25;
field.y = -13;
}
}
}//package nwq_fla
Section 39
//MenuScene_2 (nwq_fla.MenuScene_2)
package nwq_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.filters.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.system.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class MenuScene_2 extends MovieClip {
public var nmScorer:MovieClip;
public var _play;
public var nm_btn1:SimpleButton;
public var nm_btn2:SimpleButton;
public var nm_btn3:SimpleButton;
public var maxLvlv:int;
public var nm_btn4:SimpleButton;
public var _help;
public var _credfits;
public var btn_cont:SimpleButton;
public var _story;
public var currentMenu;
public function MenuScene_2(){
addFrameScript(0, frame1);
}
public function ff(_arg1:Event){
ss.play("click");
if (!this.contains(_play)){
removeChild(currentMenu);
currentMenu = addChild((_play = new gui_level_icons()));
currentMenu.x = 174;
currentMenu.y = 35;
} else {
g.so.data.svLevel = 1;
g.score_play = 0;
g.so.data.svScore = 0;
main.id.gotoAndStop(3);
};
}
function frame1(){
_help = new oHelp();
_play = new gui_level_icons();
_credfits = new gui_credits();
_story = new gui_story();
currentMenu = addChild(_play);
currentMenu.x = 174;
currentMenu.y = 35;
maxLvlv = 21;
if (g.onZero){
maxLvlv = 21;
} else {
maxLvlv = 17;
};
nm_btn1.addEventListener(MouseEvent.CLICK, ff);
if (g.so.data.svLevel < maxLvlv){
btn_cont.addEventListener(MouseEvent.CLICK, ff1);
} else {
btn_cont.visible = false;
btn_cont.scaleX = 0;
};
nm_btn2.addEventListener(MouseEvent.CLICK, ff2);
nm_btn3.addEventListener(MouseEvent.CLICK, ff3);
nm_btn4.addEventListener(MouseEvent.CLICK, ff4);
An.play(nmScorer, "blurFromUp");
}
public function ff1(_arg1:Event){
ss.play("click");
trace(("mm: " + main.id));
main.id.gotoAndStop(3);
}
public function ff2(_arg1:Event){
ss.play("click");
if (!this.contains(_credfits)){
removeChild(currentMenu);
currentMenu = addChild(_credfits);
currentMenu.x = 307;
currentMenu.y = 140;
};
}
public function ff4(_arg1:Event){
ss.play("click");
if (!this.contains(_story)){
removeChild(currentMenu);
currentMenu = addChild(_story);
currentMenu.x = 307;
currentMenu.y = 140;
};
}
public function ff3(_arg1:Event){
ss.play("click");
if (!this.contains(_help)){
removeChild(currentMenu);
currentMenu = addChild(_help);
currentMenu.x = 307;
currentMenu.y = 140;
};
}
}
}//package nwq_fla
Section 40
//preloader_container_19 (nwq_fla.preloader_container_19)
package nwq_fla {
import flash.display.*;
public dynamic class preloader_container_19 extends MovieClip {
public function preloader_container_19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package nwq_fla
Section 41
//Symbol19_3 (nwq_fla.Symbol19_3)
package nwq_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.filters.*;
import flash.utils.*;
import objects.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.system.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class Symbol19_3 extends MovieClip {
public var field;
public function Symbol19_3(){
addFrameScript(0, frame1);
}
function frame1(){
field = addChild(new SpriteText(String(g.score_play), 20));
field.x = 32;
field.y = -12;
}
}
}//package nwq_fla
Section 42
//Symbol29_8 (nwq_fla.Symbol29_8)
package nwq_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class Symbol29_8 extends MovieClip {
public var nm_btn1:SimpleButton;
public var url:String;
public var request:URLRequest;
public function Symbol29_8(){
addFrameScript(0, frame1);
}
public function ff(_arg1:Event=null){
navigateToURL(request, "_blank");
}
function frame1(){
url = "http://www.gamezhero.com/?utm_campaign=nanofarm&utm_source=nanofarm&utm_medium=more_free_games";
request = new URLRequest(url);
nm_btn1.addEventListener(MouseEvent.CLICK, ff);
}
}
}//package nwq_fla
Section 43
//Symbol30_10 (nwq_fla.Symbol30_10)
package nwq_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class Symbol30_10 extends MovieClip {
public var nm_btn1:SimpleButton;
public var url:String;
public var request:URLRequest;
public function Symbol30_10(){
addFrameScript(0, frame1);
}
public function ff(_arg1:Event=null){
navigateToURL(request, "_blank");
}
function frame1(){
url = "http://www.gamezhero.com/topscore/nanofarm/?utm_campaign=nanofarm&utm_source=nanofarm&utm_medium=top_score";
request = new URLRequest(url);
nm_btn1.addEventListener(MouseEvent.CLICK, ff);
}
}
}//package nwq_fla
Section 44
//Symbol31_12 (nwq_fla.Symbol31_12)
package nwq_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class Symbol31_12 extends MovieClip {
public var nm_btn1:SimpleButton;
public var url:String;
public var request:URLRequest;
public function Symbol31_12(){
addFrameScript(0, frame1);
}
public function ff(_arg1:Event=null){
navigateToURL(request, "_blank");
}
function frame1(){
url = "http://www.gamezhero.com/topscore/nanofarm/?utm_campaign=nanofarm&utm_source=nanofarm&utm_medium=zorro_logo";
request = new URLRequest(url);
nm_btn1.addEventListener(MouseEvent.CLICK, ff);
}
}
}//package nwq_fla
Section 45
//Symbol36_71 (nwq_fla.Symbol36_71)
package nwq_fla {
import gs.*;
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.filters.*;
import gs.easing.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.system.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class Symbol36_71 extends MovieClip {
public var j;
public var nm_btn1:SimpleButton;
public var url:String;
public var request:URLRequest;
public function Symbol36_71(){
addFrameScript(0, frame1);
}
public function ff(_arg1:Event=null){
navigateToURL(request, "_blank");
}
function frame1(){
url = "http://www.gamezhero.com/online-games/puzzle-games/nanofarm-games.html?utm_campaign=nanofarm&utm_source=nanofarm&utm_medium=locked_levels";
request = new URLRequest(url);
nm_btn1.addEventListener(MouseEvent.CLICK, ff);
j = nm_btn1;
if (g.onZero == false){
TweenFilterLite.from(j, 1.6, {delay:(16 * 0.08), ease:Elastic.easeOut, overwrite:1, alpha:0, y:(j.y + j.height), blurFilter:{blurX:0, blurY:33}});
} else {
j.visible = false;
j.alpha = 0;
j.mouseEnabled = false;
};
}
}
}//package nwq_fla
Section 46
//Symbol37_34 (nwq_fla.Symbol37_34)
package nwq_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class Symbol37_34 extends MovieClip {
public var nm_btn1:SimpleButton;
public var url:String;
public var request:URLRequest;
public function Symbol37_34(){
addFrameScript(0, frame1);
}
public function ff(_arg1:Event=null){
navigateToURL(request, "_blank");
}
function frame1(){
url = "http://www.gamezhero.com/online-games/puzzle-games/nanofarm-games.html?utm_campaign=nanofarm&utm_source=nanofarm&utm_medium=locked_levels";
request = new URLRequest(url);
nm_btn1.addEventListener(MouseEvent.CLICK, ff);
}
}
}//package nwq_fla
Section 47
//youtubeBtn_79 (nwq_fla.youtubeBtn_79)
package nwq_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class youtubeBtn_79 extends MovieClip {
public var url:String;
public var request:URLRequest;
public function youtubeBtn_79(){
addFrameScript(0, frame1);
}
public function ff(_arg1:Event=null){
navigateToURL(request, "_blank");
}
function frame1(){
url = "http://www.youtube.com/watch?v=NsHFvrMVFB0";
request = new URLRequest(url);
this.addEventListener(MouseEvent.CLICK, ff);
}
}
}//package nwq_fla
Section 48
//z_2_15 (nwq_fla.z_2_15)
package nwq_fla {
import flash.display.*;
public dynamic class z_2_15 extends MovieClip {
public function z_2_15(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package nwq_fla
Section 49
//ImageArray (objects.ImageArray)
package objects {
import flash.geom.*;
import flash.display.*;
public dynamic class ImageArray extends Array {
public function ImageArray(_arg1:String, _arg2:Bitmap, _arg3:uint=1, _arg4:uint=1){
var _local10:uint;
var _local12:Array;
var _local13:uint;
super();
if (_arg1 != null){
_local12 = _arg1.split("");
};
var _local5:BitmapData;
var _local6:Rectangle;
var _local7:Point;
var _local8:int = (_arg2.width / _arg4);
var _local9:int = (_arg2.height / _arg3);
var _local11:uint;
while (_local11 < _arg3) {
_local13 = 0;
while (_local13 < _arg4) {
_local5 = new BitmapData(_local8, _local9, true, 0xFF);
_local6 = new Rectangle((_local13 * _local8), (_local11 * _local9), _local8, _local9);
_local7 = new Point(0, 0);
_local5.copyPixels(_arg2.bitmapData, _local6, _local7);
_local10 = ((_local11 * _arg4) + _local13);
if (_arg1 != null){
this[_local12[_local10]] = _local5;
} else {
this.push(_local5);
};
_local13++;
};
_local11++;
};
}
}
}//package objects
Section 50
//SpriteText (objects.SpriteText)
package objects {
import flash.display.*;
public class SpriteText extends Sprite {
var target:BitmapData;
var bitmaps:Array;
var mytext:String;
var step:int;// = 28
public function SpriteText(_arg1:String, _arg2:int=28){
var xx:int;
var AddSymbol:Function;
var str = _arg1;
var _stp = _arg2;
bitmaps = new Array();
super();
AddSymbol = function (_arg1, _arg2:int, _arg3:Array):void{
target = g.char1_array[_arg1];
var _local4:* = (addChild((bitmaps[_arg2] = new Bitmap(target))).x = (xx = (xx + step)));
};
mytext = str;
step = _stp;
var results:Array = str.split("");
xx = 0;
results.forEach(AddSymbol);
}
public function set text(_arg1:String){
mytext = _arg1;
var _local2:int = bitmaps.length;
var _local3:Array = _arg1.split("");
var _local4:uint = ((_local3.length)<_local2) ? bitmaps.length : _local3.length;
var _local5:int = (_local4 * step);
while (_local4--) {
target = g.char1_array[_local3[_local4]];
if (_local4 >= _local3.length){
removeChild(getChildAt(_local4));
} else {
if (_local4 < _local2){
if (bitmaps[_local4].bitmapData != target){
removeChild(getChildAt(_local4));
addChildAt((bitmaps[_local4] = new Bitmap(target)), _local4).x = _local5;
} else {
getChildAt(_local4).x = _local5;
};
} else {
addChild((bitmaps[_local4] = new Bitmap(target))).x = _local5;
};
};
_local5 = (_local5 - step);
};
bitmaps.length = _local3.length;
}
public function get text():String{
return (mytext);
}
}
}//package objects
Section 51
//An (An)
package {
import gs.*;
import flash.events.*;
import flash.display.*;
import gs.easing.*;
import flash.utils.*;
public class An {
public static var anim_index:int = 0;
public static var i:TweenFilterLite;
public static var animations = new Object();
private static var wait:Function = TweenFilterLite.getD;
public static var getP:Function = TweenLite.getP;
public static var id:An;
public static var anim_handler:Dictionary = new Dictionary();
public function An(){
id = this;
player.index = 0;
initAnim();
}
public function initAnim(){
animations["Flash"] = function (_arg1:Object=null):TweenFilterLite{
TweenFilterLite.to(_arg1, 0.5, {overwrite:3, colorMatrixFilter:{brightness:1.5}});
return (TweenFilterLite.to(_arg1, 0.5, {delay:0.5, overwrite:3, colorMatrixFilter:{brightness:1}}));
};
animations["blowIn"] = function (_arg1:Object=null):TweenFilterLite{
TweenFilterLite.to(_arg1, 0, {delay:wait(_arg1), tint:0xFFFF, alpha:0});
TweenFilterLite.to(_arg1, 1, {delay:wait(_arg1), alpha:0.5, Transform:{scaleX:0.12, scaleY:3, Point:{x:0.5, y:0.2}}, blurFilter:{blurX:5, blurY:5, quality:1}});
return (TweenFilterLite.to(_arg1, 0.5, {delay:wait(_arg1), alpha:1, Transform:{scaleX:1, scaleY:1, Point:{x:0.5, y:0.2}}, removeTint:true, blurFilter:{blurX:0, blurY:0}}));
};
animations["blowOut"] = function (_arg1:Object=null):TweenFilterLite{
TweenFilterLite.to(_arg1, 0.7, {delay:wait(_arg1), tint:0xFFFF, Transform:{scaleX:0.5, scaleY:1.4, Point:{x:0.5, y:0.2}}, blurFilter:{blurX:5, blurY:5, quality:1}});
return (TweenFilterLite.to(_arg1, 0.5, {delay:wait(_arg1), alpha:0, Transform:{scaleX:1, scaleY:1, Point:{x:0.5, y:0.2}}, blurFilter:{blurX:20, blurY:20}}));
};
animations["blurMoveDw"] = function (_arg1:Object=null):TweenFilterLite{
return (TweenFilterLite.from(_arg1, 1.6, {delay:(Math.random() / 2), ease:Elastic.easeOut, overwrite:1, alpha:0, y:(_arg1.y + _arg1.height), blurFilter:{blurX:0, blurY:33}}));
};
animations["blurFromUp"] = function (_arg1:Object=null):TweenFilterLite{
return (TweenFilterLite.from(_arg1, 1.6, {delay:(Math.random() / 2), ease:Elastic.easeOut, overwrite:1, alpha:0, y:(_arg1.y - (_arg1.height * 3)), blurFilter:{blurX:0, blurY:33}}));
};
animations["blurToUp"] = function (_arg1:Object=null):TweenFilterLite{
return (TweenFilterLite.to(_arg1, 1.3, {delay:(Math.random() / 2), ease:Back.easeIn, overwrite:1, alpha:0, y:(_arg1.y - (_arg1.height * 3)), blurFilter:{blurX:0, blurY:33}}));
};
animations["blowTel"] = function (_arg1:Object=null):TweenFilterLite{
TweenFilterLite.to(_arg1, 0.7, {delay:wait(_arg1), tint:0xFFFF, Transform:{scaleX:0.5, scaleY:1.4, Point:{x:0.5, y:0.2}}, blurFilter:{blurX:5, blurY:5, quality:1}});
return (TweenFilterLite.to(_arg1, 1.3, {delay:wait(_arg1), alpha:0, Transform:{scaleX:1, scaleY:0.001, Point:{x:0.5, y:0.2}}, blurFilter:{blurX:33, blurY:33}}));
};
animations["blurIn"] = function (_arg1:Object=null):TweenFilterLite{
return (TweenFilterLite.from(_arg1, 1.6, {overwrite:1, alpha:0, blurFilter:{blurX:33, blurY:0}}));
};
animations["blurOut"] = function (_arg1:Object=null):TweenFilterLite{
return (TweenFilterLite.to(_arg1, 1.6, {overwrite:1, alpha:0, blurFilter:{blurX:33, blurY:0}}));
};
}
public static function play(_arg1, _arg2:String):TweenFilterLite{
return (animations[_arg2](_arg1));
}
}
}//package
Section 52
//BabyKruffy (BabyKruffy)
package {
import flash.display.*;
public dynamic class BabyKruffy extends BitmapData {
public function BabyKruffy(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 53
//Background (Background)
package {
import flash.display.*;
public dynamic class Background extends MovieClip {
}
}//package
Section 54
//Cactus (Cactus)
package {
import flash.display.*;
public dynamic class Cactus extends MovieClip {
}
}//package
Section 55
//dead_wall (dead_wall)
package {
public dynamic class dead_wall extends wall {
}
}//package
Section 56
//Ef_telepin (Ef_telepin)
package {
import flash.display.*;
public dynamic class Ef_telepin extends MovieClip {
public var effect_index:mcBlank;
}
}//package
Section 57
//g (g)
package {
import flash.events.*;
import flash.display.*;
import objects.*;
import flash.net.*;
public class g extends Sprite {
public static var score_play:int = 0;
public static var Master:MovieClip;
public static var can_play:Boolean = true;
public static var totalLvs:int = 20;
static var deft = "0123456789";
public static var game_mode:String;
public static var temp;
public static var now:Date = new Date();
public static var so:SharedObject = SharedObject.getLocal("tyuytkVars");
public static var second_play:int;
public static var steps:int = 0;
public static var endDate:Date = new Date();
public static var onZero:Boolean = false;
public static var lvs:Object = new Object();
public static var char1_array:Array = new ImageArray(deft, new Bitmap(new BabyKruffy(0, 0)), 1, 10);
public static var main:Stage;
public function g(){
if (g.so.data.svTime == undefined){
g.so.data.svTime = 0;
};
if (g.so.data.svScore == undefined){
g.so.data.svScore = 0;
};
if (g.so.data.svLevel == undefined){
g.so.data.svLevel = 1;
};
score_play = g.so.data.svScore;
}
public function setPlay(){
}
}
}//package
Section 58
//gui_credits (gui_credits)
package {
import flash.display.*;
public dynamic class gui_credits extends MovieClip {
}
}//package
Section 59
//gui_level_icons (gui_level_icons)
package {
import gs.*;
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.filters.*;
import gs.easing.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.system.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class gui_level_icons extends MovieClip {
public var h;
public var nmLocked:MovieClip;
public var j;
public var k;
public var i;
public function gui_level_icons(){
addFrameScript(0, frame1);
}
function frame1(){
h = new Object();
i = 0;
while (i < g.totalLvs) {
j = addChild(new level_icon());
j.gotoAndStop((i + 1));
j.x = ((i % 4) * 52);
j.y = (int((i / 4)) * 52);
if (g.so.data.svLevel < (i + 1)){
j.alpha = 0.5;
} else {
j.alpha = 0.9;
if (g.so.data.svLevel == (i + 1)){
j.alpha = 1;
trace(("addList:" + i));
if ((((g.onZero == false)) && ((g.so.data.svLevel == 17)))){
j.alpha = 0.5;
} else {
j.addEventListener(MouseEvent.CLICK, hnnm1);
j.addEventListener(MouseEvent.ROLL_OVER, hnnm2);
};
};
};
TweenFilterLite.from(j, 1.6, {delay:(i * 0.08), ease:Elastic.easeOut, overwrite:1, alpha:0, y:(j.y + j.height), blurFilter:{blurX:0, blurY:33}});
h[("_t_" + i)] = j;
i++;
};
addChild(getChildByName("nmLocked"));
}
public function hnnm1(_arg1:MouseEvent){
var _local2:*;
for (_local2 in h) {
h[_local2].removeEventListener(MouseEvent.CLICK, hnnm1);
h[_local2].removeEventListener(MouseEvent.ROLL_OVER, hnnm2);
delete h[_local2];
};
main.id.gotoAndStop(3);
}
public function hnnm2(_arg1:MouseEvent){
An.play(_arg1.target, "Flash");
}
}
}//package
Section 60
//gui_story (gui_story)
package {
import flash.events.*;
import flash.display.*;
public dynamic class gui_story extends MovieClip {
public var btn1:SimpleButton;
public var btn2:SimpleButton;
public function gui_story(){
addFrameScript(0, frame1);
}
public function ff1(_arg1:Event){
ss.play("click");
gotoAndStop((currentFrame - 1));
}
public function ff2(_arg1:Event){
ss.play("click");
gotoAndStop((currentFrame + 1));
}
function frame1(){
stop();
btn1.addEventListener(MouseEvent.CLICK, ff1);
btn2.addEventListener(MouseEvent.CLICK, ff2);
}
}
}//package
Section 61
//IMoving (IMoving)
package {
public interface IMoving {
}
}//package
Section 62
//ISolid (ISolid)
package {
public interface ISolid {
}
}//package
Section 63
//left_wall (left_wall)
package {
public dynamic class left_wall extends wall {
}
}//package
Section 64
//level (level)
package {
import flash.events.*;
import flash.display.*;
public class level extends MovieClip {
public static var fn_levels:Object = new Object();
public static var tmp_object = new Object();
public static var tmp_array = new Array();
public static var shifts:Object = new Object();
public static var id:level;
public static var tmp_odynam = new Object();
public function level(){
g.main.stage.focus = g.main;
shifts["1"] = [0, 1];
shifts["2"] = [0, 1];
shifts["3"] = [0, 0];
shifts["4"] = [0, 0];
shifts["5"] = [-1, 1];
shifts["6"] = [0, 0];
shifts["7"] = [0, 1];
shifts["8"] = [-1, 0];
shifts["9"] = [-1, 0];
shifts["10"] = [-1, 0];
shifts["11"] = [-1, 1];
shifts["12"] = [0, 1];
shifts["13"] = [-1, 1];
shifts["14"] = [-1, 1];
shifts["15"] = [-1, 0];
shifts["16"] = [-1, 1];
shifts["17"] = [0, 0];
shifts["18"] = [0, 0];
shifts["19"] = [0, 0];
shifts["20"] = [0, 0];
id = this;
player.index = 0;
g.steps = 0;
stop();
}
public function initSheeps(_arg1:Event=null){
var _local2:*;
g.main.addEventListener(KeyboardEvent.KEY_DOWN, player.ev_moveSheeps);
for each (_local2 in tmp_odynam) {
_local2.Init(null);
};
}
public function setWall():void{
var _local1:*;
var _local2:*;
var _local3:*;
var _local5:*;
var _local6:Object;
var _local4:int = (16 * 16);
while (_local4--) {
_local2 = (int((_local4 / 16)) + 1);
_local1 = ((_local4 % 16) + 1);
_local6 = tmp_object[((_local1 + "_") + _local2)];
if ((_local6 is wall)){
_local5 = null;
_local3 = null;
_local6.stop();
if ((((tmp_object[((_local1 + "_") + (_local2 + 1))] is wall)) || ((tmp_object[((_local1 + "_") + (_local2 - 1))] is wall)))){
_local5 = _local6.addChild(new left_wall());
};
if ((((tmp_object[(((_local1 + 1) + "_") + _local2)] is wall)) || ((tmp_object[(((_local1 - 1) + "_") + _local2)] is wall)))){
_local5 = _local6.addChild(new top_wall());
};
_local6.y = (_local6.y + (5 * Math.random()));
if ((_local6 is dead_wall)){
if ((((tmp_object[(((_local1 + 1) + "_") + _local2)] is wall)) || ((tmp_object[(((_local1 - 1) + "_") + _local2)] is wall)))){
_local3 = _local6.addChild(new power_up());
_local3.gotoAndPlay(int((Math.random() * 60)));
} else {
_local3 = _local6.addChild(new power_dw());
_local3.gotoAndPlay(int((Math.random() * 60)));
};
};
if (!_local5){
_local5 = _local6.addChild(new left_wall());
if (!_local3){
_local5 = _local6.addChild(new top_wall());
};
};
};
};
after_created();
}
public function after_created(){
var _local1:* = An.play(this, "blurIn");
_local1.vars["onComplete"] = initSheeps;
}
public function instance_create(_arg1, _arg2, _arg3):Object{
var _local5:Object;
_arg1 = (_arg1 + shifts[level_Scene.curs_level][0]);
_arg2 = (_arg2 + shifts[level_Scene.curs_level][1]);
var _local4:* = new (_arg3);
_local4.x = ((_arg1 * 32) + 12);
_local4.y = ((_arg2 * 32) + 12);
_local5 = id.addChild(_local4);
tmp_array.push(_local5);
if ((_local5 is IMoving)){
tmp_odynam[((_arg1 + "_") + _arg2)] = _local5;
} else {
tmp_object[((_arg1 + "_") + _arg2)] = _local5;
};
return (_local5);
}
public function restart():void{
}
public static function destroy(_arg1:Boolean=false){
var _local2:*;
var _local3:int;
g.main.removeEventListener(KeyboardEvent.KEY_DOWN, player.ev_moveSheeps);
tmp_array.length = 0;
for (_local2 in tmp_object) {
delete tmp_object[_local2];
};
for (_local2 in tmp_odynam) {
delete tmp_odynam[_local2];
};
_local3 = id.numChildren;
while (_local3--) {
id.removeChildAt(_local3);
};
id.parent.removeChild(id);
if (_arg1){
level_Scene.newLevel();
};
}
public static function arrange():void{
tmp_array.sortOn("y", Array.NUMERIC);
var _local1:int = tmp_array.length;
while (_local1--) {
if (id.getChildAt(_local1) != tmp_array[_local1]){
id.setChildIndex(tmp_array[_local1], _local1);
};
};
}
public static function complete(_arg1:Event=null){
level_Scene.id.nmTimer.field.text = "0";
level_Scene.round_stime = null;
level_Scene.id.addChild(new level_Cleaner(level.id, true));
}
}
}//package
Section 65
//level_Cleaner (level_Cleaner)
package {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.ui.*;
public class level_Cleaner extends MovieClip {
public var mcMask:MovieClip;
private var i:int;
private var j:int;
private var es:Boolean;
public var target:DisplayObject;
public var onComplete:Function;// = null
static var curs_level:int = 1;
public static var id:Object;
public function level_Cleaner(_arg1, _arg2:Boolean=true){
es = _arg2;
target = _arg1;
id = this;
addEventListener(Event.ENTER_FRAME, step);
}
public function step(_arg1:Event){
y = (y + 15);
target.mask = mcMask;
if (y >= 600){
level.destroy(es);
removeEventListener(Event.ENTER_FRAME, step);
this.parent.removeChild(this);
target = null;
id = null;
if (es == false){
main.id.gotoAndStop(2);
};
};
}
}
}//package
Section 66
//level_icon (level_icon)
package {
import flash.display.*;
public dynamic class level_icon extends MovieClip {
}
}//package
Section 67
//level_Scene (level_Scene)
package {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.ui.*;
public class level_Scene extends MovieClip {
private var temp:Object;
public var nmTimer:MovieClip;
private var i:int;
private var j:int;
public var nmScorer:MovieClip;
public static var round_etime:Date;
public static var round_delta:int;
public static var round_stime:Date;
public static var myBack:DisplayObject;
public static var curs_level:int = 1;
public static var id:Object;
public function level_Scene(){
curs_level = g.so.data.svLevel;
trace("level_Scene");
id = this;
addEventListener(Event.ENTER_FRAME, step);
newLevel();
}
public static function newLevel(){
trace(("new level:" + curs_level));
if (g.onZero == true){
if (curs_level == 21){
curs_level = (curs_level - 1);
};
} else {
if (curs_level == 17){
curs_level = (curs_level - 1);
};
};
var _local1:* = new lvl1();
level.id.gotoAndStop((curs_level + 1));
level.id.x = 0;
id.addChildAt(_local1, 0);
}
public static function step(_arg1:Event){
if (g.can_play == false){
return;
};
if (!round_stime){
return;
};
round_etime = new Date();
var _local2:Number = (round_etime.getTime() - round_stime.getTime());
round_delta = int((_local2 / 1000));
level_Scene.id.nmTimer.field.text = round_delta;
}
}
}//package
Section 68
//lvl1 (lvl1)
package {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.filters.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.system.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class lvl1 extends level {
public var g:Object;
public function lvl1(){
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);
}
function frame20(){
fn_levels[19] = function (){
g = instance_create(11, 6, player);
g = instance_create(13, 10, player);
g = instance_create(3, 11, dead_wall);
g = instance_create(4, 11, dead_wall);
g = instance_create(5, 11, dead_wall);
g = instance_create(6, 11, dead_wall);
g = instance_create(7, 11, dead_wall);
g = instance_create(8, 11, dead_wall);
g = instance_create(9, 11, dead_wall);
g = instance_create(9, 10, dead_wall);
g = instance_create(10, 10, dead_wall);
g = instance_create(11, 10, dead_wall);
g = instance_create(11, 11, dead_wall);
g = instance_create(12, 11, o_wall);
g = instance_create(13, 11, o_wall);
g = instance_create(14, 11, o_wall);
g = instance_create(14, 10, o_wall);
g = instance_create(14, 9, o_wall);
g = instance_create(14, 8, o_wall);
g = instance_create(14, 7, o_wall);
g = instance_create(14, 6, o_wall);
g = instance_create(14, 5, o_wall);
g = instance_create(14, 4, dead_wall);
g = instance_create(14, 3, dead_wall);
g = instance_create(13, 3, dead_wall);
g = instance_create(3, 10, dead_wall);
g = instance_create(3, 9, dead_wall);
g = instance_create(3, 8, dead_wall);
g = instance_create(3, 7, dead_wall);
g = instance_create(3, 6, dead_wall);
g = instance_create(3, 5, dead_wall);
g = instance_create(3, 4, o_wall);
g = instance_create(4, 4, o_wall);
g = instance_create(4, 3, o_wall);
g = instance_create(5, 3, o_wall);
g = instance_create(6, 3, o_wall);
g = instance_create(6, 2, o_wall);
g = instance_create(7, 2, o_wall);
g = instance_create(8, 2, o_wall);
g = instance_create(8, 3, o_wall);
g = instance_create(9, 3, o_wall);
g = instance_create(10, 3, o_wall);
g = instance_create(11, 3, o_wall);
g = instance_create(12, 3, o_wall);
g = instance_create(6, 5, o_wall);
g = instance_create(6, 6, o_wall);
g = instance_create(6, 7, o_wall);
g = instance_create(6, 8, o_wall);
g = instance_create(7, 8, o_wall);
g = instance_create(8, 8, o_wall);
g = instance_create(8, 7, o_wall);
g = instance_create(9, 7, o_wall);
g = instance_create(10, 7, o_wall);
g = instance_create(10, 6, o_wall);
g = instance_create(10, 5, o_wall);
g = instance_create(9, 5, o_wall);
g = instance_create(8, 5, o_wall);
g = instance_create(7, 5, o_wall);
g = instance_create(12, 7, dead_wall);
g = instance_create(12, 6, dead_wall);
g = instance_create(12, 5, dead_wall);
g = instance_create(13, 9, o_wall);
g = instance_create(11, 9, dead_wall);
g = instance_create(11, 5, o_block);
g = instance_create(11, 8, o_block);
g = instance_create(4, 8, o_block);
g = instance_create(5, 7, o_block);
g = instance_create(4, 6, o_block);
g = instance_create(7, 9, dead_wall);
g = instance_create(7, 3, telep_e);
arrange();
setWall();
};
var _local2 = fn_levels;
_local2[19]();
}
function frame1(){
}
function frame2(){
fn_levels[1] = function (){
g = instance_create(6, 4, player);
g = instance_create(10, 7, player);
g = instance_create(5, 8, o_wall);
g = instance_create(5, 7, o_wall);
g = instance_create(5, 6, o_wall);
g = instance_create(6, 8, o_wall);
g = instance_create(7, 8, o_wall);
g = instance_create(7, 9, o_wall);
g = instance_create(8, 9, o_wall);
g = instance_create(11, 9, o_wall);
g = instance_create(9, 9, dead_wall);
g = instance_create(10, 9, dead_wall);
g = instance_create(5, 5, dead_wall);
g = instance_create(6, 3, dead_wall);
g = instance_create(7, 3, dead_wall);
g = instance_create(8, 3, dead_wall);
g = instance_create(7, 7, dead_wall);
g = instance_create(7, 6, dead_wall);
g = instance_create(8, 6, dead_wall);
g = instance_create(8, 7, dead_wall);
g = instance_create(8, 5, dead_wall);
g = instance_create(5, 4, o_wall);
g = instance_create(5, 3, o_wall);
g = instance_create(9, 3, o_wall);
g = instance_create(9, 4, o_wall);
g = instance_create(9, 5, o_wall);
g = instance_create(10, 5, o_wall);
g = instance_create(11, 5, o_wall);
g = instance_create(11, 7, o_wall);
g = instance_create(11, 6, dead_wall);
g = instance_create(11, 8, dead_wall);
g = instance_create(6, 7, telep_e);
arrange();
setWall();
};
var _local2 = fn_levels;
_local2[1]();
}
function frame3(){
fn_levels[2] = function (){
g = instance_create(9, 7, player);
g = instance_create(6, 5, player);
g = instance_create(5, 8, o_wall);
g = instance_create(6, 8, o_wall);
g = instance_create(7, 9, o_wall);
g = instance_create(8, 9, o_wall);
g = instance_create(4, 8, o_wall);
g = instance_create(6, 9, o_wall);
g = instance_create(9, 9, o_wall);
g = instance_create(10, 9, o_wall);
g = instance_create(10, 8, dead_wall);
g = instance_create(11, 8, dead_wall);
g = instance_create(12, 8, o_wall);
g = instance_create(4, 7, o_wall);
g = instance_create(4, 6, o_wall);
g = instance_create(12, 6, o_wall);
g = instance_create(12, 7, dead_wall);
g = instance_create(12, 5, dead_wall);
g = instance_create(4, 5, dead_wall);
g = instance_create(4, 4, o_wall);
g = instance_create(5, 4, dead_wall);
g = instance_create(6, 4, dead_wall);
g = instance_create(6, 3, o_wall);
g = instance_create(7, 3, o_wall);
g = instance_create(8, 3, o_wall);
g = instance_create(9, 3, o_wall);
g = instance_create(10, 3, o_wall);
g = instance_create(10, 4, o_wall);
g = instance_create(11, 4, o_wall);
g = instance_create(12, 4, o_wall);
g = instance_create(10, 6, o_wall);
g = instance_create(8, 7, dead_wall);
g = instance_create(8, 5, dead_wall);
g = instance_create(6, 6, dead_wall);
g = instance_create(8, 6, telep_e);
arrange();
setWall();
};
var _local2 = fn_levels;
_local2[2]();
}
function frame4(){
fn_levels[3] = function (){
g = instance_create(10, 6, player);
g = instance_create(7, 6, player);
g = instance_create(5, 9, o_wall);
g = instance_create(5, 8, o_wall);
g = instance_create(5, 7, o_wall);
g = instance_create(6, 7, o_wall);
g = instance_create(6, 5, o_wall);
g = instance_create(7, 4, o_wall);
g = instance_create(6, 6, dead_wall);
g = instance_create(7, 5, dead_wall);
g = instance_create(7, 9, o_wall);
g = instance_create(8, 9, o_wall);
g = instance_create(9, 8, o_wall);
g = instance_create(10, 8, o_wall);
g = instance_create(11, 8, o_wall);
g = instance_create(11, 7, dead_wall);
g = instance_create(9, 6, dead_wall);
g = instance_create(11, 6, dead_wall);
g = instance_create(11, 5, dead_wall);
g = instance_create(11, 4, o_wall);
g = instance_create(9, 7, o_wall);
g = instance_create(8, 6, telep_e);
g = instance_create(6, 9, dead_wall);
g = instance_create(8, 4, dead_wall);
g = instance_create(8, 8, o_wall);
g = instance_create(10, 4, o_wall);
g = instance_create(9, 4, dead_wall);
arrange();
setWall();
};
var _local2 = fn_levels;
_local2[3]();
}
function frame5(){
fn_levels[4] = function (){
g = instance_create(6, 6, player);
g = instance_create(7, 5, player);
g = instance_create(5, 5, o_wall);
g = instance_create(6, 4, o_wall);
g = instance_create(6, 9, o_wall);
g = instance_create(10, 4, o_wall);
g = instance_create(12, 5, o_wall);
g = instance_create(12, 7, o_wall);
g = instance_create(5, 9, o_wall);
g = instance_create(10, 7, o_wall);
g = instance_create(7, 9, o_wall);
g = instance_create(7, 4, o_wall);
g = instance_create(11, 4, o_wall);
g = instance_create(4, 9, o_wall);
g = instance_create(10, 9, o_wall);
g = instance_create(9, 9, dead_wall);
g = instance_create(10, 8, dead_wall);
g = instance_create(4, 8, o_wall);
g = instance_create(7, 7, dead_wall);
g = instance_create(9, 7, o_wall);
g = instance_create(4, 6, dead_wall);
g = instance_create(7, 6, dead_wall);
g = instance_create(12, 6, dead_wall);
g = instance_create(4, 5, o_wall);
g = instance_create(5, 4, o_wall);
g = instance_create(8, 4, dead_wall);
g = instance_create(9, 5, dead_wall);
g = instance_create(9, 4, o_wall);
g = instance_create(11, 5, o_wall);
g = instance_create(10, 5, telep_e);
g = instance_create(6, 7, o_wall);
g = instance_create(4, 7, dead_wall);
g = instance_create(8, 9, dead_wall);
g = instance_create(11, 7, dead_wall);
arrange();
setWall();
};
var _local2 = fn_levels;
_local2[4]();
}
function frame6(){
fn_levels[5] = function (){
g = instance_create(7, 4, player);
g = instance_create(6, 7, player);
g = instance_create(5, 6, o_wall);
g = instance_create(5, 7, o_wall);
g = instance_create(5, 8, o_wall);
g = instance_create(5, 4, o_wall);
g = instance_create(5, 5, dead_wall);
g = instance_create(6, 4, o_wall);
g = instance_create(6, 3, o_wall);
g = instance_create(7, 3, o_wall);
g = instance_create(9, 3, o_wall);
g = instance_create(9, 9, o_wall);
g = instance_create(9, 4, dead_wall);
g = instance_create(10, 4, o_wall);
g = instance_create(10, 5, o_wall);
g = instance_create(7, 6, dead_wall);
g = instance_create(9, 7, dead_wall);
g = instance_create(10, 9, dead_wall);
g = instance_create(11, 8, dead_wall);
g = instance_create(11, 6, dead_wall);
g = instance_create(11, 5, o_wall);
g = instance_create(11, 9, o_wall);
g = instance_create(12, 8, o_wall);
g = instance_create(12, 7, o_wall);
g = instance_create(12, 6, o_wall);
g = instance_create(11, 7, telep_e);
g = instance_create(8, 3, dead_wall);
g = instance_create(7, 9, dead_wall);
g = instance_create(6, 9, o_wall);
g = instance_create(6, 8, dead_wall);
g = instance_create(8, 9, o_wall);
arrange();
setWall();
};
var _local2 = fn_levels;
_local2[5]();
}
function frame7(){
fn_levels[6] = function (){
g = instance_create(8, 8, player);
g = instance_create(11, 8, player);
g = instance_create(10, 9, o_wall);
g = instance_create(11, 9, o_wall);
g = instance_create(12, 9, o_wall);
g = instance_create(4, 8, o_wall);
g = instance_create(5, 9, o_wall);
g = instance_create(6, 9, dead_wall);
g = instance_create(8, 9, dead_wall);
g = instance_create(9, 9, o_wall);
g = instance_create(12, 7, o_wall);
g = instance_create(12, 5, o_wall);
g = instance_create(4, 7, o_wall);
g = instance_create(4, 6, o_wall);
g = instance_create(5, 6, dead_wall);
g = instance_create(5, 8, o_wall);
g = instance_create(5, 5, o_wall);
g = instance_create(6, 4, o_wall);
g = instance_create(8, 4, o_wall);
g = instance_create(9, 4, o_wall);
g = instance_create(10, 4, o_wall);
g = instance_create(10, 5, o_wall);
g = instance_create(11, 5, dead_wall);
g = instance_create(12, 8, dead_wall);
g = instance_create(10, 7, o_wall);
g = instance_create(7, 7, dead_wall);
g = instance_create(8, 7, dead_wall);
g = instance_create(7, 4, dead_wall);
g = instance_create(5, 7, telep_e);
g = instance_create(6, 5, dead_wall);
g = instance_create(7, 9, dead_wall);
g = instance_create(8, 5, o_wall);
g = instance_create(12, 6, dead_wall);
arrange();
setWall();
};
var _local2 = fn_levels;
_local2[6]();
}
function frame8(){
fn_levels[7] = function (){
g = instance_create(9, 5, player);
g = instance_create(8, 7, player);
g = instance_create(5, 6, o_wall);
g = instance_create(8, 3, o_wall);
g = instance_create(11, 6, o_wall);
g = instance_create(5, 5, o_wall);
g = instance_create(7, 3, o_wall);
g = instance_create(9, 3, o_wall);
g = instance_create(11, 5, o_wall);
g = instance_create(11, 7, o_wall);
g = instance_create(5, 7, o_wall);
g = instance_create(7, 9, o_wall);
g = instance_create(9, 9, o_wall);
g = instance_create(6, 4, dead_wall);
g = instance_create(7, 4, dead_wall);
g = instance_create(10, 4, dead_wall);
g = instance_create(10, 5, dead_wall);
g = instance_create(10, 8, dead_wall);
g = instance_create(8, 6, dead_wall);
g = instance_create(9, 4, o_wall);
g = instance_create(6, 6, telep_e);
g = instance_create(10, 7, o_wall);
g = instance_create(9, 8, o_wall);
g = instance_create(8, 9, dead_wall);
g = instance_create(6, 5, o_wall);
g = instance_create(7, 8, o_wall);
g = instance_create(6, 8, o_wall);
g = instance_create(6, 7, dead_wall);
arrange();
setWall();
};
var _local2 = fn_levels;
_local2[7]();
}
function frame10(){
fn_levels[9] = function (){
g = instance_create(6, 9, player);
g = instance_create(8, 8, player);
g = instance_create(5, 10, dead_wall);
g = instance_create(5, 9, dead_wall);
g = instance_create(5, 8, o_wall);
g = instance_create(5, 7, dead_wall);
g = instance_create(5, 6, dead_wall);
g = instance_create(5, 5, o_wall);
g = instance_create(5, 4, dead_wall);
g = instance_create(6, 4, dead_wall);
g = instance_create(6, 3, dead_wall);
g = instance_create(7, 3, dead_wall);
g = instance_create(8, 3, dead_wall);
g = instance_create(8, 4, o_wall);
g = instance_create(7, 6, o_wall);
g = instance_create(6, 10, o_wall);
g = instance_create(7, 9, o_wall);
g = instance_create(7, 10, dead_wall);
g = instance_create(7, 8, dead_wall);
g = instance_create(7, 7, dead_wall);
g = instance_create(8, 6, dead_wall);
g = instance_create(9, 6, dead_wall);
g = instance_create(10, 6, dead_wall);
g = instance_create(10, 7, dead_wall);
g = instance_create(10, 8, dead_wall);
g = instance_create(9, 8, dead_wall);
g = instance_create(8, 10, dead_wall);
g = instance_create(10, 10, dead_wall);
g = instance_create(11, 10, dead_wall);
g = instance_create(12, 10, dead_wall);
g = instance_create(12, 9, dead_wall);
g = instance_create(12, 8, dead_wall);
g = instance_create(12, 7, dead_wall);
g = instance_create(12, 6, dead_wall);
g = instance_create(12, 5, dead_wall);
g = instance_create(12, 4, dead_wall);
g = instance_create(11, 4, dead_wall);
g = instance_create(10, 4, dead_wall);
g = instance_create(9, 4, dead_wall);
g = instance_create(9, 7, telep_e);
g = instance_create(9, 10, o_wall);
arrange();
setWall();
};
var _local2 = fn_levels;
_local2[9]();
}
function frame11(){
fn_levels[10] = function (){
g = instance_create(10, 5, player);
g = instance_create(12, 5, player);
g = instance_create(4, 10, o_wall);
g = instance_create(6, 10, o_wall);
g = instance_create(7, 9, o_wall);
g = instance_create(9, 10, o_wall);
g = instance_create(10, 10, o_wall);
g = instance_create(11, 10, o_wall);
g = instance_create(12, 10, o_wall);
g = instance_create(8, 9, dead_wall);
g = instance_create(8, 10, o_wall);
g = instance_create(13, 9, o_wall);
g = instance_create(12, 9, dead_wall);
g = instance_create(4, 8, dead_wall);
g = instance_create(5, 6, dead_wall);
g = instance_create(7, 7, dead_wall);
g = instance_create(10, 7, dead_wall);
g = instance_create(10, 8, dead_wall);
g = instance_create(12, 7, dead_wall);
g = instance_create(13, 6, dead_wall);
g = instance_create(13, 5, dead_wall);
g = instance_create(13, 4, dead_wall);
g = instance_create(13, 3, o_wall);
g = instance_create(12, 3, o_wall);
g = instance_create(8, 5, o_wall);
g = instance_create(7, 5, o_wall);
g = instance_create(6, 5, o_wall);
g = instance_create(5, 5, o_wall);
g = instance_create(4, 6, o_wall);
g = instance_create(4, 7, o_wall);
g = instance_create(4, 9, o_wall);
g = instance_create(11, 7, o_wall);
g = instance_create(13, 7, o_wall);
g = instance_create(13, 8, o_wall);
g = instance_create(11, 5, telep_e);
g = instance_create(9, 5, dead_wall);
g = instance_create(6, 9, o_wall);
g = instance_create(9, 7, dead_wall);
g = instance_create(5, 10, o_wall);
g = instance_create(9, 3, o_wall);
g = instance_create(10, 3, o_wall);
g = instance_create(11, 3, o_wall);
g = instance_create(9, 4, dead_wall);
arrange();
setWall();
};
var _local2 = fn_levels;
_local2[10]();
}
function frame13(){
fn_levels[12] = function (){
g = instance_create(6, 9, player);
g = instance_create(11, 10, player);
g = instance_create(3, 11, o_wall);
g = instance_create(4, 11, o_wall);
g = instance_create(5, 11, o_wall);
g = instance_create(6, 11, o_wall);
g = instance_create(7, 11, o_wall);
g = instance_create(9, 11, o_wall);
g = instance_create(10, 11, o_wall);
g = instance_create(11, 11, o_wall);
g = instance_create(12, 11, o_wall);
g = instance_create(13, 11, o_wall);
g = instance_create(13, 10, o_wall);
g = instance_create(13, 9, o_wall);
g = instance_create(13, 8, o_wall);
g = instance_create(9, 10, o_wall);
g = instance_create(7, 10, o_wall);
g = instance_create(7, 9, o_wall);
g = instance_create(7, 8, o_wall);
g = instance_create(7, 7, o_wall);
g = instance_create(7, 6, o_wall);
g = instance_create(3, 10, o_wall);
g = instance_create(3, 9, o_wall);
g = instance_create(5, 10, dead_wall);
g = instance_create(5, 9, dead_wall);
g = instance_create(8, 8, dead_wall);
g = instance_create(9, 9, dead_wall);
g = instance_create(9, 8, dead_wall);
g = instance_create(9, 7, dead_wall);
g = instance_create(9, 6, dead_wall);
g = instance_create(10, 9, dead_wall);
g = instance_create(11, 9, dead_wall);
g = instance_create(11, 7, dead_wall);
g = instance_create(12, 7, dead_wall);
g = instance_create(11, 6, dead_wall);
g = instance_create(13, 7, dead_wall);
g = instance_create(13, 6, dead_wall);
g = instance_create(13, 5, dead_wall);
g = instance_create(11, 4, dead_wall);
g = instance_create(9, 4, dead_wall);
g = instance_create(8, 4, dead_wall);
g = instance_create(7, 4, dead_wall);
g = instance_create(6, 4, dead_wall);
g = instance_create(5, 6, dead_wall);
g = instance_create(3, 8, dead_wall);
g = instance_create(3, 7, dead_wall);
g = instance_create(3, 6, dead_wall);
g = instance_create(3, 5, dead_wall);
g = instance_create(3, 4, o_wall);
g = instance_create(4, 4, o_wall);
g = instance_create(5, 4, o_wall);
g = instance_create(13, 4, o_wall);
g = instance_create(13, 3, o_wall);
g = instance_create(9, 3, dead_wall);
g = instance_create(9, 2, dead_wall);
g = instance_create(10, 2, dead_wall);
g = instance_create(11, 2, dead_wall);
g = instance_create(12, 2, dead_wall);
g = instance_create(13, 2, dead_wall);
g = instance_create(4, 10, telep_e);
g = instance_create(10, 10, telep_e);
arrange();
setWall();
};
var _local2 = fn_levels;
_local2[12]();
}
function frame14(){
fn_levels[13] = function (){
g = instance_create(4, 10, player);
g = instance_create(8, 10, player);
g = instance_create(14, 2, o_wall);
g = instance_create(14, 3, o_wall);
g = instance_create(7, 11, o_wall);
g = instance_create(10, 11, o_wall);
g = instance_create(11, 11, o_wall);
g = instance_create(12, 11, o_wall);
g = instance_create(13, 11, o_wall);
g = instance_create(14, 11, o_wall);
g = instance_create(14, 10, o_wall);
g = instance_create(14, 9, o_wall);
g = instance_create(14, 8, o_wall);
g = instance_create(14, 7, o_wall);
g = instance_create(8, 11, o_wall);
g = instance_create(9, 11, o_wall);
g = instance_create(3, 5, o_wall);
g = instance_create(14, 6, o_wall);
g = instance_create(14, 4, o_wall);
g = instance_create(14, 5, o_wall);
g = instance_create(5, 9, o_wall);
g = instance_create(5, 4, dead_wall);
g = instance_create(6, 4, dead_wall);
g = instance_create(4, 2, dead_wall);
g = instance_create(5, 2, dead_wall);
g = instance_create(6, 2, dead_wall);
g = instance_create(7, 2, o_wall);
g = instance_create(8, 2, o_wall);
g = instance_create(8, 1, o_wall);
g = instance_create(9, 1, o_wall);
g = instance_create(10, 1, o_wall);
g = instance_create(12, 1, o_wall);
g = instance_create(13, 1, o_wall);
g = instance_create(14, 1, o_wall);
g = instance_create(13, 3, o_wall);
g = instance_create(12, 3, o_wall);
g = instance_create(8, 4, o_wall);
g = instance_create(9, 5, o_wall);
g = instance_create(10, 5, o_wall);
g = instance_create(12, 5, o_wall);
g = instance_create(12, 6, o_wall);
g = instance_create(12, 7, o_wall);
g = instance_create(12, 8, o_wall);
g = instance_create(12, 9, o_wall);
g = instance_create(10, 10, o_wall);
g = instance_create(10, 9, o_wall);
g = instance_create(10, 8, o_wall);
g = instance_create(10, 7, o_wall);
g = instance_create(8, 7, o_wall);
g = instance_create(7, 7, o_wall);
g = instance_create(8, 6, dead_wall);
g = instance_create(8, 5, dead_wall);
g = instance_create(8, 3, dead_wall);
g = instance_create(10, 3, dead_wall);
g = instance_create(11, 5, dead_wall);
g = instance_create(6, 9, dead_wall);
g = instance_create(6, 10, dead_wall);
g = instance_create(7, 9, dead_wall);
g = instance_create(8, 9, dead_wall);
g = instance_create(7, 8, dead_wall);
g = instance_create(13, 2, telep_e);
g = instance_create(5, 7, dead_wall);
g = instance_create(5, 5, dead_wall);
g = instance_create(5, 6, dead_wall);
g = instance_create(4, 6, dead_wall);
g = instance_create(3, 3, dead_wall);
g = instance_create(3, 4, dead_wall);
g = instance_create(3, 2, dead_wall);
g = instance_create(3, 6, dead_wall);
g = instance_create(3, 7, dead_wall);
g = instance_create(3, 8, dead_wall);
g = instance_create(3, 9, dead_wall);
g = instance_create(3, 10, dead_wall);
g = instance_create(3, 11, dead_wall);
g = instance_create(4, 11, dead_wall);
g = instance_create(5, 11, dead_wall);
g = instance_create(6, 11, dead_wall);
g = instance_create(11, 1, dead_wall);
arrange();
setWall();
};
var _local2 = fn_levels;
_local2[13]();
}
function frame15(){
fn_levels[14] = function (){
g = instance_create(4, 7, player);
g = instance_create(11, 4, player);
g = instance_create(3, 2, o_wall);
g = instance_create(4, 2, o_wall);
g = instance_create(5, 2, o_wall);
g = instance_create(6, 2, o_wall);
g = instance_create(7, 2, o_wall);
g = instance_create(8, 2, o_wall);
g = instance_create(3, 3, dead_wall);
g = instance_create(3, 4, dead_wall);
g = instance_create(3, 5, dead_wall);
g = instance_create(3, 7, dead_wall);
g = instance_create(3, 8, dead_wall);
g = instance_create(3, 6, o_wall);
g = instance_create(4, 6, o_wall);
g = instance_create(5, 6, o_wall);
g = instance_create(6, 6, o_wall);
g = instance_create(7, 6, o_wall);
g = instance_create(8, 5, o_wall);
g = instance_create(3, 9, o_wall);
g = instance_create(4, 9, o_wall);
g = instance_create(5, 9, o_wall);
g = instance_create(6, 9, o_wall);
g = instance_create(7, 8, dead_wall);
g = instance_create(7, 9, dead_wall);
g = instance_create(7, 10, dead_wall);
g = instance_create(8, 10, dead_wall);
g = instance_create(8, 8, dead_wall);
g = instance_create(9, 8, dead_wall);
g = instance_create(10, 8, dead_wall);
g = instance_create(10, 7, dead_wall);
g = instance_create(8, 4, dead_wall);
g = instance_create(9, 2, dead_wall);
g = instance_create(10, 3, dead_wall);
g = instance_create(10, 2, dead_wall);
g = instance_create(11, 2, dead_wall);
g = instance_create(5, 5, dead_wall);
g = instance_create(12, 4, dead_wall);
g = instance_create(12, 5, dead_wall);
g = instance_create(14, 4, dead_wall);
g = instance_create(14, 3, dead_wall);
g = instance_create(12, 2, o_wall);
g = instance_create(13, 2, o_wall);
g = instance_create(14, 2, o_wall);
g = instance_create(14, 5, o_wall);
g = instance_create(14, 7, o_wall);
g = instance_create(14, 10, o_wall);
g = instance_create(14, 11, o_wall);
g = instance_create(10, 10, o_wall);
g = instance_create(10, 11, o_wall);
g = instance_create(4, 5, telep_e);
g = instance_create(8, 9, telep_e);
g = instance_create(9, 10, dead_wall);
g = instance_create(8, 6, dead_wall);
g = instance_create(12, 7, dead_wall);
g = instance_create(13, 7, dead_wall);
g = instance_create(14, 8, dead_wall);
g = instance_create(12, 9, dead_wall);
g = instance_create(11, 11, o_wall);
g = instance_create(12, 11, o_wall);
g = instance_create(13, 11, o_wall);
g = instance_create(14, 9, o_wall);
g = instance_create(5, 4, o_wall);
g = instance_create(14, 6, dead_wall);
arrange();
setWall();
};
var _local2 = fn_levels;
_local2[14]();
}
function frame16(){
fn_levels[15] = function (){
g = instance_create(6, 4, player);
g = instance_create(6, 9, player);
g = instance_create(3, 7, o_wall);
g = instance_create(3, 8, o_wall);
g = instance_create(3, 9, o_wall);
g = instance_create(3, 10, o_wall);
g = instance_create(3, 11, o_wall);
g = instance_create(3, 12, o_wall);
g = instance_create(14, 1, o_wall);
g = instance_create(14, 6, o_wall);
g = instance_create(14, 7, o_wall);
g = instance_create(14, 8, o_wall);
g = instance_create(14, 9, o_wall);
g = instance_create(14, 10, o_wall);
g = instance_create(14, 11, o_wall);
g = instance_create(14, 12, o_wall);
g = instance_create(5, 1, o_wall);
g = instance_create(7, 1, o_wall);
g = instance_create(8, 1, o_wall);
g = instance_create(9, 1, o_wall);
g = instance_create(10, 1, o_wall);
g = instance_create(11, 1, o_wall);
g = instance_create(12, 1, o_wall);
g = instance_create(13, 1, o_wall);
g = instance_create(5, 12, o_wall);
g = instance_create(7, 12, o_wall);
g = instance_create(8, 12, o_wall);
g = instance_create(9, 12, o_wall);
g = instance_create(10, 12, o_wall);
g = instance_create(11, 12, o_wall);
g = instance_create(12, 12, o_wall);
g = instance_create(13, 12, o_wall);
g = instance_create(6, 1, dead_wall);
g = instance_create(4, 12, dead_wall);
g = instance_create(6, 12, dead_wall);
g = instance_create(14, 2, dead_wall);
g = instance_create(14, 3, dead_wall);
g = instance_create(14, 4, dead_wall);
g = instance_create(14, 5, dead_wall);
g = instance_create(3, 6, dead_wall);
g = instance_create(5, 11, dead_wall);
g = instance_create(5, 10, dead_wall);
g = instance_create(5, 9, o_wall);
g = instance_create(5, 8, o_wall);
g = instance_create(5, 6, dead_wall);
g = instance_create(5, 5, dead_wall);
g = instance_create(5, 4, dead_wall);
g = instance_create(5, 3, dead_wall);
g = instance_create(5, 2, dead_wall);
g = instance_create(7, 4, dead_wall);
g = instance_create(7, 5, dead_wall);
g = instance_create(7, 7, o_wall);
g = instance_create(7, 8, o_wall);
g = instance_create(7, 9, o_wall);
g = instance_create(7, 10, o_wall);
g = instance_create(7, 11, o_wall);
g = instance_create(7, 3, o_wall);
g = instance_create(11, 3, o_wall);
g = instance_create(12, -6, o_wall);
g = instance_create(9, 10, o_wall);
g = instance_create(10, 10, o_wall);
g = instance_create(11, 10, o_wall);
g = instance_create(12, 10, o_wall);
g = instance_create(12, 9, o_wall);
g = instance_create(12, 8, o_wall);
g = instance_create(12, 6, o_wall);
g = instance_create(12, 5, o_wall);
g = instance_create(8, 3, dead_wall);
g = instance_create(9, 3, dead_wall);
g = instance_create(10, 3, dead_wall);
g = instance_create(10, 5, dead_wall);
g = instance_create(9, 8, dead_wall);
g = instance_create(9, 7, dead_wall);
g = instance_create(11, 9, dead_wall);
g = instance_create(11, 8, dead_wall);
g = instance_create(4, 1, o_wall);
g = instance_create(3, 1, o_wall);
g = instance_create(3, 5, o_wall);
g = instance_create(3, 4, o_wall);
g = instance_create(3, 3, dead_wall);
g = instance_create(3, 2, dead_wall);
g = instance_create(12, 3, dead_wall);
g = instance_create(12, 7, dead_wall);
g = instance_create(8, 5, o_wall);
g = instance_create(7, 6, dead_wall);
g = instance_create(8, 4, telep_e);
g = instance_create(12, 4, o_wall);
arrange();
setWall();
};
var _local2 = fn_levels;
_local2[15]();
}
function frame9(){
fn_levels[8] = function (){
g = instance_create(6, 5, player);
g = instance_create(7, 7, player);
g = instance_create(5, 6, o_wall);
g = instance_create(5, 5, o_wall);
g = instance_create(5, 4, o_wall);
g = instance_create(10, 4, o_wall);
g = instance_create(11, 4, o_wall);
g = instance_create(12, 4, o_wall);
g = instance_create(12, 5, o_wall);
g = instance_create(12, 6, o_wall);
g = instance_create(10, 3, o_wall);
g = instance_create(6, 6, o_wall);
g = instance_create(10, 6, o_wall);
g = instance_create(11, 6, o_wall);
g = instance_create(7, 10, o_wall);
g = instance_create(8, 10, o_wall);
g = instance_create(10, 10, o_wall);
g = instance_create(12, 10, o_wall);
g = instance_create(8, 8, dead_wall);
g = instance_create(8, 7, dead_wall);
g = instance_create(8, 6, dead_wall);
g = instance_create(8, 5, dead_wall);
g = instance_create(10, 8, dead_wall);
g = instance_create(11, 5, telep_e);
g = instance_create(12, 7, dead_wall);
g = instance_create(12, 8, dead_wall);
g = instance_create(6, 4, dead_wall);
g = instance_create(5, 9, dead_wall);
g = instance_create(5, 8, dead_wall);
g = instance_create(5, 7, dead_wall);
g = instance_create(9, 8, o_wall);
g = instance_create(7, 8, o_wall);
g = instance_create(5, 10, dead_wall);
g = instance_create(6, 10, dead_wall);
g = instance_create(11, 10, dead_wall);
g = instance_create(9, 10, dead_wall);
g = instance_create(12, 9, dead_wall);
g = instance_create(7, 3, dead_wall);
g = instance_create(6, 3, dead_wall);
g = instance_create(8, 3, dead_wall);
g = instance_create(9, 3, dead_wall);
arrange();
setWall();
};
var _local2 = fn_levels;
_local2[8]();
}
function frame18(){
fn_levels[17] = function (){
g = instance_create(4, 7, player);
g = instance_create(5, 5, player);
g = instance_create(3, 10, o_wall);
g = instance_create(4, 10, o_wall);
g = instance_create(5, 10, o_wall);
g = instance_create(6, 10, o_wall);
g = instance_create(7, 10, o_wall);
g = instance_create(8, 10, o_wall);
g = instance_create(9, 10, o_wall);
g = instance_create(10, 10, o_wall);
g = instance_create(11, 10, o_wall);
g = instance_create(12, 10, o_wall);
g = instance_create(13, 10, o_wall);
g = instance_create(13, 9, o_wall);
g = instance_create(13, 8, o_wall);
g = instance_create(13, 7, o_wall);
g = instance_create(13, 6, o_wall);
g = instance_create(13, 5, o_wall);
g = instance_create(13, 4, o_wall);
g = instance_create(13, 3, o_wall);
g = instance_create(13, 2, o_wall);
g = instance_create(3, 9, dead_wall);
g = instance_create(3, 8, dead_wall);
g = instance_create(3, 7, dead_wall);
g = instance_create(3, 6, o_wall);
g = instance_create(4, 6, o_wall);
g = instance_create(4, 5, o_wall);
g = instance_create(4, 4, o_wall);
g = instance_create(5, 4, o_wall);
g = instance_create(6, 4, o_wall);
g = instance_create(7, 4, o_wall);
g = instance_create(7, 3, o_wall);
g = instance_create(7, 2, o_wall);
g = instance_create(8, 2, o_wall);
g = instance_create(9, 2, o_wall);
g = instance_create(10, 2, o_wall);
g = instance_create(11, 2, o_wall);
g = instance_create(12, 2, o_wall);
g = instance_create(8, 4, o_wall);
g = instance_create(5, 6, o_wall);
g = instance_create(6, 6, o_wall);
g = instance_create(7, 6, o_wall);
g = instance_create(9, 6, o_wall);
g = instance_create(10, 4, o_wall);
g = instance_create(11, 4, o_wall);
g = instance_create(11, 8, o_wall);
g = instance_create(11, 6, dead_wall);
g = instance_create(7, 7, dead_wall);
g = instance_create(7, 8, dead_wall);
g = instance_create(9, 9, dead_wall);
g = instance_create(9, 8, dead_wall);
g = instance_create(9, 7, dead_wall);
g = instance_create(5, 8, dead_wall);
g = instance_create(8, 6, o_block);
g = instance_create(9, 4, o_block);
g = instance_create(8, 3, telep_e);
arrange();
setWall();
};
var _local2 = fn_levels;
_local2[17]();
}
function frame12(){
fn_levels[11] = function (){
g = instance_create(7, 4, player);
g = instance_create(10, 5, player);
g = instance_create(4, 10, o_wall);
g = instance_create(5, 10, o_wall);
g = instance_create(6, 10, o_wall);
g = instance_create(7, 10, o_wall);
g = instance_create(8, 10, o_wall);
g = instance_create(9, 10, o_wall);
g = instance_create(10, 10, o_wall);
g = instance_create(11, 10, o_wall);
g = instance_create(12, 10, o_wall);
g = instance_create(12, 3, o_wall);
g = instance_create(11, 3, o_wall);
g = instance_create(13, 10, o_wall);
g = instance_create(13, 9, o_wall);
g = instance_create(13, 8, o_wall);
g = instance_create(13, 6, o_wall);
g = instance_create(13, 5, o_wall);
g = instance_create(13, 4, o_wall);
g = instance_create(13, 3, o_wall);
g = instance_create(13, 7, dead_wall);
g = instance_create(4, 9, o_wall);
g = instance_create(4, 8, o_wall);
g = instance_create(4, 7, o_wall);
g = instance_create(4, 6, o_wall);
g = instance_create(4, 5, o_wall);
g = instance_create(4, 4, o_wall);
g = instance_create(4, 3, o_wall);
g = instance_create(5, 3, o_wall);
g = instance_create(6, 3, o_wall);
g = instance_create(7, 3, o_wall);
g = instance_create(8, 3, o_wall);
g = instance_create(9, 3, o_wall);
g = instance_create(10, 3, o_wall);
g = instance_create(6, 8, o_wall);
g = instance_create(7, 8, o_wall);
g = instance_create(8, 8, o_wall);
g = instance_create(9, 8, o_wall);
g = instance_create(8, 5, o_wall);
g = instance_create(8, 4, o_wall);
g = instance_create(9, 6, o_wall);
g = instance_create(9, 7, o_wall);
g = instance_create(8, 7, dead_wall);
g = instance_create(8, 6, dead_wall);
g = instance_create(9, 5, dead_wall);
g = instance_create(9, 4, dead_wall);
g = instance_create(10, 8, dead_wall);
g = instance_create(11, 8, dead_wall);
g = instance_create(11, 4, dead_wall);
g = instance_create(11, 5, dead_wall);
g = instance_create(6, 5, dead_wall);
g = instance_create(6, 6, o_wall);
g = instance_create(5, 8, o_wall);
g = instance_create(5, 9, telep_e);
arrange();
setWall();
};
var _local2 = fn_levels;
_local2[11]();
}
function frame17(){
fn_levels[16] = function (){
g = instance_create(6, 6, player);
g = instance_create(8, 6, player);
g = instance_create(4, 10, o_wall);
g = instance_create(4, 9, o_wall);
g = instance_create(3, 9, o_wall);
g = instance_create(3, 8, o_wall);
g = instance_create(3, 7, dead_wall);
g = instance_create(3, 6, o_wall);
g = instance_create(3, 5, o_wall);
g = instance_create(4, 5, o_wall);
g = instance_create(4, 4, dead_wall);
g = instance_create(4, 3, dead_wall);
g = instance_create(5, 2, dead_wall);
g = instance_create(6, 2, dead_wall);
g = instance_create(7, 2, dead_wall);
g = instance_create(8, 2, dead_wall);
g = instance_create(9, 2, dead_wall);
g = instance_create(4, 2, o_wall);
g = instance_create(10, 2, o_wall);
g = instance_create(10, 3, o_wall);
g = instance_create(12, 2, o_wall);
g = instance_create(13, 2, o_wall);
g = instance_create(14, 2, o_wall);
g = instance_create(14, 5, o_wall);
g = instance_create(14, 7, o_wall);
g = instance_create(14, 9, o_wall);
g = instance_create(13, 10, o_wall);
g = instance_create(8, 10, o_wall);
g = instance_create(8, 9, o_wall);
g = instance_create(9, 9, o_wall);
g = instance_create(10, 9, o_wall);
g = instance_create(10, 10, o_wall);
g = instance_create(13, 9, dead_wall);
g = instance_create(14, 8, dead_wall);
g = instance_create(13, 7, dead_wall);
g = instance_create(13, 6, dead_wall);
g = instance_create(13, 5, dead_wall);
g = instance_create(14, 4, dead_wall);
g = instance_create(14, 3, dead_wall);
g = instance_create(12, 3, dead_wall);
g = instance_create(11, 3, dead_wall);
g = instance_create(12, 10, dead_wall);
g = instance_create(11, 10, dead_wall);
g = instance_create(7, 10, dead_wall);
g = instance_create(6, 10, dead_wall);
g = instance_create(5, 10, dead_wall);
g = instance_create(5, 7, dead_wall);
g = instance_create(6, 7, dead_wall);
g = instance_create(6, 8, dead_wall);
g = instance_create(6, 5, dead_wall);
g = instance_create(7, 5, dead_wall);
g = instance_create(7, 4, dead_wall);
g = instance_create(8, 7, dead_wall);
g = instance_create(10, 7, dead_wall);
g = instance_create(10, 6, dead_wall);
g = instance_create(10, 5, dead_wall);
g = instance_create(11, 5, dead_wall);
g = instance_create(11, 6, dead_wall);
g = instance_create(11, 7, dead_wall);
g = instance_create(13, 3, telep_e);
g = instance_create(7, 7, o_wall);
g = instance_create(8, 5, o_wall);
arrange();
setWall();
};
var _local2 = fn_levels;
_local2[16]();
}
function frame21(){
fn_levels[20] = function (){
g = instance_create(6, 8, player);
g = instance_create(5, 2, player);
g = instance_create(4, 12, o_wall);
g = instance_create(5, 12, o_wall);
g = instance_create(6, 12, o_wall);
g = instance_create(7, 12, dead_wall);
g = instance_create(8, 12, dead_wall);
g = instance_create(9, 12, dead_wall);
g = instance_create(10, 12, o_wall);
g = instance_create(10, 11, o_wall);
g = instance_create(10, 10, o_wall);
g = instance_create(11, 10, o_wall);
g = instance_create(12, 10, o_wall);
g = instance_create(13, 10, o_wall);
g = instance_create(4, 11, o_wall);
g = instance_create(4, 10, o_wall);
g = instance_create(4, 9, o_wall);
g = instance_create(5, 9, o_wall);
g = instance_create(6, 9, o_wall);
g = instance_create(6, 10, o_wall);
g = instance_create(5, 8, o_wall);
g = instance_create(5, 7, o_wall);
g = instance_create(5, 6, o_wall);
g = instance_create(4, 6, o_wall);
g = instance_create(4, 5, dead_wall);
g = instance_create(4, 4, dead_wall);
g = instance_create(4, 3, dead_wall);
g = instance_create(4, 2, dead_wall);
g = instance_create(4, 1, o_wall);
g = instance_create(5, 1, o_wall);
g = instance_create(6, 1, o_wall);
g = instance_create(7, 1, o_wall);
g = instance_create(8, 1, o_wall);
g = instance_create(9, 1, o_wall);
g = instance_create(9, 2, dead_wall);
g = instance_create(9, 3, dead_wall);
g = instance_create(9, 4, dead_wall);
g = instance_create(10, 3, dead_wall);
g = instance_create(11, 3, dead_wall);
g = instance_create(11, 2, dead_wall);
g = instance_create(11, 1, dead_wall);
g = instance_create(12, 1, dead_wall);
g = instance_create(13, 1, o_wall);
g = instance_create(13, 2, o_wall);
g = instance_create(13, 3, o_wall);
g = instance_create(13, 4, o_wall);
g = instance_create(13, 5, o_wall);
g = instance_create(13, 6, o_wall);
g = instance_create(13, 7, o_wall);
g = instance_create(13, 8, o_wall);
g = instance_create(13, 9, o_wall);
g = instance_create(6, 4, dead_wall);
g = instance_create(7, 3, dead_wall);
g = instance_create(7, 4, dead_wall);
g = instance_create(7, 5, dead_wall);
g = instance_create(7, 6, dead_wall);
g = instance_create(8, 6, dead_wall);
g = instance_create(9, 6, dead_wall);
g = instance_create(10, 6, dead_wall);
g = instance_create(11, 6, dead_wall);
g = instance_create(11, 5, dead_wall);
g = instance_create(10, 8, dead_wall);
g = instance_create(11, 8, dead_wall);
g = instance_create(12, 8, dead_wall);
g = instance_create(8, 9, dead_wall);
g = instance_create(8, 10, dead_wall);
g = instance_create(5, 4, o_block);
g = instance_create(8, 7, o_block);
g = instance_create(8, 8, o_block);
g = instance_create(8, 11, o_block);
g = instance_create(12, 2, telep_e);
g = instance_create(5, 10, telep_e);
arrange();
setWall();
};
var _local2 = fn_levels;
_local2[20]();
}
function frame19(){
fn_levels[18] = function (){
g = instance_create(6, 9, player);
g = instance_create(6, 4, player);
g = instance_create(9, 10, o_wall);
g = instance_create(4, 10, o_wall);
g = instance_create(4, 11, o_wall);
g = instance_create(5, 11, o_wall);
g = instance_create(6, 11, o_wall);
g = instance_create(7, 10, o_wall);
g = instance_create(8, 10, o_wall);
g = instance_create(9, 11, o_wall);
g = instance_create(10, 11, o_wall);
g = instance_create(11, 11, o_wall);
g = instance_create(12, 11, o_wall);
g = instance_create(13, 11, o_wall);
g = instance_create(4, 9, o_wall);
g = instance_create(4, 8, o_wall);
g = instance_create(4, 7, o_wall);
g = instance_create(4, 6, o_wall);
g = instance_create(4, 5, o_wall);
g = instance_create(4, 4, o_wall);
g = instance_create(4, 3, o_wall);
g = instance_create(6, 8, o_wall);
g = instance_create(6, 7, dead_wall);
g = instance_create(6, 6, dead_wall);
g = instance_create(5, 6, dead_wall);
g = instance_create(5, 2, dead_wall);
g = instance_create(6, 2, dead_wall);
g = instance_create(7, 2, dead_wall);
g = instance_create(8, 2, dead_wall);
g = instance_create(8, 3, dead_wall);
g = instance_create(4, 2, o_wall);
g = instance_create(12, 3, dead_wall);
g = instance_create(7, 8, dead_wall);
g = instance_create(8, 8, dead_wall);
g = instance_create(9, 8, dead_wall);
g = instance_create(9, 7, dead_wall);
g = instance_create(9, 6, dead_wall);
g = instance_create(9, 5, dead_wall);
g = instance_create(10, 5, dead_wall);
g = instance_create(11, 5, dead_wall);
g = instance_create(12, 5, dead_wall);
g = instance_create(13, 5, dead_wall);
g = instance_create(10, 8, dead_wall);
g = instance_create(11, 8, dead_wall);
g = instance_create(11, 7, dead_wall);
g = instance_create(11, 9, dead_wall);
g = instance_create(13, 10, dead_wall);
g = instance_create(13, 9, dead_wall);
g = instance_create(13, 8, dead_wall);
g = instance_create(13, 7, dead_wall);
g = instance_create(13, 6, dead_wall);
g = instance_create(8, 6, o_block);
g = instance_create(6, 5, o_block);
g = instance_create(6, 3, o_block);
g = instance_create(12, 4, telep_e);
g = instance_create(10, 7, telep_e);
g = instance_create(6, 10, o_wall);
g = instance_create(10, 4, dead_wall);
g = instance_create(9, 2, dead_wall);
g = instance_create(10, 2, dead_wall);
g = instance_create(11, 2, dead_wall);
g = instance_create(12, 2, dead_wall);
g = instance_create(13, 3, dead_wall);
g = instance_create(13, 4, dead_wall);
arrange();
setWall();
};
var _local2 = fn_levels;
_local2[18]();
}
}
}//package
Section 69
//main (main)
package {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import fl.transitions.easing.*;
import flash.utils.*;
import objects.*;
import com.gamezhero.as3.*;
import flash.ui.*;
public class main extends MovieClip {
public var btn_win:MovieClip;
public var LastDot:int;
public var domain:String;
private var playr:Object;
private var j:int;
public var nm_btn0:SimpleButton;
public var nm_btn1:SimpleButton;
public var nm_btn2:SimpleButton;
private var temp:Object;
private var i:int;
public var h;
public var s;
public var domEnd:int;
public var urlStart:int;
public var urlEnd:int;
public static var id:Object;
static var T:Number = 1;
public function main(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
public function scene_shortkuts(_arg1:KeyboardEvent){
switch (_arg1.keyCode){
case Keyboard.SPACE:
if (((h) && (this.contains(h)))){
ff2(null);
} else {
ff1(null);
};
break;
case Keyboard.CONTROL:
ff3(null);
break;
};
}
public function orRoll(_arg1:Event){
An.play(_arg1.target, "Flash");
}
public function ff3(_arg1:Event){
if (level_Cleaner.id){
return;
};
level_Scene.id.addChild(new level_Cleaner(level.id, false));
An.play(nm_btn0, "blurOut");
An.play(nm_btn1, "blurOut");
if (((h) && (this.contains(h)))){
An.play(h, "blurOut");
};
h = null;
nm_btn0.mouseEnabled = false;
nm_btn1.mouseEnabled = false;
An.play(level_Scene.id.nmScorer, "blurToUp");
An.play(level_Scene.id.nmTimer, "blurToUp");
ss.play("back");
level_Scene.round_stime = null;
}
function frame3(){
addChild(getChildByName("sound panel"));
An.play(nm_btn0, "blurIn");
An.play(nm_btn1, "blurIn");
nm_btn2.alpha = 0;
nm_btn2.mouseEnabled = false;
nm_btn1.addEventListener(MouseEvent.CLICK, ff1);
nm_btn2.addEventListener(MouseEvent.CLICK, ff2);
nm_btn0.addEventListener(MouseEvent.CLICK, ff3);
nm_btn1.addEventListener(MouseEvent.ROLL_OVER, orRoll);
nm_btn0.addEventListener(MouseEvent.ROLL_OVER, orRoll);
g.main.addEventListener(KeyboardEvent.KEY_DOWN, scene_shortkuts);
}
public function init(){
new g();
new An();
new ss();
id = this;
g.main = stage;
stage.showDefaultContextMenu = false;
}
public function ff_win(_arg1:Event){
}
public function nextStep(_arg1:Event=null):void{
play();
}
function frame1(){
stop();
gamezheroPreloaderAS3();
}
function frame2(){
stop();
init();
urlStart = (stage.loaderInfo.loaderURL.indexOf("://") + 3);
urlEnd = stage.loaderInfo.loaderURL.indexOf("/", urlStart);
domain = stage.loaderInfo.loaderURL.substring(urlStart, urlEnd);
LastDot = (domain.lastIndexOf(".") - 1);
domEnd = (domain.lastIndexOf(".", LastDot) + 1);
domain = domain.substring(domEnd, domain.length);
if (stage.loaderInfo.loaderURL.indexOf("gamezhero.com") == -1){
g.onZero = false;
} else {
g.onZero = true;
};
if (domain != "ho.ua"){
};
trace(("onZero:" + g.onZero));
if (getChildByName("sound panel") == null){
s = addChild(new sound_controll());
s.name = "sound panel";
s.x = 525;
s.y = 525;
ss.init();
ss.playSong();
};
}
public function ff2(_arg1:Event){
if (level_Cleaner.id){
return;
};
level.complete(null);
An.play(h, "blurOut");
ss.play("pop");
}
public function ff1(_arg1:Event){
if (!level_Scene.round_stime){
return;
};
if (An.getP(player.instance[1].sprite_index)){
return;
};
if (An.getP(player.instance[2].sprite_index)){
return;
};
player.restart(null);
}
public function gamezheroPreloaderAS3(){
var _local1:Object = new Object();
var _local2:* = "nanofarm";
_local1.game_name = _local2;
_local1.debug = false;
_local1.gamezhero_url = (((("http://www.gamezhero.com/?utm_campaign=" + _local2) + "&utm_source=") + _local2) + "&utm_medium=preloader");
_local1.gamezhero_menu = {Free Online Games @ Gamezhero.com:(((("http://www.gamezhero.com/?utm_campaign=" + _local2) + "&utm_source=") + _local2) + "&utm_medium=context_menu"), Send To Friends:(((((("http://www.gamezhero.com/sendtofriends/" + _local2) + "-onlinegames.html?utm_campaign=") + _local2) + "&utm_source=") + _local2) + "&utm_medium=send_to_friends_context_menu"), Put This Game To Your Blog or Site:(((((("http://www.gamezhero.com/freewebsitegames/" + _local2) + "-onlinegames.html?utm_campaign=") + _local2) + "&utm_source=") + _local2) + "&utm_medium=free_web_site_games_context")};
var _local3:GamePreloader = new GamePreloader(this, _local1);
_local3.addEventListener(GamePreloader.finish, nextStep);
}
public function updateRoll(_arg1:Event=null){
h = level.id.addChild(new scoreTable());
h.x = 170;
h.y = 180;
An.play(h, "blurIn");
}
}
}//package
Section 70
//mc_losed (mc_losed)
package {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.filters.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import com.gamezhero.as3.*;
import flash.text.*;
import flash.system.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class mc_losed extends MovieClip {
public function mc_losed(){
addFrameScript(0, frame1);
}
function frame1(){
gamezheroScoreExampleAS3();
}
public function continueAction(_arg1:Event=null):void{
this.parent.removeChild(this);
}
public function submitAction(_arg1:Event=null):void{
this["toDelete"].parent.removeChild(this["toDelete"]);
}
public function gamezheroScoreExampleAS3(_arg1:Event=null){
var _local2:Number = g.score_play;
var _local3:MovieClip = (this.parent as MovieClip);
var _local4:Number = 130;
var _local5:Number = 105;
var _local6 = "ENG";
var _local7:* = [104, 116, 116, 112, 58, 47, 47, 102, 105, 108, 101, 115, 46, 103, 97, 109, 101, 122, 104, 101, 114, 111, 46, 99, 111, 109, 47, 111, 110, 108, 105, 110, 101, 47, 110, 97, 110, 111, 102, 97, 114, 109, 47, 115, 99, 111, 114, 101, 47, 115, 99, 111, 114, 101, 46, 115, 119, 102];
var _local8:SubmitArea = new SubmitArea(_local3, _local4, _local5, _local2, _local7, _local6);
_local8.addEventListener(SubmitArea.SUBMITED, submitAction);
_local8.addEventListener(SubmitArea.CONTINUE, continueAction);
}
}
}//package
Section 71
//mcBlank (mcBlank)
package {
import flash.display.*;
public dynamic class mcBlank extends MovieClip {
public function mcBlank(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package
Section 72
//mushh_room (mushh_room)
package {
import flash.display.*;
public dynamic class mushh_room extends MovieClip {
}
}//package
Section 73
//o_block (o_block)
package {
import flash.events.*;
import flash.display.*;
import fl.transitions.*;
public class o_block extends MovieClip implements ISolid, IMoving {
public var cell_sx:int;// = 0
public var cell_sy:int;// = 0
public var sprite_index:o_block;
public var cell_x:int;// = 0
public var start_y:int;
public var tw:Tween;
public var start_x:int;
public var cell_y:int;// = 0
public function justestarted(_arg1:Event=null){
cell_x = int((x / 32));
cell_y = int((y / 32));
if (level.tmp_odynam[((cell_x + "_") + cell_y)] === this){
delete level.tmp_odynam[((cell_x + "_") + cell_y)];
};
x = start_x;
y = start_y;
cell_x = int(((x - 12) / 32));
cell_y = int(((y - 12) / 32));
level.tmp_odynam[((cell_sx + "_") + cell_sy)] = this;
var _local2:* = An.play(sprite_index, "blowIn");
}
public function Init(_arg1:Event):void{
sprite_index = this;
cell_sx = int(((x - 12) / 32));
cell_sy = int(((y - 12) / 32));
start_x = int(x);
start_y = int(y);
}
}
}//package
Section 74
//o_wall (o_wall)
package {
public dynamic class o_wall extends wall {
}
}//package
Section 75
//oHelp (oHelp)
package {
import flash.events.*;
import flash.display.*;
public dynamic class oHelp extends MovieClip {
public var btn1:SimpleButton;
public var btn2:SimpleButton;
public function oHelp(){
addFrameScript(0, frame1);
}
public function ff1(_arg1:Event){
ss.play("click");
gotoAndStop((currentFrame - 1));
}
public function ff2(_arg1:Event){
ss.play("click");
gotoAndStop((currentFrame + 1));
}
function frame1(){
stop();
btn1.addEventListener(MouseEvent.CLICK, ff1);
btn2.addEventListener(MouseEvent.CLICK, ff2);
}
}
}//package
Section 76
//player (player)
package {
import gs.*;
import flash.events.*;
import fl.motion.*;
import flash.geom.*;
import flash.display.*;
import fl.transitions.easing.*;
import flash.utils.*;
import fl.transitions.*;
import flash.ui.*;
import fl.motion.easing.*;
public class player extends MovieClip implements ISolid, IMoving {
private var last_frame:int;
public var tw1:Tween;
var spr_left:s_sheep_left;
var spr_right:s_sheep_right;
public var other:int;// = 0
public var sprite_index:DisplayObject;
public var start_x:int;
public var cell_y:int;
var spr_dw:s_sheep_down;
public var cell_x:int;
public var start_y:int;
var spr_up:s_sheep_up;
public var me:int;// = 0
public var this_animator:Animator;
private var frame:int;// = 0
public var created:Boolean;// = false
public var this_ani:XML;
public static var mAnimTimer:Timer;
public static var resTime:Date;
public static var index:int = 0;
public static var instance:Object = new Object();
public static var fail:Boolean = false;
public function player(){
spr_dw = new s_sheep_down();
spr_up = new s_sheep_up();
spr_right = new s_sheep_right();
spr_left = new s_sheep_left();
super();
sprite_index = addChild(new s_sheep_down());
index = (index + 1);
if (index == 1){
other = 2;
} else {
other = 1;
};
instance[index] = this;
me = index;
tw1 = new Tween(this, "rotation", Regular.easeOut, rotation, rotation, 1, true);
addEventListener(Event.REMOVED_FROM_STAGE, Remove);
visible = false;
}
public function justestarted(_arg1:Event=null){
if (!level_Scene.round_stime){
return;
};
if (other == 2){
level_Scene.round_stime.setTime((level_Scene.round_stime.getTime() + 3000));
ss.play("telep2");
};
if (level.tmp_odynam[((cell_x + "_") + cell_y)] === this){
delete level.tmp_odynam[((cell_x + "_") + cell_y)];
};
x = start_x;
y = start_y;
cell_x = int((x / 32));
cell_y = int((y / 32));
var _local2:* = An.play(sprite_index, "blowIn");
removeChild(sprite_index);
sprite_index = addChild(new s_sheep_down());
sprite_index["mc_legs"].stop();
_local2 = An.play(sprite_index, "blowIn");
_local2.vars["onComplete"] = mover;
level.tmp_odynam[((cell_x + "_") + cell_y)] = this;
level.arrange();
}
public function keyPressHandler(_arg1:int):void{
switch (_arg1){
case Keyboard.UP:
mov("y", (cell_y - 1));
break;
case Keyboard.DOWN:
mov("y", (cell_y + 1));
break;
case Keyboard.LEFT:
mov("x", (cell_x - 1));
break;
case Keyboard.RIGHT:
mov("x", (cell_x + 1));
break;
};
}
public function step(_arg1:Event){
}
public function Init(_arg1:Event):void{
var _local2:*;
if (other == 2){
ss.play("telep2");
};
sprite_index["mc_legs"].stop();
visible = true;
if (created == false){
_local2 = An.play(sprite_index, "blowIn");
_local2.vars["onComplete"] = start_m;
g.can_play = false;
};
created = true;
y = (y + 5);
cell_x = int(((x - 12) / 32));
cell_y = int(((y - 12) / 32));
start_x = x;
start_y = y;
g.main.addEventListener(MouseEvent.CLICK, clickHandler, false, 0, true);
}
public function mov(_arg1:String, _arg2:int){
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:*;
var _local7:*;
var _local10:*;
var _local11:*;
var _local12:*;
if (g.can_play == false){
return;
};
if (_arg1 == "x"){
_local5 = cell_x;
_local3 = _arg2;
_local4 = cell_y;
} else {
_local5 = cell_y;
_local3 = cell_x;
_local4 = _arg2;
};
var _local8:* = level;
var _local9:int = (_arg2 - _local5);
if (fail == true){
if (player.instance[other].tw1.isPlaying){
return;
};
};
if (_arg1 == "x"){
if (_local9 == 1){
if (!this.contains(spr_right)){
removeChild(sprite_index);
sprite_index = addChild(spr_right);
sprite_index.alpha = 1;
};
} else {
if (!this.contains(spr_left)){
removeChild(sprite_index);
sprite_index = addChild(spr_left);
};
};
sprite_index["mc_legs"].stop();
} else {
if (_local9 == 1){
if (!this.contains(spr_dw)){
removeChild(sprite_index);
sprite_index = addChild(spr_dw);
};
} else {
if (!this.contains(spr_up)){
removeChild(sprite_index);
sprite_index = addChild(spr_up);
};
};
sprite_index["mc_legs"].stop();
};
if ((_local8.tmp_object[((_local3 + "_") + _local4)] is dead_wall)){
mAnimTimer = new Timer(2000, 1);
mAnimTimer.addEventListener(TimerEvent.TIMER, player.restart, false, 0, true);
mAnimTimer.start();
resTime = new Date();
ss.play("injolt");
removeChild(sprite_index);
sprite_index = addChild(new Sheep_injolt());
g.can_play = false;
return;
};
if ((_local8.tmp_object[((_local3 + "_") + _local4)] is wall)){
fail = !(fail);
return;
};
if ((_local8.tmp_odynam[((_local3 + "_") + _local4)] is o_block)){
if (_arg1 == "x"){
_local10 = (_local3 + _local9);
_local11 = _local4;
} else {
_local10 = _local3;
_local11 = (_local4 + _local9);
};
if ((_local8.tmp_odynam[((_local10 + "_") + _local11)] is ISolid)){
return;
};
if ((_local8.tmp_object[((_local10 + "_") + _local11)] is ISolid)){
return;
};
if (_arg1 == "x"){
_local8.tmp_odynam[((_local3 + "_") + _local4)].tw = new Tween(_local8.tmp_odynam[((_local3 + "_") + _local4)], _arg1, Regular.easeOut, ((_arg2 * 32) + 12), (((_arg2 + _local9) * 32) + 12), 0.5, true);
} else {
_local8.tmp_odynam[((_local3 + "_") + _local4)].tw = new Tween(_local8.tmp_odynam[((_local3 + "_") + _local4)], _arg1, Regular.easeOut, ((_arg2 * 32) + 17), (((_arg2 + _local9) * 32) + 17), 0.5, true);
};
_local8.tmp_odynam[((_local10 + "_") + _local11)] = _local8.tmp_odynam[((_local3 + "_") + _local4)];
delete _local8.tmp_odynam[((_local3 + "_") + _local4)];
};
if ((_local8.tmp_odynam[((_local3 + "_") + _local4)] is ISolid)){
return;
};
if ((_local8.tmp_object[((_local3 + "_") + _local4)] is telep_e)){
ss.play("telep");
_local12 = An.play(sprite_index, "blowTel");
main.id.updateRoll();
An.play(player.instance[other], "blowTel");
g.can_play = false;
};
sprite_index["mc_legs"].play();
if (_arg1 == "x"){
tw1 = new Tween(this, _arg1, Regular.easeOut, ((_local5 * 32) + 12), ((_arg2 * 32) + 12), 0.5, true);
} else {
tw1 = new Tween(this, _arg1, Regular.easeOut, ((_local5 * 32) + 17), ((_arg2 * 32) + 17), 0.5, true);
};
tw1.addEventListener("motionFinish", move_end);
delete _local8.tmp_odynam[((cell_x + "_") + cell_y)];
cell_x = _local3;
cell_y = _local4;
TweenFilterLite.killTweensOf(sprite_index["mc_legs"]);
_local8.tmp_odynam[((_local3 + "_") + _local4)] = this;
level.arrange();
g.steps = (g.steps + 1);
}
private function clickHandler(_arg1:MouseEvent):void{
}
public function move_end(_arg1:Event){
sprite_index["mc_legs"].stop();
TweenFilterLite.to(sprite_index["mc_legs"], 0.3, {overwrite:3, frame:13});
fail = false;
level.arrange();
}
public function Remove(_arg1:Event){
index = (index - 1);
fail = false;
tw1 = null;
delete instance[me];
}
public static function mover(_arg1:Event=null){
g.can_play = true;
}
public static function restart(_arg1:Event=null){
var _local2:*;
var _local3:*;
g.can_play = false;
ss.play("telep2");
if (mAnimTimer){
mAnimTimer.removeEventListener(TimerEvent.TIMER, player.restart);
if (level_Scene.round_stime){
level_Scene.round_stime.setTime((level_Scene.round_stime.getTime() + (new Date().getTime() - resTime.getTime())));
};
mAnimTimer = null;
};
if (level["tmp_odynam"]){
for each (_local2 in level.tmp_odynam) {
if (_local2["sprite_index"]){
_local3 = An.play(_local2.sprite_index, "blowOut");
_local3.vars["onComplete"] = _local2.justestarted;
};
};
};
}
public static function start_m(){
mover();
level_Scene.round_stime = new Date();
}
public static function ev_moveSheeps(_arg1:KeyboardEvent){
if (player.instance[1].tw1.isPlaying){
return;
};
if (player.instance[2].tw1.isPlaying){
return;
};
if (g.can_play == false){
return;
};
player.instance[1].keyPressHandler(_arg1.keyCode);
player.instance[2].keyPressHandler(_arg1.keyCode);
}
}
}//package
Section 77
//power_dw (power_dw)
package {
import flash.display.*;
public dynamic class power_dw extends MovieClip {
}
}//package
Section 78
//power_up (power_up)
package {
import flash.display.*;
public dynamic class power_up extends MovieClip {
}
}//package
Section 79
//s_sheep_down (s_sheep_down)
package {
import flash.display.*;
public dynamic class s_sheep_down extends MovieClip {
public var mc_legs:sheepMove;
}
}//package
Section 80
//s_sheep_left (s_sheep_left)
package {
import flash.display.*;
public dynamic class s_sheep_left extends MovieClip {
public var mc_legs:MovieClip;
}
}//package
Section 81
//s_sheep_right (s_sheep_right)
package {
import flash.display.*;
public dynamic class s_sheep_right extends MovieClip {
public var mc_legs:MovieClip;
}
}//package
Section 82
//s_sheep_up (s_sheep_up)
package {
import flash.display.*;
public dynamic class s_sheep_up extends MovieClip {
public var mc_legs:sheepMove;
}
}//package
Section 83
//scoreTable (scoreTable)
package {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.filters.*;
import flash.utils.*;
import objects.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.system.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class scoreTable extends MovieClip {
public var field_steps;
public var field_score;
public var btn_continue:SimpleButton;
public var btn_locked:MovieClip;
public var field_time;
public var btn_submit:SimpleButton;
public var local_score:int;
public function scoreTable(){
addFrameScript(0, frame1);
}
public function ff(_arg1:Event=null){
var _local2:* = this.parent.addChild(new mc_losed());
_local2.toDelete = (_arg1.target as DisplayObject);
}
function frame1(){
if (g.onZero == true){
btn_locked.visible = false;
btn_locked.mouseEnabled = false;
} else {
if (level_Scene.curs_level < 16){
btn_locked.visible = false;
btn_locked.mouseEnabled = false;
};
};
field_time = addChild(new SpriteText(String(level_Scene.round_delta), 20));
field_time.x = 90;
field_time.y = 17;
field_steps = addChild(new SpriteText(String(g.steps), 20));
field_steps.x = 90;
field_steps.y = 50;
local_score = ((2400 / Math.min((Math.max(level_Scene.round_delta, 1) + Math.max(g.steps, 1)), 80)) * level_Scene.curs_level);
field_score = addChild(new SpriteText(String(local_score), 20));
field_score.x = 90;
field_score.y = 84;
g.score_play = (g.score_play + local_score);
trace(level_Scene.id.nmScorer.field);
trace(level_Scene.id.nmScorer.field.text);
trace(g.score_play);
level_Scene.id.nmScorer.field.text = String(g.score_play);
level_Scene.curs_level = (level_Scene.curs_level + 1);
g.so.data.svScore = g.score_play;
g.so.data.svLevel = level_Scene.curs_level;
g.so.flush();
trace(("!!!!!!!!!!!!!!!!!!!!: " + g.so.data.svLevel));
if (level_Scene.curs_level == 21){
btn_continue.removeEventListener(MouseEvent.CLICK, ffs);
btn_continue.mouseEnabled = false;
btn_continue.alpha = 0;
};
btn_submit.addEventListener(MouseEvent.CLICK, ff);
btn_continue.addEventListener(MouseEvent.CLICK, ffs);
}
public function ffs(_arg1:Event=null){
main.id.ff2(null);
}
}
}//package
Section 84
//Sheep_injolt (Sheep_injolt)
package {
import flash.display.*;
public dynamic class Sheep_injolt extends MovieClip {
}
}//package
Section 85
//sheepMove (sheepMove)
package {
import flash.display.*;
public dynamic class sheepMove extends MovieClip {
}
}//package
Section 86
//sound_controll (sound_controll)
package {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.filters.*;
import flash.utils.*;
import flash.net.*;
import flash.media.*;
import flash.text.*;
import flash.system.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class sound_controll extends MovieClip {
public var nm_soundsd:MovieClip;
public var muz_mak;
public var btn:mushh_room;
public var nm_plays:MovieClip;
public function sound_controll(){
addFrameScript(0, frame1);
}
function frame1(){
btn.addEventListener(MouseEvent.CLICK, Go);
btn.addEventListener(MouseEvent.ROLL_OVER, go2);
muz_mak = addChild(new mushh_room());
muz_mak.x = (muz_mak.x - 7);
muz_mak.y = (muz_mak.y - 8);
nm_plays.mask = muz_mak;
}
public function Go(_arg1:Event){
trace("place");
if (nm_soundsd.currentFrame == 1){
ss.off();
nm_soundsd.nextFrame();
nm_plays.stop();
} else {
ss.on();
nm_soundsd.prevFrame();
nm_plays.play();
};
}
public function go2(_arg1:Event){
An.play(this, "Flash");
}
}
}//package
Section 87
//ss (ss)
package {
import flash.media.*;
public class ss {
static var channel:SoundChannel;
static var snd:Object;
static var t:SoundTransform;
static var global_t:SoundTransform;
static function on(){
global_t.volume = 1;
SoundMixer.soundTransform = global_t;
}
static function off(){
global_t.volume = 0;
SoundMixer.soundTransform = global_t;
}
static function init(){
global_t = new SoundTransform();
t = new SoundTransform();
snd = new Object();
snd["song"] = new ss_music();
snd["click"] = new ss_click();
snd["telep"] = new ss_telep();
snd["injolt"] = new ss_injolt();
snd["telep2"] = new ss_telep2();
snd["back"] = new ss_onback();
snd["pop"] = new ss_pop();
channel = snd["click"].play(0, 0, new SoundTransform(0, 0));
}
static function playSong(){
channel.stop();
channel = snd["song"].play(0, 9999999, t);
}
public static function play(_arg1:String):void{
snd[_arg1].play(0, 0, t);
}
}
}//package
Section 88
//ss_click (ss_click)
package {
import flash.media.*;
public dynamic class ss_click extends Sound {
}
}//package
Section 89
//ss_injolt (ss_injolt)
package {
import flash.media.*;
public dynamic class ss_injolt extends Sound {
}
}//package
Section 90
//ss_music (ss_music)
package {
import flash.media.*;
public dynamic class ss_music extends Sound {
}
}//package
Section 91
//ss_onback (ss_onback)
package {
import flash.media.*;
public dynamic class ss_onback extends Sound {
}
}//package
Section 92
//ss_pop (ss_pop)
package {
import flash.media.*;
public dynamic class ss_pop extends Sound {
}
}//package
Section 93
//ss_telep (ss_telep)
package {
import flash.media.*;
public dynamic class ss_telep extends Sound {
}
}//package
Section 94
//ss_telep2 (ss_telep2)
package {
import flash.media.*;
public dynamic class ss_telep2 extends Sound {
}
}//package
Section 95
//telep_e (telep_e)
package {
import flash.display.*;
public dynamic class telep_e extends MovieClip {
public function telep_e(){
addFrameScript(0, frame1);
}
function frame1(){
y = (y - 44);
level.arrange();
}
}
}//package
Section 96
//top_wall (top_wall)
package {
import flash.display.*;
public dynamic class top_wall extends MovieClip {
}
}//package
Section 97
//wall (wall)
package {
import flash.events.*;
import flash.display.*;
public class wall extends MovieClip implements ISolid {
public var place_x:Number;// = 0
public var place_y:Number;// = 0
public function step(_arg1:Event){
}
}
}//package