Section 1
//PropTween (com.greensock.core.PropTween)
package com.greensock.core {
public class PropTween {
public var priority:int;
public var start:Number;
public var prevNode:PropTween;
public var change:Number;
public var target:Object;
public var name:String;
public var property:String;
public var nextNode:PropTween;
public var isPlugin:Boolean;
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 com.greensock.core
Section 2
//SimpleTimeline (com.greensock.core.SimpleTimeline)
package com.greensock.core {
public class SimpleTimeline extends TweenCore {
public var autoRemoveChildren:Boolean;
protected var _lastChild:TweenCore;
protected var _firstChild:TweenCore;
public function SimpleTimeline(_arg1:Object=null){
super(0, _arg1);
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local5:Number;
var _local6:TweenCore;
var _local4:TweenCore = _firstChild;
this.cachedTotalTime = _arg1;
this.cachedTime = _arg1;
while (_local4) {
_local6 = _local4.nextNode;
if (((_local4.active) || ((((((_arg1 >= _local4.cachedStartTime)) && (!(_local4.cachedPaused)))) && (!(_local4.gc)))))){
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 addChild(_arg1:TweenCore):void{
if (((!(_arg1.gc)) && (_arg1.timeline))){
_arg1.timeline.remove(_arg1, true);
};
_arg1.timeline = this;
if (_arg1.gc){
_arg1.setEnabled(true, true);
};
if (_firstChild){
_firstChild.prevNode = _arg1;
};
_arg1.nextNode = _firstChild;
_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 (_lastChild == _arg1){
_lastChild = _arg1.prevNode;
};
};
if (_arg1.prevNode){
_arg1.prevNode.nextNode = _arg1.nextNode;
} else {
if (_firstChild == _arg1){
_firstChild = _arg1.nextNode;
};
};
}
public function get rawTime():Number{
return (this.cachedTotalTime);
}
}
}//package com.greensock.core
Section 3
//TweenCore (com.greensock.core.TweenCore)
package com.greensock.core {
import com.greensock.*;
public class TweenCore {
public var initted:Boolean;
protected var _hasUpdate:Boolean;
public var active:Boolean;
protected var _delay:Number;
public var cachedTime:Number;
public var cachedReversed:Boolean;
public var nextNode:TweenCore;
protected var _rawPrevTime:Number;// = -1
public var vars:Object;
public var cachedTotalTime:Number;
public var timeline:SimpleTimeline;
public var data;
public var cachedStartTime:Number;
public var prevNode:TweenCore;
public var cachedDuration:Number;
public var gc:Boolean;
protected var _pauseTime:Number;
public var cacheIsDirty:Boolean;
public var cachedPaused:Boolean;
public var cachedTimeScale:Number;
public var cachedTotalDuration:Number;
public static const version:Number = 1.11;
protected static var _classInitted:Boolean;
public function TweenCore(_arg1:Number=0, _arg2:Object=null){
this.vars = ((_arg2) || ({}));
this.cachedDuration = (this.cachedTotalDuration = ((_arg1) || (0)));
_delay = ((this.vars.delay) || (0));
this.cachedTimeScale = ((this.vars.timeScale) || (1));
this.active = Boolean((((((_arg1 == 0)) && ((_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 + _delay);
_local3.addChild(this);
if (this.vars.reversed){
this.cachedReversed = true;
};
if (this.vars.paused){
this.paused = true;
};
}
public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
}
public function get delay():Number{
return (_delay);
}
public function get duration():Number{
return (this.cachedDuration);
}
public function restart(_arg1:Boolean=false, _arg2:Boolean=true):void{
this.reversed = false;
this.paused = false;
this.setTotalTime((_arg1) ? -(_delay) : 0, _arg2);
}
public function set reversed(_arg1:Boolean):void{
if (_arg1 != this.cachedReversed){
this.cachedReversed = _arg1;
setTotalTime(this.cachedTotalTime, true);
};
}
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 set delay(_arg1:Number):void{
this.startTime = (this.startTime + (_arg1 - _delay));
_delay = _arg1;
}
public function resume():void{
this.paused = false;
}
public function get paused():Boolean{
return (this.cachedPaused);
}
public function play():void{
this.reversed = false;
this.paused = false;
}
public function set duration(_arg1:Number):void{
this.cachedDuration = (this.cachedTotalDuration = _arg1);
setDirtyCache(false);
}
public function complete(_arg1:Boolean=false, _arg2:Boolean=false):void{
if (!_arg1){
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.cachedTotalTime == this.cachedTotalDuration)))) && (!(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 get totalTime():Number{
return (this.cachedTotalTime);
}
public function get reversed():Boolean{
return (this.cachedReversed);
}
public function get startTime():Number{
return (this.cachedStartTime);
}
public function set currentTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
protected function setDirtyCache(_arg1:Boolean=true):void{
var _local2:TweenCore = (_arg1) ? this : this.timeline;
while (_local2) {
_local2.cacheIsDirty = true;
_local2 = _local2.timeline;
};
}
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 set paused(_arg1:Boolean):void{
if (((!((_arg1 == this.cachedPaused))) && (this.timeline))){
if (_arg1){
_pauseTime = this.timeline.rawTime;
} else {
this.cachedStartTime = (this.cachedStartTime + (this.timeline.rawTime - _pauseTime));
_pauseTime = NaN;
setDirtyCache(false);
};
this.cachedPaused = _arg1;
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
};
if (((!(_arg1)) && (this.gc))){
this.setTotalTime(this.cachedTotalTime, false);
this.setEnabled(true, false);
};
}
public function kill():void{
setEnabled(false, false);
}
public function set totalTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
public function get currentTime():Number{
return (this.cachedTime);
}
protected function setTotalTime(_arg1:Number, _arg2:Boolean=false):void{
var _local3:Number;
var _local4:Number;
if (this.timeline){
_local3 = (((_pauseTime) || ((_pauseTime == 0)))) ? _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){
setDirtyCache(false);
};
if (this.cachedTotalTime != _arg1){
renderTime(_arg1, _arg2, false);
};
};
}
public function pause():void{
this.paused = true;
}
public function set totalDuration(_arg1:Number):void{
this.duration = _arg1;
}
public function get totalDuration():Number{
return (this.cachedTotalDuration);
}
public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
if (_arg1 == this.gc){
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, true);
};
};
this.gc = !(_arg1);
};
return (false);
}
}
}//package com.greensock.core
Section 4
//TweenEvent (com.greensock.events.TweenEvent)
package com.greensock.events {
import flash.events.*;
public class TweenEvent extends Event {
public static const COMPLETE:String = "complete";
public static const START:String = "init";
public static const UPDATE:String = "change";
public static const REVERSE_COMPLETE:String = "reverseComplete";
public static const VERSION:Number = 1;
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 com.greensock.events
Section 5
//AutoAlphaPlugin (com.greensock.plugins.AutoAlphaPlugin)
package com.greensock.plugins {
import com.greensock.*;
import flash.display.*;
public class AutoAlphaPlugin extends TweenPlugin {
protected var _target:Object;
protected var _ignoreVisible:Boolean;
public static const API:Number = 1;
public function AutoAlphaPlugin(){
this.propName = "autoAlpha";
this.overwriteProps = ["alpha", "visible"];
}
override public function killProps(_arg1:Object):void{
super.killProps(_arg1);
_ignoreVisible = Boolean(("visible" in _arg1));
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
addTween(_arg1, "alpha", _arg1.alpha, _arg2, "alpha");
return (true);
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
if (!_ignoreVisible){
_target.visible = Boolean(!((_target.alpha == 0)));
};
}
}
}//package com.greensock.plugins
Section 6
//BevelFilterPlugin (com.greensock.plugins.BevelFilterPlugin)
package com.greensock.plugins {
import com.greensock.*;
import flash.display.*;
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 com.greensock.plugins
Section 7
//BezierPlugin (com.greensock.plugins.BezierPlugin)
package com.greensock.plugins {
import com.greensock.core.*;
import com.greensock.*;
public class BezierPlugin extends TweenPlugin {
protected var _future:Object;
protected var _orient:Boolean;
protected var _orientData:Array;
protected var _target:Object;
protected var _beziers:Object;
public static const API:Number = 1;
protected static const _RAD2DEG:Number = 57.2957795130823;
public function BezierPlugin(){
_future = {};
super();
this.propName = "bezier";
this.overwriteProps = [];
}
override public function killProps(_arg1:Object):void{
var _local2:String;
for (_local2 in _beziers) {
if ((_local2 in _arg1)){
delete _beziers[_local2];
};
};
super.killProps(_arg1);
}
protected function init(_arg1:TweenLite, _arg2:Array, _arg3:Boolean):void{
var _local6:int;
var _local7:String;
var _local8:Object;
_target = _arg1.target;
var _local4:Object = ((_arg1.vars.isTV)==true) ? _arg1.vars.exposedVars : _arg1.vars;
if (_local4.orientToBezier == true){
_orientData = [["x", "y", "rotation", 0, 0.01]];
_orient = true;
} else {
if ((_local4.orientToBezier is Array)){
_orientData = _local4.orientToBezier;
_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];
};
};
_beziers = parseBeziers(_local5, _arg3);
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (!(_arg2 is Array)){
return (false);
};
init(_arg3, (_arg2 as Array), false);
return (true);
}
override public function 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 _beziers) {
_local2 = (_beziers[_local3].length - 1);
_target[_local3] = _beziers[_local3][_local2][2];
};
} else {
for (_local3 in _beziers) {
_local6 = _beziers[_local3].length;
if (_arg1 < 0){
_local2 = 0;
} else {
if (_arg1 >= 1){
_local2 = (_local6 - 1);
} else {
_local2 = int((_local6 * _arg1));
};
};
_local5 = ((_arg1 - (_local2 * (1 / _local6))) * _local6);
_local4 = _beziers[_local3][_local2];
if (this.round){
_local7 = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0])))));
_target[_local3] = ((_local7)>0) ? int((_local7 + 0.5)) : int((_local7 - 0.5));
} else {
_target[_local3] = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0])))));
};
};
};
if (_orient){
_local2 = _orientData.length;
_local8 = {};
while (_local2--) {
_local11 = _orientData[_local2];
_local8[_local11[0]] = _target[_local11[0]];
_local8[_local11[1]] = _target[_local11[1]];
};
_local13 = _target;
_local14 = this.round;
_target = _future;
this.round = false;
_orient = false;
_local2 = _orientData.length;
while (_local2--) {
_local11 = _orientData[_local2];
this.changeFactor = (_arg1 + ((_local11[4]) || (0.01)));
_local12 = ((_local11[3]) || (0));
_local9 = (_future[_local11[0]] - _local8[_local11[0]]);
_local10 = (_future[_local11[1]] - _local8[_local11[1]]);
_local13[_local11[2]] = ((Math.atan2(_local10, _local9) * _RAD2DEG) + _local12);
};
_target = _local13;
this.round = _local14;
_orient = true;
};
}
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);
}
}
}//package com.greensock.plugins
Section 8
//BezierThroughPlugin (com.greensock.plugins.BezierThroughPlugin)
package com.greensock.plugins {
import com.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 com.greensock.plugins
Section 9
//BlurFilterPlugin (com.greensock.plugins.BlurFilterPlugin)
package com.greensock.plugins {
import com.greensock.*;
import flash.display.*;
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 com.greensock.plugins
Section 10
//ColorMatrixFilterPlugin (com.greensock.plugins.ColorMatrixFilterPlugin)
package com.greensock.plugins {
import com.greensock.*;
import flash.display.*;
import flash.filters.*;
public class ColorMatrixFilterPlugin extends FilterPlugin {
protected var _matrix:Array;
protected var _matrixTween:EndArrayPlugin;
public static const API:Number = 1;
private static var _propNames:Array = [];
protected static var _lumG:Number = 0.71516;
protected static var _lumR:Number = 0.212671;
protected static var _idMatrix:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
protected static var _lumB:Number = 0.072169;
public function ColorMatrixFilterPlugin(){
this.propName = "colorMatrixFilter";
this.overwriteProps = ["colorMatrixFilter"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_type = ColorMatrixFilter;
var _local4:Object = _arg2;
initFilter({remove:_arg2.remove, index:_arg2.index, addFilter:_arg2.addFilter}, new ColorMatrixFilter(_idMatrix.slice()), _propNames);
_matrix = ColorMatrixFilter(_filter).matrix;
var _local5:Array = [];
if (((!((_local4.matrix == null))) && ((_local4.matrix is Array)))){
_local5 = _local4.matrix;
} else {
if (_local4.relative == true){
_local5 = _matrix.slice();
} else {
_local5 = _idMatrix.slice();
};
_local5 = setBrightness(_local5, _local4.brightness);
_local5 = setContrast(_local5, _local4.contrast);
_local5 = setHue(_local5, _local4.hue);
_local5 = setSaturation(_local5, _local4.saturation);
_local5 = setThreshold(_local5, _local4.threshold);
if (!isNaN(_local4.colorize)){
_local5 = colorize(_local5, _local4.colorize, _local4.amount);
};
};
_matrixTween = new EndArrayPlugin();
_matrixTween.init(_matrix, _local5);
return (true);
}
override public function set changeFactor(_arg1:Number):void{
_matrixTween.changeFactor = _arg1;
ColorMatrixFilter(_filter).matrix = _matrix;
super.changeFactor = _arg1;
}
public static function setSaturation(_arg1:Array, _arg2:Number):Array{
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 setHue(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 * (Math.PI / 180));
var _local3:Number = Math.cos(_arg2);
var _local4:Number = Math.sin(_arg2);
var _local5:Array = [((_lumR + (_local3 * (1 - _lumR))) + (_local4 * -(_lumR))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * -(_lumG))), ((_lumB + (_local3 * -(_lumB))) + (_local4 * (1 - _lumB))), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * 0.143)), ((_lumG + (_local3 * (1 - _lumG))) + (_local4 * 0.14)), ((_lumB + (_local3 * -(_lumB))) + (_local4 * -0.283)), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * -((1 - _lumR)))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * _lumG)), ((_lumB + (_local3 * (1 - _lumB))) + (_local4 * _lumB)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return (applyMatrix(_local5, _arg1));
}
public static function setContrast(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 + 0.01);
var _local3:Array = [_arg2, 0, 0, 0, (128 * (1 - _arg2)), 0, _arg2, 0, 0, (128 * (1 - _arg2)), 0, 0, _arg2, 0, (128 * (1 - _arg2)), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
public static function applyMatrix(_arg1:Array, _arg2:Array):Array{
var _local6:int;
var _local7:int;
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (_arg2);
};
var _local3:Array = [];
var _local4:int;
var _local5:int;
_local6 = 0;
while (_local6 < 4) {
_local7 = 0;
while (_local7 < 5) {
if (_local7 == 4){
_local5 = _arg1[(_local4 + 4)];
} else {
_local5 = 0;
};
_local3[(_local4 + _local7)] = (((((_arg1[_local4] * _arg2[_local7]) + (_arg1[(_local4 + 1)] * _arg2[(_local7 + 5)])) + (_arg1[(_local4 + 2)] * _arg2[(_local7 + 10)])) + (_arg1[(_local4 + 3)] * _arg2[(_local7 + 15)])) + _local5);
_local7++;
};
_local4 = (_local4 + 5);
_local6++;
};
return (_local3);
}
public static function 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 colorize(_arg1:Array, _arg2:Number, _arg3:Number=1):Array{
if (isNaN(_arg2)){
return (_arg1);
};
if (isNaN(_arg3)){
_arg3 = 1;
};
var _local4:Number = (((_arg2 >> 16) & 0xFF) / 0xFF);
var _local5:Number = (((_arg2 >> 8) & 0xFF) / 0xFF);
var _local6:Number = ((_arg2 & 0xFF) / 0xFF);
var _local7:Number = (1 - _arg3);
var _local8:Array = [(_local7 + ((_arg3 * _local4) * _lumR)), ((_arg3 * _local4) * _lumG), ((_arg3 * _local4) * _lumB), 0, 0, ((_arg3 * _local5) * _lumR), (_local7 + ((_arg3 * _local5) * _lumG)), ((_arg3 * _local5) * _lumB), 0, 0, ((_arg3 * _local6) * _lumR), ((_arg3 * _local6) * _lumG), (_local7 + ((_arg3 * _local6) * _lumB)), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local8, _arg1));
}
public static function setBrightness(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = ((_arg2 * 100) - 100);
return (applyMatrix([1, 0, 0, 0, _arg2, 0, 1, 0, 0, _arg2, 0, 0, 1, 0, _arg2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], _arg1));
}
}
}//package com.greensock.plugins
Section 11
//ColorTransformPlugin (com.greensock.plugins.ColorTransformPlugin)
package com.greensock.plugins {
import com.greensock.*;
import flash.display.*;
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 com.greensock.plugins
Section 12
//DropShadowFilterPlugin (com.greensock.plugins.DropShadowFilterPlugin)
package com.greensock.plugins {
import com.greensock.*;
import flash.display.*;
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 com.greensock.plugins
Section 13
//EndArrayPlugin (com.greensock.plugins.EndArrayPlugin)
package com.greensock.plugins {
import com.greensock.*;
import flash.display.*;
public class EndArrayPlugin extends TweenPlugin {
protected var _a:Array;
protected var _info:Array;
public static const API:Number = 1;
public function EndArrayPlugin(){
_info = [];
super();
this.propName = "endArray";
this.overwriteProps = ["endArray"];
}
public function init(_arg1:Array, _arg2:Array):void{
_a = _arg1;
var _local3:int = _arg2.length;
while (_local3--) {
if (((!((_arg1[_local3] == _arg2[_local3]))) && (!((_arg1[_local3] == null))))){
_info[_info.length] = new ArrayTweenInfo(_local3, _a[_local3], (_arg2[_local3] - _a[_local3]));
};
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (false);
};
init((_arg1 as Array), _arg2);
return (true);
}
override public function set changeFactor(_arg1:Number):void{
var _local3:ArrayTweenInfo;
var _local4:Number;
var _local2:int = _info.length;
if (this.round){
while (_local2--) {
_local3 = _info[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_a[_local3.index] = ((_local4)>0) ? int((_local4 + 0.5)) : int((_local4 - 0.5));
};
} else {
while (_local2--) {
_local3 = _info[_local2];
_a[_local3.index] = (_local3.start + (_local3.change * _arg1));
};
};
}
}
}//package com.greensock.plugins
class ArrayTweenInfo {
public var change:Number;
public var start:Number;
public var index:uint;
private function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){
this.index = _arg1;
this.start = _arg2;
this.change = _arg3;
}
}
Section 14
//FilterPlugin (com.greensock.plugins.FilterPlugin)
package com.greensock.plugins {
import com.greensock.core.*;
import com.greensock.*;
import flash.display.*;
import flash.filters.*;
public class FilterPlugin extends TweenPlugin {
protected var _remove:Boolean;
protected var _target:Object;
protected var _index:int;
protected var _filter:BitmapFilter;
protected var _type:Class;
public static const VERSION:Number = 2.03;
public static const API:Number = 1;
public function onCompleteTween():void{
var _local1:Array;
var _local2:int;
if (_remove){
_local1 = _target.filters;
if (!(_local1[_index] is _type)){
_local2 = _local1.length;
while (_local2--) {
if ((_local1[_local2] is _type)){
_local1.splice(_local2, 1);
break;
};
};
} else {
_local1.splice(_index, 1);
};
_target.filters = _local1;
};
}
protected function initFilter(_arg1:Object, _arg2:BitmapFilter, _arg3:Array):void{
var _local5:String;
var _local6:int;
var _local7:HexColorsPlugin;
var _local4:Array = _target.filters;
var _local8:Object = ((_arg1 is BitmapFilter)) ? {} : _arg1;
_index = -1;
if (_local8.index != null){
_index = _local8.index;
} else {
_local6 = _local4.length;
while (_local6--) {
if ((_local4[_local6] is _type)){
_index = _local6;
break;
};
};
};
if ((((((_index == -1)) || ((_local4[_index] == null)))) || ((_local8.addFilter == true)))){
_index = ((_local8.index)!=null) ? _local8.index : _local4.length;
_local4[_index] = _arg2;
_target.filters = _local4;
};
_filter = _local4[_index];
if (_local8.remove == true){
_remove = true;
this.onComplete = onCompleteTween;
};
_local6 = _arg3.length;
while (_local6--) {
_local5 = _arg3[_local6];
if ((((_local5 in _arg1)) && (!((_filter[_local5] == _arg1[_local5]))))){
if ((((((_local5 == "color")) || ((_local5 == "highlightColor")))) || ((_local5 == "shadowColor")))){
_local7 = new HexColorsPlugin();
_local7.initColor(_filter, _local5, _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")))){
_filter[_local5] = _arg1[_local5];
} else {
addTween(_filter, _local5, _filter[_local5], _arg1[_local5], _local5);
};
};
};
};
}
override public function set changeFactor(_arg1:Number):void{
var _local3:PropTween;
var _local2:int = _tweens.length;
var _local4:Array = _target.filters;
while (_local2--) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1));
};
if (!(_local4[_index] is _type)){
_local2 = (_index = _local4.length);
while (_local2--) {
if ((_local4[_local2] is _type)){
_index = _local2;
break;
};
};
};
_local4[_index] = _filter;
_target.filters = _local4;
}
}
}//package com.greensock.plugins
Section 15
//FrameLabelPlugin (com.greensock.plugins.FrameLabelPlugin)
package com.greensock.plugins {
import com.greensock.*;
import flash.display.*;
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 com.greensock.plugins
Section 16
//FramePlugin (com.greensock.plugins.FramePlugin)
package com.greensock.plugins {
import com.greensock.*;
import flash.display.*;
public class FramePlugin extends TweenPlugin {
protected var _target:MovieClip;
public var frame:int;
public static const API:Number = 1;
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);
};
_target = (_arg1 as MovieClip);
this.frame = _target.currentFrame;
addTween(this, "frame", this.frame, _arg2, "frame");
return (true);
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.gotoAndStop(this.frame);
}
}
}//package com.greensock.plugins
Section 17
//GlowFilterPlugin (com.greensock.plugins.GlowFilterPlugin)
package com.greensock.plugins {
import com.greensock.*;
import flash.display.*;
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 com.greensock.plugins
Section 18
//HexColorsPlugin (com.greensock.plugins.HexColorsPlugin)
package com.greensock.plugins {
import com.greensock.*;
import flash.display.*;
public class HexColorsPlugin extends TweenPlugin {
protected var _colors:Array;
public static const API:Number = 1;
public function HexColorsPlugin(){
this.propName = "hexColors";
this.overwriteProps = [];
_colors = [];
}
override public function killProps(_arg1:Object):void{
var _local2:int = (_colors.length - 1);
while (_local2 > -1) {
if (_arg1[_colors[_local2][1]] != undefined){
_colors.splice(_local2, 1);
};
_local2--;
};
super.killProps(_arg1);
}
public function initColor(_arg1:Object, _arg2:String, _arg3:uint, _arg4:uint):void{
var _local5:Number;
var _local6:Number;
var _local7:Number;
if (_arg3 != _arg4){
_local5 = (_arg3 >> 16);
_local6 = ((_arg3 >> 8) & 0xFF);
_local7 = (_arg3 & 0xFF);
_colors[_colors.length] = [_arg1, _arg2, _local5, ((_arg4 >> 16) - _local5), _local6, (((_arg4 >> 8) & 0xFF) - _local6), _local7, ((_arg4 & 0xFF) - _local7)];
this.overwriteProps[this.overwriteProps.length] = _arg2;
};
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:Array;
_local2 = (_colors.length - 1);
while (_local2 > -1) {
_local3 = _colors[_local2];
_local3[0][_local3[1]] = ((((_local3[2] + (_arg1 * _local3[3])) << 16) | ((_local3[4] + (_arg1 * _local3[5])) << 8)) | (_local3[6] + (_arg1 * _local3[7])));
_local2--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:String;
for (_local4 in _arg2) {
initColor(_arg1, _local4, uint(_arg1[_local4]), uint(_arg2[_local4]));
};
return (true);
}
}
}//package com.greensock.plugins
Section 19
//RemoveTintPlugin (com.greensock.plugins.RemoveTintPlugin)
package com.greensock.plugins {
public class RemoveTintPlugin extends TintPlugin {
public static const API:Number = 1;
public function RemoveTintPlugin(){
this.propName = "removeTint";
}
}
}//package com.greensock.plugins
Section 20
//RoundPropsPlugin (com.greensock.plugins.RoundPropsPlugin)
package com.greensock.plugins {
import com.greensock.*;
import flash.display.*;
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 com.greensock.plugins
Section 21
//ShortRotationPlugin (com.greensock.plugins.ShortRotationPlugin)
package com.greensock.plugins {
import com.greensock.*;
import flash.display.*;
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) {
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 com.greensock.plugins
Section 22
//TintPlugin (com.greensock.plugins.TintPlugin)
package com.greensock.plugins {
import com.greensock.core.*;
import com.greensock.*;
import flash.display.*;
import flash.geom.*;
public class TintPlugin extends TweenPlugin {
protected var _ct:ColorTransform;
protected var _transform:Transform;
protected var _ignoreAlpha:Boolean;
public static const API:Number = 1;
protected static var _props:Array = ["redMultiplier", "greenMultiplier", "blueMultiplier", "alphaMultiplier", "redOffset", "greenOffset", "blueOffset", "alphaOffset"];
public function TintPlugin(){
this.propName = "tint";
this.overwriteProps = ["tint"];
}
override public function 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);
};
_ignoreAlpha = true;
init((_arg1 as DisplayObject), _local4);
return (true);
}
override public function set changeFactor(_arg1:Number):void{
var _local2:ColorTransform;
updateTweens(_arg1);
if (_ignoreAlpha){
_local2 = _transform.colorTransform;
_ct.alphaMultiplier = _local2.alphaMultiplier;
_ct.alphaOffset = _local2.alphaOffset;
};
_transform.colorTransform = _ct;
}
public function init(_arg1:DisplayObject, _arg2:ColorTransform):void{
var _local4:String;
_transform = _arg1.transform;
_ct = _transform.colorTransform;
var _local3:int = _props.length;
while (_local3--) {
_local4 = _props[_local3];
if (_ct[_local4] != _arg2[_local4]){
_tweens[_tweens.length] = new PropTween(_ct, _local4, _ct[_local4], (_arg2[_local4] - _ct[_local4]), "tint", false);
};
};
}
}
}//package com.greensock.plugins
Section 23
//TweenPlugin (com.greensock.plugins.TweenPlugin)
package com.greensock.plugins {
import com.greensock.core.*;
import com.greensock.*;
public class TweenPlugin {
public var activeDisable:Boolean;
protected var _changeFactor:Number;// = 0
protected var _tweens:Array;
public var onDisable:Function;
public var propName:String;
public var round:Boolean;
public var onEnable:Function;
public var priority:int;// = 0
public var overwriteProps:Array;
public var onComplete:Function;
public static const VERSION:Number = 1.31;
public static const API:Number = 1;
public function TweenPlugin(){
_tweens = [];
super();
}
protected function updateTweens(_arg1:Number):void{
var _local3:PropTween;
var _local4:Number;
var _local2:int = _tweens.length;
if (this.round){
while (_local2--) {
_local3 = _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 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1));
};
};
}
protected function addTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String=null):void{
var _local6:Number;
if (_arg4 != null){
_local6 = ((typeof(_arg4))=="number") ? (Number(_arg4) - _arg3) : Number(_arg4);
if (_local6 != 0){
_tweens[_tweens.length] = new PropTween(_arg1, _arg2, _arg3, _local6, ((_arg5) || (_arg2)), false);
};
};
}
public function get changeFactor():Number{
return (_changeFactor);
}
public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
addTween(_arg1, this.propName, _arg1[this.propName], _arg2, this.propName);
return (true);
}
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 = _tweens.length;
while (_local2--) {
if ((PropTween(_tweens[_local2]).name in _arg1)){
_tweens.splice(_local2, 1);
};
};
}
public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_changeFactor = _arg1;
}
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);
}
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);
}
}
}//package com.greensock.plugins
Section 24
//VisiblePlugin (com.greensock.plugins.VisiblePlugin)
package com.greensock.plugins {
import com.greensock.*;
import flash.display.*;
public class VisiblePlugin extends TweenPlugin {
protected var _target:Object;
protected var _initVal:Boolean;
protected var _visible:Boolean;
protected var _tween:TweenLite;
public static const API:Number = 1;
public function VisiblePlugin(){
this.propName = "visible";
this.overwriteProps = ["visible"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_initVal = _target.visible;
_visible = Boolean(_arg2);
return (true);
}
override public function set changeFactor(_arg1:Number):void{
if ((((_arg1 == 1)) && ((((_tween.cachedDuration == _tween.cachedTime)) || ((_tween.cachedTime == 0)))))){
_target.visible = _visible;
} else {
_target.visible = _initVal;
};
}
}
}//package com.greensock.plugins
Section 25
//VolumePlugin (com.greensock.plugins.VolumePlugin)
package com.greensock.plugins {
import com.greensock.*;
import flash.display.*;
import flash.media.*;
public class VolumePlugin extends TweenPlugin {
protected var _target:Object;
protected var _st:SoundTransform;
public static const API:Number = 1;
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);
};
_target = _arg1;
_st = _target.soundTransform;
addTween(_st, "volume", _st.volume, _arg2, "volume");
return (true);
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.soundTransform = _st;
}
}
}//package com.greensock.plugins
Section 26
//OverwriteManager (com.greensock.OverwriteManager)
package com.greensock {
import com.greensock.core.*;
import flash.utils.*;
import flash.errors.*;
public class OverwriteManager {
public static const ALL_ONSTART:int = 4;
public static const CONCURRENT:int = 3;
public static const ALL_IMMEDIATE:int = 1;
public static const PREEXISTING:int = 5;
public static const AUTO:int = 2;
public static const version:Number = 6;
public static const NONE:int = 0;
public static var enabled:Boolean;
public static var mode:int;
public static function getGlobalPaused(_arg1:TweenCore):Boolean{
while (_arg1) {
if (_arg1.cachedPaused){
return (true);
};
_arg1 = _arg1.timeline;
};
return (false);
}
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);
}
}
}//package com.greensock
Section 27
//TweenLite (com.greensock.TweenLite)
package com.greensock {
import com.greensock.core.*;
import flash.events.*;
import flash.display.*;
import com.greensock.plugins.*;
import flash.utils.*;
public class TweenLite extends TweenCore {
protected var _hasPlugins:Boolean;
public var propTweenLookup:Object;
public var cachedPT1:PropTween;
protected var _overwrite:uint;
protected var _ease:Function;
public var target:Object;
public var ratio:Number;// = 0
protected var _overwrittenProps:Object;
protected var _notifyPluginsOfEnabled:Boolean;
public static const version:Number = 11.12;
public static var rootTimeline:SimpleTimeline;
public static var fastEaseLookup:Dictionary = new Dictionary(false);
public static var onPluginEvent:Function;
public static var rootFramesTimeline:SimpleTimeline;
public static var defaultEase:Function = TweenLite.easeOut;
public static var plugins:Object = {};
public static var masterList:Dictionary = new Dictionary(false);
public static var overwriteManager:Object;
public static var rootFrame:Number;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
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 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;
};
propTweenLookup = {};
_ease = defaultEase;
_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 (_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))){
renderTime(0, false, true);
};
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:Boolean;
var _local5:Number = this.cachedTime;
if (((!(this.active)) && (!(this.cachedPaused)))){
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 = _ease(_arg1, 0, 1, this.cachedDuration);
};
};
if ((((this.cachedTime == _local5)) && (!(_arg3)))){
return;
};
if (!this.initted){
init();
if (((!(_local4)) && (this.cachedTime))){
this.ratio = _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 (((_hasPlugins) && (this.cachedPT1))){
onPluginEvent("onComplete", this);
};
complete(true, _arg2);
};
}
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 (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
return (onPluginEvent((_arg1) ? "onEnable" : "onDisable", this));
};
};
return (false);
}
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"){
_ease = this.vars.ease;
};
if (this.vars.easeParams){
this.vars.proxiedEase = _ease;
_ease = 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))){
_notifyPluginsOfEnabled = true;
};
_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 (_overwrittenProps){
killVars(_overwrittenProps);
if (this.cachedPT1 == null){
this.setEnabled(false, false);
};
};
if ((((((((_overwrite > 1)) && (this.cachedPT1))) && (masterList[this.target]))) && ((_local5.length > 1)))){
if (overwriteManager.manageOverwrites(this, this.propTweenLookup, _local5, _overwrite)){
init();
};
};
this.initted = true;
}
public function killVars(_arg1:Object, _arg2:Boolean=true):Boolean{
var _local3:String;
var _local4:PropTween;
var _local5:Boolean;
if (_overwrittenProps == null){
_overwrittenProps = {};
};
for (_local3 in _arg1) {
if ((_local3 in propTweenLookup)){
_local4 = 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 propTweenLookup[_local3];
};
};
if (_arg2){
_overwrittenProps[_local3] = 1;
};
};
return (_local5);
}
override public function invalidate():void{
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
onPluginEvent("onDisable", this);
};
this.cachedPT1 = null;
_overwrittenProps = null;
_hasUpdate = (this.initted = (this.active = (_notifyPluginsOfEnabled = false)));
this.propTweenLookup = {};
}
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 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];
};
}
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));
}
protected static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (1 - (_arg1 / _arg4));
return ((1 - (_arg1 * _arg1)));
}
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 to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package com.greensock
Section 28
//TweenMax (com.greensock.TweenMax)
package com.greensock {
import com.greensock.core.*;
import flash.events.*;
import flash.display.*;
import com.greensock.plugins.*;
import com.greensock.events.*;
import flash.utils.*;
public class TweenMax extends TweenLite implements IEventDispatcher {
protected var _easeType:uint;
public var yoyo:Boolean;
protected var _easePower:uint;
protected var _repeat:int;// = 0
protected var _cyclesComplete:uint;// = 0
protected var _dispatcher:EventDispatcher;
protected var _hasUpdateListener:Boolean;
protected var _repeatDelay:Number;// = 0
public static const version:Number = 11.12;
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;
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);
_repeat = ((this.vars.repeat) || (0));
_repeatDelay = ((this.vars.repeatDelay) || (0));
this.cacheIsDirty = true;
if (((((((((this.vars.onCompleteListener) || (this.vars.onUpdateListener))) || (this.vars.onStartListener))) || (this.vars.onRepeatListener))) || (this.vars.onReverseCompleteListener))){
initDispatcher();
if ((((_arg2 == 0)) && ((_delay == 0)))){
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE));
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE));
};
};
if (((("timeScale" in this.vars)) && (!((this.target is TweenCore))))){
this.cachedTimeScale = this.vars.timeScale;
};
}
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 (_repeat != 0){
_local10 = (this.cachedDuration + _repeatDelay);
if (_local6){
if (((this.yoyo) && ((_repeat % 2)))){
this.cachedTime = (this.ratio = 0);
};
} else {
if (_arg1 > 0){
if (_cyclesComplete != (_cyclesComplete = int((this.cachedTotalTime / _local10)))){
_local7 = true;
};
this.cachedTime = (((this.cachedTotalTime / _local10) - _cyclesComplete) * _local10);
if (((this.yoyo) && ((_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){
init();
};
if (_local8){
if (_easeType){
_local11 = _easePower;
_local12 = (this.cachedTime / this.cachedDuration);
if (_easeType == 2){
_local12 = (1 - _local12);
this.ratio = _local12;
while (_local11--) {
this.ratio = (_local12 * this.ratio);
};
this.ratio = (1 - this.ratio);
} else {
if (_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 (_dispatcher){
_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 (((_hasUpdateListener) && (!(_arg2)))){
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE));
};
if (_local6){
if (((_hasPlugins) && (this.cachedPT1))){
onPluginEvent("onComplete", this);
};
complete(true, _arg2);
} else {
if (((_local7) && (!(_arg2)))){
if (this.vars.onRepeat){
this.vars.onRepeat.apply(null, this.vars.onRepeatParams);
};
if (_dispatcher){
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.REPEAT));
};
};
};
}
public function willTrigger(_arg1:String):Boolean{
return (((_dispatcher)==null) ? false : _dispatcher.willTrigger(_arg1));
}
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);
}
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:PropTween;
var _local9: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)){
_easeType = fastEaseLookup[_ease][0];
_easePower = fastEaseLookup[_ease][1];
};
if (((!((this.vars.roundProps == null))) && (("roundProps" in TweenLite.plugins)))){
_local5 = this.vars.roundProps;
_local9 = _local5.length;
while (_local9--) {
_local3 = _local5[_local9];
_local8 = this.cachedPT1;
while (_local8) {
if (_local8.name == _local3){
if (_local8.isPlugin){
_local8.target.round = true;
} else {
if (_local6 == null){
_local6 = new TweenLite.plugins.roundProps();
_local6.add(_local8.target, _local3, _local8.start, _local8.change);
_hasPlugins = true;
_local7 = insertPropTween(_local6, "changeFactor", 0, 1, "_MULTIPLE_", true, this.cachedPT1);
this.cachedPT1 = _local7;
} else {
_local6.add(_local8.target, _local3, _local8.start, _local8.change);
};
this.removePropTween(_local8);
this.propTweenLookup[_local3] = _local7;
};
} else {
if (((((_local8.isPlugin) && ((_local8.name == "_MULTIPLE_")))) && (!(_local8.target.round)))){
_local4 = ((" " + _local8.target.overwriteProps.join(" ")) + " ");
if (_local4.indexOf(((" " + _local3) + " ")) != -1){
_local8.target.round = true;
};
};
};
_local8 = _local8.nextNode;
};
};
};
}
public function get totalProgress():Number{
return ((this.cachedTotalTime / this.totalDuration));
}
public function set currentProgress(_arg1:Number):void{
if (_cyclesComplete == 0){
setTotalTime((this.duration * _arg1), false);
} else {
setTotalTime(((this.duration * _arg1) + (_cyclesComplete * this.cachedDuration)), false);
};
}
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 get repeat():int{
return (_repeat);
}
public function set totalProgress(_arg1:Number):void{
setTotalTime((this.totalDuration * _arg1), false);
}
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);
}
public function get repeatDelay():Number{
return (_repeatDelay);
}
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 = 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 = 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))){
adjustStartValues();
};
} else {
for (_local5 in _arg1) {
this.vars[_local5] = _arg1[_local5];
};
};
}
public function killProperties(_arg1:Array):void{
var _local2:Object = {};
var _local3:int = _arg1.length;
while (_local3--) {
_local2[_arg1[_local3]] = true;
};
killVars(_local2);
}
public function set repeat(_arg1:int):void{
_repeat = _arg1;
setDirtyCache(true);
}
override public function complete(_arg1:Boolean=false, _arg2:Boolean=false):void{
super.complete(_arg1, _arg2);
if (((!(_arg2)) && (_dispatcher))){
if ((((this.cachedTotalTime == this.cachedTotalDuration)) && (!(this.cachedReversed)))){
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE));
} else {
if (((this.cachedReversed) && ((this.cachedTotalTime == 0)))){
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.REVERSE_COMPLETE));
};
};
};
}
override public function invalidate():void{
this.yoyo = Boolean((this.vars.yoyo == true));
_repeat = ((this.vars.repeat) || (0));
_repeatDelay = ((this.vars.repeatDelay) || (0));
_hasUpdateListener = false;
if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){
initDispatcher();
};
setDirtyCache(true);
super.invalidate();
}
public function dispatchEvent(_arg1:Event):Boolean{
return (((_dispatcher)==null) ? false : _dispatcher.dispatchEvent(_arg1));
}
public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
if (_dispatcher){
_dispatcher.removeEventListener(_arg1, _arg2, _arg3);
};
}
public function setDestination(_arg1:String, _arg2, _arg3:Boolean=true):void{
var _local4:Object = {};
_local4[_arg1] = _arg2;
updateTo(_local4, _arg3);
}
public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
if (_dispatcher == null){
initDispatcher();
};
if (_arg1 == TweenEvent.UPDATE){
_hasUpdateListener = true;
};
_dispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function set repeatDelay(_arg1:Number):void{
_repeatDelay = _arg1;
setDirtyCache(true);
}
override public function set currentTime(_arg1:Number):void{
if (_cyclesComplete == 0){
} else {
if (((this.yoyo) && (((_cyclesComplete % 2) == 1)))){
_arg1 = ((this.duration - _arg1) + (_cyclesComplete * (this.cachedDuration + _repeatDelay)));
} else {
_arg1 = (_arg1 + (_cyclesComplete * (this.duration + _repeatDelay)));
};
};
setTotalTime(_arg1, false);
}
public function get currentProgress():Number{
return ((this.cachedTime / this.duration));
}
protected function initDispatcher():void{
if (_dispatcher == null){
_dispatcher = new EventDispatcher(this);
};
if ((this.vars.onStartListener is Function)){
_dispatcher.addEventListener(TweenEvent.START, this.vars.onStartListener, false, 0, true);
};
if ((this.vars.onUpdateListener is Function)){
_dispatcher.addEventListener(TweenEvent.UPDATE, this.vars.onUpdateListener, false, 0, true);
_hasUpdateListener = true;
};
if ((this.vars.onCompleteListener is Function)){
_dispatcher.addEventListener(TweenEvent.COMPLETE, this.vars.onCompleteListener, false, 0, true);
};
if ((this.vars.onRepeatListener is Function)){
_dispatcher.addEventListener(TweenEvent.REPEAT, this.vars.onRepeatListener, false, 0, true);
};
if ((this.vars.onReverseCompleteListener is Function)){
_dispatcher.addEventListener(TweenEvent.REVERSE_COMPLETE, this.vars.onReverseCompleteListener, false, 0, true);
};
}
override public function set totalDuration(_arg1:Number):void{
if (_repeat == -1){
return;
};
this.duration = ((_arg1 - (_repeat * _repeatDelay)) / (_repeat + 1));
}
public function hasEventListener(_arg1:String):Boolean{
return (((_dispatcher)==null) ? false : _dispatcher.hasEventListener(_arg1));
}
override public function get totalDuration():Number{
if (this.cacheIsDirty){
this.cachedTotalDuration = ((_repeat)==-1) ? 999999999999 : ((this.cachedDuration * (_repeat + 1)) + (_repeatDelay * _repeat));
this.cacheIsDirty = false;
};
return (this.cachedTotalDuration);
}
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 timeScale():Number{
return (this.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);
}
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 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 pauseAll(_arg1:Boolean=true, _arg2:Boolean=true):void{
changePause(true, _arg1, _arg2);
}
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 get globalTimeScale():Number{
return (((TweenLite.rootTimeline)==null) ? 1 : TweenLite.rootTimeline.cachedTimeScale);
}
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 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 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 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);
};
};
};
}
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 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 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 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 resumeAll(_arg1:Boolean=true, _arg2:Boolean=true):void{
changePause(false, _arg1, _arg2);
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{
return (new TweenMax(_arg1, _arg2, _arg3));
}
public static function allTo(_arg1:Array, _arg2:Number, _arg3:Object, _arg4:Number=0, _arg5:Function=null, _arg6:Array=null):Array{
var i:int;
var varsDup:Object;
var p:String;
var onCompleteProxy:Function;
var onCompleteParamsProxy:Array;
var targets = _arg1;
var duration = _arg2;
var vars = _arg3;
var stagger = _arg4;
var onCompleteAll = _arg5;
var onCompleteAllParams = _arg6;
var l:uint = targets.length;
var a:Array = [];
var curDelay:Number = ((vars.delay) || (0));
onCompleteProxy = vars.onComplete;
onCompleteParamsProxy = vars.onCompleteParams;
var lastIndex:int = ((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);
}
TweenPlugin.activate([AutoAlphaPlugin, EndArrayPlugin, FramePlugin, RemoveTintPlugin, TintPlugin, VisiblePlugin, VolumePlugin, BevelFilterPlugin, BezierPlugin, BezierThroughPlugin, BlurFilterPlugin, ColorMatrixFilterPlugin, ColorTransformPlugin, DropShadowFilterPlugin, FrameLabelPlugin, GlowFilterPlugin, HexColorsPlugin, RoundPropsPlugin, ShortRotationPlugin, {}]);
}
}//package com.greensock
Section 29
//Character_251 (mermaid_fla.Character_251)
package mermaid_fla {
import flash.display.*;
public dynamic class Character_251 extends MovieClip {
public var c01;
public var ci01;
public var color01:MovieClip;
public function Character_251(){
addFrameScript(0, frame1);
}
function frame1(){
c01 = 14660235;
ci01 = false;
}
}
}//package mermaid_fla
Section 30
//colorPickerHolder_769 (mermaid_fla.colorPickerHolder_769)
package mermaid_fla {
import flash.display.*;
public dynamic class colorPickerHolder_769 extends MovieClip {
public var close:MovieClip;
public var edge:MovieClip;
public var resetColors:MovieClip;
public function colorPickerHolder_769(){
addFrameScript(0, frame1);
}
function frame1(){
edge.mouseEnabled = false;
edge.mouseChildren = false;
}
}
}//package mermaid_fla
Section 31
//CuteZeeLogo_248 (mermaid_fla.CuteZeeLogo_248)
package mermaid_fla {
import com.greensock.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class CuteZeeLogo_248 extends MovieClip {
public var circle_mc:MovieClip;
public var cuteZee_mc:MovieClip;
public function CuteZeeLogo_248(){
addFrameScript(0, frame1);
}
public function onOver(_arg1:MouseEvent):void{
TweenMax.to(this, 0.5, {glowFilter:{color:0xFF6600, alpha:1, blurX:10, blurY:10, strength:2}});
}
function frame1(){
buttonMode = true;
addEventListener(MouseEvent.CLICK, onClick);
addEventListener(MouseEvent.MOUSE_OVER, onOver);
addEventListener(MouseEvent.MOUSE_OUT, onOut);
}
public function onClick(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://www.cutezee.com/");
navigateToURL(_local2);
}
public function onOut(_arg1:MouseEvent):void{
TweenMax.to(this, 0.5, {glowFilter:{alpha:0}});
}
}
}//package mermaid_fla
Section 32
//CuteZeePreloader_1 (mermaid_fla.CuteZeePreloader_1)
package mermaid_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.utils.*;
import flash.errors.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class CuteZeePreloader_1 extends MovieClip {
public var circle_mc:MovieClip;
public var progress_mc:MovieClip;
public var Box_mc:MovieClip;
public var hit:MovieClip;
public var pcent:Number;
public var cuteZee_mc:MovieClip;
public function CuteZeePreloader_1(){
addFrameScript(0, frame1);
}
public function loading(_arg1:ProgressEvent):void{
pcent = ((_arg1.bytesLoaded / _arg1.bytesTotal) * 100);
}
public function animation(_arg1:Event):void{
if (progress_mc.bar_mc.currentFrame < Math.round(pcent)){
progress_mc.bar_mc.nextFrame();
};
if (progress_mc.bar_mc.currentFrame == 100){
progress_mc.play();
removeEventListener(Event.ENTER_FRAME, animation);
progress_mc.play_btn.addEventListener(MouseEvent.MOUSE_UP, clickToPlay);
};
}
public function onClick(_arg1){
var _local2:URLRequest = new URLRequest("http://www.cutezee.com/");
navigateToURL(_local2);
}
function frame1(){
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, loading);
addEventListener(Event.ENTER_FRAME, animation);
hit.buttonMode = true;
hit.addEventListener(MouseEvent.CLICK, onClick);
}
public function clickToPlay(_arg1:MouseEvent):void{
dispatchEvent(new Event("discardPreloader"));
}
}
}//package mermaid_fla
Section 33
//Fallingstars_795 (mermaid_fla.Fallingstars_795)
package mermaid_fla {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Fallingstars_795 extends MovieClip {
public var timer:Timer;
public var density;
public function Fallingstars_795(){
addFrameScript(0, frame1);
}
function frame1(){
timer = new Timer(25);
timer.addEventListener(TimerEvent.TIMER, update);
density = 3;
timer.start();
}
public function update(_arg1:TimerEvent){
var _local2:*;
if ((timer.currentCount % density) == 0){
_local2 = new Star();
addChild(_local2);
_local2.speedX = ((Math.random() * 4) - 2);
_local2.speedY = (Math.random() * 5);
_local2.rotate = ((Math.random() * 40) - 20);
_local2.x = ((Math.random() * 40) - 20);
_local2.y = ((Math.random() * 40) - 20);
_local2.scaleX = (_local2.scaleY = (Math.random() * 0.8));
};
var _local3:* = 0;
while (_local3 < numChildren) {
_local2 = getChildAt(_local3);
_local2.x = (_local2.x + _local2.speedX);
_local2.y = (_local2.y - _local2.speedY);
_local2.speedY--;
_local2.alpha = (_local2.alpha - ((Math.round(Math.random()) * 0.04) + 0.03));
_local2.rotation = (_local2.rotation - _local2.rotate);
if (_local2.alpha <= 0){
removeChild(_local2);
_local3--;
};
_local3++;
};
}
}
}//package mermaid_fla
Section 34
//Game_341 (mermaid_fla.Game_341)
package mermaid_fla {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Game_341 extends MovieClip {
public var coolBar:MovieClip;
public var skinTabTooltip:MovieClip;
public var onCharacter;
public var originalColor;
public var kChannel:MovieClip;
public var clothesHolder:MovieClip;
public var skincolorChannel:MovieClip;
public var updateTimer:Timer;
public var colorChannel:MovieClip;
public var skindelay;
public var skinShape;
public var clothesTab:MovieClip;
public var hairHolder:MovieClip;
public var hairTabTooltip:MovieClip;
public var skincolorPicker:MovieClip;
public var distributionArray:Array;
public var playBack:MovieClip;
public var step2Tooltip:MovieClip;
public var printButton:MovieClip;
public var item_eyes_1:MovieClip;
public var item_eyes_2:MovieClip;
public var item_eyes_3:MovieClip;
public var item_eyes_4:MovieClip;
public var item_eyes_5:MovieClip;
public var item_eyes_6:MovieClip;
public var item_eyes_7:MovieClip;
public var item_eyes_8:MovieClip;
public var omg:MovieClip;
public var playing:Boolean;
public var colorGrad:Shape;
public var hairTab:MovieClip;
public var skindistributionArray:Array;
public var omgcount:int;
public var item_hair_10:MovieClip;
public var item_hair_11:MovieClip;
public var item_hair_12:MovieClip;
public var item_hair_13:MovieClip;
public var item_hair_14:MovieClip;
public var item_hair_15:MovieClip;
public var item_hair_17:MovieClip;
public var item_hair_18:MovieClip;
public var item_hair_16:MovieClip;
public var playAgain:MovieClip;
public var skinkChannel:MovieClip;
public var tutorialTimer:Timer;
public var step7Tooltip:MovieClip;
public var coolBarTooltip:MovieClip;
public var cobrand:MovieClip;
public var playMore:MovieClip;
public var eyesHolder:MovieClip;
public var eyesTabTooltip:MovieClip;
public var colorArray:Array;
public var skinbmpData:BitmapData;
public var bmpData:BitmapData;
public var step;
public var initialized:Boolean;
public var mouthTabTooltip:MovieClip;
public var skinTab:MovieClip;
public var step5Tooltip:MovieClip;
public var colorPickerHolder:MovieClip;
public var skinalphaArray:Array;
public var category:String;
public var skincolorPickerHolder:MovieClip;
public var active;
public var clothesTabTooltip:MovieClip;
public var step3Tooltip:MovieClip;
public var character:MovieClip;
public var info1Tooltip:MovieClip;
public var mouthTab:MovieClip;
public var mouthHolder:MovieClip;
public var kGrad:Shape;
public var cats;
public var step1Tooltip:MovieClip;
public var skinpickerH;
public var tutorial;
public var skincolorPickerTimer;
public var skinpickerW;
public var skincolorGrad:Shape;
public var pickerH;
public var delay;
public var skinHolder:MovieClip;
public var item_mouth_1:MovieClip;
public var item_mouth_3:MovieClip;
public var item_mouth_4:MovieClip;
public var item_mouth_5:MovieClip;
public var item_mouth_6:MovieClip;
public var item_mouth_7:MovieClip;
public var item_mouth_8:MovieClip;
public var item_mouth_2:MovieClip;
public var doneBack:MovieClip;
public var done:MovieClip;
public var alphaArray:Array;
public var pickerW;
public var logo:MovieClip;
public var xCharacter;
public var skinoriginalColor;
public var step6Tooltip:MovieClip;
public var delayTimer;
public var item_hair_1:MovieClip;
public var item_hair_2:MovieClip;
public var item_hair_3:MovieClip;
public var item_hair_4:MovieClip;
public var item_hair_5:MovieClip;
public var item_hair_6:MovieClip;
public var item_hair_7:MovieClip;
public var item_hair_8:MovieClip;
public var item_hair_9:MovieClip;
public var item_clothes_1:MovieClip;
public var item_clothes_2:MovieClip;
public var item_clothes_3:MovieClip;
public var item_clothes_4:MovieClip;
public var item_clothes_5:MovieClip;
public var eyesTab:MovieClip;
public var item_clothes_7:MovieClip;
public var item_clothes_8:MovieClip;
public var colorPicker:MovieClip;
public var item_clothes_6:MovieClip;
public var itemGlowed:MovieClip;
public var finishTooltip:MovieClip;
public var skincolorArray:Array;
public var colorPickerTimer;
public var dataHolder:MovieClip;
public var step4Tooltip:MovieClip;
public var skinkGrad:Shape;
public function Game_341(){
addFrameScript(0, frame1);
}
public function onDone(_arg1){
var _local2:*;
var _local3:*;
_local2 = 0;
while (_local2 < cats.length) {
this[(cats[_local2].name + "Tab")].visible = false;
this[(cats[_local2].name + "Holder")].visible = false;
_local2++;
};
playing = false;
logo.scaleX = (logo.scaleY = 0.4);
logo.y = 60;
logo.x = 50;
}
public function hideFinishTooltip(_arg1){
delayTimer.removeEventListener(TimerEvent.TIMER, hideFinishTooltip);
finishTooltip.visible = false;
}
public function getCatIndex(_arg1){
var _local2:* = 0;
while (_local2 < cats.length) {
if (cats[_local2].name == _arg1){
return (_local2);
};
_local2++;
};
}
public function setColor(_arg1){
var _local2:* = dataHolder.selectedShape;
var _local3:* = _local2.parent.name.substr(5);
var _local4:* = ("ci" + _local3);
_local2.parent.parent[_local4] = true;
cats[_local2.parent.parent.catIndex].changed = true;
delay = 5;
hideColorPicker();
var _local5:ColorTransform = _local2.transform.colorTransform;
originalColor = _local5.color;
dispatchEvent(new Event("colorSelected"));
}
public function changeSkinColor(_arg1){
var _local2:* = character.color01.getChildAt(0);
var _local3:ColorTransform = _local2.transform.colorTransform;
_local3.color = skinHolder.skinColor;
_local3.alphaMultiplier = 1;
_local2.transform.colorTransform = _local3;
dispatchEvent(new Event("category"));
}
public function cancelSelection(){
setOriginalColor();
hideColorPicker();
}
public function neutralize(_arg1=null){
var _local2:* = 0;
while (_local2 < cats.length) {
cats[_local2].changed = false;
cats[_local2].active = false;
neutralizeCat(cats[_local2].name);
_local2++;
};
stage.removeEventListener("resetColors", onResetColors);
removeEventListener("category", categoryChanged);
skinHolder.removeEventListener("skinColor", changeSkinColor);
updateTimer.removeEventListener(TimerEvent.TIMER, update);
tutorialTimer.removeEventListener(TimerEvent.TIMER, tutorialUpdate);
colorPickerTimer.removeEventListener(TimerEvent.TIMER, updateColorPicker);
skincolorPickerTimer.removeEventListener(TimerEvent.TIMER, updateskincolorPicker);
initialized = false;
}
public function initializeCat(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:* = this[(_arg1 + "Tab")];
var _local10:* = this[(_arg1 + "Holder")];
_local9.mouseChildren = false;
_local9.addEventListener(MouseEvent.CLICK, changeTab);
_local9.addEventListener(MouseEvent.MOUSE_OVER, showTooltip);
_local9.addEventListener(MouseEvent.MOUSE_OUT, hideTooltip);
var _local11:* = this[(_local9.name + "Tooltip")];
if (_local11 != undefined){
_local11.visible = false;
_local11.txt = (_arg1.substr(0, 1).toUpperCase() + _arg1.substr(1));
};
_local4 = 0;
while (_local4 < _local10.numChildren) {
_local2 = _local10.getChildAt(_local4);
if ((_local2 is MovieClip)){
if (_local2.name.substr(0, (5 + _arg1.length)) == ("item_" + _arg1)){
_local2.addEventListener(MouseEvent.CLICK, onItemClick);
_local2.mouseChildren = false;
_local2.buttonMode = true;
_local3 = this[_local2.name];
_local3.mouseEnabled = false;
_local3.visible = false;
_local3.catName = _arg1;
_local3.catIndex = getCatIndex(_arg1);
_local5 = 0;
while (_local5 < _local3.numChildren) {
_local6 = _local3.getChildAt(_local5);
if ((_local6 is MovieClip)){
_local6.mouseChildren = false;
_local6.mouseEnabled = false;
if (_local6.name.length > 5){
if (_local6.name.substr(0, 7) == "hitZone"){
_local6.mouseEnabled = true;
_local6.addEventListener(MouseEvent.ROLL_OVER, itemOver);
_local6.addEventListener(MouseEvent.ROLL_OUT, itemOut);
_local6.addEventListener(MouseEvent.CLICK, startSelectItemColor);
};
};
};
_local5++;
};
};
};
_local4++;
};
}
public function updateskincolorPicker(_arg1){
skindelay--;
if (skindelay > 0){
return;
};
skincolorPickerHolder.mouseChildren = skincolorPickerHolder.mouseEnabled;
skincolorPickerHolder.visible = ((playing) && ((category == "skin")));
if (skincolorPickerHolder.mouseEnabled){
skincolorPickerHolder.alpha = Math.min(1, (skincolorPickerHolder.alpha + 0.15));
} else {
skincolorPickerHolder.alpha = Math.max(0, (skincolorPickerHolder.alpha - 0.15));
};
}
public function showTooltip(_arg1){
var _local2:* = _arg1.target;
var _local3:* = _local2.name.substr(0, (_local2.name.length - 3));
_local2.buttonMode = cats[getCatIndex(_local3)].active;
if (!playing){
return;
};
if (!cats[getCatIndex(_local3)].active){
return;
};
var _local4:* = this[(_arg1.target.name + "Tooltip")];
if (_local4 != undefined){
_local4.visible = true;
_local4.gotoAndPlay(1);
};
}
public function hideToolTips(){
step1Tooltip.visible = false;
step2Tooltip.visible = false;
step3Tooltip.visible = false;
step4Tooltip.visible = false;
step5Tooltip.visible = false;
step6Tooltip.visible = false;
step7Tooltip.visible = false;
coolBarTooltip.visible = false;
info1Tooltip.visible = false;
finishTooltip.visible = false;
}
public function hideTooltip(_arg1){
var _local2:* = _arg1.target;
var _local3:* = _local2.name.substr(0, (_local2.name.length - 3));
_local2.buttonMode = cats[getCatIndex(_local3)].active;
if (!cats[getCatIndex(_local3)].active){
return;
};
var _local4:* = this[(_arg1.target.name + "Tooltip")];
if (_local4 != undefined){
_local4.visible = false;
};
}
public function onResetColors(_arg1){
var _local2:*;
var _local3:*;
if ((dataHolder.selectedShape is Number)){
return;
};
_local2 = dataHolder.selectedShape.parent;
_local3 = _local2.parent;
resetItem(_local3);
hideColorPicker();
}
function frame1(){
cats = new Array();
onCharacter = new Array();
dataHolder.selectedShape = 0;
dataHolder.percent = 0;
cats.push({name:"hair", basePercent:0.1, dynamicPercent:0.4});
cats.push({name:"eyes", basePercent:0.2, dynamicPercent:0.1});
cats.push({name:"mouth", basePercent:0.1, dynamicPercent:0});
cats.push({name:"skin", basePercent:0, dynamicPercent:0});
cats.push({name:"clothes", basePercent:0.1, dynamicPercent:0});
initialize();
setItem(mouthHolder.item_mouth_8);
setItem(eyesHolder.item_eyes_8);
setItem(hairHolder.item_hair_1);
setItem(clothesHolder.item_clothes_4);
delay = 0;
active = true;
pickerW = 138;
pickerH = 80;
originalColor = 0;
colorPicker = new MovieClip();
bmpData = new BitmapData(100, 100);
colorArray = new Array(0xFF0000, 0xFF8800, 0xFFFF00, 0x88FF00, 0xFF00, 65416, 0xFFFF, 35071, 0xFF, 0x8800FF, 0xFF00FF, 0xFF0088);
alphaArray = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
distributionArray = new Array(134, 145, 156, 167, 178, 189, 200, 211, 222, 233, 244, 0xFF);
colorChannel = new MovieClip();
colorGrad = new Shape();
colorGrad.graphics.beginGradientFill("linear", colorArray, alphaArray, distributionArray);
colorGrad.graphics.drawRect(0, 0, 100, 100);
colorGrad.graphics.endFill();
colorChannel.addChild(colorGrad);
colorPicker.addChild(colorChannel);
kChannel = new MovieClip();
kGrad = new Shape();
kGrad.graphics.beginGradientFill("linear", new Array(0xFFFFFF, 0), new Array(1, 1), new Array(110, 0xFF));
kGrad.graphics.drawRect(0, 0, 100, 100);
kGrad.graphics.endFill();
kChannel.addChild(kGrad);
kChannel.rotation = (kChannel.rotation + 90);
kChannel.x = 100;
kChannel.blendMode = "hardlight";
colorPicker.addChild(kChannel);
colorPicker.width = pickerW;
colorPicker.height = pickerH;
colorPicker.addEventListener(MouseEvent.MOUSE_MOVE, previewColor);
colorPicker.addEventListener(MouseEvent.MOUSE_DOWN, setColor);
colorPicker.addEventListener(MouseEvent.MOUSE_OUT, colorPickerOut);
addEventListener("startSelectColor", startSelection);
colorPicker.x = 8;
colorPicker.y = 4;
colorPickerHolder.addChildAt(colorPicker, 0);
skinShape = character.color01.getChildAt(0);
skindelay = 0;
skinpickerW = 138;
skinpickerH = 80;
skinoriginalColor = 0;
skincolorPicker = new MovieClip();
skinbmpData = new BitmapData(100, 100);
skincolorArray = new Array(16746635, 16755339);
skinalphaArray = new Array(1, 1);
skindistributionArray = new Array(134, 0xFF);
skincolorChannel = new MovieClip();
skincolorGrad = new Shape();
skincolorGrad.graphics.beginGradientFill("linear", skincolorArray, skinalphaArray, skindistributionArray);
skincolorGrad.graphics.drawRect(0, 0, 100, 100);
skincolorGrad.graphics.endFill();
skincolorChannel.addChild(skincolorGrad);
skincolorPicker.addChild(skincolorChannel);
skinkChannel = new MovieClip();
skinkGrad = new Shape();
skinkGrad.graphics.beginGradientFill("linear", new Array(0xFFFFFF, 0x444444), new Array(1, 1), new Array(110, 0xFF));
skinkGrad.graphics.drawRect(0, 0, 100, 100);
skinkGrad.graphics.endFill();
skinkChannel.addChild(skinkGrad);
skinkChannel.rotation = (skinkChannel.rotation + 90);
skinkChannel.x = 100;
skinkChannel.blendMode = "hardlight";
skincolorPicker.addChild(skinkChannel);
skincolorPicker.width = skinpickerW;
skincolorPicker.height = skinpickerH;
skincolorPicker.addEventListener(MouseEvent.MOUSE_MOVE, skinpreviewColor);
skincolorPicker.addEventListener(MouseEvent.MOUSE_DOWN, skinsetColor);
skincolorPicker.addEventListener(MouseEvent.MOUSE_OUT, skincolorPickerOut);
addEventListener("category", startskinSelection);
skincolorPicker.x = 8;
skincolorPicker.y = 4;
skincolorPickerHolder.addChildAt(skincolorPicker, 0);
xCharacter = character.x;
done.addEventListener(MouseEvent.CLICK, onDone);
playAgain.addEventListener(MouseEvent.CLICK, onPlayAgain);
playMore.addEventListener(MouseEvent.CLICK, onPlayMore);
printButton.addEventListener(MouseEvent.CLICK, printPage);
skincolorPickerHolder.close.buttonMode = true;
colorPickerHolder.close.buttonMode = true;
colorPickerHolder.resetColors.buttonMode = true;
colorPickerHolder.resetColors.addEventListener(MouseEvent.CLICK, onReset);
step = 0;
}
public function neutralizeCat(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:* = this[(_arg1 + "Tab")];
var _local10:* = this[(_arg1 + "Holder")];
_local9.removeEventListener(MouseEvent.CLICK, changeTab);
_local9.removeEventListener(MouseEvent.MOUSE_OVER, showTooltip);
_local4 = 0;
while (_local4 < _local10.numChildren) {
_local2 = _local10.getChildAt(_local4);
if ((_local2 is MovieClip)){
if (_local2.name.substr(0, (5 + _arg1.length)) == ("item_" + _arg1)){
_local2.removeEventListener(MouseEvent.CLICK, onItemClick);
_local3 = this[_local2.name];
_local3.catName = _arg1;
_local3.catIndex = getCatIndex(_arg1);
_local5 = 0;
while (_local5 < _local3.numChildren) {
_local6 = _local3.getChildAt(_local5);
if ((_local6 is MovieClip)){
if (_local6.name.length > 5){
if (_local6.name.substr(0, 7) == "hitZone"){
_local6.removeEventListener(MouseEvent.ROLL_OVER, itemOver);
_local6.removeEventListener(MouseEvent.ROLL_OUT, itemOut);
_local6.removeEventListener(MouseEvent.CLICK, startSelectItemColor);
};
};
};
_local5++;
};
};
};
_local4++;
};
}
public function previewColor(_arg1):void{
var _local2:*;
var _local4:ColorTransform;
if ((((_arg1.localY == 0)) || (!(active)))){
return;
};
bmpData.draw(colorPicker);
var _local3:* = bmpData.getPixel((100 - _arg1.localY), _arg1.localX);
if ((dataHolder.selectedShape is Shape)){
_local2 = dataHolder.selectedShape;
_local4 = _local2.transform.colorTransform;
_local4.color = _local3;
_local4.alphaMultiplier = 1;
_local2.transform.colorTransform = _local4;
};
}
public function skinpreviewColor(_arg1):void{
if (_arg1.localY == 0){
return;
};
skinbmpData.draw(skincolorPicker);
var _local2:* = skinbmpData.getPixel((100 - _arg1.localY), _arg1.localX);
var _local3:ColorTransform = skinShape.transform.colorTransform;
_local3.color = _local2;
_local3.alphaMultiplier = 1;
skinShape.transform.colorTransform = _local3;
}
public function skincolorPickerOut(_arg1){
setskinoriginalColor();
}
public function hideinfo1BarTooltip(_arg1){
delayTimer.removeEventListener(TimerEvent.TIMER, hideinfo1BarTooltip);
info1Tooltip.visible = false;
}
public function showColorPicker(_arg1=null){
active = true;
stage.addEventListener(MouseEvent.CLICK, outSideClick);
}
public function hideCoolBarTooltip(_arg1){
delayTimer.removeEventListener(TimerEvent.TIMER, hideCoolBarTooltip);
coolBarTooltip.visible = false;
}
public function skinsetColor(_arg1){
character.ci01 = true;
cats[getCatIndex("skin")].changed = true;
skindelay = 5;
var _local2:ColorTransform = skinShape.transform.colorTransform;
skinoriginalColor = _local2.color;
skincolorPickerHolder.mouseEnabled = false;
dispatchEvent(new Event("skincolorSelected"));
}
public function itemOver(_arg1){
if (!playing){
return;
};
var _local2:* = _arg1.target;
var _local3:* = _local2.name.substr(7);
itemGlowed = _local2.parent;
var _local4:* = itemGlowed[("action" + _local3)];
var _local5:* = itemGlowed.name;
var _local6:* = _local5.substr(5, (_local5.lastIndexOf("_") - 5));
if (!cats[getCatIndex(_local6)].customizable){
return;
};
var _local7:GlowFilter = new GlowFilter();
_local7.color = 0xFF0000;
_local7.blurX = 5;
_local7.blurY = _local7.blurX;
_local4.filters = [_local7];
dispatchEvent(new Event("colorOver"));
}
public function setItem(_arg1, _arg2=false){
var _local6:*;
var _local7:*;
var _local3:* = _arg1.name;
var _local4:* = _arg1.parent;
var _local5:* = _local4.name.substr(0, (_local4.name.length - 6));
cats[getCatIndex(_local5)].changed = _arg2;
var _local8:* = 0;
while (_local8 < numChildren) {
_local6 = getChildAt(_local8);
if ((_local6 is MovieClip)){
if (_local6.name.substr(0, (5 + _local5.length)) == ("item_" + _local5)){
if (_local6.name == _local3){
_local6.visible = true;
if (onCharacter.lastIndexOf(_local6) < 0){
onCharacter.push(_local6);
};
} else {
_local6.visible = false;
_local7 = onCharacter.lastIndexOf(_local6);
if (_local7 >= 0){
onCharacter.splice(_local7, 1);
};
};
};
};
_local8++;
};
}
public function onReset(_arg1){
stage.dispatchEvent(new Event("resetColors"));
}
public function onItemChanged(_arg1){
if (!playing){
return;
};
if (step == 1){
step1Tooltip.visible = false;
removeEventListener("itemChanged", onItemChanged);
coolBarTooltip.visible = true;
coolBarTooltip.txt = "The more customizations you make, the cooler you'll look";
coolBarTooltip.gotoAndPlay(1);
delayTimer = new Timer(9000);
delayTimer.addEventListener(TimerEvent.TIMER, hideCoolBarTooltip);
delayTimer.start();
step++;
};
if ((((step == 7)) && ((category == "eyes")))){
step1Tooltip.visible = false;
step4Tooltip.visible = true;
step4Tooltip.txt = "Select the eye to change it's color";
step4Tooltip.gotoAndPlay(1);
addEventListener("startSelectColor", onColorClick);
step++;
};
if ((((step == 11)) && ((category == "mouth")))){
removeEventListener("itemChanged", onItemChanged);
step1Tooltip.visible = false;
step++;
};
if ((((step == 13)) && ((category == "skin")))){
removeEventListener("skinColor", onItemChanged);
removeEventListener("skincolorSelected", onItemChanged);
step1Tooltip.visible = false;
step++;
};
if ((((step == 15)) && ((category == "clothes")))){
removeEventListener("itemChanged", onItemChanged);
step1Tooltip.visible = false;
step++;
};
}
public function outSideClick(_arg1){
var _local2:* = _arg1.target;
if ((((_local2 is MovieClip)) && ((((((((_local2.name.substr(0, 7) == "hitZone")) || ((_local2.name == "resetColors")))) || (colorPicker.contains(_local2)))) || ((colorPicker == _local2)))))){
return;
};
cancelSelection();
}
public function update(_arg1=null){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local2:* = 0;
_local2 = 0;
_local4 = 0;
while (_local4 < onCharacter.length) {
_local3 = onCharacter[_local4];
if (cats[_local3.catIndex].changed){
_local2 = (_local2 + cats[_local3.catIndex].basePercent);
};
_local6 = _local3.dinamic;
if (_local6 != undefined){
_local8 = 0;
_local5 = 1;
while (_local5 <= _local6) {
_local7 = ((_local5 < 10)) ? ("0" + _local5) : ("" + _local5);
if (_local3[("ci" + _local7)]){
_local8++;
};
_local5++;
};
_local2 = (_local2 + ((_local8 * cats[_local3.catIndex].dynamicPercent) / _local6));
};
_local4++;
};
dataHolder.percent = _local2;
var _local9:* = coolBar.star;
var _local10:* = coolBar.coolBarMask;
var _local11:* = coolBar.colors;
var _local12:* = (_local11.y + (_local11.height * (1 - dataHolder.percent)));
if (_local9.y > _local12){
_local9.y = Math.max(_local12, (_local9.y - 5));
} else {
_local9.y = Math.min(_local12, (_local9.y + 5));
};
_local10.height = (_local11.height - (_local9.y - _local11.y));
_local10.y = _local9.y;
coolBar.visible = playing;
playAgain.visible = !(playing);
playMore.visible = !(playing);
printButton.visible = !(playing);
done.visible = playing;
colorPickerHolder.visible = playing;
doneBack.visible = !(playing);
playBack.visible = !(doneBack.visible);
if (!playing){
hideToolTips();
};
omg.visible = ((playing) && ((_local2 > 0.99)));
if (!omg.visible){
omgcount = 0;
};
omgcount++;
if (omgcount < 19){
omg.rotation = (omgcount * 20);
} else {
omg.rotation = 0;
};
omg.scaleX = Math.min(1, (omgcount / 19));
omg.scaleY = omg.scaleX;
}
public function setOriginalColor(_arg1=null){
var _local2:* = dataHolder.selectedShape;
var _local3:ColorTransform = _local2.transform.colorTransform;
_local3.color = originalColor;
_local2.transform.colorTransform = _local3;
}
public function printPage(_arg1){
var _local3:PrintJobOptions;
playAgain.visible = false;
playMore.visible = false;
printButton.visible = false;
logo.visible = false;
var _local2:PrintJob = new PrintJob();
if (_local2.start()){
scaleX = (scaleY = Math.min((_local2.pageWidth / 800), (_local2.pageHeight / 600)));
_local3 = new PrintJobOptions();
_local3.printAsBitmap = true;
_local2.addPage(this, new Rectangle((400 - (_local2.pageWidth / (scaleX * 2))), (300 - (_local2.pageHeight / (scaleY * 2))), (400 + (_local2.pageWidth / (scaleX * 2))), (300 + (_local2.pageHeight / (scaleY * 2)))), _local3);
_local2.send();
scaleX = (scaleY = 1);
};
logo.visible = true;
}
public function hideTabsToolTips(){
hairTabTooltip.visible = false;
eyesTabTooltip.visible = false;
mouthTabTooltip.visible = false;
skinTabTooltip.visible = false;
clothesTabTooltip.visible = false;
}
public function resetItem(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
_local2 = 0;
while (_local2 < _arg1.numChildren) {
_local3 = _arg1.getChildAt(_local2);
if ((_local3 is MovieClip)){
_local4 = _local3.name;
if (_local4.substr(0, 5) == "color"){
_local5 = _local4.substr(5);
_arg1[("ci" + _local5)] = false;
_local6 = _local3.getChildAt(0);
_local7 = _local6.transform.colorTransform;
_local7.color = _arg1[("c" + _local5)];
_local6.transform.colorTransform = _local7;
};
};
_local2++;
};
}
public function onItemClick(_arg1){
dispatchEvent(new Event("itemChanged"));
setItem(_arg1.target, true);
}
public function onColorClick(_arg1){
var _local2:* = dataHolder.selectedShape.parent.parent.name;
var _local3:* = _local2.substr(5, (_local2.lastIndexOf("_") - 5));
if ((((step == 3)) && ((_local3 == "hair")))){
step2Tooltip.visible = false;
removeEventListener("startSelectColor", onColorClick);
step++;
};
if ((((step == 8)) && ((_local3 == "eyes")))){
step4Tooltip.visible = false;
removeEventListener("startSelectColor", onColorClick);
addEventListener("colorSelected", onColorSelected);
step++;
};
}
public function hideColorPicker(_arg1=null){
active = false;
stage.removeEventListener(MouseEvent.CLICK, outSideClick);
}
public function itemOut(_arg1){
if (!playing){
return;
};
var _local2:* = _arg1.target;
var _local3:* = _local2.name.substr(7);
var _local4:* = _local2.parent[("action" + _local3)];
_local4.filters = [];
}
public function displaySkinColor(_arg1){
skincolorPickerHolder.mouseEnabled = true;
}
public function updateColorPicker(_arg1){
delay--;
if (delay > 0){
return;
};
if (((stage.hasEventListener(MouseEvent.CLICK)) && (playing))){
colorPickerHolder.y = Math.min(0, (colorPickerHolder.y + 15));
} else {
colorPickerHolder.y = Math.max(-(colorPickerHolder.height), (colorPickerHolder.y - 15));
};
}
public function startSelection(_arg1){
var _local2:* = dataHolder.selectedShape;
var _local3:* = _local2.parent.name.substr(5);
var _local4:* = ("ci" + _local3);
var _local5:* = ("c" + _local3);
var _local6:ColorTransform = _local2.transform.colorTransform;
if (_local2.parent.parent[_local4]){
originalColor = _local6.color;
} else {
originalColor = _local2.parent.parent[_local5];
};
showColorPicker();
}
public function startskinSelection(_arg1){
var _local2:ColorTransform = skinShape.transform.colorTransform;
if (character.ci01){
skinoriginalColor = _local2.color;
} else {
skinoriginalColor = character.c01;
};
}
public function onPlayAgain(_arg1){
var _local2:*;
var _local3:*;
neutralize();
dispatchEvent(new Event("titleScreen"));
logo.scaleX = (logo.scaleY = 0.25);
logo.y = 32;
logo.x = 60;
}
public function onColorSelected(_arg1){
if (!playing){
return;
};
if (step == 5){
removeEventListener("colorSelected", onColorSelected);
info1Tooltip.visible = true;
info1Tooltip.txt = "You can select any lock";
info1Tooltip.gotoAndPlay(1);
delayTimer = new Timer(6000);
delayTimer.addEventListener(TimerEvent.TIMER, hideinfo1BarTooltip);
delayTimer.start();
step++;
};
if (step == 9){
removeEventListener("colorSelected", onColorSelected);
step++;
};
}
public function initialize(){
playing = false;
if (initialized){
neutralize();
};
playAgain.buttonMode = true;
playMore.buttonMode = true;
printButton.buttonMode = true;
done.buttonMode = true;
hideToolTips();
addEventListener("category", categoryChanged);
stage.addEventListener("resetColors", onResetColors);
skinHolder.addEventListener("skinColor", changeSkinColor);
skinHolder.addEventListener("displayColorPicker", displaySkinColor);
tutorialTimer = new Timer(25);
tutorialTimer.addEventListener(TimerEvent.TIMER, tutorialUpdate);
tutorialTimer.start();
updateTimer = new Timer(25);
updateTimer.addEventListener(TimerEvent.TIMER, update);
updateTimer.start();
colorPickerTimer = new Timer(25);
colorPickerTimer.addEventListener(TimerEvent.TIMER, updateColorPicker);
colorPickerTimer.start();
skincolorPickerTimer = new Timer(25);
skincolorPickerTimer.addEventListener(TimerEvent.TIMER, updateskincolorPicker);
skincolorPickerTimer.start();
skincolorPickerHolder.mouseEnabled = false;
var _local1:* = 0;
while (_local1 < cats.length) {
cats[_local1].changed = false;
cats[_local1].active = true;
cats[_local1].customizable = true;
initializeCat(cats[_local1].name);
_local1++;
};
category = "hair";
dispatchEvent(new Event("category"));
playing = true;
initialized = true;
}
public function startSelectItemColor(_arg1){
if (!playing){
return;
};
var _local2:* = _arg1.target;
var _local3:* = _local2.parent;
var _local4:* = _local3.name.substr(5, (_local3.name.lastIndexOf("_") - 5));
if (!cats[getCatIndex(_local4)].customizable){
return;
};
var _local5:* = _local2.name.substr(7);
var _local6:* = _local2.parent[("color" + _local5)];
dataHolder.selectedShape = _local6.getChildAt(0);
dispatchEvent(new Event("startSelectColor"));
itemOut(_arg1);
}
public function colorPickerOut(_arg1){
setOriginalColor();
}
public function onPlayMore(_arg1){
var _local2:URLRequest = new URLRequest("http://www.cutezee.com/");
navigateToURL(_local2);
}
public function setskinoriginalColor(_arg1=null){
if (!skincolorPickerHolder.mouseEnabled){
return;
};
var _local2:ColorTransform = skinShape.transform.colorTransform;
_local2.color = skinoriginalColor;
skinShape.transform.colorTransform = _local2;
}
public function categoryChanged(_arg1){
var _local3:*;
var _local2:* = 0;
while (_local2 < cats.length) {
_local3 = this[(cats[_local2].name + "Holder")];
_local3.visible = (category == cats[_local2].name);
this[(cats[_local2].name + "Tab")].visible = !((category == cats[_local2].name));
_local2++;
};
}
public function resetAll(_arg1=null){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = 0;
while (_local2 < numChildren) {
_local4 = getChildAt(_local2);
if (_local4.catName != undefined){
resetItem(_local4);
};
_local2++;
};
}
public function changeTab(_arg1){
var _local2:* = _arg1.target;
var _local3:* = _local2.name.substr(0, (_local2.name.length - 3));
if (!cats[getCatIndex(_local3)].active){
return;
};
category = _local3;
dispatchEvent(new Event("category"));
}
public function tutorialUpdate(_arg1){
if (!playing){
return;
};
if (tutorial){
switch (step){
case 0:
hideTabsToolTips();
step1Tooltip.visible = true;
step1Tooltip.txt = "Select a hair style";
step1Tooltip.gotoAndPlay(1);
step++;
addEventListener("itemChanged", onItemChanged);
break;
case 2:
step2Tooltip.visible = true;
step2Tooltip.txt = "Select a lock to change its color";
step2Tooltip.gotoAndPlay(1);
addEventListener("startSelectColor", onColorClick);
step++;
break;
case 4:
addEventListener("colorSelected", onColorSelected);
step++;
break;
case 6:
step3Tooltip.visible = true;
step3Tooltip.txt = "Select eyes tab";
step3Tooltip.gotoAndPlay(1);
addEventListener("category", onCategoryChanged);
step++;
break;
case 10:
step5Tooltip.visible = true;
step5Tooltip.txt = "Select mouth tab";
step5Tooltip.gotoAndPlay(1);
addEventListener("category", onCategoryChanged);
step++;
break;
case 12:
step6Tooltip.visible = true;
step6Tooltip.txt = "Select skin color tab";
step6Tooltip.gotoAndPlay(1);
addEventListener("category", onCategoryChanged);
step++;
break;
case 14:
step7Tooltip.visible = true;
step7Tooltip.txt = "Select clothes tab";
step7Tooltip.gotoAndPlay(1);
addEventListener("category", onCategoryChanged);
step++;
break;
case 16:
finishTooltip.visible = true;
finishTooltip.txt = "Congratulations. \n You finished this tutorial. Now you can click DONE and play without instructions";
finishTooltip.gotoAndPlay(1);
delayTimer = new Timer(5000);
delayTimer.addEventListener(TimerEvent.TIMER, hideFinishTooltip);
delayTimer.start();
step++;
break;
};
cats[0].active = (step > 1);
cats[0].customizable = (step > 1);
cats[1].active = (step > 6);
cats[1].customizable = (step > 7);
cats[2].active = (step > 10);
cats[3].active = (step > 12);
cats[4].active = (step > 14);
};
}
public function onCategoryChanged(_arg1){
if (!playing){
return;
};
if (step == 7){
if (category == "eyes"){
step1Tooltip.visible = true;
step1Tooltip.txt = "Select a pair of eyes";
step1Tooltip.gotoAndPlay(1);
step3Tooltip.visible = false;
addEventListener("itemChanged", onItemChanged);
} else {
step1Tooltip.visible = false;
step3Tooltip.visible = true;
step3Tooltip.txt = "Select eyes tab";
step3Tooltip.gotoAndPlay(1);
removeEventListener("itemChanged", onItemChanged);
};
};
if (step == 11){
if (category == "mouth"){
step1Tooltip.visible = true;
step1Tooltip.txt = "Select a mouth";
step1Tooltip.gotoAndPlay(1);
step5Tooltip.visible = false;
addEventListener("itemChanged", onItemChanged);
} else {
step1Tooltip.visible = false;
step5Tooltip.visible = true;
step5Tooltip.txt = "Select mouth tab";
step5Tooltip.gotoAndPlay(1);
removeEventListener("itemChanged", onItemChanged);
};
};
if (step == 13){
if (category == "skin"){
step1Tooltip.visible = true;
step1Tooltip.txt = "Select a skin color or select custom and chose the color you want";
step1Tooltip.gotoAndPlay(1);
step6Tooltip.visible = false;
skinHolder.addEventListener("skinColor", onItemChanged);
addEventListener("skincolorSelected", onItemChanged);
} else {
step1Tooltip.visible = false;
step6Tooltip.visible = true;
step6Tooltip.txt = "Select skin color tab";
step6Tooltip.gotoAndPlay(1);
removeEventListener("skinColor", onItemChanged);
removeEventListener("skincolorSelected", onItemChanged);
};
};
if (step == 15){
if (category == "clothes"){
step1Tooltip.visible = true;
step1Tooltip.txt = "Select a blouse";
step1Tooltip.gotoAndPlay(1);
step7Tooltip.visible = false;
addEventListener("itemChanged", onItemChanged);
} else {
step1Tooltip.visible = false;
step7Tooltip.visible = true;
step7Tooltip.txt = "Select clothes tab";
step7Tooltip.gotoAndPlay(1);
removeEventListener("itemChanged", onItemChanged);
};
};
}
}
}//package mermaid_fla
Section 35
//hair01_542 (mermaid_fla.hair01_542)
package mermaid_fla {
import flash.display.*;
public dynamic class hair01_542 extends MovieClip {
public var dinamic;
public var hitZone01:MovieClip;
public var hitZone02:MovieClip;
public var hitZone03:MovieClip;
public var hitZone04:MovieClip;
public var color01:MovieClip;
public var color02:MovieClip;
public var color03:MovieClip;
public var color04:MovieClip;
public var ci02;
public var ci03;
public var ci04;
public var c01;
public var c02;
public var c03;
public var c04;
public var action01:MovieClip;
public var action02:MovieClip;
public var action03:MovieClip;
public var action04:MovieClip;
public var ci01;
public function hair01_542(){
addFrameScript(0, frame1);
}
function frame1(){
c04 = 14357781;
ci04 = false;
c03 = 14357781;
ci03 = false;
c02 = 14423317;
ci02 = false;
c01 = 827085;
ci01 = false;
dinamic = 4;
}
}
}//package mermaid_fla
Section 36
//hair02_555 (mermaid_fla.hair02_555)
package mermaid_fla {
import flash.display.*;
public dynamic class hair02_555 extends MovieClip {
public var dinamic;
public var net:MovieClip;
public var hitZone01:MovieClip;
public var hitZone02:MovieClip;
public var hitZone03:MovieClip;
public var hitZone04:MovieClip;
public var color01:MovieClip;
public var color02:MovieClip;
public var color03:MovieClip;
public var color04:MovieClip;
public var ci02;
public var ci03;
public var ci04;
public var c01;
public var c02;
public var c03;
public var c04;
public var action01:MovieClip;
public var action02:MovieClip;
public var action03:MovieClip;
public var action04:MovieClip;
public var ci01;
public function hair02_555(){
addFrameScript(0, frame1);
}
function frame1(){
c04 = 14357851;
ci04 = false;
c03 = 14488923;
ci03 = false;
c02 = 14372885;
ci02 = false;
c01 = 0xC20000;
ci01 = false;
dinamic = 4;
}
}
}//package mermaid_fla
Section 37
//hair03_569 (mermaid_fla.hair03_569)
package mermaid_fla {
import flash.display.*;
public dynamic class hair03_569 extends MovieClip {
public var dinamic;
public var net:MovieClip;
public var hitZone01:MovieClip;
public var hitZone02:MovieClip;
public var hitZone03:MovieClip;
public var color01:MovieClip;
public var color02:MovieClip;
public var color03:MovieClip;
public var ci01;
public var ci02;
public var ci03;
public var c01;
public var c02;
public var c03;
public var action01:MovieClip;
public var action02:MovieClip;
public var action03:MovieClip;
public function hair03_569(){
addFrameScript(0, frame1);
}
function frame1(){
c03 = 14357781;
ci03 = false;
c02 = 14292245;
ci02 = false;
c01 = 1150061;
ci01 = false;
dinamic = 3;
}
}
}//package mermaid_fla
Section 38
//hair04_580 (mermaid_fla.hair04_580)
package mermaid_fla {
import flash.display.*;
public dynamic class hair04_580 extends MovieClip {
public var dinamic;
public var hitZone01:MovieClip;
public var hitZone02:MovieClip;
public var hitZone03:MovieClip;
public var hitZone04:MovieClip;
public var color01:MovieClip;
public var color02:MovieClip;
public var color03:MovieClip;
public var color04:MovieClip;
public var ci02;
public var ci03;
public var ci04;
public var c01;
public var c02;
public var c03;
public var c04;
public var action01:MovieClip;
public var action02:MovieClip;
public var action03:MovieClip;
public var action04:MovieClip;
public var ci01;
public function hair04_580(){
addFrameScript(0, frame1);
}
function frame1(){
c04 = 14423317;
ci04 = false;
c03 = 14357781;
ci03 = false;
c02 = 14292245;
ci02 = false;
c01 = 1167545;
ci01 = false;
dinamic = 4;
}
}
}//package mermaid_fla
Section 39
//hair05_593 (mermaid_fla.hair05_593)
package mermaid_fla {
import flash.display.*;
public dynamic class hair05_593 extends MovieClip {
public var dinamic;
public var net:MovieClip;
public var hitZone01:MovieClip;
public var hitZone02:MovieClip;
public var hitZone03:MovieClip;
public var hitZone04:MovieClip;
public var color01:MovieClip;
public var color02:MovieClip;
public var color03:MovieClip;
public var color04:MovieClip;
public var ci02;
public var ci03;
public var ci04;
public var c01;
public var c02;
public var c03;
public var c04;
public var action01:MovieClip;
public var action02:MovieClip;
public var action03:MovieClip;
public var action04:MovieClip;
public var ci01;
public function hair05_593(){
addFrameScript(0, frame1);
}
function frame1(){
c04 = 14357781;
ci04 = false;
c03 = 14357781;
ci03 = false;
c02 = 14488853;
ci02 = false;
c01 = 15470785;
ci01 = false;
dinamic = 4;
}
}
}//package mermaid_fla
Section 40
//hair06_607 (mermaid_fla.hair06_607)
package mermaid_fla {
import flash.display.*;
public dynamic class hair06_607 extends MovieClip {
public var dinamic;
public var net:MovieClip;
public var hitZone01:MovieClip;
public var hitZone02:MovieClip;
public var hitZone03:MovieClip;
public var hitZone04:MovieClip;
public var color01:MovieClip;
public var color02:MovieClip;
public var color03:MovieClip;
public var color04:MovieClip;
public var ci02;
public var ci03;
public var ci04;
public var c01;
public var c02;
public var c03;
public var c04;
public var action01:MovieClip;
public var action02:MovieClip;
public var action03:MovieClip;
public var action04:MovieClip;
public var ci01;
public function hair06_607(){
addFrameScript(0, frame1);
}
function frame1(){
c04 = 14357781;
ci04 = false;
c03 = 14423459;
ci03 = false;
c02 = 14423317;
ci02 = false;
c01 = 13507144;
ci01 = false;
dinamic = 4;
}
}
}//package mermaid_fla
Section 41
//hair07_621 (mermaid_fla.hair07_621)
package mermaid_fla {
import flash.display.*;
public dynamic class hair07_621 extends MovieClip {
public var dinamic;
public var net:MovieClip;
public var hitZone01:MovieClip;
public var hitZone02:MovieClip;
public var hitZone03:MovieClip;
public var hitZone04:MovieClip;
public var color01:MovieClip;
public var color02:MovieClip;
public var color03:MovieClip;
public var color04:MovieClip;
public var ci02;
public var ci03;
public var ci04;
public var c01;
public var c02;
public var c03;
public var c04;
public var action01:MovieClip;
public var action02:MovieClip;
public var action03:MovieClip;
public var action04:MovieClip;
public var ci01;
public function hair07_621(){
addFrameScript(0, frame1);
}
function frame1(){
c04 = 1748358;
ci04 = false;
c03 = 1748358;
ci03 = false;
c02 = 1748872;
ci02 = false;
c01 = 1800883;
ci01 = false;
dinamic = 4;
}
}
}//package mermaid_fla
Section 42
//hair08_635 (mermaid_fla.hair08_635)
package mermaid_fla {
import flash.display.*;
public dynamic class hair08_635 extends MovieClip {
public var dinamic;
public var net:MovieClip;
public var hitZone01:MovieClip;
public var hitZone02:MovieClip;
public var hitZone03:MovieClip;
public var color01:MovieClip;
public var color02:MovieClip;
public var color03:MovieClip;
public var ci01;
public var ci02;
public var ci03;
public var c01;
public var c02;
public var c03;
public var action01:MovieClip;
public var action02:MovieClip;
public var action03:MovieClip;
public function hair08_635(){
addFrameScript(0, frame1);
}
function frame1(){
c03 = 1748615;
ci03 = false;
c02 = 1748615;
ci02 = false;
c01 = 1800884;
ci01 = false;
dinamic = 3;
}
}
}//package mermaid_fla
Section 43
//hair09_646 (mermaid_fla.hair09_646)
package mermaid_fla {
import flash.display.*;
public dynamic class hair09_646 extends MovieClip {
public var dinamic;
public var hitZone01:MovieClip;
public var hitZone02:MovieClip;
public var hitZone03:MovieClip;
public var hitZone04:MovieClip;
public var color01:MovieClip;
public var color02:MovieClip;
public var color03:MovieClip;
public var color04:MovieClip;
public var ci02;
public var ci03;
public var ci04;
public var c01;
public var c02;
public var c03;
public var c04;
public var action01:MovieClip;
public var action02:MovieClip;
public var action03:MovieClip;
public var action04:MovieClip;
public var ci01;
public function hair09_646(){
addFrameScript(0, frame1);
}
function frame1(){
c04 = 1748871;
ci04 = false;
c03 = 1748614;
ci03 = false;
c02 = 1748871;
ci02 = false;
c01 = 1800884;
ci01 = false;
dinamic = 4;
}
}
}//package mermaid_fla
Section 44
//hair10_659 (mermaid_fla.hair10_659)
package mermaid_fla {
import flash.display.*;
public dynamic class hair10_659 extends MovieClip {
public var hitZone01:MovieClip;
public var hitZone02:MovieClip;
public var hitZone03:MovieClip;
public var hitZone04:MovieClip;
public var hitZone05:MovieClip;
public var color02:MovieClip;
public var color03:MovieClip;
public var color04:MovieClip;
public var color05:MovieClip;
public var color01:MovieClip;
public var c02;
public var c03;
public var c04;
public var c05;
public var c01;
public var action01:MovieClip;
public var action02:MovieClip;
public var action03:MovieClip;
public var action04:MovieClip;
public var action05:MovieClip;
public var dinamic;
public var ci01;
public var ci02;
public var ci03;
public var ci04;
public var ci05;
public function hair10_659(){
addFrameScript(0, frame1);
}
function frame1(){
c05 = 1748615;
ci05 = false;
c04 = 1748358;
ci04 = false;
c03 = 1748358;
ci03 = false;
c02 = 11409985;
ci02 = false;
c01 = 1800884;
ci01 = false;
dinamic = 5;
}
}
}//package mermaid_fla
Section 45
//hair11_675 (mermaid_fla.hair11_675)
package mermaid_fla {
import flash.display.*;
public dynamic class hair11_675 extends MovieClip {
public var dinamic;
public var hitZone01:MovieClip;
public var hitZone02:MovieClip;
public var hitZone03:MovieClip;
public var color01:MovieClip;
public var color02:MovieClip;
public var color03:MovieClip;
public var ci01;
public var ci02;
public var ci03;
public var c01;
public var c02;
public var c03;
public var action01:MovieClip;
public var action02:MovieClip;
public var action03:MovieClip;
public function hair11_675(){
addFrameScript(0, frame1);
}
function frame1(){
c03 = 1748871;
ci03 = false;
c02 = 1748615;
ci02 = false;
c01 = 8395699;
ci01 = false;
dinamic = 3;
}
}
}//package mermaid_fla
Section 46
//hair12_685 (mermaid_fla.hair12_685)
package mermaid_fla {
import flash.display.*;
public dynamic class hair12_685 extends MovieClip {
public var dinamic;
public var hitZone01:MovieClip;
public var hitZone02:MovieClip;
public var hitZone03:MovieClip;
public var hitZone04:MovieClip;
public var color01:MovieClip;
public var color02:MovieClip;
public var color03:MovieClip;
public var color04:MovieClip;
public var ci02;
public var ci03;
public var ci04;
public var c01;
public var c02;
public var c03;
public var c04;
public var action01:MovieClip;
public var action02:MovieClip;
public var action03:MovieClip;
public var action04:MovieClip;
public var ci01;
public function hair12_685(){
addFrameScript(0, frame1);
}
function frame1(){
c04 = 1748615;
ci04 = false;
c03 = 1736622;
ci03 = false;
c02 = 1749128;
ci02 = false;
c01 = 11803503;
ci01 = false;
dinamic = 4;
}
}
}//package mermaid_fla
Section 47
//hair13_698 (mermaid_fla.hair13_698)
package mermaid_fla {
import flash.display.*;
public dynamic class hair13_698 extends MovieClip {
public var dinamic;
public var hitZone01:MovieClip;
public var hitZone02:MovieClip;
public var hitZone03:MovieClip;
public var hitZone04:MovieClip;
public var color01:MovieClip;
public var color02:MovieClip;
public var color03:MovieClip;
public var color04:MovieClip;
public var ci02;
public var ci03;
public var ci04;
public var c01;
public var c02;
public var c03;
public var c04;
public var action01:MovieClip;
public var action02:MovieClip;
public var action03:MovieClip;
public var action04:MovieClip;
public var ci01;
public function hair13_698(){
addFrameScript(0, frame1);
}
function frame1(){
c04 = 1748615;
ci04 = false;
c03 = 1748101;
ci03 = false;
c02 = 1748615;
ci02 = false;
c01 = 1800884;
ci01 = false;
dinamic = 4;
}
}
}//package mermaid_fla
Section 48
//hair14_711 (mermaid_fla.hair14_711)
package mermaid_fla {
import flash.display.*;
public dynamic class hair14_711 extends MovieClip {
public var dinamic;
public var hitZone01:MovieClip;
public var hitZone02:MovieClip;
public var hitZone03:MovieClip;
public var color01:MovieClip;
public var color02:MovieClip;
public var color03:MovieClip;
public var ci01;
public var ci02;
public var ci03;
public var c01;
public var c02;
public var c03;
public var action01:MovieClip;
public var action02:MovieClip;
public var action03:MovieClip;
public function hair14_711(){
addFrameScript(0, frame1);
}
function frame1(){
c03 = 1748871;
ci03 = false;
c02 = 1748614;
ci02 = false;
c01 = 1800884;
ci01 = false;
dinamic = 3;
}
}
}//package mermaid_fla
Section 49
//hair15_721 (mermaid_fla.hair15_721)
package mermaid_fla {
import flash.display.*;
public dynamic class hair15_721 extends MovieClip {
public var dinamic;
public var hitZone01:MovieClip;
public var hitZone02:MovieClip;
public var hitZone03:MovieClip;
public var color01:MovieClip;
public var color02:MovieClip;
public var color03:MovieClip;
public var ci01;
public var ci02;
public var ci03;
public var c01;
public var c02;
public var c03;
public var action01:MovieClip;
public var action02:MovieClip;
public var action03:MovieClip;
public function hair15_721(){
addFrameScript(0, frame1);
}
function frame1(){
c03 = 1748871;
ci03 = false;
c02 = 1748871;
ci02 = false;
c01 = 1800884;
ci01 = false;
dinamic = 3;
}
}
}//package mermaid_fla
Section 50
//hair16_731 (mermaid_fla.hair16_731)
package mermaid_fla {
import flash.display.*;
public dynamic class hair16_731 extends MovieClip {
public var dinamic;
public var hitZone01:MovieClip;
public var hitZone02:MovieClip;
public var hitZone03:MovieClip;
public var color01:MovieClip;
public var color02:MovieClip;
public var color03:MovieClip;
public var ci01;
public var ci02;
public var ci03;
public var c01;
public var c02;
public var c03;
public var action01:MovieClip;
public var action02:MovieClip;
public var action03:MovieClip;
public function hair16_731(){
addFrameScript(0, frame1);
}
function frame1(){
c03 = 14830965;
ci03 = false;
c02 = 14634099;
ci02 = false;
c01 = 1815657;
ci01 = false;
dinamic = 3;
}
}
}//package mermaid_fla
Section 51
//hair17_741 (mermaid_fla.hair17_741)
package mermaid_fla {
import flash.display.*;
public dynamic class hair17_741 extends MovieClip {
public var dinamic;
public var hitZone01:MovieClip;
public var hitZone02:MovieClip;
public var hitZone03:MovieClip;
public var color01:MovieClip;
public var color02:MovieClip;
public var color03:MovieClip;
public var ci01;
public var ci02;
public var ci03;
public var c01;
public var c02;
public var c03;
public var action01:MovieClip;
public var action02:MovieClip;
public var action03:MovieClip;
public function hair17_741(){
addFrameScript(0, frame1);
}
function frame1(){
c03 = 14765428;
ci03 = false;
c02 = 1748871;
ci02 = false;
c01 = 1800884;
ci01 = false;
dinamic = 3;
}
}
}//package mermaid_fla
Section 52
//hair18_751 (mermaid_fla.hair18_751)
package mermaid_fla {
import flash.display.*;
public dynamic class hair18_751 extends MovieClip {
public var dinamic;
public var hitZone01:MovieClip;
public var hitZone02:MovieClip;
public var hitZone03:MovieClip;
public var color01:MovieClip;
public var color02:MovieClip;
public var color03:MovieClip;
public var ci01;
public var ci02;
public var ci03;
public var c01;
public var c02;
public var c03;
public var action01:MovieClip;
public var action02:MovieClip;
public var action03:MovieClip;
public function hair18_751(){
addFrameScript(0, frame1);
}
function frame1(){
c03 = 1748872;
ci03 = false;
c02 = 1748872;
ci02 = false;
c01 = 11803498;
ci01 = false;
dinamic = 3;
}
}
}//package mermaid_fla
Section 53
//MainTimeline (mermaid_fla.MainTimeline)
package mermaid_fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.utils.*;
import flash.errors.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var anchors;
public var game:MovieClip;
public var playButton:MovieClip;
public var my_cMenu:ContextMenu;
public var choise:int;
public var New_Symbol:MovieClip;
public var mute:playPauseButton;
public var menu_link:ContextMenuItem;
public var tutorial;
public var playMore:MovieClip;
public var SEO_text:TextField;
public var tutorialButton:MovieClip;
public var preloader:MovieClip;
public var links;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 4, frame5);
}
public function onTScreen(_arg1){
gotoAndPlay("TitleScreen");
}
public function onTutorial(_arg1){
tutorial = true;
play();
}
public function onItem(_arg1:ContextMenuEvent){
var _local2:URLRequest = new URLRequest("http://www.cutezee.com/");
navigateToURL(_local2, "_blank");
}
function frame3(){
playButton.addEventListener(MouseEvent.CLICK, onPlay);
tutorialButton.addEventListener(MouseEvent.CLICK, onTutorial);
playMore.addEventListener(MouseEvent.CLICK, onPlayMore);
playButton.buttonMode = true;
playMore.buttonMode = true;
tutorialButton.buttonMode = true;
stop();
mute.x = -100;
}
public function onPlayMore(_arg1){
var _local2:URLRequest = new URLRequest("http://www.cutezee.com/");
navigateToURL(_local2);
}
function frame1(){
stop();
preloader.addEventListener("discardPreloader", discardPreloader);
my_cMenu = new ContextMenu();
my_cMenu.hideBuiltInItems();
menu_link = new ContextMenuItem("www.cutezee.com");
menu_link.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, onItem);
my_cMenu.customItems.push(menu_link);
contextMenu = my_cMenu;
tutorial = false;
MochiBot.track(this, "3f9fb649");
links = [];
anchors = [];
links.push("http://www.cutezee.com/");
anchors.push("Girl Games");
links.push("http://www.cutezee.com/");
anchors.push("Games for Girls");
links.push("http://www.cutezee.com/");
anchors.push("Girl Games Cutezee");
links.push("http://www.cutezee.com/");
anchors.push("Cute Girl Games");
links.push("http://www.cutezee.com/dressup-games.html");
anchors.push("Dressup Games");
links.push("http://www.cutezee.com/makeover-games.html");
anchors.push("Makeover Games");
links.push("http://www.cutezee.com/cooking-games.html");
anchors.push("Cooking Games");
links.push("http://www.cutezee.com/decoration-games.html");
anchors.push("Decoration Games");
links.push("http://www.cutezee.com/kissing-games.html");
anchors.push("Kissing Games");
links.push("http://www.cutezee.com/makeover-games.html");
anchors.push("Coloring Games");
links.push("http://www.cutezee.com/nails-games.html");
anchors.push("Nail Design Games");
links.push("http://www.cutezee.com/skill-games.html");
anchors.push("Skill Games");
links.push("http://www.cutezee.com/puzzle-games.html");
anchors.push("Puzzle Games");
links.push("http://www.cutezee.com/hidden-objects-games.html");
anchors.push("Hidden Objects Games");
links.push("http://www.cutezee.com/memory-games.html");
anchors.push("Memory Games");
links.push("http://www.cutezee.com/difference-games.html");
anchors.push("Difference Games");
links.push("http://www.cutezee.com/management-games/fionna-funny-friday-281.html");
anchors.push("Fionna Funny Friday");
links.push("http://www.cutezee.com/makeover-games/funky-hairstyles-228.html");
anchors.push("Funky Hairstyles");
links.push("http://www.cutezee.com/kissing-games/school-bus-kiss-272.html");
anchors.push("School Bus Kiss");
links.push("http://www.cutezee.com/kissing-games/kiss-the-bride-484.html");
anchors.push("Kiss the Bride");
links.push("http://www.poshdressup.com");
anchors.push("Fun Fashion Games");
links.push("http://www.poshdressup.com");
anchors.push("Dressup Games for Girls");
links.push("http://www.poshdressup.com");
anchors.push("Fun Fashion Dressup Games for Girls");
links.push("http://www.poshdressup.com/categories/fashion-dressup/");
anchors.push("Fashion Dressup Games");
links.push("http://www.poshdressup.com/categories/celebrity-dressup/");
anchors.push("Celebrity Dressup Games");
links.push("http://www.poshdressup.com/categories/makeover-games/");
anchors.push("Makeover Games");
choise = Math.floor((Math.random() * links.length));
SEO_text.htmlText = (((("<a href=\"" + links[choise]) + "\">") + anchors[choise]) + "</a>");
}
public function onPlay(_arg1){
tutorial = false;
play();
}
function frame5(){
stop();
game.addEventListener("titleScreen", onTScreen);
game.tutorial = tutorial;
mute.x = 740;
}
public function discardPreloader(_arg1){
play();
}
function frame2(){
mute.initialize();
}
}
}//package mermaid_fla
Section 54
//MC_PL_cuteZeeLogo_22 (mermaid_fla.MC_PL_cuteZeeLogo_22)
package mermaid_fla {
import flash.display.*;
public dynamic class MC_PL_cuteZeeLogo_22 extends MovieClip {
public function MC_PL_cuteZeeLogo_22(){
addFrameScript(129, frame130);
}
function frame130(){
stop();
}
}
}//package mermaid_fla
Section 55
//MC_PL_logoCuteEars_24 (mermaid_fla.MC_PL_logoCuteEars_24)
package mermaid_fla {
import flash.display.*;
public dynamic class MC_PL_logoCuteEars_24 extends MovieClip {
public function MC_PL_logoCuteEars_24(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package mermaid_fla
Section 56
//MC_PL_logoZeeEars_27 (mermaid_fla.MC_PL_logoZeeEars_27)
package mermaid_fla {
import flash.display.*;
public dynamic class MC_PL_logoZeeEars_27 extends MovieClip {
public function MC_PL_logoZeeEars_27(){
addFrameScript(28, frame29);
}
function frame29(){
stop();
}
}
}//package mermaid_fla
Section 57
//MC_PL_playOver_36 (mermaid_fla.MC_PL_playOver_36)
package mermaid_fla {
import flash.display.*;
public dynamic class MC_PL_playOver_36 extends MovieClip {
public function MC_PL_playOver_36(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package mermaid_fla
Section 58
//MC_PL_progress_32 (mermaid_fla.MC_PL_progress_32)
package mermaid_fla {
import flash.display.*;
public dynamic class MC_PL_progress_32 extends MovieClip {
public function MC_PL_progress_32(){
addFrameScript(99, frame100);
}
function frame100(){
stop();
}
}
}//package mermaid_fla
Section 59
//MC_PL_progressBar_31 (mermaid_fla.MC_PL_progressBar_31)
package mermaid_fla {
import flash.display.*;
public dynamic class MC_PL_progressBar_31 extends MovieClip {
public var play_btn:SimpleButton;
public var bar_mc:MovieClip;
public function MC_PL_progressBar_31(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package mermaid_fla
Section 60
//Print_782 (mermaid_fla.Print_782)
package mermaid_fla {
import flash.display.*;
public dynamic class Print_782 extends MovieClip {
public function Print_782(){
addFrameScript(0, frame1);
}
function frame1(){
buttonMode = true;
}
}
}//package mermaid_fla
Section 61
//skincolorPickerHolder_780 (mermaid_fla.skincolorPickerHolder_780)
package mermaid_fla {
import flash.events.*;
import flash.display.*;
public dynamic class skincolorPickerHolder_780 extends MovieClip {
public var close:MovieClip;
public var edge:MovieClip;
public function skincolorPickerHolder_780(){
addFrameScript(0, frame1);
}
function frame1(){
edge.mouseEnabled = false;
edge.mouseChildren = false;
close.addEventListener(MouseEvent.CLICK, onClose);
}
public function onClose(_arg1){
mouseEnabled = false;
}
}
}//package mermaid_fla
Section 62
//skinHolder_353 (mermaid_fla.skinHolder_353)
package mermaid_fla {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class skinHolder_353 extends MovieClip {
public var i;
public var skinColor;
public var item;
public var skinColorPicker:MovieClip;
public function skinHolder_353(){
addFrameScript(0, frame1);
}
function frame1(){
i = 0;
while (i < numChildren) {
item = getChildAt(i);
if ((item is MovieClip)){
item.mouseChildren = false;
item.buttonMode = true;
if (item.name == "skinColorPicker"){
item.addEventListener(MouseEvent.CLICK, displayColorPicker);
} else {
item.addEventListener(MouseEvent.CLICK, onSkin);
};
};
i++;
};
}
public function displayColorPicker(_arg1){
dispatchEvent(new Event("displayColorPicker"));
}
public function onSkin(_arg1){
skinColor = _arg1.target.color;
dispatchEvent(new Event("skinColor"));
}
}
}//package mermaid_fla
Section 63
//skinTab1_354 (mermaid_fla.skinTab1_354)
package mermaid_fla {
import flash.display.*;
public dynamic class skinTab1_354 extends MovieClip {
public var color;
public function skinTab1_354(){
addFrameScript(0, frame1);
}
function frame1(){
color = 15784394;
}
}
}//package mermaid_fla
Section 64
//skinTab2_363 (mermaid_fla.skinTab2_363)
package mermaid_fla {
import flash.display.*;
public dynamic class skinTab2_363 extends MovieClip {
public var color;
public function skinTab2_363(){
addFrameScript(0, frame1);
}
function frame1(){
color = 15121570;
}
}
}//package mermaid_fla
Section 65
//skinTab3_361 (mermaid_fla.skinTab3_361)
package mermaid_fla {
import flash.display.*;
public dynamic class skinTab3_361 extends MovieClip {
public var color;
public function skinTab3_361(){
addFrameScript(0, frame1);
}
function frame1(){
color = 14660235;
}
}
}//package mermaid_fla
Section 66
//skinTab4_359 (mermaid_fla.skinTab4_359)
package mermaid_fla {
import flash.display.*;
public dynamic class skinTab4_359 extends MovieClip {
public var color;
public function skinTab4_359(){
addFrameScript(0, frame1);
}
function frame1(){
color = 13798752;
}
}
}//package mermaid_fla
Section 67
//skinTab5_357 (mermaid_fla.skinTab5_357)
package mermaid_fla {
import flash.display.*;
public dynamic class skinTab5_357 extends MovieClip {
public var color;
public function skinTab5_357(){
addFrameScript(0, frame1);
}
function frame1(){
color = 13268286;
}
}
}//package mermaid_fla
Section 68
//Timeline_254 (mermaid_fla.Timeline_254)
package mermaid_fla {
import flash.display.*;
public dynamic class Timeline_254 extends MovieClip {
public var hitZone01:MovieClip;
public var color01:MovieClip;
public var c01;
public var dinamic;
public var ci01;
public var action01:MovieClip;
public function Timeline_254(){
addFrameScript(0, frame1);
}
function frame1(){
c01 = 9643919;
ci01 = false;
dinamic = 1;
}
}
}//package mermaid_fla
Section 69
//Timeline_494 (mermaid_fla.Timeline_494)
package mermaid_fla {
import flash.display.*;
public dynamic class Timeline_494 extends MovieClip {
public var hitZone01:MovieClip;
public var color01:MovieClip;
public var c01;
public var dinamic;
public var ci01;
public var action01:MovieClip;
public function Timeline_494(){
addFrameScript(0, frame1);
}
function frame1(){
c01 = 29116;
ci01 = false;
dinamic = 1;
}
}
}//package mermaid_fla
Section 70
//Timeline_503 (mermaid_fla.Timeline_503)
package mermaid_fla {
import flash.display.*;
public dynamic class Timeline_503 extends MovieClip {
public var hitZone01:MovieClip;
public var color01:MovieClip;
public var c01;
public var dinamic;
public var ci01;
public var action01:MovieClip;
public function Timeline_503(){
addFrameScript(0, frame1);
}
function frame1(){
c01 = 12658477;
ci01 = false;
dinamic = 1;
}
}
}//package mermaid_fla
Section 71
//Timeline_512 (mermaid_fla.Timeline_512)
package mermaid_fla {
import flash.display.*;
public dynamic class Timeline_512 extends MovieClip {
public var hitZone01:MovieClip;
public var color01:MovieClip;
public var c01;
public var dinamic;
public var ci01;
public var action01:MovieClip;
public function Timeline_512(){
addFrameScript(0, frame1);
}
function frame1(){
c01 = 15539236;
ci01 = false;
dinamic = 1;
}
}
}//package mermaid_fla
Section 72
//Timeline_519 (mermaid_fla.Timeline_519)
package mermaid_fla {
import flash.display.*;
public dynamic class Timeline_519 extends MovieClip {
public var hitZone01:MovieClip;
public var color01:MovieClip;
public var c01;
public var dinamic;
public var ci01;
public var action01:MovieClip;
public function Timeline_519(){
addFrameScript(0, frame1);
}
function frame1(){
c01 = 0x9E005D;
ci01 = false;
dinamic = 1;
}
}
}//package mermaid_fla
Section 73
//Timeline_528 (mermaid_fla.Timeline_528)
package mermaid_fla {
import flash.display.*;
public dynamic class Timeline_528 extends MovieClip {
public var hitZone01:MovieClip;
public var color01:MovieClip;
public var c01;
public var dinamic;
public var ci01;
public var action01:MovieClip;
public function Timeline_528(){
addFrameScript(0, frame1);
}
function frame1(){
c01 = 15539833;
ci01 = false;
dinamic = 1;
}
}
}//package mermaid_fla
Section 74
//Timeline_533 (mermaid_fla.Timeline_533)
package mermaid_fla {
import flash.display.*;
public dynamic class Timeline_533 extends MovieClip {
public var hitZone01:MovieClip;
public var color01:MovieClip;
public var c01;
public var dinamic;
public var ci01;
public var action01:MovieClip;
public function Timeline_533(){
addFrameScript(0, frame1);
}
function frame1(){
c01 = 9643919;
ci01 = false;
dinamic = 1;
}
}
}//package mermaid_fla
Section 75
//Timeline_538 (mermaid_fla.Timeline_538)
package mermaid_fla {
import flash.display.*;
public dynamic class Timeline_538 extends MovieClip {
public var hitZone01:MovieClip;
public var color01:MovieClip;
public var c01;
public var dinamic;
public var ci01;
public var action01:MovieClip;
public function Timeline_538(){
addFrameScript(0, frame1);
}
function frame1(){
c01 = 15539833;
ci01 = false;
dinamic = 1;
}
}
}//package mermaid_fla
Section 76
//ToolTip_796 (mermaid_fla.ToolTip_796)
package mermaid_fla {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class ToolTip_796 extends MovieClip {
public var txt;
public var txtDisplay:TextField;
public function ToolTip_796(){
addFrameScript(0, frame1, 4, frame5, 13, frame14);
}
function frame1(){
mouseEnabled = false;
mouseChildren = false;
}
function frame5(){
if (txt != undefined){
txtDisplay.text = txt;
txtDisplay.autoSize = TextFieldAutoSize.CENTER;
repair();
};
}
public function repair(){
var _local1:*;
if (txtDisplay.numLines == 1){
txtDisplay.y = -17.5;
};
if (txtDisplay.numLines == 2){
txtDisplay.y = -22;
};
if (txtDisplay.numLines == 3){
txtDisplay.y = -28;
};
if (txtDisplay.numLines > 3){
_local1 = txtDisplay.defaultTextFormat;
_local1.size--;
txtDisplay.defaultTextFormat = _local1;
txtDisplay.text = txt;
repair();
};
}
function frame14(){
stop();
}
}
}//package mermaid_fla
Section 77
//ToolTipBig_800 (mermaid_fla.ToolTipBig_800)
package mermaid_fla {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class ToolTipBig_800 extends MovieClip {
public var txt;
public var txtDisplay:TextField;
public function ToolTipBig_800(){
addFrameScript(0, frame1, 4, frame5, 13, frame14);
}
function frame1(){
mouseEnabled = false;
mouseChildren = false;
}
function frame5(){
if (txt != undefined){
txtDisplay.text = txt;
txtDisplay.autoSize = TextFieldAutoSize.CENTER;
repair();
};
}
public function repair(){
var _local1:*;
if (txtDisplay.numLines == 1){
txtDisplay.y = -17.5;
};
if (txtDisplay.numLines == 2){
txtDisplay.y = -22;
};
if (txtDisplay.numLines == 3){
txtDisplay.y = -28;
};
if (txtDisplay.numLines > 6){
_local1 = txtDisplay.defaultTextFormat;
_local1.size--;
txtDisplay.defaultTextFormat = _local1;
txtDisplay.text = txt;
repair();
};
}
function frame14(){
stop();
}
}
}//package mermaid_fla
Section 78
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.system.*;
import flash.net.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 79
//Music (Music)
package {
import flash.media.*;
public dynamic class Music extends Sound {
}
}//package
Section 80
//playPauseButton (playPauseButton)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.utils.*;
import flash.errors.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class playPauseButton extends MovieClip {
public const speed_update = 3;
public const lines = 6;
public var timer:Timer;
public var sound:Sound;
public var display:MovieClip;
public var pausePoint:Number;
public var over:Boolean;
public var initialized:Boolean;
public var mcs:Array;
public var playit:MovieClip;
public var pauseit:MovieClip;
public var blur:BlurFilter;
public var display_spectrum:MovieClip;
public var h:Number;
public var w:Number;
public var soundChannel:SoundChannel;
public var playing:Boolean;
public function playPauseButton(){
addFrameScript(0, frame1);
}
public function onOut(_arg1:MouseEvent){
over = false;
if (playing){
display.filters = [];
};
}
public function onOver(_arg1:MouseEvent){
over = true;
if (playing){
display.filters = [blur];
pauseit.scaleX = 0.5;
};
}
public function initialize(){
var _local1:int;
var _local2:MovieClip;
if (initialized){
return;
};
blur = new BlurFilter(5, 5, BitmapFilterQuality.LOW);
display = display_spectrum;
w = display.width;
w = (w - ((w / lines) / 2));
h = display.height;
sound = new Music();
mcs = new Array();
playing = false;
over = false;
_local1 = 0;
while (_local1 < lines) {
_local2 = new MovieClip();
display.addChild(_local2);
mcs.push(_local2);
_local2.graphics.lineStyle();
_local2.graphics.beginFill(0xFFFFFF);
_local2.graphics.drawRect((((w * _local1) / lines) + ((w / lines) / 2)), 0, ((w / lines) - ((w / lines) / 2)), 2);
_local1++;
};
addEventListener(MouseEvent.MOUSE_OVER, onOver);
addEventListener(MouseEvent.MOUSE_OUT, onOut);
addEventListener(MouseEvent.CLICK, onClick);
timer = new Timer(25);
timer.addEventListener(TimerEvent.TIMER, onSpectrum);
timer.start();
soundChannel = sound.play(0);
if (!soundChannel.hasEventListener(Event.SOUND_COMPLETE)){
soundChannel.addEventListener(Event.SOUND_COMPLETE, replay);
};
playing = true;
initialized = true;
}
function frame1(){
buttonMode = true;
pauseit.mouseEnabled = false;
pauseit.mouseChildren = false;
playit.mouseEnabled = false;
playit.mouseChildren = false;
}
public function onClick(_arg1:MouseEvent){
if (playing){
if (soundChannel != null){
pausePoint = soundChannel.position;
if (soundChannel.hasEventListener(Event.SOUND_COMPLETE)){
soundChannel.removeEventListener(Event.SOUND_COMPLETE, replay);
};
soundChannel.stop();
} else {
pausePoint = 0;
};
playing = false;
} else {
soundChannel = sound.play(pausePoint);
if (!soundChannel.hasEventListener(Event.SOUND_COMPLETE)){
soundChannel.addEventListener(Event.SOUND_COMPLETE, replay);
};
playing = true;
};
playit.scaleX = 0.8;
pauseit.scaleX = 0.5;
}
public function neutralize(){
if (!initialized){
return;
};
var _local1:* = 0;
while (_local1 < mcs.length) {
display.removeChild(mcs[_local1]);
_local1++;
};
mcs.splice(0, mcs.length);
removeEventListener(MouseEvent.MOUSE_OVER, onOver);
removeEventListener(MouseEvent.MOUSE_OUT, onOut);
removeEventListener(MouseEvent.CLICK, onClick);
timer.removeEventListener(TimerEvent.TIMER, onSpectrum);
timer.stop();
if (soundChannel.hasEventListener(Event.SOUND_COMPLETE)){
soundChannel.removeEventListener(Event.SOUND_COMPLETE, replay);
};
soundChannel.stop();
playing = false;
initialized = false;
}
public function onSpectrum(_arg1:TimerEvent){
var _local2:int;
var _local3:Number;
var _local4:ByteArray = new ByteArray();
SoundMixer.computeSpectrum(_local4, true, 0);
_local2 = 0;
while (_local2 < mcs.length) {
mcs[_local2].y = (mcs[_local2].y + (h / 50));
_local2++;
};
if ((timer.currentCount % speed_update) == 0){
display.graphics.clear();
_local2 = 0;
while (_local2 < mcs.length) {
_local3 = _local4.readFloat();
display.graphics.lineStyle();
display.graphics.beginFill(0xFFFFFF);
display.graphics.drawRect((((w * _local2) / lines) + ((w / lines) / 2)), h, ((w / lines) - ((w / lines) / 2)), (-(Math.min(1, _local3)) * h));
if ((Math.min(1, _local3) * h) > (h - mcs[_local2].y)){
mcs[_local2].y = ((h - (Math.min(1, _local3) * h)) - (h / 20));
};
_local2++;
};
};
if (!playing){
display.filters = [blur];
};
playit.visible = !(playing);
if (over){
pauseit.visible = playing;
pauseit.scaleX = Math.min(1, (pauseit.scaleX + 0.1));
playit.scaleX = Math.min(1, (playit.scaleX + 0.05));
} else {
pauseit.scaleX = Math.max(0.5, (pauseit.scaleX - 0.1));
if (pauseit.scaleX == 0.5){
pauseit.visible = false;
};
playit.scaleX = Math.max(0.8, (playit.scaleX - 0.05));
};
pauseit.scaleY = pauseit.scaleX;
pauseit.alpha = ((pauseit.scaleX * 2) - 1);
playit.scaleY = playit.scaleX;
}
public function replay(_arg1:Event):void{
if (soundChannel.hasEventListener(Event.SOUND_COMPLETE)){
soundChannel.removeEventListener(Event.SOUND_COMPLETE, replay);
};
soundChannel = sound.play(0);
if (!soundChannel.hasEventListener(Event.SOUND_COMPLETE)){
soundChannel.addEventListener(Event.SOUND_COMPLETE, replay);
};
}
}
}//package
Section 81
//Star (Star)
package {
import flash.display.*;
public dynamic class Star extends MovieClip {
}
}//package