Anda di halaman 1dari 119

package {

import flash.media.*;

public dynamic class BgSound extends Sound {

}
}//package
package {
import model.*;
import flash.events.*;
import flash.display.*;
import flash.ui.*;

public dynamic class Preloader extends MovieClip {

private static const ENTRY_FRAME:uint = 3;


private static const APPLICATION_CLASS:String = "Application";
private static const APPLICATION_NAME:String = "application";

public var preloader_mc:MovieClip;


private var modObj;
public var _inited:Boolean = false;

public function Preloader(){


stop();
addEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
}
private function addedToStageHandler(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
this.init();
}
private function init():void{
this.setStageProps();
this.handleContextMenu();
this.configureListeners();
this.preloader_mc.visible = true;
this.modObj = ModelLocator.getInstance();
}
private function showFinished():void{
if (this.preloader_mc != null){
this.preloader_mc.visible = true;
};
}
private function setStageProps():void{
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
}
private function handleContextMenu():void{
var _local1:* = new ContextMenu();
_local1.hideBuiltInItems();
this.contextMenu = _local1;
var _local2:ContextMenuBuiltInItems = _local1.builtInItems;
_local2.print = true;
}
private function configureListeners():void{
loaderInfo.addEventListener(ProgressEvent.PROGRESS,
this.progressHandler);
loaderInfo.addEventListener(Event.COMPLETE, this.completeHandler);
}
private function progressHandler(_arg1:ProgressEvent):void{
var _local2:int = Math.round(((_arg1.bytesLoaded / _arg1.bytesTotal) *
100));
this.preloader_mc.loading_txt.text = (("Loaded \n" +
_local2.toString()) + " %");
}
private function completeHandler(_arg1:Event):void{
this.gc();
gotoAndStop(ENTRY_FRAME);
addFrameScript((ENTRY_FRAME - 1), this.start1);
}
private function start1():void{
var _local1:Class =
(loaderInfo.applicationDomain.getDefinition(APPLICATION_CLASS) as Class);
var _local2:MovieClip = (new (_local1) as MovieClip);
_local2.name = APPLICATION_NAME;
addChildAt(_local2, numChildren);
}
private function removeListeners():void{
loaderInfo.removeEventListener(ProgressEvent.PROGRESS,
this.progressHandler);
loaderInfo.removeEventListener(Event.COMPLETE, this.completeHandler);
}
public function removePreloaderMC():void{
try {
removeChild(this.preloader_mc);
this.preloader_mc = null;
} catch(e:Error) {
};
}
private function gc():void{
this.removeListeners();
}

}
}//package
package {
import view.*;

public dynamic class GamePlayScreen extends GamePlayScreen {

}
}//package
package {
import view.*;

public dynamic class Screen5 extends Screen5 {

}
}//package
package fl.motion {

public class ColorMatrix extends DynamicMatrix {

protected static const LUMINANCER:Number = 0.3086;


protected static const LUMINANCEG:Number = 0.6094;
protected static const LUMINANCEB:Number = 0.082;

public function ColorMatrix(){


super(5, 5);
LoadIdentity();
}
public function SetBrightnessMatrix(_arg1:Number):void{
if (!m_matrix){
return;
};
m_matrix[0][4] = _arg1;
m_matrix[1][4] = _arg1;
m_matrix[2][4] = _arg1;
}
public function SetContrastMatrix(_arg1:Number):void{
if (!m_matrix){
return;
};
var _local2:Number = (0.5 * (127 - _arg1));
_arg1 = (_arg1 / 127);
m_matrix[0][0] = _arg1;
m_matrix[1][1] = _arg1;
m_matrix[2][2] = _arg1;
m_matrix[0][4] = _local2;
m_matrix[1][4] = _local2;
m_matrix[2][4] = _local2;
}
public function SetSaturationMatrix(_arg1:Number):void{
if (!m_matrix){
return;
};
var _local2:Number = (1 - _arg1);
var _local3:Number = (_local2 * LUMINANCER);
m_matrix[0][0] = (_local3 + _arg1);
m_matrix[1][0] = _local3;
m_matrix[2][0] = _local3;
_local3 = (_local2 * LUMINANCEG);
m_matrix[0][1] = _local3;
m_matrix[1][1] = (_local3 + _arg1);
m_matrix[2][1] = _local3;
_local3 = (_local2 * LUMINANCEB);
m_matrix[0][2] = _local3;
m_matrix[1][2] = _local3;
m_matrix[2][2] = (_local3 + _arg1);
}
public function SetHueMatrix(_arg1:Number):void{
var _local11:int;
if (!m_matrix){
return;
};
LoadIdentity();
var _local2:DynamicMatrix = new DynamicMatrix(3, 3);
var _local3:DynamicMatrix = new DynamicMatrix(3, 3);
var _local4:DynamicMatrix = new DynamicMatrix(3, 3);
var _local5:Number = Math.cos(_arg1);
var _local6:Number = Math.sin(_arg1);
var _local7:Number = 0.213;
var _local8:Number = 0.715;
var _local9:Number = 0.072;
_local2.SetValue(0, 0, _local7);
_local2.SetValue(1, 0, _local7);
_local2.SetValue(2, 0, _local7);
_local2.SetValue(0, 1, _local8);
_local2.SetValue(1, 1, _local8);
_local2.SetValue(2, 1, _local8);
_local2.SetValue(0, 2, _local9);
_local2.SetValue(1, 2, _local9);
_local2.SetValue(2, 2, _local9);
_local3.SetValue(0, 0, (1 - _local7));
_local3.SetValue(1, 0, -(_local7));
_local3.SetValue(2, 0, -(_local7));
_local3.SetValue(0, 1, -(_local8));
_local3.SetValue(1, 1, (1 - _local8));
_local3.SetValue(2, 1, -(_local8));
_local3.SetValue(0, 2, -(_local9));
_local3.SetValue(1, 2, -(_local9));
_local3.SetValue(2, 2, (1 - _local9));
_local3.MultiplyNumber(_local5);
_local4.SetValue(0, 0, -(_local7));
_local4.SetValue(1, 0, 0.143);
_local4.SetValue(2, 0, -((1 - _local7)));
_local4.SetValue(0, 1, -(_local8));
_local4.SetValue(1, 1, 0.14);
_local4.SetValue(2, 1, _local8);
_local4.SetValue(0, 2, (1 - _local9));
_local4.SetValue(1, 2, -0.283);
_local4.SetValue(2, 2, _local9);
_local4.MultiplyNumber(_local6);
_local2.Add(_local3);
_local2.Add(_local4);
var _local10:int;
while (_local10 < 3) {
_local11 = 0;
while (_local11 < 3) {
m_matrix[_local10][_local11] = _local2.GetValue(_local10,
_local11);
_local11++;
};
_local10++;
};
}
public function GetFlatArray():Array{
var _local4:int;
if (!m_matrix){
return (null);
};
var _local1:Array = new Array();
var _local2:int;
var _local3:int;
while (_local3 < 4) {
_local4 = 0;
while (_local4 < 5) {
_local1[_local2] = m_matrix[_local3][_local4];
_local2++;
_local4++;
};
_local3++;
};
return (_local1);
}
}
}//package fl.motion

class XFormData {

public var ox:Number;


public var oy:Number;
public var oz:Number;

public function XFormData(){


}
}
package fl.motion {

public class AdjustColor {

private static var s_arrayOfDeltaIndex:Array = [0, 0.01, 0.02, 0.04, 0.05,


0.06, 0.07, 0.08, 0.1, 0.11, 0.12, 0.14, 0.15, 0.16, 0.17, 0.18, 0.2, 0.21, 0.22,
0.24, 0.25, 0.27, 0.28, 0.3, 0.32, 0.34, 0.36, 0.38, 0.4, 0.42, 0.44, 0.46, 0.48,
0.5, 0.53, 0.56, 0.59, 0.62, 0.65, 0.68, 0.71, 0.74, 0.77, 0.8, 0.83, 0.86, 0.89,
0.92, 0.95, 0.98, 1, 1.06, 1.12, 1.18, 1.24, 1.3, 1.36, 1.42, 1.48, 1.54, 1.6,
1.66, 1.72, 1.78, 1.84, 1.9, 1.96, 2, 2.12, 2.25, 2.37, 2.5, 2.62, 2.75, 2.87, 3,
3.2, 3.4, 3.6, 3.8, 4, 4.3, 4.7, 4.9, 5, 5.5, 6, 6.5, 6.8, 7, 7.3, 7.5, 7.8, 8,
8.4, 8.7, 9, 9.4, 9.6, 9.8, 10];

private var m_brightnessMatrix:ColorMatrix;


private var m_contrastMatrix:ColorMatrix;
private var m_saturationMatrix:ColorMatrix;
private var m_hueMatrix:ColorMatrix;
private var m_finalMatrix:ColorMatrix;

public function set brightness(_arg1:Number):void{


if (this.m_brightnessMatrix == null){
this.m_brightnessMatrix = new ColorMatrix();
};
if (_arg1 != 0){
this.m_brightnessMatrix.SetBrightnessMatrix(_arg1);
};
}
public function set contrast(_arg1:Number):void{
var _local2:Number = _arg1;
if (_arg1 == 0){
_local2 = 127;
} else {
if (_arg1 > 0){
_local2 = ((s_arrayOfDeltaIndex[int(_arg1)] * 127) + 127);
} else {
_local2 = (((_arg1 / 100) * 127) + 127);
};
};
if (this.m_contrastMatrix == null){
this.m_contrastMatrix = new ColorMatrix();
};
this.m_contrastMatrix.SetContrastMatrix(_local2);
}
public function set saturation(_arg1:Number):void{
var _local2:Number = _arg1;
if (_arg1 == 0){
_local2 = 1;
} else {
if (_arg1 > 0){
_local2 = (1 + ((3 * _arg1) / 100));
} else {
_local2 = ((_arg1 / 100) + 1);
};
};
if (this.m_saturationMatrix == null){
this.m_saturationMatrix = new ColorMatrix();
};
this.m_saturationMatrix.SetSaturationMatrix(_local2);
}
public function set hue(_arg1:Number):void{
if (this.m_hueMatrix == null){
this.m_hueMatrix = new ColorMatrix();
};
if (_arg1 != 0){
this.m_hueMatrix.SetHueMatrix(((_arg1 * Math.PI) / 180));
};
}
public function AllValuesAreSet():Boolean{
return (((((((this.m_brightnessMatrix) && (this.m_contrastMatrix))) &&
(this.m_saturationMatrix))) && (this.m_hueMatrix)));
}
public function CalculateFinalFlatArray():Array{
if (this.CalculateFinalMatrix()){
return (this.m_finalMatrix.GetFlatArray());
};
return (null);
}
private function CalculateFinalMatrix():Boolean{
if (!this.AllValuesAreSet()){
return (false);
};
this.m_finalMatrix = new ColorMatrix();
this.m_finalMatrix.Multiply(this.m_brightnessMatrix);
this.m_finalMatrix.Multiply(this.m_contrastMatrix);
this.m_finalMatrix.Multiply(this.m_saturationMatrix);
this.m_finalMatrix.Multiply(this.m_hueMatrix);
return (true);
}

}
}//package fl.motion
package fl.motion {

public class DynamicMatrix {

public static const MATRIX_ORDER_PREPEND:int = 0;


public static const MATRIX_ORDER_APPEND:int = 1;

protected var m_width:int;


protected var m_height:int;
protected var m_matrix:Array;

public function DynamicMatrix(_arg1:int, _arg2:int){


this.Create(_arg1, _arg2);
}
protected function Create(_arg1:int, _arg2:int):void{
var _local3:int;
var _local4:int;
if ((((_arg1 > 0)) && ((_arg2 > 0)))){
this.m_width = _arg1;
this.m_height = _arg2;
this.m_matrix = new Array(_arg2);
_local3 = 0;
while (_local3 < _arg2) {
this.m_matrix[_local3] = new Array(_arg1);
_local4 = 0;
while (_local4 < _arg2) {
this.m_matrix[_local3][_local4] = 0;
_local4++;
};
_local3++;
};
};
}
protected function Destroy():void{
this.m_matrix = null;
}
public function GetWidth():Number{
return (this.m_width);
}
public function GetHeight():Number{
return (this.m_height);
}
public function GetValue(_arg1:int, _arg2:int):Number{
var _local3:Number = 0;
if ((((((((_arg1 >= 0)) && ((_arg1 < this.m_height)))) && ((_arg2 >=
0)))) && ((_arg2 <= this.m_width)))){
_local3 = this.m_matrix[_arg1][_arg2];
};
return (_local3);
}
public function SetValue(_arg1:int, _arg2:int, _arg3:Number):void{
if ((((((((_arg1 >= 0)) && ((_arg1 < this.m_height)))) && ((_arg2 >=
0)))) && ((_arg2 <= this.m_width)))){
this.m_matrix[_arg1][_arg2] = _arg3;
};
}
public function LoadIdentity():void{
var _local1:int;
var _local2:int;
if (this.m_matrix){
_local1 = 0;
while (_local1 < this.m_height) {
_local2 = 0;
while (_local2 < this.m_width) {
if (_local1 == _local2){
this.m_matrix[_local1][_local2] = 1;
} else {
this.m_matrix[_local1][_local2] = 0;
};
_local2++;
};
_local1++;
};
};
}
public function LoadZeros():void{
var _local1:int;
var _local2:int;
if (this.m_matrix){
_local1 = 0;
while (_local1 < this.m_height) {
_local2 = 0;
while (_local2 < this.m_width) {
this.m_matrix[_local1][_local2] = 0;
_local2++;
};
_local1++;
};
};
}
public function Multiply(_arg1:DynamicMatrix, _arg2:int=0):Boolean{
var _local5:DynamicMatrix;
var _local6:int;
var _local7:int;
var _local8:Number;
var _local9:int;
var _local10:int;
if (((!(this.m_matrix)) || (!(_arg1)))){
return (false);
};
var _local3:int = _arg1.GetHeight();
var _local4:int = _arg1.GetWidth();
if (_arg2 == MATRIX_ORDER_APPEND){
if (this.m_width != _local3){
return (false);
};
_local5 = new DynamicMatrix(_local4, this.m_height);
_local6 = 0;
while (_local6 < this.m_height) {
_local7 = 0;
while (_local7 < _local4) {
_local8 = 0;
_local9 = 0;
_local10 = 0;
while ((((_local9 < Math.max(this.m_height, _local3))) &&
((_local10 < Math.max(this.m_width, _local4))))) {
_local8 = (_local8 + (_arg1.GetValue(_local9, _local7)
* this.m_matrix[_local6][_local10]));
_local9++;
_local10++;
};
_local5.SetValue(_local6, _local7, _local8);
_local7++;
};
_local6++;
};
this.Destroy();
this.Create(_local4, this.m_height);
_local6 = 0;
while (_local6 < _local3) {
_local7 = 0;
while (_local7 < this.m_width) {
this.m_matrix[_local6][_local7] = _local5.GetValue(_local6,
_local7);
_local7++;
};
_local6++;
};
} else {
if (this.m_height != _local4){
return (false);
};
_local5 = new DynamicMatrix(this.m_width, _local3);
_local6 = 0;
while (_local6 < _local3) {
_local7 = 0;
while (_local7 < this.m_width) {
_local8 = 0;
_local9 = 0;
_local10 = 0;
while ((((_local9 < Math.max(_local3, this.m_height))) &&
((_local10 < Math.max(_local4, this.m_width))))) {
_local8 = (_local8 + (this.m_matrix[_local9][_local7] *
_arg1.GetValue(_local6, _local10)));
_local9++;
_local10++;
};
_local5.SetValue(_local6, _local7, _local8);
_local7++;
};
_local6++;
};
this.Destroy();
this.Create(this.m_width, _local3);
_local6 = 0;
while (_local6 < _local3) {
_local7 = 0;
while (_local7 < this.m_width) {
this.m_matrix[_local6][_local7] = _local5.GetValue(_local6,
_local7);
_local7++;
};
_local6++;
};
};
return (true);
}
public function MultiplyNumber(_arg1:Number):Boolean{
var _local3:int;
var _local4:Number;
if (!this.m_matrix){
return (false);
};
var _local2:int;
while (_local2 < this.m_height) {
_local3 = 0;
while (_local3 < this.m_width) {
_local4 = 0;
_local4 = (this.m_matrix[_local2][_local3] * _arg1);
this.m_matrix[_local2][_local3] = _local4;
_local3++;
};
_local2++;
};
return (true);
}
public function Add(_arg1:DynamicMatrix):Boolean{
var _local5:int;
var _local6:Number;
if (((!(this.m_matrix)) || (!(_arg1)))){
return (false);
};
var _local2:int = _arg1.GetHeight();
var _local3:int = _arg1.GetWidth();
if (((!((this.m_width == _local3))) || (!((this.m_height ==
_local2))))){
return (false);
};
var _local4:int;
while (_local4 < this.m_height) {
_local5 = 0;
while (_local5 < this.m_width) {
_local6 = 0;
_local6 = (this.m_matrix[_local4][_local5] +
_arg1.GetValue(_local4, _local5));
this.m_matrix[_local4][_local5] = _local6;
_local5++;
};
_local4++;
};
return (true);
}

}
}//package fl.motion
package controller {

public class ScorePat {

private static var instance:ScorePat;

public var minScore:Number = 2000;


public var maxScore:Number = 30000;
public var deltaScore:Number;
public var maxTime:Number = 420;
public var minTime:Number = 63;
private var deltaTime:Number = 0;
public var levelMinTime:Number = 12;
public var levelMaxTime:Number = 25;
public var levelDeltaTime:Number = 0;
private var timeMinDiff:Number = 0;
public var levelMinScore:Number = 0;
private var timeMaxDiff:Number = 0;
public var levelMaxScore:Number = 0;
public var levelDeltaScore:Number = 0;

public function ScorePat(_arg1:SingletonEnforcer):void{


this.deltaScore = (this.maxScore - this.minScore);
super();
if (_arg1 == null){
throw (new Error("You can only have one ModelLocator"));
};
}
public static function getInstance():ScorePat{
if (instance == null){
instance = new ScorePat(new SingletonEnforcer());
};
return (instance);
}

public function init():Number{


var _local1:*;
return (_local1);
}
public function setLevel():void{
this.deltaScore = (this.maxScore - this.minScore);
this.deltaTime = (this.maxTime - this.minTime);
this.levelDeltaTime = (this.levelMaxTime - this.levelMinTime);
this.timeMinDiff = (this.minTime / this.levelMinTime);
this.levelMinScore = Math.floor(this.minScore);
this.timeMaxDiff = (this.maxTime / this.levelMaxTime);
this.levelMaxScore = Math.floor(this.maxScore);
trace("levelMaxScore", this.maxScore, this.maxTime, this.levelMaxTime);
this.levelDeltaScore = (this.levelMaxScore - this.levelMinScore);
}
public function getLevelScore(_arg1:Number):Number{
var _local3:*;
var _local2:* = (this.levelMaxTime - _arg1);
_local2 = ((_local2 / this.levelDeltaTime) * 100);
if (_arg1 <= this.levelMinTime){
_arg1 = this.levelMinTime;
_local3 = this.levelMaxScore;
} else {
if (_arg1 >= this.levelMaxTime){
_arg1 = this.levelMaxTime;
_local3 = this.levelMinScore;
} else {
_local3 = (this.levelMinScore + ((this.levelDeltaScore *
_local2) / 100));
};
};
_local3 = Math.ceil(_local3);
return (_local3);
}

}
}//package controller

