Section 1
//ComboBox (fl.controls.ComboBox)
package fl.controls {
import flash.display.*;
public dynamic class ComboBox extends MovieClip {
}
}//package fl.controls
Section 2
//List (fl.controls.List)
package fl.controls {
import flash.display.*;
public dynamic class List extends MovieClip {
}
}//package fl.controls
Section 3
//TextInput (fl.controls.TextInput)
package fl.controls {
import flash.display.*;
public dynamic class TextInput extends MovieClip {
}
}//package fl.controls
Section 4
//Sine (gs.easing.Sine)
package gs.easing {
public class Sine {
private static const _HALF_PI:Number = 1.5707963267949;
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (((_arg3 * Math.sin(((_arg1 / _arg4) * _HALF_PI))) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * _HALF_PI))) + _arg3) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((-(_arg3) / 2) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2));
}
}
}//package gs.easing
Section 5
//TweenEvent (gs.events.TweenEvent)
package gs.events {
import flash.events.*;
public class TweenEvent extends Event {
public var info:Object;
public static const UPDATE:String = "update";
public static const START:String = "start";
public static const version:Number = 0.9;
public static const COMPLETE:String = "complete";
public function TweenEvent(_arg1:String, _arg2:Object=null, _arg3:Boolean=false, _arg4:Boolean=false){
super(_arg1, _arg3, _arg4);
this.info = _arg2;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.info, this.bubbles, this.cancelable));
}
}
}//package gs.events
Section 6
//AutoAlphaPlugin (gs.plugins.AutoAlphaPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class AutoAlphaPlugin extends TweenPlugin {
protected var _tweenVisible:Boolean;
protected var _tween:TweenLite;
protected var _visible:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function AutoAlphaPlugin(){
this.propName = "autoAlpha";
this.overwriteProps = ["alpha", "visible"];
this.onComplete = onCompleteTween;
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
if (((!((_target.visible == true))) && (_tweenVisible))){
_target.visible = true;
};
}
public function onCompleteTween():void{
if (((((_tweenVisible) && (!((_tween.vars.runBackwards == true))))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_visible = Boolean(!((_arg2 == 0)));
_tweenVisible = true;
addTween(_arg1, "alpha", _arg1.alpha, _arg2, "alpha");
return (true);
}
override public function killProps(_arg1:Object):void{
super.killProps(_arg1);
_tweenVisible = !(Boolean(("visible" in _arg1)));
}
}
}//package gs.plugins
Section 7
//BevelFilterPlugin (gs.plugins.BevelFilterPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.filters.*;
public class BevelFilterPlugin extends FilterPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function BevelFilterPlugin(){
this.propName = "bevelFilter";
this.overwriteProps = ["bevelFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_type = BevelFilter;
initFilter(_arg2, new BevelFilter(0, 0, 0xFFFFFF, 0.5, 0, 0.5, 2, 2, 0, ((_arg2.quality) || (2))));
return (true);
}
}
}//package gs.plugins
Section 8
//BezierPlugin (gs.plugins.BezierPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class BezierPlugin extends TweenPlugin {
protected var _future:Object;
protected var _orient:Boolean;
protected var _orientData:Array;
protected var _beziers:Object;
protected var _target:Object;
protected static const _RAD2DEG:Number = 57.2957795130823;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function BezierPlugin(){
_future = {};
super();
this.propName = "bezier";
this.overwriteProps = [];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:String;
var _local4:Object;
var _local5:Number;
var _local6:uint;
var _local7:Number;
var _local8:int;
var _local9:Object;
var _local10:Boolean;
var _local11:Number;
var _local12:Number;
var _local13:Array;
var _local14:Number;
if (_arg1 == 1){
for (_local3 in _beziers) {
_local2 = (_beziers[_local3].length - 1);
_target[_local3] = _beziers[_local3][_local2][2];
};
} else {
for (_local3 in _beziers) {
_local6 = _beziers[_local3].length;
if (_arg1 < 0){
_local2 = 0;
} else {
if (_arg1 >= 1){
_local2 = (_local6 - 1);
} else {
_local2 = int((_local6 * _arg1));
};
};
_local5 = ((_arg1 - (_local2 * (1 / _local6))) * _local6);
_local4 = _beziers[_local3][_local2];
if (this.round){
_local7 = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0])))));
_local8 = ((_local7)<0) ? -1 : 1;
_target[_local3] = ((((_local7 % 1) * _local8))>0.5) ? (int(_local7) + _local8) : int(_local7);
} else {
_target[_local3] = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0])))));
};
};
};
if (_orient){
_local9 = _target;
_local10 = this.round;
_target = _future;
this.round = false;
_orient = false;
this.changeFactor = (_arg1 + 0.01);
_target = _local9;
this.round = _local10;
_orient = true;
_local2 = 0;
while (_local2 < _orientData.length) {
_local13 = _orientData[_local2];
_local14 = ((_local13[3]) || (0));
_local11 = (_future[_local13[0]] - _target[_local13[0]]);
_local12 = (_future[_local13[1]] - _target[_local13[1]]);
_target[_local13[2]] = ((Math.atan2(_local12, _local11) * _RAD2DEG) + _local14);
_local2++;
};
};
}
protected function init(_arg1:TweenLite, _arg2:Array, _arg3:Boolean):void{
var _local4:Object;
var _local5:int;
var _local6:String;
_target = _arg1.target;
if (_arg1.exposedVars.orientToBezier == true){
_orientData = [["x", "y", "rotation", 0]];
_orient = true;
} else {
if ((_arg1.exposedVars.orientToBezier is Array)){
_orientData = _arg1.exposedVars.orientToBezier;
_orient = true;
};
};
_local4 = {};
_local5 = 0;
while (_local5 < _arg2.length) {
for (_local6 in _arg2[_local5]) {
if (_local4[_local6] == undefined){
_local4[_local6] = [_arg1.target[_local6]];
};
if (typeof(_arg2[_local5][_local6]) == "number"){
_local4[_local6].push(_arg2[_local5][_local6]);
} else {
_local4[_local6].push((_arg1.target[_local6] + Number(_arg2[_local5][_local6])));
};
};
_local5++;
};
for (_local6 in _local4) {
this.overwriteProps[this.overwriteProps.length] = _local6;
if (_arg1.exposedVars[_local6] != undefined){
if (typeof(_arg1.exposedVars[_local6]) == "number"){
_local4[_local6].push(_arg1.exposedVars[_local6]);
} else {
_local4[_local6].push((_arg1.target[_local6] + Number(_arg1.exposedVars[_local6])));
};
delete _arg1.exposedVars[_local6];
_local5 = (_arg1.tweens.length - 1);
while (_local5 > -1) {
if (_arg1.tweens[_local5].name == _local6){
_arg1.tweens.splice(_local5, 1);
};
_local5--;
};
};
};
_beziers = parseBeziers(_local4, _arg3);
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (!(_arg2 is Array)){
return (false);
};
init(_arg3, (_arg2 as Array), false);
return (true);
}
override public function killProps(_arg1:Object):void{
var _local2:String;
for (_local2 in _beziers) {
if ((_local2 in _arg1)){
delete _beziers[_local2];
};
};
super.killProps(_arg1);
}
public static function parseBeziers(_arg1:Object, _arg2:Boolean=false):Object{
var _local3:int;
var _local4:Array;
var _local5:Object;
var _local6:String;
var _local7:Object;
_local7 = {};
if (_arg2){
for (_local6 in _arg1) {
_local4 = _arg1[_local6];
_local5 = [];
_local7[_local6] = _local5;
if (_local4.length > 2){
_local5[_local5.length] = [_local4[0], (_local4[1] - ((_local4[2] - _local4[0]) / 4)), _local4[1]];
_local3 = 1;
while (_local3 < (_local4.length - 1)) {
_local5[_local5.length] = [_local4[_local3], (_local4[_local3] + (_local4[_local3] - _local5[(_local3 - 1)][1])), _local4[(_local3 + 1)]];
_local3++;
};
} else {
_local5[_local5.length] = [_local4[0], ((_local4[0] + _local4[1]) / 2), _local4[1]];
};
};
} else {
for (_local6 in _arg1) {
_local4 = _arg1[_local6];
_local5 = [];
_local7[_local6] = _local5;
if (_local4.length > 3){
_local5[_local5.length] = [_local4[0], _local4[1], ((_local4[1] + _local4[2]) / 2)];
_local3 = 2;
while (_local3 < (_local4.length - 2)) {
_local5[_local5.length] = [_local5[(_local3 - 2)][2], _local4[_local3], ((_local4[_local3] + _local4[(_local3 + 1)]) / 2)];
_local3++;
};
_local5[_local5.length] = [_local5[(_local5.length - 1)][2], _local4[(_local4.length - 2)], _local4[(_local4.length - 1)]];
} else {
if (_local4.length == 3){
_local5[_local5.length] = [_local4[0], _local4[1], _local4[2]];
} else {
if (_local4.length == 2){
_local5[_local5.length] = [_local4[0], ((_local4[0] + _local4[1]) / 2), _local4[1]];
};
};
};
};
};
return (_local7);
}
}
}//package gs.plugins
Section 9
//BezierThroughPlugin (gs.plugins.BezierThroughPlugin)
package gs.plugins {
import gs.*;
public class BezierThroughPlugin extends BezierPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function BezierThroughPlugin(){
this.propName = "bezierThrough";
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (!(_arg2 is Array)){
return (false);
};
init(_arg3, (_arg2 as Array), true);
return (true);
}
}
}//package gs.plugins
Section 10
//BlurFilterPlugin (gs.plugins.BlurFilterPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.filters.*;
public class BlurFilterPlugin extends FilterPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function BlurFilterPlugin(){
this.propName = "blurFilter";
this.overwriteProps = ["blurFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_type = BlurFilter;
initFilter(_arg2, new BlurFilter(0, 0, ((_arg2.quality) || (2))));
return (true);
}
}
}//package gs.plugins
Section 11
//ColorMatrixFilterPlugin (gs.plugins.ColorMatrixFilterPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.filters.*;
public class ColorMatrixFilterPlugin extends FilterPlugin {
protected var _matrix:Array;
protected var _matrixTween:EndArrayPlugin;
public static const API:Number = 1;
public static const VERSION:Number = 1.01;
protected static var _lumG:Number = 0.71516;
protected static var _lumR:Number = 0.212671;
protected static var _idMatrix:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
protected static var _lumB:Number = 0.072169;
public function ColorMatrixFilterPlugin(){
this.propName = "colorMatrixFilter";
this.overwriteProps = ["colorMatrixFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:Object;
var _local5:Array;
_target = _arg1;
_type = ColorMatrixFilter;
_local4 = _arg2;
initFilter({}, new ColorMatrixFilter(_idMatrix.slice()));
_matrix = ColorMatrixFilter(_filter).matrix;
_local5 = [];
if (((!((_local4.matrix == null))) && ((_local4.matrix is Array)))){
_local5 = _local4.matrix;
} else {
if (_local4.relative == true){
_local5 = _matrix.slice();
} else {
_local5 = _idMatrix.slice();
};
_local5 = setBrightness(_local5, _local4.brightness);
_local5 = setContrast(_local5, _local4.contrast);
_local5 = setHue(_local5, _local4.hue);
_local5 = setSaturation(_local5, _local4.saturation);
_local5 = setThreshold(_local5, _local4.threshold);
if (!isNaN(_local4.colorize)){
_local5 = colorize(_local5, _local4.colorize, _local4.amount);
};
};
_matrixTween = new EndArrayPlugin();
_matrixTween.init(_matrix, _local5);
return (true);
}
override public function set changeFactor(_arg1:Number):void{
_matrixTween.changeFactor = _arg1;
ColorMatrixFilter(_filter).matrix = _matrix;
super.changeFactor = _arg1;
}
public static function setSaturation(_arg1:Array, _arg2:Number):Array{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_local3 = (1 - _arg2);
_local4 = (_local3 * _lumR);
_local5 = (_local3 * _lumG);
_local6 = (_local3 * _lumB);
_local7 = [(_local4 + _arg2), _local5, _local6, 0, 0, _local4, (_local5 + _arg2), _local6, 0, 0, _local4, _local5, (_local6 + _arg2), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local7, _arg1));
}
public static function setHue(_arg1:Array, _arg2:Number):Array{
var _local3:Number;
var _local4:Number;
var _local5:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 * (Math.PI / 180));
_local3 = Math.cos(_arg2);
_local4 = Math.sin(_arg2);
_local5 = [((_lumR + (_local3 * (1 - _lumR))) + (_local4 * -(_lumR))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * -(_lumG))), ((_lumB + (_local3 * -(_lumB))) + (_local4 * (1 - _lumB))), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * 0.143)), ((_lumG + (_local3 * (1 - _lumG))) + (_local4 * 0.14)), ((_lumB + (_local3 * -(_lumB))) + (_local4 * -0.283)), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * -((1 - _lumR)))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * _lumG)), ((_lumB + (_local3 * (1 - _lumB))) + (_local4 * _lumB)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return (applyMatrix(_local5, _arg1));
}
public static function setThreshold(_arg1:Array, _arg2:Number):Array{
var _local3:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_local3 = [(_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
public static function applyMatrix(_arg1:Array, _arg2:Array):Array{
var _local3:Array;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (_arg2);
};
_local3 = [];
_local4 = 0;
_local5 = 0;
_local6 = 0;
while (_local6 < 4) {
_local7 = 0;
while (_local7 < 5) {
if (_local7 == 4){
_local5 = _arg1[(_local4 + 4)];
} else {
_local5 = 0;
};
_local3[(_local4 + _local7)] = (((((_arg1[_local4] * _arg2[_local7]) + (_arg1[(_local4 + 1)] * _arg2[(_local7 + 5)])) + (_arg1[(_local4 + 2)] * _arg2[(_local7 + 10)])) + (_arg1[(_local4 + 3)] * _arg2[(_local7 + 15)])) + _local5);
_local7++;
};
_local4 = (_local4 + 5);
_local6++;
};
return (_local3);
}
public static function colorize(_arg1:Array, _arg2:Number, _arg3:Number=1):Array{
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Array;
if (isNaN(_arg2)){
return (_arg1);
};
if (isNaN(_arg3)){
_arg3 = 1;
};
_local4 = (((_arg2 >> 16) & 0xFF) / 0xFF);
_local5 = (((_arg2 >> 8) & 0xFF) / 0xFF);
_local6 = ((_arg2 & 0xFF) / 0xFF);
_local7 = (1 - _arg3);
_local8 = [(_local7 + ((_arg3 * _local4) * _lumR)), ((_arg3 * _local4) * _lumG), ((_arg3 * _local4) * _lumB), 0, 0, ((_arg3 * _local5) * _lumR), (_local7 + ((_arg3 * _local5) * _lumG)), ((_arg3 * _local5) * _lumB), 0, 0, ((_arg3 * _local6) * _lumR), ((_arg3 * _local6) * _lumG), (_local7 + ((_arg3 * _local6) * _lumB)), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local8, _arg1));
}
public static function setBrightness(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = ((_arg2 * 100) - 100);
return (applyMatrix([1, 0, 0, 0, _arg2, 0, 1, 0, 0, _arg2, 0, 0, 1, 0, _arg2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], _arg1));
}
public static function setContrast(_arg1:Array, _arg2:Number):Array{
var _local3:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 + 0.01);
_local3 = [_arg2, 0, 0, 0, (128 * (1 - _arg2)), 0, _arg2, 0, 0, (128 * (1 - _arg2)), 0, 0, _arg2, 0, (128 * (1 - _arg2)), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
}
}//package gs.plugins
Section 12
//DropShadowFilterPlugin (gs.plugins.DropShadowFilterPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.filters.*;
public class DropShadowFilterPlugin extends FilterPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function DropShadowFilterPlugin(){
this.propName = "dropShadowFilter";
this.overwriteProps = ["dropShadowFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_type = DropShadowFilter;
initFilter(_arg2, new DropShadowFilter(0, 45, 0, 0, 0, 0, 1, ((_arg2.quality) || (2)), _arg2.inner, _arg2.knockout, _arg2.hideObject));
return (true);
}
}
}//package gs.plugins
Section 13
//EndArrayPlugin (gs.plugins.EndArrayPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class EndArrayPlugin extends TweenPlugin {
protected var _info:Array;
protected var _a:Array;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function EndArrayPlugin(){
_info = [];
super();
this.propName = "endArray";
this.overwriteProps = ["endArray"];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:ArrayTweenInfo;
var _local4:Number;
var _local5:int;
if (this.round){
_local2 = (_info.length - 1);
while (_local2 > -1) {
_local3 = _info[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local5 = ((_local4)<0) ? -1 : 1;
_a[_local3.index] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4);
_local2--;
};
} else {
_local2 = (_info.length - 1);
while (_local2 > -1) {
_local3 = _info[_local2];
_a[_local3.index] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
};
}
public function init(_arg1:Array, _arg2:Array):void{
var _local3:int;
_a = _arg1;
_local3 = (_arg2.length - 1);
while (_local3 > -1) {
if (((!((_arg1[_local3] == _arg2[_local3]))) && (!((_arg1[_local3] == null))))){
_info[_info.length] = new ArrayTweenInfo(_local3, _a[_local3], (_arg2[_local3] - _a[_local3]));
};
_local3--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (false);
};
init((_arg1 as Array), _arg2);
return (true);
}
}
}//package gs.plugins
Section 14
//FilterPlugin (gs.plugins.FilterPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.filters.*;
import gs.utils.tween.*;
public class FilterPlugin extends TweenPlugin {
protected var _index:int;
protected var _filter:BitmapFilter;
protected var _type:Class;
protected var _remove:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1.03;
public static const API:Number = 1;
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:TweenInfo;
var _local4:Array;
_local4 = _target.filters;
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
if (!(_local4[_index] is _type)){
_index = (_local4.length - 1);
_local2 = (_local4.length - 1);
while (_local2 > -1) {
if ((_local4[_local2] is _type)){
_index = _local2;
break;
};
_local2--;
};
};
_local4[_index] = _filter;
_target.filters = _local4;
}
public function onCompleteTween():void{
var _local1:int;
var _local2:Array;
if (_remove){
_local2 = _target.filters;
if (!(_local2[_index] is _type)){
_local1 = (_local2.length - 1);
while (_local1 > -1) {
if ((_local2[_local1] is _type)){
_local2.splice(_local1, 1);
break;
};
_local1--;
};
} else {
_local2.splice(_index, 1);
};
_target.filters = _local2;
};
}
protected function initFilter(_arg1:Object, _arg2:BitmapFilter):void{
var _local3:Array;
var _local4:String;
var _local5:int;
var _local6:HexColorsPlugin;
var _local7:Object;
_local3 = _target.filters;
_index = -1;
if (_arg1.index != null){
_index = _arg1.index;
} else {
_local5 = (_local3.length - 1);
while (_local5 > -1) {
if ((_local3[_local5] is _type)){
_index = _local5;
break;
};
_local5--;
};
};
if ((((((_index == -1)) || ((_local3[_index] == null)))) || ((_arg1.addFilter == true)))){
_index = ((_arg1.index)!=null) ? _arg1.index : _local3.length;
_local3[_index] = _arg2;
_target.filters = _local3;
};
_filter = _local3[_index];
_remove = Boolean((_arg1.remove == true));
if (_remove){
this.onComplete = onCompleteTween;
};
_local7 = ((_arg1.isTV)==true) ? _arg1.exposedVars : _arg1;
for (_local4 in _local7) {
if (((((((((!((_local4 in _filter))) || ((_filter[_local4] == _local7[_local4])))) || ((_local4 == "remove")))) || ((_local4 == "index")))) || ((_local4 == "addFilter")))){
} else {
if ((((((_local4 == "color")) || ((_local4 == "highlightColor")))) || ((_local4 == "shadowColor")))){
_local6 = new HexColorsPlugin();
_local6.initColor(_filter, _local4, _filter[_local4], _local7[_local4]);
_tweens[_tweens.length] = new TweenInfo(_local6, "changeFactor", 0, 1, _local4, false);
} else {
if ((((((((_local4 == "quality")) || ((_local4 == "inner")))) || ((_local4 == "knockout")))) || ((_local4 == "hideObject")))){
_filter[_local4] = _local7[_local4];
} else {
addTween(_filter, _local4, _filter[_local4], _local7[_local4], _local4);
};
};
};
};
}
}
}//package gs.plugins
Section 15
//FramePlugin (gs.plugins.FramePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class FramePlugin extends TweenPlugin {
public var frame:int;
protected var _target:MovieClip;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function FramePlugin(){
this.propName = "frame";
this.overwriteProps = ["frame"];
this.round = true;
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.gotoAndStop(this.frame);
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is MovieClip))) || (isNaN(_arg2)))){
return (false);
};
_target = (_arg1 as MovieClip);
this.frame = _target.currentFrame;
addTween(this, "frame", this.frame, _arg2, "frame");
return (true);
}
}
}//package gs.plugins
Section 16
//GlowFilterPlugin (gs.plugins.GlowFilterPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.filters.*;
public class GlowFilterPlugin extends FilterPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function GlowFilterPlugin(){
this.propName = "glowFilter";
this.overwriteProps = ["glowFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_type = GlowFilter;
initFilter(_arg2, new GlowFilter(0xFFFFFF, 0, 0, 0, ((_arg2.strength) || (1)), ((_arg2.quality) || (2)), _arg2.inner, _arg2.knockout));
return (true);
}
}
}//package gs.plugins
Section 17
//HexColorsPlugin (gs.plugins.HexColorsPlugin)
package gs.plugins {
import gs.*;
public class HexColorsPlugin extends TweenPlugin {
protected var _colors:Array;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function HexColorsPlugin(){
this.propName = "hexColors";
this.overwriteProps = [];
_colors = [];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:Array;
_local2 = (_colors.length - 1);
while (_local2 > -1) {
_local3 = _colors[_local2];
_local3[0][_local3[1]] = ((((_local3[2] + (_arg1 * _local3[3])) << 16) | ((_local3[4] + (_arg1 * _local3[5])) << 8)) | (_local3[6] + (_arg1 * _local3[7])));
_local2--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:String;
for (_local4 in _arg2) {
initColor(_arg1, _local4, uint(_arg1[_local4]), uint(_arg2[_local4]));
};
return (true);
}
override public function killProps(_arg1:Object):void{
var _local2:int;
_local2 = (_colors.length - 1);
while (_local2 > -1) {
if (_arg1[_colors[_local2][1]] != undefined){
_colors.splice(_local2, 1);
};
_local2--;
};
super.killProps(_arg1);
}
public function initColor(_arg1:Object, _arg2:String, _arg3:uint, _arg4:uint):void{
var _local5:Number;
var _local6:Number;
var _local7:Number;
if (_arg3 != _arg4){
_local5 = (_arg3 >> 16);
_local6 = ((_arg3 >> 8) & 0xFF);
_local7 = (_arg3 & 0xFF);
_colors[_colors.length] = [_arg1, _arg2, _local5, ((_arg4 >> 16) - _local5), _local6, (((_arg4 >> 8) & 0xFF) - _local6), _local7, ((_arg4 & 0xFF) - _local7)];
this.overwriteProps[this.overwriteProps.length] = _arg2;
};
}
}
}//package gs.plugins
Section 18
//RemoveTintPlugin (gs.plugins.RemoveTintPlugin)
package gs.plugins {
public class RemoveTintPlugin extends TintPlugin {
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function RemoveTintPlugin(){
this.propName = "removeTint";
}
}
}//package gs.plugins
Section 19
//RoundPropsPlugin (gs.plugins.RoundPropsPlugin)
package gs.plugins {
public class RoundPropsPlugin extends TweenPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function RoundPropsPlugin(){
this.propName = "roundProps";
this.overwriteProps = [];
this.round = true;
}
public function add(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number):void{
addTween(_arg1, _arg2, _arg3, (_arg3 + _arg4), _arg2);
this.overwriteProps[this.overwriteProps.length] = _arg2;
}
}
}//package gs.plugins
Section 20
//ShortRotationPlugin (gs.plugins.ShortRotationPlugin)
package gs.plugins {
import gs.*;
public class ShortRotationPlugin extends TweenPlugin {
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function ShortRotationPlugin(){
this.propName = "shortRotation";
this.overwriteProps = [];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:String;
if (typeof(_arg2) == "number"){
trace("WARNING: You appear to be using the old shortRotation syntax. Instead of passing a number, please pass an object with properties that correspond to the rotations values For example, TweenMax.to(mc, 2, {shortRotation:{rotationX:-170, rotationY:25}})");
return (false);
};
for (_local4 in _arg2) {
initRotation(_arg1, _local4, _arg1[_local4], _arg2[_local4]);
};
return (true);
}
public function initRotation(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number):void{
var _local5:Number;
_local5 = ((_arg4 - _arg3) % 360);
if (((_arg4 - _arg3) % 360) != (_local5 % 180)){
_local5 = ((_local5)<0) ? (_local5 + 360) : (_local5 - 360);
};
addTween(_arg1, _arg2, _arg3, (_arg3 + _local5), _arg2);
this.overwriteProps[this.overwriteProps.length] = _arg2;
}
}
}//package gs.plugins
Section 21
//TintPlugin (gs.plugins.TintPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.geom.*;
import gs.utils.tween.*;
public class TintPlugin extends TweenPlugin {
protected var _ct:ColorTransform;
protected var _ignoreAlpha:Boolean;
protected var _target:DisplayObject;
public static const VERSION:Number = 1.1;
public static const API:Number = 1;
protected static var _props:Array = ["redMultiplier", "greenMultiplier", "blueMultiplier", "alphaMultiplier", "redOffset", "greenOffset", "blueOffset", "alphaOffset"];
public function TintPlugin(){
this.propName = "tint";
this.overwriteProps = ["tint"];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:ColorTransform;
updateTweens(_arg1);
if (_ignoreAlpha){
_local2 = _target.transform.colorTransform;
_ct.alphaMultiplier = _local2.alphaMultiplier;
_ct.alphaOffset = _local2.alphaOffset;
};
_target.transform.colorTransform = _ct;
}
public function init(_arg1:DisplayObject, _arg2:ColorTransform):void{
var _local3:int;
var _local4:String;
_target = _arg1;
_ct = _target.transform.colorTransform;
_local3 = (_props.length - 1);
while (_local3 > -1) {
_local4 = _props[_local3];
if (_ct[_local4] != _arg2[_local4]){
_tweens[_tweens.length] = new TweenInfo(_ct, _local4, _ct[_local4], (_arg2[_local4] - _ct[_local4]), "tint", false);
};
_local3--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:ColorTransform;
if (!(_arg1 is DisplayObject)){
return (false);
};
_local4 = new ColorTransform();
if (((!((_arg2 == null))) && (!((_arg3.exposedVars.removeTint == true))))){
_local4.color = uint(_arg2);
};
_ignoreAlpha = true;
init((_arg1 as DisplayObject), _local4);
return (true);
}
}
}//package gs.plugins
Section 22
//TweenPlugin (gs.plugins.TweenPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class TweenPlugin {
public var overwriteProps:Array;
protected var _tweens:Array;
public var round:Boolean;
public var onComplete:Function;
public var propName:String;
protected var _changeFactor:Number;// = 0
public static const VERSION:Number = 1.03;
public static const API:Number = 1;
public function TweenPlugin(){
_tweens = [];
_changeFactor = 0;
super();
}
protected function updateTweens(_arg1:Number):void{
var _local2:int;
var _local3:TweenInfo;
var _local4:Number;
var _local5:int;
if (this.round){
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local5 = ((_local4)<0) ? -1 : 1;
_local3.target[_local3.property] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4);
_local2--;
};
} else {
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
};
}
public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_changeFactor = _arg1;
}
protected function addTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String=null):void{
var _local6:Number;
if (_arg4 != null){
_local6 = ((typeof(_arg4))=="number") ? (_arg4 - _arg3) : Number(_arg4);
if (_local6 != 0){
_tweens[_tweens.length] = new TweenInfo(_arg1, _arg2, _arg3, _local6, ((_arg5) || (_arg2)), false);
};
};
}
public function killProps(_arg1:Object):void{
var _local2:int;
_local2 = (this.overwriteProps.length - 1);
while (_local2 > -1) {
if ((this.overwriteProps[_local2] in _arg1)){
this.overwriteProps.splice(_local2, 1);
};
_local2--;
};
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
if ((_tweens[_local2].name in _arg1)){
_tweens.splice(_local2, 1);
};
_local2--;
};
}
public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
addTween(_arg1, this.propName, _arg1[this.propName], _arg2, this.propName);
return (true);
}
public function get changeFactor():Number{
return (_changeFactor);
}
public static function activate(_arg1:Array):Boolean{
var _local2:int;
var _local3:Object;
_local2 = (_arg1.length - 1);
while (_local2 > -1) {
_local3 = new (_arg1[_local2]);
TweenLite.plugins[_local3.propName] = _arg1[_local2];
_local2--;
};
return (true);
}
}
}//package gs.plugins
Section 23
//VisiblePlugin (gs.plugins.VisiblePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class VisiblePlugin extends TweenPlugin {
protected var _tween:TweenLite;
protected var _visible:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function VisiblePlugin(){
this.propName = "visible";
this.overwriteProps = ["visible"];
this.onComplete = onCompleteTween;
}
override public function set changeFactor(_arg1:Number):void{
if (_target.visible != true){
_target.visible = true;
};
}
public function onCompleteTween():void{
if (((!((_tween.vars.runBackwards == true))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_visible = Boolean(_arg2);
return (true);
}
}
}//package gs.plugins
Section 24
//VolumePlugin (gs.plugins.VolumePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.media.*;
public class VolumePlugin extends TweenPlugin {
protected var _st:SoundTransform;
protected var _target:Object;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function VolumePlugin(){
this.propName = "volume";
this.overwriteProps = ["volume"];
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.soundTransform = _st;
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((isNaN(_arg2)) || (!(_arg1.hasOwnProperty("soundTransform"))))){
return (false);
};
_target = _arg1;
_st = _target.soundTransform;
addTween(_st, "volume", _st.volume, _arg2, "volume");
return (true);
}
}
}//package gs.plugins
Section 25
//ArrayTweenInfo (gs.utils.tween.ArrayTweenInfo)
package gs.utils.tween {
public class ArrayTweenInfo {
public var change:Number;
public var index:uint;
public var start:Number;
public function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){
this.index = _arg1;
this.start = _arg2;
this.change = _arg3;
}
}
}//package gs.utils.tween
Section 26
//TweenInfo (gs.utils.tween.TweenInfo)
package gs.utils.tween {
public class TweenInfo {
public var start:Number;
public var name:String;
public var change:Number;
public var target:Object;
public var property:String;
public var isPlugin:Boolean;
public function TweenInfo(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
}
}
}//package gs.utils.tween
Section 27
//OverwriteManager (gs.OverwriteManager)
package gs {
import flash.utils.*;
import gs.utils.tween.*;
import flash.errors.*;
public class OverwriteManager {
public static const ALL:int = 1;
public static const NONE:int = 0;
public static const AUTO:int = 2;
public static const CONCURRENT:int = 3;
public static const version:Number = 3.12;
public static var mode:int;
public static var enabled:Boolean;
public static function killVars(_arg1:Object, _arg2:Object, _arg3:Array):void{
var _local4:int;
var _local5:String;
var _local6:TweenInfo;
_local4 = (_arg3.length - 1);
while (_local4 > -1) {
_local6 = _arg3[_local4];
if ((_local6.name in _arg1)){
_arg3.splice(_local4, 1);
} else {
if (((_local6.isPlugin) && ((_local6.name == "_MULTIPLE_")))){
_local6.target.killProps(_arg1);
if (_local6.target.overwriteProps.length == 0){
_arg3.splice(_local4, 1);
};
};
};
_local4--;
};
for (_local5 in _arg1) {
delete _arg2[_local5];
};
}
public static function manageOverwrites(_arg1:TweenLite, _arg2:Array):void{
var _local3:Object;
var _local4:int;
var _local5:Number;
var _local6:Array;
var _local7:int;
var _local8:TweenLite;
var _local9:int;
var _local10:Array;
var _local11:Object;
var _local12:int;
var _local13:TweenInfo;
var _local14:Array;
_local3 = _arg1.vars;
_local4 = ((_local3.overwrite)==undefined) ? mode : int(_local3.overwrite);
if ((((_local4 < 2)) || ((_arg2 == null)))){
return;
};
_local5 = _arg1.startTime;
_local6 = [];
_local9 = -1;
_local7 = (_arg2.length - 1);
while (_local7 > -1) {
_local8 = _arg2[_local7];
if (_local8 == _arg1){
_local9 = _local7;
} else {
if ((((((_local7 < _local9)) && ((_local8.startTime <= _local5)))) && (((_local8.startTime + ((_local8.duration * 1000) / _local8.combinedTimeScale)) > _local5)))){
_local6[_local6.length] = _local8;
};
};
_local7--;
};
if ((((_local6.length == 0)) || ((_arg1.tweens.length == 0)))){
return;
};
if (_local4 == AUTO){
_local10 = _arg1.tweens;
_local11 = {};
_local7 = (_local10.length - 1);
while (_local7 > -1) {
_local13 = _local10[_local7];
if (_local13.isPlugin){
if (_local13.name == "_MULTIPLE_"){
_local14 = _local13.target.overwriteProps;
_local12 = (_local14.length - 1);
while (_local12 > -1) {
_local11[_local14[_local12]] = true;
_local12--;
};
} else {
_local11[_local13.name] = true;
};
_local11[_local13.target.propName] = true;
} else {
_local11[_local13.name] = true;
};
_local7--;
};
_local7 = (_local6.length - 1);
while (_local7 > -1) {
killVars(_local11, _local6[_local7].exposedVars, _local6[_local7].tweens);
_local7--;
};
} else {
_local7 = (_local6.length - 1);
while (_local7 > -1) {
_local6[_local7].enabled = false;
_local7--;
};
};
}
public static function init(_arg1:int=2):int{
if (TweenLite.version < 10.09){
trace("TweenLite warning: Your TweenLite class needs to be updated to work with OverwriteManager (or you may need to clear your ASO files). Please download and install the latest version from http://www.tweenlite.com.");
};
TweenLite.overwriteManager = OverwriteManager;
mode = _arg1;
enabled = true;
return (mode);
}
}
}//package gs
Section 28
//TweenLite (gs.TweenLite)
package gs {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import gs.utils.tween.*;
import gs.plugins.*;
public class TweenLite {
public var delay:Number;
protected var _hasUpdate:Boolean;
protected var _hasPlugins:Boolean;
public var started:Boolean;
public var initted:Boolean;
public var active:Boolean;
public var startTime:Number;
public var target:Object;
public var duration:Number;
public var gc:Boolean;
public var vars:Object;
public var ease:Function;
public var tweens:Array;
public var exposedVars:Object;
public var combinedTimeScale:Number;
public var initTime:Number;
public static const version:Number = 10.09;
private static var _timer:Timer = new Timer(2000);
public static var defaultEase:Function = TweenLite.easeOut;
public static var plugins:Object = {};
public static var currentTime:uint;
public static var masterList:Dictionary = new Dictionary(false);
protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, persist:1, renderOnStart:1, proxiedEase:1, easeParams:1, yoyo:1, loop:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, orientToBezier:1, timeScale:1};
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public static var timingSprite:Sprite = new Sprite();
public static var overwriteManager:Object;
private static var _tlInitted:Boolean;
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local4:int;
super();
if (_arg1 == null){
return;
};
if (!_tlInitted){
TweenPlugin.activate([TintPlugin, RemoveTintPlugin, FramePlugin, AutoAlphaPlugin, VisiblePlugin, VolumePlugin, EndArrayPlugin]);
currentTime = getTimer();
timingSprite.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
_timer.addEventListener("timer", killGarbage, false, 0, true);
_timer.start();
_tlInitted = true;
};
this.vars = _arg3;
this.duration = ((_arg2) || (0.001));
this.delay = ((_arg3.delay) || (0));
this.combinedTimeScale = ((_arg3.timeScale) || (1));
this.active = Boolean((((_arg2 == 0)) && ((this.delay == 0))));
this.target = _arg1;
if (typeof(this.vars.ease) != "function"){
this.vars.ease = defaultEase;
};
if (this.vars.easeParams != null){
this.vars.proxiedEase = this.vars.ease;
this.vars.ease = easeProxy;
};
this.ease = this.vars.ease;
this.exposedVars = ((this.vars.isTV)==true) ? this.vars.exposedVars : this.vars;
this.tweens = [];
this.initTime = currentTime;
this.startTime = (this.initTime + (this.delay * 1000));
_local4 = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
if (((!((_arg1 in masterList))) || ((_local4 == 1)))){
masterList[_arg1] = [this];
} else {
masterList[_arg1].push(this);
};
if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (this.active))){
initTweenVals();
if (this.active){
render((this.startTime + 1));
} else {
render(this.startTime);
};
if (((((!((this.exposedVars.visible == null))) && ((this.vars.runBackwards == true)))) && ((this.target is DisplayObject)))){
this.target.visible = this.exposedVars.visible;
};
};
}
public function set enabled(_arg1:Boolean):void{
var _local2:Array;
var _local3:Boolean;
var _local4:int;
if (_arg1){
if (!(this.target in masterList)){
masterList[this.target] = [this];
} else {
_local2 = masterList[this.target];
_local4 = (_local2.length - 1);
while (_local4 > -1) {
if (_local2[_local4] == this){
_local3 = true;
break;
};
_local4--;
};
if (!_local3){
_local2[_local2.length] = this;
};
};
};
this.gc = (_arg1) ? false : true;
if (this.gc){
this.active = false;
} else {
this.active = this.started;
};
}
public function clear():void{
this.tweens = [];
this.vars = (this.exposedVars = {ease:this.vars.ease});
_hasUpdate = false;
}
public function render(_arg1:uint):void{
var _local2:Number;
var _local3:Number;
var _local4:TweenInfo;
var _local5:int;
_local2 = ((_arg1 - this.startTime) * 0.001);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4.target[_local4.property] = (_local4.start + (_local3 * _local4.change));
_local5--;
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
public function activate():void{
this.started = (this.active = true);
if (!this.initted){
initTweenVals();
};
if (this.vars.onStart != null){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
}
public function get enabled():Boolean{
return ((this.gc) ? false : true);
}
public function initTweenVals():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:TweenInfo;
if (((!((this.exposedVars.timeScale == undefined))) && ((this.target is TweenLite)))){
this.tweens[this.tweens.length] = new TweenInfo(this.target, "timeScale", this.target.timeScale, (this.exposedVars.timeScale - this.target.timeScale), "timeScale", false);
};
for (_local1 in this.exposedVars) {
if ((_local1 in _reservedProps)){
} else {
if ((_local1 in plugins)){
_local3 = new (plugins[_local1]);
if (_local3.onInitTween(this.target, this.exposedVars[_local1], this) == false){
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
} else {
this.tweens[this.tweens.length] = new TweenInfo(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true);
_hasPlugins = true;
};
} else {
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
};
};
};
if (this.vars.runBackwards == true){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
_local4 = this.tweens[_local2];
this.tweens[_local2].start = (_local4.start + _local4.change);
_local4.change = -(_local4.change);
_local2--;
};
};
if (this.vars.onUpdate != null){
_hasUpdate = true;
};
if (((TweenLite.overwriteManager.enabled) && ((this.target in masterList)))){
overwriteManager.manageOverwrites(this, masterList[this.target]);
};
this.initted = true;
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
public function killVars(_arg1:Object):void{
if (overwriteManager.enabled){
overwriteManager.killVars(_arg1, this.exposedVars, this.tweens);
};
}
public function complete(_arg1:Boolean=false):void{
var _local2:int;
if (!_arg1){
if (!this.initted){
initTweenVals();
};
this.startTime = (currentTime - ((this.duration * 1000) / this.combinedTimeScale));
render(currentTime);
return;
};
if (_hasPlugins){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
if (((this.tweens[_local2].isPlugin) && (!((this.tweens[_local2].target.onComplete == null))))){
this.tweens[_local2].target.onComplete();
};
_local2--;
};
};
if (this.vars.persist != true){
this.enabled = false;
};
if (this.vars.onComplete != null){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
};
}
public static function updateAll(_arg1:Event=null):void{
var _local2:uint;
var _local3:Dictionary;
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
_local2 = (currentTime = getTimer());
_local3 = masterList;
for each (_local4 in _local3) {
_local5 = (_local4.length - 1);
while (_local5 > -1) {
_local6 = _local4[_local5];
if (_local6.active){
_local6.render(_local2);
} else {
if (_local6.gc){
_local4.splice(_local5, 1);
} else {
if (_local2 >= _local6.startTime){
_local6.activate();
_local6.render(_local2);
};
};
};
_local5--;
};
};
}
public static function removeTween(_arg1:TweenLite, _arg2:Boolean=true):void{
if (_arg1 != null){
if (_arg2){
_arg1.clear();
};
_arg1.enabled = false;
};
}
public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{
var _local3:Array;
var _local4:int;
var _local5:TweenLite;
if (((!((_arg1 == null))) && ((_arg1 in masterList)))){
_local3 = masterList[_arg1];
_local4 = (_local3.length - 1);
while (_local4 > -1) {
_local5 = _local3[_local4];
if (((_arg2) && (!(_local5.gc)))){
_local5.complete(false);
};
_local5.clear();
_local4--;
};
delete masterList[_arg1];
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
protected static function killGarbage(_arg1:TimerEvent):void{
var _local2:Dictionary;
var _local3:Object;
_local2 = masterList;
for (_local3 in _local2) {
if (_local2[_local3].length == 0){
delete _local2[_local3];
};
};
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0}));
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package gs
Section 29
//TweenMax (gs.TweenMax)
package gs {
import flash.events.*;
import flash.utils.*;
import gs.utils.tween.*;
import gs.plugins.*;
import gs.events.*;
public class TweenMax extends TweenLite implements IEventDispatcher {
protected var _dispatcher:EventDispatcher;
protected var _callbacks:Object;
public var pauseTime:Number;
protected var _repeatCount:Number;
protected var _timeScale:Number;
public static const version:Number = 10.1;
public static var removeTween:Function = TweenLite.removeTween;
private static var _overwriteMode:int = (OverwriteManager.enabled) ? OverwriteManager.mode : OverwriteManager.init();
;
protected static var _pausedTweens:Dictionary = new Dictionary(false);
protected static var _globalTimeScale:Number = 1;
public static var killTweensOf:Function = TweenLite.killTweensOf;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
private static var _activatedPlugins:Boolean = TweenPlugin.activate([TintPlugin, RemoveTintPlugin, FramePlugin, AutoAlphaPlugin, VisiblePlugin, VolumePlugin, EndArrayPlugin, HexColorsPlugin, BlurFilterPlugin, ColorMatrixFilterPlugin, BevelFilterPlugin, DropShadowFilterPlugin, GlowFilterPlugin, RoundPropsPlugin, BezierPlugin, BezierThroughPlugin, ShortRotationPlugin]);
public function TweenMax(_arg1:Object, _arg2:Number, _arg3:Object){
super(_arg1, _arg2, _arg3);
if (TweenLite.version < 10.09){
trace("TweenMax error! Please update your TweenLite class or try deleting your ASO files. TweenMax requires a more recent version. Download updates at http://www.TweenMax.com.");
};
if (((!((this.combinedTimeScale == 1))) && ((this.target is TweenMax)))){
_timeScale = 1;
this.combinedTimeScale = _globalTimeScale;
} else {
_timeScale = this.combinedTimeScale;
this.combinedTimeScale = (this.combinedTimeScale * _globalTimeScale);
};
if (((!((this.combinedTimeScale == 1))) && (!((this.delay == 0))))){
this.startTime = (this.initTime + (this.delay * (1000 / this.combinedTimeScale)));
};
if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){
initDispatcher();
if ((((_arg2 == 0)) && ((this.delay == 0)))){
onUpdateDispatcher();
onCompleteDispatcher();
};
};
_repeatCount = 0;
if (((!(isNaN(this.vars.yoyo))) || (!(isNaN(this.vars.loop))))){
this.vars.persist = true;
};
if ((((this.delay == 0)) && (!((this.exposedVars.startAt == null))))){
this.exposedVars.startAt.overwrite = 0;
new TweenMax(this.target, 0, this.exposedVars.startAt);
};
}
override public function set enabled(_arg1:Boolean):void{
if (!_arg1){
_pausedTweens[this] = null;
delete _pausedTweens[this];
};
super.enabled = _arg1;
if (_arg1){
this.combinedTimeScale = (_timeScale * _globalTimeScale);
};
}
public function set reversed(_arg1:Boolean):void{
if (this.reversed != _arg1){
reverse();
};
}
override public function render(_arg1:uint):void{
var _local2:Number;
var _local3:Number;
var _local4:TweenInfo;
var _local5:int;
_local2 = (((_arg1 - this.startTime) * 0.001) * this.combinedTimeScale);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4.target[_local4.property] = (_local4.start + (_local3 * _local4.change));
_local5--;
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
protected function adjustStartValues():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:TweenInfo;
var _local6:int;
_local1 = this.progress;
if (_local1 != 0){
_local2 = this.ease(_local1, 0, 1, 1);
_local3 = (1 / (1 - _local2));
_local6 = (this.tweens.length - 1);
while (_local6 > -1) {
_local5 = this.tweens[_local6];
_local4 = (_local5.start + _local5.change);
if (_local5.isPlugin){
_local5.change = ((_local4 - _local2) * _local3);
} else {
_local5.change = ((_local4 - _local5.target[_local5.property]) * _local3);
};
_local5.start = (_local4 - _local5.change);
_local6--;
};
};
}
public function get timeScale():Number{
return (_timeScale);
}
public function restart(_arg1:Boolean=false):void{
if (_arg1){
this.initTime = currentTime;
this.startTime = (currentTime + (this.delay * (1000 / this.combinedTimeScale)));
} else {
this.startTime = currentTime;
this.initTime = (currentTime - (this.delay * (1000 / this.combinedTimeScale)));
};
_repeatCount = 0;
if (this.target != this.vars.onComplete){
render(this.startTime);
};
this.pauseTime = NaN;
_pausedTweens[this] = null;
delete _pausedTweens[this];
this.enabled = true;
}
public function get paused():Boolean{
return (!(isNaN(this.pauseTime)));
}
public function killProperties(_arg1:Array):void{
var _local2:Object;
var _local3:int;
_local2 = {};
_local3 = (_arg1.length - 1);
while (_local3 > -1) {
_local2[_arg1[_local3]] = true;
_local3--;
};
killVars(_local2);
}
public function resume():void{
this.enabled = true;
if (!isNaN(this.pauseTime)){
this.initTime = (this.initTime + (currentTime - this.pauseTime));
this.startTime = (this.initTime + (this.delay * (1000 / this.combinedTimeScale)));
this.pauseTime = NaN;
if (((!(this.started)) && ((currentTime >= this.startTime)))){
activate();
} else {
this.active = this.started;
};
_pausedTweens[this] = null;
delete _pausedTweens[this];
};
}
override public function complete(_arg1:Boolean=false):void{
if (((((!(isNaN(this.vars.yoyo))) && ((((_repeatCount < this.vars.yoyo)) || ((this.vars.yoyo == 0)))))) || (((!(isNaN(this.vars.loop))) && ((((_repeatCount < this.vars.loop)) || ((this.vars.loop == 0)))))))){
_repeatCount++;
if (!isNaN(this.vars.yoyo)){
this.ease = ((this.vars.ease)==this.ease) ? reverseEase : this.vars.ease;
};
this.startTime = (_arg1) ? (this.startTime + (this.duration * (1000 / this.combinedTimeScale))) : currentTime;
this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale)));
} else {
if (this.vars.persist == true){
pause();
};
};
super.complete(_arg1);
}
public function invalidate(_arg1:Boolean=true):void{
var _local2:Number;
if (this.initted){
_local2 = this.progress;
if (((!(_arg1)) && (!((_local2 == 0))))){
this.progress = 0;
};
this.tweens = [];
_hasPlugins = false;
this.exposedVars = ((this.vars.isTV)==true) ? this.vars.exposedProps : this.vars;
initTweenVals();
_timeScale = ((this.vars.timeScale) || (1));
this.combinedTimeScale = (_timeScale * _globalTimeScale);
this.delay = ((this.vars.delay) || (0));
if (isNaN(this.pauseTime)){
this.startTime = (this.initTime + ((this.delay * 1000) / this.combinedTimeScale));
};
if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){
if (_dispatcher != null){
this.vars.onStart = _callbacks.onStart;
this.vars.onUpdate = _callbacks.onUpdate;
this.vars.onComplete = _callbacks.onComplete;
_dispatcher = null;
};
initDispatcher();
};
if (_local2 != 0){
if (_arg1){
adjustStartValues();
} else {
this.progress = _local2;
};
};
};
}
public function get progress():Number{
var _local1:Number;
var _local2:Number;
_local1 = (isNaN(this.pauseTime)) ? currentTime : this.pauseTime;
_local2 = (((((_local1 - this.initTime) * 0.001) - (this.delay / this.combinedTimeScale)) / this.duration) * this.combinedTimeScale);
if (_local2 > 1){
return (1);
};
if (_local2 < 0){
return (0);
};
return (_local2);
}
public function willTrigger(_arg1:String):Boolean{
if (_dispatcher == null){
return (false);
};
return (_dispatcher.willTrigger(_arg1));
}
public function dispatchEvent(_arg1:Event):Boolean{
if (_dispatcher == null){
return (false);
};
return (_dispatcher.dispatchEvent(_arg1));
}
public function get reversed():Boolean{
return ((this.ease == reverseEase));
}
protected function onStartDispatcher(... _args):void{
if (_callbacks.onStart != null){
_callbacks.onStart.apply(null, this.vars.onStartParams);
};
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.START));
}
public function setDestination(_arg1:String, _arg2, _arg3:Boolean=true):void{
var _local4:Number;
var _local5:int;
var _local6:TweenInfo;
var _local7:Object;
var _local8:Object;
var _local9:Array;
var _local10:Boolean;
var _local11:Array;
var _local12:Object;
_local4 = this.progress;
if (this.initted){
if (!_arg3){
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local6 = this.tweens[_local5];
if (_local6.name == _arg1){
_local6.target[_local6.property] = _local6.start;
};
_local5--;
};
};
_local7 = this.vars;
_local8 = this.exposedVars;
_local9 = this.tweens;
_local10 = _hasPlugins;
this.tweens = [];
this.vars = (this.exposedVars = {});
this.vars[_arg1] = _arg2;
initTweenVals();
if (((!((this.ease == reverseEase))) && ((_local7.ease is Function)))){
this.ease = _local7.ease;
};
if (((_arg3) && (!((_local4 == 0))))){
adjustStartValues();
};
_local11 = this.tweens;
this.vars = _local7;
this.exposedVars = _local8;
this.tweens = _local9;
_local12 = {};
_local12[_arg1] = true;
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local6 = this.tweens[_local5];
if (_local6.name == _arg1){
this.tweens.splice(_local5, 1);
} else {
if (((_local6.isPlugin) && ((_local6.name == "_MULTIPLE_")))){
_local6.target.killProps(_local12);
if (_local6.target.overwriteProps.length == 0){
this.tweens.splice(_local5, 1);
};
};
};
_local5--;
};
this.tweens = this.tweens.concat(_local11);
_hasPlugins = Boolean(((_local10) || (_hasPlugins)));
};
this.vars[_arg1] = (this.exposedVars[_arg1] = _arg2);
}
public function set timeScale(_arg1:Number):void{
if (_arg1 < 1E-5){
_arg1 = (_timeScale = 1E-5);
} else {
_timeScale = _arg1;
_arg1 = (_arg1 * _globalTimeScale);
};
this.initTime = ((currentTime - ((((currentTime - this.initTime) - (this.delay * (1000 / this.combinedTimeScale))) * this.combinedTimeScale) * (1 / _arg1))) - (this.delay * (1000 / _arg1)));
if (this.startTime != 999999999999999){
this.startTime = (this.initTime + (this.delay * (1000 / _arg1)));
};
this.combinedTimeScale = _arg1;
}
public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
if (_dispatcher != null){
_dispatcher.removeEventListener(_arg1, _arg2, _arg3);
};
}
override public function initTweenVals():void{
var _local1:int;
var _local2:int;
var _local3:String;
var _local4:String;
var _local5:Array;
var _local6:Object;
var _local7:TweenInfo;
if (((!((this.exposedVars.startAt == null))) && (!((this.delay == 0))))){
this.exposedVars.startAt.overwrite = 0;
new TweenMax(this.target, 0, this.exposedVars.startAt);
};
super.initTweenVals();
if ((((this.exposedVars.roundProps is Array)) && (!((TweenLite.plugins.roundProps == null))))){
_local5 = this.exposedVars.roundProps;
_local1 = (_local5.length - 1);
while (_local1 > -1) {
_local3 = _local5[_local1];
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
_local7 = this.tweens[_local2];
if (_local7.name == _local3){
if (_local7.isPlugin){
_local7.target.round = true;
} else {
if (_local6 == null){
_local6 = new TweenLite.plugins.roundProps();
_local6.add(_local7.target, _local3, _local7.start, _local7.change);
_hasPlugins = true;
this.tweens[_local2] = new TweenInfo(_local6, "changeFactor", 0, 1, _local3, true);
} else {
_local6.add(_local7.target, _local3, _local7.start, _local7.change);
this.tweens.splice(_local2, 1);
};
};
} else {
if (((((_local7.isPlugin) && ((_local7.name == "_MULTIPLE_")))) && (!(_local7.target.round)))){
_local4 = ((" " + _local7.target.overwriteProps.join(" ")) + " ");
if (_local4.indexOf(((" " + _local3) + " ")) != -1){
_local7.target.round = true;
};
};
};
_local2--;
};
_local1--;
};
};
}
protected function initDispatcher():void{
var _local1:Object;
var _local2:String;
if (_dispatcher == null){
_dispatcher = new EventDispatcher(this);
_callbacks = {onStart:this.vars.onStart, onUpdate:this.vars.onUpdate, onComplete:this.vars.onComplete};
if (this.vars.isTV == true){
this.vars = this.vars.clone();
} else {
_local1 = {};
for (_local2 in this.vars) {
_local1[_local2] = this.vars[_local2];
};
this.vars = _local1;
};
this.vars.onStart = onStartDispatcher;
this.vars.onComplete = onCompleteDispatcher;
if ((this.vars.onStartListener is Function)){
_dispatcher.addEventListener(TweenEvent.START, this.vars.onStartListener, false, 0, true);
};
if ((this.vars.onUpdateListener is Function)){
_dispatcher.addEventListener(TweenEvent.UPDATE, this.vars.onUpdateListener, false, 0, true);
this.vars.onUpdate = onUpdateDispatcher;
_hasUpdate = true;
};
if ((this.vars.onCompleteListener is Function)){
_dispatcher.addEventListener(TweenEvent.COMPLETE, this.vars.onCompleteListener, false, 0, true);
};
};
}
protected function onUpdateDispatcher(... _args):void{
if (_callbacks.onUpdate != null){
_callbacks.onUpdate.apply(null, this.vars.onUpdateParams);
};
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE));
}
public function set progress(_arg1:Number):void{
this.startTime = (currentTime - ((this.duration * _arg1) * 1000));
this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale)));
if (!this.started){
activate();
};
render(currentTime);
if (!isNaN(this.pauseTime)){
this.pauseTime = currentTime;
this.startTime = 999999999999999;
this.active = false;
};
}
public function reverse(_arg1:Boolean=true, _arg2:Boolean=true):void{
var _local3:Number;
this.ease = ((this.vars.ease)==this.ease) ? reverseEase : this.vars.ease;
_local3 = this.progress;
if (((_arg1) && ((_local3 > 0)))){
this.startTime = (currentTime - ((((1 - _local3) * this.duration) * 1000) / this.combinedTimeScale));
this.initTime = (this.startTime - (this.delay * (1000 / this.combinedTimeScale)));
};
if (_arg2 != false){
if (_local3 < 1){
resume();
} else {
restart();
};
};
}
public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
if (_dispatcher == null){
initDispatcher();
};
if ((((_arg1 == TweenEvent.UPDATE)) && (!((this.vars.onUpdate == onUpdateDispatcher))))){
this.vars.onUpdate = onUpdateDispatcher;
_hasUpdate = true;
};
_dispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function set paused(_arg1:Boolean):void{
if (_arg1){
pause();
} else {
resume();
};
}
public function hasEventListener(_arg1:String):Boolean{
if (_dispatcher == null){
return (false);
};
return (_dispatcher.hasEventListener(_arg1));
}
public function pause():void{
if (isNaN(this.pauseTime)){
this.pauseTime = currentTime;
this.startTime = 999999999999999;
this.enabled = false;
_pausedTweens[this] = this;
};
}
public function reverseEase(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.ease((_arg4 - _arg1), _arg2, _arg3, _arg4));
}
protected function onCompleteDispatcher(... _args):void{
if (_callbacks.onComplete != null){
_callbacks.onComplete.apply(null, this.vars.onCompleteParams);
};
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE));
}
public static function set globalTimeScale(_arg1:Number):void{
setGlobalTimeScale(_arg1);
}
public static function pauseAll(_arg1:Boolean=true, _arg2:Boolean=false):void{
changePause(true, _arg1, _arg2);
}
public static function killAllDelayedCalls(_arg1:Boolean=false):void{
killAll(_arg1, false, true);
}
public static function setGlobalTimeScale(_arg1:Number):void{
var _local2:Dictionary;
var _local3:int;
var _local4:Array;
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
_local2 = masterList;
_globalTimeScale = _arg1;
for each (_local4 in _local2) {
_local3 = (_local4.length - 1);
while (_local3 > -1) {
if ((_local4[_local3] is TweenMax)){
_local4[_local3].timeScale = (_local4[_local3].timeScale * 1);
};
_local3--;
};
};
}
public static function get globalTimeScale():Number{
return (_globalTimeScale);
}
public static function getTweensOf(_arg1:Object):Array{
var _local2:Array;
var _local3:Array;
var _local4:TweenLite;
var _local5:int;
_local2 = masterList[_arg1];
_local3 = [];
if (_local2 != null){
_local5 = (_local2.length - 1);
while (_local5 > -1) {
if (!_local2[_local5].gc){
_local3[_local3.length] = _local2[_local5];
};
_local5--;
};
};
for each (_local4 in _pausedTweens) {
if (_local4.target == _arg1){
_local3[_local3.length] = _local4;
};
};
return (_local3);
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenMax{
return (new TweenMax(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, persist:_arg4, overwrite:0}));
}
public static function isTweening(_arg1:Object):Boolean{
var _local2:Array;
var _local3:int;
_local2 = getTweensOf(_arg1);
_local3 = (_local2.length - 1);
while (_local3 > -1) {
if (((((_local2[_local3].active) || ((_local2[_local3].startTime == currentTime)))) && (!(_local2[_local3].gc)))){
return (true);
};
_local3--;
};
return (false);
}
public static function changePause(_arg1:Boolean, _arg2:Boolean=true, _arg3:Boolean=false):void{
var _local4:Array;
var _local5:Boolean;
var _local6:int;
_local4 = getAllTweens();
_local6 = (_local4.length - 1);
while (_local6 > -1) {
_local5 = (_local4[_local6].target == _local4[_local6].vars.onComplete);
if ((((_local4[_local6] is TweenMax)) && ((((_local5 == _arg3)) || (!((_local5 == _arg2))))))){
_local4[_local6].paused = _arg1;
};
_local6--;
};
}
public static function killAllTweens(_arg1:Boolean=false):void{
killAll(_arg1, true, false);
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{
_arg3.runBackwards = true;
return (new TweenMax(_arg1, _arg2, _arg3));
}
public static function killAll(_arg1:Boolean=false, _arg2:Boolean=true, _arg3:Boolean=true):void{
var _local4:Array;
var _local5:Boolean;
var _local6:int;
_local4 = getAllTweens();
_local6 = (_local4.length - 1);
while (_local6 > -1) {
_local5 = (_local4[_local6].target == _local4[_local6].vars.onComplete);
if ((((_local5 == _arg3)) || (!((_local5 == _arg2))))){
if (_arg1){
_local4[_local6].complete(false);
_local4[_local6].clear();
} else {
TweenLite.removeTween(_local4[_local6], true);
};
};
_local6--;
};
}
public static function getAllTweens():Array{
var _local1:Dictionary;
var _local2:Array;
var _local3:Array;
var _local4:int;
var _local5:TweenLite;
_local1 = masterList;
_local2 = [];
for each (_local3 in _local1) {
_local4 = (_local3.length - 1);
while (_local4 > -1) {
if (!_local3[_local4].gc){
_local2[_local2.length] = _local3[_local4];
};
_local4--;
};
};
for each (_local5 in _pausedTweens) {
_local2[_local2.length] = _local5;
};
return (_local2);
}
public static function resumeAll(_arg1:Boolean=true, _arg2:Boolean=false):void{
changePause(false, _arg1, _arg2);
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{
return (new TweenMax(_arg1, _arg2, _arg3));
}
}
}//package gs
Section 30
//MochiCoins (mochi.as3.MochiCoins)
package mochi.as3 {
public class MochiCoins {
public static const STORE_HIDE:String = "StoreHide";
public static const NO_USER:String = "NoUser";
public static const IO_ERROR:String = "IOError";
public static const ITEM_NEW:String = "ItemNew";
public static const ITEM_OWNED:String = "ItemOwned";
public static const STORE_ITEMS:String = "StoreItems";
public static const ERROR:String = "Error";
public static const STORE_SHOW:String = "StoreShow";
public static var _inventory:MochiInventory;
public static function triggerEvent(_arg1:String, _arg2:Object):void{
MochiSocial.triggerEvent(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
MochiSocial.removeEventListener(_arg1, _arg2);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
MochiSocial.addEventListener(_arg1, _arg2);
}
public static function getStoreItems():void{
MochiServices.send("coins_getStoreItems");
}
public static function get inventory():MochiInventory{
return (_inventory);
}
public static function showStore(_arg1:Object=null):void{
MochiServices.bringToTop();
MochiServices.send("coins_showStore", {options:_arg1}, null, null);
}
public static function showItem(_arg1:Object=null):void{
if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){
trace("ERROR: showItem call must pass an Object with an item key");
return;
};
MochiServices.bringToTop();
MochiServices.send("coins_showItem", {options:_arg1}, null, null);
}
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function showVideo(_arg1:Object=null):void{
if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){
trace("ERROR: showVideo call must pass an Object with an item key");
return;
};
MochiServices.bringToTop();
MochiServices.send("coins_showVideo", {options:_arg1}, null, null);
}
MochiSocial.addEventListener(MochiSocial.LOGGED_IN, function (_arg1:Object):void{
_inventory = new MochiInventory();
});
MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, function (_arg1:Object):void{
_inventory = null;
});
}
}//package mochi.as3
Section 31
//MochiDigits (mochi.as3.MochiDigits)
package mochi.as3 {
public final class MochiDigits {
private var Sibling:MochiDigits;
private var Fragment:Number;
private var Encoder:Number;
public function MochiDigits(_arg1:Number=0, _arg2:uint=0):void{
Encoder = 0;
setValue(_arg1, _arg2);
}
public function set value(_arg1:Number):void{
setValue(_arg1);
}
public function reencode():void{
var _local1:uint;
_local1 = int((2147483647 * Math.random()));
Fragment = (Fragment ^ (_local1 ^ Encoder));
Encoder = _local1;
}
public function toString():String{
var _local1:String;
_local1 = String.fromCharCode((Fragment ^ Encoder));
if (Sibling != null){
_local1 = (_local1 + Sibling.toString());
};
return (_local1);
}
public function get value():Number{
return (Number(this.toString()));
}
public function setValue(_arg1:Number=0, _arg2:uint=0):void{
var _local3:String;
_local3 = _arg1.toString();
var _temp1 = _arg2;
_arg2 = (_arg2 + 1);
Fragment = (_local3.charCodeAt(_temp1) ^ Encoder);
if (_arg2 < _local3.length){
Sibling = new MochiDigits(_arg1, _arg2);
} else {
Sibling = null;
};
reencode();
}
public function addValue(_arg1:Number):void{
value = (value + _arg1);
}
}
}//package mochi.as3
Section 32
//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 33
//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 _local3:Object;
var _local4:Object;
_local3 = {};
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;
_local1 = (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){
trace("WARNING: optional arguments package contains key 'id', it will be overwritten");
_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;
_local1 = (new Date().time - levelStart);
trigger("end_level", {time:_local1});
}
}
}//package mochi.as3
Section 34
//MochiInventory (mochi.as3.MochiInventory)
package mochi.as3 {
import flash.events.*;
import flash.utils.*;
public dynamic class MochiInventory extends Proxy {
private var _timer:Timer;
private var _names:Array;
private var _consumableProperties:Object;
private var _syncID:Number;
private var _storeSync:Object;
private var _outstandingID:Number;
private var _syncPending:Boolean;
public static const READY:String = "InvReady";
public static const ERROR:String = "Error";
public static const IO_ERROR:String = "IoError";
private static const KEY_SALT:String = " syncMaint";
public static const WRITTEN:String = "InvWritten";
public static const NOT_READY:String = "InvNotReady";
public static const VALUE_ERROR:String = "InvValueError";
private static const CONSUMER_KEY:String = "MochiConsumables";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
public function MochiInventory():void{
MochiCoins.addEventListener(MochiCoins.ITEM_OWNED, itemOwned);
MochiCoins.addEventListener(MochiCoins.ITEM_NEW, newItems);
MochiSocial.addEventListener(MochiSocial.LOGGED_IN, loggedIn);
MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, loggedOut);
_storeSync = new Object();
_syncPending = false;
_outstandingID = 0;
_syncID = 0;
_timer = new Timer(1000);
_timer.addEventListener(TimerEvent.TIMER, sync);
_timer.start();
if (MochiSocial.loggedIn){
loggedIn();
} else {
loggedOut();
};
}
private function newItems(_arg1:Object):void{
if (!this[(_arg1.id + KEY_SALT)]){
this[(_arg1.id + KEY_SALT)] = 0;
};
if (!this[_arg1.id]){
this[_arg1.id] = 0;
};
this[(_arg1.id + KEY_SALT)] = (this[(_arg1.id + KEY_SALT)] + _arg1.count);
this[_arg1.id] = (this[_arg1.id] + _arg1.count);
if (_arg1.privateProperties.consumable){
if (!this[_arg1.privateProperties.tag]){
this[_arg1.privateProperties.tag] = 0;
};
this[_arg1.privateProperties.tag] = (this[_arg1.privateProperties.tag] + (_arg1.privateProperties.inc * _arg1.count));
};
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return (-1);
};
if (_consumableProperties[_arg1]){
return (MochiDigits(_consumableProperties[_arg1]).value);
};
return (undefined);
}
public function release():void{
MochiCoins.removeEventListener(MochiCoins.ITEM_NEW, newItems);
MochiSocial.removeEventListener(MochiSocial.LOGGED_IN, loggedIn);
MochiSocial.removeEventListener(MochiSocial.LOGGED_OUT, loggedOut);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function hasProperty(_arg1):Boolean{
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return (false);
};
if (_consumableProperties[_arg1] == undefined){
return (false);
};
return (true);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextNameIndex(_arg1:int):int{
return (((_arg1)>=_names.length) ? 0 : (_arg1 + 1));
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{
var _local3:MochiDigits;
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return;
};
if (!(_arg2 is Number)){
triggerEvent(ERROR, {type:VALUE_ERROR, error:"Invalid type", arg:_arg2});
return;
};
if (_consumableProperties[_arg1]){
_local3 = MochiDigits(_consumableProperties[_arg1]);
if (_local3.value == _arg2){
return;
};
_local3.value = _arg2;
} else {
_names.push(_arg1);
_consumableProperties[_arg1] = new MochiDigits(_arg2);
};
_syncID++;
}
private function sync(_arg1:Event=null):void{
var _local2:Object;
var _local3:String;
if (((_syncPending) || ((_syncID == _outstandingID)))){
return;
};
_outstandingID = _syncID;
_local2 = {};
for (_local3 in _consumableProperties) {
_local2[_local3] = MochiDigits(_consumableProperties[_local3]).value;
};
MochiUserData.put(CONSUMER_KEY, _local2, putConsumableBag);
_syncPending = true;
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextName(_arg1:int):String{
return (_names[(_arg1 - 1)]);
}
private function loggedIn(_arg1:Object=null):void{
MochiUserData.get(CONSUMER_KEY, getConsumableBag);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function deleteProperty(_arg1):Boolean{
if (!_consumableProperties[_arg1]){
return (false);
};
_names.splice(_names.indexOf(_arg1), 1);
delete _consumableProperties[_arg1];
return (true);
}
private function itemOwned(_arg1:Object):void{
_storeSync[_arg1.id] = {properties:_arg1.properties, count:_arg1.count};
}
private function putConsumableBag(_arg1:MochiUserData):void{
_syncPending = false;
if (_arg1.error){
triggerEvent(ERROR, {type:IO_ERROR, error:_arg1.error});
_outstandingID = -1;
};
triggerEvent(WRITTEN, {});
}
private function getConsumableBag(_arg1:MochiUserData):void{
var _local2:String;
var _local3:Number;
if (_arg1.error){
triggerEvent(ERROR, {type:IO_ERROR, error:_arg1.error});
return;
};
_consumableProperties = {};
_names = new Array();
if (_arg1.data){
for (_local2 in _arg1.data) {
_names.push(_local2);
_consumableProperties[_local2] = new MochiDigits(_arg1.data[_local2]);
};
};
for (_local2 in _storeSync) {
_local3 = _storeSync[_local2].count;
if (_consumableProperties[(_local2 + KEY_SALT)]){
_local3 = (_local3 - _consumableProperties[_local2]);
};
if (_local3 == 0){
} else {
newItems({id:_local2, count:_local3, properties:_storeSync[_local2].properties});
};
};
triggerEvent(READY, {});
}
private function loggedOut(_arg1:Object=null):void{
_consumableProperties = null;
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function addEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.addEventListener(_arg1, _arg2);
}
}
}//package mochi.as3
Section 35
//MochiScores (mochi.as3.MochiScores)
package mochi.as3 {
import flash.display.*;
import flash.text.*;
public class MochiScores {
private static var boardID:String;
public static var onErrorHandler:Object;
public static var onCloseHandler:Object;
public static function showLeaderboard(_arg1:Object=null):void{
var n:Number;
var options = _arg1;
if (options != null){
delete options.clip;
MochiServices.setContainer();
MochiServices.bringToTop();
if (options.name != null){
if ((options.name is TextField)){
if (options.name.text.length > 0){
options.name = options.name.text;
};
};
};
if (options.score != null){
if ((options.score is TextField)){
if (options.score.text.length > 0){
options.score = options.score.text;
};
} else {
if ((options.score is MochiDigits)){
options.score = options.score.value;
};
};
n = Number(options.score);
if (isNaN(n)){
trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'"));
} else {
if ((((n == Number.NEGATIVE_INFINITY)) || ((n == Number.POSITIVE_INFINITY)))){
trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite"));
} else {
if (Math.floor(n) != n){
trace((("WARNING: Submitted score '" + options.score) + "' will be truncated"));
};
options.score = n;
};
};
};
if (options.onDisplay != null){
options.onDisplay();
} else {
if (MochiServices.clip != null){
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onDisplay.");
};
};
};
} else {
options = {};
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
} else {
trace("Warning: Container is not a MovieClip, cannot call default onDisplay.");
};
};
if (options.onClose != null){
onCloseHandler = options.onClose;
} else {
onCloseHandler = function ():void{
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.gotoAndStop("stplay");
} else {
trace("Warning: Container is not a MovieClip, cannot call default onClose.");
};
};
};
if (options.onError != null){
onErrorHandler = options.onError;
} else {
onErrorHandler = null;
};
if (options.boardID == null){
if (MochiScores.boardID != null){
options.boardID = MochiScores.boardID;
};
};
MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
MochiServices.send("scores_showLeaderboard", {options:options}, null, onClose);
}
public static function closeLeaderboard():void{
MochiServices.send("scores_closeLeaderboard");
}
public static function getPlayerInfo(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_getPlayerInfo", null, _arg1, _arg2);
}
public static function requestList(_arg1:Object, _arg2:Object=null):void{
MochiServices.send("scores_requestList", null, _arg1, _arg2);
}
public static function scoresArrayToObjects(_arg1:Object):Object{
var _local2:Object;
var _local3:Number;
var _local4:Number;
var _local5:Object;
var _local6:Object;
var _local7:String;
var _local8:String;
_local2 = {};
for (_local7 in _arg1) {
if (typeof(_arg1[_local7]) == "object"){
if (((!((_arg1[_local7].cols == null))) && (!((_arg1[_local7].rows == null))))){
_local2[_local7] = [];
_local5 = _arg1[_local7];
_local4 = 0;
while (_local4 < _local5.rows.length) {
_local6 = {};
_local3 = 0;
while (_local3 < _local5.cols.length) {
_local6[_local5.cols[_local3]] = _local5.rows[_local4][_local3];
_local3++;
};
_local2[_local7].push(_local6);
_local4++;
};
} else {
_local2[_local7] = {};
for (_local8 in _arg1[_local7]) {
_local2[_local7][_local8] = _arg1[_local7][_local8];
};
};
} else {
_local2[_local7] = _arg1[_local7];
};
};
return (_local2);
}
public static function submit(_arg1:Number, _arg2:String, _arg3:Object=null, _arg4:Object=null):void{
_arg1 = Number(_arg1);
if (isNaN(_arg1)){
trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is 'Not a Number'"));
} else {
if ((((_arg1 == Number.NEGATIVE_INFINITY)) || ((_arg1 == Number.POSITIVE_INFINITY)))){
trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is an infinite"));
} else {
if (Math.floor(_arg1) != _arg1){
trace((("WARNING: Submitted score '" + String(_arg1)) + "' will be truncated"));
};
_arg1 = Number(_arg1);
};
};
MochiServices.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4);
}
public static function onClose(_arg1:Object=null):void{
if (((((_arg1) && ((_arg1.error == true)))) && (onErrorHandler))){
if (_arg1.errorCode == null){
_arg1.errorCode = "IOError";
};
onErrorHandler(_arg1.errorCode);
MochiServices.doClose();
return;
};
onCloseHandler();
MochiServices.doClose();
}
public static function setBoardID(_arg1:String):void{
MochiServices.warnID(_arg1, true);
MochiScores.boardID = _arg1;
MochiServices.send("scores_setBoardID", {boardID:_arg1});
}
}
}//package mochi.as3
Section 36
//MochiServices (mochi.as3.MochiServices)
package mochi.as3 {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
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 cb:String;
var cblst:Object;
var method:*;
var methodName:String;
var obj:Object;
var pkg = _arg1;
cb = pkg.callbackID;
cblst = _clip._callbacks[cb];
if (!cblst){
return;
};
method = cblst.callbackMethod;
methodName = "";
obj = cblst.callbackObject;
if (((obj) && ((typeof(method) == "string")))){
methodName = method;
if (obj[method] != null){
method = obj[method];
} else {
trace((("Error: Method " + method) + " does not exist."));
};
};
if (method != undefined){
try {
method.apply(obj, pkg.args);
} catch(error:Error) {
trace(((("Error invoking callback method '" + methodName) + "': ") + error.toString()));
};
} else {
if (obj != null){
try {
obj(pkg.args);
} catch(error:Error) {
trace(("Error invoking method on object: " + error.toString()));
};
};
};
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)))){
trace(("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + _arg1));
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 _local3:Array;
var _local4:int;
var _local5:Array;
var _local6:Array;
var _local7:MovieClip;
var _local8:LocalConnection;
var _local9:String;
var _local10:ByteArray;
var _local11:ByteArray;
var _local12:uint;
var _local13:uint;
var _local14:Loader;
_local3 = [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];
_local5 = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3];
_local6 = [0, 64, 0, 0, 0];
_local7 = new MovieClip();
_local8 = new LocalConnection();
_local9 = ((("_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);
_local10 = new ByteArray();
_local11 = new ByteArray();
_local11.endian = Endian.LITTLE_ENDIAN;
_local11.writeShort(1);
_local11.writeUTFBytes(((_arg1 + " ") + _local9));
_local11.writeByte(0);
_local12 = ((_local3.length + _local11.length) + 4);
_local13 = (_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 vars:Object;
var avm1Click:DisplayObject;
var s:String;
var i:Number;
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;
vars = 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);
s = "?";
i = 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{
var _local2:Rectangle;
if (avm1Click){
btn.removeChild(avm1Click);
};
avm1Click = clickMovie(_arg1, onClick);
_local2 = 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{
var _local3:Number;
_arg1 = _arg1.toLowerCase();
if (_arg1.length != 16){
trace((("WARNING: " + (_arg2) ? "board" : "game") + " ID is not the appropriate length"));
return;
} else {
if (_arg1 == "1e113c7239048b3f"){
if (_arg2){
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
};
return;
} else {
if (_arg1 == "84993a1de4031cd8"){
if (_arg2){
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
};
return;
};
};
};
_local3 = 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:
trace(("WARNING: Board ID contains illegal characters: " + _arg1));
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.7 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;
var _local3:String;
_local2 = _arg1.target;
_local3 = _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 _local2:Object;
var _local3:String;
var _local4:Array;
var _local5:Number;
var _local6:Array;
_local2 = {};
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;
trace("MochiServices could not load.");
MochiServices.disconnect();
MochiServices.onError("IOError");
}
private static function initComChannels():void{
if (!_connected){
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"registerGame", preserved:_preserved, id:_id, 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 mochiLCURL:String;
var req:URLRequest;
var complete:Function;
var clip = _arg1;
loader = new Loader();
mochiLCURL = (_servURL + _mochiLC);
req = new URLRequest(mochiLCURL);
complete = 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;
};
trace("Waiting for MochiAds services to connect...");
}
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;
var _local4:String;
var _local5:URLRequest;
var _local6:URLVariables;
_local3 = ("_mochiservices_com_" + _arg1);
if (_clip != null){
return (_clip);
};
if (!MochiServices.isNetworkAvailable()){
return (null);
};
if (urlOptions(_arg2).servURL){
_servURL = urlOptions(_arg2).servURL;
};
_local4 = (_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);
_local5 = new URLRequest(_local4);
_local6 = 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 (clip.stage == null){
trace("MochiServices connect requires the containing clip be attached to the stage");
};
if (((!(_connected)) && ((_clip == null)))){
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
};
} else {
trace("Error, MochiServices requires a Sprite, Movieclip or instance of the stage.");
};
if (onError != null){
MochiServices.onError = onError;
} else {
if (MochiServices.onError == null){
MochiServices.onError = function (_arg1:String):void{
trace(_arg1);
};
};
};
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Boolean=true):MovieClip{
var mc:MovieClip;
var parent = _arg1;
var name = _arg2;
var depth = _arg3;
var doAdd = _arg4;
mc = 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) {
trace("Warning: Depth sort error.");
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
};
};
}
public static function connectWait(_arg1:TimerEvent):void{
if (!_connected){
_clip._mochiad_ctr_failed = true;
trace("MochiServices could not load. (timeout)");
MochiServices.disconnect();
MochiServices.onError("IOError");
};
}
}
}//package mochi.as3
Section 37
//MochiSocial (mochi.as3.MochiSocial)
package mochi.as3 {
public class MochiSocial {
public static const LOGGED_IN:String = "LoggedIn";
public static const PROFILE_HIDE:String = "ProfileHide";
public static const NO_USER:String = "NoUser";
public static const PROPERTIES_SIZE:String = "PropertiesSize";
public static const IO_ERROR:String = "IOError";
public static const PROPERTIES_SAVED:String = "PropertySaved";
public static const WIDGET_LOADED:String = "WidgetLoaded";
public static const USER_INFO:String = "UserInfo";
public static const ERROR:String = "Error";
public static const LOGIN_SHOW:String = "LoginShow";
public static const LOGGED_OUT:String = "LoggedOut";
public static const PROFILE_SHOW:String = "ProfileShow";
public static const LOGIN_SHOWN:String = "LoginShown";
public static const LOGIN_HIDE:String = "LoginHide";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
public static var _user_info:Object = null;
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function saveUserProperties(_arg1:Object):void{
MochiServices.send("coins_saveUserProperties", _arg1);
}
public static function get loggedIn():Boolean{
return (!((_user_info == null)));
}
public static function triggerEvent(_arg1:String, _arg2:Object):void{
_dispatcher.triggerEvent(_arg1, _arg2);
}
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 showLoginWidget(_arg1:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("coins_showLoginWidget", {options:_arg1});
}
public static function removeEventListener(_arg1:String, _arg2:Function):void{
_dispatcher.removeEventListener(_arg1, _arg2);
}
public static function requestLogin():void{
MochiServices.send("coins_requestLogin");
}
public static function getAPIURL():String{
if (!_user_info){
return (null);
};
return (_user_info.api_url);
}
public static function hideLoginWidget():void{
MochiServices.send("coins_hideLoginWidget");
}
public static function getAPIToken():String{
if (!_user_info){
return (null);
};
return (_user_info.api_token);
}
MochiSocial.addEventListener(MochiSocial.LOGGED_IN, function (_arg1:Object):void{
_user_info = _arg1;
});
MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, function (_arg1:Object):void{
_user_info = null;
});
}
}//package mochi.as3
Section 38
//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 = {};
}
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;
};
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){
return (_syncContainer[_arg1]);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{
var _local3:String;
if (_syncContainer[_arg1] == _arg2){
return;
};
_local3 = _arg1.toString();
_syncContainer[_local3] = _arg2;
MochiServices.send("sync_propUpdate", {name:_local3, value:_arg2});
}
}
}//package mochi.as3
Section 39
//MochiUserData (mochi.as3.MochiUserData)
package mochi.as3 {
import flash.events.*;
import flash.utils.*;
import flash.net.*;
public class MochiUserData extends EventDispatcher {
public var callback:Function;// = null
public var error:Event;// = null
public var key:String;// = null
public var operation:String;// = null
public var data;// = null
public var _loader:URLLoader;
public function MochiUserData(_arg1:String="", _arg2:Function=null){
key = null;
data = null;
error = null;
operation = null;
callback = null;
super();
this.key = _arg1;
this.callback = _arg2;
}
public function securityErrorHandler(_arg1:SecurityErrorEvent):void{
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + _arg1.toString())));
}
public function putEvent(_arg1):void{
request("put", serialize(_arg1));
}
public function request(_arg1:String, _arg2:ByteArray):void{
var api_url:String;
var api_token:String;
var args:URLVariables;
var req:URLRequest;
var _operation = _arg1;
var _data = _arg2;
operation = _operation;
api_url = MochiSocial.getAPIURL();
api_token = MochiSocial.getAPIToken();
if ((((api_url == null)) || ((api_token == null)))){
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, "not logged in"));
return;
};
_loader = new URLLoader();
args = new URLVariables();
args.op = _operation;
args.key = key;
req = new URLRequest((((MochiSocial.getAPIURL() + "/") + "MochiUserData?") + args.toString()));
req.method = URLRequestMethod.POST;
req.contentType = "application/x-mochi-userdata";
req.requestHeaders = [new URLRequestHeader("x-mochi-services-version", MochiServices.getVersion()), new URLRequestHeader("x-mochi-api-token", api_token)];
req.data = _data;
_loader.dataFormat = URLLoaderDataFormat.BINARY;
_loader.addEventListener(Event.COMPLETE, completeHandler);
_loader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
_loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
try {
_loader.load(req);
} catch(e:SecurityError) {
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + e.toString())));
};
}
public function performCallback():void{
try {
callback(this);
} catch(e:Error) {
trace(("[MochiUserData] exception during callback: " + e));
};
}
public function serialize(_arg1):ByteArray{
var _local2:ByteArray;
_local2 = new ByteArray();
_local2.objectEncoding = ObjectEncoding.AMF3;
_local2.writeObject(_arg1);
_local2.compress();
return (_local2);
}
public function errorHandler(_arg1:IOErrorEvent):void{
data = null;
error = _arg1;
if (callback != null){
performCallback();
} else {
dispatchEvent(_arg1);
};
close();
}
public function completeHandler(_arg1:Event):void{
var event = _arg1;
try {
if (_loader.data.length){
data = deserialize(_loader.data);
} else {
data = null;
};
} catch(e:Error) {
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("deserialize error: " + e.toString())));
return;
};
if (callback != null){
performCallback();
} else {
dispatchEvent(event);
};
close();
}
public function getEvent():void{
request("get", serialize(null));
}
override public function toString():String{
return ((((((((("[MochiUserData operation=" + operation) + " key=\"") + key) + "\" data=") + data) + " error=\"") + error) + "\"]"));
}
public function close():void{
if (_loader){
_loader.removeEventListener(Event.COMPLETE, completeHandler);
_loader.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler);
_loader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
_loader.close();
_loader = null;
};
error = null;
callback = null;
}
public function deserialize(_arg1:ByteArray){
_arg1.objectEncoding = ObjectEncoding.AMF3;
_arg1.uncompress();
return (_arg1.readObject());
}
public static function get(_arg1:String, _arg2:Function):void{
var _local3:MochiUserData;
_local3 = new MochiUserData(_arg1, _arg2);
_local3.getEvent();
}
public static function put(_arg1:String, _arg2, _arg3:Function):void{
var _local4:MochiUserData;
_local4 = new MochiUserData(_arg1, _arg3);
_local4.putEvent(_arg2);
}
}
}//package mochi.as3
Section 40
//7y6tr_419 (mysteryparking_fla.7y6tr_419)
package mysteryparking_fla {
import flash.display.*;
public dynamic class 7y6tr_419 extends MovieClip {
public var test1:MovieClip;
}
}//package mysteryparking_fla
Section 41
//86yhyh_414 (mysteryparking_fla.86yhyh_414)
package mysteryparking_fla {
import flash.display.*;
public dynamic class 86yhyh_414 extends MovieClip {
public var t:MovieClip;
}
}//package mysteryparking_fla
Section 42
//anim_108 (mysteryparking_fla.anim_108)
package mysteryparking_fla {
import flash.display.*;
public dynamic class anim_108 extends MovieClip {
public var ba:MovieClip;
}
}//package mysteryparking_fla
Section 43
//aser86yhyh_562 (mysteryparking_fla.aser86yhyh_562)
package mysteryparking_fla {
import flash.display.*;
public dynamic class aser86yhyh_562 extends MovieClip {
public var t:MovieClip;
}
}//package mysteryparking_fla
Section 44
//aserlfg3_561 (mysteryparking_fla.aserlfg3_561)
package mysteryparking_fla {
import flash.display.*;
public dynamic class aserlfg3_561 extends MovieClip {
public var s12:MovieClip;
}
}//package mysteryparking_fla
Section 45
//aserprak56_556 (mysteryparking_fla.aserprak56_556)
package mysteryparking_fla {
import flash.display.*;
public dynamic class aserprak56_556 extends MovieClip {
public var ba:MovieClip;
}
}//package mysteryparking_fla
Section 46
//aserprak68_549 (mysteryparking_fla.aserprak68_549)
package mysteryparking_fla {
import flash.display.*;
public dynamic class aserprak68_549 extends MovieClip {
public var s9:MovieClip;
public var ba:MovieClip;
public var d2:MovieClip;
}
}//package mysteryparking_fla
Section 47
//aserSymbol3_557 (mysteryparking_fla.aserSymbol3_557)
package mysteryparking_fla {
import flash.display.*;
public dynamic class aserSymbol3_557 extends MovieClip {
public function aserSymbol3_557(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 9, frame10, 38, frame39);
}
function frame10(){
stop();
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
function frame39(){
stop();
}
}
}//package mysteryparking_fla
Section 48
//bfhbdfmjk_431 (mysteryparking_fla.bfhbdfmjk_431)
package mysteryparking_fla {
import flash.display.*;
public dynamic class bfhbdfmjk_431 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 49
//deqt_444 (mysteryparking_fla.deqt_444)
package mysteryparking_fla {
import flash.display.*;
public dynamic class deqt_444 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 50
//dfdftp_432 (mysteryparking_fla.dfdftp_432)
package mysteryparking_fla {
import flash.display.*;
public dynamic class dfdftp_432 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 51
//dfdsgdfhj_422 (mysteryparking_fla.dfdsgdfhj_422)
package mysteryparking_fla {
import flash.display.*;
public dynamic class dfdsgdfhj_422 extends MovieClip {
public var test1:MovieClip;
}
}//package mysteryparking_fla
Section 52
//dfhgdfhgfhgjh_114 (mysteryparking_fla.dfhgdfhgfhgjh_114)
package mysteryparking_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class dfhgdfhgfhgjh_114 extends MovieClip {
public var left:SimpleButton;
public var right:SimpleButton;
public var lev:int;
public var level3Array:Array;
public var m:int;
public var n:int;
public var l:int;
public var level1Array:Array;
public var l1:MovieClip;
public var l3:MovieClip;
public var l4:MovieClip;
public var l5:MovieClip;
public var l8:MovieClip;
public var l2:MovieClip;
public var l7:MovieClip;
public var l9:MovieClip;
public var l6:MovieClip;
public var l10:MovieClip;
public var l13:MovieClip;
public var l14:MovieClip;
public var l15:MovieClip;
public var l16:MovieClip;
public var l17:MovieClip;
public var l12:MovieClip;
public var l18:MovieClip;
public var l11:MovieClip;
public var l20:MovieClip;
public var l22:MovieClip;
public var l23:MovieClip;
public var l25:MovieClip;
public var l26:MovieClip;
public var l27:MovieClip;
public var l21:MovieClip;
public var l29:MovieClip;
public var l24:MovieClip;
public var l19:MovieClip;
public var l28:MovieClip;
public var l30:MovieClip;
public var l31:MovieClip;
public var l33:MovieClip;
public var l34:MovieClip;
public var l35:MovieClip;
public var l32:MovieClip;
public var level2Array:Array;
public function dfhgdfhgfhgjh_114(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame2(){
stop();
left.addEventListener(MouseEvent.CLICK, left2);
right.addEventListener(MouseEvent.CLICK, right2);
level2Array = new Array("", "", "", "", "", "", "", "", "", "", "", "", "", l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24);
m = 13;
while (m <= 24) {
level2Array[m].buttonMode = true;
if (m > myvar.levelCompleted){
level2Array[m].gotoAndStop(2);
} else {
level2Array[m].mouseChildern = false;
level2Array[m].addEventListener(MouseEvent.CLICK, fun2);
};
if (m == myvar.levelnum){
level2Array[m].gotoAndStop(3);
};
m++;
};
}
function frame3(){
stop();
left.addEventListener(MouseEvent.CLICK, left3);
level3Array = new Array("", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", l25, l26, l27, l28, l29, l30, l31, l32, l33, l34, l35);
n = 25;
while (n <= 35) {
level3Array[n].buttonMode = true;
if (n > myvar.levelCompleted){
level3Array[n].gotoAndStop(2);
} else {
level3Array[n].mouseChildern = false;
level3Array[n].addEventListener(MouseEvent.CLICK, fun3);
};
if (n == myvar.levelnum){
level3Array[n].gotoAndStop(3);
};
n++;
};
}
function frame1(){
lev = myvar.levelnum;
stop();
right.addEventListener(MouseEvent.CLICK, right1);
level1Array = new Array("", l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12);
l = 1;
while (l <= 12) {
level1Array[l].buttonMode = true;
if (l > myvar.levelCompleted){
level1Array[l].gotoAndStop(2);
} else {
level1Array[l].mouseChildern = false;
level1Array[l].addEventListener(MouseEvent.CLICK, fun1);
};
if (l == myvar.levelnum){
level1Array[l].gotoAndStop(3);
};
l++;
};
}
public function fun3(_arg1:MouseEvent){
var _local2:*;
var _local3:int;
lev = _arg1.currentTarget.name.substring(1, 3);
_local2 = 25;
while (_local2 <= 35) {
if (_local2 <= myvar.levelCompleted){
level3Array[_local2].gotoAndStop(1);
};
if (_local2 == lev){
level3Array[_local2].gotoAndStop(3);
};
_local2++;
};
if (lev != 0){
myvar.levelnum = lev;
myvar.myArray = MovieClip(this.parent).so.data.ar;
myvar.gscor = 0;
_local3 = 0;
while (_local3 < (myvar.levelnum - 1)) {
myvar.gscor = (myvar.gscor + myvar.myArray[_local3]);
_local3++;
};
};
myvar.bselection = false;
MovieClip(this.parent).gotoAndStop("gplay");
}
public function fun1(_arg1:MouseEvent){
var _local2:*;
var _local3:int;
lev = _arg1.currentTarget.name.substring(1, 3);
_local2 = 1;
while (_local2 <= 12) {
if (_local2 <= myvar.levelCompleted){
level1Array[_local2].gotoAndStop(1);
};
if (_local2 == lev){
level1Array[_local2].gotoAndStop(3);
};
_local2++;
};
if (lev > 1){
myvar.levelnum = lev;
myvar.myArray = MovieClip(this.parent).so.data.ar;
myvar.gscor = 0;
_local3 = 0;
while (_local3 < (myvar.levelnum - 1)) {
myvar.gscor = (myvar.gscor + myvar.myArray[_local3]);
_local3++;
};
} else {
myvar.levelnum = 1;
myvar.gscor = 0;
};
myvar.bselection = false;
MovieClip(this.parent).gotoAndStop("gplay");
}
public function fun2(_arg1:MouseEvent){
var _local2:*;
var _local3:int;
lev = _arg1.currentTarget.name.substring(1, 3);
_local2 = 13;
while (_local2 <= 24) {
if (_local2 <= myvar.levelCompleted){
level2Array[_local2].gotoAndStop(1);
};
if (_local2 == lev){
level2Array[_local2].gotoAndStop(3);
};
_local2++;
};
if (lev != 0){
myvar.levelnum = lev;
myvar.myArray = MovieClip(this.parent).so.data.ar;
myvar.gscor = 0;
_local3 = 0;
while (_local3 < (myvar.levelnum - 1)) {
myvar.gscor = (myvar.gscor + myvar.myArray[_local3]);
_local3++;
};
};
myvar.bselection = false;
MovieClip(this.parent).gotoAndStop("gplay");
}
public function left2(_arg1:MouseEvent):void{
left.removeEventListener(MouseEvent.CLICK, left2);
right.removeEventListener(MouseEvent.CLICK, right2);
gotoAndStop(1);
}
public function left3(_arg1:MouseEvent):void{
left.removeEventListener(MouseEvent.CLICK, left3);
gotoAndStop(2);
}
public function right1(_arg1:MouseEvent):void{
right.removeEventListener(MouseEvent.CLICK, right1);
gotoAndStop(2);
}
public function right2(_arg1:MouseEvent):void{
left.removeEventListener(MouseEvent.CLICK, left2);
right.removeEventListener(MouseEvent.CLICK, right2);
gotoAndStop(3);
}
}
}//package mysteryparking_fla
Section 53
//dgdrtrhhcopy_275 (mysteryparking_fla.dgdrtrhhcopy_275)
package mysteryparking_fla {
import flash.display.*;
public dynamic class dgdrtrhhcopy_275 extends MovieClip {
public function dgdrtrhhcopy_275(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 54
//dgfdsg_461 (mysteryparking_fla.dgfdsg_461)
package mysteryparking_fla {
import flash.display.*;
public dynamic class dgfdsg_461 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 55
//dgfhdlkig_421 (mysteryparking_fla.dgfhdlkig_421)
package mysteryparking_fla {
import flash.display.*;
public dynamic class dgfhdlkig_421 extends MovieClip {
public var test1:MovieClip;
}
}//package mysteryparking_fla
Section 56
//dgtgfrcopy24_244 (mysteryparking_fla.dgtgfrcopy24_244)
package mysteryparking_fla {
import flash.display.*;
public dynamic class dgtgfrcopy24_244 extends MovieClip {
public function dgtgfrcopy24_244(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 57
//dgtgfrcopy25_262 (mysteryparking_fla.dgtgfrcopy25_262)
package mysteryparking_fla {
import flash.display.*;
public dynamic class dgtgfrcopy25_262 extends MovieClip {
public function dgtgfrcopy25_262(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 58
//dgtgfrcopy26_284 (mysteryparking_fla.dgtgfrcopy26_284)
package mysteryparking_fla {
import flash.display.*;
public dynamic class dgtgfrcopy26_284 extends MovieClip {
public function dgtgfrcopy26_284(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 59
//dgtgfrcopy27_267 (mysteryparking_fla.dgtgfrcopy27_267)
package mysteryparking_fla {
import flash.display.*;
public dynamic class dgtgfrcopy27_267 extends MovieClip {
public function dgtgfrcopy27_267(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 60
//dgtgfrcopy28_271 (mysteryparking_fla.dgtgfrcopy28_271)
package mysteryparking_fla {
import flash.display.*;
public dynamic class dgtgfrcopy28_271 extends MovieClip {
public function dgtgfrcopy28_271(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 61
//dgtgfrcopy29_280 (mysteryparking_fla.dgtgfrcopy29_280)
package mysteryparking_fla {
import flash.display.*;
public dynamic class dgtgfrcopy29_280 extends MovieClip {
public function dgtgfrcopy29_280(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 62
//dgtgfrcopy30_288 (mysteryparking_fla.dgtgfrcopy30_288)
package mysteryparking_fla {
import flash.display.*;
public dynamic class dgtgfrcopy30_288 extends MovieClip {
public function dgtgfrcopy30_288(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 63
//dgtgfrcopy31_297 (mysteryparking_fla.dgtgfrcopy31_297)
package mysteryparking_fla {
import flash.display.*;
public dynamic class dgtgfrcopy31_297 extends MovieClip {
public function dgtgfrcopy31_297(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 64
//dgtgfrcopy32_302 (mysteryparking_fla.dgtgfrcopy32_302)
package mysteryparking_fla {
import flash.display.*;
public dynamic class dgtgfrcopy32_302 extends MovieClip {
public function dgtgfrcopy32_302(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 65
//dgtgfrcopy33_293 (mysteryparking_fla.dgtgfrcopy33_293)
package mysteryparking_fla {
import flash.display.*;
public dynamic class dgtgfrcopy33_293 extends MovieClip {
public function dgtgfrcopy33_293(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 66
//djsfhf_317 (mysteryparking_fla.djsfhf_317)
package mysteryparking_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class djsfhf_317 extends MovieClip {
public var r2:MovieClip;
public var r3:MovieClip;
public var r5:MovieClip;
public var iok:SimpleButton;
public var r6:MovieClip;
public var r7:MovieClip;
public var r8:MovieClip;
public var r4:MovieClip;
public var s1:MovieClip;
public var s3:MovieClip;
public var s4:MovieClip;
public var s5:MovieClip;
public var s6:MovieClip;
public var s7:MovieClip;
public var s8:MovieClip;
public var s2:MovieClip;
public var s9:MovieClip;
public var ra:Array;
public var ba:MovieClip;
public var min:int;
public var d2:MovieClip;
public var sec:Number;
public var d1:MovieClip;
public var sa:Array;
public var clcount:Number;
public var lpass:SimpleButton;
public var ccount:TextField;
public var levelselection:SimpleButton;
public var score:TextField;
public var morebut2:SimpleButton;
public var gmsctxnext:TextField;
public var leveltext:TextField;
public var gmsctxtry:TextField;
public var lvsctxtnext:TextField;
public var time:Number;
public var time1:TextField;
public var morebut:SimpleButton;
public var lvsctxttry:TextField;
public var timer:Timer;
public var reset:SimpleButton;
public var solution:SimpleButton;
public var submitscore:SimpleButton;
public var level:soccer;
public var lfail:SimpleButton;
public var logo:MovieClip;
public var s10:MovieClip;
public var s11:MovieClip;
public var s12:MovieClip;
public var s13:MovieClip;
public var s14:MovieClip;
public var inc:Number;
public var r1:MovieClip;
public function djsfhf_317(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 39, frame40, 44, frame45, 49, frame50, 54, frame55, 59, frame60);
}
public function resetfun21(_arg1:MouseEvent){
timer.stop();
timer.removeEventListener(TimerEvent.TIMER, timedec);
stage.removeEventListener(KeyboardEvent.KEY_UP, pausefun);
myvar.schannel.stop();
level = null;
myvar.breset = true;
}
public function timedec(_arg1:TimerEvent){
if (time1 != null){
sec++;
if (sec == 60){
sec = 0;
min++;
};
myvar.gameTimescore++;
if ((((min <= 9)) && ((sec <= 9)))){
time1.text = (((("0" + min.toString()) + ":") + "0") + sec.toString());
} else {
if (sec <= 9){
time1.text = (((min.toString() + ":") + "0") + sec.toString());
} else {
if (min <= 9){
time1.text = ((("0" + min.toString()) + ":") + sec.toString());
} else {
if (min > 9){
time1.text = ((min.toString() + ":") + sec.toString());
} else {
time1.text = ((min.toString() + ":") + sec.toString());
};
};
};
};
};
}
function frame14(){
stop();
clcount = 2;
ba.color = 1;
s7.hit = 2;
sa = new Array(s1, s2, s3, s4, s5, s6, s7);
ra = new Array(r1, r2, r3, r4, r5, r6);
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
d1 = null;
d2 = null;
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame10(){
stop();
clcount = 2;
ba.color = 5;
s1.hit = 2;
sa = new Array(s1);
ra = new Array(r1, r2, r3, r4, r5, r6);
d1 = null;
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
d2 = null;
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame16(){
stop();
clcount = 1;
ba.color = 2;
s14.hit = 2;
sa = new Array(s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14);
ra = new Array(r1, r2, r3);
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
d1 = null;
d2 = null;
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame17(){
stop();
clcount = 4;
ba.color = 1;
s9.hit = 2;
sa = new Array(s1, s2, s3, s4, s5, s6, s7, s8, s9);
ra = new Array(r1, r2, r2, r3, r4, r5);
d1 = null;
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
d2 = null;
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame18(){
stop();
clcount = 1;
ba.color = 3;
s9.hit = 2;
sa = new Array(s1, s2, s3, s4, s5, s6, s7, s8, s9);
ra = new Array(r1, r2);
d1 = null;
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
d2 = null;
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame4(){
stop();
clcount = 1;
ba.color = 5;
s1.hit = 2;
sa = new Array(s1);
ra = new Array(r1, r2, r3, r4);
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
d1 = null;
d2 = null;
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame6(){
stop();
clcount = 2;
ba.color = 3;
s1.hit = 2;
sa = new Array(s1);
ra = new Array(r1, r2, r3, r4, r5, r6, r7, r8);
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
d1 = null;
d2 = null;
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame7(){
stop();
clcount = 1;
ba.color = 3;
s1.hit = 2;
sa = new Array(s1);
ra = new Array(r1, r2, r3, r4, r5, r6);
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
d2 = null;
d1 = null;
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame1(){
stop();
level = null;
if (ba){
removeChild(ba);
};
myvar.blevelup = false;
myvar.gover = false;
if (((myvar.bquit) || (myvar.bcong))){
level = null;
myvar.schannel.stop();
MovieClip(this.parent).gotoAndStop("gover");
} else {
if (myvar.bselection){
level = null;
myvar.schannel.stop();
MovieClip(this.parent).gotoAndStop("selection");
} else {
myvar.gover = false;
myvar.blevelup = false;
gotoAndStop((myvar.levelnum + 1));
};
};
reset.addEventListener(MouseEvent.CLICK, resetfun21);
stage.addEventListener(KeyboardEvent.KEY_DOWN, resetkeyfn);
solution.addEventListener(MouseEvent.CLICK, solutionfun);
levelselection.addEventListener(MouseEvent.CLICK, selectfun);
if (!myvar.bpm){
myvar.schannel = myvar.bg.play(0, int.MAX_VALUE);
};
myvar.gameTimescore = 0;
score.text = String(myvar.gscor);
time1.text = "00:00";
min = 0;
sec = 0;
time = 0;
timer = new Timer(1000, 0);
timer.addEventListener(TimerEvent.TIMER, timedec);
timer.start();
stage.addEventListener(KeyboardEvent.KEY_UP, pausefun);
logo.addEventListener(MouseEvent.CLICK, goto1);
}
function frame23(){
stop();
s11.hit = 1;
ba.color = 3;
s12.hit = 2;
sa = new Array(s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12);
ra = new Array(r1);
clcount = 0;
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
d2 = null;
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame5(){
stop();
clcount = 1;
ba.color = 4;
s1.hit = 2;
sa = new Array(s1);
ra = new Array(r1, r2, r3, r4, r5, r6, r7, r8);
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
d2 = null;
d1 = null;
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame12(){
stop();
clcount = 0;
ba.color = 4;
s6.hit = 2;
sa = new Array(s1, s2, s3, s4, s5, s6);
ra = new Array(r1, r2, r3, r4, r5, r6);
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
d1 = null;
d2 = null;
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame13(){
stop();
clcount = 2;
ba.color = 3;
s10.hit = 2;
sa = new Array(s1, s2, s3, s4, s5, s6, s7, s8, s9, s10);
ra = new Array(r1, r2, r3);
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
d1 = null;
d2 = null;
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame9(){
stop();
clcount = 2;
ba.color = 8;
s1.hit = 2;
sa = new Array(s1);
ra = new Array(r1, r2, r3, r4, r5, r6, r7);
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
d1 = null;
d2 = null;
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame2(){
stop();
clcount = 0;
ba.color = 8;
s1.hit = 2;
sa = new Array(s1);
ra = new Array(r1, r2, r3);
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
d1 = null;
d2 = null;
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame3(){
stop();
ba.color = 5;
s1.hit = 2;
sa = new Array(s1);
ra = new Array(r1, r2, r3, r4);
clcount = 0;
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
d1 = null;
d2 = null;
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame24(){
stop();
s10.hit = 1;
ba.color = 1;
s11.hit = 2;
sa = new Array(s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11);
ra = new Array(r1, r2, r3, r4);
clcount = 2;
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
d2 = null;
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame19(){
stop();
clcount = 0;
ba.color = 1;
s13.hit = 2;
sa = new Array(s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13);
ra = new Array();
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
d1 = null;
d2 = null;
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame21(){
stop();
clcount = 3;
ba.color = 1;
s9.hit = 2;
sa = new Array(s1, s2, s3, s4, s5, s6, s7, s8, s9);
ra = new Array(r1, r2, r3, r4, r5, r6, r7);
d1 = null;
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
d2 = null;
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame22(){
stop();
sa = new Array(s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13);
ra = new Array(r1, r2, r3, r4);
s13.hit = 2;
clcount = 3;
ba.color = 3;
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
d1 = null;
d2 = null;
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame25(){
stop();
s8.hit = 1;
ba.color = 3;
s9.hit = 3;
sa = new Array(s1, s2, s3, s4, s5, s6, s7, s8, s9);
ra = new Array(r1, r2, r3, r4, r5);
clcount = 2;
d2.visible = false;
s9.visible = false;
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame26(){
stop();
sa = new Array(s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11);
ra = new Array(r1, r2, r3, r4);
s11.hit = 3;
clcount = 4;
ba.color = 8;
d1 = null;
s11.visible = false;
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame8(){
stop();
clcount = 3;
ba.color = 6;
s1.hit = 2;
sa = new Array(s1);
ra = new Array(r1, r2, r3, r4, r5, r6, r7);
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
d1 = null;
d2 = null;
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame11(){
stop();
clcount = 2;
ba.color = 1;
s1.hit = 2;
sa = new Array(s1);
ra = new Array(r1, r2, r3, r4, r5, r6, r7, r8);
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
d1 = null;
d2 = null;
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame36(){
stop();
s11.hit = 1;
s12.hit = 1;
s13.hit = 2;
ba.color = 1;
sa = new Array(s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13);
ra = new Array(r1, r2, r3, r4);
clcount = 8;
d2 = null;
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame30(){
stop();
sa = new Array(s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12);
ra = new Array(r1, r2);
s12.hit = 3;
clcount = 2;
ba.color = 4;
d1 = null;
s12.visible = false;
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame27(){
stop();
s8.hit = 1;
ba.color = 7;
sa = new Array(s1, s2, s3, s4, s5, s6, s7, s8, s9);
ra = new Array(r1, r2, r3, r4, r5, r6);
s9.hit = 2;
clcount = 1;
d2 = null;
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame28(){
stop();
sa = new Array(s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11);
ra = new Array(r1, r2, r3, r4, r5, r6);
s10.hit = 1;
ba.color = 3;
s11.hit = 2;
clcount = 5;
d2 = null;
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame29(){
stop();
sa = new Array(s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11);
ra = new Array(r1, r2, r3, r4, r5, r6, r7);
s11.hit = 2;
clcount = 3;
ba.color = 2;
d1 = null;
d2 = null;
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame15(){
stop();
clcount = 1;
ba.color = 3;
s8.hit = 2;
sa = new Array(s1, s2, s3, s4, s5, s6, s7, s8);
ra = new Array(r1, r2, r3, r4, r5, r6);
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
d1 = null;
d2 = null;
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame20(){
stop();
clcount = 2;
ba.color = 3;
s9.hit = 2;
sa = new Array(s1, s2, s3, s4, s5, s6, s7, s8, s9);
ra = new Array(r1, r2, r3, r4, r5);
d1 = null;
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
d2 = null;
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame34(){
stop();
sa = new Array(s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13);
ra = new Array(r1, r2, r3, r4);
s13.hit = 2;
clcount = 3;
ba.color = 4;
d1 = null;
d2 = null;
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame35(){
stop();
s9.hit = 1;
s10.hit = 2;
sa = new Array(s1, s2, s3, s4, s5, s6, s7, s8, s9, s10);
ra = new Array(r1, r2, r3, r4);
ba.color = 3;
clcount = 2;
d2 = null;
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame32(){
stop();
sa = new Array(s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11);
ra = new Array(r1, r2, r3, r4);
s11.hit = 2;
s10.hit = 1;
clcount = 6;
ba.color = 4;
d2 = null;
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame33(){
stop();
s8.hit = 1;
s9.hit = 1;
ba.color = 1;
s10.hit = 2;
sa = new Array(s1, s2, s3, s4, s5, s6, s7, s8, s9, s10);
ra = new Array(r1, r2, r3, r4);
clcount = 6;
d2 = null;
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame40(){
stop();
timer.stop();
timer.removeEventListener(TimerEvent.TIMER, timedec);
myvar.schannel.stop();
inc = 0;
if (myvar.levelnum < 10){
inc = 400;
} else {
if ((((myvar.levelnum > 10)) && ((myvar.levelnum < 20)))){
inc = 900;
} else {
inc = 1000;
};
};
myvar.scor = (500 + ((10 / myvar.gameTimescore) * inc));
myvar.gscor = (myvar.gscor + (500 + ((10 / myvar.gameTimescore) * inc)));
lvsctxtnext.text = myvar.scor.toString();
gmsctxnext.text = myvar.gscor.toString();
lpass.addEventListener(MouseEvent.CLICK, lpassfun);
morebut.addEventListener(MouseEvent.CLICK, morebutfun);
}
function frame45(){
stop();
timer.stop();
timer.removeEventListener(TimerEvent.TIMER, timedec);
myvar.schannel.stop();
gmsctxtry.text = myvar.gscor.toString();
lfail.addEventListener(MouseEvent.CLICK, lfailfun);
morebut2.addEventListener(MouseEvent.CLICK, morebut2fun);
submitscore.addEventListener(MouseEvent.CLICK, subfun);
}
function frame31(){
stop();
sa = new Array(s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11);
ra = new Array(r1, r2, r3, r4, r5, r6);
s11.hit = 3;
clcount = 3;
ba.color = 7;
d1 = null;
s11.visible = false;
leveltext.text = (currentFrame - 1).toString();
ccount.text = clcount.toString();
level = new soccer(ba, d1, d2, this, ra, sa, clcount);
}
function frame50(){
stop();
iok.addEventListener(MouseEvent.CLICK, goto);
}
function frame55(){
stop();
iok.addEventListener(MouseEvent.CLICK, goto2);
}
function frame60(){
stop();
iok.addEventListener(MouseEvent.CLICK, gotofun);
}
public function morebutfun(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.123chase.com"), "_blank");
}
public function selectfun(_arg1:MouseEvent){
myvar.schannel.stop();
stage.removeEventListener(KeyboardEvent.KEY_UP, pausefun);
timer.stop();
timer.removeEventListener(TimerEvent.TIMER, timedec);
myvar.bselection = true;
}
public function morebut2fun(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.123chase.com"), "_blank");
}
public function goto1(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.123chase.com"), "_blank");
}
public function goto2(_arg1:MouseEvent){
iok.removeEventListener(MouseEvent.CLICK, goto2);
gotoAndStop(1);
}
public function gotofun(_arg1:MouseEvent){
iok.removeEventListener(MouseEvent.CLICK, gotofun);
gotoAndStop(1);
}
public function subfun(_arg1:MouseEvent){
myvar.schannel.stop();
myvar.blevelup = false;
myvar.gover = false;
level = null;
submitscore.removeEventListener(MouseEvent.CLICK, subfun);
MovieClip(this.parent).gotoAndStop("gover");
}
public function goto(_arg1:MouseEvent){
iok.removeEventListener(MouseEvent.CLICK, goto);
gotoAndStop(1);
}
public function solutionfun(_arg1:MouseEvent){
navigateToURL(new URLRequest("http://123chase.com/walkthrough.php?id=1266"), "_blank");
}
public function resetkeyfn(_arg1:KeyboardEvent){
if (_arg1.keyCode == 32){
timer.stop();
timer.removeEventListener(TimerEvent.TIMER, timedec);
stage.removeEventListener(KeyboardEvent.KEY_UP, pausefun);
myvar.schannel.stop();
level = null;
myvar.breset = true;
};
}
public function lfailfun(_arg1:MouseEvent){
myvar.blevelup = false;
myvar.gover = false;
level = null;
lfail.removeEventListener(MouseEvent.CLICK, lfailfun);
gotoAndStop(1);
}
public function pausefun(_arg1:KeyboardEvent){
if (_arg1.keyCode == 77){
myvar.mcount++;
if ((myvar.mcount % 2) == 1){
myvar.schannel.stop();
myvar.bpm = true;
} else {
myvar.schannel = myvar.bg.play(0, int.MAX_VALUE);
myvar.mcount = 0;
myvar.bpm = false;
};
};
}
public function lpassfun(_arg1:MouseEvent){
myvar.myArray[(myvar.levelnum - 1)] = myvar.scor;
MovieClip(this.parent).so.setProperty("ar", myvar.myArray);
if (myvar.levelnum == 35){
level = null;
myvar.bcong = true;
lpass.removeEventListener(MouseEvent.CLICK, lpassfun);
MovieClip(this.parent).gotoAndStop("gover");
} else {
myvar.levelnum = (myvar.levelnum + 1);
MovieClip(this.parent).so.data.tLevel = myvar.levelnum;
if (myvar.levelnum >= myvar.levelCompleted){
myvar.levelCompleted = myvar.levelnum;
};
level = null;
lpass.removeEventListener(MouseEvent.CLICK, lpassfun);
if (myvar.levelnum == 3){
gotoAndStop(50);
} else {
if (myvar.levelnum == 22){
gotoAndStop(55);
} else {
if (myvar.levelnum == 24){
gotoAndStop(60);
} else {
gotoAndStop(1);
};
};
};
};
}
}
}//package mysteryparking_fla
Section 67
//dkgflals_437 (mysteryparking_fla.dkgflals_437)
package mysteryparking_fla {
import flash.display.*;
public dynamic class dkgflals_437 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 68
//fdfd_460 (mysteryparking_fla.fdfd_460)
package mysteryparking_fla {
import flash.display.*;
public dynamic class fdfd_460 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 69
//fdhgdfhgdfgzdfds_442 (mysteryparking_fla.fdhgdfhgdfgzdfds_442)
package mysteryparking_fla {
import flash.display.*;
public dynamic class fdhgdfhgdfgzdfds_442 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 70
//fgdfg_429 (mysteryparking_fla.fgdfg_429)
package mysteryparking_fla {
import flash.display.*;
public dynamic class fgdfg_429 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 71
//fhfchg_436 (mysteryparking_fla.fhfchg_436)
package mysteryparking_fla {
import flash.display.*;
public dynamic class fhfchg_436 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 72
//fhfdgdrtrhh_206 (mysteryparking_fla.fhfdgdrtrhh_206)
package mysteryparking_fla {
import flash.display.*;
public dynamic class fhfdgdrtrhh_206 extends MovieClip {
public function fhfdgdrtrhh_206(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 73
//fhfdgtgfrcopy12_177 (mysteryparking_fla.fhfdgtgfrcopy12_177)
package mysteryparking_fla {
import flash.display.*;
public dynamic class fhfdgtgfrcopy12_177 extends MovieClip {
public function fhfdgtgfrcopy12_177(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 74
//fhfdgtgfrcopy13_193 (mysteryparking_fla.fhfdgtgfrcopy13_193)
package mysteryparking_fla {
import flash.display.*;
public dynamic class fhfdgtgfrcopy13_193 extends MovieClip {
public function fhfdgtgfrcopy13_193(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 75
//fhfdgtgfrcopy14_215 (mysteryparking_fla.fhfdgtgfrcopy14_215)
package mysteryparking_fla {
import flash.display.*;
public dynamic class fhfdgtgfrcopy14_215 extends MovieClip {
public function fhfdgtgfrcopy14_215(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 76
//fhfdgtgfrcopy15_198 (mysteryparking_fla.fhfdgtgfrcopy15_198)
package mysteryparking_fla {
import flash.display.*;
public dynamic class fhfdgtgfrcopy15_198 extends MovieClip {
public function fhfdgtgfrcopy15_198(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 77
//fhfdgtgfrcopy16_202 (mysteryparking_fla.fhfdgtgfrcopy16_202)
package mysteryparking_fla {
import flash.display.*;
public dynamic class fhfdgtgfrcopy16_202 extends MovieClip {
public function fhfdgtgfrcopy16_202(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 78
//fhfdgtgfrcopy18_211 (mysteryparking_fla.fhfdgtgfrcopy18_211)
package mysteryparking_fla {
import flash.display.*;
public dynamic class fhfdgtgfrcopy18_211 extends MovieClip {
public function fhfdgtgfrcopy18_211(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 79
//fhfdgtgfrcopy19_219 (mysteryparking_fla.fhfdgtgfrcopy19_219)
package mysteryparking_fla {
import flash.display.*;
public dynamic class fhfdgtgfrcopy19_219 extends MovieClip {
public function fhfdgtgfrcopy19_219(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 80
//fhfdgtgfrcopy20_233 (mysteryparking_fla.fhfdgtgfrcopy20_233)
package mysteryparking_fla {
import flash.display.*;
public dynamic class fhfdgtgfrcopy20_233 extends MovieClip {
public function fhfdgtgfrcopy20_233(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 81
//fhfdgtgfrcopy21_238 (mysteryparking_fla.fhfdgtgfrcopy21_238)
package mysteryparking_fla {
import flash.display.*;
public dynamic class fhfdgtgfrcopy21_238 extends MovieClip {
public function fhfdgtgfrcopy21_238(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 82
//fhfdgtgfrcopy22_224 (mysteryparking_fla.fhfdgtgfrcopy22_224)
package mysteryparking_fla {
import flash.display.*;
public dynamic class fhfdgtgfrcopy22_224 extends MovieClip {
public function fhfdgtgfrcopy22_224(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 83
//fhfdgtgfrcopy23_228 (mysteryparking_fla.fhfdgtgfrcopy23_228)
package mysteryparking_fla {
import flash.display.*;
public dynamic class fhfdgtgfrcopy23_228 extends MovieClip {
public function fhfdgtgfrcopy23_228(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 84
//fwq_445 (mysteryparking_fla.fwq_445)
package mysteryparking_fla {
import flash.display.*;
public dynamic class fwq_445 extends MovieClip {
public var test1:MovieClip;
}
}//package mysteryparking_fla
Section 85
//game24_423 (mysteryparking_fla.game24_423)
package mysteryparking_fla {
import flash.display.*;
public dynamic class game24_423 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 86
//game73_413 (mysteryparking_fla.game73_413)
package mysteryparking_fla {
import flash.display.*;
public dynamic class game73_413 extends MovieClip {
public var test1:MovieClip;
}
}//package mysteryparking_fla
Section 87
//game73copy_417 (mysteryparking_fla.game73copy_417)
package mysteryparking_fla {
import flash.display.*;
public dynamic class game73copy_417 extends MovieClip {
public var test1:MovieClip;
}
}//package mysteryparking_fla
Section 88
//gbidflgdfg_434 (mysteryparking_fla.gbidflgdfg_434)
package mysteryparking_fla {
import flash.display.*;
public dynamic class gbidflgdfg_434 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 89
//gdfgdf_435 (mysteryparking_fla.gdfgdf_435)
package mysteryparking_fla {
import flash.display.*;
public dynamic class gdfgdf_435 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 90
//ghfhtgfr_116 (mysteryparking_fla.ghfhtgfr_116)
package mysteryparking_fla {
import flash.display.*;
public dynamic class ghfhtgfr_116 extends MovieClip {
public function ghfhtgfr_116(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 91
//ghfhtgfrcopy35_133 (mysteryparking_fla.ghfhtgfrcopy35_133)
package mysteryparking_fla {
import flash.display.*;
public dynamic class ghfhtgfrcopy35_133 extends MovieClip {
public function ghfhtgfrcopy35_133(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 92
//ghfhtgfrcopy36_143 (mysteryparking_fla.ghfhtgfrcopy36_143)
package mysteryparking_fla {
import flash.display.*;
public dynamic class ghfhtgfrcopy36_143 extends MovieClip {
public function ghfhtgfrcopy36_143(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 93
//ghfhtgfrcopy37_149 (mysteryparking_fla.ghfhtgfrcopy37_149)
package mysteryparking_fla {
import flash.display.*;
public dynamic class ghfhtgfrcopy37_149 extends MovieClip {
public function ghfhtgfrcopy37_149(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 94
//ghfhtgfrcopy38_152 (mysteryparking_fla.ghfhtgfrcopy38_152)
package mysteryparking_fla {
import flash.display.*;
public dynamic class ghfhtgfrcopy38_152 extends MovieClip {
public function ghfhtgfrcopy38_152(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 95
//ghfhtgfrcopy39_140 (mysteryparking_fla.ghfhtgfrcopy39_140)
package mysteryparking_fla {
import flash.display.*;
public dynamic class ghfhtgfrcopy39_140 extends MovieClip {
public function ghfhtgfrcopy39_140(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 96
//ghfhtgfrcopy40_137 (mysteryparking_fla.ghfhtgfrcopy40_137)
package mysteryparking_fla {
import flash.display.*;
public dynamic class ghfhtgfrcopy40_137 extends MovieClip {
public function ghfhtgfrcopy40_137(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 97
//ghfhtgfrcopy41_161 (mysteryparking_fla.ghfhtgfrcopy41_161)
package mysteryparking_fla {
import flash.display.*;
public dynamic class ghfhtgfrcopy41_161 extends MovieClip {
public function ghfhtgfrcopy41_161(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 98
//ghfhtgfrcopy42_164 (mysteryparking_fla.ghfhtgfrcopy42_164)
package mysteryparking_fla {
import flash.display.*;
public dynamic class ghfhtgfrcopy42_164 extends MovieClip {
public function ghfhtgfrcopy42_164(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 99
//ghfhtgfrcopy45_155 (mysteryparking_fla.ghfhtgfrcopy45_155)
package mysteryparking_fla {
import flash.display.*;
public dynamic class ghfhtgfrcopy45_155 extends MovieClip {
public function ghfhtgfrcopy45_155(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 100
//ghfhtgfrcopy46_158 (mysteryparking_fla.ghfhtgfrcopy46_158)
package mysteryparking_fla {
import flash.display.*;
public dynamic class ghfhtgfrcopy46_158 extends MovieClip {
public function ghfhtgfrcopy46_158(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 101
//ghfhtgfrcopy6_146 (mysteryparking_fla.ghfhtgfrcopy6_146)
package mysteryparking_fla {
import flash.display.*;
public dynamic class ghfhtgfrcopy6_146 extends MovieClip {
public function ghfhtgfrcopy6_146(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 102
//gjkhngjklsdfng_56 (mysteryparking_fla.gjkhngjklsdfng_56)
package mysteryparking_fla {
import flash.display.*;
public dynamic class gjkhngjklsdfng_56 extends MovieClip {
public var loadgame:SimpleButton;
public function gjkhngjklsdfng_56(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mysteryparking_fla
Section 103
//hdfhdfg_427 (mysteryparking_fla.hdfhdfg_427)
package mysteryparking_fla {
import flash.display.*;
public dynamic class hdfhdfg_427 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 104
//hfklgdfgjdf_446 (mysteryparking_fla.hfklgdfgjdf_446)
package mysteryparking_fla {
import flash.display.*;
public dynamic class hfklgdfgjdf_446 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 105
//hgfgfjgfj_418 (mysteryparking_fla.hgfgfjgfj_418)
package mysteryparking_fla {
import flash.display.*;
public dynamic class hgfgfjgfj_418 extends MovieClip {
public var test1:MovieClip;
}
}//package mysteryparking_fla
Section 106
//hjhgkhgk_454 (mysteryparking_fla.hjhgkhgk_454)
package mysteryparking_fla {
import flash.display.*;
public dynamic class hjhgkhgk_454 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 107
//hjhgkjhkj_440 (mysteryparking_fla.hjhgkjhkj_440)
package mysteryparking_fla {
import flash.display.*;
public dynamic class hjhgkjhkj_440 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 108
//hmjhvmhbm_415 (mysteryparking_fla.hmjhvmhbm_415)
package mysteryparking_fla {
import flash.display.*;
public dynamic class hmjhvmhbm_415 extends MovieClip {
public var test1:MovieClip;
}
}//package mysteryparking_fla
Section 109
//hori_411 (mysteryparking_fla.hori_411)
package mysteryparking_fla {
import flash.display.*;
public dynamic class hori_411 extends MovieClip {
public var test1:MovieClip;
}
}//package mysteryparking_fla
Section 110
//jfaosd_441 (mysteryparking_fla.jfaosd_441)
package mysteryparking_fla {
import flash.display.*;
public dynamic class jfaosd_441 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 111
//jgfjgfjhg_438 (mysteryparking_fla.jgfjgfjhg_438)
package mysteryparking_fla {
import flash.display.*;
public dynamic class jgfjgfjhg_438 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 112
//khbl_443 (mysteryparking_fla.khbl_443)
package mysteryparking_fla {
import flash.display.*;
public dynamic class khbl_443 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 113
//kjhkljh_428 (mysteryparking_fla.kjhkljh_428)
package mysteryparking_fla {
import flash.display.*;
public dynamic class kjhkljh_428 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 114
//l15_403 (mysteryparking_fla.l15_403)
package mysteryparking_fla {
import flash.display.*;
public dynamic class l15_403 extends MovieClip {
public var t:MovieClip;
}
}//package mysteryparking_fla
Section 115
//MainTimeline (mysteryparking_fla.MainTimeline)
package mysteryparking_fla {
import flash.events.*;
import flash.display.*;
import mochi.as3.*;
import flash.geom.*;
import flash.filters.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.system.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var total_txt:TextField;
public var loadgame:MovieClip;
public var iok:SimpleButton;
public var so:SharedObject;
public var preloadMc:MovieClip;
public var r:int;
public var boardID:String;
public var load_txt:TextField;
public var contestMenu:ContextMenu;
public var percentage:Number;
public var o:Object;
public var moregmbt:SimpleButton;
public var playg:SimpleButton;
public var CongMc:MovieClip;
public var contextmenuItem:ContextMenuItem;
public var gmsctxtfinal:TextField;
public var ff:MovieClip;
public var back:SimpleButton;
public var instp:SimpleButton;
public function MainTimeline(){
addFrameScript(0, frame1, 10, frame11, 20, frame21, 24, frame25, 30, frame31, 40, frame41, 50, frame51);
}
public function moregmbtfn(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.123chase.com"), "_blank");
}
public function logofnload(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.123chase.com"), "_blank");
}
function frame31(){
stop();
ff.gotoAndStop(1);
myvar.schannel.stop();
}
public function BeeMoving(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
_local2 = loaderInfo.bytesLoaded;
_local3 = loaderInfo.bytesTotal;
percentage = Math.round(((_local2 / _local3) * 100));
load_txt.text = (String(percentage) + "%");
preloadMc.preloadCar.gotoAndStop((percentage * 3));
if (_local2 == _local3){
gotoAndStop("stplay");
stage.removeEventListener(Event.ENTER_FRAME, BeeMoving);
};
}
public function instpfn(_arg1:MouseEvent):void{
playg.removeEventListener(MouseEvent.CLICK, playgfn);
instp.removeEventListener(MouseEvent.CLICK, instpfn);
gotoAndStop("inst");
}
function frame1(){
MochiBot.track(this, "da00655c");
stop();
preloadMc.logoload.addEventListener(MouseEvent.CLICK, logofnload);
contestMenu = new ContextMenu();
contestMenu.hideBuiltInItems();
contextmenuItem = new ContextMenuItem("www.123chase.com");
contextmenuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, Site);
contestMenu.customItems.push(contextmenuItem);
this.contextMenu = contestMenu;
percentage = 0;
total_txt.text = (String(100) + "%");
stage.addEventListener(Event.ENTER_FRAME, BeeMoving);
}
function frame25(){
stop();
iok.addEventListener(MouseEvent.CLICK, gotofun2);
}
function frame21(){
stop();
back.addEventListener(MouseEvent.CLICK, backfn);
}
public function loadgamefn(_arg1:MouseEvent):void{
myvar.bcong = false;
myvar.bquit = false;
loadgame.removeEventListener(MouseEvent.CLICK, loadgamefn);
gotoAndStop("gplay");
}
public function Site(_arg1:Event):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.123chase.com");
navigateToURL(_local2, "_blank");
}
function frame41(){
stop();
}
public function playgfn(_arg1:MouseEvent):void{
myvar.levelnum = 1;
myvar.levelCompleted = 1;
myvar.gscor = 0;
myvar.bcong = false;
myvar.bquit = false;
so.clear();
playg.removeEventListener(MouseEvent.CLICK, playgfn);
instp.removeEventListener(MouseEvent.CLICK, instpfn);
gotoAndStop("intro1");
}
function frame51(){
stop();
MochiServices.connect("ae26b17616c94018", root);
myvar.schannel.stop();
gmsctxtfinal.selectable = false;
gmsctxtfinal.text = myvar.gscor.toString();
if (myvar.Win){
CongMc.gotoAndStop(2);
};
moregmbt.addEventListener(MouseEvent.CLICK, moregmbtfn);
o = {n:[12, 2, 14, 1, 4, 15, 6, 14, 5, 9, 8, 0, 9, 7, 7, 4], f:function (_arg1:Number, _arg2:String):String{
if (_arg2.length == 16){
return (_arg2);
};
return (this.f((_arg1 + 1), (_arg2 + this.n[_arg1].toString(16))));
}};
boardID = o.f(0, "");
MochiScores.showLeaderboard({boardID:boardID, score:myvar.gscor.toString()});
resetcongrats();
}
public function gotofun2(_arg1:MouseEvent){
iok.removeEventListener(MouseEvent.CLICK, gotofun2);
gotoAndStop("gplay");
}
function frame11(){
stop();
playg.addEventListener(MouseEvent.CLICK, playgfn);
instp.addEventListener(MouseEvent.CLICK, instpfn);
so = SharedObject.getLocal("baru");
if (so.data.tLevel != undefined){
myvar.levelnum = so.data.tLevel;
myvar.levelCompleted = so.data.tLevel;
myvar.myArray = so.data.ar;
myvar.gscor = 0;
r = 0;
while (r < (myvar.levelnum - 1)) {
myvar.gscor = (myvar.gscor + myvar.myArray[r]);
r++;
};
loadgame.gotoAndStop(2);
loadgame.addEventListener(MouseEvent.CLICK, loadgamefn);
} else {
myvar.levelnum = 1;
};
}
public function resetcongrats(){
myvar.pcount = 0;
myvar.mcount = 0;
myvar.gscor = 0;
myvar.gameTimescore = 0;
myvar.levelnum = 1;
myvar.scor = 0;
myvar.levelCompleted = 0;
myvar.breset = false;
myvar.blevelup = false;
myvar.gover = false;
myvar.bquit = false;
myvar.myArray = new Array();
myvar.myArray1 = new Array();
myvar.bcong = false;
myvar.bpm = false;
myvar.bselection = false;
myvar.Win = false;
so.clear();
}
public function backfn(_arg1:MouseEvent):void{
back.removeEventListener(MouseEvent.CLICK, backfn);
this.gotoAndStop("intro1");
}
}
}//package mysteryparking_fla
Section 116
//new6_425 (mysteryparking_fla.new6_425)
package mysteryparking_fla {
import flash.display.*;
public dynamic class new6_425 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 117
//prak0_523 (mysteryparking_fla.prak0_523)
package mysteryparking_fla {
import flash.display.*;
public dynamic class prak0_523 extends MovieClip {
public var r4:MovieClip;
}
}//package mysteryparking_fla
Section 118
//prak11_526 (mysteryparking_fla.prak11_526)
package mysteryparking_fla {
import flash.display.*;
public dynamic class prak11_526 extends MovieClip {
public var ba:MovieClip;
}
}//package mysteryparking_fla
Section 119
//prak2_521 (mysteryparking_fla.prak2_521)
package mysteryparking_fla {
import flash.display.*;
public dynamic class prak2_521 extends MovieClip {
public var s1:MovieClip;
public var ba:MovieClip;
public function prak2_521(){
addFrameScript(159, frame160);
}
function frame160(){
}
}
}//package mysteryparking_fla
Section 120
//prak8_522 (mysteryparking_fla.prak8_522)
package mysteryparking_fla {
import flash.display.*;
public dynamic class prak8_522 extends MovieClip {
public var s9:MovieClip;
}
}//package mysteryparking_fla
Section 121
//preload__23 (mysteryparking_fla.preload__23)
package mysteryparking_fla {
import flash.display.*;
public dynamic class preload__23 extends MovieClip {
public function preload__23(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package mysteryparking_fla
Section 122
//preload_preloadMc_1 (mysteryparking_fla.preload_preloadMc_1)
package mysteryparking_fla {
import flash.display.*;
public dynamic class preload_preloadMc_1 extends MovieClip {
public var preloadCar:MovieClip;
public var logoload:SimpleButton;
}
}//package mysteryparking_fla
Section 123
//prem0_538 (mysteryparking_fla.prem0_538)
package mysteryparking_fla {
import flash.display.*;
public dynamic class prem0_538 extends MovieClip {
public var s8:MovieClip;
public var s9:MovieClip;
public var ba:MovieClip;
public var d1:MovieClip;
public var s10:MovieClip;
}
}//package mysteryparking_fla
Section 124
//prem18_546 (mysteryparking_fla.prem18_546)
package mysteryparking_fla {
import flash.display.*;
public dynamic class prem18_546 extends MovieClip {
public var ba:MovieClip;
}
}//package mysteryparking_fla
Section 125
//prem4_545 (mysteryparking_fla.prem4_545)
package mysteryparking_fla {
import flash.display.*;
public dynamic class prem4_545 extends MovieClip {
public var s1:MovieClip;
}
}//package mysteryparking_fla
Section 126
//sdfasdf_420 (mysteryparking_fla.sdfasdf_420)
package mysteryparking_fla {
import flash.display.*;
public dynamic class sdfasdf_420 extends MovieClip {
public var test1:MovieClip;
}
}//package mysteryparking_fla
Section 127
//Symbol3_109 (mysteryparking_fla.Symbol3_109)
package mysteryparking_fla {
import flash.display.*;
public dynamic class Symbol3_109 extends MovieClip {
public function Symbol3_109(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 9, frame10, 38, frame39);
}
function frame10(){
stop();
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
function frame39(){
stop();
}
}
}//package mysteryparking_fla
Section 128
//u7tyio8yo_463 (mysteryparking_fla.u7tyio8yo_463)
package mysteryparking_fla {
import flash.display.*;
public dynamic class u7tyio8yo_463 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 129
//vnb_439 (mysteryparking_fla.vnb_439)
package mysteryparking_fla {
import flash.display.*;
public dynamic class vnb_439 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 130
//vxbcvbxdkjfds_452 (mysteryparking_fla.vxbcvbxdkjfds_452)
package mysteryparking_fla {
import flash.display.*;
public dynamic class vxbcvbxdkjfds_452 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 131
//ytrgj_572 (mysteryparking_fla.ytrgj_572)
package mysteryparking_fla {
import flash.display.*;
public dynamic class ytrgj_572 extends MovieClip {
public function ytrgj_572(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package mysteryparking_fla
Section 132
//ytruj_453 (mysteryparking_fla.ytruj_453)
package mysteryparking_fla {
import flash.display.*;
public dynamic class ytruj_453 extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var bottom:MovieClip;
public var top:MovieClip;
}
}//package mysteryparking_fla
Section 133
//Ball (Ball)
package {
import flash.display.*;
public dynamic class Ball extends MovieClip {
}
}//package
Section 134
//ballblastsound (ballblastsound)
package {
import flash.media.*;
public dynamic class ballblastsound extends Sound {
}
}//package
Section 135
//ballhittingsound (ballhittingsound)
package {
import flash.media.*;
public dynamic class ballhittingsound extends Sound {
}
}//package
Section 136
//ballreachedsound (ballreachedsound)
package {
import flash.media.*;
public dynamic class ballreachedsound extends Sound {
}
}//package
Section 137
//bgs (bgs)
package {
import flash.media.*;
public dynamic class bgs extends Sound {
}
}//package
Section 138
//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{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 139
//myvar (myvar)
package {
import flash.media.*;
public class myvar {
public static var levelnum:Number = 1;
public static var Win:Boolean = false;
public static var bcong:Boolean = false;
public static var mcount:Number = 0;
public static var bg:bgs = new bgs();
public static var myArray:Array = new Array();
public static var bsound:ballblastsound = new ballblastsound();
public static var gameTimescore:Number = 0;
public static var gscor:int = 0;
public static var myArray1:Array = new Array();
public static var pcount:Number = 0;
public static var rsound:ballreachedsound = new ballreachedsound();
public static var levelCompleted:Number = 0;
public static var bselection:Boolean = false;
public static var bpm:Boolean = false;
public static var schannel:SoundChannel = new SoundChannel();
public static var bquit:Boolean = false;
public static var scor:int = 0;
public static var gover:Boolean = false;
public static var breset:Boolean = false;
public static var blevelup:Boolean = false;
public static var hsound:ballhittingsound = new ballhittingsound();
}
}//package
Section 140
//soccer (soccer)
package {
import flash.events.*;
import flash.display.*;
import gs.*;
import flash.utils.*;
import gs.easing.*;
public class soccer {
var ballsize:Number;// = 0
var delay:int;// = 0
var diff:Number;// = 1000
public var clickcount:Number;// = 0
var clickenable:Boolean;// = true
var bbottom:Boolean;// = false
public var sarr:Array;
var tempint:Number;// = 0
var count:int;// = 0
public var rarr:Array;
var Yspeed:Number;// = 5
var bmove:Boolean;// = false
var btop:Boolean;// = false
var speed:Number;// = 0
public var mystage:MovieClip;
var diffmc:MovieClip;
var temp:MovieClip;// = null
var bleft:Boolean;// = false
var tempmc:MovieClip;
var k:int;// = 0
var Xspeed:Number;// = 5
var i:int;// = 0
var j:int;// = 0
var bcheck:Boolean;// = false
var bright:Boolean;// = false
public function soccer(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7){
var dirfun:Function;
var clickfun:Function;
var recall:Function;
var moveBall:Function;
var resetgame:Function;
var gameOver:Function;
var rdir:Function;
var ldir:Function;
var tdir:Function;
var bdir:Function;
var hit:Function;
var fn:Function;
var ball = _arg1;
var red = _arg2;
var blue = _arg3;
var mystage = _arg4;
var rarr = _arg5;
var sarr = _arg6;
var clickcount = _arg7;
clickcount = 0;
sarr = new Array();
rarr = new Array();
bleft = false;
btop = false;
bright = false;
bbottom = false;
bmove = false;
temp = null;
bcheck = false;
clickenable = true;
i = 0;
j = 0;
k = 0;
Xspeed = 5;
Yspeed = 5;
ballsize = 0;
tempint = 0;
diff = 1000;
speed = 0;
count = 0;
delay = 0;
super();
dirfun = function (_arg1:KeyboardEvent){
if (_arg1.keyCode == 37){
if (bleft == false){
ldir();
mystage.stage.removeEventListener(KeyboardEvent.KEY_UP, dirfun);
bmove = true;
bleft = true;
btop = false;
bright = false;
bbottom = false;
clickenable = false;
};
} else {
if (_arg1.keyCode == 38){
if (btop == false){
tdir();
mystage.stage.removeEventListener(KeyboardEvent.KEY_UP, dirfun);
bmove = true;
btop = true;
bleft = false;
bright = false;
bbottom = false;
clickenable = false;
};
} else {
if (_arg1.keyCode == 39){
if (bright == false){
rdir();
mystage.stage.removeEventListener(KeyboardEvent.KEY_UP, dirfun);
bmove = true;
bright = true;
btop = false;
bleft = false;
bbottom = false;
clickenable = false;
};
} else {
if (_arg1.keyCode == 40){
if (bbottom == false){
bdir();
mystage.stage.removeEventListener(KeyboardEvent.KEY_UP, dirfun);
bmove = true;
bbottom = true;
btop = false;
bleft = false;
bright = false;
clickenable = false;
};
};
};
};
};
};
clickfun = function (_arg1:MouseEvent){
if (clickenable){
if (clickcount > 0){
if (temp != (_arg1.currentTarget as MovieClip)){
if (temp){
if (!temp.test1.hitTestObject(ball)){
clickcount--;
mystage.ccount.text = clickcount.toString();
i = 0;
while (i < rarr.length) {
rarr[i].alpha = 1;
rarr[i].id = 0;
i++;
};
temp = (_arg1.currentTarget as MovieClip);
if (tempmc == temp){
tempmc = null;
bbottom = false;
btop = false;
bleft = false;
bright = false;
};
temp.alpha = 0.4;
temp.id = 1;
};
} else {
clickcount--;
mystage.ccount.text = clickcount.toString();
i = 0;
while (i < rarr.length) {
rarr[i].alpha = 1;
rarr[i].id = 0;
i++;
};
temp = (_arg1.currentTarget as MovieClip);
if (tempmc == temp){
tempmc = null;
bbottom = false;
btop = false;
bleft = false;
bright = false;
};
temp.alpha = 0.4;
temp.id = 1;
};
};
};
};
};
recall = function (){
ball.gotoAndStop(count);
if (tempmc.hit == 2){
if (!myvar.bpm){
myvar.rsound.play(0, 1);
};
ball.x = tempmc.x;
ball.y = tempmc.y;
if (myvar.levelnum == 35){
myvar.gscor = (myvar.gscor + 1000);
myvar.bcong = true;
} else {
myvar.blevelup = true;
};
gameOver();
} else {
if (!myvar.bpm){
myvar.hsound.play(0, 1);
};
clickenable = true;
mystage.stage.addEventListener(KeyboardEvent.KEY_UP, dirfun);
};
};
moveBall = function (_arg1:Event){
if (((((myvar.breset) || (myvar.bquit))) || (myvar.bselection))){
resetgame();
};
hit();
if (bmove){
if (bleft){
if (ball.x > (tempint + Xspeed)){
count = 3;
ball.gotoAndStop(3);
speed = (diff / 333.33);
if (tempmc){
if (tempmc.hit == 2){
tempint = (tempint - 25);
};
};
bmove = false;
TweenMax.to(ball, speed, {x:(tempint + Xspeed), onComplete:recall, ease:Sine.easeOut});
} else {
clickenable = true;
mystage.stage.addEventListener(KeyboardEvent.KEY_UP, dirfun);
};
};
if (bright){
if (ball.x < (tempint - Xspeed)){
count = 2;
ball.gotoAndStop(2);
speed = (diff / 333.33);
if (tempmc){
if (tempmc.hit == 2){
tempint = (tempint + 25);
};
};
bmove = false;
TweenMax.to(ball, speed, {x:(tempint - Xspeed), onComplete:recall, ease:Sine.easeOut});
} else {
clickenable = true;
mystage.stage.addEventListener(KeyboardEvent.KEY_UP, dirfun);
};
};
if (btop){
if (ball.y > (tempint + Yspeed)){
count = 4;
ball.gotoAndStop(4);
speed = (diff / 333.33);
if (tempmc){
if (tempmc.hit == 2){
tempint = (tempint - 25);
};
};
bmove = false;
TweenMax.to(ball, speed, {y:(tempint + Yspeed), onComplete:recall, ease:Sine.easeOut});
} else {
clickenable = true;
mystage.stage.addEventListener(KeyboardEvent.KEY_UP, dirfun);
};
};
if (bbottom){
if (ball.y < (tempint - Yspeed)){
count = 5;
ball.gotoAndStop(5);
speed = (diff / 333.33);
if (tempmc){
if (tempmc.hit == 2){
tempint = (tempint + 25);
};
};
bmove = false;
TweenMax.to(ball, speed, {y:(tempint - Yspeed), onComplete:recall, ease:Sine.easeOut});
} else {
clickenable = true;
mystage.stage.addEventListener(KeyboardEvent.KEY_UP, dirfun);
};
};
};
};
resetgame = function (){
myvar.breset = false;
myvar.gover = false;
myvar.blevelup = false;
TweenMax.killTweensOf(ball);
i = 0;
while (i < rarr.length) {
rarr[i].id = 0;
rarr[i].removeEventListener(MouseEvent.CLICK, clickfun);
i++;
};
rarr.length = 0;
mystage.stage.removeEventListener(KeyboardEvent.KEY_UP, dirfun);
mystage.removeEventListener(Event.ENTER_FRAME, moveBall);
mystage.gotoAndStop(1);
};
gameOver = function (){
i = 0;
while (i < rarr.length) {
rarr[i].id = 0;
rarr[i].removeEventListener(MouseEvent.CLICK, clickfun);
i++;
};
rarr.length = 0;
mystage.stage.removeEventListener(KeyboardEvent.KEY_UP, dirfun);
mystage.removeEventListener(Event.ENTER_FRAME, moveBall);
if (myvar.bcong){
mystage.gotoAndStop(1);
} else {
if (myvar.gover){
trace("myvar.gover");
mystage.gotoAndStop(45);
} else {
mystage.gotoAndStop(40);
};
};
};
rdir = function (){
diff = (800 - ball.x);
tempint = 800;
j = 0;
while (j < rarr.length) {
if (rarr[j].id == 0){
if ((ball.x + 15) < (rarr[j].x - (rarr[j].width / 2))){
if ((((ball.y < (rarr[j].y + (rarr[j].height / 2)))) && ((ball.y > (rarr[j].y - (rarr[j].height / 2)))))){
if (((rarr[j].x - (rarr[j].width / 2)) - (ball.x + 15)) < diff){
diff = ((rarr[j].x - (rarr[j].width / 2)) - (ball.x + 15));
tempint = ((rarr[j].x - (rarr[j].width / 2)) - 15);
tempmc = rarr[j];
};
};
};
};
j++;
};
j = 0;
while (j < sarr.length) {
if (sarr[j].visible == true){
if ((ball.x + 15) < (sarr[j].x - (sarr[j].width / 2))){
if ((((ball.y < (sarr[j].y + (sarr[j].height / 2)))) && ((ball.y > (sarr[j].y - (sarr[j].height / 2)))))){
if (((sarr[j].x - (sarr[j].width / 2)) - (ball.x + 15)) < diff){
diff = ((sarr[j].x - (sarr[j].width / 2)) - (ball.x + 15));
tempint = ((sarr[j].x - (sarr[j].width / 2)) - 15);
tempmc = sarr[j];
};
};
};
};
j++;
};
};
ldir = function (){
diff = (ball.x - 10);
tempint = 10;
j = 0;
while (j < rarr.length) {
if (rarr[j].id == 0){
if ((ball.x - 15) > (rarr[j].x + (rarr[j].width / 2))){
if ((((ball.y < (rarr[j].y + (rarr[j].height / 2)))) && ((ball.y > (rarr[j].y - (rarr[j].height / 2)))))){
if (((ball.x - 15) - (rarr[j].x + (rarr[j].width / 2))) < diff){
diff = ((ball.x - 15) - (rarr[j].x + (rarr[j].width / 2)));
tempint = ((rarr[j].x + (rarr[j].width / 2)) + 15);
tempmc = rarr[j];
};
};
};
};
j++;
};
j = 0;
while (j < sarr.length) {
if (sarr[j].visible == true){
if ((ball.x - 15) > (sarr[j].x + (sarr[j].width / 2))){
if ((((ball.y < (sarr[j].y + (sarr[j].height / 2)))) && ((ball.y > (sarr[j].y - (sarr[j].height / 2)))))){
if (((ball.x - 15) - (sarr[j].x + (sarr[j].width / 2))) < diff){
diff = ((ball.x - 15) - (sarr[j].x + (sarr[j].width / 2)));
tempint = ((sarr[j].x + (sarr[j].width / 2)) + 15);
tempmc = sarr[j];
};
};
};
};
j++;
};
};
tdir = function (){
diff = (ball.y - 10);
tempint = -10;
j = 0;
while (j < rarr.length) {
if (rarr[j].id == 0){
if ((ball.y - 15) > (rarr[j].y + (rarr[j].height / 2))){
if ((((ball.x < (rarr[j].x + (rarr[j].width / 2)))) && ((ball.x > (rarr[j].x - (rarr[j].width / 2)))))){
if (((ball.y - 15) - (rarr[j].y + (rarr[j].height / 2))) < diff){
diff = ((ball.y - 15) - (rarr[j].y + (rarr[j].height / 2)));
tempint = ((rarr[j].y + (rarr[j].height / 2)) + 15);
tempmc = rarr[j];
};
};
};
};
j++;
};
j = 0;
while (j < sarr.length) {
if (sarr[j].visible == true){
if ((ball.y - 15) > (sarr[j].y + (sarr[j].height / 2))){
if ((((ball.x < (sarr[j].x + (sarr[j].width / 2)))) && ((ball.x > (sarr[j].x - (sarr[j].width / 2)))))){
if (((ball.y - 15) - (sarr[j].y + (sarr[j].height / 2))) < diff){
diff = ((ball.y - 15) - (sarr[j].y + (sarr[j].height / 2)));
tempint = ((sarr[j].y + (sarr[j].height / 2)) + 15);
tempmc = sarr[j];
};
};
};
};
j++;
};
};
bdir = function (){
diff = (610 - ball.y);
bcheck = false;
tempint = 610;
j = 0;
while (j < rarr.length) {
if (rarr[j].id == 0){
if ((ball.y + 15) < (rarr[j].y - (rarr[j].height / 2))){
if ((((ball.x < (rarr[j].x + (rarr[j].width / 2)))) && ((ball.x > (rarr[j].x - (rarr[j].width / 2)))))){
if (((rarr[j].y - (rarr[j].height / 2)) - (ball.y + 15)) < diff){
diff = ((rarr[j].y - (rarr[j].height / 2)) - (ball.y + 15));
tempint = ((rarr[j].y - (rarr[j].height / 2)) - 15);
tempmc = rarr[j];
bcheck = true;
};
};
};
};
j++;
};
j = 0;
while (j < sarr.length) {
if (sarr[j].visible == true){
if ((ball.y + 15) < (sarr[j].y - (sarr[j].height / 2))){
if ((((ball.x < (sarr[j].x + (sarr[j].width / 2)))) && ((ball.x > (sarr[j].x - (sarr[j].width / 2)))))){
if (((sarr[j].y - (sarr[j].height / 2)) - (ball.y + 15)) < diff){
diff = ((sarr[j].y - (sarr[j].height / 2)) - (ball.y + 15));
tempint = ((sarr[j].y - (sarr[j].height / 2)) - 15);
tempmc = sarr[j];
};
};
};
};
j++;
};
};
hit = function (){
trace((((ball.x + " ball.x ") + ball.y) + " ball.y"));
if ((((((((ball.x < 220)) || ((ball.x > 740)))) || ((ball.y < 50)))) || ((ball.y > 550)))){
if (!myvar.bpm){
myvar.bsound.play(0, 1);
};
bmove = false;
TweenMax.killTweensOf(ball);
ball.gotoAndPlay(11);
trace("came");
myvar.gover = true;
mystage.removeEventListener(Event.ENTER_FRAME, moveBall);
delay = setInterval(fn, 1000);
};
if (red != null){
if (ball.hitTestObject(red)){
mystage.removeChild(red);
red = null;
if (blue){
blue.visible = true;
};
k = 0;
while (k < sarr.length) {
if (sarr[k].hit == 1){
mystage.removeChild(sarr[k]);
sarr.splice(k, 1);
k--;
};
k++;
};
mystage.stage.addEventListener(KeyboardEvent.KEY_UP, dirfun);
};
};
if (((!((blue == null))) && ((blue.visible == true)))){
if (ball.hitTestObject(blue)){
mystage.removeChild(blue);
blue = null;
sarr[(sarr.length - 1)].visible = true;
sarr[(sarr.length - 1)].hit = 2;
mystage.stage.addEventListener(KeyboardEvent.KEY_UP, dirfun);
};
};
};
fn = function ():void{
clearInterval(delay);
gameOver();
};
mystage.setChildIndex(ball, (mystage.numChildren - 1));
mystage.stage.addEventListener(KeyboardEvent.KEY_UP, dirfun);
i = 0;
while (i < rarr.length) {
rarr[i].id = 0;
rarr[i].addEventListener(MouseEvent.CLICK, clickfun);
i++;
};
mystage.addEventListener(Event.ENTER_FRAME, moveBall);
}
}
}//package