Section 1
//Locale (fl.lang.Locale)
package fl.lang {
import flash.events.*;
import flash.xml.*;
import flash.net.*;
import flash.system.*;
public class Locale extends EventDispatcher {
private static var delayedInstanceArray:Array = new Array();
private static var flaName:String;
private static var currentLang:String;
private static var stringMap:Object = new Object();
private static var xmlDoc:XMLDocument;
private static var xmlLang:String = Capabilities.language;
private static var xmlMap:Object = new Object();
private static var stringMapList:Object = new Object();
private static var callback:Function;
private static var defaultLang:String;
private static var currentXMLMapIndex:Number = -1;
private static var autoReplacement:Boolean = true;
private static var _xmlLoaded:Boolean = false;
public static function get autoReplace():Boolean{
return (autoReplacement);
}
public static function setDefaultLang(_arg1:String):void{
defaultLang = _arg1;
}
public static function initialize():void{
var _local1:String = xmlLang;
if (xmlMap[xmlLang] == undefined){
_local1 = defaultLang;
};
currentXMLMapIndex = 0;
loadXML(_local1);
}
public static function setString(_arg1:String, _arg2:String, _arg3:String):void{
var _local4:Object = stringMapList[_arg2];
if (_local4){
_local4[_arg1] = _arg3;
} else {
_local4 = new Object();
_local4[_arg1] = _arg3;
stringMapList[_arg2] = _local4;
};
}
public static function loadString(_arg1:String):String{
return (stringMap[_arg1]);
}
public static function getDefaultLang():String{
return (defaultLang);
}
private static function parseXLiff(_arg1:XMLNode):void{
if ((((_arg1.childNodes.length > 0)) && ((_arg1.childNodes[0].nodeName == "file")))){
parseFile(_arg1.childNodes[0]);
};
}
public static function loadStringEx(_arg1:String, _arg2:String):String{
var _local3:Object = stringMapList[_arg2];
if (_local3){
return (_local3[_arg1]);
};
return ("");
}
public static function set autoReplace(_arg1:Boolean):void{
autoReplacement = _arg1;
}
private static function parseSource(_arg1:XMLNode):String{
if (_arg1.childNodes.length > 0){
return (_arg1.childNodes[0].nodeValue);
};
return ("");
}
public static function addDelayedInstance(_arg1:Object, _arg2:String){
delayedInstanceArray.push({inst:_arg1, strID:_arg2});
var _local3:Number = delayedInstanceArray.length;
}
private static function onXMLLoad(_arg1:Event){
_xmlLoaded = true;
var _local2:URLLoader = (_arg1.target as URLLoader);
var _local3:String = _local2.data;
xmlDoc = new XMLDocument();
xmlDoc.ignoreWhite = true;
xmlDoc.parseXML(_local3);
stringMap = new Object();
parseStringsXML(xmlDoc);
if (stringMapList[currentLang] == undefined){
stringMapList[currentLang] = stringMap;
};
if (autoReplacement){
assignDelayedInstances();
};
if (callback != null){
callback(true);
};
}
public static function checkXMLStatus():Boolean{
return (_xmlLoaded);
}
public static function setFlaName(_arg1:String):void{
flaName = _arg1;
}
private static function parseStringsXML(_arg1:XMLDocument):void{
if ((((_arg1.childNodes.length > 0)) && ((_arg1.childNodes[0].nodeName == "xliff")))){
parseXLiff(_arg1.childNodes[0]);
};
}
private static function assignDelayedInstances():void{
var _local2:Object;
var _local3:String;
var _local1:Number = 0;
while (_local1 < delayedInstanceArray.length) {
if (delayedInstanceArray[_local1] != undefined){
_local2 = delayedInstanceArray[_local1].inst;
_local3 = delayedInstanceArray[_local1].strID;
_local2.text = loadString(_local3);
};
_local1++;
};
}
public static function get stringIDArray():Array{
var _local2:String;
var _local1:Array = new Array();
for (_local2 in stringMap) {
if (_local2 != ""){
_local1.push(_local2);
};
};
return (_local1);
}
private static function loadXML(_arg1:String){
var _local2:String = xmlMap[_arg1][0];
var _local3:URLLoader = new URLLoader(new URLRequest(_local2));
_local3.addEventListener("complete", onXMLLoad);
}
private static function parseFile(_arg1:XMLNode):void{
if ((((_arg1.childNodes.length > 1)) && ((_arg1.childNodes[1].nodeName == "body")))){
parseBody(_arg1.childNodes[1]);
};
}
private static function parseTransUnit(_arg1:XMLNode):void{
var _local3:String;
var _local2:String = _arg1.attributes.resname;
if ((((((_local2.length > 0)) && ((_arg1.childNodes.length > 0)))) && ((_arg1.childNodes[0].nodeName == "source")))){
_local3 = parseSource(_arg1.childNodes[0]);
if (_local3.length > 0){
stringMap[_local2] = _local3;
};
};
}
public static function setLoadCallback(_arg1:Function){
callback = _arg1;
}
public static function loadLanguageXML(_arg1:String, _arg2:Function=null):void{
var _local3:String = ((_arg1)=="") ? Capabilities.language : _arg1;
if (xmlMap[_local3] == undefined){
_local3 = defaultLang;
};
if (_arg2 != null){
callback = _arg2;
};
if (stringMapList[_arg1] == undefined){
loadXML(_local3);
} else {
stringMap = stringMapList[_local3];
if (callback != null){
callback(true);
};
};
currentLang = _local3;
}
public static function get languageCodeArray():Array{
var _local2:String;
var _local1:Array = new Array();
for (_local2 in xmlMap) {
if (_local2){
_local1.push(_local2);
};
};
return (_local1);
}
private static function parseBody(_arg1:XMLNode):void{
var _local2:Number = 0;
while (_local2 < _arg1.childNodes.length) {
if (_arg1.childNodes[_local2].nodeName == "trans-unit"){
parseTransUnit(_arg1.childNodes[_local2]);
};
_local2++;
};
}
public static function addXMLPath(_arg1:String, _arg2:String):void{
if (xmlMap[_arg1] == undefined){
xmlMap[_arg1] = new Array();
};
xmlMap[_arg1].push(_arg2);
}
}
}//package fl.lang
Section 2
//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 3
//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 4
//AnimatorBase (fl.motion.AnimatorBase)
package fl.motion {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
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 5
//AnimatorFactory (fl.motion.AnimatorFactory)
package fl.motion {
public class AnimatorFactory extends AnimatorFactoryBase {
public function AnimatorFactory(_arg1:MotionBase){
super(_arg1);
}
override protected function getNewAnimator():AnimatorBase{
return (new Animator(null, null));
}
}
}//package fl.motion
Section 6
//AnimatorFactoryBase (fl.motion.AnimatorFactoryBase)
package fl.motion {
import flash.geom.*;
import flash.display.*;
import flash.utils.*;
public class AnimatorFactoryBase {
protected var _transformationPoint:Point;
private var _animators:Dictionary;
protected var _transformationPointZ:int;
private var _motion:MotionBase;
protected var _sceneName:String;
protected var _is3D:Boolean;
public function AnimatorFactoryBase(_arg1:MotionBase){
this._motion = _arg1;
this._animators = new Dictionary();
this._transformationPoint = new Point(0.5, 0.5);
this._transformationPointZ = 0;
this._is3D = false;
this._sceneName = "";
}
public function addTargetInfo(_arg1:DisplayObject, _arg2:String, _arg3:int=0, _arg4:Boolean=true, _arg5:int=-1, _arg6:Boolean=false, _arg7:Array=null):AnimatorBase{
var _local11:Class;
if (((!((_arg1 is DisplayObjectContainer))) && (!((_arg1 is SimpleButton))))){
return (null);
};
var _local8:Dictionary = this._animators[_arg1];
if (!_local8){
_local8 = new Dictionary();
this._animators[_arg1] = _local8;
};
var _local9:AnimatorBase = _local8[_arg2];
var _local10:Boolean;
if (!_local9){
_local9 = this.getNewAnimator();
_local11 = (getDefinitionByName("flash.events.Event") as Class);
if (_local11.hasOwnProperty("FRAME_CONSTRUCTED")){
_local9.frameEvent = "frameConstructed";
};
_local8[_arg2] = _local9;
_local10 = true;
};
_local9.motion = this._motion;
_local9.transformationPoint = this._transformationPoint;
_local9.transformationPointZ = this._transformationPointZ;
_local9.sceneName = this._sceneName;
if (_local10){
if ((_arg1 is MovieClip)){
AnimatorBase.registerParentFrameHandler((_arg1 as MovieClip), _local9, _arg5, _arg3, _arg6);
};
};
if ((_arg1 is MovieClip)){
_local9.targetParent = MovieClip(_arg1);
_local9.targetName = _arg2;
} else {
if ((_arg1 is SimpleButton)){
AnimatorBase.registerButtonState((_arg1 as SimpleButton), _local9, _arg5);
};
};
if (_arg7){
_local9.initialPosition = _arg7;
};
if (_arg4){
AnimatorBase.processCurrentFrame((_arg1 as MovieClip), _local9, true, true);
};
return (_local9);
}
public function set transformationPointZ(_arg1:int):void{
this._transformationPointZ = _arg1;
}
public function set transformationPoint(_arg1:Point):void{
this._transformationPoint = _arg1;
}
protected function getNewAnimator():AnimatorBase{
return (null);
}
public function get motion():MotionBase{
return (this._motion);
}
public function addTarget(_arg1:DisplayObject, _arg2:int=0, _arg3:Boolean=true, _arg4:int=-1, _arg5:Boolean=false):AnimatorBase{
if (_arg1){
return (this.addTargetInfo(_arg1.parent, _arg1.name, _arg2, _arg3, _arg4, _arg5));
};
return (null);
}
public function set sceneName(_arg1:String):void{
this._sceneName = _arg1;
}
}
}//package fl.motion
Section 7
//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 8
//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 9
//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 10
//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 11
//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 12
//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 13
//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 14
//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 15
//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 16
//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 17
//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 18
//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 19
//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 20
//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 21
//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 22
//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 23
//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 24
//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 25
//MochiAd (mochi.as3.MochiAd)
package mochi.as3 {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class MochiAd {
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function showClickAwayAd(_arg1:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{
}, ad_finished:function ():void{
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
var wh:Array = MochiAd._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
var sendHostProgress:Boolean;
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
chk["onEnterFrame"] = function ():void{
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
return;
};
var _local1:Object = this.parent._mochiad_ctr;
var _local2:Number = (getTimer() - this.started);
var _local3:Boolean;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
_local3 = true;
chk.started = getTimer();
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (this.root == null){
_local3 = true;
};
if (_local3){
delete this.onEnterFrame;
};
};
doOnEnterFrame(chk);
}
public static function _isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function _allowDomains(_arg1:String):String{
var _local2:String = _arg1.split("/")[2].split(":")[0];
if (Security.sandboxType == "application"){
return (_local2);
};
Security.allowDomain("*");
Security.allowDomain(_local2);
Security.allowInsecureDomain("*");
Security.allowInsecureDomain(_local2);
return (_local2);
}
public static function unload(_arg1:Object):Boolean{
if (((_arg1.clip) && (_arg1.clip._mochiad))){
_arg1 = _arg1.clip;
};
if (_arg1.origFrameRate != undefined){
_arg1.stage.frameRate = _arg1.origFrameRate;
};
if (!_arg1._mochiad){
return (false);
};
if (_arg1._mochiad._containerLCName != undefined){
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"});
};
if (_arg1._mochiad.onUnload){
_arg1._mochiad.onUnload();
};
delete _arg1._mochiad_loaded;
delete _arg1._mochiad;
return (true);
}
public static function showInterLevelAd(_arg1:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
var ad_msec:Number = 11000;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time:Number = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
var wh:Array = MochiAd._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = (_arg1 - 250);
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
chk["onEnterFrame"] = function ():void{
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
var _local1:Object = this.parent._mochiad_ctr;
var _local2:Number = (getTimer() - this.started);
var _local3:Boolean;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (_local2 > chk.ad_msec){
_local3 = true;
};
if (_local3){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function _parseOptions(_arg1:Object, _arg2:Object):Object{
var _local4:String;
var _local5:Array;
var _local6:Number;
var _local7:Array;
var _local3:Object = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
if (_arg1){
for (_local4 in _arg1) {
_local3[_local4] = _arg1[_local4];
};
};
if (_local3.clip == undefined){
throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite."));
};
_arg1 = _local3.clip.loaderInfo.parameters.mochiad_options;
if (_arg1){
_local5 = _arg1.split("&");
_local6 = 0;
while (_local6 < _local5.length) {
_local7 = _local5[_local6].split("=");
_local3[unescape(_local7[0])] = unescape(_local7[1]);
_local6++;
};
};
if (_local3.id == "test"){
};
return (_local3);
}
public static function _cleanup(_arg1:Object):void{
var k:String;
var lc:LocalConnection;
var f:Function;
var mc = _arg1;
if (("lc" in mc)){
lc = mc.lc;
f = function ():void{
try {
lc.client = null;
lc.close();
} catch(e:Error) {
};
};
setTimeout(f, 0);
};
var idx:Number = DisplayObjectContainer(mc).numChildren;
while (idx > 0) {
idx = (idx - 1);
DisplayObjectContainer(mc).removeChildAt(idx);
};
for (k in mc) {
delete mc[k];
};
}
public static function load(_arg1:Object):MovieClip{
var clip:Object;
var k:String;
var server:String;
var hostname:String;
var lc:LocalConnection;
var name:String;
var loader:Loader;
var g:Function;
var req:URLRequest;
var v:Object;
var options = _arg1;
var DEFAULTS:Object = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = MochiAd._parseOptions(options, DEFAULTS);
options.swfv = 9;
options.mav = MochiAd.getVersion();
clip = options.clip;
if (!MochiAd._isNetworkAvailable()){
return (null);
};
try {
if (clip._mochiad_loaded){
return (null);
};
} catch(e:Error) {
throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
var depth:Number = options.depth;
delete options.depth;
var mc:MovieClip = createEmptyMovieClip(clip, "_mochiad", depth);
var wh:Array = MochiAd._getRes(options, clip);
options.res = ((wh[0] + "x") + wh[1]);
options.server = (options.server + options.id);
delete options.id;
clip._mochiad_loaded = true;
if (clip.loaderInfo.loaderURL.indexOf("http") == 0){
options.as3_swf = clip.loaderInfo.loaderURL;
//unresolved jump
};
var lv:URLVariables = new URLVariables();
for (k in options) {
v = options[k];
if (!(v is Function)){
lv[k] = v;
};
};
server = lv.server;
delete lv.server;
hostname = _allowDomains(server);
lc = new LocalConnection();
lc.client = mc;
name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_");
lc.allowDomain("*", "localhost");
lc.allowInsecureDomain("*", "localhost");
lc.connect(name);
mc.lc = lc;
mc.lcName = name;
lv.lc = name;
lv.st = getTimer();
loader = new Loader();
g = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
MochiAd.unload(clip);
};
loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g);
req = new URLRequest(((server + ".swf?cacheBust=") + new Date().getTime()));
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function (_arg1:IOErrorEvent):void{
});
loader.load(req);
mc.addChild(loader);
mc._mochiad_ctr = loader;
return (mc);
}
public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{
var _local4:Array = _arg2.split(".");
var _local5:Number = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
if (typeof(_arg1[_local4[_local5]]) == "function"){
return (_arg1[_local4[_local5]].apply(_arg1, _arg3));
};
return (undefined);
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{
var _local4:MovieClip = new MovieClip();
if (((false) && (_arg3))){
_arg1.addChildAt(_local4, _arg3);
} else {
_arg1.addChild(_local4);
};
_arg1[_arg2] = _local4;
_local4["_name"] = _arg2;
return (_local4);
}
public static function _getRes(_arg1:Object, _arg2:Object):Array{
var _local6:Array;
var _local3:Object = _arg2.getBounds(_arg2.root);
var _local4:Number = 0;
var _local5:Number = 0;
if (typeof(_arg1.res) != "undefined"){
_local6 = _arg1.res.split("x");
_local4 = parseFloat(_local6[0]);
_local5 = parseFloat(_local6[1]);
} else {
_local4 = (_local3.xMax - _local3.xMin);
_local5 = (_local3.yMax - _local3.yMin);
};
if ((((_local4 == 0)) || ((_local5 == 0)))){
_local4 = _arg2.stage.stageWidth;
_local5 = _arg2.stage.stageHeight;
};
return ([_local4, _local5]);
}
public static function adShowing(_arg1:Object):void{
_arg1.origFrameRate = _arg1.stage.frameRate;
_arg1.stage.frameRate = 30;
}
public static function getValue(_arg1:Object, _arg2:String):Object{
var _local3:Array = _arg2.split(".");
var _local4:Number = 0;
while (_local4 < (_local3.length - 1)) {
if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local3[_local4]];
_local4++;
};
return (_arg1[_local3[_local4]]);
}
public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{
var _local4:Object;
var _local5:Object;
switch (_arg3.id){
case "setValue":
MochiAd.setValue(_arg1, _arg3.objectName, _arg3.value);
break;
case "getValue":
_local4 = MochiAd.getValue(_arg1, _arg3.objectName);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4);
break;
case "runMethod":
_local5 = MochiAd.runMethod(_arg1, _arg3.method, _arg3.args);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5);
break;
};
}
public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Array = _arg2.split(".");
var _local5:Number = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return;
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
_arg1[_local4[_local5]] = _arg3;
}
public static function showPreGameAd(_arg1:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var complete:Boolean;
var unloaded:Boolean;
var sendHostProgress:Boolean;
var fn:Function;
var r:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
}, ad_skipped:function ():void{
}, ad_progress:function (_arg1:Number):void{
}, progress_override:function (_arg1:Object):Number{
return (NaN);
}, bar_offset:0};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){
options.ad_started();
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
return;
};
clip = options.clip;
var ad_msec:Number = 11000;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time:Number = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
var fn:Function = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
};
var wh:Array = MochiAd._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.x = (w * -0.5);
chk.y = (h * -0.5);
var bar:MovieClip = createEmptyMovieClip(chk, "_mochiad_bar", 4);
if (options.no_progress_bar){
bar.visible = false;
delete options.no_progress_bar;
} else {
bar.x = (10 + options.bar_offset);
bar.y = (h - 20);
};
var bar_w:Number = ((w - bar.x) - 10);
var bar_color:Number = options.color;
delete options.color;
var bar_background:Number = options.background;
delete options.background;
var bar_outline:Number = options.outline;
delete options.outline;
var backing_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 1);
var backing:Object = backing_mc.graphics;
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(bar_w, 0);
backing.lineTo(bar_w, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var inside_mc:MovieClip = createEmptyMovieClip(bar, "_inside", 2);
var inside:Object = inside_mc.graphics;
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo(bar_w, 0);
inside.lineTo(bar_w, 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside_mc.scaleX = 0;
var outline_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 3);
var outline:Object = outline_mc.graphics;
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(bar_w, 0);
outline.lineTo(bar_w, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
complete = false;
unloaded = false;
var progress:Number = Math.min(1, options.progress_override(clip));
var f:Function = function (_arg1:Event):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
complete = true;
if (unloaded){
MochiAd.unload(clip);
};
};
if (!isNaN(progress)){
complete = (progress == 1);
} else {
if (clip.loaderInfo.bytesLoaded == clip.loaderInfo.bytesTotal){
complete = true;
} else {
if ((clip.root is MovieClip)){
r = (clip.root as MovieClip);
if (r.framesLoaded >= r.totalFrames){
complete = true;
} else {
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
};
} else {
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
};
};
};
mc.unloadAd = function ():void{
unloaded = true;
if (complete){
MochiAd.unload(clip);
};
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = _arg1;
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
mc.rpcTestFn = function (_arg1:String):Object{
return (_arg1);
};
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
sendHostProgress = false;
mc.sendHostLoadProgress = function (_arg1:String):void{
sendHostProgress = true;
};
chk["onEnterFrame"] = function ():void{
var _local12:Number;
if (((!(this.parent)) || (!(this.parent.parent)))){
delete this["onEnterFrame"];
return;
};
var _local1:Object = this.parent.parent.root;
var _local2:Object = this.parent._mochiad_ctr;
var _local3:Number = (getTimer() - this.started);
var _local4:Boolean;
var _local5:Number = _local1.loaderInfo.bytesTotal;
var _local6:Number = _local1.loaderInfo.bytesLoaded;
var _local7:Number = Math.min(1, options.progress_override(_local1));
if (_local7 == 1){
complete = true;
};
if (complete){
_local6 = Math.max(1, _local6);
_local5 = _local6;
};
var _local8:Number = ((100 * _local6) / _local5);
if (!isNaN(_local7)){
_local8 = (100 * _local7);
};
var _local9:Number = ((100 * _local3) / chk.ad_msec);
var _local10:Object = this._mochiad_bar._inside;
var _local11:Number = Math.min(100, Math.min(((_local8) || (0)), _local9));
_local11 = Math.max(this.last_pcnt, _local11);
this.last_pcnt = _local11;
_local10.scaleX = (_local11 * 0.01);
options.ad_progress(_local11);
if (sendHostProgress){
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local8});
if (_local8 >= 100){
sendHostProgress = false;
};
};
if (!chk.showing){
_local12 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local12 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if ((((_local3 > chk.ad_timeout)) && ((_local8 == 100)))){
options.ad_failed();
_local4 = true;
};
};
};
if (_local3 > chk.ad_msec){
_local4 = true;
};
if (((complete) && (_local4))){
if (unloaded){
MochiAd.unload(_local1);
} else {
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
};
};
};
};
doOnEnterFrame(chk);
}
public static function showPreloaderAd(_arg1:Object):void{
MochiAd.showPreGameAd(_arg1);
}
public static function showTimedAd(_arg1:Object):void{
MochiAd.showInterLevelAd(_arg1);
}
public static function doOnEnterFrame(_arg1:MovieClip):void{
var mc = _arg1;
var f:Function = function (_arg1:Object):void{
if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){
mc.onEnterFrame();
} else {
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
};
mc.addEventListener(Event.ENTER_FRAME, f);
}
}
}//package mochi.as3
Section 26
//MochiCoins (mochi.as3.MochiCoins)
package mochi.as3 {
public class MochiCoins {
public static const STORE_HIDE:String = "StoreHide";
public static const LOGGED_IN:String = "LoggedIn";
public static const STORE_ITEMS:String = "StoreItems";
public static const NO_USER:String = "NoUser";
public static const PROPERTIES_SIZE:String = "PropertiesSize";
public static const ITEM_NEW:String = "ItemNew";
public static const USER_INFO:String = "UserInfo";
public static const IO_ERROR:String = "IOError";
public static const ITEM_OWNED:String = "ItemOwned";
public static const PROPERTIES_SAVED:String = "PropertySaved";
public static const WIDGET_LOADED:String = "WidgetLoaded";
public static const ERROR:String = "Error";
public static const LOGGED_OUT:String = "LoggedOut";
public static const PROFILE_SHOW:String = "ProfileShow";
public static const LOGIN_HIDE:String = "LoginHide";
public static const LOGIN_SHOW:String = "LoginShow";
public static const STORE_SHOW:String = "StoreShow";
public static const PROFILE_HIDE:String = "ProfileHide";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
public static function showItem(_arg1:Object=null):void{
if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){
return;
};
MochiServices.bringToTop();
MochiServices.send("coins_showItem", {options:_arg1}, null, null);
}
public static function saveUserProperties(_arg1:Object):void{
MochiServices.send("coins_saveUserProperties", _arg1);
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function showLoginWidget(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("coins_showLoginWidget", {options:_arg1});
}
public static function getStoreItems():void{
MochiServices.send("coins_getStoreItems");
}
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function showStore(_arg1:Object=null):void{
MochiServices.bringToTop();
MochiServices.send("coins_showStore", {options:_arg1}, null, null);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
public static function getUserInfo():void{
MochiServices.send("coins_getUserInfo");
}
public static function hideLoginWidget():void{
MochiServices.send("coins_hideLoginWidget");
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function showVideo(_arg1:Object=null):void{
if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){
return;
};
MochiServices.bringToTop();
MochiServices.send("coins_showVideo", {options:_arg1}, null, null);
}
}
}//package mochi.as3
Section 27
//MochiEventDispatcher (mochi.as3.MochiEventDispatcher)
package mochi.as3 {
public class MochiEventDispatcher {
private var eventTable:Object;
public function MochiEventDispatcher():void{
eventTable = {};
}
public function triggerEvent(_arg1:String, _arg2:Object):void{
var _local3:Object;
if (eventTable[_arg1] == undefined){
return;
};
for (_local3 in eventTable[_arg1]) {
var _local6 = eventTable[_arg1];
_local6[_local3](_arg2);
};
}
public function removeEventListener(_arg1:String, _arg2:Function):void{
var _local3:Object;
if (eventTable[_arg1] == undefined){
eventTable[_arg1] = [];
return;
};
for (_local3 in eventTable[_arg1]) {
if (eventTable[_arg1][_local3] != _arg2){
} else {
eventTable[_arg1].splice(Number(_local3), 1);
};
};
}
public function addEventListener(_arg1:String, _arg2:Function):void{
removeEventListener(_arg1, _arg2);
eventTable[_arg1].push(_arg2);
}
}
}//package mochi.as3
Section 28
//MochiEvents (mochi.as3.MochiEvents)
package mochi.as3 {
import flash.display.*;
public class MochiEvents {
public static const ALIGN_BOTTOM_LEFT:String = "ALIGN_BL";
public static const FORMAT_LONG:String = "LongForm";
public static const ALIGN_BOTTOM:String = "ALIGN_B";
public static const ACHIEVEMENT_RECEIVED:String = "AchievementReceived";
public static const FORMAT_SHORT:String = "ShortForm";
public static const ALIGN_TOP_RIGHT:String = "ALIGN_TR";
public static const ALIGN_BOTTOM_RIGHT:String = "ALIGN_BR";
public static const ALIGN_TOP:String = "ALIGN_T";
public static const ALIGN_LEFT:String = "ALIGN_L";
public static const ALIGN_RIGHT:String = "ALIGN_R";
public static const ALIGN_TOP_LEFT:String = "ALIGN_TL";
public static const ALIGN_CENTER:String = "ALIGN_C";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
private static var gameStart:Number;
private static var levelStart:Number;
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function startSession(_arg1:String):void{
MochiServices.send("events_beginSession", {achievementID:_arg1}, null, null);
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function setNotifications(_arg1:MovieClip, _arg2:Object):void{
var _local4:Object;
var _local3:Object = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
_local3.clip = _arg1;
MochiServices.send("events_setNotifications", _local3, null, null);
}
public static function endGame():void{
var _local1:Number = (new Date().time - gameStart);
trigger("end_game", {time:_local1});
}
public static function startGame():void{
gameStart = new Date().time;
trigger("start_game");
}
public static function trigger(_arg1:String, _arg2:Object=null):void{
if (_arg2 == null){
_arg2 = {};
} else {
if (_arg2["kind"] != undefined){
_arg2["kind"] = _arg1;
};
};
MochiServices.send("events_triggerEvent", {eventObject:_arg2}, null, null);
}
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function startLevel():void{
levelStart = new Date().time;
trigger("start_level");
}
public static function endLevel():void{
var _local1:Number = (new Date().time - levelStart);
trigger("end_level", {time:_local1});
}
}
}//package mochi.as3
Section 29
//MochiServices (mochi.as3.MochiServices)
package mochi.as3 {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class MochiServices {
private static var _container:Object;
private static var _connected:Boolean = false;
private static var _swfVersion:String;
private static var _preserved:Object;
public static var netupAttempted:Boolean = false;
private static var _sendChannel:LocalConnection;
public static var servicesSync:MochiSync = new MochiSync();
private static var _clip:MovieClip;
private static var _id:String;
private static var _services:String = "services.swf";
private static var _servURL:String = "http://www.mochiads.com/static/lib/services/";
public static var widget:Boolean = false;
private static var _timer:Timer;
private static var _sendChannelName:String;
private static var _loader:Loader;
private static var _connecting:Boolean = false;
private static var _mochiLocalConnection:MovieClip;
private static var _listenChannelName:String = "__ms_";
public static var onError:Object;
public static var netup:Boolean = true;
private static var _mochiLC:String = "MochiLC.swf";
public static function isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function get connected():Boolean{
return (_connected);
}
private static function onReceive(_arg1:Object):void{
var pkg = _arg1;
var cb:String = pkg.callbackID;
var cblst:Object = _clip._callbacks[cb];
if (!cblst){
return;
};
var method:* = cblst.callbackMethod;
var methodName = "";
var obj:Object = cblst.callbackObject;
if (((obj) && ((typeof(method) == "string")))){
methodName = method;
if (obj[method] != null){
method = obj[method];
//unresolved jump
};
};
if (method != undefined){
try {
method.apply(obj, pkg.args);
} catch(error:Error) {
};
} else {
if (obj != null){
try {
obj(pkg.args);
} catch(error:Error) {
};
};
};
delete _clip._callbacks[cb];
}
public static function get childClip():Object{
return (_clip);
}
public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{
if (_connected){
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID});
} else {
if ((((_clip == null)) || (!(_connecting)))){
handleError(_arg2, _arg3, _arg4);
flush(true);
return;
};
_clip._queue.push({methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID});
};
if (_clip != null){
if (((!((_clip._callbacks == null))) && (!((_clip._nextcallbackID == null))))){
_clip._callbacks[_clip._nextcallbackID] = {callbackObject:_arg3, callbackMethod:_arg4};
_clip._nextcallbackID++;
};
};
}
private static function init(_arg1:String, _arg2:Object):void{
_id = _arg1;
if (_arg2 != null){
_container = _arg2;
loadCommunicator(_arg1, _container);
};
}
private static function clickMovie(_arg1:String, _arg2:Function):MovieClip{
var _local4:int;
var _local14:Loader;
var _local3:Array = [150, 21, 0, 7, 1, 0, 0, 0, 0, 98, 116, 110, 0, 7, 2, 0, 0, 0, 0, 116, 104, 105, 115, 0, 28, 150, 22, 0, 0, 99, 114, 101, 97, 116, 101, 69, 109, 112, 116, 121, 77, 111, 118, 105, 101, 67, 108, 105, 112, 0, 82, 135, 1, 0, 0, 23, 150, 13, 0, 4, 0, 0, 111, 110, 82, 101, 108, 101, 97, 115, 101, 0, 142, 8, 0, 0, 0, 0, 2, 42, 0, 114, 0, 150, 17, 0, 0, 32, 0, 7, 1, 0, 0, 0, 8, 0, 0, 115, 112, 108, 105, 116, 0, 82, 135, 1, 0, 1, 23, 150, 7, 0, 4, 1, 7, 0, 0, 0, 0, 78, 150, 8, 0, 0, 95, 98, 108, 97, 110, 107, 0, 154, 1, 0, 0, 150, 7, 0, 0, 99, 108, 105, 99, 107, 0, 150, 7, 0, 4, 1, 7, 1, 0, 0, 0, 78, 150, 27, 0, 7, 2, 0, 0, 0, 7, 0, 0, 0, 0, 0, 76, 111, 99, 97, 108, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 0, 64, 150, 6, 0, 0, 115, 101, 110, 100, 0, 82, 79, 150, 15, 0, 4, 0, 0, 95, 97, 108, 112, 104, 97, 0, 7, 0, 0, 0, 0, 79, 150, 23, 0, 7, 0xFF, 0, 0xFF, 0, 7, 1, 0, 0, 0, 4, 0, 0, 98, 101, 103, 105, 110, 70, 105, 108, 108, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 109, 111, 118, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 16, 0, 7, 0, 0, 0, 0, 4, 0, 0, 101, 110, 100, 70, 105, 108, 108, 0, 82, 23];
var _local5:Array = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3];
var _local6:Array = [0, 64, 0, 0, 0];
var _local7:MovieClip = new MovieClip();
var _local8:LocalConnection = new LocalConnection();
var _local9:String = ((("_click_" + Math.floor((Math.random() * 999999))) + "_") + Math.floor(new Date().time));
_local8 = new LocalConnection();
_local7.lc = _local8;
_local7.click = _arg2;
_local8.client = _local7;
_local8.connect(_local9);
var _local10:ByteArray = new ByteArray();
var _local11:ByteArray = new ByteArray();
_local11.endian = Endian.LITTLE_ENDIAN;
_local11.writeShort(1);
_local11.writeUTFBytes(((_arg1 + " ") + _local9));
_local11.writeByte(0);
var _local12:uint = ((_local3.length + _local11.length) + 4);
var _local13:uint = (_local12 + 35);
_local10.endian = Endian.LITTLE_ENDIAN;
_local10.writeUTFBytes("FWS");
_local10.writeByte(8);
_local10.writeUnsignedInt(_local13);
for each (_local4 in _local5) {
_local10.writeByte(_local4);
};
_local10.writeUnsignedInt(_local12);
_local10.writeByte(136);
_local10.writeShort(_local11.length);
_local10.writeBytes(_local11);
for each (_local4 in _local3) {
_local10.writeByte(_local4);
};
for each (_local4 in _local6) {
_local10.writeByte(_local4);
};
_local14 = new Loader();
_local14.loadBytes(_local10);
_local7.addChild(_local14);
return (_local7);
}
public static function stayOnTop():void{
_container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true);
if (_clip != null){
_clip.visible = true;
};
}
public static function addLinkEvent(_arg1:String, _arg2:String, _arg3:DisplayObjectContainer, _arg4:Function=null):void{
var avm1Click:DisplayObject;
var x:String;
var req:URLRequest;
var loader:Loader;
var setURL:Function;
var err:Function;
var complete:Function;
var url = _arg1;
var burl = _arg2;
var btn = _arg3;
var onClick = _arg4;
var vars:Object = new Object();
vars["mav"] = getVersion();
vars["swfv"] = "9";
vars["swfurl"] = btn.loaderInfo.loaderURL;
vars["fv"] = Capabilities.version;
vars["os"] = Capabilities.os;
vars["lang"] = Capabilities.language;
vars["scres"] = ((Capabilities.screenResolutionX + "x") + Capabilities.screenResolutionY);
var s = "?";
var i:Number = 0;
for (x in vars) {
if (i != 0){
s = (s + "&");
};
i = (i + 1);
s = (((s + x) + "=") + escape(vars[x]));
};
req = new URLRequest("http://x.mochiads.com/linkping.swf");
loader = new Loader();
setURL = function (_arg1:String):void{
if (avm1Click){
btn.removeChild(avm1Click);
};
avm1Click = clickMovie(_arg1, onClick);
var _local2:Rectangle = btn.getBounds(btn);
btn.addChild(avm1Click);
avm1Click.x = _local2.x;
avm1Click.y = _local2.y;
avm1Click.scaleX = (0.01 * _local2.width);
avm1Click.scaleY = (0.01 * _local2.height);
};
err = function (_arg1:Object):void{
netup = false;
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
setURL(burl);
};
complete = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
if (netup){
setURL((url + s));
} else {
setURL(burl);
};
if (!((netupAttempted) || (_connected))){
netupAttempted = true;
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, err);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.load(req);
};
}
public static function warnID(_arg1:String, _arg2:Boolean):void{
_arg1 = _arg1.toLowerCase();
if (_arg1.length != 16){
return;
};
if (_arg1 == "1e113c7239048b3f"){
if (_arg2){
//unresolved jump
};
return;
} else {
if (_arg1 == "84993a1de4031cd8"){
if (_arg2){
//unresolved jump
};
return;
};
};
var _local3:Number = 0;
while (_local3 < _arg1.length) {
switch (_arg1.charAt(_local3)){
case "0":
case "1":
case "2":
case "3":
case "4":
case "5":
case "6":
case "7":
case "8":
case "9":
case "a":
case "b":
case "c":
case "d":
case "e":
case "f":
break;
default:
return;
};
_local3++;
};
}
public static function disconnect():void{
if (((_connected) || (_connecting))){
if (_clip != null){
if (_clip.parent != null){
if ((_clip.parent is Sprite)){
Sprite(_clip.parent).removeChild(_clip);
_clip = null;
};
};
};
_connecting = (_connected = false);
flush(true);
try {
_mochiLocalConnection.close();
} catch(error:Error) {
};
};
if (_timer != null){
try {
_timer.stop();
} catch(error:Error) {
};
};
}
public static function allowDomains(_arg1:String):String{
var _local2:String;
if (Security.sandboxType != "application"){
Security.allowDomain("*");
Security.allowInsecureDomain("*");
};
if (_arg1.indexOf("http://") != -1){
_local2 = _arg1.split("/")[2].split(":")[0];
if (Security.sandboxType != "application"){
Security.allowDomain(_local2);
Security.allowInsecureDomain(_local2);
};
};
return (_local2);
}
public static function getVersion():String{
return ("3.3 as3");
}
public static function doClose():void{
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
}
private static function flush(_arg1:Boolean):void{
var _local2:Object;
var _local3:Object;
if (((_clip) && (_clip._queue))){
while (_clip._queue.length > 0) {
_local2 = _clip._queue.shift();
_local3 = null;
if (_local2 != null){
if (_local2.callbackID != null){
_local3 = _clip._callbacks[_local2.callbackID];
};
delete _clip._callbacks[_local2.callbackID];
if (((_arg1) && (!((_local3 == null))))){
handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod);
};
};
};
};
}
public static function get id():String{
return (_id);
}
private static function onEvent(_arg1:Object):void{
var _local2:String = _arg1.target;
var _local3:String = _arg1.event;
switch (_local2){
case "events":
MochiEvents.triggerEvent(_arg1.event, _arg1.args);
break;
case "coins":
MochiCoins.triggerEvent(_arg1.event, _arg1.args);
break;
case "sync":
servicesSync.triggerEvent(_arg1.event, _arg1.args);
break;
};
}
private static function urlOptions(_arg1:Object):Object{
var _local3:String;
var _local4:Array;
var _local5:Number;
var _local6:Array;
var _local2:Object = {};
if (_arg1.stage){
_local3 = _arg1.stage.loaderInfo.parameters.mochiad_options;
} else {
_local3 = _arg1.loaderInfo.parameters.mochiad_options;
};
if (_local3){
_local4 = _local3.split("&");
_local5 = 0;
while (_local5 < _local4.length) {
_local6 = _local4[_local5].split("=");
_local2[unescape(_local6[0])] = unescape(_local6[1]);
_local5++;
};
};
return (_local2);
}
public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{
if (_arg1 != null){
if ((_arg1 is Sprite)){
_container = _arg1;
};
};
if (_arg2){
if ((_container is Sprite)){
Sprite(_container).addChild(_clip);
};
};
}
private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{
var args = _arg1;
var callbackObject = _arg2;
var callbackMethod = _arg3;
if (args != null){
if (args.onError != null){
args.onError.apply(null, ["NotConnected"]);
};
if (((!((args.options == null))) && (!((args.options.onError == null))))){
args.options.onError.apply(null, ["NotConnected"]);
};
};
if (callbackMethod != null){
args = {};
args.error = true;
args.errorCode = "NotConnected";
if (((!((callbackObject == null))) && ((callbackMethod is String)))){
try {
var _local5 = callbackObject;
_local5[callbackMethod](args);
} catch(error:Error) {
};
} else {
if (callbackMethod != null){
try {
callbackMethod.apply(args);
} catch(error:Error) {
};
};
};
};
}
private static function loadError(_arg1:Object):void{
_clip._mochiad_ctr_failed = true;
MochiServices.disconnect();
MochiServices.onError("IOError");
}
private static function initComChannels():void{
if (!_connected){
_connecting = false;
_connected = true;
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"registerGame", preserved:_preserved, id:_id, clip:_container, version:getVersion(), parentURL:_container.loaderInfo.loaderURL});
_clip.onReceive = onReceive;
_clip.onEvent = onEvent;
_clip.onError = function ():void{
MochiServices.onError("IOError");
};
while (_clip._queue.length > 0) {
_mochiLocalConnection.send(_sendChannelName, "onReceive", _clip._queue.shift());
};
};
}
private static function loadLCBridge(_arg1:Object):void{
var loader:Loader;
var clip = _arg1;
loader = new Loader();
var mochiLCURL:String = (_servURL + _mochiLC);
var req:URLRequest = new URLRequest(mochiLCURL);
var complete:Function = function (_arg1:Object):void{
_mochiLocalConnection = MovieClip(loader.content);
listen();
};
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
loader.load(req);
clip.addChild(loader);
}
private static function listen():void{
_mochiLocalConnection.connect(_listenChannelName);
_clip.handshake = function (_arg1:Object):void{
MochiServices.comChannelName = _arg1.newChannel;
};
}
public static function get clip():Object{
return (_container);
}
public static function set comChannelName(_arg1:String):void{
if (_arg1 != null){
if (_arg1.length > 3){
_sendChannelName = (_arg1 + "_fromgame");
initComChannels();
};
};
}
private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{
var _local3:String = ("_mochiservices_com_" + _arg1);
if (_clip != null){
return (_clip);
};
if (!MochiServices.isNetworkAvailable()){
return (null);
};
if (urlOptions(_arg2).servURL){
_servURL = urlOptions(_arg2).servURL;
};
var _local4:String = (_servURL + _services);
if (urlOptions(_arg2).servicesURL){
_local4 = urlOptions(_arg2).servicesURL;
};
_listenChannelName = (_listenChannelName + ((Math.floor(new Date().time) + "_") + Math.floor((Math.random() * 99999))));
MochiServices.allowDomains(_local4);
_clip = createEmptyMovieClip(_arg2, _local3, 10336, false);
loadLCBridge(_clip);
_loader = new Loader();
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
var _local5:URLRequest = new URLRequest(_local4);
var _local6:URLVariables = new URLVariables();
_local6.listenLC = _listenChannelName;
_local6.mochiad_options = _arg2.loaderInfo.parameters.mochiad_options;
_local6.api_version = getVersion();
if (widget){
_local6.widget = true;
};
_local5.data = _local6;
_loader.load(_local5);
_clip.addChild(_loader);
_clip._mochiservices_com = _loader;
_sendChannel = new LocalConnection();
_clip._queue = [];
_clip._nextcallbackID = 0;
_clip._callbacks = {};
_timer = new Timer(10000, 1);
_timer.addEventListener(TimerEvent.TIMER, connectWait);
_timer.start();
return (_clip);
}
public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{
var id = _arg1;
var clip = _arg2;
var onError = _arg3;
warnID(id, false);
if ((clip is DisplayObject)){
if (((!(_connected)) && ((_clip == null)))){
_connecting = true;
init(id, clip);
};
//unresolved jump
};
if (onError != null){
MochiServices.onError = onError;
} else {
if (MochiServices.onError == null){
MochiServices.onError = function (_arg1:String):void{
};
};
};
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Boolean=true):MovieClip{
var parent = _arg1;
var name = _arg2;
var depth = _arg3;
var doAdd = _arg4;
var mc:MovieClip = new MovieClip();
if (doAdd){
if (((false) && (depth))){
parent.addChildAt(mc, depth);
} else {
parent.addChild(mc);
};
};
try {
parent[name] = mc;
} catch(e:Error) {
throw (new Error("MochiServices requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
mc["_name"] = name;
return (mc);
}
public static function bringToTop(_arg1:Event=null):void{
var e = _arg1;
if (((!((MochiServices.clip == null))) && (!((MochiServices.childClip == null))))){
try {
if (MochiServices.clip.numChildren > 1){
MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1));
};
} catch(errorObject:Error) {
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
};
};
}
public static function connectWait(_arg1:TimerEvent):void{
if (!_connected){
_clip._mochiad_ctr_failed = true;
MochiServices.disconnect();
MochiServices.onError("IOError");
};
}
}
}//package mochi.as3
Section 30
//MochiSync (mochi.as3.MochiSync)
package mochi.as3 {
import flash.utils.*;
public dynamic class MochiSync extends Proxy {
private var _syncContainer:Object;
public static var SYNC_PROPERTY:String = "UpdateProperty";
public static var SYNC_REQUEST:String = "SyncRequest";
public function MochiSync():void{
_syncContainer = {};
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{
if (_syncContainer[_arg1] == _arg2){
return;
};
var _local3:String = _arg1.toString();
_syncContainer[_local3] = _arg2;
MochiServices.send("sync_propUpdate", {name:_local3, value:_arg2});
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){
return (_syncContainer[_arg1]);
}
public function triggerEvent(_arg1:String, _arg2:Object):void{
switch (_arg1){
case SYNC_REQUEST:
MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY:
_syncContainer[_arg2.name] = _arg2.value;
break;
};
}
}
}//package mochi.as3
Section 31
//c1_17 (uralscrappy1_fla.c1_17)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class c1_17 extends MovieClip {
public var c1:TextField;
public function c1_17(){
__setStr_c1_c1_Layer1_0();
}
function __setStr_c1_c1_Layer1_0(){
if (Locale.checkXMLStatus()){
c1.text = Locale.loadString("IDS_C1");
} else {
Locale.addDelayedInstance(c1, "IDS_C1");
};
}
}
}//package uralscrappy1_fla
Section 32
//c2_19 (uralscrappy1_fla.c2_19)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class c2_19 extends MovieClip {
public var c2:TextField;
public function c2_19(){
__setStr_c2_c2_Layer1_0();
}
function __setStr_c2_c2_Layer1_0(){
if (Locale.checkXMLStatus()){
c2.text = Locale.loadString("IDS_C2");
} else {
Locale.addDelayedInstance(c2, "IDS_C2");
};
}
}
}//package uralscrappy1_fla
Section 33
//c3_21 (uralscrappy1_fla.c3_21)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class c3_21 extends MovieClip {
public var c3:TextField;
public function c3_21(){
__setStr_c3_c3_Layer1_0();
}
function __setStr_c3_c3_Layer1_0(){
if (Locale.checkXMLStatus()){
c3.text = Locale.loadString("IDS_C3");
} else {
Locale.addDelayedInstance(c3, "IDS_C3");
};
}
}
}//package uralscrappy1_fla
Section 34
//c4_23 (uralscrappy1_fla.c4_23)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class c4_23 extends MovieClip {
public var c4:TextField;
public function c4_23(){
__setStr_c4_c4_Layer1_0();
}
function __setStr_c4_c4_Layer1_0(){
if (Locale.checkXMLStatus()){
c4.text = Locale.loadString("IDS_C4");
} else {
Locale.addDelayedInstance(c4, "IDS_C4");
};
}
}
}//package uralscrappy1_fla
Section 35
//c5_24 (uralscrappy1_fla.c5_24)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class c5_24 extends MovieClip {
public var c5:TextField;
public function c5_24(){
__setStr_c5_c5_Layer1_0();
}
function __setStr_c5_c5_Layer1_0(){
if (Locale.checkXMLStatus()){
c5.text = Locale.loadString("IDS_C5");
} else {
Locale.addDelayedInstance(c5, "IDS_C5");
};
}
}
}//package uralscrappy1_fla
Section 36
//c6_27 (uralscrappy1_fla.c6_27)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class c6_27 extends MovieClip {
public var c6:TextField;
public function c6_27(){
__setStr_c6_c6_Layer1_0();
}
function __setStr_c6_c6_Layer1_0(){
if (Locale.checkXMLStatus()){
c6.text = Locale.loadString("IDS_C6");
} else {
Locale.addDelayedInstance(c6, "IDS_C6");
};
}
}
}//package uralscrappy1_fla
Section 37
//cat_47 (uralscrappy1_fla.cat_47)
package uralscrappy1_fla {
import flash.display.*;
public dynamic class cat_47 extends MovieClip {
public function cat_47(){
addFrameScript(0, frame1, 15, frame16);
}
function frame16(){
stop();
}
function frame1(){
stop();
}
}
}//package uralscrappy1_fla
Section 38
//cat2_61 (uralscrappy1_fla.cat2_61)
package uralscrappy1_fla {
import flash.display.*;
public dynamic class cat2_61 extends MovieClip {
public function cat2_61(){
addFrameScript(0, frame1, 15, frame16);
}
function frame16(){
stop();
}
function frame1(){
stop();
}
}
}//package uralscrappy1_fla
Section 39
//diag1_120 (uralscrappy1_fla.diag1_120)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class diag1_120 extends MovieClip {
public var __id21_:TextField;
public function diag1_120(){
__setStr___id21__diag1_Layer1_0();
}
function __setStr___id21__diag1_Layer1_0(){
if (Locale.checkXMLStatus()){
__id21_.text = Locale.loadString("IDS_DIALOG9");
} else {
Locale.addDelayedInstance(__id21_, "IDS_DIALOG9");
};
}
}
}//package uralscrappy1_fla
Section 40
//dialog10_121 (uralscrappy1_fla.dialog10_121)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class dialog10_121 extends MovieClip {
public var __id20_:TextField;
public function dialog10_121(){
__setStr___id20__dialog10_Layer1_0();
}
function __setStr___id20__dialog10_Layer1_0(){
if (Locale.checkXMLStatus()){
__id20_.text = Locale.loadString("IDS_DIALOG10");
} else {
Locale.addDelayedInstance(__id20_, "IDS_DIALOG10");
};
}
}
}//package uralscrappy1_fla
Section 41
//dialog11_122 (uralscrappy1_fla.dialog11_122)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class dialog11_122 extends MovieClip {
public var __id19_:TextField;
public function dialog11_122(){
__setStr___id19__dialog11_Layer1_0();
}
function __setStr___id19__dialog11_Layer1_0(){
if (Locale.checkXMLStatus()){
__id19_.text = Locale.loadString("IDS_DIALOG11");
} else {
Locale.addDelayedInstance(__id19_, "IDS_DIALOG11");
};
}
}
}//package uralscrappy1_fla
Section 42
//dialogscene21_125 (uralscrappy1_fla.dialogscene21_125)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class dialogscene21_125 extends MovieClip {
public var __id16_:TextField;
public function dialogscene21_125(){
__setStr___id16__dialogscene21_Layer1_0();
}
function __setStr___id16__dialogscene21_Layer1_0(){
if (Locale.checkXMLStatus()){
__id16_.text = Locale.loadString("IDS_SCENE21");
} else {
Locale.addDelayedInstance(__id16_, "IDS_SCENE21");
};
}
}
}//package uralscrappy1_fla
Section 43
//eat2_130 (uralscrappy1_fla.eat2_130)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class eat2_130 extends MovieClip {
public var by:TextField;
public function eat2_130(){
__setStr_by_eat2_Layer1_0();
}
function __setStr_by_eat2_Layer1_0(){
if (Locale.checkXMLStatus()){
by.text = Locale.loadString("IDS_EAT2");
} else {
Locale.addDelayedInstance(by, "IDS_EAT2");
};
}
}
}//package uralscrappy1_fla
Section 44
//eat3_131 (uralscrappy1_fla.eat3_131)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class eat3_131 extends MovieClip {
public var by:TextField;
public function eat3_131(){
__setStr_by_eat3_Layer1_0();
}
function __setStr_by_eat3_Layer1_0(){
if (Locale.checkXMLStatus()){
by.text = Locale.loadString("IDS_EAT3");
} else {
Locale.addDelayedInstance(by, "IDS_EAT3");
};
}
}
}//package uralscrappy1_fla
Section 45
//eat4d_132 (uralscrappy1_fla.eat4d_132)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class eat4d_132 extends MovieClip {
public var __id11_:TextField;
public function eat4d_132(){
__setStr___id11__eat4d_Layer1_0();
}
function __setStr___id11__eat4d_Layer1_0(){
if (Locale.checkXMLStatus()){
__id11_.text = Locale.loadString("IDS_EAT4");
} else {
Locale.addDelayedInstance(__id11_, "IDS_EAT4");
};
}
}
}//package uralscrappy1_fla
Section 46
//eat5d_133 (uralscrappy1_fla.eat5d_133)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class eat5d_133 extends MovieClip {
public var __id10_:TextField;
public function eat5d_133(){
__setStr___id10__eat5d_Layer1_0();
}
function __setStr___id10__eat5d_Layer1_0(){
if (Locale.checkXMLStatus()){
__id10_.text = Locale.loadString("IDS_EAT5");
} else {
Locale.addDelayedInstance(__id10_, "IDS_EAT5");
};
}
}
}//package uralscrappy1_fla
Section 47
//eateatD_129 (uralscrappy1_fla.eateatD_129)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class eateatD_129 extends MovieClip {
public var __id12_:TextField;
public function eateatD_129(){
__setStr___id12__eateatD_Layer1_0();
}
function __setStr___id12__eateatD_Layer1_0(){
if (Locale.checkXMLStatus()){
__id12_.text = Locale.loadString("IDS_EAT1");
} else {
Locale.addDelayedInstance(__id12_, "IDS_EAT1");
};
}
}
}//package uralscrappy1_fla
Section 48
//exitDialog_123 (uralscrappy1_fla.exitDialog_123)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class exitDialog_123 extends MovieClip {
public var __id18_:TextField;
public function exitDialog_123(){
__setStr___id18__exitDialog_Layer1_0();
}
function __setStr___id18__exitDialog_Layer1_0(){
if (Locale.checkXMLStatus()){
__id18_.text = Locale.loadString("IDS_DOOR2");
} else {
Locale.addDelayedInstance(__id18_, "IDS_DOOR2");
};
}
}
}//package uralscrappy1_fla
Section 49
//finD_142 (uralscrappy1_fla.finD_142)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class finD_142 extends MovieClip {
public var __id1_:TextField;
public function finD_142(){
__setStr___id1__finD_Layer1_0();
}
function __setStr___id1__finD_Layer1_0(){
if (Locale.checkXMLStatus()){
__id1_.text = Locale.loadString("IDS_FIN");
} else {
Locale.addDelayedInstance(__id1_, "IDS_FIN");
};
}
}
}//package uralscrappy1_fla
Section 50
//icona_69 (uralscrappy1_fla.icona_69)
package uralscrappy1_fla {
import flash.display.*;
public dynamic class icona_69 extends MovieClip {
public function icona_69(){
addFrameScript(0, frame1, 24, frame25, 95, frame96);
}
function frame25(){
stop();
}
function frame96(){
stop();
}
function frame1(){
stop();
}
}
}//package uralscrappy1_fla
Section 51
//incatcoordiualog_128 (uralscrappy1_fla.incatcoordiualog_128)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class incatcoordiualog_128 extends MovieClip {
public var __id13_:TextField;
public function incatcoordiualog_128(){
__setStr___id13__incatcoordiualog_Layer1_0();
}
function __setStr___id13__incatcoordiualog_Layer1_0(){
if (Locale.checkXMLStatus()){
__id13_.text = Locale.loadString("IDS_INCAT3");
} else {
Locale.addDelayedInstance(__id13_, "IDS_INCAT3");
};
}
}
}//package uralscrappy1_fla
Section 52
//incatdial_127 (uralscrappy1_fla.incatdial_127)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class incatdial_127 extends MovieClip {
public var __id14_:TextField;
public function incatdial_127(){
__setStr___id14__incatdial_Layer1_0();
}
function __setStr___id14__incatdial_Layer1_0(){
if (Locale.checkXMLStatus()){
__id14_.text = Locale.loadString("IDS_INCAT");
} else {
Locale.addDelayedInstance(__id14_, "IDS_INCAT");
};
}
}
}//package uralscrappy1_fla
Section 53
//intro1_16 (uralscrappy1_fla.intro1_16)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class intro1_16 extends MovieClip {
public var intro:TextField;
public function intro1_16(){
__setStr_intro_intro1_Layer1_0();
}
function __setStr_intro_intro1_Layer1_0(){
if (Locale.checkXMLStatus()){
intro.text = Locale.loadString("IDS_INTRO");
} else {
Locale.addDelayedInstance(intro, "IDS_INTRO");
};
}
}
}//package uralscrappy1_fla
Section 54
//legmoves_32 (uralscrappy1_fla.legmoves_32)
package uralscrappy1_fla {
import flash.display.*;
public dynamic class legmoves_32 extends MovieClip {
public function legmoves_32(){
addFrameScript(0, frame1, 7, frame8);
}
function frame8(){
stop();
}
function frame1(){
stop();
}
}
}//package uralscrappy1_fla
Section 55
//MainTimeline (uralscrappy1_fla.MainTimeline)
package uralscrappy1_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.xml.*;
import flash.utils.*;
import fl.lang.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class MainTimeline extends MovieClip {
public var loadingPrec:LoadingPr;
public var mrE:SimpleButton;
public var __id162_:TextField;
public var gameE:SimpleButton;
public var mrR:SimpleButton;
public var myContectMenu:ContextMenu;
public var gameR:SimpleButton;
public var __setStrDict:Dictionary;
public var MochiCl:MochiShow;
public var dialogs:Dialogs;
public var loading:text;
public function MainTimeline(){
__setStrDict = new Dictionary(true);
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
public function Play(_arg1:MouseEvent){
gotoAndStop(4);
}
function frame1(){
stop();
myContectMenu = new ContextMenu();
myContectMenu.hideBuiltInItems();
contextMenu = myContectMenu;
stage.addEventListener(Event.ENTER_FRAME, Update);
}
public function Update(_arg1:Event):void{
var _local2:Number = stage.loaderInfo.bytesLoaded;
var _local3:Number = stage.loaderInfo.bytesTotal;
var _local4:Number = 0;
if (_local3 > 0){
_local4 = ((_local2 / _local3) * 100);
loadingPrec.width = (_local4 * 7);
};
if ((((_local2 == _local3)) || ((_local3 == 0)))){
stage.removeEventListener(Event.ENTER_FRAME, Update);
play();
};
}
public function mr(_arg1:MouseEvent){
var _local2 = "http://crotery.com";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3);
}
function frame3(){
if ((((__setStrDict[__id162_] == undefined)) || (!((int(__setStrDict[__id162_]) == 3))))){
__setStrDict[__id162_] = 3;
__setStr___id162__Scene1_Interactive_2();
};
stop();
if (Locale.getDefaultLang() == "en"){
gameR.visible = false;
mrR.visible = false;
} else {
gameE.visible = false;
mrE.visible = false;
};
gameR.addEventListener(MouseEvent.CLICK, Play);
gameE.addEventListener(MouseEvent.CLICK, Play);
mrE.addEventListener(MouseEvent.CLICK, mr);
mrR.addEventListener(MouseEvent.CLICK, mr);
}
function frame2(){
MochiBot.track(this, "5d32f6a9");
stop();
stage.removeEventListener(Event.ENTER_FRAME, Update);
Locale.setDefaultLang("en");
loading.visible = false;
play();
}
function __setStr___id162__Scene1_Interactive_2(){
if (Locale.checkXMLStatus()){
__id162_.text = Locale.loadString("IDS_GAMENAME");
} else {
Locale.addDelayedInstance(__id162_, "IDS_GAMENAME");
};
}
}
}//package uralscrappy1_fla
Section 56
//pento_42 (uralscrappy1_fla.pento_42)
package uralscrappy1_fla {
import flash.display.*;
public dynamic class pento_42 extends MovieClip {
public function pento_42(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package uralscrappy1_fla
Section 57
//scene19_124 (uralscrappy1_fla.scene19_124)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class scene19_124 extends MovieClip {
public var __id17_:TextField;
public function scene19_124(){
__setStr___id17__scene19_Layer1_0();
}
function __setStr___id17__scene19_Layer1_0(){
if (Locale.checkXMLStatus()){
__id17_.text = Locale.loadString("IDS_SCENE19");
} else {
Locale.addDelayedInstance(__id17_, "IDS_SCENE19");
};
}
}
}//package uralscrappy1_fla
Section 58
//scene22_126 (uralscrappy1_fla.scene22_126)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class scene22_126 extends MovieClip {
public var __id15_:TextField;
public function scene22_126(){
__setStr___id15__scene22_Layer1_0();
}
function __setStr___id15__scene22_Layer1_0(){
if (Locale.checkXMLStatus()){
__id15_.text = Locale.loadString("IDS_SCENE22");
} else {
Locale.addDelayedInstance(__id15_, "IDS_SCENE22");
};
}
}
}//package uralscrappy1_fla
Section 59
//simbol5_73 (uralscrappy1_fla.simbol5_73)
package uralscrappy1_fla {
import flash.display.*;
public dynamic class simbol5_73 extends MovieClip {
public function simbol5_73(){
addFrameScript(0, frame1, 49, frame50);
}
function frame50(){
stop();
}
function frame1(){
stop();
}
}
}//package uralscrappy1_fla
Section 60
//text1_18 (uralscrappy1_fla.text1_18)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class text1_18 extends MovieClip {
public var text1:TextField;
public function text1_18(){
__setStr_text1_text1_Layer1_0();
}
function __setStr_text1_text1_Layer1_0(){
if (Locale.checkXMLStatus()){
text1.text = Locale.loadString("IDS_TEXT1");
} else {
Locale.addDelayedInstance(text1, "IDS_TEXT1");
};
}
}
}//package uralscrappy1_fla
Section 61
//text2_20 (uralscrappy1_fla.text2_20)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class text2_20 extends MovieClip {
public var text2:TextField;
public function text2_20(){
__setStr_text2_text2_Layer1_0();
}
function __setStr_text2_text2_Layer1_0(){
if (Locale.checkXMLStatus()){
text2.text = Locale.loadString("IDS_TEXT2");
} else {
Locale.addDelayedInstance(text2, "IDS_TEXT2");
};
}
}
}//package uralscrappy1_fla
Section 62
//text3_22 (uralscrappy1_fla.text3_22)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class text3_22 extends MovieClip {
public var text3:TextField;
public function text3_22(){
__setStr_text3_text3_Layer1_0();
}
function __setStr_text3_text3_Layer1_0(){
if (Locale.checkXMLStatus()){
text3.text = Locale.loadString("IDS_TEXT3");
} else {
Locale.addDelayedInstance(text3, "IDS_TEXT3");
};
}
}
}//package uralscrappy1_fla
Section 63
//text4_25 (uralscrappy1_fla.text4_25)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class text4_25 extends MovieClip {
public var text4:TextField;
public function text4_25(){
__setStr_text4_text4_Layer1_0();
}
function __setStr_text4_text4_Layer1_0(){
if (Locale.checkXMLStatus()){
text4.text = Locale.loadString("IDS_TEXT4");
} else {
Locale.addDelayedInstance(text4, "IDS_TEXT4");
};
}
}
}//package uralscrappy1_fla
Section 64
//text5_26 (uralscrappy1_fla.text5_26)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class text5_26 extends MovieClip {
public var text5:TextField;
public function text5_26(){
__setStr_text5_text5_Layer1_0();
}
function __setStr_text5_text5_Layer1_0(){
if (Locale.checkXMLStatus()){
text5.text = Locale.loadString("IDS_TEXT5");
} else {
Locale.addDelayedInstance(text5, "IDS_TEXT5");
};
}
}
}//package uralscrappy1_fla
Section 65
//text6_28 (uralscrappy1_fla.text6_28)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class text6_28 extends MovieClip {
public var text6:TextField;
public function text6_28(){
__setStr_text6_text6_Layer1_0();
}
function __setStr_text6_text6_Layer1_0(){
if (Locale.checkXMLStatus()){
text6.text = Locale.loadString("IDS_TEXT6");
} else {
Locale.addDelayedInstance(text6, "IDS_TEXT6");
};
}
}
}//package uralscrappy1_fla
Section 66
//text7_29 (uralscrappy1_fla.text7_29)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class text7_29 extends MovieClip {
public var text7:TextField;
public function text7_29(){
__setStr_text7_text7_Layer1_0();
}
function __setStr_text7_text7_Layer1_0(){
if (Locale.checkXMLStatus()){
text7.text = Locale.loadString("IDS_TEXT7");
} else {
Locale.addDelayedInstance(text7, "IDS_TEXT7");
};
}
}
}//package uralscrappy1_fla
Section 67
//text8_30 (uralscrappy1_fla.text8_30)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class text8_30 extends MovieClip {
public var __id131_:TextField;
public function text8_30(){
__setStr___id131__text8_Layer1_0();
}
function __setStr___id131__text8_Layer1_0(){
if (Locale.checkXMLStatus()){
__id131_.text = Locale.loadString("IDS_TEXT8");
} else {
Locale.addDelayedInstance(__id131_, "IDS_TEXT8");
};
}
}
}//package uralscrappy1_fla
Section 68
//titres_143 (uralscrappy1_fla.titres_143)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class titres_143 extends MovieClip {
public var __id0_:TextField;
public function titres_143(){
__setStr___id0__titres_Layer1_0();
}
function __setStr___id0__titres_Layer1_0(){
if (Locale.checkXMLStatus()){
__id0_.text = Locale.loadString("IDS_TITRES");
} else {
Locale.addDelayedInstance(__id0_, "IDS_TITRES");
};
}
}
}//package uralscrappy1_fla
Section 69
//trueendD_141 (uralscrappy1_fla.trueendD_141)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class trueendD_141 extends MovieClip {
public var __id2_:TextField;
public function trueendD_141(){
__setStr___id2__trueendD_Layer1_0();
}
function __setStr___id2__trueendD_Layer1_0(){
if (Locale.checkXMLStatus()){
__id2_.text = Locale.loadString("IDS_ENDEND");
} else {
Locale.addDelayedInstance(__id2_, "IDS_ENDEND");
};
}
}
}//package uralscrappy1_fla
Section 70
//trypd_134 (uralscrappy1_fla.trypd_134)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class trypd_134 extends MovieClip {
public var __id9_:TextField;
public function trypd_134(){
__setStr___id9__trypd_Layer1_0();
}
function __setStr___id9__trypd_Layer1_0(){
if (Locale.checkXMLStatus()){
__id9_.text = Locale.loadString("IDS_TRYP3");
} else {
Locale.addDelayedInstance(__id9_, "IDS_TRYP3");
};
}
}
}//package uralscrappy1_fla
Section 71
//z3_alpha1_93 (uralscrappy1_fla.z3_alpha1_93)
package uralscrappy1_fla {
import flash.display.*;
public dynamic class z3_alpha1_93 extends MovieClip {
public function z3_alpha1_93(){
addFrameScript(0, frame1, 60, frame61);
}
function frame61(){
stop();
}
function frame1(){
stop();
}
}
}//package uralscrappy1_fla
Section 72
//zaval1D_135 (uralscrappy1_fla.zaval1D_135)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class zaval1D_135 extends MovieClip {
public var __id8_:TextField;
public function zaval1D_135(){
__setStr___id8__zaval1D_Layer1_0();
}
function __setStr___id8__zaval1D_Layer1_0(){
if (Locale.checkXMLStatus()){
__id8_.text = Locale.loadString("IDS_ZAVAL1");
} else {
Locale.addDelayedInstance(__id8_, "IDS_ZAVAL1");
};
}
}
}//package uralscrappy1_fla
Section 73
//zaval1EndD_136 (uralscrappy1_fla.zaval1EndD_136)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class zaval1EndD_136 extends MovieClip {
public var __id7_:TextField;
public function zaval1EndD_136(){
__setStr___id7__zaval1EndD_Layer1_0();
}
function __setStr___id7__zaval1EndD_Layer1_0(){
if (Locale.checkXMLStatus()){
__id7_.text = Locale.loadString("IDS_ZAVAL1END");
} else {
Locale.addDelayedInstance(__id7_, "IDS_ZAVAL1END");
};
}
}
}//package uralscrappy1_fla
Section 74
//zaval2D_137 (uralscrappy1_fla.zaval2D_137)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class zaval2D_137 extends MovieClip {
public var __id6_:TextField;
public function zaval2D_137(){
__setStr___id6__zaval2D_Layer1_0();
}
function __setStr___id6__zaval2D_Layer1_0(){
if (Locale.checkXMLStatus()){
__id6_.text = Locale.loadString("IDS_ZAVAL2");
} else {
Locale.addDelayedInstance(__id6_, "IDS_ZAVAL2");
};
}
}
}//package uralscrappy1_fla
Section 75
//zaval2EndD_138 (uralscrappy1_fla.zaval2EndD_138)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class zaval2EndD_138 extends MovieClip {
public var __id5_:TextField;
public function zaval2EndD_138(){
__setStr___id5__zaval2EndD_Layer1_0();
}
function __setStr___id5__zaval2EndD_Layer1_0(){
if (Locale.checkXMLStatus()){
__id5_.text = Locale.loadString("IDS_ZAVAL2END");
} else {
Locale.addDelayedInstance(__id5_, "IDS_ZAVAL2END");
};
}
}
}//package uralscrappy1_fla
Section 76
//zaval3EndD_140 (uralscrappy1_fla.zaval3EndD_140)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class zaval3EndD_140 extends MovieClip {
public var __id3_:TextField;
public function zaval3EndD_140(){
__setStr___id3__zaval3EndD_Layer1_0();
}
function __setStr___id3__zaval3EndD_Layer1_0(){
if (Locale.checkXMLStatus()){
__id3_.text = Locale.loadString("IDS_ZAVAL3END");
} else {
Locale.addDelayedInstance(__id3_, "IDS_ZAVAL3END");
};
}
}
}//package uralscrappy1_fla
Section 77
//zaval3IN_139 (uralscrappy1_fla.zaval3IN_139)
package uralscrappy1_fla {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class zaval3IN_139 extends MovieClip {
public var __id4_:TextField;
public function zaval3IN_139(){
__setStr___id4__zaval3IN_Layer1_0();
}
function __setStr___id4__zaval3IN_Layer1_0(){
if (Locale.checkXMLStatus()){
__id4_.text = Locale.loadString("IDS_ZAVAL3");
} else {
Locale.addDelayedInstance(__id4_, "IDS_ZAVAL3");
};
}
}
}//package uralscrappy1_fla
Section 78
//as3circle (as3circle)
package {
import flash.display.*;
public dynamic class as3circle extends MovieClip {
}
}//package
Section 79
//bg (bg)
package {
import flash.display.*;
public dynamic class bg extends Sprite {
}
}//package
Section 80
//border (border)
package {
import flash.display.*;
public dynamic class border extends Sprite {
}
}//package
Section 81
//catmeow (catmeow)
package {
import flash.media.*;
public dynamic class catmeow extends Sound {
}
}//package
Section 82
//ComicsChapter1 (ComicsChapter1)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.xml.*;
import flash.utils.*;
import fl.lang.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class ComicsChapter1 extends MovieClip {
public var Symbol1_41:MovieClip;
public var __id136_:TextField;
public var __id144_:TextField;
public var __id132_:TextField;
public var __id140_:TextField;
public var __id137_:TextField;
public var skipE:SimpleButton;
public var __id145_:TextField;
public var __id133_:TextField;
public var __id141_:TextField;
public var __setStrDict:Dictionary;
public var skipR:SimpleButton;
public var __id138_:TextField;
public var __id146_:TextField;
public var __id134_:TextField;
public var __id142_:TextField;
public var __id139_:TextField;
public var __id135_:TextField;
public var __id143_:TextField;
public function ComicsChapter1(){
__setStrDict = new Dictionary(true);
super();
addFrameScript(1, frame2, 61, frame62, 107, frame108, 152, frame153, 197, frame198, 241, frame242, 288, frame289, 334, frame335, 395, frame396, 442, frame443, 473, frame474, 519, frame520, 565, frame566, 596, frame597, 627, frame628, 643, frame644);
}
function __setStr___id145__ComicsChapter1_as_596(){
if (Locale.checkXMLStatus()){
__id145_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id145_, "IDS_CLICKTOCON");
};
}
function frame153(){
if ((((__setStrDict[__id135_] == undefined)) || (!((int(__setStrDict[__id135_]) == 153))))){
__setStrDict[__id135_] = 153;
__setStr___id135__ComicsChapter1_as_152();
};
stop();
}
function frame474(){
if ((((__setStrDict[__id142_] == undefined)) || (!((int(__setStrDict[__id142_]) == 474))))){
__setStrDict[__id142_] = 474;
__setStr___id142__ComicsChapter1_as_473();
};
stop();
}
function __setStr___id134__ComicsChapter1_as_107(){
if (Locale.checkXMLStatus()){
__id134_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id134_, "IDS_CLICKTOCON");
};
}
function __setStr___id133__ComicsChapter1_as_61(){
if (Locale.checkXMLStatus()){
__id133_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id133_, "IDS_CLICKTOCON");
};
}
function frame198(){
if ((((__setStrDict[__id136_] == undefined)) || (!((int(__setStrDict[__id136_]) == 198))))){
__setStrDict[__id136_] = 198;
__setStr___id136__ComicsChapter1_as_197();
};
stop();
}
function frame597(){
if ((((__setStrDict[__id145_] == undefined)) || (!((int(__setStrDict[__id145_]) == 597))))){
__setStrDict[__id145_] = 597;
__setStr___id145__ComicsChapter1_as_596();
};
stop();
}
function __setStr___id140__ComicsChapter1_as_395(){
if (Locale.checkXMLStatus()){
__id140_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id140_, "IDS_CLICKTOCON");
};
}
function frame242(){
if ((((__setStrDict[__id137_] == undefined)) || (!((int(__setStrDict[__id137_]) == 242))))){
__setStrDict[__id137_] = 242;
__setStr___id137__ComicsChapter1_as_241();
};
stop();
}
function __setStr___id141__ComicsChapter1_as_442(){
if (Locale.checkXMLStatus()){
__id141_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id141_, "IDS_CLICKTOCON");
};
}
function frame289(){
if ((((__setStrDict[__id138_] == undefined)) || (!((int(__setStrDict[__id138_]) == 289))))){
__setStrDict[__id138_] = 289;
__setStr___id138__ComicsChapter1_as_288();
};
stop();
}
function frame566(){
if ((((__setStrDict[__id144_] == undefined)) || (!((int(__setStrDict[__id144_]) == 566))))){
__setStrDict[__id144_] = 566;
__setStr___id144__ComicsChapter1_as_565();
};
stop();
}
function frame396(){
if ((((__setStrDict[__id140_] == undefined)) || (!((int(__setStrDict[__id140_]) == 396))))){
__setStrDict[__id140_] = 396;
__setStr___id140__ComicsChapter1_as_395();
};
stop();
}
function frame443(){
if ((((__setStrDict[__id141_] == undefined)) || (!((int(__setStrDict[__id141_]) == 443))))){
__setStrDict[__id141_] = 443;
__setStr___id141__ComicsChapter1_as_442();
};
stop();
}
function frame644(){
stop();
(parent as MovieClip).gotoAndStop(5);
stage.removeEventListener(MouseEvent.CLICK, CommicsPlay);
}
function __setStr___id138__ComicsChapter1_as_288(){
if (Locale.checkXMLStatus()){
__id138_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id138_, "IDS_CLICKTOCON");
};
}
function __setStr___id139__ComicsChapter1_as_334(){
if (Locale.checkXMLStatus()){
__id139_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id139_, "IDS_CLICKTOCON");
};
}
public function CommicsPlay(_arg1:MouseEvent){
play();
}
function __setStr___id146__ComicsChapter1_as_627(){
if (Locale.checkXMLStatus()){
__id146_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id146_, "IDS_CLICKTOCON");
};
}
function frame335(){
if ((((__setStrDict[__id139_] == undefined)) || (!((int(__setStrDict[__id139_]) == 335))))){
__setStrDict[__id139_] = 335;
__setStr___id139__ComicsChapter1_as_334();
};
stop();
}
function __setStr___id144__ComicsChapter1_as_565(){
if (Locale.checkXMLStatus()){
__id144_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id144_, "IDS_CLICKTOCON");
};
}
function __setStr___id132__ComicsChapter1_intro(){
if (Locale.checkXMLStatus()){
__id132_.text = Locale.loadString("IDS_CLILTOCON");
} else {
Locale.addDelayedInstance(__id132_, "IDS_CLILTOCON");
};
}
function __setStr___id137__ComicsChapter1_as_241(){
if (Locale.checkXMLStatus()){
__id137_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id137_, "IDS_CLICKTOCON");
};
}
function __setStr___id136__ComicsChapter1_as_197(){
if (Locale.checkXMLStatus()){
__id136_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id136_, "IDS_CLICKTOCON");
};
}
function __setStr___id143__ComicsChapter1_as_519(){
if (Locale.checkXMLStatus()){
__id143_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id143_, "IDS_CLICKTOCON");
};
}
function frame520(){
if ((((__setStrDict[__id143_] == undefined)) || (!((int(__setStrDict[__id143_]) == 520))))){
__setStrDict[__id143_] = 520;
__setStr___id143__ComicsChapter1_as_519();
};
stop();
}
function __setStr___id142__ComicsChapter1_as_473(){
if (Locale.checkXMLStatus()){
__id142_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id142_, "IDS_CLICKTOCON");
};
}
public function fskip(_arg1:MouseEvent){
(parent as MovieClip).gotoAndStop(5);
}
function frame62(){
if ((((__setStrDict[__id133_] == undefined)) || (!((int(__setStrDict[__id133_]) == 62))))){
__setStrDict[__id133_] = 62;
__setStr___id133__ComicsChapter1_as_61();
};
stop();
}
function frame2(){
if ((((__setStrDict[__id132_] == undefined)) || (!((int(__setStrDict[__id132_]) == 2))))){
__setStrDict[__id132_] = 2;
__setStr___id132__ComicsChapter1_intro();
};
stop();
stop();
if (Locale.getDefaultLang() == "en"){
skipR.visible = false;
} else {
skipE.visible = false;
};
stage.addEventListener(MouseEvent.CLICK, CommicsPlay);
skipE.addEventListener(MouseEvent.CLICK, fskip);
skipR.addEventListener(MouseEvent.CLICK, fskip);
}
function frame628(){
if ((((__setStrDict[__id146_] == undefined)) || (!((int(__setStrDict[__id146_]) == 628))))){
__setStrDict[__id146_] = 628;
__setStr___id146__ComicsChapter1_as_627();
};
stop();
}
function frame108(){
if ((((__setStrDict[__id134_] == undefined)) || (!((int(__setStrDict[__id134_]) == 108))))){
__setStrDict[__id134_] = 108;
__setStr___id134__ComicsChapter1_as_107();
};
stop();
}
function __setStr___id135__ComicsChapter1_as_152(){
if (Locale.checkXMLStatus()){
__id135_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id135_, "IDS_CLICKTOCON");
};
}
}
}//package
Section 83
//Cro (Cro)
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class Cro extends SimpleButton {
public function Cro(){
addEventListener(MouseEvent.CLICK, goCrotery);
}
private function goCrotery(_arg1:MouseEvent){
var _local2 = "http://crotery.com";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3);
}
}
}//package
Section 84
//Dialogs (Dialogs)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import fl.lang.*;
import flash.text.*;
public dynamic class Dialogs extends MovieClip {
public var __id60_:TextField;
public var __id29_:TextField;
public var __id61_:TextField;
public var __id62_:TextField;
public var __id50_:TextField;
public var by:TextField;
public var __id63_:TextField;
public var __id51_:TextField;
public var __id52_:TextField;
public var __id40_:TextField;
public var __id64_:TextField;
public var __id65_:TextField;
public var __id53_:TextField;
public var __id41_:TextField;
public var __setStrDict:Dictionary;
public var WaitTimer:Timer;
public var __id54_:TextField;
public var __id42_:TextField;
public var MainClip:MovieClip;
public var __id30_:TextField;
public var __id55_:TextField;
public var __id43_:TextField;
public var __id31_:TextField;
public var __id56_:TextField;
public var __id32_:TextField;
public var __id44_:TextField;
public var __id57_:TextField;
public var __id45_:TextField;
public var __id33_:TextField;
public var __id58_:TextField;
public var __id34_:TextField;
public var __id22_:TextField;
public var __id46_:TextField;
public var __id59_:TextField;
public var __id47_:TextField;
public var __id35_:TextField;
public var __id23_:TextField;
public var __id36_:TextField;
public var __id24_:TextField;
public var __id48_:TextField;
public var WaitTimer2:Timer;
public var __id49_:TextField;
public var __id37_:TextField;
public var __id25_:TextField;
public var callFrame:Number;
public var __id38_:TextField;
public var __id26_:TextField;
public var __id39_:TextField;
public var __id27_:TextField;
public var __id28_:TextField;
public function Dialogs(){
__setStrDict = new Dictionary(true);
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 45, frame46, 77, frame78, 93, frame94, 94, frame95, 96, frame97, 149, frame150, 150, frame151, 176, frame177, 181, frame182, 182, frame183, 183, frame184, 184, frame185, 185, frame186, 211, frame212, 217, frame218, 218, frame219, 244, frame245, 250, frame251, 301, frame302, 312, frame313, 338, frame339, 343, frame344, 349, frame350, 360, frame361, 371, frame372, 377, frame378, 403, frame404, 413, frame414, 419, frame420, 420, frame421, 421, frame422, 422, frame423, 423, frame424, 449, frame450, 458, frame459, 484, frame485, 544, frame545, 594, frame595, 655, frame656, 705, frame706, 756, frame757, 807, frame808, 833, frame834, 892, frame893, 894, frame895, 95, frame96, 97, frame98, 893, frame894, 898, frame899);
this.mouseEnabled = false;
}
function frame151(){
if ((((__setStrDict[__id38_] == undefined)) || (!((int(__setStrDict[__id38_]) == 151))))){
__setStrDict[__id38_] = 151;
__setStr___id38__Dialogs_Layer1_150();
};
WaitTimer.start();
callFrame = currentFrame;
}
function __setStr___id42__Dialogs_Layer1_184(){
if (Locale.checkXMLStatus()){
__id42_.text = Locale.loadString("IDS_PENTO_CLICK2");
} else {
Locale.addDelayedInstance(__id42_, "IDS_PENTO_CLICK2");
};
}
function frame834(){
if ((((__setStrDict[__id62_] == undefined)) || (!((int(__setStrDict[__id62_]) == 834))))){
__setStrDict[__id62_] = 834;
__setStr___id62__Dialogs_as_833();
};
stop();
}
function __setStr___id59__Dialogs_as_484(){
if (Locale.checkXMLStatus()){
__id59_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id59_, "IDS_CLICKTOCON");
};
}
function __setStr___id22__Dialogs_Layer1_0(){
if (Locale.checkXMLStatus()){
__id22_.text = Locale.loadString("IDS_DIALOG1");
} else {
Locale.addDelayedInstance(__id22_, "IDS_DIALOG1");
};
}
function __setStr___id38__Dialogs_Layer1_150(){
if (Locale.checkXMLStatus()){
__id38_.text = Locale.loadString("IDS_CAT");
} else {
Locale.addDelayedInstance(__id38_, "IDS_CAT");
};
}
function __setStr___id52__Dialogs_as_371(){
if (Locale.checkXMLStatus()){
__id52_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id52_, "IDS_CLICKTOCON");
};
}
function __setStr___id36__Dialogs_Layer1_97(){
if (Locale.checkXMLStatus()){
__id36_.text = Locale.loadString("IDS_GHOST");
} else {
Locale.addDelayedInstance(__id36_, "IDS_GHOST");
};
}
function frame177(){
if ((((__setStrDict[__id39_] == undefined)) || (!((int(__setStrDict[__id39_]) == 177))))){
__setStrDict[__id39_] = 177;
__setStr___id39__Dialogs_as_176();
};
stop();
}
function frame10(){
stop();
}
function frame182(){
stop();
}
function __setStr___id29__Dialogs_Layer1_8(){
if (Locale.checkXMLStatus()){
__id29_.text = Locale.loadString("IDS_DIALOG8");
} else {
Locale.addDelayedInstance(__id29_, "IDS_DIALOG8");
};
}
function frame184(){
if ((((__setStrDict[__id41_] == undefined)) || (!((int(__setStrDict[__id41_]) == 184))))){
__setStrDict[__id41_] = 184;
__setStr___id41__Dialogs_Layer1_183();
};
WaitTimer.start();
callFrame = currentFrame;
}
function frame185(){
if ((((__setStrDict[__id42_] == undefined)) || (!((int(__setStrDict[__id42_]) == 185))))){
__setStrDict[__id42_] = 185;
__setStr___id42__Dialogs_Layer1_184();
};
WaitTimer.start();
callFrame = currentFrame;
}
function frame186(){
if ((((__setStrDict[__id43_] == undefined)) || (!((int(__setStrDict[__id43_]) == 186))))){
__setStrDict[__id43_] = 186;
__setStr___id43__Dialogs_Layer1_185();
};
WaitTimer.start();
callFrame = currentFrame;
}
function frame1(){
if ((((__setStrDict[__id22_] == undefined)) || (!((int(__setStrDict[__id22_]) == 1))))){
__setStrDict[__id22_] = 1;
__setStr___id22__Dialogs_Layer1_0();
};
MainClip = MovieClip((parent as MovieClip));
stop();
}
function frame2(){
if ((((__setStrDict[__id23_] == undefined)) || (!((int(__setStrDict[__id23_]) == 2))))){
__setStrDict[__id23_] = 2;
__setStr___id23__Dialogs_Layer1_1();
};
stop();
}
function frame3(){
if ((((__setStrDict[__id24_] == undefined)) || (!((int(__setStrDict[__id24_]) == 3))))){
__setStrDict[__id24_] = 3;
__setStr___id24__Dialogs_Layer1_2();
};
stop();
}
function __setStr___id61__Dialogs_as_705(){
if (Locale.checkXMLStatus()){
__id61_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id61_, "IDS_CLICKTOCON");
};
}
function frame7(){
if ((((__setStrDict[__id27_] == undefined)) || (!((int(__setStrDict[__id27_]) == 7))))){
__setStrDict[__id27_] = 7;
__setStr___id27__Dialogs_Layer1_6();
};
stop();
}
function frame8(){
if ((((__setStrDict[__id28_] == undefined)) || (!((int(__setStrDict[__id28_]) == 8))))){
__setStrDict[__id28_] = 8;
__setStr___id28__Dialogs_Layer1_7();
};
stop();
}
function frame9(){
if ((((__setStrDict[__id29_] == undefined)) || (!((int(__setStrDict[__id29_]) == 9))))){
__setStrDict[__id29_] = 9;
__setStr___id29__Dialogs_Layer1_8();
};
stop();
}
function frame4(){
if ((((__setStrDict[__id25_] == undefined)) || (!((int(__setStrDict[__id25_]) == 4))))){
__setStrDict[__id25_] = 4;
__setStr___id25__Dialogs_Layer1_3();
};
stop();
}
function __setStr___id39__Dialogs_as_176(){
if (Locale.checkXMLStatus()){
__id39_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id39_, "IDS_CLICKTOCON");
};
}
function frame6(){
if ((((__setStrDict[__id26_] == undefined)) || (!((int(__setStrDict[__id26_]) == 6))))){
__setStrDict[__id26_] = 6;
__setStr___id26__Dialogs_Layer1_5();
};
stop();
}
function __setStr___id48__Dialogs_Layer1_250(){
if (Locale.checkXMLStatus()){
__id48_.text = Locale.loadString("IDS_CATHCAT");
} else {
Locale.addDelayedInstance(__id48_, "IDS_CATHCAT");
};
}
function frame183(){
if ((((__setStrDict[__id40_] == undefined)) || (!((int(__setStrDict[__id40_]) == 183))))){
__setStrDict[__id40_] = 183;
__setStr___id40__Dialogs_Layer1_182();
};
stop();
}
function frame5(){
stop();
}
function __setStr___id41__Dialogs_Layer1_183(){
if (Locale.checkXMLStatus()){
__id41_.text = Locale.loadString("IDS_PENTO_CLICK1");
} else {
Locale.addDelayedInstance(__id41_, "IDS_PENTO_CLICK1");
};
}
function frame757(){
stop();
}
function __setStr___id62__Dialogs_as_833(){
if (Locale.checkXMLStatus()){
__id62_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id62_, "IDS_CLICKTOCON");
};
}
function __setStr___id37__Dialogs_Layer1_97(){
if (Locale.checkXMLStatus()){
__id37_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id37_, "IDS_CLICKTOCON");
};
}
function __setStr___id28__Dialogs_Layer1_7(){
if (Locale.checkXMLStatus()){
__id28_.text = Locale.loadString("IDS_DIALOG7");
} else {
Locale.addDelayedInstance(__id28_, "IDS_DIALOG7");
};
}
function __setStr___id58__Dialogs_Layer1_458(){
if (Locale.checkXMLStatus()){
__id58_.text = Locale.loadString("IDS_ZAVAL1WTF");
} else {
Locale.addDelayedInstance(__id58_, "IDS_ZAVAL1WTF");
};
}
function frame404(){
if ((((__setStrDict[__id53_] == undefined)) || (!((int(__setStrDict[__id53_]) == 404))))){
__setStrDict[__id53_] = 404;
__setStr___id53__Dialogs_as_403();
};
stop();
}
function frame46(){
if ((((__setStrDict[__id30_] == undefined)) || (!((int(__setStrDict[__id30_]) == 46))))){
__setStrDict[__id30_] = 46;
__setStr___id30__Dialogs_as_45();
};
stop();
}
function __setStr___id57__Dialogs_Layer1_422(){
if (Locale.checkXMLStatus()){
__id57_.text = Locale.loadString("IDS_TRYP2");
} else {
Locale.addDelayedInstance(__id57_, "IDS_TRYP2");
};
}
function __setStr___id32__Dialogs_Layer1_94(){
if (Locale.checkXMLStatus()){
__id32_.text = Locale.loadString("IDS_TRACTOR");
} else {
Locale.addDelayedInstance(__id32_, "IDS_TRACTOR");
};
}
function frame895(){
if ((((__setStrDict[__id64_] == undefined)) || (!((int(__setStrDict[__id64_]) == 895))))){
__setStrDict[__id64_] = 895;
__setStr___id64__Dialogs_as_894();
};
stop();
WaitTimer.start();
callFrame = currentFrame;
}
function frame414(){
if ((((__setStrDict[__id54_] == undefined)) || (!((int(__setStrDict[__id54_]) == 414))))){
__setStrDict[__id54_] = 414;
__setStr___id54__Dialogs_as_413();
};
stop();
}
function frame899(){
if ((((__setStrDict[__id65_] == undefined)) || (!((int(__setStrDict[__id65_]) == 899))))){
__setStrDict[__id65_] = 899;
__setStr___id65__Dialogs_as_898();
};
}
function frame893(){
stop();
}
function frame656(){
stop();
}
function __setStr___id27__Dialogs_Layer1_6(){
if (Locale.checkXMLStatus()){
__id27_.text = Locale.loadString("IDS_DIALOG6");
} else {
Locale.addDelayedInstance(__id27_, "IDS_DIALOG6");
};
}
function frame894(){
if ((((__setStrDict[__id63_] == undefined)) || (!((int(__setStrDict[__id63_]) == 894))))){
__setStrDict[__id63_] = 894;
__setStr___id63__Dialogs_as_893();
};
}
function frame422(){
if ((((__setStrDict[__id56_] == undefined)) || (!((int(__setStrDict[__id56_]) == 422))))){
__setStrDict[__id56_] = 422;
__setStr___id56__Dialogs_Layer1_421();
};
stop();
}
function frame302(){
if ((((__setStrDict[__id49_] == undefined)) || (!((int(__setStrDict[__id49_]) == 302))))){
__setStrDict[__id49_] = 302;
__setStr___id49__Dialogs_as_301();
};
stop();
}
function frame424(){
stop();
WaitTimer2 = new Timer(1000, 4);
WaitTimer2.start();
WaitTimer2.addEventListener(TimerEvent.TIMER_COMPLETE, WT2);
}
function frame420(){
stop();
}
function frame421(){
if ((((__setStrDict[__id55_] == undefined)) || (!((int(__setStrDict[__id55_]) == 421))))){
__setStrDict[__id55_] = 421;
__setStr___id55__Dialogs_Layer1_420();
};
stop();
WaitTimer.start();
callFrame = currentFrame;
}
function frame423(){
if ((((__setStrDict[__id57_] == undefined)) || (!((int(__setStrDict[__id57_]) == 423))))){
__setStrDict[__id57_] = 423;
__setStr___id57__Dialogs_Layer1_422();
};
stop();
WaitTimer.start();
callFrame = currentFrame;
}
function frame545(){
stop();
}
public function WT1(_arg1:TimerEvent):void{
if (currentFrame == callFrame){
gotoAndStop(94);
};
}
public function WT2(_arg1:TimerEvent):void{
gotoAndPlay(425);
WaitTimer2.removeEventListener(TimerEvent.TIMER_COMPLETE, WT2);
}
function __setStr___id46__Dialogs_Layer1_218(){
if (Locale.checkXMLStatus()){
__id46_.text = Locale.loadString("IDS_WITHCAT2");
} else {
Locale.addDelayedInstance(__id46_, "IDS_WITHCAT2");
};
}
function __setStr___id40__Dialogs_Layer1_182(){
if (Locale.checkXMLStatus()){
__id40_.text = Locale.loadString("IDS_PENTO2");
} else {
Locale.addDelayedInstance(__id40_, "IDS_PENTO2");
};
}
function frame313(){
if ((((__setStrDict[by] == undefined)) || (!((int(__setStrDict[by]) == 313))))){
__setStrDict[by] = 313;
__setStr_by_Dialogs_Layer1_312();
};
stop();
by.mouseEnabled = false;
}
function __setStr___id30__Dialogs_as_45(){
if (Locale.checkXMLStatus()){
__id30_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id30_, "IDS_CLICKTOCON");
};
}
function frame78(){
if ((((__setStrDict[__id31_] == undefined)) || (!((int(__setStrDict[__id31_]) == 78))))){
__setStrDict[__id31_] = 78;
__setStr___id31__Dialogs_as_77();
};
stop();
}
function __setStr___id53__Dialogs_as_403(){
if (Locale.checkXMLStatus()){
__id53_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id53_, "IDS_CLICKTOCON");
};
}
function __setStr___id26__Dialogs_Layer1_5(){
if (Locale.checkXMLStatus()){
__id26_.text = Locale.loadString("IDS_DIALOG5");
} else {
Locale.addDelayedInstance(__id26_, "IDS_DIALOG5");
};
}
function __setStr___id33__Dialogs_Layer1_95(){
if (Locale.checkXMLStatus()){
__id33_.text = Locale.loadString("IDS_PENTO");
} else {
Locale.addDelayedInstance(__id33_, "IDS_PENTO");
};
}
function __setStr___id54__Dialogs_as_413(){
if (Locale.checkXMLStatus()){
__id54_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id54_, "IDS_CLICKTOCON");
};
}
function __setStr___id49__Dialogs_as_301(){
if (Locale.checkXMLStatus()){
__id49_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id49_, "IDS_CLICKTOCON");
};
}
function __setStr___id56__Dialogs_Layer1_421(){
if (Locale.checkXMLStatus()){
__id56_.text = Locale.loadString("IDS_TRYP");
} else {
Locale.addDelayedInstance(__id56_, "IDS_TRYP");
};
}
function frame212(){
if ((((__setStrDict[__id44_] == undefined)) || (!((int(__setStrDict[__id44_]) == 212))))){
__setStrDict[__id44_] = 212;
__setStr___id44__Dialogs_as_211();
};
stop();
}
function __setStr___id63__Dialogs_as_893(){
if (Locale.checkXMLStatus()){
__id63_.text = Locale.loadString("IDS_GAMESPIRIT");
} else {
Locale.addDelayedInstance(__id63_, "IDS_GAMESPIRIT");
};
}
function frame97(){
if ((((__setStrDict[__id35_] == undefined)) || (!((int(__setStrDict[__id35_]) == 97))))){
__setStrDict[__id35_] = 97;
__setStr___id35__Dialogs_Layer1_96();
};
WaitTimer.start();
callFrame = currentFrame;
}
function frame339(){
stop();
}
function frame219(){
if ((((__setStrDict[__id46_] == undefined)) || (!((int(__setStrDict[__id46_]) == 219))))){
__setStrDict[__id46_] = 219;
__setStr___id46__Dialogs_Layer1_218();
};
stop();
WaitTimer.start();
callFrame = currentFrame;
}
function __setStr___id65__Dialogs_as_898(){
if (Locale.checkXMLStatus()){
__id65_.text = Locale.loadString("IDS_MINIGAME");
} else {
Locale.addDelayedInstance(__id65_, "IDS_MINIGAME");
};
}
function frame95(){
if ((((__setStrDict[__id32_] == undefined)) || (!((int(__setStrDict[__id32_]) == 95))))){
__setStrDict[__id32_] = 95;
__setStr___id32__Dialogs_Layer1_94();
};
WaitTimer.start();
callFrame = currentFrame;
}
function __setStr___id64__Dialogs_as_894(){
if (Locale.checkXMLStatus()){
__id64_.text = Locale.loadString("IDS_DYX");
} else {
Locale.addDelayedInstance(__id64_, "IDS_DYX");
};
}
function __setStr___id25__Dialogs_Layer1_3(){
if (Locale.checkXMLStatus()){
__id25_.text = Locale.loadString("IDS_DIALOG4");
} else {
Locale.addDelayedInstance(__id25_, "IDS_DIALOG4");
};
}
function __setStr___id31__Dialogs_as_77(){
if (Locale.checkXMLStatus()){
__id31_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id31_, "IDS_CLICKTOCON");
};
}
function frame96(){
if ((((__setStrDict[__id34_] == undefined)) || (!((int(__setStrDict[__id34_]) == 96))))){
__setStrDict[__id34_] = 96;
__setStr___id34__Dialogs_Layer1_95();
};
if ((((__setStrDict[__id33_] == undefined)) || (!((int(__setStrDict[__id33_]) == 96))))){
__setStrDict[__id33_] = 96;
__setStr___id33__Dialogs_Layer1_95();
};
}
function frame450(){
stop();
}
function frame218(){
if ((((__setStrDict[__id45_] == undefined)) || (!((int(__setStrDict[__id45_]) == 218))))){
__setStrDict[__id45_] = 218;
__setStr___id45__Dialogs_Layer1_217();
};
stop();
}
function frame98(){
if ((((__setStrDict[__id37_] == undefined)) || (!((int(__setStrDict[__id37_]) == 98))))){
__setStrDict[__id37_] = 98;
__setStr___id37__Dialogs_Layer1_97();
};
if ((((__setStrDict[__id36_] == undefined)) || (!((int(__setStrDict[__id36_]) == 98))))){
__setStrDict[__id36_] = 98;
__setStr___id36__Dialogs_Layer1_97();
};
}
function frame344(){
stop();
}
function frame94(){
stop();
WaitTimer = new Timer(1000, 5);
callFrame = currentFrame;
}
function frame459(){
if ((((__setStrDict[__id58_] == undefined)) || (!((int(__setStrDict[__id58_]) == 459))))){
__setStrDict[__id58_] = 459;
__setStr___id58__Dialogs_Layer1_458();
};
stop();
}
function __setStr___id45__Dialogs_Layer1_217(){
if (Locale.checkXMLStatus()){
__id45_.text = Locale.loadString("IDS_WITHCAT");
} else {
Locale.addDelayedInstance(__id45_, "IDS_WITHCAT");
};
}
function __setStr___id34__Dialogs_Layer1_95(){
if (Locale.checkXMLStatus()){
__id34_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id34_, "IDS_CLICKTOCON");
};
}
function __setStr___id44__Dialogs_as_211(){
if (Locale.checkXMLStatus()){
__id44_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id44_, "IDS_CLICKTOCON");
};
}
function frame350(){
if ((((__setStrDict[__id50_] == undefined)) || (!((int(__setStrDict[__id50_]) == 350))))){
__setStrDict[__id50_] = 350;
__setStr___id50__Dialogs_as_349();
};
stop();
}
function frame595(){
if ((((__setStrDict[__id60_] == undefined)) || (!((int(__setStrDict[__id60_]) == 595))))){
__setStrDict[__id60_] = 595;
__setStr___id60__Dialogs_as_594();
};
stop();
}
function __setStr___id43__Dialogs_Layer1_185(){
if (Locale.checkXMLStatus()){
__id43_.text = Locale.loadString("IDS_REGS");
} else {
Locale.addDelayedInstance(__id43_, "IDS_REGS");
};
}
function __setStr___id24__Dialogs_Layer1_2(){
if (Locale.checkXMLStatus()){
__id24_.text = Locale.loadString("IDS_DIALOG3");
} else {
Locale.addDelayedInstance(__id24_, "IDS_DIALOG3");
};
}
function frame485(){
if ((((__setStrDict[__id59_] == undefined)) || (!((int(__setStrDict[__id59_]) == 485))))){
__setStrDict[__id59_] = 485;
__setStr___id59__Dialogs_as_484();
};
stop();
}
function frame245(){
if ((((__setStrDict[__id47_] == undefined)) || (!((int(__setStrDict[__id47_]) == 245))))){
__setStrDict[__id47_] = 245;
__setStr___id47__Dialogs_as_244();
};
stop();
}
function __setStr_by_Dialogs_Layer1_312(){
if (Locale.checkXMLStatus()){
by.text = Locale.loadString("IDS_INCAT2");
} else {
Locale.addDelayedInstance(by, "IDS_INCAT2");
};
}
function frame361(){
if ((((__setStrDict[__id51_] == undefined)) || (!((int(__setStrDict[__id51_]) == 361))))){
__setStrDict[__id51_] = 361;
__setStr___id51__Dialogs_as_360();
};
stop();
}
function __setStr___id55__Dialogs_Layer1_420(){
if (Locale.checkXMLStatus()){
__id55_.text = Locale.loadString("IDS_MYAA");
} else {
Locale.addDelayedInstance(__id55_, "IDS_MYAA");
};
}
function frame808(){
stop();
}
function frame251(){
if ((((__setStrDict[__id48_] == undefined)) || (!((int(__setStrDict[__id48_]) == 251))))){
__setStrDict[__id48_] = 251;
__setStr___id48__Dialogs_Layer1_250();
};
stop();
}
function __setStr___id50__Dialogs_as_349(){
if (Locale.checkXMLStatus()){
__id50_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id50_, "IDS_CLICKTOCON");
};
}
function frame378(){
stop();
}
function frame372(){
if ((((__setStrDict[__id52_] == undefined)) || (!((int(__setStrDict[__id52_]) == 372))))){
__setStrDict[__id52_] = 372;
__setStr___id52__Dialogs_as_371();
};
stop();
}
function __setStr___id23__Dialogs_Layer1_1(){
if (Locale.checkXMLStatus()){
__id23_.text = Locale.loadString("IDS_DIALOG2");
} else {
Locale.addDelayedInstance(__id23_, "IDS_DIALOG2");
};
}
function __setStr___id35__Dialogs_Layer1_96(){
if (Locale.checkXMLStatus()){
__id35_.text = Locale.loadString("IDS_DOOR1");
} else {
Locale.addDelayedInstance(__id35_, "IDS_DOOR1");
};
}
function __setStr___id47__Dialogs_as_244(){
if (Locale.checkXMLStatus()){
__id47_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id47_, "IDS_CLICKTOCON");
};
}
function frame706(){
if ((((__setStrDict[__id61_] == undefined)) || (!((int(__setStrDict[__id61_]) == 706))))){
__setStrDict[__id61_] = 706;
__setStr___id61__Dialogs_as_705();
};
stop();
}
function __setStr___id51__Dialogs_as_360(){
if (Locale.checkXMLStatus()){
__id51_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id51_, "IDS_CLICKTOCON");
};
}
function __setStr___id60__Dialogs_as_594(){
if (Locale.checkXMLStatus()){
__id60_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id60_, "IDS_CLICKTOCON");
};
}
function frame150(){
stop();
}
}
}//package
Section 85
//doggrowl (doggrowl)
package {
import flash.media.*;
public dynamic class doggrowl extends Sound {
}
}//package
Section 86
//fon2 (fon2)
package {
import flash.display.*;
public dynamic class fon2 extends MovieClip {
}
}//package
Section 87
//Game (Game)
package {
import fl.motion.*;
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.utils.*;
import fl.lang.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
public class Game extends MovieClip {
public var ded:SimpleButton;
public var leg:MovieClip;
public var __motion_tratata:MotionBase;
public var icona2:MovieClip;
public var ppc2:MovieClip;
public var numberZ:Number;
var nowH:int;
public var tractor:SimpleButton;
var nowW:int;
var BF:Object;
public var __id126_:TextField;
var startx:int;
var starty:int;
public var tryagainE:SimpleButton;
public var ppc:MovieClip;
public var __id127_:TextField;
public var canDogEat:Boolean;
public var tryagainR:SimpleButton;
public var fade:MovieClip;
public var move1:SimpleButton;
public var move2:SimpleButton;
public var move3:SimpleButton;
public var __id128_:TextField;
public var gameCat:MovieClip;
public var resTimer:Timer;
public var dyx:SimpleButton;
public var catvis:MovieClip;
public var score:Number;
public var babka:SimpleButton;
public var __id129_:TextField;
public var __setStrDict:Dictionary;
public var exiticona:SimpleButton;
public var mainmenuE:SimpleButton;
public var morgamesE:SimpleButton;
public var moveCat_1:SimpleButton;
public var mainmenuR:SimpleButton;
public var END:MovieClip;
public var morgamesR:SimpleButton;
public var __animFactory_END_169:AnimatorFactory;
public var WaitBYYY:Timer;
public var losefin:TextField;
public var mirr:SimpleButton;
public var home:MovieClip;
public var canEnter:Boolean;
public var canexit:Boolean;
public var catvis_127:MovieClip;
var coorx:int;
public var icona:SimpleButton;
public var WaitEnd:Timer;
public var cat1:SimpleButton;
public var cat2:MovieClip;
public var cathcat_BG:MovieClip;
var coory:int;
public var catC:SimpleButton;
public var dog:SimpleButton;
public var cathcat:SimpleButton;
public var dialog:MovieClip;
public var __id130_:TextField;
public var withcat:MovieClip;
public var __animFactory_tratata:AnimatorFactory;
public var dnext:Number;
public var WaitZ1:Timer;
public var WaitZ2:Timer;
var mustX:int;
var mustY:int;
public var trypeg:SimpleButton;
public var WaitZ3:Timer;
public var __motion_END_169:MotionBase;
public var gameEnd:TextField;
public var shoke:MovieClip;
public var MC:MovieClip;
public var trypeg2:SimpleButton;
public var door:SimpleButton;
public var leoned:SimpleButton;
public var tratata:MovieClip;
public var cat:MovieClip;
public var vismirrow:Number;
public var gameOver:TextField;
public var za3:MovieClip;
public var window:SimpleButton;
public var devil:SimpleButton;
public var blood:SimpleButton;
public function Game(){
__setStrDict = new Dictionary(true);
super();
addFrameScript(0, frame1, 1, frame2, 21, frame22, 23, frame24, 50, frame51, 128, frame129, 154, frame155, 155, frame156, 181, frame182, 207, frame208, 208, frame209, 234, frame235, 260, frame261, 261, frame262, 287, frame288, 339, frame340, 340, frame341, 390, frame391, 416, frame417, 450, frame451, 454, frame455, 459, frame460, 470, frame471, 481, frame482, 492, frame493, 493, frame494, 497, frame498, 498, frame499, 525, frame526, 578, frame579, 579, frame580, 604, frame605, 610, frame611, 621, frame622, 632, frame633, 643, frame644, 672, frame673, 675, frame676, 676, frame677, 794, frame795, 819, frame820, 829, frame830, 859, frame860, 860, frame861, 874, frame875, 875, frame876, 876, frame877, 877, frame878, 899, frame900, 949, frame950, 974, frame975, 979, frame980, 1035, frame1036, 1086, frame1087, 1137, frame1138, 1188, frame1189, 1213, frame1214, 1214, frame1215);
mustX = this.x;
mustY = this.y;
checkcoor();
addEventListener(Event.ENTER_FRAME, moveClips);
}
function frame155(){
stop();
MC.addEventListener(MouseEvent.CLICK, DPlay);
}
function frame156(){
MC.removeEventListener(MouseEvent.CLICK, DPlay);
}
function frame950(){
dialog.play();
}
function frame830(){
gotoAndStop(676);
}
function __setStr___id130__Game_as_1188(){
if (Locale.checkXMLStatus()){
__id130_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id130_, "IDS_CLICKTOCON");
};
}
function frame1189(){
if ((((__setStrDict[__id130_] == undefined)) || (!((int(__setStrDict[__id130_]) == 1189))))){
__setStrDict[__id130_] = 1189;
__setStr___id130__Game_as_1188();
};
stop();
MC.addEventListener(MouseEvent.CLICK, DPlay);
}
public function ficona2(_arg1:MouseEvent){
if (canEnter == true){
numberZ = 2;
icona2.play();
WaitZ2.start();
exiticona.visible = false;
} else {
icona2.play();
canEnter = true;
};
}
public function PlayLeg(_arg1:MouseEvent){
numberZ = 1;
ded.visible = false;
leg.play();
WaitZ1.start();
WaitZ1.addEventListener(TimerEvent.TIMER_COMPLETE, Z1);
dialog.gotoAndStop(459);
}
public function fcathcat(_arg1:MouseEvent){
gotoAndStop(289);
resTimer.start();
dialog.gotoAndStop(894);
gameCat.visible = true;
gameCat.gotoAndStop(1);
MC.addEventListener(MouseEvent.CLICK, fgamecat);
}
function frame288(){
stop();
__animFactory_tratata.addTarget(cathcat_BG, 0);
cathcat.addEventListener(MouseEvent.CLICK, fcathcat);
icona2.visible = false;
exiticona.visible = false;
fade.visible = false;
gameCat.visible = false;
icona.addEventListener(MouseEvent.CLICK, ficona);
icona2.addEventListener(MouseEvent.CLICK, ficona2);
exiticona.addEventListener(MouseEvent.CLICK, fexiticona);
canEnter = false;
WaitZ2 = new Timer(1000, 4);
WaitZ2.addEventListener(TimerEvent.TIMER_COMPLETE, Z2);
resTimer = new Timer(1000, 1);
resTimer.addEventListener(TimerEvent.TIMER_COMPLETE, resonTick);
}
function frame605(){
gotoAndPlay(980);
}
public function fppc(_arg1:MouseEvent){
ppc.visible = false;
dialog.gotoAndStop(94);
}
public function fmirr(_arg1:MouseEvent){
mirr.visible = false;
ppc2.visible = true;
door.visible = true;
canexit = true;
dialog.gotoAndStop(98);
var _local2:ImSpirit = new ImSpirit();
var _local3:SoundChannel = _local2.play();
}
function frame611(){
stop();
WaitEnd.start();
}
function frame975(){
gotoAndPlay(22);
}
function frame1087(){
if ((((__setStrDict[__id128_] == undefined)) || (!((int(__setStrDict[__id128_]) == 1087))))){
__setStrDict[__id128_] = 1087;
__setStr___id128__Game_as_1086();
};
stop();
MC.addEventListener(MouseEvent.CLICK, DPlay);
}
public function fdyx(_arg1:MouseEvent){
dialog.gotoAndStop(895);
}
function frame2(){
babka.addEventListener(MouseEvent.CLICK, DPlay);
}
public function checkcoor():void{
this.x = mustX;
this.y = mustY;
startx = this.x;
starty = this.y;
nowW = this.width;
nowH = this.height;
coorx = (startx - (this.width - 750));
coory = (starty - (this.height - 550));
}
public function ficona(_arg1:MouseEvent){
exiticona.visible = true;
icona2.visible = true;
}
function __setStr___id126__Game_as_481(){
if (Locale.checkXMLStatus()){
__id126_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id126_, "IDS_CLICKTOCON");
};
}
function frame24(){
MC.removeEventListener(MouseEvent.CLICK, DPlay);
}
function __setStr___id128__Game_as_1086(){
if (Locale.checkXMLStatus()){
__id128_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id128_, "IDS_CLICKTOCON");
};
}
function frame1(){
stop();
ded.addEventListener(MouseEvent.CLICK, DPlay);
score = 0;
numberZ = 0;
MC = MovieClip((parent as MovieClip));
dialog = MovieClip(((parent as MovieClip).getChildByName("dialogs") as MovieClip));
WaitZ1 = new Timer(1000, 3);
leg.addEventListener(MouseEvent.CLICK, PlayLeg);
}
function frame22(){
stop();
MC.addEventListener(MouseEvent.CLICK, DPlay);
}
public function ftrypeg2(_arg1:MouseEvent){
play();
dialog.gotoAndStop(424);
}
function frame182(){
stop();
__animFactory_tratata.addTarget(shoke, 0);
dialog.gotoAndStop(183);
dnext = 0;
move2.visible = false;
leoned.addEventListener(MouseEvent.CLICK, fleoned);
move2.addEventListener(MouseEvent.CLICK, fmove2);
}
function frame860(){
gotoAndStop(676);
}
function frame861(){
gotoAndStop(288);
}
function frame980(){
MC.addEventListener(MouseEvent.CLICK, DPlay);
}
public function fcat2(_arg1:MouseEvent){
catC.visible = false;
cat2.mouseEnabled = false;
cat2.play();
dialog.gotoAndStop(219);
move3.visible = true;
}
function frame622(){
stop();
WaitEnd.start();
}
function frame878(){
MC.gotoAndStop(3);
}
function frame633(){
stop();
WaitEnd.start();
}
function frame877(){
gotoAndStop(1);
dialog.gotoAndStop(1);
}
function frame644(){
stop();
WaitEnd.start();
}
function frame875(){
gotoAndStop(676);
}
public function checkmirow():void{
if (vismirrow == 0){
mirr.visible = true;
};
}
public function resonTick(_arg1:TimerEvent):void{
if (gameCat.currentFrame > 1){
gameCat.prevFrame();
if (!(gameCat.currentFrame & (gameCat.currentFrame - 1))){
if ((currentFrame - 1) > 289){
gotoAndStop((currentFrame - 1));
};
};
};
resTimer.start();
}
public function wtEnd():void{
if (numberZ == 0){
gameEnd.visible = true;
tryagainR.visible = false;
morgamesR.x = -175;
tryagainE.visible = false;
morgamesE.x = -175;
} else {
losefin.visible = true;
gameOver.visible = true;
};
}
public function End(_arg1:TimerEvent):void{
play();
}
function frame876(){
gotoAndStop(526);
}
function frame526(){
stop();
devil.addEventListener(MouseEvent.CLICK, fdevil);
dog.addEventListener(MouseEvent.CLICK, fdog);
trypeg.addEventListener(MouseEvent.CLICK, ftrypeg);
canDogEat = false;
za3.visible = false;
WaitZ3 = new Timer(1000, 2);
WaitZ3.addEventListener(TimerEvent.TIMER_COMPLETE, Z3);
}
function frame51(){
stop();
MC.removeEventListener(MouseEvent.CLICK, DPlay);
__motion_tratata = new Motion();
__motion_tratata.duration = 101;
__motion_tratata.addPropertyArray("x", [0]);
__motion_tratata.addPropertyArray("y", [0]);
__motion_tratata.addPropertyArray("scaleX", [1]);
__motion_tratata.addPropertyArray("scaleY", [1]);
__motion_tratata.addPropertyArray("skewX", [0]);
__motion_tratata.addPropertyArray("skewY", [0]);
__motion_tratata.addPropertyArray("rotationConcat", [0]);
__motion_tratata.addPropertyArray("blendMode", ["normal"]);
__motion_tratata.initFilters(["flash.filters.ColorMatrixFilter"], [0], -1, -1);
__motion_tratata.addFilterPropertyArray(0, "adjustColorBrightness", [0, -0.399999, -0.799999, -1.2, -1.6, -2, -2.4, -2.8, -3.2, -3.6, -4, -4.4, -4.8, -5.2, -5.6, -6, -6.4, -6.8, -7.2, -7.6, -8, -8.4, -8.8, -9.2, -9.6, -10, -10.4, -10.8, -11.2, -11.6, -12, -12.4, -12.8, -13.2, -13.6, -14, -14.4, -14.8, -15.2, -15.6, -16, -16.4, -16.8, -17.2, -17.6, -18, -18.4, -18.8, -19.2, -19.6, -20, -19.6, -19.2, -18.8, -18.4, -18, -17.6, -17.2, -16.8, -16.4, -16, -15.6, -15.2, -14.8, -14.4, -14, -13.6, -13.2, -12.8, -12.4, -12, -11.6, -11.2, -10.8, -10.4, -10, -9.6, -9.2, -8.8, -8.4, -8, -7.6, -7.2, -6.8, -6.4, -6, -5.6, -5.2, -4.8, -4.4, -4, -3.6, -3.2, -2.8, -2.4, -2, -1.6, -1.2, -0.800001, -0.400001, 0], -1, -1);
__motion_tratata.addFilterPropertyArray(0, "adjustColorContrast", [0, 0.399999, 0.799999, 1.2, 1.6, 2, 2.4, 2.8, 3.2, 3.6, 4, 4.4, 4.8, 5.2, 5.6, 6, 6.4, 6.8, 7.2, 7.6, 8, 8.4, 8.8, 9.2, 9.6, 10, 10.4, 10.8, 11.2, 11.6, 12, 12.4, 12.8, 13.2, 13.6, 14, 14.4, 14.8, 15.2, 15.6, 16, 16.4, 16.8, 17.2, 17.6, 18, 18.4, 18.8, 19.2, 19.6, 20, 19.62, 19.24, 18.86, 18.48, 18.1, 17.72, 17.34, 16.96, 16.58, 16.2, 15.82, 15.44, 15.06, 14.68, 14.3, 13.92, 13.54, 13.16, 12.78, 12.4, 12.02, 11.64, 11.26, 10.88, 10.5, 10.12, 9.74, 9.36, 8.98, 8.6, 8.22, 7.84, 7.46, 7.08, 6.7, 6.32, 5.94, 5.56, 5.18, 4.8, 4.42, 4.04, 3.66, 3.28, 2.9, 2.52, 2.14, 1.76, 1.38, 1], -1, -1);
__motion_tratata.addFilterPropertyArray(0, "adjustColorSaturation", [0], -1, -1);
__motion_tratata.addFilterPropertyArray(0, "adjustColorHue", [0], -1, -1);
__animFactory_tratata = new AnimatorFactory(__motion_tratata);
__animFactory_tratata.addTarget(tratata, 0);
ppc.visible = false;
ppc2.visible = false;
ppc.addEventListener(MouseEvent.CLICK, fppc);
ppc2.addEventListener(MouseEvent.CLICK, fppc2);
window.addEventListener(MouseEvent.CLICK, fwindow);
tractor.addEventListener(MouseEvent.CLICK, ftractor);
door.addEventListener(MouseEvent.CLICK, fdoor);
mirr.addEventListener(MouseEvent.CLICK, fmirr);
mirr.visible = false;
vismirrow = 2;
canexit = false;
}
function frame417(){
stop();
WaitBYYY = new Timer(1000, 6);
WaitBYYY.addEventListener(TimerEvent.TIMER_COMPLETE, BYYY);
WaitBYYY.start();
}
public function fmoregames(_arg1:MouseEvent){
var _local2 = "http://crotery.com";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3);
}
public function ftryagain(_arg1:MouseEvent){
if (numberZ == 1){
gotoAndStop(877);
} else {
if (numberZ == 2){
gotoAndStop(861);
dialog.gotoAndStop(251);
} else {
if (numberZ == 3){
gotoAndStop(876);
dialog.gotoAndStop(5);
};
};
};
}
function frame1214(){
stop();
numberZ = 0;
dialog.gotoAndPlay(809);
}
function frame1215(){
stop();
}
function __setStr_gameOver_Game_alpha(){
if (Locale.checkXMLStatus()){
gameOver.text = Locale.loadString("IDS_GAMEOVER");
} else {
Locale.addDelayedInstance(gameOver, "IDS_GAMEOVER");
};
}
public function fmainmenu(_arg1:MouseEvent){
gotoAndStop(878);
}
function frame673(){
stop();
MC.addEventListener(MouseEvent.CLICK, DPlay);
numberZ = 0;
dialog.gotoAndPlay(850);
}
public function fexiticona(_arg1:MouseEvent){
exiticona.visible = false;
icona2.visible = false;
}
function frame677(){
if ((((__setStrDict[losefin] == undefined)) || (!((int(__setStrDict[losefin]) == 677))))){
__setStrDict[losefin] = 677;
__setStr_losefin_Game_alpha();
};
if ((((__setStrDict[gameEnd] == undefined)) || (!((int(__setStrDict[gameEnd]) == 677))))){
__setStrDict[gameEnd] = 677;
__setStr_gameEnd_Game_alpha();
};
if ((((__setStrDict[gameOver] == undefined)) || (!((int(__setStrDict[gameOver]) == 677))))){
__setStrDict[gameOver] = 677;
__setStr_gameOver_Game_alpha();
};
stop();
MC.removeEventListener(MouseEvent.CLICK, DPlay);
if (Locale.getDefaultLang() == "en"){
tryagainR.visible = false;
mainmenuR.visible = false;
morgamesR.visible = false;
} else {
tryagainE.visible = false;
mainmenuE.visible = false;
morgamesE.visible = false;
};
gameOver.visible = false;
gameEnd.visible = false;
losefin.visible = false;
wtEnd();
tryagainR.addEventListener(MouseEvent.CLICK, ftryagain);
mainmenuR.addEventListener(MouseEvent.CLICK, fmainmenu);
morgamesR.addEventListener(MouseEvent.CLICK, fmoregames);
tryagainE.addEventListener(MouseEvent.CLICK, ftryagain);
mainmenuE.addEventListener(MouseEvent.CLICK, fmainmenu);
morgamesE.addEventListener(MouseEvent.CLICK, fmoregames);
}
public function ftractor(_arg1:MouseEvent){
dialog.gotoAndStop(95);
}
public function fdog(_arg1:MouseEvent){
var _local2:doggrowl;
var _local3:SoundChannel;
if (canDogEat){
numberZ = 3;
za3.visible = true;
za3.play();
dialog.gotoAndPlay(657);
WaitZ3.start();
} else {
canDogEat = true;
_local2 = new doggrowl();
_local3 = _local2.play();
};
}
public function Z1(_arg1:TimerEvent):void{
gotoAndPlay(700);
WaitZ1.removeEventListener(TimerEvent.TIMER_COMPLETE, Z1);
dialog.gotoAndStop(5);
}
public function Z2(_arg1:TimerEvent):void{
dialog.gotoAndPlay(546);
fade.visible = true;
fade.play();
MC.addEventListener(MouseEvent.CLICK, DPlay);
WaitZ2.removeEventListener(TimerEvent.TIMER_COMPLETE, Z2);
}
public function Z3(_arg1:TimerEvent):void{
MC.addEventListener(MouseEvent.CLICK, DPlay);
WaitZ3.removeEventListener(TimerEvent.TIMER_COMPLETE, Z3);
}
function frame795(){
dialog.gotoAndPlay(460);
}
public function fdoor(_arg1:MouseEvent){
if (canexit){
dialog.gotoAndPlay(99);
play();
} else {
vismirrow--;
door.visible = false;
checkmirow();
dialog.gotoAndStop(97);
};
}
public function fmoveCat_1(_arg1:MouseEvent){
play();
dialog.gotoAndPlay(314);
}
function frame676(){
stop();
__motion_END_169 = new Motion();
__motion_END_169.duration = 51;
__motion_END_169.addPropertyArray("x", [0]);
__motion_END_169.addPropertyArray("y", [0]);
__motion_END_169.addPropertyArray("scaleX", [1]);
__motion_END_169.addPropertyArray("scaleY", [1]);
__motion_END_169.addPropertyArray("skewX", [0]);
__motion_END_169.addPropertyArray("skewY", [0]);
__motion_END_169.addPropertyArray("rotationConcat", [0]);
__motion_END_169.addPropertyArray("blendMode", ["normal"]);
__motion_END_169.addPropertyArray("alphaMultiplier", [0, 0.02, 0.04, 0.06, 0.08, 0.1, 0.12, 0.14, 0.16, 0.18, 0.2, 0.22, 0.24, 0.26, 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.52, 0.54, 0.56, 0.58, 0.6, 0.62, 0.64, 0.66, 0.68, 0.7, 0.72, 0.74, 0.76, 0.78, 0.8, 0.82, 0.84, 0.86, 0.88, 0.9, 0.92, 0.94, 0.96, 0.98, 1]);
__animFactory_END_169 = new AnimatorFactory(__motion_END_169);
__animFactory_END_169.addTarget(END, 1);
}
function frame209(){
MC.removeEventListener(MouseEvent.CLICK, DPlay);
}
function frame208(){
stop();
MC.addEventListener(MouseEvent.CLICK, DPlay);
}
function frame451(){
stop();
MC.addEventListener(MouseEvent.CLICK, DPlay);
}
function frame455(){
dialog.gotoAndPlay(345);
}
function frame579(){
stop();
dialog.gotoAndStop(422);
blood.addEventListener(MouseEvent.CLICK, fblood);
trypeg2.addEventListener(MouseEvent.CLICK, ftrypeg2);
}
public function fdevil(_arg1:MouseEvent){
var _local2:catmeow = new catmeow();
var _local3:SoundChannel = _local2.play();
dialog.gotoAndStop(421);
}
public function fblood(_arg1:MouseEvent){
dialog.gotoAndStop(423);
}
public function ftrypeg(_arg1:MouseEvent){
play();
}
function frame580(){
WaitEnd = new Timer(1000, 3);
WaitEnd.start();
WaitEnd.addEventListener(TimerEvent.TIMER_COMPLETE, End);
}
function frame460(){
stop();
}
function frame340(){
stop();
MC.addEventListener(MouseEvent.CLICK, DPlay);
}
function frame341(){
MC.removeEventListener(MouseEvent.CLICK, DPlay);
}
function __setStr_gameEnd_Game_alpha(){
if (Locale.checkXMLStatus()){
gameEnd.text = Locale.loadString("IDS_GAMEEND");
} else {
Locale.addDelayedInstance(gameEnd, "IDS_GAMEEND");
};
}
function frame1138(){
if ((((__setStrDict[__id129_] == undefined)) || (!((int(__setStrDict[__id129_]) == 1138))))){
__setStrDict[__id129_] = 1138;
__setStr___id129__Game_as_1137();
};
stop();
MC.addEventListener(MouseEvent.CLICK, DPlay);
}
function frame900(){
stop();
dialog.gotoAndStop(900);
}
public function fgamecat(_arg1:MouseEvent){
gameCat.nextFrame();
if (!(gameCat.currentFrame & (gameCat.currentFrame - 1))){
gotoAndStop((currentFrame + 1));
};
if (gameCat.currentFrame >= 100){
resTimer.stop();
gameCat.visible = false;
gotoAndPlay(289);
dialog.gotoAndPlay(252);
MC.removeEventListener(MouseEvent.CLICK, fgamecat);
};
}
function frame471(){
stop();
}
function __setStr___id127__Game_as_1035(){
if (Locale.checkXMLStatus()){
__id127_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id127_, "IDS_CLICKTOCON");
};
}
function frame235(){
stop();
__animFactory_tratata.addTarget(withcat, 0);
catC.addEventListener(MouseEvent.CLICK, fcat2);
move3.visible = false;
move3.addEventListener(MouseEvent.CLICK, fmove3);
}
public function fppc2(_arg1:MouseEvent){
ppc2.visible = false;
dialog.gotoAndStop(94);
}
public function DPlay(_arg1:MouseEvent){
if (dialog.currentFrame == 4){
gotoAndStop(2);
dialog.play();
} else {
if (dialog.currentFrame == 10){
gotoAndPlay(920);
} else {
if (dialog.currentFrame == 46){
gotoAndStop(22);
dialog.play();
} else {
if (dialog.currentFrame == 78){
gotoAndPlay(23);
dialog.play();
} else {
if (dialog.currentFrame < 79){
dialog.play();
} else {
if ((((((((((currentFrame == 155)) || ((currentFrame == 208)))) || ((currentFrame == 261)))) || ((dialog.currentFrame == 302)))) || ((currentFrame == 460)))){
play();
dialog.play();
} else {
if ((((((currentFrame == 451)) || ((currentFrame == 482)))) || ((currentFrame == 493)))){
play();
} else {
if (currentFrame == 471){
if (score == 0){
dialog.gotoAndPlay(362);
score = 1;
} else {
dialog.gotoAndPlay(373);
play();
};
} else {
if (currentFrame == 498){
if (score == 0){
dialog.gotoAndPlay(405);
score = 1;
} else {
if (score == 1){
dialog.gotoAndPlay(415);
play();
};
};
} else {
if (currentFrame == 820){
dialog.gotoAndPlay(486);
play();
} else {
if (currentFrame == 288){
dialog.gotoAndPlay(596);
gotoAndPlay(850);
} else {
if (currentFrame == 526){
dialog.gotoAndPlay(707);
gotoAndPlay(865);
} else {
if (currentFrame == 1214){
dialog.gotoAndPlay(835);
gotoAndStop(1215);
} else {
if (currentFrame == 1215){
gotoAndPlay(675);
dialog.gotoAndPlay(758);
} else {
if ((((((((((currentFrame == 1036)) || ((currentFrame == 1087)))) || ((currentFrame == 1138)))) || ((currentFrame == 1189)))) || ((currentFrame == 676)))){
play();
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function fleoned(_arg1:MouseEvent){
if (dnext == 0){
dialog.gotoAndStop(184);
dnext = 1;
} else {
if (dnext == 1){
dialog.gotoAndStop(185);
move2.visible = true;
};
};
}
function frame482(){
if ((((__setStrDict[__id126_] == undefined)) || (!((int(__setStrDict[__id126_]) == 482))))){
__setStrDict[__id126_] = 482;
__setStr___id126__Game_as_481();
};
stop();
}
function frame129(){
stop();
__animFactory_tratata.addTarget(home, 0);
cat1.addEventListener(MouseEvent.CLICK, fcat);
move1.visible = false;
move1.addEventListener(MouseEvent.CLICK, fmove1);
}
function frame1036(){
if ((((__setStrDict[__id127_] == undefined)) || (!((int(__setStrDict[__id127_]) == 1036))))){
__setStrDict[__id127_] = 1036;
__setStr___id127__Game_as_1035();
};
stop();
}
public function fcat(_arg1:MouseEvent){
cat1.visible = false;
cat.mouseEnabled = false;
cat.play();
dialog.gotoAndStop(151);
move1.visible = true;
}
function frame493(){
stop();
}
function frame494(){
dialog.gotoAndPlay(379);
}
public function BYYY(_arg1:TimerEvent):void{
play();
dialog.play();
WaitZ2.removeEventListener(TimerEvent.TIMER_COMPLETE, BYYY);
}
function frame499(){
MC.removeEventListener(MouseEvent.CLICK, DPlay);
}
function frame498(){
stop();
score = 0;
}
function __setStr___id129__Game_as_1137(){
if (Locale.checkXMLStatus()){
__id129_.text = Locale.loadString("IDS_CLICKTOCON");
} else {
Locale.addDelayedInstance(__id129_, "IDS_CLICKTOCON");
};
}
function moveClips(_arg1:Event):void{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
if ((((nowW == this.width)) && ((nowH == this.height)))){
_local2 = 43;
_local3 = (stage.mouseX - 250);
this.x = (this.x - (_local3 / _local2));
if (this.x >= startx){
this.x = startx;
} else {
if (this.x <= coorx){
this.x = coorx;
};
};
_local4 = 43;
_local5 = (stage.mouseY - 250);
this.y = (this.y - (_local5 / _local4));
if (this.y >= starty){
this.y = starty;
} else {
if (this.y <= coory){
this.y = coory;
};
};
} else {
checkcoor();
};
}
public function fmove1(_arg1:MouseEvent){
play();
dialog.gotoAndPlay(152);
}
public function fmove2(_arg1:MouseEvent){
dialog.gotoAndPlay(187);
play();
}
public function fwindow(_arg1:MouseEvent){
vismirrow--;
checkmirow();
window.visible = false;
ppc.visible = true;
dialog.gotoAndStop(96);
}
function frame262(){
MC.removeEventListener(MouseEvent.CLICK, DPlay);
}
public function fmove3(_arg1:MouseEvent){
play();
dialog.gotoAndPlay(220);
}
function frame261(){
stop();
MC.addEventListener(MouseEvent.CLICK, DPlay);
}
function frame820(){
stop();
MC.addEventListener(MouseEvent.CLICK, DPlay);
}
function __setStr_losefin_Game_alpha(){
if (Locale.checkXMLStatus()){
losefin.text = Locale.loadString("IDS_LOSEFIN");
} else {
Locale.addDelayedInstance(losefin, "IDS_LOSEFIN");
};
}
function frame391(){
stop();
__animFactory_tratata.addTarget(catvis, 0);
moveCat_1.addEventListener(MouseEvent.CLICK, fmoveCat_1);
dyx.addEventListener(MouseEvent.CLICK, fdyx);
}
}
}//package
Section 88
//ImSpirit (ImSpirit)
package {
import flash.media.*;
public dynamic class ImSpirit extends Sound {
}
}//package
Section 89
//LoadingPr (LoadingPr)
package {
import flash.display.*;
public dynamic class LoadingPr extends MovieClip {
}
}//package
Section 90
//MainFon (MainFon)
package {
import flash.display.*;
public dynamic class MainFon extends MovieClip {
}
}//package
Section 91
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 92
//MochiShow (MochiShow)
package {
import flash.display.*;
import flash.events.*;
import mochi.as3.*;
import flash.net.*;
public class MochiShow extends MovieClip {
public function MochiShow(){
addEventListener(MouseEvent.CLICK, goCrotery);
if (isUrl(["kongregate.com", "crotery.com"])){
this.visible = false;
};
var _local1:* = new MovieClip();
addChild(_local1);
MochiAd.showClickAwayAd({clip:_local1, id:"1ce3d09e55ef6bc5"});
}
private function goCrotery(_arg1:MouseEvent){
var _local2 = "http://crotery.com";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3);
}
private function isUrl(_arg1:Array):Boolean{
var _local2:String = stage.loaderInfo.loaderURL;
var _local3:Number = (_local2.indexOf("://") + 3);
var _local4:Number = _local2.indexOf("/", _local3);
var _local5:String = _local2.substring(_local3, _local4);
var _local6:Number = (_local5.lastIndexOf(".") - 1);
var _local7:Number = (_local5.lastIndexOf(".", _local6) + 1);
_local5 = _local5.substring(_local7, _local5.length);
var _local8:int;
while (_local8 < _arg1.length) {
if (_local5 == _arg1[_local8]){
return (true);
};
_local8++;
};
return (false);
}
}
}//package
Section 93
//text (text)
package {
import flash.display.*;
import fl.lang.*;
import flash.text.*;
public dynamic class text extends MovieClip {
public var loading:TextField;
public function text(){
__setStr_loading_text_Layer1_0();
}
function __setStr_loading_text_Layer1_0(){
if (Locale.checkXMLStatus()){
loading.text = Locale.loadString("IDS_LOADING");
} else {
Locale.addDelayedInstance(loading, "IDS_LOADING");
};
}
}
}//package