class SingletonEnforcer {

public function SingletonEnforcer(){


}
}
package {
import view.*;

public dynamic class Screen4 extends Screen4 {

}
}//package
package {
import sound.*;
import flash.display.*;
import controller.*;
import model.*;

public class TopLevel extends MovieClip {

public static var stage:Stage;


public static var root:Object;
public static var application:Application;
public static var modelLocator:ModelLocator;
public static var stageLocator:StageLocator;
public static var soundLocator:SoundLocator;
public static var scorePat:ScorePat;

}
}//package
package {
import view.*;

public dynamic class Screen9 extends Screen9 {

}
}//package
package events {
import flash.events.*;

public class StageControlEvent extends Event {

public static const FULL_SCREEN:String = "fullScreen";

public var data:Number;

public function StageControlEvent(_arg1:String, _arg2:Number=0){


this.data = _arg2;
super(_arg1);
}
override public function clone():Event{
return (new StageControlEvent(type, this.data));
}

}
}//package events
package {
import flash.display.*;
import flash.text.*;

public dynamic class TextM extends MovieClip {

public var txt_txt:TextField;


public var hib_mc:MovieClip;
public var lob_mc:MovieClip;

}
}//package
package {
import flash.display.*;
public dynamic class maskM extends MovieClip {

}
}//package
package {
import flash.display.*;

public dynamic class Cross extends MovieClip {

}
}//package
package {
import view.*;

public dynamic class Screen7 extends Screen7 {

}
}//package
package common.utils {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;

public class Utility {

public static function cacheBuster():Number{


var _local1:Number = new Date().getTime();
return (_local1);
}
public static function removeAllChildren(_arg1:Sprite):void{
while (_arg1.numChildren > 0) {
_arg1.removeChildAt(0);
};
}
public static function loadXML(_arg1:String, _arg2:Function,
_arg3:Function, _arg4:Function, _arg5:Function):void{
var _local8:URLRequest;
var _local6:URLLoader = new URLLoader();
_local6.dataFormat = URLLoaderDataFormat.TEXT;
_local6.addEventListener(Event.COMPLETE, _arg2);
_local6.addEventListener(HTTPStatusEvent.HTTP_STATUS, _arg3);
_local6.addEventListener(IOErrorEvent.IO_ERROR, _arg4);
_local6.addEventListener(SecurityErrorEvent.SECURITY_ERROR, _arg5);
var _local7:URLVariables = new URLVariables();
if (Security.sandboxType == Security.REMOTE){
if (_arg1.indexOf("?") == -1){
_local8 = new URLRequest(((_arg1 + "?cacheBuster=") +
Utility.cacheBuster()));
} else {
_local8 = new URLRequest(((_arg1 + "&cacheBuster=") +
Utility.cacheBuster()));
};
_local8.data = _local7;
} else {
_local8 = new URLRequest(_arg1);
};
_local6.load(_local8);
}
public static function naviToURL(_arg1:String, _arg2:String){
var url:* = _arg1;
var window:* = _arg2;
var request:* = new URLRequest(url);
try {
navigateToURL(request, window);
} catch(e:Error) {
trace(("navigate: " + e.message));
};
}
public static function getTimecode(_arg1:int):String{
var _local2:Number = Math.round(_arg1);
var _local3:Number = Math.floor((_local2 / (60 * 60)));
var _local4:Number = Math.floor(((_local2 % (60 * 60)) / 60));
var _local5:Number = (_local2 % 60);
var _local6 = "";
if (_local3 < 10){
_local6 = (_local6 + "0");
_local6 = (_local6 + _local3.toString());
} else {
_local6 = (_local6 + _local3.toString());
};
_local6 = (_local6 + ":");
if (_local4 < 10){
_local6 = (_local6 + "0");
};
if (_local4 >= 1){
_local6 = (_local6 + _local4.toString());
} else {
_local6 = (_local6 + "0");
};
_local6 = (_local6 + ":");
if (_local5 < 10){
_local6 = (_local6 + "0");
_local6 = (_local6 + _local5.toString());
} else {
_local6 = (_local6 + _local5.toString());
};
return (_local6);
}
public static function trimAll(_arg1:String):String{
while (_arg1.substring(0, 1) == " ") {
_arg1 = _arg1.substring(1, _arg1.length);
};
while (_arg1.substring((_arg1.length - 1), _arg1.length) == " ") {
_arg1 = _arg1.substring(0, (_arg1.length - 1));
};
return (_arg1);
}
public static function makeUpper(_arg1:String):String{
var _local2:String = _arg1.substr(0, 1);
var _local3:String = _arg1.substring(1, _arg1.length);
_local2 = _local2.toUpperCase();
_arg1 = (_local2 + _local3);
return (_arg1);
}
public static function doubleToString(_arg1):String{
var _local2:String = _arg1.toString();
var _local3:* = _local2.length;
var _local4:* = ((_local3 >= 0)) ? (_local3 - 3) : (_local2.length -
3);
while ((((_local4 > 0)) && (!((_local2.charAt(0) == "-"))))) {
_local2 = ((_local2.substring(0, _local4) + ",") +
_local2.substring(_local4));
_local4 = (_local4 - 3);
};
return (_local2);
}
public static function shuffle(_arg1:Array):Array{
var _local4:Number;
var _local5:Number;
var _local6:*;
var _local2:Number = _arg1.length;
var _local3:Array = _arg1.slice();
_local5 = 0;
while (_local5 < _local2) {
_local6 = _local3[_local5];
_local4 = Math.floor((Math.random() * _local2));
_local3[_local5] = _local3[_local4];
_local3[_local4] = _local6;
_local5++;
};
return (_local3);
}
public static function makeRandom(_arg1:Number, _arg2:Number):Number{
var _local3:Number = Math.round(((Math.random() * ((_arg2 - _arg1) +
1)) + (_arg1 - 0.5)));
return (_local3);
}
public static function randomizeArray(_arg1:Array):Array{
var _local2:Array = new Array();
if (_arg1.length == 2){
_local2.push(_arg1[1]);
_local2.push(_arg1[0]);
return (_local2);
};
while (_arg1.length > 0) {
_local2.push(_arg1.splice(Math.floor((Math.random() *
_arg1.length)), 1));
};
return (_local2);
}
public static function isCharPunctuation(_arg1:Number):Boolean{
if ((((((_arg1 >= 97)) && ((_arg1 <= 122)))) || ((((_arg1 >= 48)) &&
((_arg1 <= 57)))))){
return (false);
};
return (true);
}
public static function emailValidate(_arg1:String):Boolean{
trimAll(_arg1);
if ((((((((((((((((((((((_arg1.length < 6)) || ((_arg1.indexOf(",") >=
0)))) || ((_arg1.indexOf(";") >= 0)))) || ((_arg1.indexOf(":") >= 0)))) ||
((_arg1.indexOf("/") >= 0)))) || ((_arg1.indexOf(" ") >= 0)))) ||
((_arg1.indexOf("@") <= 0)))) || (!((_arg1.indexOf("@") ==
_arg1.lastIndexOf("@")))))) || ((_arg1.lastIndexOf(".") < _arg1.indexOf("@"))))) ||
(((_arg1.lastIndexOf(".") + 4) < (_arg1.length - 1))))) ||
(((_arg1.lastIndexOf(".") + 1) >= (_arg1.length - 1))))){
return (false);
};
return (true);
}
public static function applyFormat(_arg1:TextField, _arg2:uint=0,
_arg3:String="Arial Black", _arg4:uint=12, _arg5:Boolean=false):void{
var _local6:TextFormat = new TextFormat();
_local6.color = _arg2;
_local6.font = _arg3;
_local6.size = _arg4;
_local6.bold = _arg5;
_arg1.setTextFormat(_local6);
}

}
}//package common.utils
package greensock {
import greensock.core.*;
import flash.utils.*;
import flash.errors.*;

public class OverwriteManager {

public static const version:Number = 6;


public static const NONE:int = 0;
public static const ALL_IMMEDIATE:int = 1;
public static const AUTO:int = 2;
public static const CONCURRENT:int = 3;
public static const ALL_ONSTART:int = 4;
public static const PREEXISTING:int = 5;

public static var mode:int;


public static var enabled:Boolean;

public static function init(_arg1:int=2):int{


if (TweenLite.version < 11.099994){
throw (new Error("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);
}
public static function manageOverwrites(_arg1:TweenLite, _arg2:Object,
_arg3:Array, _arg4:uint):Boolean{
var _local5:int;
var _local6:Boolean;
var _local7:TweenLite;
var _local13:uint;
var _local14:Number;
var _local15:Number;
var _local16:TweenCore;
var _local17:Number;
var _local18:SimpleTimeline;
if (_arg4 >= 4){
_local13 = _arg3.length;
_local5 = 0;
while (_local5 < _local13) {
_local7 = _arg3[_local5];
if (_local7 != _arg1){
if (_local7.setEnabled(false, false)){
_local6 = true;
};
} else {
if (_arg4 == 5){
break;
};
};
_local5++;
};
return (_local6);
};
var _local8:Number = _arg1.startTime;
var _local9:Array = [];
var _local10:Array = [];
var _local11:uint;
var _local12:uint;
_local5 = _arg3.length;
while (_local5--) {
_local7 = _arg3[_local5];
if ((((_local7 == _arg1)) || (_local7.gc))){
} else {
if (_local7.timeline != _arg1.timeline){
if (!getGlobalPaused(_local7)){
var _temp1 = _local11;
_local11 = (_local11 + 1);
var _local19 = _temp1;
_local10[_local19] = _local7;
};
} else {
if ((((((_local7.startTime <= _local8)) &&
(((_local7.startTime + _local7.totalDuration) > _local8)))) && (!
(getGlobalPaused(_local7))))){
var _temp2 = _local12;
_local12 = (_local12 + 1);
_local19 = _temp2;
_local9[_local19] = _local7;
};
};
};
};
if (_local11 != 0){
_local14 = _arg1.cachedTimeScale;
_local15 = _local8;
_local18 = _arg1.timeline;
while (_local18) {
_local14 = (_local14 * _local18.cachedTimeScale);
_local15 = (_local15 + _local18.startTime);
_local18 = _local18.timeline;
};
_local8 = (_local14 * _local15);
_local5 = _local11;
while (_local5--) {
_local16 = _local10[_local5];
_local14 = _local16.cachedTimeScale;
_local15 = _local16.startTime;
_local18 = _local16.timeline;
while (_local18) {
_local14 = (_local14 * _local18.cachedTimeScale);
_local15 = (_local15 + _local18.startTime);
_local18 = _local18.timeline;
};
_local17 = (_local14 * _local15);
if ((((_local17 <= _local8)) && (((((_local17 +
(_local16.totalDuration * _local14)) > _local8)) || ((_local16.cachedDuration ==
0)))))){
var _temp3 = _local12;
_local12 = (_local12 + 1);
_local19 = _temp3;
_local9[_local19] = _local16;
};
};
};
if (_local12 == 0){
return (_local6);
};
_local5 = _local12;
if (_arg4 == 2){
while (_local5--) {
_local7 = _local9[_local5];
if (_local7.killVars(_arg2)){
_local6 = true;
};
if ((((_local7.cachedPT1 == null)) && (_local7.initted))){
_local7.setEnabled(false, false);
};
};
} else {
while (_local5--) {
if (TweenLite(_local9[_local5]).setEnabled(false, false)){
_local6 = true;
};
};
};
return (_local6);
}
public static function getGlobalPaused(_arg1:TweenCore):Boolean{
while (_arg1) {
if (_arg1.cachedPaused){
return (true);
};
_arg1 = _arg1.timeline;
};
return (false);
}

}
}//package greensock
package greensock.events {
import flash.events.*;

public class TweenEvent extends Event {

public static const VERSION:Number = 1;


public static const START:String = "init";
public static const UPDATE:String = "change";
public static const COMPLETE:String = "complete";
public static const REVERSE_COMPLETE:String = "reverseComplete";
public static const REPEAT:String = "repeat";

public function TweenEvent(_arg1:String, _arg2:Boolean=false,


_arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function clone():Event{
return (new TweenEvent(this.type, this.bubbles, this.cancelable));
}

}
}//package greensock.events
package greensock.easing {
import greensock.*;

public class FastEase {

public static function activateEase(_arg1:Function, _arg2:int,


_arg3:uint):void{
TweenLite.fastEaseLookup[_arg1] = [_arg2, _arg3];
}
public static function activate(_arg1:Array):void{
var _local3:Object;
var _local2:int = _arg1.length;
while (_local2--) {
_local3 = _arg1[_local2];
if (_local3.hasOwnProperty("power")){
activateEase(_local3.easeIn, 1, _local3.power);
activateEase(_local3.easeOut, 2, _local3.power);
activateEase(_local3.easeInOut, 3, _local3.power);
if (_local3.hasOwnProperty("easeNone")){
activateEase(_local3.easeNone, 1, 0);
};
};
};
}

}
}//package greensock.easing
package greensock.easing {

public class Bounce {

public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number,


_arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
if (_arg1 < (1 / 2.75)){
return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2));
};
if (_arg1 < (2 / 2.75)){
_arg1 = (_arg1 - (1.5 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2));
};
if (_arg1 < (2.5 / 2.75)){
_arg1 = (_arg1 - (2.25 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2));
};
_arg1 = (_arg1 - (2.625 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number,
_arg4:Number):Number{
return (((_arg3 - easeOut((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number,
_arg4:Number):Number{
if (_arg1 < (_arg4 * 0.5)){
return (((easeIn((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2));
};
return ((((easeOut(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) +
(_arg3 * 0.5)) + _arg2));
}

}
}//package greensock.easing
package greensock.easing {

public class Cubic extends FastEase {

public static const power:uint = 2;

public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number,


_arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number,
_arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number,
_arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 * 0.5));
if (_arg1 < 1){
return ((((((_arg3 * 0.5) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 * 0.5) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2));
}

}
}//package greensock.easing
package greensock.core {

public class PropTween {

public var target:Object;


public var property:String;
public var start:Number;
public var change:Number;
public var name:String;
public var priority:int;
public var isPlugin:Boolean;
public var nextNode:PropTween;
public var prevNode:PropTween;

public function PropTween(_arg1:Object, _arg2:String, _arg3:Number,


_arg4:Number, _arg5:String, _arg6:Boolean, _arg7:PropTween=null, _arg8:int=0){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
if (_arg7){
_arg7.prevNode = this;
this.nextNode = _arg7;
};
this.priority = _arg8;
}
}
}//package greensock.core
package greensock.core {
import greensock.*;

public class TweenCore {

public static const version:Number = 1;

protected static var _classInitted:Boolean;

protected var _delay:Number;


protected var _hasUpdate:Boolean;
protected var _rawPrevTime:Number = -1;
protected var _pauseTime:Number;
public var vars:Object;
public var active:Boolean;
public var gc:Boolean;
public var initted:Boolean;
public var timeline:SimpleTimeline;
public var cachedStartTime:Number;
public var cachedTime:Number;
public var cachedTotalTime:Number;
public var cachedDuration:Number;
public var cachedTotalDuration:Number;
public var cachedTimeScale:Number;
public var cachedReversed:Boolean;
public var nextNode:TweenCore;
public var prevNode:TweenCore;
public var cacheIsDirty:Boolean;
public var cachedPaused:Boolean;
public var data;

public function TweenCore(_arg1:Number=0, _arg2:Object=null){


this.vars = ((_arg2) || ({}));
this.cachedDuration = (this.cachedTotalDuration = ((_arg1) || (0)));
this._delay = ((this.vars.delay) || (0));
this.cachedTimeScale = ((this.vars.timeScale) || (1));
this.active = Boolean((((((_arg1 == 0)) && ((this._delay == 0)))) && (!
((this.vars.immediateRender == false)))));
this.cachedTotalTime = (this.cachedTime = 0);
this.data = this.vars.data;
if (!_classInitted){
if (isNaN(TweenLite.rootFrame)){
TweenLite.initClass();
_classInitted = true;
} else {
return;
};
};
var _local3:SimpleTimeline = ((this.vars.timeline is SimpleTimeline)) ?
this.vars.timeline : (this.vars.useFrames) ? TweenLite.rootFramesTimeline :
TweenLite.rootTimeline;
this.cachedStartTime = (_local3.cachedTotalTime + this._delay);
_local3.addChild(this);
if (this.vars.reversed){
this.cachedReversed = true;
};
if (this.vars.paused){
this.paused = true;
};
}
public function play():void{
this.reversed = false;
this.paused = false;
}
public function pause():void{
this.paused = true;
}
public function resume():void{
this.paused = false;
}
public function restart(_arg1:Boolean=false, _arg2:Boolean=true):void{
this.reversed = false;
this.paused = false;
this.setTotalTime((_arg1) ? -(this._delay) : 0, _arg2);
}
public function reverse(_arg1:Boolean=true):void{
this.reversed = true;
if (_arg1){
this.paused = false;
} else {
if (this.gc){
this.setEnabled(true, false);
};
};
}
public function renderTime(_arg1:Number, _arg2:Boolean=false,
_arg3:Boolean=false):void{
}
public function complete(_arg1:Boolean=false, _arg2:Boolean=false):void{
if (!_arg1){
this.renderTime(this.cachedTotalDuration, _arg2, false);
return;
};
if (this.timeline.autoRemoveChildren){
this.setEnabled(false, false);
} else {
this.active = false;
};
if (!_arg2){
if (((((this.vars.onComplete) && ((this.cachedTime ==
this.cachedDuration)))) && (!(this.cachedReversed)))){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
} else {
if (((((this.cachedReversed) && ((this.cachedTotalTime == 0))))
&& (this.vars.onReverseComplete))){
this.vars.onReverseComplete.apply(null,
this.vars.onReverseCompleteParams);
};
};
};
}
public function invalidate():void{
}
public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
if (_arg1 == this.gc){
this.gc = !(_arg1);
if (_arg1){
this.active = Boolean(((((!(this.cachedPaused)) &&
((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime <
this.cachedTotalDuration))));
if (!_arg2){
this.timeline.addChild(this);
};
} else {
this.active = false;
if (!_arg2){
this.timeline.remove(this);
};
};
};
return (false);
}
public function kill():void{
this.setEnabled(false, false);
}
protected function setDirtyCache(_arg1:Boolean=true):void{
var _local2:TweenCore = (_arg1) ? this : this.timeline;
while (_local2) {
_local2.cacheIsDirty = true;
_local2 = _local2.timeline;
};
}
protected function setTotalTime(_arg1:Number, _arg2:Boolean=false):void{
var _local3:Number;
var _local4:Number;
if (this.timeline){
_local3 = (((this._pauseTime) || ((this._pauseTime == 0)))) ?
this._pauseTime : this.timeline.cachedTotalTime;
if (this.cachedReversed){
_local4 = (this.cacheIsDirty) ? this.totalDuration :
this.cachedTotalDuration;
this.cachedStartTime = (_local3 - ((_local4 - _arg1) /
this.cachedTimeScale));
} else {
this.cachedStartTime = (_local3 - (_arg1 /
this.cachedTimeScale));
};
if (!this.timeline.cacheIsDirty){
this.setDirtyCache(false);
};
if (this.cachedTotalTime != _arg1){
this.renderTime(_arg1, _arg2, false);
};
};
}
public function get delay():Number{
return (this._delay);
}
public function set delay(_arg1:Number):void{
this.startTime = (this.startTime + (_arg1 - this._delay));
this._delay = _arg1;
}
public function get duration():Number{
return (this.cachedDuration);
}
public function set duration(_arg1:Number):void{
this.cachedDuration = (this.cachedTotalDuration = _arg1);
this.setDirtyCache(false);
}
public function get totalDuration():Number{
return (this.cachedTotalDuration);
}
public function set totalDuration(_arg1:Number):void{
this.duration = _arg1;
}
public function get currentTime():Number{
return (this.cachedTime);
}
public function set currentTime(_arg1:Number):void{
this.setTotalTime(_arg1, false);
}
public function get totalTime():Number{
return (this.cachedTotalTime);
}
public function set totalTime(_arg1:Number):void{
this.setTotalTime(_arg1, false);
}
public function get startTime():Number{
return (this.cachedStartTime);
}
public function set startTime(_arg1:Number):void{
var _local2:Boolean = Boolean(((!((this.timeline == null))) && (((!
((_arg1 == this.cachedStartTime))) || (this.gc)))));
this.cachedStartTime = _arg1;
if (_local2){
this.timeline.addChild(this);
};
}
public function get reversed():Boolean{
return (this.cachedReversed);
}
public function set reversed(_arg1:Boolean):void{
if (_arg1 != this.cachedReversed){
this.cachedReversed = _arg1;
this.setTotalTime(this.cachedTotalTime, true);
};
}
public function get paused():Boolean{
return (this.cachedPaused);
}
public function set paused(_arg1:Boolean):void{
if (((!((_arg1 == this.cachedPaused))) && (this.timeline))){
if (_arg1){
this._pauseTime = this.timeline.rawTime;
} else {
this.cachedStartTime = (this.cachedStartTime +
(this.timeline.rawTime - this._pauseTime));
this._pauseTime = NaN;
this.setDirtyCache(false);
};
this.cachedPaused = _arg1;
this.active = Boolean(((((!(this.cachedPaused)) &&
((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime <
this.cachedTotalDuration))));
};
if (((!(_arg1)) && (this.gc))){
this.setEnabled(true, false);
};
}

}
}//package greensock.core
package greensock.core {

public class SimpleTimeline extends TweenCore {

protected var _firstChild:TweenCore;


protected var _lastChild:TweenCore;
public var autoRemoveChildren:Boolean;

public function SimpleTimeline(_arg1:Object=null){


super(0, _arg1);
}
public function addChild(_arg1:TweenCore):void{
if (_arg1.timeline){
_arg1.timeline.remove(_arg1, true);
};
_arg1.timeline = this;
if (_arg1.gc){
_arg1.setEnabled(true, true);
};
if (this._firstChild){
this._firstChild.prevNode = _arg1;
};
_arg1.nextNode = this._firstChild;
this._firstChild = _arg1;
_arg1.prevNode = null;
}
public function remove(_arg1:TweenCore, _arg2:Boolean=false):void{
if (((!(_arg1.gc)) && (!(_arg2)))){
_arg1.setEnabled(false, true);
};
if (_arg1.nextNode){
_arg1.nextNode.prevNode = _arg1.prevNode;
} else {
if (this._lastChild == _arg1){
this._lastChild = _arg1.prevNode;
};
};
if (_arg1.prevNode){
_arg1.prevNode.nextNode = _arg1.nextNode;
} else {
if (this._firstChild == _arg1){
this._firstChild = _arg1.nextNode;
};
};
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false,
_arg3:Boolean=false):void{
var _local5:Number;
var _local6:TweenCore;
var _local4:TweenCore = this._firstChild;
this.cachedTotalTime = _arg1;
this.cachedTime = _arg1;
while (_local4) {
_local6 = _local4.nextNode;
if (((_local4.active) || ((((_arg1 >= _local4.cachedStartTime)) &&
(!(_local4.cachedPaused)))))){
if (!_local4.cachedReversed){
_local4.renderTime(((_arg1 - _local4.cachedStartTime) *
_local4.cachedTimeScale), _arg2, false);
} else {
_local5 = (_local4.cacheIsDirty) ? _local4.totalDuration :
_local4.cachedTotalDuration;
_local4.renderTime((_local5 - ((_arg1 -
_local4.cachedStartTime) * _local4.cachedTimeScale)), _arg2, false);
};
};
_local4 = _local6;
};
}
public function get rawTime():Number{
return (this.cachedTotalTime);
}

}
}//package greensock.core
package greensock.plugins {
import flash.display.*;
import greensock.*;
import flash.media.*;

public class VolumePlugin extends TweenPlugin {

public static const API:Number = 1;

protected var _target:Object;


protected var _st:SoundTransform;

public function VolumePlugin(){


this.propName = "volume";
this.overwriteProps = ["volume"];
}
override public function onInitTween(_arg1:Object, _arg2,
_arg3:TweenLite):Boolean{
if (((isNaN(_arg2)) || (!(_arg1.hasOwnProperty("soundTransform"))))){
return (false);
};
this._target = _arg1;
this._st = this._target.soundTransform;
addTween(this._st, "volume", this._st.volume, _arg2, "volume");
return (true);
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
this._target.soundTransform = this._st;
}

}
}//package greensock.plugins
package greensock.plugins {
import flash.display.*;
import greensock.*;
import flash.filters.*;

public class DropShadowFilterPlugin extends FilterPlugin {

public static const API:Number = 1;

private static var _propNames:Array = ["distance", "angle", "color",


"alpha", "blurX", "blurY", "strength", "quality", "inner", "knockout",
"hideObject"];

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),
_propNames);
return (true);
}

}
}//package greensock.plugins
package greensock.plugins {
import flash.display.*;
import greensock.*;
import flash.geom.*;

public class ColorTransformPlugin extends TintPlugin {

public static const API:Number = 1;

public function ColorTransformPlugin(){


this.propName = "colorTransform";
}
override public function onInitTween(_arg1:Object, _arg2,
_arg3:TweenLite):Boolean{
var _local5:String;
var _local6:Number;
if (!(_arg1 is DisplayObject)){
return (false);
};
var _local4:ColorTransform = _arg1.transform.colorTransform;
for (_local5 in _arg2) {
if ((((_local5 == "tint")) || ((_local5 == "color")))){
if (_arg2[_local5] != null){
_local4.color = int(_arg2[_local5]);
};
} else {
if ((((((_local5 == "tintAmount")) || ((_local5 ==
"exposure")))) || ((_local5 == "brightness")))){
} else {
_local4[_local5] = _arg2[_local5];
};
};
};
if (!isNaN(_arg2.tintAmount)){
_local6 = (_arg2.tintAmount / (1 - (((_local4.redMultiplier +
_local4.greenMultiplier) + _local4.blueMultiplier) / 3)));
_local4.redOffset = (_local4.redOffset * _local6);
_local4.greenOffset = (_local4.greenOffset * _local6);
_local4.blueOffset = (_local4.blueOffset * _local6);
_local4.redMultiplier = (_local4.greenMultiplier =
(_local4.blueMultiplier = (1 - _arg2.tintAmount)));
} else {
if (!isNaN(_arg2.exposure)){
_local4.redOffset = (_local4.greenOffset = (_local4.blueOffset
= (0xFF * (_arg2.exposure - 1))));
_local4.redMultiplier = (_local4.greenMultiplier =
(_local4.blueMultiplier = 1));
} else {
if (!isNaN(_arg2.brightness)){
_local4.redOffset = (_local4.greenOffset =
(_local4.blueOffset = Math.max(0, ((_arg2.brightness - 1) * 0xFF))));
_local4.redMultiplier = (_local4.greenMultiplier =
(_local4.blueMultiplier = (1 - Math.abs((_arg2.brightness - 1)))));
};
};
};
_ignoreAlpha = Boolean(((!((_arg3.vars.alpha == undefined))) &&
((_arg2.alphaMultiplier == undefined))));
init((_arg1 as DisplayObject), _local4);
return (true);
}

}
}//package greensock.plugins
package greensock.plugins {
import flash.display.*;
import greensock.core.*;
import greensock.*;
import flash.filters.*;

public class FilterPlugin extends TweenPlugin {

public static const VERSION:Number = 2.03;


public static const API:Number = 1;
protected var _target:Object;
protected var _type:Class;
protected var _filter:BitmapFilter;
protected var _index:int;
protected var _remove:Boolean;

protected function initFilter(_arg1:Object, _arg2:BitmapFilter,


_arg3:Array):void{
var _local5:String;
var _local6:int;
var _local7:HexColorsPlugin;
var _local4:Array = this._target.filters;
var _local8:Object = ((_arg1 is BitmapFilter)) ? {} : _arg1;
this._index = -1;
if (_local8.index != null){
this._index = _local8.index;
} else {
_local6 = _local4.length;
while (_local6--) {
if ((_local4[_local6] is this._type)){
this._index = _local6;
break;
};
};
};
if ((((((this._index == -1)) || ((_local4[this._index] == null)))) ||
((_local8.addFilter == true)))){
this._index = ((_local8.index)!=null) ? _local8.index :
_local4.length;
_local4[this._index] = _arg2;
this._target.filters = _local4;
};
this._filter = _local4[this._index];
if (_local8.remove == true){
this._remove = true;
this.onComplete = this.onCompleteTween;
};
_local6 = _arg3.length;
while (_local6--) {
_local5 = _arg3[_local6];
if ((((_local5 in _arg1)) && (!((this._filter[_local5] ==
_arg1[_local5]))))){
if ((((((_local5 == "color")) || ((_local5 ==
"highlightColor")))) || ((_local5 == "shadowColor")))){
_local7 = new HexColorsPlugin();
_local7.initColor(this._filter, _local5,
this._filter[_local5], _arg1[_local5]);
_tweens[_tweens.length] = new PropTween(_local7,
"changeFactor", 0, 1, _local5, false);
} else {
if ((((((((_local5 == "quality")) || ((_local5 ==
"inner")))) || ((_local5 == "knockout")))) || ((_local5 == "hideObject")))){
this._filter[_local5] = _arg1[_local5];
} else {
addTween(this._filter, _local5, this._filter[_local5],
_arg1[_local5], _local5);
};
};
};
};
}
public function onCompleteTween():void{
var _local1:Array;
var _local2:int;
if (this._remove){
_local1 = this._target.filters;
if (!(_local1[this._index] is this._type)){
_local2 = _local1.length;
while (_local2--) {
if ((_local1[_local2] is this._type)){
_local1.splice(_local2, 1);
break;
};
};
} else {
_local1.splice(this._index, 1);
};
this._target.filters = _local1;
};
}
override public function set changeFactor(_arg1:Number):void{
var _local3:PropTween;
var _local2:int = _tweens.length;
var _local4:Array = this._target.filters;
while (_local2--) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change
* _arg1));
};
if (!(_local4[this._index] is this._type)){
_local2 = (this._index = _local4.length);
while (_local2--) {
if ((_local4[_local2] is this._type)){
this._index = _local2;
break;
};
};
};
_local4[this._index] = this._filter;
this._target.filters = _local4;
}

}
}//package greensock.plugins
package greensock.plugins {
import flash.display.*;
import greensock.*;
import flash.filters.*;

public class GlowFilterPlugin extends FilterPlugin {

public static const API:Number = 1;

private static var _propNames:Array = ["color", "alpha", "blurX", "blurY",


"strength", "quality", "inner", "knockout"];

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), _propNames);
return (true);
}

}
}//package greensock.plugins
package greensock.plugins {
import greensock.core.*;
import greensock.*;

public class TweenPlugin {

public static const VERSION:Number = 1.31;


public static const API:Number = 1;

public var propName:String;


public var overwriteProps:Array;
public var round:Boolean;
public var priority:int = 0;
public var activeDisable:Boolean;
public var onComplete:Function;
public var onEnable:Function;
public var onDisable:Function;
protected var _tweens:Array;
protected var _changeFactor:Number = 0;

public function TweenPlugin(){


this._tweens = [];
super();
}
private static function onTweenEvent(_arg1:String,
_arg2:TweenLite):Boolean{
var _local4:Boolean;
var _local5:Array;
var _local6:int;
var _local3:PropTween = _arg2.cachedPT1;
if (_arg1 == "onInit"){
_local5 = [];
while (_local3) {
_local5[_local5.length] = _local3;
_local3 = _local3.nextNode;
};
_local5.sortOn("priority", (Array.NUMERIC | Array.DESCENDING));
_local6 = _local5.length;
while (_local6--) {
PropTween(_local5[_local6]).nextNode = _local5[(_local6 + 1)];
PropTween(_local5[_local6]).prevNode = _local5[(_local6 - 1)];
};
_arg2.cachedPT1 = _local5[0];
} else {
while (_local3) {
if (((_local3.isPlugin) && (_local3.target[_arg1]))){
if (_local3.target.activeDisable){
_local4 = true;
};
var _local7 = _local3.target;
_local7[_arg1]();
};
_local3 = _local3.nextNode;
};
};
return (_local4);
}
public static function activate(_arg1:Array):Boolean{
var _local3:Object;
TweenLite.onPluginEvent = TweenPlugin.onTweenEvent;
var _local2:int = _arg1.length;
while (_local2--) {
if (_arg1[_local2].hasOwnProperty("API")){
_local3 = new ((_arg1[_local2] as Class));
TweenLite.plugins[_local3.propName] = _arg1[_local2];
};
};
return (true);
}

public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{


this.addTween(_arg1, this.propName, _arg1[this.propName], _arg2,
this.propName);
return (true);
}
protected function addTween(_arg1:Object, _arg2:String, _arg3:Number,
_arg4, _arg5:String=null):void{
var _local6:Number;
if (_arg4 != null){
_local6 = ((typeof(_arg4))=="number") ? (Number(_arg4) - _arg3) :
Number(_arg4);
if (_local6 != 0){
this._tweens[this._tweens.length] = new PropTween(_arg1, _arg2,
_arg3, _local6, ((_arg5) || (_arg2)), false);
};
};
}
protected function updateTweens(_arg1:Number):void{
var _local3:PropTween;
var _local4:Number;
var _local2:int = this._tweens.length;
if (this.round){
while (_local2--) {
_local3 = this._tweens[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local3.target[_local3.property] = ((_local4)>0) ? int((_local4
+ 0.5)) : int((_local4 - 0.5));
};
} else {
while (_local2--) {
_local3 = this._tweens[_local2];
_local3.target[_local3.property] = (_local3.start +
(_local3.change * _arg1));
};
};
}
public function set changeFactor(_arg1:Number):void{
this.updateTweens(_arg1);
this._changeFactor = _arg1;
}
public function get changeFactor():Number{
return (this._changeFactor);
}
public function killProps(_arg1:Object):void{
var _local2:int = this.overwriteProps.length;
while (_local2--) {
if ((this.overwriteProps[_local2] in _arg1)){
this.overwriteProps.splice(_local2, 1);
};
};
_local2 = this._tweens.length;
while (_local2--) {
if ((PropTween(this._tweens[_local2]).name in _arg1)){
this._tweens.splice(_local2, 1);
};
};
}

}
}//package greensock.plugins
package greensock.plugins {
import flash.display.*;
import greensock.*;

public class EndArrayPlugin extends TweenPlugin {

public static const API:Number = 1;

protected var _a:Array;


protected var _info:Array;

public function EndArrayPlugin(){


this._info = [];
super();
this.propName = "endArray";
this.overwriteProps = ["endArray"];
}
override public function onInitTween(_arg1:Object, _arg2,
_arg3:TweenLite):Boolean{
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (false);
};
this.init((_arg1 as Array), _arg2);
return (true);
}
public function init(_arg1:Array, _arg2:Array):void{
this._a = _arg1;
var _local3:int = _arg2.length;
while (_local3--) {
if (((!((_arg1[_local3] == _arg2[_local3]))) && (!((_arg1[_local3]
== null))))){
this._info[this._info.length] = new ArrayTweenInfo(_local3,
this._a[_local3], (_arg2[_local3] - this._a[_local3]));
};
};
}
override public function set changeFactor(_arg1:Number):void{
var _local3:ArrayTweenInfo;
var _local4:Number;
var _local2:int = this._info.length;
if (this.round){
while (_local2--) {
_local3 = this._info[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
this._a[_local3.index] = ((_local4)>0) ? int((_local4 + 0.5)) :
int((_local4 - 0.5));
};
} else {
while (_local2--) {
_local3 = this._info[_local2];
this._a[_local3.index] = (_local3.start + (_local3.change *
_arg1));
};
};
}

}
}//package greensock.plugins

class ArrayTweenInfo {

public var index:uint;


public var start:Number;
public var change:Number;

public function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){


this.index = _arg1;
this.start = _arg2;
this.change = _arg3;
}
}
package greensock.plugins {
import greensock.*;

public class BezierThroughPlugin extends BezierPlugin {

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 greensock.plugins
package greensock.plugins {
import greensock.core.*;
import greensock.*;

public class BezierPlugin extends TweenPlugin {

public static const API:Number = 1;


protected static const _RAD2DEG:Number = 57.2957795130823;

protected var _target:Object;


protected var _orientData:Array;
protected var _orient:Boolean;
protected var _future:Object;
protected var _beziers:Object;

public function BezierPlugin(){


this._future = {};
super();
this.propName = "bezier";
this.overwriteProps = [];
}
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 = {};
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);
}

override public function onInitTween(_arg1:Object, _arg2,


_arg3:TweenLite):Boolean{
if (!(_arg2 is Array)){
return (false);
};
this.init(_arg3, (_arg2 as Array), false);
return (true);
}
protected function init(_arg1:TweenLite, _arg2:Array, _arg3:Boolean):void{
var _local6:int;
var _local7:String;
var _local8:Object;
this._target = _arg1.target;
var _local4:Object = ((_arg1.vars.isTV)==true) ? _arg1.vars.exposedVars
: _arg1.vars;
if (_local4.orientToBezier == true){
this._orientData = [["x", "y", "rotation", 0, 0.01]];
this._orient = true;
} else {
if ((_local4.orientToBezier is Array)){
this._orientData = _local4.orientToBezier;
this._orient = true;
};
};
var _local5:Object = {};
_local6 = 0;
while (_local6 < _arg2.length) {
for (_local7 in _arg2[_local6]) {
if (_local5[_local7] == undefined){
_local5[_local7] = [_arg1.target[_local7]];
};
if (typeof(_arg2[_local6][_local7]) == "number"){
_local5[_local7].push(_arg2[_local6][_local7]);
} else {
_local5[_local7].push((_arg1.target[_local7] +
Number(_arg2[_local6][_local7])));
};
};
_local6++;
};
for (_local7 in _local5) {
this.overwriteProps[this.overwriteProps.length] = _local7;
if (_local4[_local7] != undefined){
if (typeof(_local4[_local7]) == "number"){
_local5[_local7].push(_local4[_local7]);
} else {
_local5[_local7].push((_arg1.target[_local7] +
Number(_local4[_local7])));
};
_local8 = {};
_local8[_local7] = true;
_arg1.killVars(_local8, false);
delete _local4[_local7];
};
};
this._beziers = parseBeziers(_local5, _arg3);
}
override public function killProps(_arg1:Object):void{
var _local2:String;
for (_local2 in this._beziers) {
if ((_local2 in _arg1)){
delete this._beziers[_local2];
};
};
super.killProps(_arg1);
}
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:Object;
var _local9:Number;
var _local10:Number;
var _local11:Array;
var _local12:Number;
var _local13:Object;
var _local14:Boolean;
if (_arg1 == 1){
for (_local3 in this._beziers) {
_local2 = (this._beziers[_local3].length - 1);
this._target[_local3] = this._beziers[_local3][_local2][2];
};
} else {
for (_local3 in this._beziers) {
_local6 = this._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 = this._beziers[_local3][_local2];
if (this.round){
_local7 = (_local4[0] + (_local5 * (((2 * (1 - _local5)) *
(_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0])))));
this._target[_local3] = ((_local7)>0) ? int((_local7 +
0.5)) : int((_local7 - 0.5));
} else {
this._target[_local3] = (_local4[0] + (_local5 * (((2 * (1
- _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] -
_local4[0])))));
};
};
};
if (this._orient){
_local2 = this._orientData.length;
_local8 = {};
while (_local2--) {
_local11 = this._orientData[_local2];
_local8[_local11[0]] = this._target[_local11[0]];
_local8[_local11[1]] = this._target[_local11[1]];
};
_local13 = this._target;
_local14 = this.round;
this._target = this._future;
this.round = false;
this._orient = false;
_local2 = this._orientData.length;
while (_local2--) {
_local11 = this._orientData[_local2];
this.changeFactor = (_arg1 + ((_local11[4]) || (0.01)));
_local12 = ((_local11[3]) || (0));
_local9 = (this._future[_local11[0]] - _local8[_local11[0]]);
_local10 = (this._future[_local11[1]] - _local8[_local11[1]]);
_local13[_local11[2]] = ((Math.atan2(_local10, _local9) *
_RAD2DEG) + _local12);
};
this._target = _local13;
this.round = _local14;
this._orient = true;
};
}

}
}//package greensock.plugins
package greensock.plugins {

public class RemoveTintPlugin extends TintPlugin {

public static const API:Number = 1;

public function RemoveTintPlugin(){


this.propName = "removeTint";
}
}
}//package greensock.plugins
package greensock.plugins {
import flash.display.*;
import greensock.*;
public class HexColorsPlugin extends TweenPlugin {

public static const API:Number = 1;

protected var _colors:Array;

public function HexColorsPlugin(){


this.propName = "hexColors";
this.overwriteProps = [];
this._colors = [];
}
override public function onInitTween(_arg1:Object, _arg2,
_arg3:TweenLite):Boolean{
var _local4:String;
for (_local4 in _arg2) {
this.initColor(_arg1, _local4, uint(_arg1[_local4]),
uint(_arg2[_local4]));
};
return (true);
}
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);
this._colors[this._colors.length] = [_arg1, _arg2, _local5, ((_arg4
>> 16) - _local5), _local6, (((_arg4 >> 8) & 0xFF) - _local6), _local7, ((_arg4 &
0xFF) - _local7)];
this.overwriteProps[this.overwriteProps.length] = _arg2;
};
}
override public function killProps(_arg1:Object):void{
var _local2:int = (this._colors.length - 1);
while (_local2 > -1) {
if (_arg1[this._colors[_local2][1]] != undefined){
this._colors.splice(_local2, 1);
};
_local2--;
};
super.killProps(_arg1);
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:Array;
_local2 = (this._colors.length - 1);
while (_local2 > -1) {
_local3 = this._colors[_local2];
_local3[0][_local3[1]] = ((((_local3[2] + (_arg1 * _local3[3])) <<
16) | ((_local3[4] + (_arg1 * _local3[5])) << 8)) | (_local3[6] + (_arg1 *
_local3[7])));
_local2--;
};
}
}
}//package greensock.plugins
package greensock.plugins {
import flash.display.*;
import greensock.*;

public class ShortRotationPlugin extends TweenPlugin {

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) {
this.initRotation(_arg1, _local4, _arg1[_local4], _arg2[_local4]);
};
return (true);
}
public function initRotation(_arg1:Object, _arg2:String, _arg3:Number,
_arg4:Number):void{
var _local5:Number = ((_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 greensock.plugins
package greensock.plugins {
import flash.display.*;
import greensock.core.*;
import greensock.*;
import flash.geom.*;

public class TintPlugin extends TweenPlugin {

public static const API:Number = 1;

protected static var _props:Array = ["redMultiplier", "greenMultiplier",


"blueMultiplier", "alphaMultiplier", "redOffset", "greenOffset", "blueOffset",
"alphaOffset"];

protected var _transform:Transform;


protected var _ct:ColorTransform;
protected var _ignoreAlpha:Boolean;
public function TintPlugin(){
this.propName = "tint";
this.overwriteProps = ["tint"];
}
override public function onInitTween(_arg1:Object, _arg2,
_arg3:TweenLite):Boolean{
if (!(_arg1 is DisplayObject)){
return (false);
};
var _local4:ColorTransform = new ColorTransform();
if (((!((_arg2 == null))) && (!((_arg3.vars.removeTint == true))))){
_local4.color = uint(_arg2);
};
this._ignoreAlpha = true;
this.init((_arg1 as DisplayObject), _local4);
return (true);
}
public function init(_arg1:DisplayObject, _arg2:ColorTransform):void{
var _local4:String;
this._transform = _arg1.transform;
this._ct = this._transform.colorTransform;
var _local3:int = _props.length;
while (_local3--) {
_local4 = _props[_local3];
if (this._ct[_local4] != _arg2[_local4]){
_tweens[_tweens.length] = new PropTween(this._ct, _local4,
this._ct[_local4], (_arg2[_local4] - this._ct[_local4]), "tint", false);
};
};
}
override public function set changeFactor(_arg1:Number):void{
var _local2:ColorTransform;
updateTweens(_arg1);
if (this._ignoreAlpha){
_local2 = this._transform.colorTransform;
this._ct.alphaMultiplier = _local2.alphaMultiplier;
this._ct.alphaOffset = _local2.alphaOffset;
};
this._transform.colorTransform = this._ct;
}

}
}//package greensock.plugins
package greensock.plugins {
import flash.display.*;
import greensock.*;

public class FramePlugin extends TweenPlugin {

public static const API:Number = 1;

public var frame:int;


protected var _target:MovieClip;

public function FramePlugin(){


this.propName = "frame";
this.overwriteProps = ["frame", "frameLabel"];
this.round = true;
}
override public function onInitTween(_arg1:Object, _arg2,
_arg3:TweenLite):Boolean{
if (((!((_arg1 is MovieClip))) || (isNaN(_arg2)))){
return (false);
};
this._target = (_arg1 as MovieClip);
this.frame = this._target.currentFrame;
addTween(this, "frame", this.frame, _arg2, "frame");
return (true);
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
this._target.gotoAndStop(this.frame);
}

}
}//package greensock.plugins
package greensock.plugins {
import flash.display.*;
import greensock.*;
import flash.filters.*;

public class BlurFilterPlugin extends FilterPlugin {

public static const API:Number = 1;

private static var _propNames:Array = ["blurX", "blurY", "quality"];

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))),
_propNames);
return (true);
}

}
}//package greensock.plugins
package greensock.plugins {
import flash.display.*;
import greensock.*;

public class VisiblePlugin extends TweenPlugin {

public static const API:Number = 1;

protected var _target:Object;


protected var _tween:TweenLite;
protected var _visible:Boolean;
protected var _initVal:Boolean;

public function VisiblePlugin(){


this.propName = "visible";
this.overwriteProps = ["visible"];
}
override public function onInitTween(_arg1:Object, _arg2,
_arg3:TweenLite):Boolean{
this._target = _arg1;
this._tween = _arg3;
this._initVal = this._target.visible;
this._visible = Boolean(_arg2);
return (true);
}
override public function set changeFactor(_arg1:Number):void{
if ((((_arg1 == 1)) && ((this._tween.cachedDuration ==
this._tween.cachedTime)))){
this._target.visible = this._visible;
} else {
this._target.visible = this._initVal;
};
}

}
}//package greensock.plugins
package greensock.plugins {
import flash.display.*;
import greensock.*;
import flash.filters.*;

public class BevelFilterPlugin extends FilterPlugin {

public static const API:Number = 1;

private static var _propNames:Array = ["distance", "angle",


"highlightColor", "highlightAlpha", "shadowColor", "shadowAlpha", "blurX", "blurY",
"strength", "quality"];

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))), _propNames);
return (true);
}

}
}//package greensock.plugins
package greensock.plugins {
import flash.display.*;
import greensock.*;

public class FrameLabelPlugin extends FramePlugin {

public static const API:Number = 1;

public function FrameLabelPlugin(){


this.propName = "frameLabel";
}
override public function onInitTween(_arg1:Object, _arg2,
_arg3:TweenLite):Boolean{
if ((!(_arg3.target) is MovieClip)){
return (false);
};
_target = (_arg1 as MovieClip);
this.frame = _target.currentFrame;
var _local4:Array = _target.currentLabels;
var _local5:String = _arg2;
var _local6:int = _target.currentFrame;
var _local7:int = _local4.length;
while (_local7--) {
if (_local4[_local7].name == _local5){
_local6 = _local4[_local7].frame;
break;
};
};
if (this.frame != _local6){
addTween(this, "frame", this.frame, _local6, "frame");
};
return (true);
}

}
}//package greensock.plugins
package greensock.plugins {
import flash.display.*;
import greensock.*;
import flash.filters.*;

public class ColorMatrixFilterPlugin extends FilterPlugin {

public static const API:Number = 1;

private static var _propNames:Array = [];


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 _lumR:Number = 0.212671;
protected static var _lumG:Number = 0.71516;
protected static var _lumB:Number = 0.072169;

protected var _matrix:Array;


protected var _matrixTween:EndArrayPlugin;

public function ColorMatrixFilterPlugin(){


this.propName = "colorMatrixFilter";
this.overwriteProps = ["colorMatrixFilter"];
}
public static function colorize(_arg1:Array, _arg2:Number,
_arg3:Number=1):Array{
if (isNaN(_arg2)){
return (_arg1);
};
if (isNaN(_arg3)){
_arg3 = 1;
};
var _local4:Number = (((_arg2 >> 16) & 0xFF) / 0xFF);
var _local5:Number = (((_arg2 >> 8) & 0xFF) / 0xFF);
var _local6:Number = ((_arg2 & 0xFF) / 0xFF);
var _local7:Number = (1 - _arg3);
var _local8:Array = [(_local7 + ((_arg3 * _local4) * _lumR)), ((_arg3 *
_local4) * _lumG), ((_arg3 * _local4) * _lumB), 0, 0, ((_arg3 * _local5) * _lumR),
(_local7 + ((_arg3 * _local5) * _lumG)), ((_arg3 * _local5) * _lumB), 0, 0, ((_arg3
* _local6) * _lumR), ((_arg3 * _local6) * _lumG), (_local7 + ((_arg3 * _local6) *
_lumB)), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local8, _arg1));
}
public static function setThreshold(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
var _local3:Array = [(_lumR * 0x0100), (_lumG * 0x0100), (_lumB *
0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100),
0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 *
_arg2), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
public static function setHue(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 * (Math.PI / 180));
var _local3:Number = Math.cos(_arg2);
var _local4:Number = Math.sin(_arg2);
var _local5:Array = [((_lumR + (_local3 * (1 - _lumR))) + (_local4 * -
(_lumR))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * -(_lumG))), ((_lumB +
(_local3 * -(_lumB))) + (_local4 * (1 - _lumB))), 0, 0, ((_lumR + (_local3 * -
(_lumR))) + (_local4 * 0.143)), ((_lumG + (_local3 * (1 - _lumG))) + (_local4 *
0.14)), ((_lumB + (_local3 * -(_lumB))) + (_local4 * -0.283)), 0, 0, ((_lumR +
(_local3 * -(_lumR))) + (_local4 * -((1 - _lumR)))), ((_lumG + (_local3 * -
(_lumG))) + (_local4 * _lumG)), ((_lumB + (_local3 * (1 - _lumB))) + (_local4 *
_lumB)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return (applyMatrix(_local5, _arg1));
}
public static function setBrightness(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = ((_arg2 * 100) - 100);
return (applyMatrix([1, 0, 0, 0, _arg2, 0, 1, 0, 0, _arg2, 0, 0, 1, 0,
_arg2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], _arg1));
}
public static function setSaturation(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
var _local3:Number = (1 - _arg2);
var _local4:Number = (_local3 * _lumR);
var _local5:Number = (_local3 * _lumG);
var _local6:Number = (_local3 * _lumB);
var _local7:Array = [(_local4 + _arg2), _local5, _local6, 0, 0,
_local4, (_local5 + _arg2), _local6, 0, 0, _local4, _local5, (_local6 + _arg2), 0,
0, 0, 0, 0, 1, 0];
return (applyMatrix(_local7, _arg1));
}
public static function setContrast(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 + 0.01);
var _local3:Array = [_arg2, 0, 0, 0, (128 * (1 - _arg2)), 0, _arg2, 0,
0, (128 * (1 - _arg2)), 0, 0, _arg2, 0, (128 * (1 - _arg2)), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
public static function applyMatrix(_arg1:Array, _arg2:Array):Array{
var _local6:int;
var _local7:int;
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (_arg2);
};
var _local3:Array = [];
var _local4:int;
var _local5:int;
_local6 = 0;
while (_local6 < 4) {
_local7 = 0;
while (_local7 < 5) {
if (_local7 == 4){
_local5 = _arg1[(_local4 + 4)];
} else {
_local5 = 0;
};
_local3[(_local4 + _local7)] = (((((_arg1[_local4] *
_arg2[_local7]) + (_arg1[(_local4 + 1)] * _arg2[(_local7 + 5)])) + (_arg1[(_local4
+ 2)] * _arg2[(_local7 + 10)])) + (_arg1[(_local4 + 3)] * _arg2[(_local7 + 15)])) +
_local5);
_local7++;
};
_local4 = (_local4 + 5);
_local6++;
};
return (_local3);
}

override public function onInitTween(_arg1:Object, _arg2,


_arg3:TweenLite):Boolean{
_target = _arg1;
_type = ColorMatrixFilter;
var _local4:Object = _arg2;
initFilter({
remove:_arg2.remove,
index:_arg2.index,
addFilter:_arg2.addFilter
}, new ColorMatrixFilter(_idMatrix.slice()), _propNames);
this._matrix = ColorMatrixFilter(_filter).matrix;
var _local5:Array = [];
if (((!((_local4.matrix == null))) && ((_local4.matrix is Array)))){
_local5 = _local4.matrix;
} else {
if (_local4.relative == true){
_local5 = this._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);
};
};
this._matrixTween = new EndArrayPlugin();
this._matrixTween.init(this._matrix, _local5);
return (true);
}
override public function set changeFactor(_arg1:Number):void{
this._matrixTween.changeFactor = _arg1;
ColorMatrixFilter(_filter).matrix = this._matrix;
super.changeFactor = _arg1;
}

}
}//package greensock.plugins
package greensock.plugins {
import flash.display.*;
import greensock.*;

public class RoundPropsPlugin extends TweenPlugin {

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 greensock.plugins
package greensock.plugins {
import flash.display.*;
import greensock.*;

public class AutoAlphaPlugin extends TweenPlugin {

public static const API:Number = 1;

protected var _target:Object;


protected var _ignoreVisible:Boolean;

public function AutoAlphaPlugin(){


this.propName = "autoAlpha";
this.overwriteProps = ["alpha", "visible"];
}
override public function onInitTween(_arg1:Object, _arg2,
_arg3:TweenLite):Boolean{
this._target = _arg1;
addTween(_arg1, "alpha", _arg1.alpha, _arg2, "alpha");
return (true);
}
override public function killProps(_arg1:Object):void{
super.killProps(_arg1);
this._ignoreVisible = Boolean(("visible" in _arg1));
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
if (!this._ignoreVisible){
this._target.visible = Boolean(!((this._target.alpha == 0)));
};
}

}
}//package greensock.plugins
package greensock {
import flash.events.*;
import flash.display.*;
import greensock.core.*;
import greensock.plugins.*;
import greensock.events.*;
import flash.utils.*;

public class TweenMax extends TweenLite implements IEventDispatcher {

public static const version:Number = 11.104;

private static var _overwriteMode:int = (OverwriteManager.enabled) ?


OverwriteManager.mode : OverwriteManager.init(2);
;
public static var killTweensOf:Function = TweenLite.killTweensOf;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;

protected var _dispatcher:EventDispatcher;


protected var _hasUpdateListener:Boolean;
protected var _repeat:int = 0;
protected var _repeatDelay:Number = 0;
protected var _cyclesComplete:uint = 0;
protected var _easePower:uint;
protected var _easeType:uint;
public var yoyo:Boolean;

public function TweenMax(_arg1:Object, _arg2:Number, _arg3:Object){


super(_arg1, _arg2, _arg3);
if (TweenLite.version < 11.1){
throw (new Error("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."));
};
this.yoyo = Boolean(this.vars.yoyo);
this._repeat = ((this.vars.repeat) || (0));
this._repeatDelay = ((this.vars.repeatDelay) || (0));
this.cacheIsDirty = true;
if (((((((((this.vars.onCompleteListener) ||
(this.vars.onUpdateListener))) || (this.vars.onStartListener))) ||
(this.vars.onRepeatListener))) || (this.vars.onReverseCompleteListener))){
this.initDispatcher();
if ((((_arg2 == 0)) && ((_delay == 0)))){
this._dispatcher.dispatchEvent(new
TweenEvent(TweenEvent.UPDATE));
this._dispatcher.dispatchEvent(new
TweenEvent(TweenEvent.COMPLETE));
};
};
if (((("timeScale" in this.vars)) && (!((this.target is TweenCore))))){
this.cachedTimeScale = this.vars.timeScale;
};
}
public static function to(_arg1:Object, _arg2:Number,
_arg3:Object):TweenMax{
return (new TweenMax(_arg1, _arg2, _arg3));
}
public static function from(_arg1:Object, _arg2:Number,
_arg3:Object):TweenMax{
_arg3.runBackwards = true;
if (!("immediateRender" in _arg3)){
_arg3.immediateRender = true;
};
return (new TweenMax(_arg1, _arg2, _arg3));
}
public static function fromTo(_arg1:Object, _arg2:Number, _arg3:Object,
_arg4:Object):TweenMax{
_arg4.startAt = _arg3;
if (_arg3.immediateRender){
_arg4.immediateRender = true;
};
return (new TweenMax(_arg1, _arg2, _arg4));
}
public static function allTo(_arg1:Array, _arg2:Number, _arg3:Object,
_arg4:Number=0, _arg5:Function=null, _arg6:Array=null):Array{
var i:* = 0;
var varsDup:* = null;
var p:* = null;
var onCompleteProxy:* = null;
var onCompleteParamsProxy:* = null;
var targets:* = _arg1;
var duration:* = _arg2;
var vars:* = _arg3;
var stagger:int = _arg4;
var onCompleteAll = _arg5;
var onCompleteAllParams = _arg6;
var l:* = targets.length;
var a:* = [];
var curDelay:* = ((vars.delay) || (0));
onCompleteProxy = vars.onComplete;
onCompleteParamsProxy = vars.onCompleteParams;
var lastIndex:* = ((stagger)<=0) ? 0 : (l - 1);
i = 0;
while (i < l) {
varsDup = {};
for (p in vars) {
varsDup[p] = vars[p];
};
varsDup.delay = curDelay;
if ((((i == lastIndex)) && (!((onCompleteAll == null))))){
varsDup.onComplete = function ():void{
if (onCompleteProxy != null){
onCompleteProxy.apply(null, onCompleteParamsProxy);
};
onCompleteAll.apply(null, onCompleteAllParams);
};
};
a[a.length] = new TweenMax(targets[i], duration, varsDup);
curDelay = (curDelay + stagger);
i = (i + 1);
};
return (a);
}
public static function allFrom(_arg1:Array, _arg2:Number, _arg3:Object,
_arg4:Number=0, _arg5:Function=null, _arg6:Array=null):Array{
_arg3.runBackwards = true;
if (!("immediateRender" in _arg3)){
_arg3.immediateRender = true;
};
return (allTo(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6));
}
public static function allFromTo(_arg1:Array, _arg2:Number, _arg3:Object,
_arg4:Object, _arg5:Number=0, _arg6:Function=null, _arg7:Array=null):Array{
_arg4.startAt = _arg3;
if (_arg3.immediateRender){
_arg4.immediateRender = true;
};
return (allTo(_arg1, _arg2, _arg4, _arg5, _arg6, _arg7));
}
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,
immediateRender:false,
useFrames:_arg4,
overwrite:0
}));
}
public static function getTweensOf(_arg1:Object):Array{
var _local4:int;
var _local2:Array = masterList[_arg1];
var _local3:Array = [];
if (_local2){
_local4 = _local2.length;
while (_local4--) {
if (!_local2[_local4].gc){
_local3[_local3.length] = _local2[_local4];
};
};
};
return (_local3);
}
public static function isTweening(_arg1:Object):Boolean{
var _local4:TweenLite;
var _local2:Array = getTweensOf(_arg1);
var _local3:int = _local2.length;
while (_local3--) {
_local4 = _local2[_local3];
if (((_local4.active) || ((((_local4.cachedStartTime ==
_local4.timeline.cachedTime)) && (_local4.timeline.active))))){
return (true);
};
};
return (false);
}
public static function getAllTweens():Array{
var _local4:Array;
var _local5:int;
var _local1:Dictionary = masterList;
var _local2:uint;
var _local3:Array = [];
for each (_local4 in _local1) {
_local5 = _local4.length;
while (_local5--) {
if (!TweenLite(_local4[_local5]).gc){
var _temp1 = _local2;
_local2 = (_local2 + 1);
var _local8 = _temp1;
_local3[_local8] = _local4[_local5];
};
};
};
return (_local3);
}
public static function killAll(_arg1:Boolean=false, _arg2:Boolean=true,
_arg3:Boolean=true):void{
var _local5:Boolean;
var _local4:Array = getAllTweens();
var _local6:int = _local4.length;
while (_local6--) {
_local5 = (_local4[_local6].target ==
_local4[_local6].vars.onComplete);
if ((((_local5 == _arg3)) || (!((_local5 == _arg2))))){
if (_arg1){
_local4[_local6].complete(false);
} else {
_local4[_local6].setEnabled(false, false);
};
};
};
}
public static function killChildTweensOf(_arg1:DisplayObjectContainer,
_arg2:Boolean=false):void{
var _local4:Object;
var _local5:DisplayObjectContainer;
var _local3:Array = getAllTweens();
var _local6:int = _local3.length;
while (_local6--) {
_local4 = _local3[_local6].target;
if ((_local4 is DisplayObject)){
_local5 = _local4.parent;
while (_local5) {
if (_local5 == _arg1){
if (_arg2){
_local3[_local6].complete(false);
} else {
_local3[_local6].setEnabled(false, false);
};
};
_local5 = _local5.parent;
};
};
};
}
public static function pauseAll(_arg1:Boolean=true,
_arg2:Boolean=true):void{
changePause(true, _arg1, _arg2);
}
public static function resumeAll(_arg1:Boolean=true,
_arg2:Boolean=true):void{
changePause(false, _arg1, _arg2);
}
private static function changePause(_arg1:Boolean, _arg2:Boolean=true,
_arg3:Boolean=false):void{
var _local5:Boolean;
var _local4:Array = getAllTweens();
var _local6:int = _local4.length;
while (_local6--) {
_local5 = (TweenLite(_local4[_local6]).target ==
TweenLite(_local4[_local6]).vars.onComplete);
if ((((_local5 == _arg3)) || (!((_local5 == _arg2))))){
TweenCore(_local4[_local6]).paused = _arg1;
};
};
}
public static function get globalTimeScale():Number{
return (((TweenLite.rootTimeline)==null) ? 1 :
TweenLite.rootTimeline.cachedTimeScale);
}
public static function set globalTimeScale(_arg1:Number):void{
if (_arg1 == 0){
_arg1 = 0.0001;
};
if (TweenLite.rootTimeline == null){
TweenLite.to({}, 0, {});
};
var _local2:SimpleTimeline = TweenLite.rootTimeline;
var _local3:Number = (getTimer() * 0.001);
_local2.cachedStartTime = (_local3 - (((_local3 -
_local2.cachedStartTime) * _local2.cachedTimeScale) / _arg1));
_local2 = TweenLite.rootFramesTimeline;
_local3 = TweenLite.rootFrame;
_local2.cachedStartTime = (_local3 - (((_local3 -
_local2.cachedStartTime) * _local2.cachedTimeScale) / _arg1));
TweenLite.rootFramesTimeline.cachedTimeScale =
(TweenLite.rootTimeline.cachedTimeScale = _arg1);
}

override protected function init():void{


var _local1:TweenMax;
var _local2:int;
var _local3:String;
var _local4:String;
var _local5:Array;
var _local6:Object;
var _local7:PropTween;
var _local8:int;
if (this.vars.startAt){
this.vars.startAt.overwrite = 0;
this.vars.startAt.immediateRender = true;
_local1 = new TweenMax(this.target, 0, this.vars.startAt);
};
super.init();
if ((_ease in fastEaseLookup)){
this._easeType = fastEaseLookup[_ease][0];
this._easePower = fastEaseLookup[_ease][1];
};
if (((!((this.vars.roundProps == null))) && (("roundProps" in
TweenLite.plugins)))){
_local5 = this.vars.roundProps;
_local8 = _local5.length;
while (_local8--) {
_local3 = _local5[_local8];
_local7 = this.cachedPT1;
while (_local7) {
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.cachedPT1 = this.insertPropTween(_local6,
"changeFactor", 0, 1, "_MULTIPLE_", true, this.cachedPT1);
} else {
_local6.add(_local7.target, _local3,
_local7.start, _local7.change);
};
this.removePropTween(_local7);
};
} else {
if (((((_local7.isPlugin) && ((_local7.name ==
"_MULTIPLE_")))) && (!(_local7.target.round)))){
_local4 = ((" " +
_local7.target.overwriteProps.join(" ")) + " ");
if (_local4.indexOf(((" " + _local3) + " ")) != -1)
{
_local7.target.round = true;
};
};
};
_local7 = _local7.nextNode;
};
};
};
}
protected function insertPropTween(_arg1:Object, _arg2:String,
_arg3:Number, _arg4, _arg5:String, _arg6:Boolean, _arg7:PropTween):PropTween{
var _local9:Array;
var _local10:int;
var _local8:PropTween = new PropTween(_arg1, _arg2, _arg3,
((typeof(_arg4))=="number") ? (_arg4 - _arg3) : Number(_arg4), _arg5, _arg6,
_arg7);
if (((_arg6) && ((_arg5 == "_MULTIPLE_")))){
_local9 = _arg1.overwriteProps;
_local10 = _local9.length;
while (_local10--) {
this.propTweenLookup[_local9[_local10]] = _local8;
};
} else {
this.propTweenLookup[_arg5] = _local8;
};
return (_local8);
}
protected function removePropTween(_arg1:PropTween):Boolean{
if (_arg1.nextNode){
_arg1.nextNode.prevNode = _arg1.prevNode;
};
if (_arg1.prevNode){
_arg1.prevNode.nextNode = _arg1.nextNode;
} else {
if (this.cachedPT1 == _arg1){
this.cachedPT1 = _arg1.nextNode;
};
};
if (((_arg1.isPlugin) && (_arg1.target.onDisable))){
_arg1.target.onDisable();
if (_arg1.target.activeDisable){
return (true);
};
};
return (false);
}
override public function invalidate():void{
this.yoyo = Boolean((this.vars.yoyo == true));
this._repeat = ((this.vars.repeat) || (0));
this._repeatDelay = ((this.vars.repeatDelay) || (0));
this._hasUpdateListener = false;
if (((((!((this.vars.onCompleteListener == null))) || (!
((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener ==
null))))){
this.initDispatcher();
};
setDirtyCache(true);
super.invalidate();
}
protected function updateTo(_arg1:Object, _arg2:Boolean=true):void{
var _local5:String;
var _local6:Object;
var _local7:Boolean;
var _local8:Object;
var _local9:int;
var _local3:PropTween = this.cachedPT1;
var _local4:Number = this.cachedTotalTime;
if (this.initted){
if (!_arg2){
this.totalTime = 0;
};
killVars(_arg1, false);
for (_local5 in _arg1) {
if ((_local5 in _reservedProps)){
} else {
if ((((_local5 in plugins)) && (new ((plugins[_local5] as
Class)).onInitTween(this.target, _arg1[_local5], this)))){
_local8 = {};
_local9 = _local6.overwriteProps.length;
while (_local9--) {
_local8[_local6.overwriteProps[_local9]] = true;
};
killVars(_local8, false);
this.cachedPT1 = this.insertPropTween(_local6,
"changeFactor", 0, 1, ((_local6.overwriteProps.length)==1) ?
_local6.overwriteProps[0] : "_MULTIPLE_", true, this.cachedPT1);
_hasPlugins = true;
if (_local6.priority){
this.cachedPT1.priority = _local6.priority;
_local7 = true;
};
} else {
this.cachedPT1 = this.insertPropTween(this.target,
_local5, this.target[_local5], _arg1[_local5], _local5, false, this.cachedPT1);
};
};
this.vars[_local5] = _arg1[_local5];
};
if (_local7){
onPluginEvent("onInit", this);
};
if (((_arg2) && (this.cachedTotalTime))){
this.adjustStartValues();
};
} else {
for (_local5 in _arg1) {
this.vars[_local5] = _arg1[_local5];
};
};
}
public function setDestination(_arg1:String, _arg2,
_arg3:Boolean=true):void{
var _local4:Object = {};
_local4[_arg1] = _arg2;
this.updateTo(_local4, _arg3);
}
protected function adjustStartValues():void{
var _local1:Number;
var _local2:PropTween;
var _local3:Number;
if (this.cachedTime != 0){
_local1 = (1 / (1 - this.ratio));
_local2 = this.cachedPT1;
while (_local2) {
if (!_local2.isPlugin){
_local3 = (_local2.start + _local2.change);
_local2.change = ((_local3 -
_local2.target[_local2.property]) * _local1);
_local2.start = (_local3 - _local2.change);
_local2 = _local2.nextNode;
};
};
};
}
public function killProperties(_arg1:Array):void{
var _local2:Object = {};
var _local3:int = _arg1.length;
while (_local3--) {
_local2[_arg1[_local3]] = true;
};
killVars(_local2);
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false,
_arg3:Boolean=false):void{
var _local6:Boolean;
var _local7:Boolean;
var _local8:Boolean;
var _local10:Number;
var _local11:uint;
var _local12:Number;
if (((!(this.active)) && (!(this.cachedPaused)))){
this.active = true;
};
var _local4:Number = (this.cacheIsDirty) ? this.totalDuration :
this.cachedTotalDuration;
var _local5:Number = this.cachedTime;
if (_arg1 >= _local4){
this.cachedTotalTime = _local4;
this.cachedTime = this.cachedDuration;
this.ratio = 1;
_local6 = true;
if (this.cachedDuration == 0){
if ((((((_arg1 == 0)) || ((_rawPrevTime < 0)))) && (!
((_rawPrevTime == _arg1))))){
_arg3 = true;
};
_rawPrevTime = _arg1;
};
} else {
if (_arg1 <= 0){
if (_arg1 < 0){
this.active = false;
if (this.cachedDuration == 0){
if (_rawPrevTime > 0){
_arg3 = true;
_local6 = true;
};
_rawPrevTime = _arg1;
};
};
this.cachedTotalTime = (this.cachedTime = (this.ratio = 0));
if (((this.cachedReversed) && (!((_local5 == 0))))){
_local6 = true;
};
} else {
this.cachedTotalTime = (this.cachedTime = _arg1);
_local8 = true;
};
};
if (this._repeat != 0){
_local10 = (this.cachedDuration + this._repeatDelay);
if (_local6){
if (((this.yoyo) && ((this._repeat % 2)))){
this.cachedTime = (this.ratio = 0);
};
} else {
if (_arg1 > 0){
if (this._cyclesComplete != (this._cyclesComplete =
int((this.cachedTotalTime / _local10)))){
_local7 = true;
};
this.cachedTime = (((this.cachedTotalTime / _local10) -
this._cyclesComplete) * _local10);
if (((this.yoyo) && ((this._cyclesComplete % 2)))){
this.cachedTime = (this.cachedDuration -
this.cachedTime);
} else {
if (this.cachedTime >= this.cachedDuration){
this.cachedTime = this.cachedDuration;
this.ratio = 1;
_local8 = false;
};
};
if (this.cachedTime <= 0){
this.cachedTime = (this.ratio = 0);
_local8 = false;
};
};
};
};
if ((((_local5 == this.cachedTime)) && (!(_arg3)))){
return;
};
if (!this.initted){
this.init();
};
if (_local8){
if (this._easeType){
_local11 = this._easePower;
_local12 = (this.cachedTime / this.cachedDuration);
if (this._easeType == 2){
_local12 = (1 - _local12);
this.ratio = _local12;
while (_local11--) {
this.ratio = (_local12 * this.ratio);
};
this.ratio = (1 - this.ratio);
} else {
if (this._easeType == 1){
this.ratio = _local12;
while (_local11--) {
this.ratio = (_local12 * this.ratio);
};
} else {
if (_local12 < 0.5){
_local12 = (_local12 * 2);
this.ratio = _local12;
while (_local11--) {
this.ratio = (_local12 * this.ratio);
};
this.ratio = (this.ratio * 0.5);
} else {
_local12 = ((1 - _local12) * 2);
this.ratio = _local12;
while (_local11--) {
this.ratio = (_local12 * this.ratio);
};
this.ratio = (1 - (0.5 * this.ratio));
};
};
};
} else {
this.ratio = _ease(this.cachedTime, 0, 1, this.cachedDuration);
};
};
if ((((((_local5 == 0)) && (!((this.cachedTotalTime == 0))))) && (!
(_arg2)))){
if (this.vars.onStart){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (this._dispatcher){
this._dispatcher.dispatchEvent(new
TweenEvent(TweenEvent.START));
};
};
var _local9:PropTween = this.cachedPT1;
while (_local9) {
_local9.target[_local9.property] = (_local9.start + (this.ratio *
_local9.change));
_local9 = _local9.nextNode;
};
if (((_hasUpdate) && (!(_arg2)))){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (((this._hasUpdateListener) && (!(_arg2)))){
this._dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE));
};
if (_local6){
if (((_hasPlugins) && (this.cachedPT1))){
onPluginEvent("onComplete", this);
};
this.complete(true, _arg2);
} else {
if (((_local7) && (!(_arg2)))){
if (this.vars.onRepeat){
this.vars.onRepeat.apply(null, this.vars.onRepeatParams);
};
if (this._dispatcher){
this._dispatcher.dispatchEvent(new
TweenEvent(TweenEvent.REPEAT));
};
};
};
}
override public function complete(_arg1:Boolean=false,
_arg2:Boolean=false):void{
super.complete(_arg1, _arg2);
if (((!(_arg2)) && (this._dispatcher))){
if ((((this.cachedTime == this.cachedDuration)) && (!
(this.cachedReversed)))){
this._dispatcher.dispatchEvent(new
TweenEvent(TweenEvent.COMPLETE));
} else {
if (((this.cachedReversed) && ((this.cachedTotalTime == 0)))){
this._dispatcher.dispatchEvent(new
TweenEvent(TweenEvent.REVERSE_COMPLETE));
};
};
};
}
protected function initDispatcher():void{
if (this._dispatcher == null){
this._dispatcher = new EventDispatcher(this);
};
if ((this.vars.onStartListener is Function)){
this._dispatcher.addEventListener(TweenEvent.START,
this.vars.onStartListener, false, 0, true);
};
if ((this.vars.onUpdateListener is Function)){
this._dispatcher.addEventListener(TweenEvent.UPDATE,
this.vars.onUpdateListener, false, 0, true);
this._hasUpdateListener = true;
};
if ((this.vars.onCompleteListener is Function)){
this._dispatcher.addEventListener(TweenEvent.COMPLETE,
this.vars.onCompleteListener, false, 0, true);
};
if ((this.vars.onRepeatListener is Function)){
this._dispatcher.addEventListener(TweenEvent.REPEAT,
this.vars.onRepeatListener, false, 0, true);
};
if ((this.vars.onReverseCompleteListener is Function)){
this._dispatcher.addEventListener(TweenEvent.REVERSE_COMPLETE,
this.vars.onReverseCompleteListener, false, 0, true);
};
}
public function addEventListener(_arg1:String, _arg2:Function,
_arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
if (this._dispatcher == null){
this.initDispatcher();
};
if (_arg1 == TweenEvent.UPDATE){
this._hasUpdateListener = true;
};
this._dispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function removeEventListener(_arg1:String, _arg2:Function,
_arg3:Boolean=false):void{
if (this._dispatcher){
this._dispatcher.removeEventListener(_arg1, _arg2, _arg3);
};
}
public function hasEventListener(_arg1:String):Boolean{
return (((this._dispatcher)==null) ? false :
this._dispatcher.hasEventListener(_arg1));
}
public function willTrigger(_arg1:String):Boolean{
return (((this._dispatcher)==null) ? false :
this._dispatcher.willTrigger(_arg1));
}
public function dispatchEvent(_arg1:Event):Boolean{
return (((this._dispatcher)==null) ? false :
this._dispatcher.dispatchEvent(_arg1));
}
public function get currentProgress():Number{
return ((this.cachedTime / this.duration));
}
public function set currentProgress(_arg1:Number):void{
if (this._cyclesComplete == 0){
setTotalTime((this.duration * _arg1), false);
} else {
setTotalTime(((this.duration * _arg1) + (this._cyclesComplete *
this.cachedDuration)), false);
};
}
public function get totalProgress():Number{
return ((this.cachedTotalTime / this.totalDuration));
}
public function set totalProgress(_arg1:Number):void{
setTotalTime((this.totalDuration * _arg1), false);
}
override public function set currentTime(_arg1:Number):void{
if (this._cyclesComplete == 0){
} else {
if (((this.yoyo) && (((this._cyclesComplete % 2) == 1)))){
_arg1 = ((this.duration - _arg1) + (this._cyclesComplete *
(this.cachedDuration + this._repeatDelay)));
} else {
_arg1 = (_arg1 + (this._cyclesComplete * (this.duration +
this._repeatDelay)));
};
};
setTotalTime(_arg1, false);
}
override public function get totalDuration():Number{
if (this.cacheIsDirty){
this.cachedTotalDuration = ((this._repeat)==-1) ? 999999999999 :
((this.cachedDuration * (this._repeat + 1)) + (this._repeatDelay * this._repeat));
this.cacheIsDirty = false;
};
return (this.cachedTotalDuration);
}
override public function set totalDuration(_arg1:Number):void{
if (this._repeat == -1){
return;
};
this.duration = ((_arg1 - (this._repeat * this._repeatDelay)) /
(this._repeat + 1));
}
public function get timeScale():Number{
return (this.cachedTimeScale);
}
public function set timeScale(_arg1:Number):void{
if (_arg1 == 0){
_arg1 = 0.0001;
};
var _local2:Number = (((_pauseTime) || ((_pauseTime == 0)))) ?
_pauseTime : this.timeline.cachedTotalTime;
this.cachedStartTime = (_local2 - (((_local2 - this.cachedStartTime) *
this.cachedTimeScale) / _arg1));
this.cachedTimeScale = _arg1;
setDirtyCache(false);
}
public function get repeat():int{
return (this._repeat);
}
public function set repeat(_arg1:int):void{
this._repeat = _arg1;
setDirtyCache(true);
}
public function get repeatDelay():Number{
return (this._repeatDelay);
}
public function set repeatDelay(_arg1:Number):void{
this._repeatDelay = _arg1;
setDirtyCache(true);
}

TweenPlugin.activate([AutoAlphaPlugin, EndArrayPlugin, FramePlugin,


RemoveTintPlugin, TintPlugin, VisiblePlugin, VolumePlugin, BevelFilterPlugin,
BezierPlugin, BezierThroughPlugin, BlurFilterPlugin, ColorMatrixFilterPlugin,
ColorTransformPlugin, DropShadowFilterPlugin, FrameLabelPlugin, GlowFilterPlugin,
HexColorsPlugin, RoundPropsPlugin, ShortRotationPlugin, {}]);
}
}//package greensock
package greensock {
import flash.events.*;
import flash.display.*;
import greensock.core.*;
import greensock.plugins.*;
import flash.utils.*;

public class TweenLite extends TweenCore {

public static const version:Number = 11.101;

public static var plugins:Object = {};


public static var fastEaseLookup:Dictionary = new Dictionary(false);
public static var onPluginEvent:Function;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public static var defaultEase:Function = TweenLite.easeOut;
public static var overwriteManager:Object;
public static var rootFrame:Number;
public static var rootTimeline:SimpleTimeline;
public static var rootFramesTimeline:SimpleTimeline;
public static var masterList:Dictionary = new Dictionary(false);
private static var _shape:Shape = new Shape();
protected static var _reservedProps:Object = {
ease:1,
delay:1,
overwrite:1,
onComplete:1,
onCompleteParams:1,
useFrames:1,
runBackwards:1,
startAt:1,
onUpdate:1,
onUpdateParams:1,
roundProps:1,
onStart:1,
onStartParams:1,
onReverseComplete:1,
onReverseCompleteParams:1,
onRepeat:1,
onRepeatParams:1,
proxiedEase:1,
easeParams:1,
yoyo:1,
onCompleteListener:1,
onUpdateListener:1,
onStartListener:1,
onReverseCompleteListener:1,
onRepeatListener:1,
orientToBezier:1,
timeScale:1,
immediateRender:1,
repeat:1,
repeatDelay:1,
timeline:1,
data:1,
paused:1
};

public var target:Object;


public var propTweenLookup:Object;
public var ratio:Number = 0;
public var cachedPT1:PropTween;
protected var _ease:Function;
protected var _overwrite:uint;
protected var _overwrittenProps:Object;
protected var _hasPlugins:Boolean;
protected var _notifyPluginsOfEnabled:Boolean;

public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){


var _local5:TweenLite;
super(_arg2, _arg3);
this.target = _arg1;
if ((((this.target is TweenCore)) && (("timeScale" in this.vars)))){
this.cachedTimeScale = 1;
};
this.propTweenLookup = {};
this._ease = defaultEase;
this._overwrite = (((!(("overwrite" in _arg3))) || (((!
(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ?
overwriteManager.mode : int(_arg3.overwrite);
var _local4:Array = masterList[_arg1];
if (!_local4){
masterList[_arg1] = [this];
} else {
if (this._overwrite == 1){
for each (_local5 in _local4) {
if (!_local5.gc){
_local5.setEnabled(false, false);
};
};
masterList[_arg1] = [this];
} else {
_local4[_local4.length] = this;
};
};
if (((this.active) || (this.vars.immediateRender))){
this.renderTime(0, false, true);
};
}
public static function initClass():void{
rootFrame = 0;
rootTimeline = new SimpleTimeline(null);
rootFramesTimeline = new SimpleTimeline(null);
rootTimeline.cachedStartTime = (getTimer() * 0.001);
rootFramesTimeline.cachedStartTime = rootFrame;
rootTimeline.autoRemoveChildren = true;
rootFramesTimeline.autoRemoveChildren = true;
_shape.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {
mode:1,
enabled:false
};
};
}
public static function to(_arg1:Object, _arg2:Number,
_arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function from(_arg1:Object, _arg2:Number,
_arg3:Object):TweenLite{
_arg3.runBackwards = true;
if (!("immediateRender" in _arg3)){
_arg3.immediateRender = true;
};
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function delayedCall(_arg1:Number, _arg2:Function,
_arg3:Array=null, _arg4:Boolean=false):TweenLite{
return (new TweenLite(_arg2, 0, {
delay:_arg1,
onComplete:_arg2,
onCompleteParams:_arg3,
immediateRender:false,
useFrames:_arg4,
overwrite:0
}));
}
protected static function updateAll(_arg1:Event=null):void{
var _local2:Dictionary;
var _local3:Object;
var _local4:Array;
var _local5:int;
rootTimeline.renderTime((((getTimer() * 0.001) -
rootTimeline.cachedStartTime) * rootTimeline.cachedTimeScale), false, false);
rootFrame++;
rootFramesTimeline.renderTime(((rootFrame -
rootFramesTimeline.cachedStartTime) * rootFramesTimeline.cachedTimeScale), false,
false);
if (!(rootFrame % 60)){
_local2 = masterList;
for (_local3 in _local2) {
_local4 = _local2[_local3];
_local5 = _local4.length;
while (_local5--) {
if (TweenLite(_local4[_local5]).gc){
_local4.splice(_local5, 1);
};
};
if (_local4.length == 0){
delete _local2[_local3];
};
};
};
}
public static function killTweensOf(_arg1:Object,
_arg2:Boolean=false):void{
var _local3:Array;
var _local4:int;
if ((_arg1 in masterList)){
_local3 = masterList[_arg1];
_local4 = _local3.length;
while (_local4--) {
if (!TweenLite(_local3[_local4]).gc){
if (_arg2){
TweenLite(_local3[_local4]).complete(false, false);
} else {
TweenLite(_local3[_local4]).setEnabled(false, false);
};
};
};
delete masterList[_arg1];
};
}
protected static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number,
_arg4:Number):Number{
_arg1 = (1 - (_arg1 / _arg4));
return ((1 - (_arg1 * _arg1)));
}

protected function init():void{


var _local1:String;
var _local2:int;
var _local3:*;
var _local4:Boolean;
var _local5:Array;
var _local6:PropTween;
if (typeof(this.vars.ease) == "function"){
this._ease = this.vars.ease;
};
if (this.vars.easeParams){
this.vars.proxiedEase = this._ease;
this._ease = this.easeProxy;
};
this.cachedPT1 = null;
this.propTweenLookup = {};
for (_local1 in this.vars) {
if ((((_local1 in _reservedProps)) && (!((((_local1 ==
"timeScale")) && ((this.target is TweenCore))))))){
} else {
if ((((_local1 in plugins)) && (new ((plugins[_local1] as
Class)).onInitTween(this.target, this.vars[_local1], this)))){
this.cachedPT1 = new PropTween(_local3, "changeFactor", 0,
1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_",
true, this.cachedPT1);
if (this.cachedPT1.name == "_MULTIPLE_"){
_local2 = _local3.overwriteProps.length;
while (_local2--) {

this.propTweenLookup[_local3.overwriteProps[_local2]] = this.cachedPT1;
};
} else {
this.propTweenLookup[this.cachedPT1.name] =
this.cachedPT1;
};
if (_local3.priority){
this.cachedPT1.priority = _local3.priority;
_local4 = true;
};
if (((_local3.onDisable) || (_local3.onEnable))){
this._notifyPluginsOfEnabled = true;
};
this._hasPlugins = true;
} else {
this.cachedPT1 = new PropTween(this.target, _local1,
Number(this.target[_local1]), ((typeof(this.vars[_local1]))=="number") ?
(Number(this.vars[_local1]) - this.target[_local1]) : Number(this.vars[_local1]),
_local1, false, this.cachedPT1);
this.propTweenLookup[_local1] = this.cachedPT1;
};
};
};
if (_local4){
onPluginEvent("onInit", this);
};
if (this.vars.runBackwards){
_local6 = this.cachedPT1;
while (_local6) {
_local6.start = (_local6.start + _local6.change);
_local6.change = -(_local6.change);
_local6 = _local6.nextNode;
};
};
_hasUpdate = Boolean(!((this.vars.onUpdate == null)));
if (this._overwrittenProps){
this.killVars(this._overwrittenProps);
if (this.cachedPT1 == null){
this.setEnabled(false, false);
};
};
if ((((((((this._overwrite > 1)) && (this.cachedPT1))) &&
(masterList[this.target]))) && ((_local5.length > 1)))){
if (overwriteManager.manageOverwrites(this, this.propTweenLookup,
_local5, this._overwrite)){
this.init();
};
};
this.initted = true;
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false,
_arg3:Boolean=false):void{
var _local4:Boolean;
var _local5:Number = this.cachedTime;
this.active = true;
if (_arg1 >= this.cachedDuration){
this.cachedTotalTime = (this.cachedTime = this.cachedDuration);
this.ratio = 1;
_local4 = true;
if (this.cachedDuration == 0){
if ((((((_arg1 == 0)) || ((_rawPrevTime < 0)))) && (!
((_rawPrevTime == _arg1))))){
_arg3 = true;
};
_rawPrevTime = _arg1;
};
} else {
if (_arg1 <= 0){
this.cachedTotalTime = (this.cachedTime = (this.ratio = 0));
if (_arg1 < 0){
this.active = false;
if (this.cachedDuration == 0){
if (_rawPrevTime > 0){
_arg3 = true;
_local4 = true;
};
_rawPrevTime = _arg1;
};
};
if (((this.cachedReversed) && (!((_local5 == 0))))){
_local4 = true;
};
} else {
this.cachedTotalTime = (this.cachedTime = _arg1);
this.ratio = this._ease(_arg1, 0, 1, this.cachedDuration);
};
};
if ((((this.cachedTime == _local5)) && (!(_arg3)))){
return;
};
if (!this.initted){
this.init();
if (((!(_local4)) && (this.cachedTime))){
this.ratio = this._ease(this.cachedTime, 0, 1,
this.cachedDuration);
};
};
if ((((((((_local5 == 0)) && (this.vars.onStart))) && (!
((this.cachedTime == 0))))) && (!(_arg2)))){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
var _local6:PropTween = this.cachedPT1;
while (_local6) {
_local6.target[_local6.property] = (_local6.start + (this.ratio *
_local6.change));
_local6 = _local6.nextNode;
};
if (((_hasUpdate) && (!(_arg2)))){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local4){
if (((this._hasPlugins) && (this.cachedPT1))){
onPluginEvent("onComplete", this);
};
complete(true, _arg2);
};
}
public function killVars(_arg1:Object, _arg2:Boolean=true):Boolean{
var _local3:String;
var _local4:PropTween;
var _local5:Boolean;
if (this._overwrittenProps == null){
this._overwrittenProps = {};
};
for (_local3 in _arg1) {
if ((_local3 in this.propTweenLookup)){
_local4 = this.propTweenLookup[_local3];
if (((_local4.isPlugin) && ((_local4.name == "_MULTIPLE_")))){
_local4.target.killProps(_arg1);
if (_local4.target.overwriteProps.length == 0){
_local4.name = "";
};
};
if (_local4.name != "_MULTIPLE_"){
if (_local4.nextNode){
_local4.nextNode.prevNode = _local4.prevNode;
};
if (_local4.prevNode){
_local4.prevNode.nextNode = _local4.nextNode;
} else {
if (this.cachedPT1 == _local4){
this.cachedPT1 = _local4.nextNode;
};
};
if (((_local4.isPlugin) && (_local4.target.onDisable))){
_local4.target.onDisable();
if (_local4.target.activeDisable){
_local5 = true;
};
};
delete this.propTweenLookup[_local3];
};
};
if (_arg2){
this._overwrittenProps[_local3] = 1;
};
};
return (_local5);
}
override public function invalidate():void{
if (((this._notifyPluginsOfEnabled) && (this.cachedPT1))){
onPluginEvent("onDisable", this);
};
this.cachedPT1 = null;
this._overwrittenProps = null;
_hasUpdate = (this.initted = (this.active =
(this._notifyPluginsOfEnabled = false)));
this.propTweenLookup = {};
}
override public function setEnabled(_arg1:Boolean,
_arg2:Boolean=false):Boolean{
var _local3:Array;
if (_arg1 == this.gc){
if (_arg1){
_local3 = TweenLite.masterList[this.target];
if (!_local3){
TweenLite.masterList[this.target] = [this];
} else {
_local3[_local3.length] = this;
};
};
super.setEnabled(_arg1, _arg2);
if (((this._notifyPluginsOfEnabled) && (this.cachedPT1))){
return (onPluginEvent((_arg1) ? "onEnable" : "onDisable",
this));
};
};
return (false);
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number,
_arg4:Number):Number{
return (this.vars.proxiedEase.apply(null,
arguments.concat(this.vars.easeParams)));
}

}
}//package greensock
package {
import view.*;

public dynamic class Screen10 extends Screen10 {

}
}//package
package {
import view.*;

public dynamic class SplashScreen extends SplashScreen {

}
}//package
package {
import flash.display.*;
import flash.text.*;

public dynamic class circleh extends MovieClip {

public var txt_txt:TextField;


public var sel_mc:MovieClip;

}
}//package
package {
import flash.display.*;
import flash.text.*;

public dynamic class TextMc extends MovieClip {

public var txt_txt:TextField;


}
}//package
package model {

public class ModelLocator {

private static var instance:ModelLocator;

public var siteURL:String;


public var isLocal:Boolean;
public var isGamePlaying:Boolean = false;
public var linkURL:String = "";
public var turn:String = "hilo";
public var hiloTurn:String = "lo";
public var cardsArr:Array;
public var turnBet:Number = 0;
public var spotNum:Number = 6;
public var numbArr:Array;
public var playAmount:Number = 1;
public var multiplier:Number = 1;
public var betValue:Number = 1;
public var spotArr:Array;
public var stArr:Array;
public var spotBetArr:Array;
public var hiloVal:Number = 60;
public var lp:Boolean = false;
public var maxRest:Number = 10000000;
public var winOption:Boolean = false;
public var music:String = "on";
public var sound:String = "on";

public function ModelLocator(_arg1:SingletonEnforcer){


this.cardsArr = [];
this.numbArr = [];
this.spotArr = [];
this.stArr = [{
spot:1,
m:[1],
s:[25]
}, {
spot:2,
m:[2, 1],
s:[30, 10]
}, {
spot:3,
m:[3, 2],
s:[220, 20]
}, {
spot:4,
m:[4, 3, 2],
s:[800, 30, 10]
}, {
spot:5,
m:[5, 4, 3],
s:[5000, 150, 10]
}, {
spot:6,
m:[6, 5, 4, 3],
s:[14000, 450, 50, 10]
}, {
spot:7,
m:[7, 6, 5, 4, 3],
s:[45000, 1000, 160, 20, 10]
}, {
spot:8,
m:[8, 7, 6, 5, 4, 0],
s:[150000, 8000, 440, 80, 10, "bonus play"]
}, {
spot:9,
m:[9, 8, 7, 6, 5, 4, 0],
s:[400000, 28000, 1500, 180, 40, 10, "bonus play"]
}, {
spot:10,
m:[10, 9, 8, 7, 6, 5, 0],
s:[1000000, 80000, 7000, 650, 160, 20, "bonus play"]
}];
this.spotBetArr = [];
super();
if (_arg1 == null){
throw (new Error("You can only have one ModelLocator"));
};
}
public static function getInstance():ModelLocator{
if (instance == null){
instance = new ModelLocator(new SingletonEnforcer());
};
return (instance);
}

}
}//package model

class SingletonEnforcer {

public function SingletonEnforcer(){


}
}
package model {
import flash.events.*;
import flash.display.*;
import events.*;
import flash.ui.*;

public class StageLocator extends EventDispatcher {

private static var instance:StageLocator;

private const NORMAL_LABEL:String = "Go Full Screen";


private const FULLSCREEN_LABEL:String = "Exit Full Screen";

private var myContextMenu:ContextMenu;


private var fullScreenItem:ContextMenuItem;
public var stageW:uint;
public var stageH:uint;
public var _displayState:String = "normal";

public function StageLocator(_arg1:SingletonEnforcer){


if (_arg1 == null){
throw (new Error("You can only have one StageLocator"));
};
}
public static function getInstance():StageLocator{
if (instance == null){
instance = new StageLocator(new SingletonEnforcer());
};
return (instance);
}

public function init():void{


this.stageW = TopLevel.stage.stageWidth;
this.stageH = TopLevel.stage.stageHeight;
if (TopLevel.stage.displayState != null){
this._displayState = TopLevel.stage.displayState;
};
TopLevel.stage.addEventListener(FullScreenEvent.FULL_SCREEN,
this.onFullScreenEvent);
}
private function handleContextMenu():void{
this.myContextMenu = new ContextMenu();
this.myContextMenu.hideBuiltInItems();
TopLevel.root.contextMenu = this.myContextMenu;
var _local1:ContextMenuBuiltInItems = this.myContextMenu.builtInItems;
_local1.print = true;
this.addCustomMenuItems();
}
private function addCustomMenuItems():void{
this.fullScreenItem = new ContextMenuItem(this.NORMAL_LABEL);
this.myContextMenu.customItems.push(this.fullScreenItem);
this.fullScreenItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,
this.menuItemSelectHandler);
}
private function menuItemSelectHandler(_arg1:ContextMenuEvent):void{
this.toggleFullScreen();
}
private function onFullScreenEvent(_arg1:FullScreenEvent):void{
this.setFullScreenItem();
dispatchEvent(new StageControlEvent(StageControlEvent.FULL_SCREEN, 0));
}
public function toggleFullScreen():void{
TopLevel.stage.displayState = ((TopLevel.stage.displayState ==
StageDisplayState.NORMAL)) ? StageDisplayState.FULL_SCREEN :
StageDisplayState.NORMAL;
this.setFullScreenItem();
}
private function setFullScreenItem():void{
this.fullScreenItem.caption = ((TopLevel.stage.displayState ==
StageDisplayState.NORMAL)) ? this.NORMAL_LABEL : this.FULLSCREEN_LABEL;
this.stageW = TopLevel.stage.stageWidth;
this.stageH = TopLevel.stage.stageHeight;
this._displayState = TopLevel.stage.displayState;
}

}
}//package model

class SingletonEnforcer {
public function SingletonEnforcer(){
}
}
package {
import view.*;

public dynamic class Screen11 extends Screen11 {

}
}//package
package {
import flash.display.*;
import flash.text.*;

public dynamic class Text1M extends MovieClip {

public var txt_txt:TextField;

}
}//package
package {
import view.*;

public dynamic class Screen3 extends Screen3 {

}
}//package
package {
import sound.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import model.*;
import common.utils.*;

public class Application extends MovieClip {

public var themes:MovieClip;


public var curScreen;
public var oppScreen;
public var popupScreen;
public var oppPopupScreen;
public var oppMaskScreen;
public var maskScreen;
public var stat:Number = 1;

public function Application(){


addEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
}
private function addedToStageHandler(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
this.setLevels();
this.init();
}
private function setLevels(){
this.configureSecurity();
this.initTopLevel();
this.initModelLocator();
this.getFlashVars();
addFrameScript(0, this.frame0);
}
private function init():void{
TopLevel.root.removePreloaderMC();
this.playBgSound();
this.navigateTo("splashScreen");
}
private function configureSecurity():void{
}
private function initTopLevel():void{
TopLevel.stage = stage;
TopLevel.root = root;
TopLevel.application = this;
TopLevel.modelLocator = ModelLocator.getInstance();
TopLevel.soundLocator = SoundLocator.getInstance();
TopLevel.stageLocator = StageLocator.getInstance();
StageLocator.getInstance().init();
}
private function initModelLocator():void{
TopLevel.modelLocator.isLocal = this.isLocal();
var _local1:String = TopLevel.root.loaderInfo.loaderURL;
TopLevel.modelLocator.siteURL = _local1.substring(0,
(_local1.lastIndexOf("/") + 1));
}
private function getFlashVars():void{
}
private function isLocal():Boolean{
var _local1:String = this.loaderInfo.loaderURL;
return ((_local1.indexOf("file") == 0));
}
private function frame0():void{
stop();
}
private function showErrorMessage():void{
TopLevel.root.removePreloaderMC();
var _local1:TextField = new TextField();
_local1.autoSize = TextFieldAutoSize.CENTER;
_local1.text = "Error, while data is being loaded, Please try again.";
_local1.selectable = false;
addChild(_local1);
_local1.x = ((TopLevel.stageLocator.stageW / 2) - (_local1.width / 2));
_local1.y = ((TopLevel.stageLocator.stageH / 2) - (_local1.height /
2));
Utility.applyFormat(_local1, 0xFFFFFF, "Arial Black", 13, true);
}
public function btnsound(_arg1:Event):void{
this.playBtnSound();
}
public function playBtnSound():void{
}
private function playBgSound():void{
TopLevel.soundLocator.loadBgSound();
if (TopLevel.modelLocator.sound == "off"){
TopLevel.soundLocator.stopBtnSound();
};
if (TopLevel.modelLocator.music == "off"){
} else {
if (TopLevel.modelLocator.music == "on"){
TopLevel.soundLocator.playBgSound();
};
};
}
public function navigateTo(_arg1:String):void{
this.gc();
switch (_arg1){
case "splashScreen":
this.splashScreen();
break;
case "gamePlayScreen":
this.gamePlayScreen();
break;
};
}
private function splashScreen():void{
this.curScreen = new SplashScreen();
this.curScreen.name = "splashScreen";
this.addCurScreen();
}
private function gamePlayScreen():void{
this.curScreen = new GamePlayScreen();
this.curScreen.name = "gamePlayScreen";
this.addCurScreen();
}
private function addCurScreen():void{
addChildAt(this.curScreen, numChildren);
}
public function showPopup(_arg1:String):void{
switch (_arg1){
case "screen2":
case "screen3":
case "screen4":
case "screen5":
case "screen6":
case "screen7":
case "screen8":
case "screen9":
case "screen10":
case "screen11":
this.showScreen(_arg1);
break;
};
}
private function showScreen(_arg1:String):void{
if (this.popupScreen != null){
this.removePopup();
};
switch (_arg1){
case "screen2":
this.popupScreen = new Screen2();
this.popupScreen.name = _arg1;
break;
case "screen3":
this.popupScreen = new Screen3();
this.popupScreen.name = _arg1;
break;
case "screen4":
this.popupScreen = new Screen4();
this.popupScreen.name = _arg1;
break;
case "screen5":
this.popupScreen = new Screen5();
this.popupScreen.name = _arg1;
break;
case "screen6":
this.popupScreen = new Screen6();
this.popupScreen.name = _arg1;
break;
case "screen7":
this.popupScreen = new Screen7();
this.popupScreen.name = _arg1;
break;
case "screen8":
this.popupScreen = new Screen8();
this.popupScreen.name = _arg1;
break;
case "screen9":
this.popupScreen = new Screen9();
this.popupScreen.name = _arg1;
break;
case "screen10":
this.popupScreen = new Screen10();
this.popupScreen.name = _arg1;
break;
case "screen11":
this.popupScreen = new Screen11();
this.popupScreen.name = _arg1;
break;
};
this.addPopupScreen();
}
private function addPopupScreen():void{
addChildAt(this.popupScreen, numChildren);
}
public function removePopup():void{
try {
if (this.popupScreen != null){
this.popupScreen.gc();
removeChild(this.popupScreen);
this.popupScreen = null;
};
} catch(error:Error) {
trace(("removePopup: " + error));
};
}
public function gc():void{
TopLevel.modelLocator.isGamePlaying = false;
try {
if (this.curScreen != null){
this.curScreen.gc();
removeChild(this.curScreen);
this.curScreen = null;
};
this.removePopup();
} catch(error:Error) {
trace(("navigateTo: " + error));
};
}
}
}//package
package {
import view.*;

public dynamic class Screen6 extends Screen6 {

}
}//package
package {
import view.*;

public dynamic class Screen2 extends Screen2 {

}
}//package
package Main_fla {
import flash.display.*;

public dynamic class Themes_5 extends MovieClip {

public function Themes_5(){


addFrameScript(0, this.frame1);
}
function frame1(){
stop();
}

}
}//package Main_fla
package {
import flash.display.*;
import flash.text.*;

public dynamic class CircleMc extends MovieClip {

public var txt_txt:TextField;

}
}//package
package view {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import fl.motion.*;
import flash.geom.*;
import flash.filters.*;

public class GamePlayScreen extends MovieClip {

public var bg_mc:MovieClip;


private var mColor:AdjustColor;
private var mMatrix:Array;
private var mFilter:Array;
private var mColorMatrix:ColorMatrixFilter;
public var targetIcon_mc:MovieClip;
private var mc:MovieClip;
public var pressed:Boolean;
public function GamePlayScreen():void{
addEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
}
private function addedToStageHandler(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
this.init();
}
public function init():void{
TopLevel.modelLocator.numbArr = [];
var _local1:Number = 1;
while (_local1 <= 80) {
TopLevel.modelLocator.numbArr.push(_local1);
_local1++;
};
TopLevel.application.showPopup("screen2");
}
public function makeRandom(_arg1:Number, _arg2:Number):Number{
var _local3:Number = Math.round(((Math.random() * ((_arg2 - _arg1) +
1)) + (_arg1 - 0.5)));
return (_local3);
}
public function makeDecimalRandom(_arg1:Number, _arg2:Number){
var _local3:Number = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
public function changeColor(_arg1:MovieClip, _arg2):void{
var _local3:ColorTransform = _arg1.transform.colorTransform;
_local3.color = _arg2;
_arg1.transform.colorTransform = _local3;
}
public function changeBrightNess(_arg1, _arg2):void{
this.mColor = new AdjustColor();
this.mColor.brightness = _arg2;
this.mColor.contrast = 0;
this.mColor.hue = 0;
this.mColor.saturation = 0;
this.mMatrix = this.mColor.CalculateFinalFlatArray();
this.mColorMatrix = new ColorMatrixFilter(this.mMatrix);
this.mFilter = [];
this.mFilter.push(this.mColorMatrix);
_arg1.filters = this.mFilter;
}
public function shuffle(_arg1:Array):Array{
var _local4:Number;
var _local5:Number;
var _local6:*;
var _local2:Number = _arg1.length;
var _local3:Array = _arg1.slice();
_local5 = 0;
while (_local5 < _local2) {
_local6 = _local3[_local5];
_local4 = Math.floor((Math.random() * _local2));
_local3[_local5] = _local3[_local4];
_local3[_local4] = _local6;
_local5++;
};
return (_local3);
}
public function gc():void{
}

}
}//package view
package view {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import greensock.*;
import greensock.easing.*;
import greensock.events.*;
import flash.utils.*;

public class Screen5 extends MovieClip {

public var back_mc:MovieClip;


public var pop_mc:MovieClip;
public var ticket_mc:MovieClip;
public var cross_mc:MovieClip;
public var next_btn:MovieClip;
public var spot_mc:MovieClip;
private var mcArr:Array;
private var animateNum:Number = 0;
private var num:Number = 0;
private var xPos:Number = 92;
private var yPos:Number = 260;
private var gap:Number = 20;

public function Screen5():void{


this.mcArr = [];
super();
addEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
}
private function addedToStageHandler(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
this.init();
}
public function init():void{
this.x = 650;
this.cross_mc.alpha = 0;
this.next_btn.alpha = 0;
this.back_mc.alpha = 0;
this.spot_mc.alpha = 0;
this.pop_mc.alpha = 0;
this.pop_mc.visible = false;
this.ticket_mc.mouseEnabled = false;
this.pop_mc.cross_btn.addEventListener(MouseEvent.CLICK, this.hideIt);
this.pop_mc.next_btn.addEventListener(MouseEvent.CLICK,
this.gameClickHandler);
this.pop_mc.next_btn.addEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.pop_mc.next_btn.addEventListener(MouseEvent.MOUSE_OUT,
this.showOut);
this.pop_mc.cross_btn.addEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.pop_mc.cross_btn.addEventListener(MouseEvent.MOUSE_OUT,
this.showOut);
TweenMax.to(this, 0.7, {
x:0,
y:0,
motionBlur:true,
ease:Cubic.easeInOut,
onComplete:this.showIt
});
}
private function hideIt(_arg1:MouseEvent):void{
TweenMax.to(this.pop_mc, 0.5, {
alpha:0,
onComplete:this.setInv
});
}
private function setInv():void{
this.pop_mc.visible = false;
this.activeBtn();
}
private function showIt():void{
this.animateNum = setInterval(this.showIta, (1 * 1000));
}
private function showIta():void{
clearInterval(this.animateNum);
TweenMax.to(this.ticket_mc, 1.5, {
scaleX:2.24,
scaleY:2.24,
x:-7.65,
y:-58.9,
onComplete:this.stayIt
});
}
private function stayIt():void{
this.animateNum = setInterval(this.addText, (1 * 1000));
}
private function addText():void{
clearInterval(this.animateNum);
TweenMax.to(this.ticket_mc, 1, {alpha:0});
this.spot_mc.alpha = 1;
this.back_mc.alpha = 1;
this.animateNum = setInterval(this.showText, 5);
}
private function showText():void{
this.num++;
var _local1:MovieClip = new TextMc();
_local1.name = ("txt" + this.num);
_local1.txt_txt.text = this.num.toString();
this.mcArr.push(_local1);
_local1.y = this.yPos;
if (this.num == 1){
_local1.x = this.xPos;
} else {
_local1.x = ((this.mcArr[(this.mcArr.length - 2)].x +
this.mcArr[(this.mcArr.length - 2)].width) + this.gap);
};
addChild(_local1);
if (this.num == 10){
clearInterval(this.animateNum);
this.cross_mc.mouseEnabled = false;
this.cross_mc.mouseChildren = false;
this.setChildIndex(this.cross_mc, (this.numChildren - 1));
this.setChildIndex(this.pop_mc, (this.numChildren - 1));
this.animateNum = setInterval(this.animateIt, 500);
};
}
private function animateIt():void{
if (this.num == 11){
clearInterval(this.animateNum);
this.activeBtn();
};
TweenMax.to(this.next_btn, 0.5, {alpha:1});
this.num++;
}
private function deactiveBtn():void{
var _local1:Number = 0;
while (_local1 < this.mcArr.length) {
this.mcArr[_local1].removeEventListener(MouseEvent.CLICK,
this.selectIt);
this.mcArr[_local1].removeEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.mcArr[_local1].removeEventListener(MouseEvent.MOUSE_OUT,
this.showOut);
_local1++;
};
this.next_btn.removeEventListener(MouseEvent.MOUSE_DOWN,
this.startGameClickHandler);
this.next_btn.removeEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.next_btn.removeEventListener(MouseEvent.MOUSE_OUT, this.showOut);
}
private function activeBtn():void{
var _local1:Number = 0;
while (_local1 < this.mcArr.length) {
this.mcArr[_local1].mouseChildren = false;
this.mcArr[_local1].addEventListener(MouseEvent.CLICK,
this.selectIt);
this.mcArr[_local1].addEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.mcArr[_local1].addEventListener(MouseEvent.MOUSE_OUT,
this.showOut);
_local1++;
};
this.next_btn.addEventListener(MouseEvent.MOUSE_DOWN,
this.startGameClickHandler);
this.next_btn.addEventListener(MouseEvent.MOUSE_OVER, this.showOver);
this.next_btn.addEventListener(MouseEvent.MOUSE_OUT, this.showOut);
}
private function selectIt(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
this.cross_mc.x = (_local2.x + 2.5);
this.cross_mc.y = (_local2.y + 1.5);
this.cross_mc.alpha = 1;
TopLevel.modelLocator.spotNum = Number(_local2.txt_txt.text);
this.pop_mc.txt_txt.text = ("SPOT " + TopLevel.modelLocator.spotNum);
}
private function showOver(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
TweenMax.to(_local2, 0.2, {glowFilter:{
color:0,
strength:1,
alpha:1,
blurX:10,
blurY:10
}});
}
private function showOut(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
TweenMax.to(_local2, 0, {glowFilter:{remove:true}});
}
private function startGameClickHandler(_arg1:MouseEvent):void{
if (TopLevel.modelLocator.spotNum < 1){
return;
};
this.pop_mc.visible = true;
TweenMax.to(this.pop_mc, 0.5, {
alpha:1,
ease:Cubic.easeInOut
});
this.deactiveBtn();
}
private function gameClickHandler(_arg1:MouseEvent):void{
this.deactiveBtn();
TweenMax.to(this, 0.5, {
x:650,
y:0,
motionBlur:true,
ease:Cubic.easeInOut,
onComplete:this.navigateIt
});
}
private function navigateIt():void{
TopLevel.application.showPopup("screen6");
}
public function gc():void{
}

}
}//package view
package view {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import greensock.*;
import greensock.easing.*;
import greensock.events.*;
import flash.utils.*;

public class Screen4 extends MovieClip {

public var proceed_btn:MovieClip;


public var disc_mc:MovieClip;
private var mcArr:Array;
private var animateNum:Number = 0;
private var num:Number = 0;

public function Screen4():void{


this.mcArr = [];
super();
addEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
}
private function addedToStageHandler(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
this.init();
}
public function init():void{
this.x = 650;
this.disc_mc.alpha = 0;
this.mcArr = [this.disc_mc, this.proceed_btn];
var _local1:Number = 0;
while (_local1 < this.mcArr.length) {
this.mcArr[_local1].alpha = 0;
_local1++;
};
TweenMax.to(this, 0.7, {
x:0,
y:0,
motionBlur:true,
ease:Cubic.easeInOut,
onComplete:this.showIt
});
}
private function showIt():void{
this.animateNum = setInterval(this.animateIt, 500);
}
private function animateIt():void{
var _local1:* = this.mcArr[this.num];
if (this.num == (this.mcArr.length - 1)){
clearInterval(this.animateNum);
this.activeBtn();
};
TweenMax.to(_local1, 0.5, {alpha:1});
this.num++;
}
private function activeBtn():void{
this.proceed_btn.addEventListener(MouseEvent.MOUSE_DOWN,
this.startGameClickHandler);
this.proceed_btn.addEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.proceed_btn.addEventListener(MouseEvent.MOUSE_OUT, this.showOut);
}
private function showOver(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
TweenMax.to(_local2, 0.2, {glowFilter:{
color:0,
strength:1,
alpha:1,
blurX:10,
blurY:10
}});
}
private function showOut(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
TweenMax.to(_local2, 0, {glowFilter:{remove:true}});
}
private function startGameClickHandler(_arg1:MouseEvent):void{
TweenMax.to(this, 0.5, {
x:650,
y:0,
motionBlur:true,
ease:Cubic.easeInOut,
onComplete:this.navigateIt
});
}
private function navigateIt():void{
TopLevel.application.showPopup("screen5");
}
public function gc():void{
}

}
}//package view
package view {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import greensock.*;
import greensock.easing.*;
import greensock.events.*;
import flash.utils.*;

public class Screen9 extends MovieClip {

public var adv_mc:MovieClip;


public var back_mc:MovieClip;
public var arrow_mc:MovieClip;
public var next_btn:MovieClip;
private var mcArr:Array;
private var animateNum:Number = 0;
private var num:Number = 0;
private var xPos:Number = 33;
private var yPos:Number = 230;
private var gap:Number = 22.5;

public function Screen9():void{


this.mcArr = [];
super();
addEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
}
private function addedToStageHandler(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
this.init();
}
public function init():void{
this.back_mc.alpha = 0;
this.adv_mc.alpha = 0;
this.next_btn.alpha = 0;
this.arrow_mc.gotoAndStop(1);
this.showIt();
}
private function showIt():void{
TweenMax.to(this.back_mc, 0.5, {
alpha:1,
onComplete:this.addText
});
}
private function addText():void{
this.mcArr = [this.adv_mc, this.next_btn];
this.animateNum = setInterval(this.animateIt, 500);
}
private function animateIt():void{
if (this.num == this.mcArr.length){
clearInterval(this.animateNum);
this.arrow_mc.gotoAndPlay(2);
this.arrow_mc.addEventListener(Event.ENTER_FRAME, this.stopIt);
this.next_btn.addEventListener(MouseEvent.MOUSE_DOWN,
this.startGameClickHandler);
this.next_btn.addEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.next_btn.addEventListener(MouseEvent.MOUSE_OUT, this.showOut);
return;
};
TweenMax.to(this.mcArr[this.num], 0.5, {alpha:1});
this.num++;
}
private function stopIt(_arg1:Event):void{
if (this.arrow_mc.currentFrame >= 15){
this.arrow_mc.stop();
this.arrow_mc.removeEventListener(Event.ENTER_FRAME, this.stopIt);
};
}
private function showOver(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
TweenMax.to(_local2, 0.2, {glowFilter:{
color:0,
strength:1,
alpha:1,
blurX:10,
blurY:10
}});
}
private function showOut(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
TweenMax.to(_local2, 0, {glowFilter:{remove:true}});
}
private function startGameClickHandler(_arg1:MouseEvent):void{
TweenMax.to(this, 0.5, {
x:650,
y:0,
motionBlur:true,
ease:Cubic.easeInOut,
onComplete:this.navigateIt
});
}
private function navigateIt():void{
TopLevel.application.showPopup("screen10");
}
public function gc():void{
this.next_btn.removeEventListener(MouseEvent.MOUSE_DOWN,
this.startGameClickHandler);
this.next_btn.removeEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.next_btn.removeEventListener(MouseEvent.MOUSE_OUT, this.showOut);
}

}
}//package view
package view {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import greensock.*;
import greensock.easing.*;
import greensock.events.*;
import flash.utils.*;

public class Screen7 extends MovieClip {

public var hl_mc:MovieClip;


public var ticket_mc:MovieClip;
public var next_btn:MovieClip;
public var hlTitle_mc:MovieClip;
private var mcArr:Array;
private var animateNum:Number = 0;
private var num:Number = 0;

public function Screen7():void{


this.mcArr = [];
super();
addEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
}
private function addedToStageHandler(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
this.init();
}
public function init():void{
this.x = 650;
this.hlTitle_mc.alpha = 0;
this.hlTitle_mc.mouseEnabled = false;
this.hl_mc.alpha = 0;
this.hl_mc.cross_mc.mouseEnabled = false;
this.hl_mc.cross_mc.mouseChildren = false;
this.hl_mc.hi_btn.addEventListener(MouseEvent.MOUSE_DOWN,
this.setTurn);
this.hl_mc.hi_btn.addEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.hl_mc.hi_btn.addEventListener(MouseEvent.MOUSE_OUT, this.showOut);
this.hl_mc.lo_btn.addEventListener(MouseEvent.MOUSE_DOWN,
this.setTurn);
this.hl_mc.lo_btn.addEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.hl_mc.lo_btn.addEventListener(MouseEvent.MOUSE_OUT, this.showOut);
TweenMax.to(this, 0.5, {
x:0,
motionBlur:true,
ease:Cubic.easeInOut,
onComplete:this.showIt
});
}
private function showIt():void{
this.animateNum = setInterval(this.showIta, (1 * 1000));
}
private function showIta():void{
clearInterval(this.animateNum);
TweenMax.to(this.ticket_mc, 1.5, {
scaleX:4.02,
scaleY:4.02,
x:24,
y:-575.75,
onComplete:this.stayIt
});
}
private function stayIt():void{
this.animateNum = setInterval(this.showOther, (1 * 1000));
}
private function showOther():void{
clearInterval(this.animateNum);
TweenMax.to(this.ticket_mc, 1, {alpha:0});
this.hl_mc.alpha = 1;
this.hlTitle_mc.alpha = 1;
this.next_btn.addEventListener(MouseEvent.MOUSE_DOWN,
this.startGameClickHandler);
this.next_btn.addEventListener(MouseEvent.MOUSE_OVER, this.showOver);
this.next_btn.addEventListener(MouseEvent.MOUSE_OUT, this.showOut);
}
private function setTurn(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
this.hl_mc.cross_mc.x = (_local2.x + 2.5);
this.hl_mc.cross_mc.y = (_local2.y + 2.5);
if (_local2.name == "hi_btn"){
TopLevel.modelLocator.hiloTurn = "hi";
} else {
TopLevel.modelLocator.hiloTurn = "lo";
};
}
private function showOver(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
TweenMax.to(_local2, 0.2, {glowFilter:{
color:0,
strength:1,
alpha:1,
blurX:10,
blurY:10
}});
}
private function showOut(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
TweenMax.to(_local2, 0, {glowFilter:{remove:true}});
}
private function startGameClickHandler(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
TweenMax.to(this, 0.5, {
x:650,
y:0,
motionBlur:true,
ease:Cubic.easeInOut,
onComplete:this.navigateIt
});
}
private function navigateIt():void{
TopLevel.application.showPopup("screen8");
}
public function gc():void{
}
}
}//package view
package view {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import greensock.*;
import greensock.easing.*;
import greensock.events.*;
import flash.utils.*;

public class Screen10 extends MovieClip {

public var keno_mc:MovieClip;


public var simulate_btn:MovieClip;
public var ticket_mc:MovieClip;
public var disc_mc:MovieClip;
private var mcArr:Array;
private var animateNum:Number = 0;
private var num:Number = 0;
private var xPos:Number = 33;
private var yPos:Number = 230;
private var gap:Number = 22.5;

public function Screen10():void{


this.mcArr = [];
super();
addEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
}
private function addedToStageHandler(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
this.init();
}
public function init():void{
this.ticket_mc.alpha = 0;
this.keno_mc.alpha = 0;
this.simulate_btn.alpha = 0;
this.disc_mc.alpha = 0;
this.disc_mc.proceed_btn.addEventListener(MouseEvent.MOUSE_DOWN,
this.gameClickHandler);
this.disc_mc.proceed_btn.addEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.disc_mc.proceed_btn.addEventListener(MouseEvent.MOUSE_OUT,
this.showOut);
this.setDate();
var _local1:* = TopLevel.modelLocator.turn;
this.ticket_mc.txt_mc.visible = false;
this.ticket_mc.hilo_mc.visible = false;
var _local2:* = TopLevel.modelLocator.multiplier;
if (_local2 == 100){
_local2 = 10;
} else {
if (_local2 == 50){
_local2 = 5;
};
};
if (_local1 == "spot"){
this.showSpot();
this.ticket_mc.tBg_mc.height = (this.ticket_mc.txt_mc.height - 5);
this.ticket_mc.tBottom_mc.bet_txt.text = (("Total: PHP " +
String(((10 * TopLevel.modelLocator.betValue) * _local2))) + ".00");
} else {
if (_local1 == "hilo"){
this.showHilo();
this.ticket_mc.tBg_mc.height = this.ticket_mc.hilo_mc.height;
this.ticket_mc.tBottom_mc.bet_txt.text = (("Total: PHP " +
String(((10 * TopLevel.modelLocator.betValue) * _local2))) + ".00");
} else {
if (_local1 == "both"){
this.showSpot();
this.showHilo();
this.ticket_mc.hilo_mc.y = ((this.ticket_mc.txt_mc.y +
this.ticket_mc.txt_mc.height) - 5);
this.ticket_mc.tBg_mc.height =
((this.ticket_mc.txt_mc.height + this.ticket_mc.hilo_mc.height) - 5);
this.ticket_mc.tBottom_mc.bet_txt.text = (("Total: PHP " +
String(((20 * TopLevel.modelLocator.betValue) * _local2))) + ".00");
};
};
};
this.ticket_mc.tBottom_mc.y = (this.ticket_mc.tBg_mc.y +
this.ticket_mc.tBg_mc.height);
this.showIt();
}
private function showHilo():void{
this.ticket_mc.hilo_mc.visible = true;
this.ticket_mc.hilo_mc.st_txt.text =
TopLevel.modelLocator.hiloTurn.toUpperCase();
var _local1:* = TopLevel.modelLocator.multiplier;
if (_local1 == 100){
_local1 = 10;
} else {
if (_local1 == 50){
_local1 = 5;
};
};
this.ticket_mc.hilo_mc.m_txt.text = ("Multiplier: " +
(TopLevel.modelLocator.betValue * _local1).toString());
}
private function showSpot():void{
this.ticket_mc.txt_mc.visible = true;
if (TopLevel.modelLocator.lp == true){
this.ticket_mc.txt_mc.lp_mc.txt_txt.text = "LP";
} else {
this.ticket_mc.txt_mc.lp_mc.txt_txt.text = "";
};
var _local1:Number = 0;
while (_local1 < 10) {
this.ticket_mc.txt_mc[(("txt" + _local1) + "_mc")].txt_txt.text =
"---";
_local1++;
};
var _local2:Number = 0;
while (_local2 < TopLevel.modelLocator.spotArr.length) {
this.ticket_mc.txt_mc[(("txt" + _local2) + "_mc")].txt_txt.text =
TopLevel.modelLocator.spotArr[_local2];
_local2++;
};
this.ticket_mc.txt_mc.g_txt.text = ("Game: " +
TopLevel.modelLocator.spotNum.toString());
var _local3:* = TopLevel.modelLocator.multiplier;
if (_local3 == 100){
_local3 = 10;
} else {
if (_local3 == 50){
_local3 = 5;
};
};
this.ticket_mc.txt_mc.m_txt.text = ("Multiplier: " +
(TopLevel.modelLocator.betValue * _local3).toString());
}
private function setDate():void{
var _local1:Date = new Date();
var _local2:Number = _local1.getDate();
var _local3:String = _local1.getFullYear().toString();
var _local4:Number = _local1.getMonth();
var _local5:Array = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul",
"Aug", "Sep", "Oct", "Nov", "Dec"];
var _local6:* = ((((((((((("Start: " + _local5[_local4]) + "-") +
_local2.toString()) + "-") + _local3.substr(2, _local3.length)) + " End: ") +
_local5[_local4]) + "-") + _local2.toString()) + "-") + _local3.substr(2,
_local3.length));
this.ticket_mc.tHeader_mc.txt_txt.text = _local6;
}
private function showIt():void{
TweenMax.to(this.ticket_mc, 0.5, {
alpha:1,
onComplete:this.addText
});
}
private function addText():void{
this.mcArr = [this.keno_mc, this.simulate_btn];
this.animateNum = setInterval(this.animateIt, 500);
}
private function animateIt():void{
if (this.num == this.mcArr.length){
clearInterval(this.animateNum);
this.simulate_btn.addEventListener(MouseEvent.MOUSE_DOWN,
this.startGameClickHandler);
this.simulate_btn.addEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.simulate_btn.addEventListener(MouseEvent.MOUSE_OUT,
this.showOut);
return;
};
TweenMax.to(this.mcArr[this.num], 0.5, {alpha:1});
this.num++;
}
private function showOver(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
TweenMax.to(_local2, 0.2, {glowFilter:{
color:0,
strength:1,
alpha:1,
blurX:10,
blurY:10
}});
}
private function showOut(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
TweenMax.to(_local2, 0, {glowFilter:{remove:true}});
}
private function startGameClickHandler(_arg1:MouseEvent):void{
this.disc_mc.visible = true;
TweenMax.to(this.disc_mc, 0.5, {
alpha:1,
ease:Cubic.easeInOut
});
}
private function gameClickHandler(_arg1:MouseEvent):void{
TweenMax.to(this, 0.5, {
x:650,
y:0,
motionBlur:true,
ease:Cubic.easeInOut,
onComplete:this.navigateIt
});
}
private function navigateIt():void{
TopLevel.application.showPopup("screen11");
}
public function gc():void{
this.disc_mc.proceed_btn.removeEventListener(MouseEvent.MOUSE_DOWN,
this.gameClickHandler);
this.disc_mc.proceed_btn.removeEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.disc_mc.proceed_btn.removeEventListener(MouseEvent.MOUSE_OUT,
this.showOut);
this.simulate_btn.removeEventListener(MouseEvent.MOUSE_DOWN,
this.startGameClickHandler);
this.simulate_btn.removeEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.simulate_btn.removeEventListener(MouseEvent.MOUSE_OUT,
this.showOut);
}

}
}//package view
package view {
import flash.events.*;
import flash.display.*;
import greensock.*;
import greensock.easing.*;
import greensock.events.*;

public class SplashScreen extends MovieClip {

public var screen_mc:MovieClip;

public function SplashScreen():void{


addEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
}
private function addedToStageHandler(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
this.init();
}
private function init():void{
this.screen_mc.scaleX = 0.3;
this.screen_mc.scaleY = 0.3;
this.screen_mc.alpha = 1;
this.screen_mc.jogarBtn.addEventListener(MouseEvent.MOUSE_DOWN,
this.startGameClickHandler);
this.screen_mc.jogarBtn.addEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.screen_mc.jogarBtn.addEventListener(MouseEvent.MOUSE_OUT,
this.showOut);
this.animateIt();
}
private function animateIt():void{
TweenMax.to(this.screen_mc, 2, {
scaleX:1,
scaleY:1,
alpha:1,
ease:Bounce.easeOut
});
}
private function showOver(_arg1:MouseEvent):void{
TweenMax.to(this.screen_mc.jogarBtn, 0.2, {glowFilter:{
color:0,
strength:1,
alpha:1,
blurX:10,
blurY:10
}});
}
private function showOut(_arg1:MouseEvent):void{
TweenMax.to(this.screen_mc.jogarBtn, 0, {glowFilter:{remove:true}});
}
private function startGameClickHandler(_arg1:MouseEvent):void{
TopLevel.application.navigateTo("gamePlayScreen");
}
public function gc():void{
this.screen_mc.jogarBtn.removeEventListener(MouseEvent.MOUSE_DOWN,
this.startGameClickHandler);
}

}
}//package view
package view {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import greensock.*;
import common.utils.*;
import greensock.easing.*;
import greensock.events.*;
import flash.utils.*;

public class Screen11 extends MovieClip {

public var skip_btn:MovieClip;


public var plag_btn:MovieClip;
public var numb_mc:MovieClip;
public var win_mc:MovieClip;
private var mcArr:Array;
private var animateNum:Number = 0;
private var num:Number = 0;
private var xPos:Number = 23;
private var yPos:Number = 66.8;
private var gap:Number = 3;
private var txtArr:Array;
private var circArr:Array;
private var simulateArr:Array;
private var checkCount:Number = 0;
private var lowCount:Number = 0;
private var hiCount:Number = 0;

public function Screen11():void{


this.mcArr = [];
this.txtArr = [];
this.circArr = [];
this.simulateArr = [];
super();
addEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
}
private function addedToStageHandler(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
this.init();
}
public function init():void{
this.x = 650;
this.plag_btn.alpha = 0;
this.skip_btn.alpha = 0;
this.numb_mc.alpha = 0;
this.numb_mc.low_mc.alpha = 0;
this.numb_mc.hi_mc.alpha = 0;
this.numb_mc.low_mc.blink_mc.gotoAndStop(1);
this.numb_mc.hi_mc.blink_mc.gotoAndStop(1);
this.win_mc.alpha = 0;
TweenMax.to(this, 0.7, {
x:0,
y:0,
motionBlur:true,
ease:Cubic.easeInOut,
onComplete:this.addText
});
}
private function showIt():void{
}
private function addText():void{
var _local2:MovieClip;
var _local3:Number;
var _local1:Number = 1;
while (_local1 <= TopLevel.modelLocator.numbArr.length) {
_local2 = new TextM();
_local2.hib_mc.visible = false;
_local2.lob_mc.visible = false;
_local2.id = TopLevel.modelLocator.numbArr[(_local1 - 1)];
_local2.txt_txt.text = TopLevel.modelLocator.numbArr[(_local1 -
1)].toString();
this.addChild(_local2);
this.txtArr.push(_local2);
_local3 = (_local1 % 10);
if (_local1 == 1){
_local2.x = this.xPos;
_local2.y = this.yPos;
} else {
_local2.x = ((this.txtArr[(this.txtArr.length - 2)].x +
this.txtArr[(this.txtArr.length - 2)].width) + this.gap);
};
if (((!((_local3 == 1))) && (!((_local1 == 1))))){
_local2.y = this.txtArr[(this.txtArr.length - 2)].y;
};
if ((((_local3 == 1)) && (!((_local1 == 1))))){
_local2.x = this.xPos;
_local2.y = ((this.txtArr[(this.txtArr.length - 2)].y +
this.txtArr[(this.txtArr.length - 2)].height) + this.gap);
};
_local1++;
};
this.mcArr = [this.numb_mc, this.plag_btn, this.skip_btn];
this.animateNum = setInterval(this.animateIt, 500);
}
private function animateIt():void{
if (this.num == this.mcArr.length){
clearInterval(this.animateNum);
this.skip_btn.addEventListener(MouseEvent.CLICK, this.skipIt);
this.skip_btn.addEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.skip_btn.addEventListener(MouseEvent.MOUSE_OUT, this.showOut);
this.plag_btn.addEventListener(MouseEvent.MOUSE_DOWN,
this.gameClickHandler);
this.plag_btn.addEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.plag_btn.addEventListener(MouseEvent.MOUSE_OUT, this.showOut);
this.addCircle();
return;
};
TweenMax.to(this.mcArr[this.num], 0.5, {alpha:1});
this.num++;
}
private function addCircle():void{
var _local2:MovieClip;
var _local1:Number = 0;
while (_local1 < TopLevel.modelLocator.spotArr.length) {
_local2 = new circleh();
_local2.name = ("circ" + _local1);
_local2.id = TopLevel.modelLocator.spotArr[_local1];
_local2.txt_txt.text =
TopLevel.modelLocator.spotArr[_local1].toString();
_local2.sel_mc.visible = false;
this.numb_mc.addChild(_local2);
this.circArr.push(_local2);
_local2.y = 28;
if (_local1 == 0){
_local2.x = 4;
} else {
_local2.x = ((this.circArr[(this.circArr.length - 2)].x +
this.circArr[(this.circArr.length - 2)].width) + this.gap);
};
_local1++;
};
this.simulate();
}
private function simulate():void{
var _local5:*;
var _local6:*;
var _local7:*;
var _local1:* =
TopLevel.application.curScreen.shuffle(TopLevel.modelLocator.numbArr);
var _local2:Number = 0;
var _local3:* = 0;
var _local4:* = [];
_local2 = 0;
while (_local2 < 20) {
this.simulateArr.push(_local1[_local2]);
_local2++;
};
if (TopLevel.modelLocator.winOption == true){
if (TopLevel.modelLocator.turn == "spot"){
_local3 = TopLevel.modelLocator.spotArr.length;
_local4 =
TopLevel.application.curScreen.shuffle(TopLevel.modelLocator.spotArr);
_local3 = this.makeLenght();
_local2 = 0;
while (_local2 < _local3) {
_local5 = this.checkNumber(_local4[_local2]);
if (_local5.bool == false){
if (_local4[_local2] != this.simulateArr[0]){
this.simulateArr.splice(1, 0);
} else {
this.simulateArr.splice(1, 1);
};
this.simulateArr.push(_local4[_local2]);
};
_local2++;
};
} else {
if (TopLevel.modelLocator.turn == "hilo"){
} else {
if (TopLevel.modelLocator.turn == "both"){
_local3 = TopLevel.modelLocator.spotArr.length;
_local4 =
TopLevel.application.curScreen.shuffle(TopLevel.modelLocator.spotArr);
_local3 = this.makeLenght();
_local2 = 0;
while (_local2 < _local3) {
_local6 = this.checkNumber(_local4[_local2]);
if (_local6.bool == false){
if (_local4[_local2] != this.simulateArr[0]){
this.simulateArr.splice(0, 1);
} else {
this.simulateArr.splice(1, 1);
};
this.simulateArr.push(_local4[_local2]);
};
_local2++;
};
};
};
};
};
this.simulateArr =
TopLevel.application.curScreen.shuffle(this.simulateArr);
if (this.simulateArr.length > 20){
_local7 = (this.simulateArr.length - 20);
this.simulateArr.splice(19, _local7);
};
this.num = 0;
this.animateNum = setInterval(this.showText, 500);
}
private function checkNumber(_arg1:Number):Object{
var _local2:Object = {};
_local2.bool = false;
var _local3:Number = 0;
while (_local3 < this.simulateArr.length) {
if (_arg1 == this.simulateArr[_local3]){
_local2.bool = true;
return (_local2);
};
_local3++;
};
return (_local2);
}
private function makeLenght():Number{
var _local1:* = 1;
if (TopLevel.modelLocator.spotNum == 10){
_local1 = Utility.makeRandom(5, 10);
} else {
if (TopLevel.modelLocator.spotNum == 9){
_local1 = Utility.makeRandom(4, 9);
} else {
if (TopLevel.modelLocator.spotNum == 8){
_local1 = Utility.makeRandom(4, 8);
} else {
if (TopLevel.modelLocator.spotNum == 7){
_local1 = Utility.makeRandom(3, 7);
} else {
if (TopLevel.modelLocator.spotNum == 6){
_local1 = Utility.makeRandom(3, 6);
} else {
if (TopLevel.modelLocator.spotNum == 5){
_local1 = Utility.makeRandom(3, 5);
} else {
if (TopLevel.modelLocator.spotNum == 4){
_local1 = Utility.makeRandom(2, 4);
} else {
if (TopLevel.modelLocator.spotNum == 3){
_local1 = Utility.makeRandom(2, 3);
} else {
if (TopLevel.modelLocator.spotNum == 2)
{
_local1 = Utility.makeRandom(1, 2);
};
};
};
};
};
};
};
};
};
return (_local1);
}
private function showText():void{
var _local3:Number;
var _local1:* = this.simulateArr[this.num];
var _local2:Number = 0;
while (_local2 < this.txtArr.length) {
if (_local1 == Number(this.txtArr[_local2].id)){
if (_local1 <= 40){
this.lowCount++;
this.numb_mc.low_mc.alpha = 1;
this.numb_mc.low_mc.txt_txt.text = ("LOW = " +
this.lowCount.toString());
this.txtArr[_local2].lob_mc.visible = true;
} else {
if ((((_local1 > 40)) && ((_local1 <= 80)))){
this.hiCount++;
this.numb_mc.hi_mc.alpha = 1;
this.numb_mc.hi_mc.txt_txt.text = ("HI = " +
this.hiCount.toString());
this.txtArr[_local2].hib_mc.visible = true;
};
};
_local3 = 0;
while (_local3 < this.circArr.length) {
if (_local1 == this.circArr[_local3].id){
this.circArr[_local3].sel_mc.visible = true;
this.circArr[_local3].sel_mc.gotoAndPlay(2);
this.checkCount++;
break;
};
_local3++;
};
};
_local2++;
};
if (this.num == (this.simulateArr.length - 1)){
clearInterval(this.animateNum);
this.skip_btn.mouseEnabled = false;
this.skip_btn.removeEventListener(MouseEvent.CLICK, this.skipIt);
if (TopLevel.modelLocator.turn == "hilo"){
this.showHiloWinner();
} else {
if (TopLevel.modelLocator.turn == "both"){
this.showBothWinner();
} else {
this.showWinner();
};
};
};
this.num++;
}
private function showHiloWinner():void{
this.win_mc.visible = true;
if (TopLevel.modelLocator.hiloTurn == "hi"){
if (this.hiCount >= 13){
this.numb_mc.hi_mc.blink_mc.gotoAndPlay(2);
this.win_mc.win_txt.text = "WINNER!";
this.win_mc.txt_txt.text = (("Your ticket won Hi Game! If this
were a real ticket, you would have won P" +
Utility.doubleToString(TopLevel.modelLocator.hiloVal)) + ".00");
} else {
this.win_mc.win_txt.text = "SORRY!";
this.win_mc.txt_txt.text = "Your ticket did not win Hi-Low
Game.";
};
} else {
if (this.lowCount >= 13){
this.numb_mc.low_mc.blink_mc.gotoAndPlay(2);
this.win_mc.win_txt.text = "WINNER!";
this.win_mc.txt_txt.text = (("Your ticket won Low Game! If this
were a real ticket, you would have won P" +
Utility.doubleToString(TopLevel.modelLocator.hiloVal)) + ".00");
} else {
this.win_mc.win_txt.text = "SORRY!";
this.win_mc.txt_txt.text = "Your ticket did not win Hi-Low
Game.";
};
};
TweenMax.to(this.win_mc, 1, {alpha:1});
}
private function showBothWinner():void{
var _local7:Number;
this.win_mc.visible = true;
var _local1:Number = 0;
var _local2:* = 0;
var _local3:Number = 0;
var _local4:Number = 0;
var _local5 = "no";
var _local6 = "";
if (TopLevel.modelLocator.hiloTurn == "hi"){
if (this.hiCount >= 13){
_local3 = 2;
_local5 = "hi";
this.numb_mc.hi_mc.blink_mc.gotoAndPlay(2);
this.win_mc.txt_txt.text = "Your ticket won Hi Game";
} else {
_local3 = 1;
_local6 = " and did not win Hi-Low Game.";
};
} else {
if (this.lowCount >= 13){
_local4 = 2;
_local5 = "lo";
this.numb_mc.low_mc.blink_mc.gotoAndPlay(2);
this.win_mc.txt_txt.text = "Your ticket won Low Game";
_local2 = TopLevel.modelLocator.hiloVal;
} else {
_local4 = 1;
_local6 = " and did not win Hi-Low Game.";
};
};
if (this.checkCount > 0){
_local7 = 0;
while (_local7 < TopLevel.modelLocator.spotBetArr.length) {
if (this.checkCount ==
TopLevel.modelLocator.spotBetArr[_local7].num){
_local1 = TopLevel.modelLocator.spotBetArr[_local7].val;
break;
};
_local7++;
};
};
if ((((_local1 == 0)) && ((this.checkCount > 0)))){
this.win_mc.win_txt.text = "SORRY!";
if (_local5 == "no"){
this.win_mc.txt_txt.text = (((((("Your ticket matched " +
this.checkCount.toString()) + "/") + this.simulateArr.length.toString()) + " at
Spot ") + TopLevel.modelLocator.spotNum.toString()) + _local6);
} else {
this.win_mc.win_txt.text = "WINNER!";
this.win_mc.txt_txt.text = (this.win_mc.txt_txt.text +
((((((((" and matched " + this.checkCount.toString()) + "/") +
this.simulateArr.length.toString()) + " at Spot ") +
TopLevel.modelLocator.spotNum.toString()) + "! If this were a real ticket, you
would have won P") + Utility.doubleToString(_local2)) + ".00"));
};
} else {
if (this.checkCount == 0){
if (TopLevel.modelLocator.spotNum > 7){
this.win_mc.win_txt.text = "WINNER!";
if (_local5 == "no"){
this.win_mc.txt_txt.text = (((("Your ticket did not
match any number" + " at Spot ") + TopLevel.modelLocator.spotNum.toString()) +
_local6) + "If this were a real ticket, you would have won BONUS PLAY");
} else {
this.win_mc.txt_txt.text = (this.win_mc.txt_txt.text +
(((((" and did not match any number" + " at Spot ") +
TopLevel.modelLocator.spotNum.toString()) + "If this were a real ticket, you would
have won P") + Utility.doubleToString(_local2)) + ".00"));
};
} else {
this.win_mc.win_txt.text = "SORRY!";
if (_local5 == "no"){
this.win_mc.txt_txt.text = ((("Your ticket did not
match any number" + " at Spot ") + TopLevel.modelLocator.spotNum.toString()) +
_local6);
} else {
this.win_mc.win_txt.text = "WINNER!";
this.win_mc.txt_txt.text = (this.win_mc.txt_txt.text +
(((((" and did not match any number" + " at Spot ") +
TopLevel.modelLocator.spotNum.toString()) + "! If this were a real ticket, you
would have won P") + Utility.doubleToString(_local2)) + ".00"));
};
};
} else {
this.win_mc.win_txt.text = "WINNER!";
if (_local5 == "no"){
this.win_mc.txt_txt.text = (((((((((("Your ticket match " +
this.checkCount.toString()) + "/") + this.simulateArr.length.toString()) + " at
Spot ") + TopLevel.modelLocator.spotNum.toString()) + " game") + _local6) + "If
this were a real ticket, you would have won P") + Utility.doubleToString(_local1))
+ ".00");
} else {
_local2 = (_local2 + _local1);
this.win_mc.txt_txt.text = (this.win_mc.txt_txt.text +
((((((((" and match " + this.checkCount.toString()) + "/") +
this.simulateArr.length.toString()) + " at Spot ") +
TopLevel.modelLocator.spotNum.toString()) + " game! If this were a real ticket, you
would have won P") + Utility.doubleToString(_local2)) + ".00"));
};
};
};
TweenMax.to(this.win_mc, 1, {alpha:1});
}
private function showWinner():void{
var _local2:Number;
this.win_mc.visible = true;
var _local1:Number = 0;
if (this.checkCount > 0){
_local2 = 0;
while (_local2 < TopLevel.modelLocator.spotBetArr.length) {
if (this.checkCount ==
TopLevel.modelLocator.spotBetArr[_local2].num){
_local1 = TopLevel.modelLocator.spotBetArr[_local2].val;
break;
};
_local2++;
};
};
if ((((_local1 == 0)) && ((this.checkCount > 0)))){
this.win_mc.win_txt.text = "SORRY!";
this.win_mc.txt_txt.text = ((((("Your ticket match " +
this.checkCount.toString()) + "/") + this.simulateArr.length.toString()) + " at
Spot ") + TopLevel.modelLocator.spotNum.toString());
} else {
if (this.checkCount == 0){
if (TopLevel.modelLocator.spotNum > 7){
this.win_mc.win_txt.text = "WINNER!";
this.win_mc.txt_txt.text = ((("Your ticket did not match
any number" + " at Spot ") + TopLevel.modelLocator.spotNum.toString()) + "If this
were a real ticket, you would have BONUS PLAY");
} else {
this.win_mc.win_txt.text = "SORRY!";
this.win_mc.txt_txt.text = (("Your ticket did not match any
number" + " at Spot ") + TopLevel.modelLocator.spotNum.toString());
};
} else {
this.win_mc.win_txt.text = "WINNER!";
this.win_mc.txt_txt.text = (((((((("Your ticket match " +
this.checkCount.toString()) + "/") + this.simulateArr.length.toString()) + " at
Spot ") + TopLevel.modelLocator.spotNum.toString()) + " game! If this were a real
ticket, you would have won P") + Utility.doubleToString(_local1)) + ".00");
};
};
TweenMax.to(this.win_mc, 1, {alpha:1});
}
private function showOver(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
TweenMax.to(_local2, 0.2, {glowFilter:{
color:0,
strength:1,
alpha:1,
blurX:10,
blurY:10
}});
}
private function showOut(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
TweenMax.to(_local2, 0, {glowFilter:{remove:true}});
}
private function startGameClickHandler(_arg1:MouseEvent):void{
}
private function skipIt(_arg1:MouseEvent):void{
this.skip_btn.mouseEnabled = false;
this.skip_btn.removeEventListener(MouseEvent.CLICK, this.skipIt);
clearInterval(this.animateNum);
this.animateNum = setInterval(this.showText, 10);
}
private function gameClickHandler(_arg1:MouseEvent):void{
TweenMax.to(this, 0.5, {
x:650,
y:0,
motionBlur:true,
ease:Cubic.easeInOut,
onComplete:this.navigateIt
});
}
private function navigateIt():void{
TopLevel.application.showPopup("screen2");
}
public function gc():void{
this.skip_btn.removeEventListener(MouseEvent.CLICK, this.skipIt);
this.skip_btn.removeEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.skip_btn.removeEventListener(MouseEvent.MOUSE_OUT, this.showOut);
this.plag_btn.removeEventListener(MouseEvent.MOUSE_DOWN,
this.gameClickHandler);
this.plag_btn.removeEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.plag_btn.removeEventListener(MouseEvent.MOUSE_OUT, this.showOut);
}

}
}//package view
package view {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import greensock.*;
import common.utils.*;
import greensock.easing.*;
import greensock.events.*;
import flash.utils.*;

public class Screen3 extends MovieClip {

public var both_btn:MovieClip;


public var hilw_btn:MovieClip;
public var please_mc:MovieClip;
public var spot_btn:MovieClip;
private var mcArr:Array;
private var animateNum:Number = 0;
private var num:Number = 0;
public function Screen3():void{
this.mcArr = [];
super();
addEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
}
private function addedToStageHandler(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
this.init();
}
public function init():void{
this.x = 650;
this.mcArr = [this.spot_btn, this.hilw_btn, this.both_btn];
TweenMax.to(this, 0.5, {
x:0,
y:0,
motionBlur:true,
ease:Cubic.easeInOut,
onComplete:this.showIt
});
var _local1:Number = 0;
while (_local1 < this.mcArr.length) {
this.mcArr[_local1].alpha = 0;
this.mcArr[_local1].oldX = this.mcArr[_local1].x;
this.mcArr[_local1].oldY = this.mcArr[_local1].y;
this.mcArr[_local1].x = 30;
this.mcArr[_local1].y = 200;
_local1++;
};
var _local2:Array = [0, 1, 0, 1, 0, 1];
var _local3:* = Utility.makeRandom(0, (_local2.length - 1));
_local3 = _local2[_local3];
if (_local3 == 1){
TopLevel.modelLocator.winOption = true;
} else {
TopLevel.modelLocator.winOption = false;
};
}
private function showIt():void{
TweenMax.to(this.please_mc, 0.5, {alpha:1});
this.animateNum = setInterval(this.animateIt, 500);
}
private function animateIt():void{
var _local1:* = this.mcArr[this.num];
if (this.num == (this.mcArr.length - 1)){
clearInterval(this.animateNum);
this.activeBtn();
};
TweenMax.to(_local1, 0.5, {
alpha:1,
x:_local1.oldX,
y:_local1.oldY
});
this.num++;
}
private function activeBtn():void{
var _local1:Number = 0;
while (_local1 < this.mcArr.length) {
this.mcArr[_local1].addEventListener(MouseEvent.MOUSE_DOWN,
this.startGameClickHandler);
this.mcArr[_local1].addEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.mcArr[_local1].addEventListener(MouseEvent.MOUSE_OUT,
this.showOut);
_local1++;
};
}
private function showOver(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
TweenMax.to(_local2, 0.2, {glowFilter:{
color:0,
strength:1,
alpha:1,
blurX:10,
blurY:10
}});
}
private function showOut(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
TweenMax.to(_local2, 0, {glowFilter:{remove:true}});
}
private function startGameClickHandler(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
if (_local2.name == "spot_btn"){
TopLevel.modelLocator.turn = "spot";
} else {
if (_local2.name == "hilw_btn"){
TopLevel.modelLocator.turn = "hilo";
} else {
if (_local2.name == "both_btn"){
TopLevel.modelLocator.turn = "both";
};
};
};
TweenMax.to(this, 0.5, {
x:650,
y:0,
motionBlur:true,
ease:Cubic.easeInOut,
onComplete:this.navigateIt
});
}
private function navigateIt():void{
if (TopLevel.modelLocator.turn == "hilo"){
TopLevel.application.showPopup("screen7");
} else {
TopLevel.application.showPopup("screen5");
};
}
public function gc():void{
}

}
}//package view
package view {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import greensock.*;
import common.utils.*;
import greensock.easing.*;
import greensock.events.*;
import flash.utils.*;

public class Screen6 extends MovieClip {

public var number_mc:MovieClip;


public var title_txt:TextField;
public var lucky_mc:MovieClip;
public var info_mc:MovieClip;
public var next_btn:MovieClip;
private var xPos:Number = 33.45;
private var yPos:Number = 135.2;
private var xGap:Number = 17.55;
private var yGap:Number = 5;
private var yNum:Number = 0;
private var mcArr:Array;
private var animateNum:Number = 0;
private var num:Number = 0;
private var crossArr:Array;
private var circArr:Array;

public function Screen6():void{


this.mcArr = [];
this.crossArr = [];
this.circArr = [];
super();
addEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
}
private function addedToStageHandler(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
this.init();
}
public function init():void{
this.x = 650;
this.crossArr = [];
this.circArr = [];
this.title_txt.text = (("Now choose your " +
TopLevel.modelLocator.spotNum.toString()) + " numbers, or choose Lucky Pick and
your numbers will be randomly selected.");
this.number_mc.alpha = 0;
this.lucky_mc.alpha = 0;
this.lucky_mc.tick_mc.visible = false;
this.info_mc.alpha = 0;
this.next_btn.alpha = 0;
this.info_mc.p1_txt.text = "";
this.info_mc.p2_txt.text = "";
this.info_mc.p3_txt.text = "";
this.info_mc.p4_txt.text = "";
this.info_mc.p5_txt.text = "";
this.info_mc.p6_txt.text = "";
this.info_mc.p7_txt.text = "";
this.info_mc.ps1_txt.text = "";
this.info_mc.ps2_txt.text = "";
this.info_mc.ps3_txt.text = "";
this.info_mc.ps4_txt.text = "";
this.info_mc.ps5_txt.text = "";
this.info_mc.ps6_txt.text = "";
this.info_mc.ps7_txt.text = "";
this.info_mc.spot_txt.text = ("SPOT " +
TopLevel.modelLocator.spotNum.toString());
var _local1:Array =
TopLevel.modelLocator.stArr[(TopLevel.modelLocator.spotNum - 1)].s;
var _local2:Array =
TopLevel.modelLocator.stArr[(TopLevel.modelLocator.spotNum - 1)].m;
var _local3:Number = 0;
while (_local3 < _local2.length) {
this.info_mc[(("p" + (_local3 + 1)) + "_txt")].text =
_local2[_local3].toString();
if (_local1[_local3] != "bonus play"){
this.info_mc[(("ps" + (_local3 + 1)) + "_txt")].text = (("P" +
Utility.doubleToString(_local1[_local3])) + ".00");
} else {
this.info_mc[(("ps" + (_local3 + 1)) + "_txt")].text = "BONUS
PLAY";
};
_local3++;
};
TweenMax.to(this, 0.7, {
x:0,
y:0,
motionBlur:true,
ease:Cubic.easeInOut,
onComplete:this.addText
});
}
private function addText():void{
this.animateNum = setInterval(this.showText, 50);
}
private function showText():void{
this.num++;
var _local1:MovieClip = new TextMc();
_local1.alpha = 0;
_local1.name = ("txt" + this.num);
_local1.id = this.num;
_local1.clicked = false;
_local1.txt_txt.text = this.num.toString();
_local1.mouseChildren = false;
_local1.scaleX = 0.83;
_local1.scaleY = 0.88;
this.mcArr.push(_local1);
var _local2:Number = (this.num % 10);
if (this.num == 1){
_local1.x = this.xPos;
_local1.y = this.yPos;
} else {
_local1.x = ((this.mcArr[(this.mcArr.length - 2)].x +
this.mcArr[(this.mcArr.length - 2)].width) + this.xGap);
};
if (((!((_local2 == 1))) && (!((this.num == 1))))){
_local1.y = this.mcArr[(this.mcArr.length - 2)].y;
};
if ((((_local2 == 1)) && (!((this.num == 1))))){
_local1.x = this.xPos;
_local1.y = ((this.mcArr[(this.mcArr.length - 2)].y +
this.mcArr[(this.mcArr.length - 2)].height) + this.yGap);
};
addChild(_local1);
TweenMax.to(_local1, 0.1, {alpha:1});
if (this.num == 80){
clearInterval(this.animateNum);
this.mcArr.push(this.number_mc, this.info_mc, this.lucky_mc,
this.next_btn);
this.animateNum = setInterval(this.animateIt, 500);
};
}
private function animateIt():void{
if (this.num >= this.mcArr.length){
clearInterval(this.animateNum);
this.activeBtn();
this.lucky_mc.hit_mc.addEventListener(MouseEvent.CLICK,
this.selectLucky);
this.lucky_mc.hit_mc.addEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.lucky_mc.hit_mc.addEventListener(MouseEvent.MOUSE_OUT,
this.showOut);
return;
};
TweenMax.to(this.mcArr[this.num], 0.5, {alpha:1});
this.num++;
}
private function selectLucky(_arg1:MouseEvent):void{
var _local5:*;
var _local6:Number;
var _local7:MovieClip;
this.removeCircle();
if (this.lucky_mc.tick_mc.visible == true){
this.lucky_mc.tick_mc.visible = false;
TopLevel.modelLocator.lp = false;
this.activeBtn();
return;
};
this.deactiveBtn();
var _local2:Number = 0;
this.lucky_mc.tick_mc.visible = true;
TopLevel.modelLocator.lp = true;
var _local3:* = TopLevel.modelLocator.numbArr;
var _local4:* = TopLevel.application.curScreen.shuffle(_local3);
TopLevel.modelLocator.spotArr = [];
_local2 = 0;
while (_local2 < TopLevel.modelLocator.spotNum) {
TopLevel.modelLocator.spotArr.push(_local4[_local2]);
_local2++;
};
_local2 = 0;
while (_local2 < TopLevel.modelLocator.spotArr.length) {
_local5 = TopLevel.modelLocator.spotArr[_local2];
_local6 = 0;
while (_local6 < (this.mcArr.length - 4)) {
if (_local5 == this.mcArr[_local6].id){
_local7 = new Cross();
_local7.name = (("cross" + this.mcArr[_local6].id) +
"_mc");
_local7.x = this.mcArr[_local6].x;
_local7.y = this.mcArr[_local6].y;
_local7.id = _local5;
addChild(_local7);
this.crossArr.push(_local7);
this.addCircle(this.mcArr[_local6].id);
};
_local6++;
};
_local2++;
};
if (this.circArr.length >= TopLevel.modelLocator.spotNum){
this.next_btn.addEventListener(MouseEvent.MOUSE_DOWN,
this.startGameClickHandler);
};
}
private function addCircle(_arg1):void{
var _local2:MovieClip = new CircleMc();
_local2.name = ("circ" + _arg1);
_local2.id = _arg1;
this.number_mc.addChild(_local2);
_local2.txt_txt.text = _arg1.toString();
_local2.mouseEnabled = false;
this.circArr.push(_local2);
if (this.circArr.length == 1){
_local2.x = 4;
} else {
_local2.x = ((this.circArr[(this.circArr.length - 2)].x +
this.circArr[(this.circArr.length - 2)].width) + 4);
};
_local2.y = 27;
}
private function removeCircle():void{
var _local3:MovieClip;
var _local4:MovieClip;
var _local1:Number = 0;
while (_local1 < this.circArr.length) {
_local3 = this.circArr[_local1];
if (_local3 != null){
this.number_mc.removeChild(_local3);
};
_local1++;
};
var _local2:Number = 0;
while (_local2 < this.crossArr.length) {
_local4 = this.crossArr[_local2];
if (_local4 != null){
this.removeChild(_local4);
};
_local2++;
};
this.circArr = [];
this.crossArr = [];
}
private function activeBtn():void{
var _local1:Number = 0;
while (_local1 < (this.mcArr.length - 4)) {
this.mcArr[_local1].addEventListener(MouseEvent.CLICK,
this.selectIt);
this.mcArr[_local1].addEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.mcArr[_local1].addEventListener(MouseEvent.MOUSE_OUT,
this.showOut);
this.mcArr[_local1].mouseEnabled = true;
_local1++;
};
}
private function deactiveBtn():void{
var _local1:Number = 0;
while (_local1 < (this.mcArr.length - 4)) {
this.mcArr[_local1].removeEventListener(MouseEvent.CLICK,
this.selectIt);
this.mcArr[_local1].removeEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.mcArr[_local1].removeEventListener(MouseEvent.MOUSE_OUT,
this.showOut);
TweenMax.to(this.mcArr[_local1], 0, {glowFilter:{remove:true}});
_local1++;
};
}
private function removeCross(_arg1):void{
var _local5:MovieClip;
var _local2:Number = 0;
while (_local2 < this.crossArr.length) {
_local5 = this.crossArr[_local2];
if (_local5.id == _arg1){
if (_local5 != null){
removeChild(_local5);
this.crossArr.splice(_local2, 1);
break;
};
};
_local2++;
};
var _local3:Number = 0;
var _local4:MovieClip;
_local3 = 0;
while (_local3 < this.circArr.length) {
_local4 = this.circArr[_local3];
if (((!((_local4 == null))) && ((_arg1 == _local4.id)))){
this.number_mc.removeChild(_local4);
this.circArr.splice(_local3, 1);
_local4 = null;
};
_local3++;
};
_local3 = 0;
while (_local3 < this.circArr.length) {
_local4 = this.circArr[_local3];
if (_local3 == 0){
_local4.x = 4;
} else {
_local4.x = ((this.circArr[(_local3 - 1)].x +
this.circArr[(_local3 - 1)].width) + 4);
};
_local3++;
};
}
private function selectIt(_arg1:MouseEvent):void{
this.next_btn.removeEventListener(MouseEvent.MOUSE_DOWN,
this.startGameClickHandler);
var _local2:MovieClip = (_arg1.target as MovieClip);
var _local3:* = _local2.id;
if (_local2.clicked == false){
if (this.circArr.length >= TopLevel.modelLocator.spotNum){
this.next_btn.addEventListener(MouseEvent.MOUSE_DOWN,
this.startGameClickHandler);
return;
};
_local2.clicked = true;
} else {
_local2.clicked = false;
this.removeCross(_local3);
return;
};
var _local4:MovieClip = new Cross();
_local4.scaleX = 0.83;
_local4.scaleY = 0.88;
_local4.x = (_local2.x + 2.5);
_local4.y = (_local2.y + 1.5);
_local4.id = _local3;
_local4.mouseEnabled = false;
_local4.name = (("cross" + _local3) + "_mc");
addChild(_local4);
this.crossArr.push(_local4);
this.addCircle(_local3);
TopLevel.modelLocator.spotArr.push(_local3);
if (this.circArr.length >= TopLevel.modelLocator.spotNum){
this.next_btn.addEventListener(MouseEvent.MOUSE_DOWN,
this.startGameClickHandler);
};
}
private function showOver(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
TweenMax.to(_local2, 0.2, {glowFilter:{
color:0,
strength:1,
alpha:1,
blurX:10,
blurY:10
}});
}
private function showOut(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
TweenMax.to(_local2, 0, {glowFilter:{remove:true}});
}
private function startGameClickHandler(_arg1:MouseEvent):void{
if (this.circArr.length < TopLevel.modelLocator.spotNum){
return;
};
TweenMax.to(this, 0.5, {
x:650,
y:0,
motionBlur:true,
ease:Cubic.easeInOut,
onComplete:this.navigateIt
});
}
private function navigateIt():void{
if (TopLevel.modelLocator.turn == "both"){
TopLevel.application.showPopup("screen7");
} else {
TopLevel.application.showPopup("screen8");
};
}
public function gc():void{
}

}
}//package view
package view {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import greensock.*;
import greensock.easing.*;
import greensock.events.*;
import flash.utils.*;

public class Screen2 extends MovieClip {

public var hl_mc:MovieClip;


public var six_mc:MovieClip;
public var option_mc:MovieClip;
public var fve_mc:MovieClip;
public var one_mc:MovieClip;
public var svn_mc:MovieClip;
public var eght_mc:MovieClip;
public var nine_mc:MovieClip;
public var two_mc:MovieClip;
public var thr_mc:MovieClip;
public var ten_mc:MovieClip;
public var next_btn:MovieClip;
public var four_mc:MovieClip;
private var animateNum:Number = 0;
private var num:Number = 0;
private var mcArr:Array;

public function Screen2():void{


this.mcArr = [];
super();
addEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
}
private function addedToStageHandler(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
this.init();
}
public function init():void{
TopLevel.modelLocator.playAmount = 1;
TopLevel.modelLocator.betValue = 1;
TopLevel.modelLocator.multiplier = 1;
TopLevel.modelLocator.spotArr = [];
TopLevel.modelLocator.spotNum = 0;
TopLevel.modelLocator.lp = false;
TopLevel.modelLocator.spotBetArr = [];
TopLevel.modelLocator.turnBet = 0;
TopLevel.modelLocator.hiloTurn = "lo";
TopLevel.modelLocator.hiloVal = 60;
this.one_mc.alpha = 0;
this.two_mc.alpha = 0;
this.thr_mc.alpha = 0;
this.four_mc.alpha = 0;
this.fve_mc.alpha = 0;
this.six_mc.alpha = 0;
this.svn_mc.alpha = 0;
this.eght_mc.alpha = 0;
this.nine_mc.alpha = 0;
this.ten_mc.alpha = 0;
this.hl_mc.alpha = 0;
this.next_btn.alpha = 0;
this.option_mc.alpha = 0;
this.next_btn.addEventListener(MouseEvent.MOUSE_DOWN,
this.startGameClickHandler);
this.next_btn.addEventListener(MouseEvent.MOUSE_OVER, this.showOver);
this.next_btn.addEventListener(MouseEvent.MOUSE_OUT, this.showOut);
this.mcArr = [this.one_mc, this.two_mc, this.thr_mc, this.four_mc,
this.fve_mc, this.six_mc, this.svn_mc, this.eght_mc, this.nine_mc, this.ten_mc,
this.hl_mc, this.option_mc, this.next_btn];
this.animateNum = setInterval(this.animateIt, 250);
this.animateIt();
}
private function hideIt():void{
}
private function navigateIt():void{
TopLevel.application.showPopup("screen3");
}
private function animateIt():void{
var _local1:* = this.mcArr[this.num];
if (this.num >= (this.mcArr.length - 3)){
clearInterval(this.animateNum);
this.animateNum = setInterval(this.animateIt, 500);
if (this.num == (this.mcArr.length - 1)){
clearInterval(this.animateNum);
};
TweenMax.to(_local1, 0.5, {alpha:1});
} else {
TweenMax.to(_local1, 0.3, {alpha:1});
};
this.num++;
}
private function showOver(_arg1:MouseEvent):void{
TweenMax.to(this.next_btn, 0.2, {glowFilter:{
color:0,
strength:1,
alpha:1,
blurX:10,
blurY:10
}});
}
private function showOut(_arg1:MouseEvent):void{
TweenMax.to(this.next_btn, 0, {glowFilter:{remove:true}});
}
private function startGameClickHandler(_arg1:MouseEvent):void{
TweenMax.to(this, 0.5, {
x:650,
y:0,
motionBlur:true,
ease:Cubic.easeInOut,
onComplete:this.navigateIt
});
trace("startGameClickHandler");
}
public function gc():void{
this.next_btn.removeEventListener(MouseEvent.MOUSE_DOWN,
this.startGameClickHandler);
this.next_btn.removeEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.next_btn.removeEventListener(MouseEvent.MOUSE_OUT, this.showOut);
}

}
}//package view
package view {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import greensock.*;
import common.utils.*;
import greensock.easing.*;
import greensock.events.*;
import flash.utils.*;

public class Screen8 extends MovieClip {

public var back_mc:MovieClip;


public var crossm_mc:MovieClip;
public var hilw_mc:MovieClip;
public var betAmt_mc:MovieClip;
public var plamt_mc:MovieClip;
public var ticket_mc:MovieClip;
public var cross_mc:MovieClip;
public var spot_mc:MovieClip;
public var next_btn:MovieClip;
private var mcArr:Array;
private var animateNum:Number = 0;
private var num:Number = 0;
private var xPos:Number = 33;
private var yPos:Number = 230;
private var gap:Number = 22.5;
private var mArr:Array;
private var wArr:Array;
private var betValue:Number = 1;
private var multiplier:Number = 1;
private var clickedMc:MovieClip;

public function Screen8():void{


this.mcArr = [];
this.mArr = [];
this.wArr = [];
super();
addEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
}
private function addedToStageHandler(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, this.addedToStageHandler);
this.init();
}
public function init():void{
this.x = 650;
this.cross_mc.alpha = 0;
this.crossm_mc.alpha = 0;
this.next_btn.alpha = 0;
this.back_mc.alpha = 0;
this.plamt_mc.alpha = 0;
this.ticket_mc.mouseEnabled = false;
this.spot_mc.visible = false;
this.hilw_mc.visible = false;
this.betAmt_mc.alpha = 0;
this.betAmt_mc.y = 335;
if (TopLevel.modelLocator.turn == "spot"){
this.spot_mc.visible = true;
this.spot_mc.alpha = 0;
this.betAmt_mc.y = 276;
this.betAmt_mc.bet_txt.text = "P10.00";
this.spotIt();
} else {
if (TopLevel.modelLocator.turn == "hilo"){
this.hilw_mc.visible = true;
this.hilw_mc.alpha = 0;
this.betAmt_mc.bet_txt.text = "P10.00";
this.setHiLoVal();
} else {
this.spot_mc.visible = true;
this.spot_mc.alpha = 0;
this.hilw_mc.visible = true;
this.hilw_mc.alpha = 0;
this.betAmt_mc.bet_txt.text = "P20.00";
this.spotIt();
this.setHiLoVal();
};
};
TweenMax.to(this, 0.7, {
x:0,
y:0,
motionBlur:true,
ease:Cubic.easeInOut,
onComplete:this.showIt
});
}
private function setHiLoVal():void{
if (TopLevel.modelLocator.hiloTurn == "lo"){
this.hilw_mc.p_txt.text = "LOW";
} else {
this.hilw_mc.p_txt.text = "HI";
};
this.hilw_mc.ps_txt.text = (("P" + TopLevel.modelLocator.hiloVal) +
".00");
}
private function spotIt():void{
this.spot_mc.p1_txt.text = "";
this.spot_mc.p2_txt.text = "";
this.spot_mc.p3_txt.text = "";
this.spot_mc.p4_txt.text = "";
this.spot_mc.p5_txt.text = "";
this.spot_mc.p6_txt.text = "";
this.spot_mc.p7_txt.text = "";
this.spot_mc.ps1_txt.text = "";
this.spot_mc.ps2_txt.text = "";
this.spot_mc.ps3_txt.text = "";
this.spot_mc.ps4_txt.text = "";
this.spot_mc.ps5_txt.text = "";
this.spot_mc.ps6_txt.text = "";
this.spot_mc.ps7_txt.text = "";
this.spot_mc.spot_txt.text = ("SPOT " +
TopLevel.modelLocator.spotNum.toString());
this.mArr = [];
this.wArr = [];
var _local1:Number = (TopLevel.modelLocator.spotNum - 1);
this.mArr = TopLevel.modelLocator.stArr[_local1].s;
this.wArr = TopLevel.modelLocator.stArr[_local1].m;
var _local2:Number = 0;
while (_local2 < this.wArr.length) {
this.spot_mc[(("p" + (_local2 + 1)) + "_txt")].text =
this.wArr[_local2].toString();
if (this.mArr[_local2] != "bonus play"){
this.spot_mc[(("ps" + (_local2 + 1)) + "_txt")].text = (("P" +
Utility.doubleToString(this.mArr[_local2])) + ".00");
} else {
this.spot_mc[(("ps" + (_local2 + 1)) + "_txt")].text = "BONUS
PLAY";
};
_local2++;
};
}
private function showIt():void{
this.animateNum = setInterval(this.showIta, (1 * 1000));
}
private function showIta():void{
clearInterval(this.animateNum);
TweenMax.to(this.ticket_mc, 1.5, {
scaleX:2.38,
scaleY:2.38,
x:-26.45,
y:-573.9,
onComplete:this.stayIt
});
}
private function stayIt():void{
this.animateNum = setInterval(this.addText, (1 * 1000));
}
private function addText():void{
clearInterval(this.animateNum);
TweenMax.to(this.ticket_mc, 1, {alpha:0});
this.back_mc.alpha = 1;
this.plamt_mc.alpha = 1;
this.animateNum = setInterval(this.showText, 5);
}
private function showText():void{
this.num++;
var _local1:MovieClip = new Text1M();
_local1.alpha = 1;
var _local2:* = (this.num * 10);
_local1.num = this.num;
if (this.num == 11){
_local2 = 5;
_local1.num = 50;
} else {
if (this.num == 12){
_local1.num = 100;
_local2 = 10;
};
};
_local1.name = ("txt" + this.num);
_local1.mouseChildren = false;
_local1.txt_txt.text = _local2.toString();
if ((((this.num == 11)) || ((this.num == 12)))){
_local1.txt_txt.text = ("x" + _local2.toString());
};
this.mcArr.push(_local1);
_local1.y = this.yPos;
if (this.num == 1){
_local1.x = this.xPos;
} else {
_local1.x = ((this.mcArr[(this.mcArr.length - 2)].x +
this.mcArr[(this.mcArr.length - 2)].width) + this.gap);
};
addChild(_local1);
if (this.num == 12){
clearInterval(this.animateNum);
this.cross_mc.mouseEnabled = false;
this.cross_mc.mouseChildren = false;
this.cross_mc.x = (this.mcArr[0].x + 2.5);
this.cross_mc.y = (this.mcArr[0].y + 1.5);
this.cross_mc.alpha = 1;
this.crossm_mc.mouseEnabled = false;
this.crossm_mc.mouseChildren = false;
this.crossm_mc.alpha = 1;
this.setChildIndex(this.crossm_mc, (this.numChildren - 1));
this.setChildIndex(this.cross_mc, (this.numChildren - 1));
if (TopLevel.modelLocator.turn == "spot"){
this.mcArr.push(this.spot_mc);
this.mcArr.push(this.betAmt_mc);
this.mcArr.push(this.next_btn);
this.updateRecord(1);
} else {
if (TopLevel.modelLocator.turn == "hilo"){
this.mcArr.push(this.hilw_mc);
this.mcArr.push(this.betAmt_mc);
this.mcArr.push(this.next_btn);
} else {
this.mcArr.push(this.spot_mc);
this.mcArr.push(this.hilw_mc);
this.mcArr.push(this.betAmt_mc);
this.mcArr.push(this.next_btn);
this.updateRecord(1);
};
};
this.animateNum = setInterval(this.animateIt, 500);
};
}
private function animateIt():void{
if (this.num == this.mcArr.length){
clearInterval(this.animateNum);
this.next_btn.addEventListener(MouseEvent.MOUSE_DOWN,
this.startGameClickHandler);
this.next_btn.addEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.next_btn.addEventListener(MouseEvent.MOUSE_OUT, this.showOut);
this.activateIt();
return;
};
TweenMax.to(this.mcArr[this.num], 0.5, {alpha:1});
this.num++;
}
private function activateIt():void{
var _local1:Number = 0;
while (_local1 < 12) {
this.mcArr[_local1].addEventListener(MouseEvent.CLICK,
this.selectIt);
if (_local1 > 9){
this.mcArr[_local1].clicked = false;
};
this.mcArr[_local1].addEventListener(MouseEvent.MOUSE_OVER,
this.showOver);
this.mcArr[_local1].addEventListener(MouseEvent.MOUSE_OUT,
this.showOut);
_local1++;
};
}
private function selectIt(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
if ((((_local2.num == 50)) || ((_local2.num == 100)))){
if (_local2.clicked == false){
_local2.clicked = true;
if (((!((this.clickedMc == null))) && (!((_local2 ==
this.clickedMc))))){
this.clickedMc.clicked = false;
};
this.crossm_mc.alpha = 1;
this.multiplier = _local2.num;
TopLevel.modelLocator.multiplier = _local2.num;
this.clickedMc = _local2;
} else {
if (_local2 == this.clickedMc){
if (_local2.clicked == true){
_local2.clicked = false;
TopLevel.modelLocator.multiplier = 1;
this.clickedMc = null;
this.crossm_mc.alpha = 0;
};
} else {
if (_local2 != this.clickedMc){
this.clickedMc.clicked = false;
_local2.clicked = true;
this.crossm_mc.alpha = 1;
this.multiplier = _local2.num;
TopLevel.modelLocator.multiplier = _local2.num;
this.clickedMc = _local2;
};
};
};
this.crossm_mc.x = (_local2.x + 2.5);
this.crossm_mc.y = (_local2.y + 1.5);
} else {
this.cross_mc.x = (_local2.x + 2.5);
this.cross_mc.y = (_local2.y + 1.5);
this.cross_mc.alpha = 1;
this.betValue = _local2.num;
};
TopLevel.modelLocator.betValue = this.betValue;
var _local3:* = TopLevel.modelLocator.multiplier;
if (_local3 != 1){
_local3 = (_local3 / 10);
};
TopLevel.modelLocator.playAmount = Number((this.betValue * _local3));
var _local4:* = TopLevel.modelLocator.multiplier;
if (_local4 == 100){
_local4 = 10;
} else {
if (_local4 == 50){
_local4 = 5;
};
};
if (TopLevel.modelLocator.turn == "spot"){
this.updateRecord(_local2.txt_txt.text);
this.betAmt_mc.bet_txt.text = (("P" + String(((10 *
TopLevel.modelLocator.betValue) * _local4))) + ".00");
} else {
if (TopLevel.modelLocator.turn == "hilo"){
this.updateHiloRecord();
this.betAmt_mc.bet_txt.text = (("P" + String(((10 *
TopLevel.modelLocator.betValue) * _local4))) + ".00");
} else {
if (TopLevel.modelLocator.turn == "both"){
this.betAmt_mc.bet_txt.text = (("P" + String(((20 *
TopLevel.modelLocator.betValue) * _local4))) + ".00");
this.updateHiloRecord();
this.updateRecord(_local2.txt_txt.text);
};
};
};
}
private function updateHiloRecord():void{
var _local1:* = TopLevel.modelLocator.playAmount;
TopLevel.modelLocator.hiloVal = (_local1 * 60);
this.hilw_mc.ps_txt.text = (("P" +
TopLevel.modelLocator.hiloVal.toString()) + ".00");
}
private function updateRecord(_arg1):void{
var _local3:Object;
var _local4:*;
var _local5:*;
TopLevel.modelLocator.spotBetArr = [];
var _local2:Number = 0;
while (_local2 < this.wArr.length) {
_local3 = {};
_local3.num = this.wArr[_local2];
if (this.mArr[_local2] != "bonus play"){
_local4 = TopLevel.modelLocator.playAmount;
_local5 = (_local4 * this.mArr[_local2]);
if (_local5 >= TopLevel.modelLocator.maxRest){
_local5 = TopLevel.modelLocator.maxRest;
};
_local3.val = _local5;
TopLevel.modelLocator.spotBetArr.push(_local3);
this.spot_mc[(("ps" + (_local2 + 1)) + "_txt")].text = (("P" +
Utility.doubleToString(_local5)) + ".00");
} else {
this.spot_mc[(("ps" + (_local2 + 1)) + "_txt")].text = "BONUS
PLAY";
_local3.val = "BONUS PLAY";
TopLevel.modelLocator.spotBetArr.push(_local3);
};
_local2++;
};
}
private function showOver(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
TweenMax.to(_local2, 0.2, {glowFilter:{
color:0,
strength:1,
alpha:1,
blurX:10,
blurY:10
}});
}
private function showOut(_arg1:MouseEvent):void{
var _local2:MovieClip = (_arg1.target as MovieClip);
TweenMax.to(_local2, 0, {glowFilter:{remove:true}});
}
private function startGameClickHandler(_arg1:MouseEvent):void{
TweenMax.to(this, 0.5, {
x:650,
y:0,
motionBlur:true,
ease:Cubic.easeInOut,
onComplete:this.navigateIt
});
}
private function navigateIt():void{
TopLevel.application.showPopup("screen9");
}
public function gc():void{
}

}
}//package view
package {
import view.*;

public dynamic class Screen8 extends Screen8 {

}
}//package
package sound {
import flash.events.*;
import flash.media.*;

public class SoundLocator {

private static var instance:SoundLocator;


private var snd:Sound;
private var snd_channel:SoundChannel;
private var bg_sound:BgSound;
private var bg_channel:SoundChannel;
private var bg_transform:SoundTransform;

public function SoundLocator(_arg1:SingletonEnforcer){


if (_arg1 == null){
throw (new Error("You can only have one SoundUtils"));
};
}
public static function getInstance():SoundLocator{
if (instance == null){
instance = new SoundLocator(new SingletonEnforcer());
};
return (instance);
}

public function stopAllSounds():void{


try {
this.snd_channel.stop();
} catch(e:Error) {
};
}
public function loadBtnSound():void{
}
public function playBtnSound():void{
}
public function stopBtnSound():void{
}
public function loadBgSound():void{
this.bg_sound = new BgSound();
this.bg_transform = new SoundTransform(0.8, 0);
this.bg_transform.volume = 0.1;
this.bg_channel = this.bg_sound.play();
this.bg_channel.stop();
this.bg_channel.soundTransform = this.bg_transform;
this.bg_channel.addEventListener(Event.SOUND_COMPLETE,
this.bgSoundCompleteHandler);
}
private function bgSoundCompleteHandler(_arg1:Event):void{
this.playBgSound();
}
public function playBgSound():void{
this.bg_channel.stop();
this.bg_channel = this.bg_sound.play();
this.bg_transform.volume = 0.1;
this.bg_channel.soundTransform = this.bg_transform;
this.bg_channel.removeEventListener(Event.SOUND_COMPLETE,
this.bgSoundCompleteHandler);
this.bg_channel.addEventListener(Event.SOUND_COMPLETE,
this.bgSoundCompleteHandler);
}
public function stopBgSound():void{
this.bg_channel.removeEventListener(Event.SOUND_COMPLETE,
this.bgSoundCompleteHandler);
this.bg_channel.stop();
}
}
}//package sound

class SingletonEnforcer {

public function SingletonEnforcer(){


}
}