Section 1
//JUIComponent (com.jumpeye.core.JUIComponent)
package com.jumpeye.core {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public dynamic class JUIComponent extends Sprite {
protected var callLaterMethods:Dictionary;
protected var invalidateFlag:Boolean;// = false
protected var _inspector:Boolean;// = false
protected var invalidHash:Object;
protected var isLivePreview:Boolean;// = false
public var version:String;// = "3.0.0.15"
public static var inCallLaterPhase:Boolean = false;
public function JUIComponent(){
version = "3.0.0.15";
invalidateFlag = false;
_inspector = false;
isLivePreview = false;
super();
invalidHash = {};
callLaterMethods = new Dictionary();
configUI();
invalidate("all");
}
protected function checkLivePreview():Boolean{
var className:String;
if (parent == null){
return (false);
};
try {
className = getQualifiedClassName(parent);
} catch(e:Error) {
};
return ((className == "fl.livepreview::LivePreviewParent"));
}
private function callLaterDispatcher(_arg1:Event):void{
var _local2:Dictionary;
var _local3:Object;
if (_arg1.type == Event.ADDED_TO_STAGE){
removeEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher);
stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true);
stage.invalidate();
return;
};
_arg1.target.removeEventListener(Event.RENDER, callLaterDispatcher);
if (stage == null){
addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true);
return;
};
inCallLaterPhase = true;
_local2 = callLaterMethods;
for (_local3 in _local2) {
_local3();
delete _local2[_local3];
};
inCallLaterPhase = false;
}
protected function validate():void{
invalidHash = {};
}
public function invalidate(_arg1:String="all", _arg2:Boolean=true):void{
invalidHash[_arg1] = true;
if (_arg2){
this.callLater(draw);
};
}
protected function draw():void{
validate();
}
protected function configUI():void{
isLivePreview = checkLivePreview();
if (numChildren > 0){
removeChildAt(0);
};
}
protected function isInvalid(_arg1:String, ... _args):Boolean{
if (((invalidHash[_arg1]) || (invalidHash["all"]))){
return (true);
};
while (_args.length > 0) {
if (invalidHash[_args.pop()]){
return (true);
};
};
return (false);
}
protected function callLater(_arg1:Function):void{
if (inCallLaterPhase){
return;
};
callLaterMethods[_arg1] = true;
if (stage != null){
stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true);
stage.invalidate();
} else {
addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true);
};
}
public function validateNow():void{
invalidate("all", false);
draw();
}
public function drawNow():void{
draw();
}
}
}//package com.jumpeye.core
Section 2
//FLASHEFFEvents (com.jumpeye.Events.FLASHEFFEvents)
package com.jumpeye.Events {
import flash.events.*;
public dynamic class FLASHEFFEvents extends Event {
public static const ROLL_OUT:String = "onRollOut";
public static const INIT:String = "init";
public static const TRANSITION_END:String = "onTransitionEnd";
public static const MOUSE_UP:String = "onMouseUp";
public static const ROLL_OVER:String = "onRollOver";
public static const TRANSITION_START:String = "onTransitionStart";
public static const COMPLETE:String = "complete";
public static const DOUBLE_CLICK:String = "onDoubleClick";
public static const MOUSE_DOWN:String = "onMouseDown";
public function FLASHEFFEvents(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function toString():String{
return (formatToString("FLASHEFFEvents", "type", "bubbles", "cancelable"));
}
override public function clone():Event{
return (new FLASHEFFEvents(type, bubbles, cancelable));
}
}
}//package com.jumpeye.Events
Section 3
//JEvent (com.jumpeye.Events.JEvent)
package com.jumpeye.Events {
import flash.events.*;
public dynamic class JEvent extends Event {
public function JEvent(_arg1:String){
super(_arg1);
}
override public function clone():Event{
return (new JEvent(type));
}
}
}//package com.jumpeye.Events
Section 4
//FECCallFunction (com.jumpeye.flashEff2.command.callFunction.FECCallFunction)
package com.jumpeye.flashEff2.command.callFunction {
import com.jumpeye.core.*;
import com.jumpeye.flashEff2.core.interfaces.*;
public class FECCallFunction extends IFlashEffCommand {
private var _functionPath:String;
private var _parameters;
private var _reverse:Boolean;// = false
protected var func:Function;
private var aux:Array;
public function FECCallFunction(_arg1:JUIComponent=null){
_reverse = false;
super();
this.component = _arg1;
}
public function get functionPath():String{
return (this._functionPath);
}
public function set functionPath(_arg1:String){
this._functionPath = _arg1;
}
override public function run():void{
var scope:*;
var paramsi:*;
var leng:int;
var fName:Array;
var i:*;
if (this.functionPath != null){
scope = this.component["parent"];
fName = this.functionPath.split(".");
for (i in fName) {
scope = scope[fName[i]];
};
try {
scope.apply(null, this.parameters);
} catch(e:Error) {
trace("FLASHEFF Warning : Invalid function definition was setted in functionPath parameters of FECCallFunction object.", e);
};
};
}
public function set parameters(_arg1){
var _local2:RegExp;
var _local3:Array;
if (!(_arg1 is Array)){
_local2 = /,/;
_local3 = String(_arg1).split(_local2);
this._parameters = _local3;
} else {
this._parameters = _arg1;
};
if (_arg1 == ""){
this._parameters = aux;
};
}
public function get parameters(){
return (this._parameters);
}
}
}//package com.jumpeye.flashEff2.command.callFunction
Section 5
//FECSwitchObjects (com.jumpeye.flashEff2.command.switchObjects.FECSwitchObjects)
package com.jumpeye.flashEff2.command.switchObjects {
import flash.display.*;
import flash.events.*;
import com.jumpeye.core.*;
import com.jumpeye.flashEff2.core.interfaces.*;
import com.jumpeye.Events.*;
import flash.utils.*;
public class FECSwitchObjects extends IFlashEffCommand {
private var addEvt:Boolean;// = true
private var _newTargetInstance:String;// = ""
private var _parameters;
private var bole:Boolean;// = true
private var isTrans:Boolean;// = true
private var _reverse:Boolean;// = false
private var do2ndTrans:Boolean;// = false
private var _flashEff2Instance:String;
private var continueAction;
protected var func:Function;
private var aux:Array;
private var scope;
private var _action:String;// = "show"
private var nextFunc:Function;
private var nextInterval:Number;
private var flashEff:JUIComponent;
private var kk;
private var c;
private var _flashEffInstance:String;
private var d:Object;
private var _isNewTargetInstanceVisible:Boolean;// = false
private var _functionPath:String;
public function FECSwitchObjects(_arg1:JUIComponent=null){
d = {};
super();
this.component = _arg1;
}
public function get newTargetInstance():String{
return (this._newTargetInstance);
}
public function get flashEffInstance():String{
return (this._flashEffInstance);
}
override public function run():void{
var _local1:*;
var _local2:DisplayObject;
if (((!((this.flashEff == null))) && (!((this._newTargetInstance == ""))))){
d.targetEff = this.flashEff;
d.go2trans2 = false;
c = this.flashEff.target;
this.do2ndTrans = false;
if (this.flashEff["tempTarget"] != null){
if (this.flashEff["tempTarget"].listener != undefined){
d.targetEff.removeEventListener(FLASHEFFEvents.TRANSITION_END, this.flashEff["tempTarget"].listener);
};
} else {
this.flashEff["tempTarget"] = {};
};
_local1 = this.flashEff["tempTarget"];
switch (this.action){
case "show":
if (this.component.isTransitioning){
} else {
if (this.flashEff.isTransitioning){
} else {
_local2 = this.component.target;
this.flashEff.show();
};
};
break;
case "hide":
if (this.component.isTransitioning){
} else {
if (this.flashEff.isTransitioning){
} else {
_local2 = this.component.target;
this.flashEff.hide();
};
};
break;
case "change":
if (this.component.isTransitioning){
} else {
if (this.flashEff.isTransitioning){
} else {
if (((!((this.flashEff == null))) && (!((this._newTargetInstance == ""))))){
this.flashEff._targetInstanceName = this._newTargetInstance;
};
this.flashEff.target.visible = false;
this.component.addEventListener(FLASHEFFEvents.TRANSITION_END, newEndTransition);
this.component.hide();
};
};
break;
};
};
}
private function endTransition(_arg1:FLASHEFFEvents){
var _local2:* = this.flashEff["tempTarget"];
this.flashEff._targetInstanceName = _local2.target;
d.targetEff.removeEventListener(FLASHEFFEvents.TRANSITION_END, endTransition);
var _local3:Timer = new Timer(1, 1);
_local3.addEventListener(TimerEvent.TIMER, this.timerHandler);
_local3.start();
c.visible = false;
}
public function set newTargetInstance(_arg1:String){
var newTarg:*;
var arg = _arg1;
this._newTargetInstance = arg;
try {
newTarg = findInstance();
newTarg.visible = this.isNewTargetInstanceVisible;
} catch(e:Error) {
};
}
public function set flashEffInstance(_arg1:String){
this._flashEffInstance = _arg1;
this.findFlashEff2();
}
private function doChange(){
}
public function get functionPath():String{
return (this._functionPath);
}
private function endTransition1(_arg1:FLASHEFFEvents){
var _local2:* = this.flashEff["tempTarget"];
var _local3 = this.flashEff;
_local3["removeEventListener"](FLASHEFFEvents.TRANSITION_END, endTransition1);
_local2.listener = endTransition;
_local3 = this.flashEff;
_local3["addEventListener"](FLASHEFFEvents.TRANSITION_END, endTransition);
nextInterval = setInterval(this.changeNextFunc, 1, this.doShow);
}
private function changeNextFunc(_arg1:Function){
this.nextFunc();
this.nextFunc = _arg1;
clearInterval(this.nextInterval);
}
public function set isNewTargetInstanceVisible(_arg1:Boolean){
var paramsi:*;
var leng:int;
var i:*;
var newTarg:*;
var arg = _arg1;
this._isNewTargetInstanceVisible = arg;
scope = this.component["parent"];
var fName:Array = this._flashEff2Instance.split(".");
for (i in fName) {
scope = scope[fName[i]];
};
this.flashEff = JUIComponent(scope);
try {
newTarg = findInstance();
if (arg){
} else {
this.flashEff.targetVisibility = false;
newTarg.visible = false;
};
} catch(e:Error) {
};
}
private function doShow():void{
this.flashEff["tempTarget"].action = "show";
this.flashEff.show();
}
public function get flashEff2Instance():String{
return (this._flashEff2Instance);
}
public function get action():String{
return (this._action);
}
public function set functionPath(_arg1:String){
this._functionPath = _arg1;
}
private function timerHandler(_arg1:TimerEvent){
this.nextFunc();
}
private function newEndTransition(_arg1:FLASHEFFEvents){
this.flashEff.show();
}
private function findFlashEff2(){
var _local1:*;
var _local2:int;
var _local4:*;
scope = this.component["parent"];
var _local3:Array = this._flashEff2Instance.split(".");
for (_local4 in _local3) {
scope = scope[_local3[_local4]];
};
this.flashEff = JUIComponent(scope);
}
public function set parameters(_arg1){
var _local2:RegExp;
var _local3:Array;
if (!(_arg1 is Array)){
_local2 = /,/;
_local3 = String(_arg1).split(_local2);
this._parameters = _local3;
} else {
this._parameters = _arg1;
};
if (_arg1 == ""){
this._parameters = aux;
};
}
public function get isNewTargetInstanceVisible():Boolean{
return (this._isNewTargetInstanceVisible);
}
public function set flashEff2Instance(_arg1:String){
this._flashEff2Instance = _arg1;
this.findFlashEff2();
}
public function set action(_arg1:String){
this._action = _arg1;
}
private function doHide():void{
this.flashEff["tempTarget"].action = "hide";
this.flashEff.hide();
}
private function findInstance(){
var _local1:*;
var _local2:int;
var _local3:Array;
var _local4:*;
if (this.newTargetInstance != ""){
scope = this.component["parent"];
_local3 = this.newTargetInstance.split(".");
for (_local4 in _local3) {
scope = scope[_local3[_local4]];
};
return (scope);
};
}
public function get parameters(){
return (this._parameters);
}
private function endTransitionHide(_arg1:FLASHEFFEvents){
var _local2:* = this.flashEff["tempTarget"];
this.flashEff._targetInstanceName = _local2.target;
d.targetEff.removeEventListener(FLASHEFFEvents.TRANSITION_END, endTransition);
var _local3:Timer = new Timer(1, 1);
_local3.addEventListener(TimerEvent.TIMER, this.timerHandler);
_local3.start();
c.visible = false;
}
}
}//package com.jumpeye.flashEff2.command.switchObjects
Section 6
//IFlashEffButtonEffect (com.jumpeye.flashEff2.core.interfaces.IFlashEffButtonEffect)
package com.jumpeye.flashEff2.core.interfaces {
import flash.display.*;
import flash.utils.*;
public class IFlashEffButtonEffect extends IFlashEffPattern {
protected var _tweenDuration:Number;// = 0.3
protected var _tweenType:String;// = "Linear"
protected var _target:DisplayObject;
protected var _easeType:String;// = "easeOut"
public function get tweenDuration():Number{
return (this._tweenDuration);
}
public function set target(_arg1:DisplayObject):void{
this._target = _arg1;
}
public function buttonRollOver():void{
}
public function remove():void{
}
public function get tweenType():String{
return (this._tweenType);
}
public function get easeType():String{
return (this._easeType);
}
public function set tweenType(_arg1:String):void{
this._tweenType = _arg1;
}
public function apply():void{
}
public function buttonPress():void{
}
protected function get easeFunc():Function{
var easeFunc:*;
try {
easeFunc = (getDefinitionByName(("com.jumpeye.transitions.easing." + this._tweenType)) as Class);
return (easeFunc[this._easeType]);
} catch(e:ReferenceError) {
throw ((("FlashEff2 WARNING: The selected ease function is not in the Library ! Please drag the " + this.tweenType) + "Ease from the Components panel over the Library panel."));
return (null);
};
return (null);
}
public function set easeType(_arg1:String):void{
this._easeType = _arg1;
}
public function get target():DisplayObject{
return (this._target);
}
public function buttonRelease():void{
}
public function set tweenDuration(_arg1:Number):void{
if (_arg1 < 0){
_arg1 = 0;
};
this._tweenDuration = _arg1;
}
public function buttonRollOut():void{
}
}
}//package com.jumpeye.flashEff2.core.interfaces
Section 7
//IFlashEffCommand (com.jumpeye.flashEff2.core.interfaces.IFlashEffCommand)
package com.jumpeye.flashEff2.core.interfaces {
import flash.display.*;
public class IFlashEffCommand extends IFlashEffPattern {
protected var _target:DisplayObject;
private var _commandEventType:String;
public function get target():DisplayObject{
return (_target);
}
public function set target(_arg1:DisplayObject):void{
_target = _arg1;
}
public function get commandEventType():String{
return (this._commandEventType);
}
public function set commandEventType(_arg1:String):void{
_commandEventType = _arg1;
}
public function run():void{
}
}
}//package com.jumpeye.flashEff2.core.interfaces
Section 8
//IFlashEffFilter (com.jumpeye.flashEff2.core.interfaces.IFlashEffFilter)
package com.jumpeye.flashEff2.core.interfaces {
import flash.display.*;
public class IFlashEffFilter extends IFlashEffPattern {
protected var _target:Sprite;
public function get target():Sprite{
return (_target);
}
public function set target(_arg1:Sprite):void{
_target = _arg1;
}
public function remove():void{
}
public function apply():void{
}
}
}//package com.jumpeye.flashEff2.core.interfaces
Section 9
//IFlashEffPattern (com.jumpeye.flashEff2.core.interfaces.IFlashEffPattern)
package com.jumpeye.flashEff2.core.interfaces {
import flash.display.*;
import com.jumpeye.core.*;
public class IFlashEffPattern extends Sprite {
protected var _component:JUIComponent;
public function IFlashEffPattern(){
if (this.numChildren > 0){
this.removeChildAt(0);
};
scaleX = (scaleY = 0);
visible = false;
}
public function set component(_arg1:JUIComponent):void{
this._component = _arg1;
}
public function get component():JUIComponent{
return (this._component);
}
}
}//package com.jumpeye.flashEff2.core.interfaces
Section 10
//IFlashEffSymbol (com.jumpeye.flashEff2.core.interfaces.IFlashEffSymbol)
package com.jumpeye.flashEff2.core.interfaces {
import flash.display.*;
public class IFlashEffSymbol extends IFlashEffSymbolText {
protected var _target:DisplayObject;
public function get target():DisplayObject{
return (_target);
}
public function set target(_arg1:DisplayObject):void{
_target = _arg1;
}
}
}//package com.jumpeye.flashEff2.core.interfaces
Section 11
//IFlashEffSymbolText (com.jumpeye.flashEff2.core.interfaces.IFlashEffSymbolText)
package com.jumpeye.flashEff2.core.interfaces {
import flash.utils.*;
public class IFlashEffSymbolText extends IFlashEffPattern {
protected var _tweenDuration:Number;// = 1.7
protected var _easeType:String;// = "easeInOut"
protected var _tweenType:String;// = "Strong"
public function IFlashEffSymbolText(){
_tweenDuration = 1.7;
_tweenType = "Strong";
_easeType = "easeInOut";
super();
}
public function show():void{
}
public function get tweenDuration():Number{
return (this._tweenDuration);
}
public function set tweenDuration(_arg1:Number):void{
if (_arg1 < 0.001){
_arg1 = 0.001;
};
this._tweenDuration = _arg1;
}
public function get tweenType():String{
return (this._tweenType);
}
public function get easeType():String{
return (this._easeType);
}
public function hide():void{
}
public function remove():void{
}
public function set tweenType(_arg1:String):void{
this._tweenType = _arg1;
}
public function set easeType(_arg1:String):void{
this._easeType = _arg1;
}
public function get easeFunc():Function{
var easeFunc:*;
try {
easeFunc = (getDefinitionByName(("com.jumpeye.transitions.easing." + this.tweenType)) as Class);
return (easeFunc[this.easeType]);
} catch(e:ReferenceError) {
throw ((("FlashEff2 WARNING: The selected ease function is not in the Library ! Please drag the " + this.tweenType) + "Ease from the Components panel over the Library panel."));
return (null);
};
return (null);
}
}
}//package com.jumpeye.flashEff2.core.interfaces
Section 12
//IFlashEffText (com.jumpeye.flashEff2.core.interfaces.IFlashEffText)
package com.jumpeye.flashEff2.core.interfaces {
import flash.text.*;
public class IFlashEffText extends IFlashEffSymbolText {
protected var _partialBlurAmount:Number;// = 0
protected var _partialStart:Number;// = 50
protected var _partialGroup:String;// = "letters"
protected var _partialPercent:Number;// = 100
protected var _selectedStrings:Array;
protected var _target:TextField;
public function get partialPercent():Number{
return (this._partialPercent);
}
public function get partialBlurAmount():Number{
return (this._partialBlurAmount);
}
public function set partialPercent(_arg1:Number):void{
if (_arg1 < 0){
_arg1 = 0;
} else {
if (_arg1 > 100){
_arg1 = 100;
};
};
this._partialPercent = _arg1;
}
public function set partialStart(_arg1:Number):void{
if (_arg1 < 0){
_arg1 = 0;
} else {
if (_arg1 > 100){
_arg1 = 100;
};
};
this._partialStart = _arg1;
}
public function set selectedStrings(_arg1:Array):void{
this._selectedStrings = _arg1;
}
public function get target():TextField{
return (this._target);
}
public function set partialBlurAmount(_arg1:Number):void{
if (_arg1 < 0){
_arg1 = 0;
};
this._partialBlurAmount = _arg1;
}
public function get partialStart():Number{
return (this._partialStart);
}
public function set target(_arg1:TextField):void{
this._target = _arg1;
}
public function get selectedStrings():Array{
return (this._selectedStrings);
}
public function set partialGroup(_arg1:String):void{
this._partialGroup = _arg1;
}
public function get partialGroup():String{
return (this._partialGroup);
}
}
}//package com.jumpeye.flashEff2.core.interfaces
Section 13
//FESDesertIllusion (com.jumpeye.flashEff2.symbol.desertIllusion.FESDesertIllusion)
package com.jumpeye.flashEff2.symbol.desertIllusion {
import com.jumpeye.transitions.*;
import com.jumpeye.core.*;
import flash.filters.*;
import com.jumpeye.flashEff2.core.interfaces.*;
import com.jumpeye.Events.*;
import com.jumpeye.flashEff2.utils.wavesEffect.*;
public class FESDesertIllusion extends IFlashEffSymbol {
private var _preset:Number;
private var _wavesIntensity:Number;// = 80
private var transitionType:String;
private var waveIntensity;
private var maxWaveSize;
private var _blurAmount;// = 3
private var t;
private var _scaleAmount:Number;// = 1
private var radius:Number;
private var owner:Object;
private var bounds:Object;
private var _smooth:Boolean;// = true
private var _blurQuality:Number;// = 1
private var _waveSize:Number;// = 80
public function FESDesertIllusion(_arg1:JUIComponent=null){
_blurQuality = 1;
_wavesIntensity = 80;
_waveSize = 80;
_smooth = true;
owner = {};
_scaleAmount = 1;
_blurAmount = 3;
super();
this.component = _arg1;
this.init();
}
override public function show():void{
startTransition("show");
}
private function destroy():void{
if (!owner){
return;
};
TweenLite.killTweensOf(target, false);
TweenLite.killTweensOf(owner["wave"], false);
TweenLite.killTweensOf(owner.blurFilterTween, false);
if (owner["wave"]){
owner["wave"].bitmap.dispose();
};
if (target){
target.filters = [];
target.alpha = 1;
};
}
protected function init():void{
_tweenDuration = 1.5;
_easeType = "easeNone";
_tweenType = "Quadratic";
}
public function set waveSize(_arg1:Number):void{
this._waveSize = _arg1;
}
public function set blurQuality(_arg1:Number):void{
if (_arg1 < 0){
_arg1 = 0;
};
this._blurQuality = _arg1;
}
override public function hide():void{
startTransition("hide");
}
private function hdlChangeFilter(_arg1:Object):void{
var _local2:*;
var _local3:*;
var _local4:*;
if (!target){
return;
};
_local2 = _arg1.value;
_local3 = getBlurFilter(_local2);
_local4 = target.filters;
_local4.push(_local3);
target.filters = _local4;
}
public function set smooth(_arg1:Boolean):void{
this._smooth = _arg1;
}
public function get scaleAmount():Number{
return (this._scaleAmount);
}
private function hdlMotionFinished(){
this.component.dispatchEvent(new FLASHEFFEvents(FLASHEFFEvents.TRANSITION_END));
}
public function set blurAmount(_arg1:Number):void{
this._blurAmount = _arg1;
}
private function transition(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
this.target.visible = true;
owner.scX = (target.width / target.getBounds(target).width);
owner.scY = (target.height / target.getBounds(target).height);
owner.origX = (target.x + (target.width / 2));
owner.origY = (target.y + (target.height / 2));
_local1 = ((transitionType)=="show") ? 0 : 1;
_local2 = ((transitionType)=="show") ? 1 : 0;
_local3 = ((transitionType)=="show") ? maxWaveSize : 0;
_local4 = ((transitionType)=="show") ? 0 : maxWaveSize;
owner["wave"] = new JWavesEffect(target, smooth, _blurQuality, component.width, component.height);
owner["wave"].baseX = waveIntensity;
owner["wave"].baseY = waveIntensity;
target.alpha = _local1;
TweenLite.to(target, t, {alpha:_local2, delay:0, onComplete:hdlMotionFinished, ease:this.easeFunc, overwrite:false});
owner["wave"].value = _local3;
TweenLite.to(owner["wave"], t, {value:_local4, delay:0, onComplete:hdlMotionFinished, ease:this.easeFunc, overwrite:false});
_local5 = ((transitionType)=="show") ? (target.scaleX * scaleAmount) : owner.scX;
_local6 = ((transitionType)=="show") ? owner.scX : (target.scaleX * scaleAmount);
_local7 = ((transitionType)=="show") ? (target.scaleY * scaleAmount) : owner.scY;
_local8 = ((transitionType)=="show") ? owner.scY : (target.scaleY * scaleAmount);
_local9 = ((transitionType)=="show") ? blurAmount : 0;
_local10 = ((transitionType)=="show") ? 0 : blurAmount;
owner.blurFilterTween = {};
owner.blurFilterTween.value = _local9;
TweenLite.to(owner.blurFilterTween, t, {value:_local10, delay:0, onUpdate:hdlChangeFilter, onUpdateParams:[owner.blurFilterTween], ease:this.easeFunc, overwrite:false});
this.component.dispatchEvent(new FLASHEFFEvents(FLASHEFFEvents.TRANSITION_START));
}
override public function remove():void{
destroy();
}
public function get blurQuality():Number{
return (this._blurQuality);
}
private function startTransition(_arg1:String){
var _local2:*;
owner.gain = waveSize;
owner.customParam1 = wavesIntensity;
radius = ((Math.abs(component.rotation) / 180) * Math.PI);
transitionType = _arg1;
maxWaveSize = ((((owner.gain == "")) || (isNaN(Number(owner.gain))))) ? 100 : owner.gain;
maxWaveSize = Math.max(0, maxWaveSize);
waveIntensity = ((((owner.customParam1 == "")) || (isNaN(Number(owner.customParam1))))) ? 100 : owner.customParam1;
t = this._tweenDuration;
bounds = target.getBounds(target);
_local2 = target.getBounds(target.parent);
owner["targetObj"] = {x:target.x, y:target.y, width:(_local2.width * target.scaleX), height:(_local2.height * target.scaleY), scaleX:target.scaleX, scaleY:target.scaleY, xMin:_local2.x, yMin:_local2.y};
transition();
}
public function get blurAmount():Number{
return (this._blurAmount);
}
public function get waveSize():Number{
return (_waveSize);
}
public function set scaleAmount(_arg1:Number):void{
this._scaleAmount = _arg1;
}
public function get smooth():Boolean{
return (this._smooth);
}
public function set preset(_arg1:Number):void{
this._preset = _arg1;
}
public function get wavesIntensity():Number{
return (_wavesIntensity);
}
private function hdlScaleXChange(){
this.component.targetOwner.x = (owner.origX - (this.component.targetOwner.width / 2));
}
public function set wavesIntensity(_arg1:Number):void{
this._wavesIntensity = _arg1;
}
private function getBlurFilter(_arg1):BlurFilter{
var _local2:Number;
var _local3:Number;
_local2 = _arg1;
_local3 = _arg1;
return (new BlurFilter(_local2, _local3, _blurQuality));
}
public function get preset():Number{
return (this._preset);
}
private function hdlScaleYChange(){
this.component.targetOwner.y = (owner.origY - (this.component.targetOwner.height / 2));
}
}
}//package com.jumpeye.flashEff2.symbol.desertIllusion
Section 14
//FESEqualizer (com.jumpeye.flashEff2.symbol.equalizer.FESEqualizer)
package com.jumpeye.flashEff2.symbol.equalizer {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import com.jumpeye.transitions.*;
import com.jumpeye.core.*;
import flash.filters.*;
import flash.text.*;
import com.jumpeye.flashEff2.core.interfaces.*;
import com.jumpeye.Events.*;
import flash.utils.*;
public class FESEqualizer extends IFlashEffSymbol {
private var _preset:Number;// = 3
private var counter:uint;// = 0
private var _groupDuration:Number;// = 1.2
private var mcArray:Array;
private var intervals:Array;
private var _equalizerPercentage:Number;// = 70
private var props:Object;
private var maxDelay:Object;
private var _squareHeight:Number;// = 15
private var col:uint;// = 0
private var lin:uint;// = 0
private var destContent:Sprite;
private var startDelayArray:Array;
private var bitmapDataArray:Array;
private var dest:Sprite;
private var positionArray:Array;
private var finalSquaresMatrix:Array;
private var propArray:Array;
private var delay:Number;// = 0
private var _smooth:Boolean;// = false
private var _squareWidth:Number;// = 30
private var _brightness:Number;// = 0xFF
public function FESEqualizer(_arg1:JUIComponent=null){
_preset = 3;
_squareWidth = 30;
_squareHeight = 15;
_equalizerPercentage = 70;
_brightness = 0xFF;
_groupDuration = 1.2;
delay = 0;
_smooth = false;
lin = 0;
col = 0;
counter = 0;
propArray = new Array();
intervals = new Array();
startDelayArray = new Array();
positionArray = new Array();
finalSquaresMatrix = new Array();
mcArray = new Array();
props = new Object();
maxDelay = new Object();
super();
this.component = _arg1;
this.init();
}
override public function show():void{
applyTransition("show");
}
private function showEffect(_arg1, _arg2, _arg3, _arg4, _arg5):void{
clearInterval(intervals[((("int_" + _arg3) + "_") + _arg2)]);
TweenLite.killTweensOf(propArray[_arg4][_arg5]);
TweenLite.to(propArray[_arg4][_arg5], this.groupDuration, {twProp:0, ease:this.easeFunc, onUpdate:this.onShowChange, onUpdateParams:[_arg4, _arg5, _arg1], onComplete:onShowFinish, onCompleteParams:[_arg2, _arg3], overwrite:false});
}
public function get equalizerPercentage():Number{
return (this._equalizerPercentage);
}
public function set equalizerPercentage(_arg1:Number):void{
if (_arg1 < 0){
_arg1 = 0;
};
if (_arg1 > 95){
_arg1 = 95;
};
this._equalizerPercentage = _arg1;
}
protected function init():void{
_tweenDuration = 1.5;
_easeType = "easeOut";
_tweenType = "Strong";
}
public function get groupDuration():Number{
return (this._groupDuration);
}
private function onShowFinish(... _args):void{
var _local2:Number;
var _local3:Number;
_local2 = _args[0];
_local3 = _args[1];
if ((((maxDelay.i == _local2)) && ((maxDelay.j == _local3)))){
remove();
_component.dispatchEvent(new FLASHEFFEvents(FLASHEFFEvents.TRANSITION_END));
};
}
private function waitAFrame(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
this.component.removeEventListener(Event.ENTER_FRAME, this.waitAFrame);
_local2 = 0;
while (_local2 < positionArray.length) {
_local3 = 0;
while (_local3 < positionArray[_local2].length) {
if (positionArray[_local2][_local3][2] == "hide"){
intervals[((("int_" + _local3) + "_") + _local2)] = setInterval(hideEffect, ((positionArray[_local2][_local3][3] * delay) * 1000), mcArray[positionArray[_local2][_local3][0]][positionArray[_local2][_local3][1]], _local2, _local3, positionArray[_local2][_local3][0], positionArray[_local2][_local3][1]);
} else {
intervals[((("int_" + _local3) + "_") + _local2)] = setInterval(showEffect, ((positionArray[_local2][_local3][3] * delay) * 1000), mcArray[positionArray[_local2][_local3][0]][positionArray[_local2][_local3][1]], _local2, _local3, positionArray[_local2][_local3][0], positionArray[_local2][_local3][1]);
};
_local3++;
};
_local2++;
};
_component.dispatchEvent(new FLASHEFFEvents(FLASHEFFEvents.TRANSITION_START));
}
override public function hide():void{
applyTransition("hide");
}
private function onShowChange(... _args):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Sprite;
var _local6:Array;
var _local7:BitmapFilter;
_local2 = 80;
_local3 = _args[0];
_local4 = _args[1];
_local5 = _args[2];
_local6 = new Array();
propArray[_local3][_local4].br = (propArray[_local3][_local4].twProp * (brightness / _local2));
_local5.visible = true;
if ((propArray[_local3][_local4].twProp - _local2) > 0){
propArray[_local3][_local4].alpha = (((100 - _local2) - (propArray[_local3][_local4].twProp - _local2)) * (1 / (100 - _local2)));
} else {
propArray[_local3][_local4].alpha = 1;
};
propArray[_local3][_local4].k = (850 - (7.5 * (100 - propArray[_local3][_local4].twProp)));
propArray[_local3][_local4].z = (((100 - propArray[_local3][_local4].k) * 4) / propArray[_local3][_local4].k);
_local6 = [(propArray[_local3][_local4].k / 100), (propArray[_local3][_local4].z / 100), (propArray[_local3][_local4].z / 100), 0, propArray[_local3][_local4].br, (propArray[_local3][_local4].z / 100), (propArray[_local3][_local4].k / 100), (propArray[_local3][_local4].z / 100), 0, propArray[_local3][_local4].br, (propArray[_local3][_local4].z / 100), (propArray[_local3][_local4].z / 100), (propArray[_local3][_local4].k / 100), 0, propArray[_local3][_local4].br, 0, 0, 0, propArray[_local3][_local4].alpha, 0];
_local7 = new ColorMatrixFilter(_local6);
_local5.filters = new Array(_local7);
}
public function set squareWidth(_arg1:Number):void{
if ((((_arg1 <= 0)) || ((isNaN(_arg1) == true)))){
_arg1 = 50;
};
this._squareWidth = _arg1;
}
public function set squareHeight(_arg1:Number):void{
if ((((_arg1 <= 0)) || ((isNaN(_arg1) == true)))){
_arg1 = 50;
};
this._squareHeight = _arg1;
}
public function get brightness():Number{
return (this._brightness);
}
private function applyTransition(_arg1:String):void{
var _local2:Rectangle;
var _local3:Object;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Array;
var _local8:Number;
var _local9:JFEEqualizerPresets;
var _local10:Object;
var _local11:Number;
_local2 = new Rectangle();
_local3 = new Object();
_local4 = 0;
_local5 = 0;
_local6 = 0;
_local7 = new Array();
_local8 = 0;
_local11 = 0;
remove();
if (this.tweenDuration < this.groupDuration){
this.tweenDuration = this.groupDuration;
};
if (this.squareWidth > this.target.width){
this.squareWidth = this.target.width;
};
if (this.squareHeight > this.target.height){
this.squareHeight = this.target.height;
};
_local2 = this.target.getBounds(this.target);
_local3.xPos = (_local2.x * this.target.scaleX);
_local3.yPos = (_local2.y * this.target.scaleY);
_local3.w = (_local2.width * this.target.scaleX);
_local3.h = (_local2.height * this.target.scaleY);
col = Math.round((_local3.w / this._squareWidth));
lin = Math.round((_local3.h / this._squareHeight));
if (col > 30){
col = 30;
this.squareWidth = Math.round((this.target.width / col));
};
if (lin > 30){
lin = 30;
this.squareHeight = Math.round((this.target.height / lin));
};
props.eqDur = (((this.tweenDuration - this.groupDuration) * this.equalizerPercentage) / 100);
props.lastSqDur = ((this.tweenDuration - this.groupDuration) - props.eqDur);
if ((((preset == 1)) || ((preset == 2)))){
delay = (props.lastSqDur / col);
} else {
delay = (props.lastSqDur / lin);
};
_local8 = Math.floor((props.eqDur / delay));
_local9 = new JFEEqualizerPresets(lin, col, preset, _local8, _arg1);
positionArray = _local9.orderList;
maxDelay = _local9.maxDelayObj;
mcArray = createBitmapImage(this.target, lin, col, _local2);
_local5 = 0;
while (_local5 < lin) {
propArray[_local5] = new Array();
_local6 = 0;
while (_local6 < col) {
_local10 = new Object();
_local10.z = 1;
_local10.br = 0;
_local10.alpha = 1;
if (_arg1 == "show"){
mcArray[_local5][_local6].visible = false;
_local10.k = 850;
_local10.twProp = 100;
propArray[_local5][_local6] = _local10;
} else {
if (_arg1 == "hide"){
_local10.k = 100;
_local10.twProp = 0;
propArray[_local5][_local6] = _local10;
};
};
_local6++;
};
_local5++;
};
this.component.addEventListener(Event.ENTER_FRAME, this.waitAFrame, false, 0, true);
}
public function set smooth(_arg1:Boolean):void{
this._smooth = _arg1;
}
public function set groupDuration(_arg1:Number):void{
if ((((_arg1 <= 0)) || ((isNaN(_arg1) == true)))){
_arg1 = 0.001;
};
this._groupDuration = _arg1;
}
override public function remove():void{
var _local1:uint;
var _local2:uint;
var _local3:Number;
var _local4:*;
var _local5:Number;
if (this.component != null){
this.component.removeEventListener(Event.ENTER_FRAME, this.waitAFrame);
};
if (propArray.length != 0){
_local1 = 0;
while (_local1 < lin) {
_local2 = 0;
while (_local2 < col) {
TweenLite.killTweensOf(propArray[_local1][_local2]);
_local2++;
};
_local1++;
};
};
_local3 = 0;
while (_local3 < positionArray.length) {
_local5 = 0;
while (_local5 < positionArray[_local3].length) {
clearInterval(intervals[((("int_" + _local5) + "_") + _local3)]);
_local5++;
};
_local3++;
};
intervals = [];
propArray = [];
startDelayArray = [];
positionArray = [];
mcArray = [];
for (_local4 in bitmapDataArray) {
if (bitmapDataArray[_local4] != null){
bitmapDataArray[_local4].bitmapData.dispose();
bitmapDataArray[_local4] = null;
};
};
bitmapDataArray = [];
if ((dest is Sprite)){
this.component.targetOwner.removeChild(dest);
dest = null;
};
if (this.target != null){
this.target.visible = true;
};
}
private function hideEffect(_arg1, _arg2, _arg3, _arg4, _arg5):void{
clearInterval(intervals[((("int_" + _arg3) + "_") + _arg2)]);
TweenLite.killTweensOf(propArray[_arg4][_arg5]);
TweenLite.to(propArray[_arg4][_arg5], this.groupDuration, {twProp:100, ease:this.easeFunc, onUpdate:this.onHideChange, onUpdateParams:[_arg4, _arg5, _arg1], onComplete:onHideFinish, onCompleteParams:[_arg2, _arg3], overwrite:false});
}
public function set brightness(_arg1:Number):void{
if (_arg1 < 0){
_arg1 = 0;
};
if (_arg1 > 0xFF){
_arg1 = 0xFF;
};
this._brightness = _arg1;
}
public function get squareHeight():Number{
return (this._squareWidth);
}
public function get smooth():Boolean{
return (this._smooth);
}
private function onHideFinish(... _args):void{
var _local2:Number;
var _local3:Number;
var _local4:*;
_local2 = _args[0];
_local3 = _args[1];
if ((((maxDelay.i == _local2)) && ((maxDelay.j == _local3)))){
_component.targetOwner.removeChild(_component.targetOwner["destClip"]);
dest = null;
for (_local4 in bitmapDataArray) {
if (bitmapDataArray[_local4] != null){
bitmapDataArray[_local4].bitmapData.dispose();
bitmapDataArray[_local4] = null;
};
};
bitmapDataArray = [];
_component.dispatchEvent(new FLASHEFFEvents(FLASHEFFEvents.TRANSITION_END));
};
}
public function get squareWidth():Number{
return (this._squareWidth);
}
public function set preset(_arg1:Number):void{
if ((((((_arg1 > 0)) && ((_arg1 < 5)))) && ((isNaN(_arg1) == false)))){
this._preset = _arg1;
};
}
private function createBitmapImage(_arg1, _arg2, _arg3, _arg4):Array{
var _local5:Array;
var _local6:BitmapData;
var _local7:Bitmap;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:uint;
var _local17:uint;
var _local18:Matrix;
var _local19:Sprite;
_local5 = new Array();
this._squareWidth = ((_arg4.width * _arg1.scaleX) / _arg3);
this._squareHeight = ((_arg4.height * _arg1.scaleY) / _arg2);
_local8 = Math.round(this._squareWidth);
_local9 = Math.round(this._squareHeight);
_local11 = 0;
_local13 = 0;
if ((this._component.targetOwner.getChildByName("destClip") is Sprite)){
this._component.targetOwner.removeChild(this._component.targetOwner.getChildByName("destClip"));
};
dest = new Sprite();
dest.name = "dest";
this._component.targetOwner["destClip"] = dest;
this._component.targetOwner.addChild(dest);
dest.cacheAsBitmap = true;
_arg1.visible = false;
destContent = new Sprite();
dest.addChild(destContent);
if ((component.target is TextField)){
destContent.x = (Math.round((_arg4.x * _arg1.scaleX)) + 2);
destContent.y = (Math.round((_arg4.y * _arg1.scaleY)) + 2);
} else {
destContent.x = Math.round((_arg4.x * _arg1.scaleX));
destContent.y = Math.round((_arg4.y * _arg1.scaleY));
};
dest.rotation = _arg1.rotation;
_local16 = 0;
while (_local16 < _arg2) {
_local10 = 0;
_local12 = 0;
_local5[_local16] = [];
_local15 = Math.floor(_local13);
if (_local16 == (_arg2 - 1)){
_local15 = Math.round(((_local13 + this._squareHeight) - _local9));
};
_local17 = 0;
while (_local17 < _arg3) {
_local14 = Math.floor(_local12);
if (_local17 == (_arg3 - 1)){
_local14 = Math.round(((_local12 + this._squareWidth) - _local8));
};
_local19 = new Sprite();
_local19.name = ((("mat" + _local16) + "_") + _local17);
destContent.addChild(_local19);
_local5[_local16][_local17] = _local19;
_local19.x = _local10;
_local19.y = _local11;
_local6 = new BitmapData((_local8 + _local14), (_local9 + _local15), true, 0);
_local18 = new Matrix();
_local18.tx = (-(_local10) - (_arg4.x * _arg1.scaleX));
_local18.ty = (-(_local11) - (_arg4.y * _arg1.scaleY));
_local18.a = _arg1.scaleX;
_local18.d = _arg1.scaleY;
_local6.draw(_arg1, _local18);
_local7 = new Bitmap(_local6);
bitmapDataArray.push(_local7);
_local7.smoothing = this._smooth;
_local19.addChild(_local7);
_local10 = ((_local10 + _local8) + _local14);
_local12 = (((_local12 + this._squareWidth) - _local8) - _local14);
_local17++;
};
_local11 = ((_local11 + _local9) + _local15);
_local13 = (((_local13 + this._squareHeight) - _local9) - _local15);
_local16++;
};
return (_local5);
}
private function onHideChange(... _args):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Sprite;
var _local6:Array;
var _local7:BitmapFilter;
_local2 = 80;
_local3 = _args[0];
_local4 = _args[1];
_local5 = _args[2];
_local6 = new Array();
propArray[_local3][_local4].br = (propArray[_local3][_local4].twProp * (brightness / _local2));
if ((propArray[_local3][_local4].twProp - _local2) > 0){
propArray[_local3][_local4].alpha = (1 - ((propArray[_local3][_local4].twProp - _local2) * (1 / (100 - _local2))));
};
propArray[_local3][_local4].k = (100 + (7.5 * propArray[_local3][_local4].twProp));
propArray[_local3][_local4].z = (((100 - propArray[_local3][_local4].k) * 4) / propArray[_local3][_local4].k);
_local6 = [(propArray[_local3][_local4].k / 100), (propArray[_local3][_local4].z / 100), (propArray[_local3][_local4].z / 100), 0, propArray[_local3][_local4].br, (propArray[_local3][_local4].z / 100), (propArray[_local3][_local4].k / 100), (propArray[_local3][_local4].z / 100), 0, propArray[_local3][_local4].br, (propArray[_local3][_local4].z / 100), (propArray[_local3][_local4].z / 100), (propArray[_local3][_local4].k / 100), 0, propArray[_local3][_local4].br, 0, 0, 0, propArray[_local3][_local4].alpha, 0];
_local7 = new ColorMatrixFilter(_local6);
_local5.filters = new Array(_local7);
}
public function get preset():Number{
return (this._preset);
}
}
}//package com.jumpeye.flashEff2.symbol.equalizer
Section 15
//JFEEqualizerPresets (com.jumpeye.flashEff2.symbol.equalizer.JFEEqualizerPresets)
package com.jumpeye.flashEff2.symbol.equalizer {
public class JFEEqualizerPresets {
private var delayArr:Array;
private var preset:Number;
public var orderList:Array;
private var transitionType:String;
private var eqTotalSquares:Number;
private var columnNr:Number;
private var rowNr:Number;
public var maxDelayObj:Object;
public function JFEEqualizerPresets(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:String){
maxDelayObj = {val:0, i:0, j:0};
super();
orderList = new Array();
delayArr = new Array();
rowNr = _arg1;
columnNr = _arg2;
preset = _arg3;
eqTotalSquares = _arg4;
transitionType = _arg5;
getList();
}
private function getOneArray(_arg1:Number):Array{
var _local2:String;
var _local3:Array;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Boolean;
_local2 = "show";
_local3 = new Array();
_local4 = 0;
_local5 = 0;
_local6 = 0;
_local7 = 0;
_local8 = 0;
_local9 = 0;
_local10 = true;
switch (preset){
case 1:
while (_local5 < eqTotalSquares) {
if (_local2 == "show"){
_local10 = false;
_local6 = (Math.floor((Math.random() * ((columnNr - 2) - _local4))) + 1);
if (_local6 > (eqTotalSquares - _local5)){
_local6 = (eqTotalSquares - _local5);
};
if (_local6 < 1){
_local6 = 1;
};
_local9 = 0;
while (_local9 < _local6) {
if (((!((_local9 == 0))) && (!((_local5 == 0))))){
_local4++;
};
_local3[_local5] = new Array();
_local3[_local5][0] = _arg1;
_local3[_local5][1] = _local4;
_local3[_local5][2] = "show";
_local3[_local5][3] = _local5;
_local5++;
_local9++;
};
_local2 = "hide";
} else {
if (_local2 == "hide"){
_local10 = false;
_local6 = Math.floor(((Math.random() * (_local4 - 1)) + 1));
if (_local6 > (eqTotalSquares - _local5)){
_local6 = (eqTotalSquares - _local5);
};
if (_local6 < 1){
_local6 = 1;
};
_local9 = 0;
while (_local9 < _local6) {
if (_local9 != 0){
_local4--;
};
_local3[_local5] = new Array();
_local3[_local5][0] = _arg1;
_local3[_local5][1] = _local4;
_local3[_local5][2] = "hide";
_local3[_local5][3] = _local5;
_local5++;
_local9++;
};
_local2 = "show";
if (_local5 == eqTotalSquares){
_local4--;
};
};
};
};
if (_local10){
_local4--;
};
_local6 = ((columnNr - _local4) - 1);
_local2 = "show";
_local9 = 0;
while (_local9 < _local6) {
_local4++;
_local3[(_local5 + _local9)] = new Array();
_local3[(_local5 + _local9)][0] = _arg1;
_local3[(_local5 + _local9)][1] = _local4;
_local3[(_local5 + _local9)][2] = "show";
_local3[(_local5 + _local9)][3] = (_local5 + _local9);
_local9++;
};
break;
case 2:
while (_local5 < eqTotalSquares) {
if (_local2 == "show"){
_local10 = false;
_local6 = (Math.floor((Math.random() * ((columnNr - 2) - _local4))) + 1);
if (_local6 > (eqTotalSquares - _local5)){
_local6 = (eqTotalSquares - _local5);
};
if (_local6 < 1){
_local6 = 1;
};
_local9 = 0;
while (_local9 < _local6) {
if (((!((_local9 == 0))) && (!((_local5 == 0))))){
_local4++;
};
_local3[_local5] = new Array();
_local3[_local5][0] = _arg1;
_local3[_local5][1] = ((columnNr - 1) - _local4);
_local3[_local5][2] = "show";
_local3[_local5][3] = _local5;
_local5++;
_local9++;
};
_local2 = "hide";
} else {
if (_local2 == "hide"){
_local10 = false;
_local6 = (Math.floor((Math.random() * (_local4 - 1))) + 1);
if (_local6 > (eqTotalSquares - _local5)){
_local6 = (eqTotalSquares - _local5);
};
if (_local6 < 1){
_local6 = 1;
};
_local9 = 0;
while (_local9 < _local6) {
if (_local9 != 0){
_local4--;
};
_local3[_local5] = new Array();
_local3[_local5][0] = _arg1;
_local3[_local5][1] = ((columnNr - 1) - _local4);
_local3[_local5][2] = "hide";
_local3[_local5][3] = _local5;
_local5++;
_local9++;
};
_local2 = "show";
if (_local5 == eqTotalSquares){
_local4--;
};
};
};
};
if (_local10){
_local4--;
};
_local6 = ((columnNr - _local4) - 1);
_local2 = "show";
_local9 = 0;
while (_local9 < _local6) {
_local4++;
_local3[(_local5 + _local9)] = new Array();
_local3[(_local5 + _local9)][0] = _arg1;
_local3[(_local5 + _local9)][1] = ((columnNr - 1) - _local4);
_local3[(_local5 + _local9)][2] = "show";
_local3[(_local5 + _local9)][3] = (_local5 + _local9);
_local9++;
};
break;
case 3:
while (_local5 < eqTotalSquares) {
if (_local2 == "show"){
_local10 = false;
_local6 = (Math.floor((Math.random() * ((rowNr - 2) - _local4))) + 1);
if (_local6 > (eqTotalSquares - _local5)){
_local6 = (eqTotalSquares - _local5);
};
if (_local6 < 1){
_local6 = 1;
};
_local9 = 0;
while (_local9 < _local6) {
if (((!((_local9 == 0))) && (!((_local5 == 0))))){
_local4++;
};
_local3[_local5] = new Array();
_local3[_local5][0] = _local4;
_local3[_local5][1] = _arg1;
_local3[_local5][2] = "show";
_local3[_local5][3] = _local5;
_local5++;
_local9++;
};
_local2 = "hide";
} else {
if (_local2 == "hide"){
_local10 = false;
_local6 = (Math.floor((Math.random() * (_local4 - 1))) + 1);
if (_local6 > (eqTotalSquares - _local5)){
_local6 = (eqTotalSquares - _local5);
};
if (_local6 < 1){
_local6 = 1;
};
_local9 = 0;
while (_local9 < _local6) {
if (_local9 != 0){
_local4--;
};
_local3[_local5] = new Array();
_local3[_local5][0] = _local4;
_local3[_local5][1] = _arg1;
_local3[_local5][2] = "hide";
_local3[_local5][3] = _local5;
_local5++;
_local9++;
};
_local2 = "show";
if (_local5 == eqTotalSquares){
_local4--;
};
};
};
};
if (_local10){
_local4--;
};
_local6 = ((rowNr - _local4) - 1);
_local2 = "show";
_local9 = 0;
while (_local9 < _local6) {
_local4++;
_local3[(_local5 + _local9)] = new Array();
_local3[(_local5 + _local9)][0] = _local4;
_local3[(_local5 + _local9)][1] = _arg1;
_local3[(_local5 + _local9)][2] = "show";
_local3[(_local5 + _local9)][3] = (_local5 + _local9);
_local9++;
};
break;
case 4:
while (_local5 < eqTotalSquares) {
if (_local2 == "show"){
_local10 = false;
_local6 = (Math.floor((Math.random() * ((rowNr - 2) - _local4))) + 1);
if (_local6 > (eqTotalSquares - _local5)){
_local6 = (eqTotalSquares - _local5);
};
if (_local6 < 1){
_local6 = 1;
};
_local9 = 0;
while (_local9 < _local6) {
if (((!((_local9 == 0))) && (!((_local5 == 0))))){
_local4++;
};
_local3[_local5] = new Array();
_local3[_local5][0] = ((rowNr - 1) - _local4);
_local3[_local5][1] = _arg1;
_local3[_local5][2] = "show";
_local3[_local5][3] = _local5;
_local5++;
_local9++;
};
_local2 = "hide";
} else {
if (_local2 == "hide"){
_local10 = false;
_local6 = (Math.floor((Math.random() * (_local4 - Math.floor(((3 * _local4) / 4))))) + Math.floor(((3 * _local4) / 4)));
if (_local6 > (eqTotalSquares - _local5)){
_local6 = (eqTotalSquares - _local5);
};
if (_local6 < 1){
_local6 = 1;
};
_local9 = 0;
while (_local9 < _local6) {
if (_local9 != 0){
_local4--;
};
_local3[_local5] = new Array();
_local3[_local5][0] = ((rowNr - 1) - _local4);
_local3[_local5][1] = _arg1;
_local3[_local5][2] = "hide";
_local3[_local5][3] = _local5;
_local5++;
_local9++;
};
_local2 = "show";
if (_local5 == eqTotalSquares){
_local4--;
};
};
};
};
if (_local10){
_local4--;
};
_local6 = ((rowNr - _local4) - 1);
_local2 = "show";
_local9 = 0;
while (_local9 < _local6) {
_local4++;
_local3[(_local5 + _local9)] = new Array();
_local3[(_local5 + _local9)][0] = ((rowNr - 1) - _local4);
_local3[(_local5 + _local9)][1] = _arg1;
_local3[(_local5 + _local9)][2] = "show";
_local3[(_local5 + _local9)][3] = (_local5 + _local9);
_local9++;
};
break;
};
_local7 = Math.floor((Math.random() * (delayArr.length - 1)));
_local8 = delayArr[_local7];
delayArr.splice(_local7, 1);
_local9 = 0;
while (_local9 < _local3.length) {
_local3[_local9][3] = (_local3[_local9][3] + _local8);
if (maxDelayObj.val < _local3[_local9][3]){
maxDelayObj.val = _local3[_local9][3];
maxDelayObj.i = _arg1;
maxDelayObj.j = _local9;
};
if (transitionType == "hide"){
if (_local3[_local9][2] == "show"){
_local3[_local9][2] = "hide";
} else {
if (_local3[_local9][2] == "hide"){
_local3[_local9][2] = "show";
};
};
};
_local9++;
};
return (_local3);
}
public function getList(){
var _local1:Number;
var _local2:Number;
_local1 = 0;
_local2 = 0;
switch (preset){
case 1:
_local2 = 0;
while (_local2 < rowNr) {
delayArr[_local2] = _local2;
_local2++;
};
_local1 = 0;
while (_local1 < rowNr) {
orderList[_local1] = getOneArray(_local1);
_local1++;
};
break;
case 2:
_local2 = 0;
while (_local2 < rowNr) {
delayArr[_local2] = _local2;
_local2++;
};
_local1 = 0;
while (_local1 < rowNr) {
orderList[_local1] = getOneArray(_local1);
_local1++;
};
break;
case 3:
_local2 = 0;
while (_local2 < columnNr) {
delayArr[_local2] = _local2;
_local2++;
};
_local1 = 0;
while (_local1 < columnNr) {
orderList[_local1] = getOneArray(_local1);
_local1++;
};
break;
default:
_local2 = 0;
while (_local2 < columnNr) {
delayArr[_local2] = _local2;
_local2++;
};
_local1 = 0;
while (_local1 < columnNr) {
orderList[_local1] = getOneArray(_local1);
_local1++;
};
break;
};
}
}
}//package com.jumpeye.flashEff2.symbol.equalizer
Section 16
//FESFlipSquare (com.jumpeye.flashEff2.symbol.flip.FESFlipSquare)
package com.jumpeye.flashEff2.symbol.flip {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import com.jumpeye.transitions.*;
import com.jumpeye.core.*;
import flash.text.*;
import com.jumpeye.flashEff2.core.interfaces.*;
import com.jumpeye.Events.*;
import com.jumpeye.flashEff2.utils.distort.*;
public class FESFlipSquare extends IFlashEffSymbol {
private var _preset:Number;// = 1
private var _focalLength:Number;// = 100
protected var propOwner:Object;
private var _reverseDirection:Boolean;// = true
private var _groupDuration:Number;// = 0.7
private var _squareHeight:Number;// = 50
private var _reverseHideDirection:Boolean;// = false
protected var sense:Number;// = 1
protected var reverseSign:Number;// = 1
private var _smooth:Boolean;// = false
protected var propertiesBackup:Object;
private var _squareWidth:Number;// = 50
public function FESFlipSquare(_arg1:JUIComponent=null){
sense = 1;
reverseSign = 1;
_preset = 1;
_focalLength = 100;
_smooth = false;
_squareWidth = 50;
_squareHeight = 50;
_groupDuration = 0.7;
_reverseDirection = true;
_reverseHideDirection = false;
super();
this.component = _arg1;
this.init();
}
private function startSquareTransition(_arg1, _arg2){
}
override public function show():void{
this.target.visible = false;
this.startTransition(true);
}
private function obtainAbsoluthAngle(_arg1:Number, _arg2):Number{
return (((_arg1 - _arg2) / Math.PI));
}
protected function init():void{
_tweenDuration = 1.4;
_easeType = "easeInOut";
_tweenType = "Strong";
}
private function motionChagedVertical(_arg1:Object){
_arg1.flipObject.setTransformMatrix(((Math.PI * _arg1.angle) - _arg1.transformPosition), 0);
_arg1.transformPosition = (Math.PI * _arg1.angle);
_arg1.flipObject.flipEffect(_arg1);
}
public function get groupDuration():Number{
return (this._groupDuration);
}
public function set reverseHideDirection(_arg1:Boolean):void{
this._reverseHideDirection = true;
if (_arg1 == false){
this.reverseSign = 1;
} else {
this.reverseSign = -1;
};
}
private function initTween(_arg1:String=""):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:uint;
var _local11:Number;
var _local12:Number;
var _local13:uint;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:*;
var _local18:*;
_local2 = 0;
_local3 = 0;
_local4 = 0;
_local7 = this;
if ((propOwner.targetHeight / this.squareHeight) != propOwner.lin){
_local3 = ((propOwner.targetHeight - (propOwner.lin * this.squareHeight)) / propOwner.lin);
this.squareHeight = (this.squareHeight + _local3);
};
if ((propOwner.targetWidth / this.squareWidth) != propOwner.col){
_local2 = ((propOwner.targetWidth - (propOwner.col * this.squareWidth)) / propOwner.col);
this.squareWidth = (this.squareWidth + _local2);
};
if (propOwner.show == true){
_local4 = ((Math.PI / 2) * this.sense);
};
propOwner.aliasTarget = new Sprite();
this.component.targetOwner.addChild(propOwner.aliasTarget);
propOwner.clips = {};
_local3 = (this.squareHeight - Math.floor(this.squareHeight));
_local8 = Math.round(this.squareHeight);
_local9 = Math.round(this.squareWidth);
_local6 = 0;
_local3 = 0;
_local10 = 0;
while (_local10 < propOwner.lin) {
_local5 = 0;
_local2 = 0;
_local12 = Math.floor(_local3);
if (_local10 == (propOwner.lin - 1)){
_local12 = Math.ceil(((_local3 + this.squareHeight) - _local8));
};
_local13 = 0;
while (_local13 < propOwner.col) {
_local14 = Math.floor(_local2);
if (_local13 == (propOwner.col - 1)){
_local14 = Math.ceil(((_local2 + this.squareWidth) - _local9));
};
_local15 = (_local9 + _local14);
_local16 = (_local8 + _local12);
_local17 = new Sprite();
propOwner.clips[((("clip" + _local10) + "_") + _local13)] = {};
_local18 = propOwner.clips[((("clip" + _local10) + "_") + _local13)];
_local18.clip = _local17;
propOwner.aliasTarget.addChild(_local17);
_local17.x = (_local5 + (_local15 / 2));
_local17.y = (_local6 + (_local16 / 2));
_local18.bitmapData = new BitmapData(_local15, _local16, true, 0xFF0000);
_local18.pointArray = [[(-(_local15) / 2), (-(_local16) / 2)], [(_local15 / 2), (-(_local16) / 2)], [(_local15 / 2), (_local16 / 2)], [(-(_local15) / 2), (_local16 / 2)]];
_local18.distorsionObject = new JDistortImage(_local17, _local18.bitmapData, 1, 1);
_local18.distorsionObject.smooth = this.smooth;
_local18.matrix = new Matrix();
_local18.matrix.scale(this.target.scaleX, this.target.scaleY);
_local18.matrix.translate((-(_local5) - (propOwner.bounds.x * this.target.scaleX)), (-(_local6) - (propOwner.bounds.y * this.target.scaleY)));
_local18.distorsionObject.texture.draw(this.target, _local18.matrix);
_local5 = (_local5 + _local17.width);
_local2 = (((_local2 + this.squareWidth) - _local17.width) - _local14);
_local18.flipObject = new JFEFlipEffect(this.focalLength);
_local13++;
};
_local6 = (_local6 + (_local8 + _local12));
_local3 = (((_local3 + this.squareHeight) - _local8) - _local12);
_local10++;
};
if (_arg1 != "Vertical"){
_local10 = 0;
while (_local10 < propOwner.lin) {
_local13 = 0;
while (_local13 < propOwner.col) {
_local17 = propOwner.clips[((("clip" + _local10) + "_") + _local13)];
propOwner.clips[((("clip" + _local10) + "_") + _local13)].transformPosition = (_local17.angle = 0);
_local17.flipObject.firstDistortion(_local17, 0, _local4);
if (propOwner.show == true){
_local17.finalAngle = this.obtainAbsoluthAngle(0, _local4);
} else {
_local17.finalAngle = (this.obtainAbsoluthAngle(((Math.PI / 2) * this.sense), _local4) * this.reverseSign);
};
_local13++;
};
_local10++;
};
} else {
_local10 = 0;
while (_local10 < propOwner.lin) {
_local13 = 0;
while (_local13 < propOwner.col) {
_local17 = propOwner.clips[((("clip" + _local10) + "_") + _local13)];
_local17.angle = 0;
_local17.transformPosition = 0;
_local17.flipObject.firstDistortion(_local17, _local4, 0);
if (propOwner.show == true){
_local17.finalAngle = this.obtainAbsoluthAngle(0, _local4);
} else {
_local17.finalAngle = (this.obtainAbsoluthAngle(((Math.PI / 2) * this.sense), _local4) * this.reverseSign);
};
_local13++;
};
_local10++;
};
};
_local11 = 0;
if ((this.target is TextField)){
_local11 = 2;
};
propOwner.aliasTarget.x = ((this.target.x + (propOwner.bounds.x * this.target.scaleX)) + _local11);
propOwner.aliasTarget.y = ((this.target.y + (propOwner.bounds.y * this.target.scaleY)) + _local11);
propOwner.aliasTarget.visible = false;
propOwner.tweensFinished = 0;
}
private function endSquareTranistion(){
propOwner.tweensFinished++;
if (propOwner.tweensFinished == (propOwner.lin * propOwner.col)){
propOwner.isMotionFinished = true;
if (propOwner.show == true){
this.target.visible = true;
propOwner.aliasTarget.visible = false;
clearProperties();
};
this.component.dispatchEvent(new FLASHEFFEvents(FLASHEFFEvents.TRANSITION_END));
};
}
override public function hide():void{
this.startTransition(false);
}
public function set squareWidth(_arg1:Number):void{
if (_arg1 < 1){
_arg1 = 1;
};
this._squareWidth = _arg1;
}
public function set groupDuration(_arg1:Number):void{
if (_arg1 < 0.001){
_arg1 = 0.001;
};
this._groupDuration = _arg1;
}
public function set squareHeight(_arg1:Number):void{
if (_arg1 < 1){
_arg1 = 1;
};
this._squareHeight = _arg1;
}
public function set smooth(_arg1:Boolean):void{
this._smooth = _arg1;
}
public function set focalLength(_arg1:Number):void{
this._focalLength = _arg1;
}
private function waitAFrame(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:Object;
var _local5:Number;
this.component.removeEventListener(Event.ENTER_FRAME, this.waitAFrame);
switch (this.preset){
case 2:
_local2 = 0;
while (_local2 < propOwner.lin) {
_local3 = 0;
while (_local3 < propOwner.col) {
_local4 = propOwner.clips[((("clip" + _local2) + "_") + _local3)];
TweenLite.to(_local4, this.groupDuration, {angle:_local4.finalAngle, delay:(((propOwner.lin * propOwner.col) - (((_local2 * propOwner.col) + _local3) + 1)) * this.propOwner.delay), ease:this.easeFunc, onUpdate:this.motionChagedVertical, onComplete:endSquareTranistion, onUpdateParams:[_local4]});
_local3++;
};
_local2++;
};
break;
case 3:
_local2 = 0;
while (_local2 < propOwner.lin) {
_local3 = 0;
while (_local3 < propOwner.col) {
_local4 = propOwner.clips[((("clip" + _local2) + "_") + _local3)];
TweenLite.to(_local4, this.groupDuration, {angle:_local4.finalAngle, delay:((_local2 + _local3) * this.propOwner.delay), ease:this.easeFunc, onUpdate:this.motionChagedVertical, onComplete:endSquareTranistion, onUpdateParams:[_local4]});
_local3++;
};
_local2++;
};
break;
case 4:
_local2 = 0;
while (_local2 < propOwner.lin) {
_local3 = 0;
while (_local3 < propOwner.col) {
_local4 = propOwner.clips[((("clip" + _local2) + "_") + _local3)];
TweenLite.to(_local4, this.groupDuration, {angle:_local4.finalAngle, delay:(((((propOwner.lin + propOwner.col) - _local2) - _local3) - 2) * this.propOwner.delay), ease:this.easeFunc, onUpdate:this.motionChagedVertical, onComplete:endSquareTranistion, onUpdateParams:[_local4]});
_local3++;
};
_local2++;
};
break;
case 5:
_local2 = 0;
while (_local2 < propOwner.lin) {
_local3 = 0;
while (_local3 < propOwner.col) {
_local4 = propOwner.clips[((("clip" + _local2) + "_") + _local3)];
TweenLite.to(_local4, this.groupDuration, {angle:_local4.finalAngle, delay:((((propOwner.col - _local3) + _local2) - 1) * this.propOwner.delay), ease:this.easeFunc, onUpdate:this.motionChagedVertical, onComplete:endSquareTranistion, onUpdateParams:[_local4]});
_local3++;
};
_local2++;
};
break;
case 6:
_local2 = 0;
while (_local2 < propOwner.lin) {
_local3 = 0;
while (_local3 < propOwner.col) {
_local4 = propOwner.clips[((("clip" + _local2) + "_") + _local3)];
TweenLite.to(_local4, this.groupDuration, {angle:_local4.finalAngle, delay:((((propOwner.col - _local2) + _local3) - 1) * this.propOwner.delay), ease:this.easeFunc, onUpdate:this.motionChagedVertical, onComplete:endSquareTranistion, onUpdateParams:[_local4]});
_local3++;
};
_local2++;
};
break;
case 7:
_local2 = 0;
while (_local2 < propOwner.lin) {
_local3 = 0;
while (_local3 < propOwner.col) {
_local4 = propOwner.clips[((("clip" + _local2) + "_") + _local3)];
TweenLite.to(_local4, this.groupDuration, {angle:_local4.finalAngle, delay:(((_local2 * propOwner.col) + _local3) * this.propOwner.delay), ease:this.easeFunc, onUpdate:this.motionChagedHorizontal, onComplete:endSquareTranistion, onUpdateParams:[_local4]});
_local3++;
};
_local2++;
};
break;
case 8:
_local2 = 0;
while (_local2 < propOwner.lin) {
_local3 = 0;
while (_local3 < propOwner.col) {
_local4 = propOwner.clips[((("clip" + _local2) + "_") + _local3)];
TweenLite.to(_local4, this.groupDuration, {angle:_local4.finalAngle, delay:(((((propOwner.lin * propOwner.col) - (_local2 * propOwner.col)) - _local3) - 1) * this.propOwner.delay), ease:this.easeFunc, onUpdate:this.motionChagedHorizontal, onComplete:endSquareTranistion, onUpdateParams:[_local4]});
_local3++;
};
_local2++;
};
break;
case 9:
_local2 = 0;
while (_local2 < propOwner.lin) {
_local3 = 0;
while (_local3 < propOwner.col) {
_local4 = propOwner.clips[((("clip" + _local2) + "_") + _local3)];
TweenLite.to(_local4, this.groupDuration, {angle:_local4.finalAngle, delay:((_local2 + _local3) * this.propOwner.delay), ease:this.easeFunc, onUpdate:this.motionChagedHorizontal, onComplete:endSquareTranistion, onUpdateParams:[_local4]});
_local3++;
};
_local2++;
};
break;
case 10:
_local2 = 0;
while (_local2 < propOwner.lin) {
_local3 = 0;
while (_local3 < propOwner.col) {
_local4 = propOwner.clips[((("clip" + _local2) + "_") + _local3)];
TweenLite.to(_local4, this.groupDuration, {angle:_local4.finalAngle, delay:(((((propOwner.lin + propOwner.col) - _local2) - _local3) - 2) * this.propOwner.delay), ease:this.easeFunc, onUpdate:this.motionChagedHorizontal, onComplete:endSquareTranistion, onUpdateParams:[_local4]});
_local3++;
};
_local2++;
};
break;
case 11:
_local2 = 0;
while (_local2 < propOwner.lin) {
_local3 = 0;
while (_local3 < propOwner.col) {
_local4 = propOwner.clips[((("clip" + _local2) + "_") + _local3)];
TweenLite.to(_local4, this.groupDuration, {angle:_local4.finalAngle, delay:((((propOwner.col - _local3) + _local2) - 1) * this.propOwner.delay), ease:this.easeFunc, onUpdate:this.motionChagedHorizontal, onComplete:endSquareTranistion, onUpdateParams:[_local4]});
_local3++;
};
_local2++;
};
break;
case 12:
_local2 = 0;
while (_local2 < propOwner.lin) {
_local3 = 0;
while (_local3 < propOwner.col) {
_local4 = propOwner.clips[((("clip" + _local2) + "_") + _local3)];
TweenLite.to(_local4, this.groupDuration, {angle:_local4.finalAngle, delay:((((propOwner.col - _local2) + _local3) - 1) * this.propOwner.delay), ease:this.easeFunc, onUpdate:this.motionChagedHorizontal, onComplete:endSquareTranistion, onUpdateParams:[_local4]});
_local3++;
};
_local2++;
};
break;
case 13:
_local5 = ((this.propOwner.delay * propOwner.lin) * propOwner.col);
_local2 = 0;
while (_local2 < propOwner.lin) {
_local3 = 0;
while (_local3 < propOwner.col) {
_local4 = propOwner.clips[((("clip" + _local2) + "_") + _local3)];
TweenLite.to(_local4, this.groupDuration, {angle:_local4.finalAngle, delay:(Math.random() * _local5), ease:this.easeFunc, onUpdate:this.motionChagedVertical, onComplete:endSquareTranistion, onUpdateParams:[_local4]});
_local3++;
};
_local2++;
};
break;
case 14:
_local5 = ((this.propOwner.delay * propOwner.lin) * propOwner.col);
_local2 = 0;
while (_local2 < propOwner.lin) {
_local3 = 0;
while (_local3 < propOwner.col) {
_local4 = propOwner.clips[((("clip" + _local2) + "_") + _local3)];
TweenLite.to(_local4, this.groupDuration, {angle:_local4.finalAngle, delay:(Math.random() * _local5), ease:this.easeFunc, onUpdate:this.motionChagedHorizontal, onComplete:endSquareTranistion, onUpdateParams:[_local4]});
_local3++;
};
_local2++;
};
break;
default:
_local2 = 0;
while (_local2 < propOwner.lin) {
_local3 = 0;
while (_local3 < propOwner.col) {
_local4 = propOwner.clips[((("clip" + _local2) + "_") + _local3)];
TweenLite.to(_local4, this.groupDuration, {angle:_local4.finalAngle, delay:(((_local2 * propOwner.col) + _local3) * this.propOwner.delay), ease:this.easeFunc, onUpdate:this.motionChagedVertical, onComplete:endSquareTranistion, onUpdateParams:[_local4]});
_local3++;
};
_local2++;
};
break;
};
propOwner.aliasTarget.visible = true;
this.target.visible = false;
this.component.dispatchEvent(new FLASHEFFEvents(FLASHEFFEvents.TRANSITION_START));
}
public function clearProperties():void{
var _local1:*;
var _local2:*;
var _local3:*;
if (this.component != null){
this.component.removeEventListener(Event.ENTER_FRAME, this.waitAFrame);
};
if ((propOwner is Object)){
_local1 = 0;
while (_local1 < propOwner.lin) {
_local2 = 0;
while (_local2 < propOwner.col) {
_local3 = propOwner.clips[((("clip" + _local1) + "_") + _local2)];
_local3.bitmapData.dispose();
_local3.flipObject = null;
TweenLite.killTweensOf(_local3, false);
_local2++;
};
_local1++;
};
if ((propOwner.aliasTarget is Sprite)){
this.component.targetOwner.removeChild(propOwner.aliasTarget);
delete propOwner.aliasTarget;
};
delete propOwner.clips;
propOwner = null;
};
}
override public function remove():void{
this.clearProperties();
if (this.target != null){
this.target.visible = true;
};
}
protected function startTransition(_arg1:Boolean=true):void{
var _local2:*;
this.propOwner = {};
_local2 = this;
propOwner.show = _arg1;
propOwner.bounds = this.target.getBounds(this.target);
propOwner.targetWidth = (propOwner.bounds.width * this.target.scaleX);
propOwner.targetHeight = (propOwner.bounds.height * this.target.scaleY);
if (this.squareWidth > propOwner.targetWidth){
this.squareWidth = propOwner.targetWidth;
};
if (this.squareHeight > propOwner.targetHeight){
this.squareHeight = propOwner.targetHeight;
};
propOwner.lin = Math.floor((propOwner.targetHeight / this.squareHeight));
propOwner.col = Math.floor((propOwner.targetWidth / this.squareWidth));
if ((propOwner.lin * propOwner.col) <= 1){
propOwner.delay = 0;
} else {
propOwner.delay = ((this.tweenDuration - this.groupDuration) / ((propOwner.lin * propOwner.col) - 1));
};
this.propOwner.isMotionFinished = false;
if ((((this.preset < 7)) || ((this.preset == 13)))){
initTween("Vertical");
} else {
initTween();
};
this.component.addEventListener(Event.ENTER_FRAME, this.waitAFrame, false, 0, true);
}
public function get squareWidth():Number{
return (this._squareWidth);
}
public function get focalLength():Number{
return (this._focalLength);
}
public function get smooth():Boolean{
return (this._smooth);
}
public function set preset(_arg1:Number):void{
this._preset = _arg1;
}
public function get reverseHideDirection():Boolean{
return (this._reverseHideDirection);
}
public function get reverseDirection():Boolean{
return (this._reverseDirection);
}
public function get squareHeight():Number{
return (this._squareHeight);
}
private function motionChagedHorizontal(_arg1:Object){
_arg1.flipObject.setTransformMatrix(0, ((Math.PI * _arg1.angle) - _arg1.transformPosition));
_arg1.transformPosition = (Math.PI * _arg1.angle);
_arg1.flipObject.flipEffect(_arg1);
}
public function set reverseDirection(_arg1:Boolean):void{
this._reverseDirection = true;
if (_arg1 == false){
this.sense = 1;
} else {
this.sense = -1;
};
}
public function get preset():Number{
return (this._preset);
}
}
}//package com.jumpeye.flashEff2.symbol.flip
Section 17
//JFEFlipEffect (com.jumpeye.flashEff2.symbol.flip.JFEFlipEffect)
package com.jumpeye.flashEff2.symbol.flip {
public dynamic class JFEFlipEffect {
private var f:Number;
public var angleVertical:Number;// = 0
private var transformMatrix:Array;
public var angleHorizontal:Number;// = 0
private var swaped:Boolean;// = false
private var switchPosition:Number;// = 0
public function JFEFlipEffect(_arg1:Number){
angleVertical = 0;
angleHorizontal = 0;
switchPosition = 0;
swaped = false;
super();
this.init();
f = (300 + (7 * _arg1));
}
function matrixVectorMultiply(_arg1, _arg2){
var _local3:*;
_local3 = [];
_local3[0] = ((_arg1[0][0] * _arg2[0]) + (_arg1[0][1] * _arg2[1]));
_local3[1] = ((_arg1[1][0] * _arg2[0]) + (_arg1[1][1] * _arg2[1]));
_local3[2] = ((_arg1[2][0] * _arg2[0]) + (_arg1[2][1] * _arg2[1]));
return (_local3);
}
function matrixMatrixMultiply(_arg1, _arg2){
var _local3:*;
_local3 = [[], [], []];
_local3[0][0] = (((_arg1[0][0] * _arg2[0][0]) + (_arg1[0][1] * _arg2[1][0])) + (_arg1[0][2] * _arg2[2][0]));
_local3[0][1] = (((_arg1[0][0] * _arg2[0][1]) + (_arg1[0][1] * _arg2[1][1])) + (_arg1[0][2] * _arg2[2][1]));
_local3[0][2] = (((_arg1[0][0] * _arg2[0][2]) + (_arg1[0][1] * _arg2[1][2])) + (_arg1[0][2] * _arg2[2][2]));
_local3[1][0] = (((_arg1[1][0] * _arg2[0][0]) + (_arg1[1][1] * _arg2[1][0])) + (_arg1[1][2] * _arg2[2][0]));
_local3[1][1] = (((_arg1[1][0] * _arg2[0][1]) + (_arg1[1][1] * _arg2[1][1])) + (_arg1[1][2] * _arg2[2][1]));
_local3[1][2] = (((_arg1[1][0] * _arg2[0][2]) + (_arg1[1][1] * _arg2[1][2])) + (_arg1[1][2] * _arg2[2][2]));
_local3[2][0] = (((_arg1[2][0] * _arg2[0][0]) + (_arg1[2][1] * _arg2[1][0])) + (_arg1[2][2] * _arg2[2][0]));
_local3[2][1] = (((_arg1[2][0] * _arg2[0][1]) + (_arg1[2][1] * _arg2[1][1])) + (_arg1[2][2] * _arg2[2][1]));
_local3[2][2] = (((_arg1[2][0] * _arg2[0][2]) + (_arg1[2][1] * _arg2[1][2])) + (_arg1[2][2] * _arg2[2][2]));
return (_local3);
}
public function setTransformMatrix(_arg1, _arg2){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
_local3 = Math.sqrt(((_arg1 * _arg1) + (_arg2 * _arg2)));
if (_local3 > 0.0001){
_arg1 = (_arg1 / _local3);
_arg2 = (_arg2 / _local3);
_local4 = _local3;
_local5 = Math.cos(_local4);
_local6 = Math.sin(_local4);
_local7 = (1 - _local5);
_local8 = [[], [], []];
_local8[0][0] = (((_local7 * _arg1) * _arg1) + _local5);
_local8[0][1] = ((_local7 * _arg1) * _arg2);
_local8[0][2] = (_local6 * _arg2);
_local8[1][0] = ((_local7 * _arg1) * _arg2);
_local8[1][1] = (((_local7 * _arg2) * _arg2) + _local5);
_local8[1][2] = (-(_local6) * _arg1);
_local8[2][0] = (-(_local6) * _arg2);
_local8[2][1] = (_local6 * _arg1);
_local8[2][2] = _local5;
transformMatrix = matrixMatrixMultiply(_local8, this.transformMatrix);
};
}
function init(){
transformMatrix = [[1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 0]];
f = 700;
}
public function firstDistortion(_arg1:Object, _arg2:Number, _arg3:Number){
this.setTransformMatrix(_arg2, _arg3);
this.angleVertical = _arg2;
this.angleHorizontal = _arg3;
this.flipEffect(_arg1);
}
function renderObject(_arg1:Object):Array{
var _local2:*;
var _local3:*;
var _local4:Number;
var _local5:Array;
_local2 = [];
_local3 = 0;
if (_arg1.pointArray){
_local4 = _arg1.pointArray.length;
while (_local3 <= (_local4 - 1)) {
_local5 = this.matrixVectorMultiply(transformMatrix, _arg1.pointArray[_local3]);
_local2[_local3] = {x:(_local5[0] / (1 - (_local5[2] / f))), y:(_local5[1] / (1 - (_local5[2] / f)))};
_local3++;
};
};
return (_local2);
}
public function flipEffect(_arg1:Object){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:Number;
var _local10:Array;
_local10 = this.renderObject(_arg1);
_local2 = _local10[0].x;
_local3 = _local10[0].y;
_local4 = _local10[1].x;
_local5 = _local10[1].y;
_local6 = _local10[2].x;
_local7 = _local10[2].y;
_local8 = _local10[3].x;
_local9 = _local10[3].y;
_arg1.distorsionObject.setTransform(_local2, _local3, _local4, _local5, _local6, _local7, _local8, _local9);
}
}
}//package com.jumpeye.flashEff2.symbol.flip
Section 18
//FESSparkle (com.jumpeye.flashEff2.symbol.sparkle.FESSparkle)
package com.jumpeye.flashEff2.symbol.sparkle {
import com.jumpeye.transitions.*;
import com.jumpeye.core.*;
import com.jumpeye.flashEff2.core.interfaces.*;
import com.jumpeye.Events.*;
import com.jumpeye.utils.*;
public class FESSparkle extends IFlashEffSymbol {
private var _preset:Number;// = 1
private var _glowAmount:Number;// = 10
private var axe;
private var transitionType:String;
private var _maximumParticleSize:Number;// = 5
private var _particleTweenDuration:Number;// = 0.5
private var isStopped:Boolean;// = false
private var _particleDiversity:Number;// = 25
private var _glowColor:Number;// = 0xFFFFFF
private var _particleEmissionInterval:Number;// = 0.2
private var dim:Number;
private var owner:Object;
private var bounds:Object;
private var _emitterSize:Number;// = 0
private var _smooth:Boolean;// = false
private var _maximumParticleSpread:Number;// = 60
private var axe2:String;
public function FESSparkle(_arg1:JUIComponent=null){
_smooth = false;
owner = {};
isStopped = false;
_preset = 1;
_maximumParticleSize = 5;
_maximumParticleSpread = 60;
_particleDiversity = 25;
_particleEmissionInterval = 0.2;
_particleTweenDuration = 0.5;
_glowAmount = 10;
_glowColor = 0xFFFFFF;
_emitterSize = 0;
super();
this.component = _arg1;
this.init();
}
private function motionFinish():void{
}
override public function show():void{
startTransition("show");
}
private function motionChange():void{
var _local1:*;
_local1 = owner.msk.value;
owner.spkStick[axe] = (owner.msk[axe] + getSparklePosition(_local1));
}
public function get particleEmissionInterval():Number{
return (_particleEmissionInterval);
}
protected function init():void{
_tweenDuration = 1.5;
_tweenType = "Strong";
_easeType = "easeInOut";
}
public function set emitterSize(_arg1:Number):void{
if (isNaN(Number(_arg1))){
_arg1 = 10;
};
if (_arg1 < 0){
_arg1 = 0;
};
this._emitterSize = _arg1;
}
public function set particleEmissionInterval(_arg1:Number):void{
if (isNaN(Number(_arg1))){
_arg1 = 0.2;
};
if (_arg1 <= 0){
_arg1 = 0.1;
};
this._particleEmissionInterval = _arg1;
}
private function getSparklePosition(_arg1):Number{
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = 0;
_local3 = ((((preset == 1)) || ((preset == 2)))) ? (_arg1 + _local2) : ((dim - _arg1) - _local2);
_local4 = _local3;
return (_local4);
}
override public function hide():void{
startTransition("hide");
}
public function get glowAmount():Number{
return (_glowAmount);
}
public function get particleTweenDuration():Number{
return (_particleTweenDuration);
}
private function transition(){
var _local1:*;
var _local2:String;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local1 = target.getBounds(target.parent);
switch (preset){
default:
_local2 = "left";
break;
case 2:
_local2 = "top";
break;
case 3:
_local2 = "right";
break;
case 4:
_local2 = "bottom";
break;
};
owner.msk = new JLineMask(target.width, target.height, _local2);
component.targetOwner.addChild(owner.msk);
owner.msk.x = _local1.x;
owner.msk.y = _local1.y;
target.mask = owner.msk;
dim = ((((preset == 1)) || ((preset == 3)))) ? target.width : target.height;
_local3 = ((transitionType)=="show") ? 0 : dim;
_local4 = ((transitionType)=="show") ? dim : 0;
_local5 = {};
_local5.particleObj = {};
_local5.particleObj.color = glowColor;
_local5.particleClass = JSparkleParticle;
_local5.particleLifespan = Math.min(particleTweenDuration, (tweenDuration - 0.01));
_local5.particleEmissionInterval = Math.min(particleEmissionInterval, (tweenDuration - 0.01));
_local5.particleCount = 1;
_local5.maxParticleSize = maximumParticleSize;
_local5.isRandomInterval = true;
_local5.showCross = false;
_local5.easeFunc = this.easeFunc;
_local5.maxDistance = this.maximumParticleSpread;
_local5.yDifference = (_local5.maxDistance / 3);
_local5.glowAmount = glowAmount;
_local5.glowColor = glowColor;
_local5.emitterLifespan = tweenDuration;
axe = ((((preset == 1)) || ((preset == 3)))) ? "x" : "y";
axe2 = ((((preset == 1)) || ((preset == 3)))) ? "y" : "x";
_local6 = {};
_local6.wid = ((((preset == 1)) || ((preset == 3)))) ? emitterSize : target.width;
_local6.hig = ((((preset == 1)) || ((preset == 3)))) ? target.height : emitterSize;
_local6.sparkleObj = _local5;
_local6.emittersCount = particleDiversity;
_local6.glowAmount = glowAmount;
_local6.glowColor = glowColor;
_local6.orientation = ((((preset == 1)) || ((preset == 3)))) ? "vertical" : "horizontal";
owner.spkStick = new JSparkleStick(_local6);
owner.spkStick[axe] = (owner.msk[axe] + getSparklePosition(_local3));
component.targetOwner.addChild(owner.spkStick);
owner.spkStick.startEffect();
owner.spkStick.emitters[0].addEventListener("emitFinished", emitFinished, false, 0, true);
owner.spkStick[axe2] = owner.msk[axe2];
owner.msk.value = _local3;
TweenLite.to(owner.msk, tweenDuration, {value:_local4, delay:0, onUpdate:motionChange, onComplete:motionFinish, ease:this.easeFunc, overwrite:false});
this.component.dispatchEvent(new FLASHEFFEvents(FLASHEFFEvents.TRANSITION_START));
}
public function get particleDiversity():Number{
return (_particleDiversity);
}
override public function remove():void{
if (target){
clearProperties();
target.visible = true;
};
}
private function emitFinished(_arg1:JEvent):void{
target.visible = ((transitionType)=="hide") ? false : true;
clearProperties();
this.component.dispatchEvent(new FLASHEFFEvents(FLASHEFFEvents.TRANSITION_END));
}
public function set glowAmount(_arg1:Number):void{
if (isNaN(Number(_arg1))){
_arg1 = 20;
};
if (_arg1 < 0){
_arg1 = 0;
};
this._glowAmount = _arg1;
}
private function startTransition(_arg1:String){
var _local2:*;
isStopped = false;
transitionType = _arg1;
clearProperties();
bounds = target.getBounds(target.parent);
_local2 = target.getBounds(target);
owner["targetObj"] = {x:target.x, y:target.y, width:(_local2.width * target.scaleX), height:(_local2.height * target.scaleY), scaleX:target.scaleX, scaleY:target.scaleY, xMin:_local2.x, yMin:_local2.y};
transition();
}
public function set particleTweenDuration(_arg1:Number):void{
if (isNaN(Number(_arg1))){
_arg1 = 0.6;
};
if (_arg1 < 0.1){
_arg1 = 0.1;
};
this._particleTweenDuration = _arg1;
}
private function clearProperties(){
target.mask = null;
if (owner.spkStick){
owner.spkStick.emitters[0].removeEventListener("emitFinished", emitFinished);
owner.spkStick.destroy();
if (component.targetOwner.contains(owner.msk)){
component.targetOwner.removeChild(owner.spkStick);
};
owner.spkStick = null;
};
if (owner.msk){
if (component.targetOwner.contains(owner.msk)){
TweenLite.killTweensOf(owner.msk, false);
component.targetOwner.removeChild(owner.msk);
owner.msk = null;
};
};
}
public function set glowColor(_arg1:uint):void{
this._glowColor = _arg1;
}
public function get emitterSize():Number{
return (_emitterSize);
}
public function set maximumParticleSpread(_arg1:Number):void{
if (isNaN(Number(_arg1))){
_arg1 = 150;
};
this._maximumParticleSpread = _arg1;
}
public function set preset(_arg1:Number):void{
if ((((_arg1 > 4)) || ((_arg1 < 1)))){
_arg1 = 1;
};
this._preset = _arg1;
}
public function set maximumParticleSize(_arg1:Number):void{
if (isNaN(Number(_arg1))){
_arg1 = 8;
};
this._maximumParticleSize = _arg1;
}
public function get glowColor():uint{
return (this._glowColor);
}
public function get maximumParticleSpread():Number{
return (_maximumParticleSpread);
}
public function get preset():Number{
return (this._preset);
}
public function set particleDiversity(_arg1:Number):void{
if (isNaN(Number(_arg1))){
_arg1 = 20;
};
if (_arg1 < 0){
_arg1 = 0;
};
this._particleDiversity = _arg1;
}
public function get maximumParticleSize():Number{
return (_maximumParticleSize);
}
}
}//package com.jumpeye.flashEff2.symbol.sparkle
Section 19
//JSparkleEmitter (com.jumpeye.flashEff2.symbol.sparkle.JSparkleEmitter)
package com.jumpeye.flashEff2.symbol.sparkle {
import com.jumpeye.transitions.*;
import flash.filters.*;
import com.jumpeye.Events.*;
import com.jumpeye.particle.*;
public class JSparkleEmitter extends JEmitter {
public var maxParticleSize:Number;// = 10
public var glowAmount:Number;// = 20
public var alphaDurationPercentage:Number;// = 0.6
public var tweens:Object;
public var yDifference:Number;// = 20
public var maxDistance:Number;// = 400
public var glowColor:uint;// = 0xFFFFFF
public var orientation:String;// = "horizontal"
public function JSparkleEmitter(_arg1=null){
maxDistance = 400;
yDifference = 20;
alphaDurationPercentage = 0.6;
maxParticleSize = 10;
glowAmount = 20;
glowColor = 0xFFFFFF;
orientation = "horizontal";
super(_arg1);
}
private function getGlow(_arg1):BitmapFilter{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Boolean;
var _local8:Boolean;
var _local9:Number;
_local2 = glowColor;
_local3 = 1;
_local4 = _arg1;
_local5 = _arg1;
_local6 = _arg1;
_local7 = false;
_local8 = false;
_local9 = BitmapFilterQuality.HIGH;
return (new GlowFilter(_local2, _local3, _local4, _local5, _local6, _local9, _local7, _local8));
}
private function setGlow(_arg1, _arg2):void{
var _local3:*;
_local3 = this.getGlow(_arg2);
_arg1.filters = [_local3];
}
private function particleTweenFinish(_arg1, _arg2:Boolean=false):void{
var _local3:*;
if (_arg2){
_local3 = new JEvent("emitFinished");
dispatchEvent(_local3);
};
this.clearParticle(_arg1);
}
override public function startEffect(_arg1, _arg2:Boolean=false):void{
var _local3:*;
_arg1.sizeAmount = maxParticleSize;
_local3 = particleLifespan;
this.setGlow(_arg1, glowAmount);
if (orientation == "horizontal"){
TweenLite.to(_arg1, _local3, {x:randRange(0, maxDistance), delay:0, overwrite:false, onComplete:particleTweenFinish, onCompleteParams:[_arg1, _arg2]});
TweenLite.to(_arg1, _local3, {y:randRange(-(yDifference), yDifference), delay:0, overwrite:false});
} else {
TweenLite.to(_arg1, _local3, {y:randRange(0, maxDistance), delay:0, overwrite:false, onComplete:particleTweenFinish, onCompleteParams:[_arg1, _arg2]});
TweenLite.to(_arg1, _local3, {x:randRange(-(yDifference), yDifference), delay:0, overwrite:false});
};
TweenLite.to(_arg1, (_local3 * alphaDurationPercentage), {alpha:0, delay:(_local3 - (_local3 * alphaDurationPercentage)), overwrite:false});
TweenLite.to(_arg1, (_local3 * alphaDurationPercentage), {sizeAmount:0, delay:(_local3 - (_local3 * alphaDurationPercentage)), overwrite:false});
}
override public function clearParticle(_arg1):void{
TweenLite.killTweensOf(_arg1, false);
_arg1.filters = [];
super.clearParticle(_arg1);
}
}
}//package com.jumpeye.flashEff2.symbol.sparkle
Section 20
//JSparkleParticle (com.jumpeye.flashEff2.symbol.sparkle.JSparkleParticle)
package com.jumpeye.flashEff2.symbol.sparkle {
import com.jumpeye.particle.*;
public class JSparkleParticle extends JParticle {
private var __sizeAmount:Number;// = 0
public var alphaInt:Number;
public function JSparkleParticle(_arg1=null){
__sizeAmount = 0;
super(_arg1);
}
public function set sizeAmount(_arg1:Number):void{
__sizeAmount = _arg1;
this.width = (this.height = _arg1);
}
public function get sizeAmount():Number{
return (__sizeAmount);
}
}
}//package com.jumpeye.flashEff2.symbol.sparkle
Section 21
//JSparkleStick (com.jumpeye.flashEff2.symbol.sparkle.JSparkleStick)
package com.jumpeye.flashEff2.symbol.sparkle {
import flash.display.*;
import com.jumpeye.transitions.*;
import flash.filters.*;
public class JSparkleStick extends Sprite {
public var sparkleObj:Object;
public var glowAmount:Number;// = 20
public var emittersCount:Number;// = 10
public var stick:Shape;
public var hig:Number;
public var emitters:Array;
public var orientation:String;// = "vertical"
public var wid;
public var glowColor:uint;// = 0xFFFFFF
public function JSparkleStick(_arg1=null){
var _local2:*;
emittersCount = 10;
glowAmount = 20;
glowColor = 0xFFFFFF;
orientation = "vertical";
super();
for (_local2 in _arg1) {
this[_local2] = _arg1[_local2];
};
this.createChildren();
}
private function getGlow(_arg1):BitmapFilter{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Boolean;
var _local8:Boolean;
var _local9:Number;
_local2 = glowColor;
_local3 = 1;
_local4 = _arg1;
_local5 = _arg1;
_local6 = (_arg1 / 3);
_local7 = false;
_local8 = false;
_local9 = BitmapFilterQuality.HIGH;
return (new GlowFilter(_local2, _local3, _local4, _local5, _local6, _local9, _local7, _local8));
}
private function createChildren():void{
var _local1:uint;
var _local2:JSparkleEmitter;
var _local3:*;
var _local4:*;
var _local5:String;
var _local6:String;
var _local7:String;
var _local8:*;
var _local9:uint;
var _local10:Number;
_local1 = 0;
emitters = [];
stick = new Shape();
stick.graphics.beginFill(glowColor, 1);
stick.graphics.drawRoundRect(0, 0, wid, hig, 60, 30);
stick.graphics.endFill();
this.addChild(stick);
sparkleObj.maxDistance = -(sparkleObj.maxDistance);
sparkleObj.yDifference = 40;
_local3 = ((orientation)=="vertical") ? hig : wid;
_local4 = ((orientation)=="vertical") ? wid : hig;
_local5 = ((orientation)=="vertical") ? "x" : "y";
_local6 = ((orientation)=="vertical") ? "y" : "x";
_local7 = ((orientation)=="vertical") ? "width" : "height";
_local8 = ((orientation)=="vertical") ? "horizontal" : "vertical";
_local9 = 0;
_local10 = ((emittersCount)==0) ? 1 : emittersCount;
_local9 = ((_local10)>2) ? (_local3 / ((_local10 - 2) / 2)) : (_local3 / (_local10 / 2));
_local1 = 0;
while (_local1 < _local3) {
_local2 = new JSparkleEmitter(sparkleObj);
if (emittersCount != 0){
this.addChild(_local2);
};
_local2[_local5] = -(_local2[_local7]);
_local2[_local6] = _local1;
_local2.orientation = _local8;
emitters.push(_local2);
_local1 = (_local1 + _local9);
};
sparkleObj.maxDistance = -(sparkleObj.maxDistance);
if (emittersCount >= 2){
_local1 = 0;
while (_local1 < _local3) {
_local2 = new JSparkleEmitter(sparkleObj);
this.addChild(_local2);
_local2[_local5] = _local4;
_local2[_local6] = _local1;
_local2.orientation = _local8;
emitters.push(_local2);
_local1 = (_local1 + _local9);
};
};
this.setGlow(stick, glowAmount);
TweenLite.to(stick, sparkleObj.particleLifespan, {alpha:0, delay:(sparkleObj.emitterLifespan - sparkleObj.particleLifespan), overwrite:true});
}
private function setGlow(_arg1, _arg2):void{
var _local3:*;
_local3 = this.getGlow(_arg2);
_arg1.filters = [_local3];
}
public function stopEffect():void{
var _local1:*;
for (_local1 in emitters) {
emitters[_local1].stopEmit();
};
TweenLite.to(stick, 0.3, {alpha:0, delay:0, overwrite:true});
}
public function startEffect():void{
var _local1:*;
for (_local1 in emitters) {
emitters[_local1].startEmit();
};
}
public function destroy():void{
var _local1:JSparkleEmitter;
var _local2:*;
for (_local2 in emitters) {
_local1 = emitters[_local2];
_local1.destroy();
if (this.contains(_local1)){
this.removeChild(_local1);
};
_local1 = null;
};
}
}
}//package com.jumpeye.flashEff2.symbol.sparkle
Section 22
//FESSquareExplode (com.jumpeye.flashEff2.symbol.squareEffect.FESSquareExplode)
package com.jumpeye.flashEff2.symbol.squareEffect {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import com.jumpeye.transitions.*;
import com.jumpeye.core.*;
import flash.text.*;
import com.jumpeye.flashEff2.core.interfaces.*;
import com.jumpeye.Events.*;
public class FESSquareExplode extends IFlashEffSymbol {
protected var tweensFinished:Number;// = 0
private var _preset:Number;// = 1
protected var masksOwner:Sprite;
private var _maxExplosionDistance:Number;// = 200
private var _groupDuration:Number;// = 1
protected var squareObjects:Object;
protected var finalSquareHeight:Number;// = 20
protected var isShow:Boolean;// = true
protected var finalSquareWidth:Number;// = 20
protected var squaresOwner:Sprite;
public var forceSquareDimension:Boolean;// = false
private var _squareHeight:Number;// = 20
protected var col:Number;// = 0
protected var lin:Number;// = 0
private var alphaFinish:Number;
private var _maxScale:Number;// = 2
protected var targetBounds:Rectangle;
private var alphaStart:Number;
protected var timeMatrix:Array;
private var _squareWidth:Number;// = 20
public function FESSquareExplode(_arg1:JUIComponent=null){
forceSquareDimension = false;
finalSquareWidth = 20;
finalSquareHeight = 20;
lin = 0;
col = 0;
tweensFinished = 0;
isShow = true;
_squareWidth = 20;
_squareHeight = 20;
_maxExplosionDistance = 200;
_maxScale = 2;
_preset = 1;
_groupDuration = 1;
super();
this.component = _arg1;
this.init();
}
override public function show():void{
if (this.component != null){
this.startTransition(true);
};
}
protected function init():void{
_tweenDuration = 1.5;
_easeType = "easeOut";
_tweenType = "Quadratic";
}
protected function drawSquares(_arg1:uint, _arg2:Number):void{
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:Number;
var _local9:uint;
var _local10:Number;
var _local11:uint;
var _local12:Number;
var _local13:Sprite;
var _local14:*;
var _local15:Number;
var _local16:Object;
var _local17:BitmapData;
var _local18:Matrix;
this.timeMatrix = [];
this.squareObjects = {};
_local3 = Math.round(this.finalSquareHeight);
_local4 = Math.round(this.finalSquareWidth);
_local6 = 0;
_local8 = 0;
_local9 = 0;
while (_local9 < this.lin) {
this.timeMatrix[_local9] = [];
_local5 = 0;
_local7 = 0;
_local10 = Math.floor(_local8);
if (_local9 == (this.lin - 1)){
_local10 = Math.ceil(((_local8 + this.finalSquareHeight) - _local3));
};
_local11 = 0;
while (_local11 < this.col) {
this.timeMatrix[_local9][_local11] = 0;
_local12 = Math.floor(_local7);
if (_local11 == (this.col - 1)){
_local12 = Math.ceil(((_local7 + this.finalSquareWidth) - _local4));
};
_local13 = new Sprite();
this.createRectangle(_local13, (_local4 + _local12), (_local3 + _local10));
_local13.x = _local5;
_local13.y = _local6;
_local13.alpha = _arg2;
masksOwner.addChild(_local13);
_local14 = new Sprite();
_local14.name = ((("clip" + _local9) + "_") + _local11);
_local15 = (2 - (Math.random() * this.maxScale));
_local16 = (this.squareObjects[((("clip" + _local9) + "_") + _local11)] = {clip:_local14, scaleX:_local15, scaleY:_local15, x:((Math.random() * this.maxExplosionDistance) - (this.maxExplosionDistance / 2)), y:((Math.random() * this.maxExplosionDistance) - (this.maxExplosionDistance / 2)), aliasMask:_local13});
_local14.x = _local5;
_local14.y = _local6;
_local14.visible = false;
_local16.width = (_local4 + _local12);
_local16.height = (_local3 + _local10);
_local17 = new BitmapData(_local16.width, _local16.height, true, 0xFF00FF);
_local18 = new Matrix();
_local18.translate(((-(_local5) / this.target.scaleX) - targetBounds.x), ((-(_local6) / this.target.scaleY) - targetBounds.y));
_local18.scale(this.target.scaleX, this.target.scaleY);
_local17.draw(this.target, _local18);
_local14.addChild(new Bitmap(_local17));
squaresOwner.addChild(_local14);
_local14.alpha = _arg1;
_local5 = (_local5 + _local16.width);
_local7 = ((_local7 + this.finalSquareWidth) - _local16.width);
_local11++;
};
_local6 = (_local6 + (_local3 + _local10));
_local8 = (((_local8 + this.finalSquareHeight) - _local3) - _local10);
_local9++;
};
}
public function get groupDuration():Number{
return (this._groupDuration);
}
public function get maxExplosionDistance():Number{
return (_maxExplosionDistance);
}
override public function hide():void{
if (this.component != null){
this.startTransition(false);
};
}
public function set squareWidth(_arg1:Number){
if (_arg1 < 1){
_arg1 = 1;
};
this._squareWidth = _arg1;
this.finalSquareWidth = _arg1;
}
public function set maxExplosionDistance(_arg1:Number):void{
_maxExplosionDistance = _arg1;
}
public function set groupDuration(_arg1:Number):void{
if (_arg1 < 0.001){
_arg1 = 0.001;
};
this._groupDuration = _arg1;
}
protected function waitAFrame(_arg1:Event):void{
var _local2:*;
var _local3:uint;
var _local4:Array;
var _local5:Number;
var _local6:Object;
this.target.removeEventListener(Event.ENTER_FRAME, this.waitAFrame);
_local4 = [];
JFESquarePresets.getPresetsArray(this.preset, this.lin, this.col, this.timeMatrix, _local4);
if (_local4.MAX > 2){
_local5 = Math.max(((this.tweenDuration - this.groupDuration) / (_local4.MAX - 1)), 0);
} else {
_local5 = Math.max((this.tweenDuration - this.groupDuration), 0);
};
_local2 = 0;
while (_local2 < this.lin) {
_local3 = 0;
while (_local3 < this.col) {
_local6 = this.squareObjects[((("clip" + _local2) + "_") + _local3)];
TweenLite.to(_local6.clip, this.groupDuration, {scaleX:_local6.scaleX, scaleY:_local6.scaleY, alpha:0, x:(_local6.clip.x + _local6.x), y:(_local6.clip.y + _local6.y), delay:(this.timeMatrix[_local2][_local3] * _local5), onStart:this.squareStartTransition, onStartParams:[_local6.clip], ease:this.easeFunc, onUpdate:squareBrightnessChange, onUpdateParams:[_local6, alphaStart, alphaFinish], onComplete:motionFinish, onCompleteParams:[_local6]});
_local3++;
};
_local2++;
};
this.component.dispatchEvent(new FLASHEFFEvents(FLASHEFFEvents.TRANSITION_START));
}
public function get maxScale():Number{
return (_maxScale);
}
override public function remove():void{
var _local1:*;
var _local2:*;
var _local3:Object;
if (this.squaresOwner != null){
if (this.squaresOwner.parent != null){
this.squaresOwner.parent.removeChild(this.squaresOwner);
};
this.squaresOwner = null;
if (this.masksOwner.parent != null){
this.masksOwner.parent.removeChild(this.masksOwner);
};
this.target.mask = null;
};
if (this.squareObjects != null){
_local1 = 0;
while (_local1 < this.lin) {
_local2 = 0;
while (_local2 < this.col) {
_local3 = this.squareObjects[((("clip" + _local1) + "_") + _local2)];
TweenLite.killTweensOf(_local3.clip, false);
_local2++;
};
_local1++;
};
};
if (this.target != null){
this.target.removeEventListener(Event.ENTER_FRAME, this.waitAFrame);
};
this.squareObjects = null;
this.timeMatrix = null;
}
protected function startTransition(_arg1:Boolean):void{
var _local2:uint;
this.targetBounds = this.target.getBounds(this.target);
if (this.squareHeight > (this.targetBounds.height * this.target.scaleY)){
this.finalSquareHeight = (this.targetBounds.height * this.target.scaleY);
};
if (this.squareWidth > (this.targetBounds.width * this.target.scaleX)){
this.finalSquareWidth = (this.targetBounds.width * this.target.scaleX);
};
this.lin = Math.floor(((this.targetBounds.height * this.target.scaleY) / this.finalSquareHeight));
this.col = Math.floor(((this.targetBounds.width * this.target.scaleX) / this.finalSquareWidth));
isShow = _arg1;
if (forceSquareDimension == false){
if ((lin * col) > 1600){
this.lin = Math.min(this.lin, 40);
this.col = Math.min(this.col, 40);
};
};
this.finalSquareHeight = ((this.targetBounds.height / this.lin) * this.target.scaleY);
this.finalSquareWidth = ((this.targetBounds.width / this.col) * this.target.scaleX);
alphaStart = 0;
alphaFinish = 1;
if (_arg1 == true){
alphaStart = 1;
alphaFinish = 0;
};
squaresOwner = new Sprite();
masksOwner = new Sprite();
squaresOwner.name = "squaresOwner";
_local2 = 0;
if ((this.target is TextField)){
_local2 = 2;
};
masksOwner.x = (squaresOwner.x = ((this.target.x + (this.targetBounds.x * this.target.scaleX)) + _local2));
masksOwner.y = (squaresOwner.y = ((this.target.y + (this.targetBounds.y * this.target.scaleY)) + _local2));
squaresOwner.rotation = this.target.rotation;
this.component.targetOwner.addChild(masksOwner);
this.component.targetOwner.addChild(squaresOwner);
this.target.cacheAsBitmap = true;
masksOwner.cacheAsBitmap = true;
this.drawSquares(1, alphaFinish);
this.target.mask = masksOwner;
this.tweensFinished = 0;
this.target.addEventListener(Event.ENTER_FRAME, this.waitAFrame, false, 0, true);
}
public function set maxScale(_arg1:Number):void{
_maxScale = _arg1;
}
public function set squareHeight(_arg1:Number){
if (_arg1 < 1){
_arg1 = 1;
};
this._squareHeight = _arg1;
this.finalSquareHeight = _arg1;
}
public function set preset(_arg1:Number):void{
this._preset = _arg1;
}
public function get squareWidth():Number{
return (this._squareWidth);
}
protected function squareStartTransition(_arg1:Sprite):void{
_arg1.visible = true;
}
public function get squareHeight():Number{
return (this._squareHeight);
}
protected function createRectangle(_arg1:Sprite, _arg2:Number, _arg3:Number):void{
var clip = _arg1;
var w = _arg2;
var h = _arg3;
var _local5 = clip.graphics;
with (_local5) {
beginFill(0xFF0000, 100);
lineTo(w, 0);
lineTo(w, h);
lineTo(0, h);
lineTo(0, 0);
endFill();
};
}
protected function squareBrightnessChange(_arg1:Object, _arg2:Number, _arg3:Number):void{
_arg1.aliasMask.alpha = (_arg2 + (((_arg3 - _arg2) * _arg1.clip.alpha) * 0.1));
}
public function get preset():Number{
return (this._preset);
}
protected function motionFinish(_arg1:Object):void{
if (_arg1.clip != null){
_arg1.clip.removeChildAt(0);
};
tweensFinished++;
if (tweensFinished == (this.lin * this.col)){
this.remove();
if (this.isShow == false){
if (this.target != null){
this.target.visible = false;
};
};
this.component.dispatchEvent(new FLASHEFFEvents(FLASHEFFEvents.TRANSITION_END));
};
}
}
}//package com.jumpeye.flashEff2.symbol.squareEffect
Section 23
//JFESquarePresets (com.jumpeye.flashEff2.symbol.squareEffect.JFESquarePresets)
package com.jumpeye.flashEff2.symbol.squareEffect {
import flash.utils.*;
public dynamic class JFESquarePresets {
public function JFESquarePresets():void{
}
public static function getPresetsArray(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:Array, _arg5:Object=null):Array{
var i:*;
var j:uint;
var max:Number;
var presetClass:Class;
var presetFunc:*;
var preset = _arg1;
var lin = _arg2;
var col = _arg3;
var matrix = _arg4;
var timeLineSquares = _arg5;
max = 0;
try {
presetClass = (getDefinitionByName(("com.jumpeye.flashEff2.presets.JFESP" + preset)) as Class);
presetFunc = presetClass["fep"];
if (presetFunc != null){
return (presetFunc(preset, lin, col, matrix, timeLineSquares));
};
} catch(e:Error) {
if (preset > 1){
trace((("FLASHEFF2 WARNING: The selected preset is not in the Library ! Please drag the JFESP" + preset) + " from the Components panel over the Library panel."));
};
i = 0;
while (i < lin) {
j = 0;
while (j < col) {
matrix[i][j] = j;
j = (j + 1);
};
i = (i + 1);
};
max = col;
};
if (timeLineSquares != null){
timeLineSquares.MAX = max;
};
return (matrix);
}
public static function getModifiedPresetsArray(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:Array, _arg5:Object=null):Array{
var i:*;
var j:uint;
var max:Number;
var presetClass:Class;
var presetFunc:*;
var preset = _arg1;
var lin = _arg2;
var col = _arg3;
var matrix = _arg4;
var timeLineSquares = _arg5;
max = 0;
if (preset > 8){
return (JFESquarePresets.getPresetsArray(preset, lin, col, matrix, timeLineSquares));
};
try {
presetClass = (getDefinitionByName(("com.jumpeye.flashEff2.presets.JFESPM" + preset)) as Class);
presetFunc = presetClass["fep"];
if (presetFunc != null){
return (presetFunc(preset, lin, col, matrix, timeLineSquares));
};
} catch(e:Error) {
if (preset > 1){
trace((("FLASHEFF2 WARNING: The selected preset is not in the Library ! Please drag the JFESPM" + preset) + " from the Components panel over the Library panel."));
};
i = 0;
while (i < lin) {
j = 0;
while (j < col) {
matrix[i][j] = ((i * (col - 1)) + j);
j = (j + 1);
};
i = (i + 1);
};
max = (col * lin);
};
if (timeLineSquares != null){
timeLineSquares.MAX = max;
};
return (matrix);
}
}
}//package com.jumpeye.flashEff2.symbol.squareEffect
Section 24
//FESStripes (com.jumpeye.flashEff2.symbol.stripes.FESStripes)
package com.jumpeye.flashEff2.symbol.stripes {
import flash.display.*;
import com.jumpeye.transitions.*;
import com.jumpeye.core.*;
import com.jumpeye.flashEff2.core.interfaces.*;
import com.jumpeye.Events.*;
import flash.utils.*;
public class FESStripes extends IFlashEffSymbol {
private var _preset:Number;// = 1
var obj:Object;
var clipXScale:Number;// = 0
private var _groupDuration:Number;// = 1
var numberStr:Number;// = 0
var clip:Sprite;
var startPoint:Number;// = 0
var k:String;
private var _stripeThickness:Number;// = 12
var kk:Number;// = 0
var finishPoint:Number;// = 0
var rest:Number;// = 0
var totalDuration:Number;// = 0
public function FESStripes(_arg1:JUIComponent=null){
_stripeThickness = 12;
_groupDuration = 1;
_preset = 1;
startPoint = 0;
kk = 0;
finishPoint = 0;
clipXScale = 0;
numberStr = 0;
rest = 0;
totalDuration = 0;
obj = {};
super();
this.component = _arg1;
this.init();
}
override public function show():void{
obj.show = true;
obj.me = this;
startTransition(obj);
}
protected function init():void{
_tweenDuration = 1.5;
_easeType = "easeInOut";
_tweenType = "Strong";
}
public function get groupDuration():Number{
return (this._groupDuration);
}
private function startTween(_arg1:Sprite, _arg2:Number, _arg3:Number, _arg4, _arg5){
var _local6:*;
clearInterval(_arg4[("interval" + _arg5)]);
_local6 = (_arg4.tweens[_arg3] = {});
_local6.prop = _arg4.startPoint;
}
override public function hide():void{
obj.me = this;
obj.show = false;
startTransition(obj);
}
public function set stripeThickness(_arg1:Number):void{
this._stripeThickness = _arg1;
}
public function set groupDuration(_arg1:Number):void{
this._groupDuration = _arg1;
}
function onMotionChanged(... _args){
_args[2].scaleX = _args[1].prop;
}
override public function remove():void{
var _local1:*;
if ((obj.tweens is Array)){
for (_local1 in obj.tweens) {
TweenLite.killTweensOf(obj.tweens[_local1]);
};
};
this._component.targetOwner.mask = null;
if (this.component.targetOwner){
if ((obj.clip is Sprite)){
if (this.component.targetOwner.contains(obj.clip)){
this.component.targetOwner.removeChild(obj.clip);
};
};
};
}
function onMotionFinish(... _args){
clip = _args[2];
obj.tweensFinished++;
if ((((obj.tweensFinished == obj.numberStr)) || ((obj.tweensFinished == (obj.numberStr + 1))))){
clip.scaleX = obj.clipXScale;
this.component.dispatchEvent(new FLASHEFFEvents(FLASHEFFEvents.TRANSITION_END));
} else {
clip.scaleX = obj.clipXScale;
};
}
private function startTransition(_arg1){
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:Number;
var _local9:*;
var _local10:*;
var _local11:Number;
var _local12:Number;
var _local13:Sprite;
var _local14:Number;
var _local15:Number;
var _local16:Object;
if ((((this._tweenDuration <= 0)) || (isNaN(this._tweenDuration)))){
this._tweenDuration = 0.1;
};
if (this._tweenDuration < this._groupDuration){
this._tweenDuration = this._groupDuration;
};
if ((((this._groupDuration <= 0)) || (isNaN(this._groupDuration)))){
this._groupDuration = 0.1;
};
if ((((this._stripeThickness <= 0)) || (isNaN(this._stripeThickness)))){
this._stripeThickness = 5;
};
if (_arg1.show == true){
_arg1.startPoint = 0;
_arg1.finishPoint = 1;
clipXScale = 1;
} else {
_arg1.startPoint = 1;
_arg1.finishPoint = 0;
clipXScale = 0;
};
_arg1.clipXScale = clipXScale;
_local2 = 100;
_arg1.targetBounds = target.getBounds(_target);
if (_arg1.squareHeight > _arg1.targetBounds.height){
_arg1.squareHeight = _arg1.targetBounds.height;
};
if (_arg1.squareWidth > _arg1.targetBounds.width){
_arg1.squareWidth = _arg1.targetBounds.width;
};
_local3 = 0;
_local3 = (_arg1.targetBounds.height * target.scaleY);
_local4 = 0;
_local4 = (_arg1.targetBounds.width * target.scaleX);
numberStr = Math.max(Math.floor((_local3 / stripeThickness)), 1);
_arg1.numberStr = numberStr;
rest = Math.ceil((_local3 % stripeThickness));
_arg1.stripeThicknessFinal = (stripeThickness + (rest / numberStr));
kk = 1;
_local8 = 0;
_local7 = _local8;
_local6 = _local7;
_local5 = _local6;
_arg1.groupDuration = _groupDuration;
switch (Number(this.preset)){
case 2:
_local5 = 180;
_local6 = _local4;
kk = 1;
_local7 = _arg1.stripeThicknessFinal;
break;
case 3:
kk = 1;
_local11 = _local3;
_local3 = _local4;
numberStr = Math.floor((_local4 / stripeThickness));
rest = (_local4 % stripeThickness);
_arg1.stripeThicknessFinal = (stripeThickness + (rest / numberStr));
_local5 = 90;
_local8 = 1;
_local4 = _local11;
break;
case 4:
kk = 1;
_local12 = _local3;
numberStr = Math.round((_local4 / stripeThickness));
rest = Math.ceil((_local4 % stripeThickness));
_arg1.stripeThicknessFinal = (stripeThickness + (rest / numberStr));
kk = 0;
k = "=numbStr";
_local5 = -90;
_local8 = 1;
_local7 = _local3;
_local4 = _local12;
numberStr = (numberStr - 1);
break;
default:
break;
};
_arg1.numberStripes = numberStr;
if (_arg1.show == true){
};
_local9 = new Sprite();
this.component.targetOwner.addChild(_local9);
_arg1.clip = _local9;
_arg1.tweens = new Array();
_arg1.clip.rotation = target.rotation;
this._component.targetOwner.mask = _local9;
target.visible = true;
_arg1.tweensFinished = 0;
this.component.dispatchEvent(new FLASHEFFEvents(FLASHEFFEvents.TRANSITION_START));
_local10 = kk;
while (_local10 <= numberStr) {
_local13 = new Sprite();
_local9.addChild(_local13);
_local13.cacheAsBitmap = true;
_local14 = _arg1.stripeThicknessFinal;
_local13.graphics.beginFill(0xFF0000);
_local13.graphics.drawRect(0, 0, (_local4 + 1), (_local14 + 1));
_local13.graphics.endFill();
_local13.y = ((_arg1.targetBounds.y * target.scaleY) + ((_local14 * (_local10 - 1)) * (1 - _local8)));
_local13.x = ((_arg1.targetBounds.x * target.scaleX) + ((_local14 * _local10) * _local8));
_local13.rotation = _local5;
_local13.x = (_local13.x + _local6);
_local13.y = (_local13.y + _local7);
if (_arg1.show == true){
_local13.scaleX = 0;
};
_local15 = _tweenDuration;
totalDuration = _arg1.totalDuration;
_arg1.delay = Math.max(((tweenDuration - groupDuration) / numberStr), 0);
_local16 = (_arg1.tweens[_local10] = {});
_local16.prop = _arg1.startPoint;
if (_arg1.show == true){
TweenLite.to(_local16, this.groupDuration, {prop:_arg1.finishPoint, delay:(_arg1.delay * (_local10 - 1)), ease:easeFunc, onComplete:onMotionFinish, onUpdate:onMotionChanged, onUpdateParams:[_arg1, _local16, _local13], onCompleteParams:[_arg1, _local16, _local13]});
} else {
TweenLite.to(_local16, this.groupDuration, {prop:_arg1.finishPoint, delay:(_arg1.delay * _local10), ease:easeFunc, onComplete:onMotionFinish, onUpdate:onMotionChanged, onUpdateParams:[_arg1, _local16, _local13], onCompleteParams:[_arg1, _local16, _local13]});
};
_local10++;
};
}
public function set preset(_arg1:Number):void{
this._preset = _arg1;
}
public function get stripeThickness():Number{
return (this._stripeThickness);
}
public function get preset():Number{
return (this._preset);
}
}
}//package com.jumpeye.flashEff2.symbol.stripes
Section 25
//FeTDefaultFade (com.jumpeye.flashEff2.text.defaultFade.FeTDefaultFade)
package com.jumpeye.flashEff2.text.defaultFade {
import flash.events.*;
import com.jumpeye.core.*;
import flash.filters.*;
import com.jumpeye.flashEff2.core.interfaces.*;
import com.jumpeye.Events.*;
import flash.utils.*;
public class FeTDefaultFade extends IFlashEffSymbol {
private var _partialStart:Number;// = 50
private var _partialBlurAmount:Number;// = 0
protected var delay:Number;
protected var finishPos:uint;
protected var time:Number;// = 0
protected var startPos:uint;
protected var duration:Number;// = 1
protected var tweenTimer:Timer;
protected var change:int;
protected var isTimer:Boolean;// = false
public function FeTDefaultFade(_arg1:JUIComponent=null){
this.component = _arg1;
_easeType = "easeOut";
_tweenType = "Quadratic";
}
override public function remove():void{
if (this.tweenTimer != null){
this.tweenTimer.removeEventListener(TimerEvent.TIMER, timerHandler);
};
if (this.component != null){
this.component.removeEventListener(Event.ENTER_FRAME, enterFrame);
};
this.tweenTimer = null;
if (this.target != null){
this.target.filters = [];
};
}
protected function timerHandler(_arg1:TimerEvent):void{
this.time = (this.time + this.delay);
if (this.time > this.duration){
this.time = this.duration;
this.tweenTimer.removeEventListener(TimerEvent.TIMER, timerHandler);
this.isTimer = false;
};
}
public function set partialStart(_arg1:Number):void{
this._partialStart = _arg1;
}
public function get partialBlurAmount():Number{
return (this._partialBlurAmount);
}
protected function startTransition(_arg1:Boolean=true):void{
startPos = 1;
finishPos = 0;
if (_arg1 == true){
startPos = 0;
finishPos = 1;
};
this.change = (finishPos - startPos);
this.target.alpha = startPos;
this.duration = ((this.tweenDuration * (1 - (this.partialStart / 100))) * 1000);
if (duration <= 0){
duration = 1;
};
this.delay = 30;
if (duration > (this.delay / 2)){
this.tweenTimer = new Timer(delay);
this.tweenTimer.addEventListener(TimerEvent.TIMER, timerHandler);
this.time = 0;
this.isTimer = true;
this.tweenTimer.start();
this.component.addEventListener(Event.ENTER_FRAME, enterFrame);
} else {
this.time = this.duration;
this.enterFrame();
};
}
public function set partialBlurAmount(_arg1:Number):void{
this._partialBlurAmount = _arg1;
}
public function get partialStart():Number{
return (this._partialStart);
}
override public function hide():void{
if (this.target != null){
this.startTransition(false);
};
}
protected function enterFrame(_arg1:Event=null):void{
var _local6:FLASHEFFEvents;
var _local2:Number = (((this.change * this.time) / this.duration) + this.startPos);
this.target.alpha = _local2;
var _local3:Number = (this.partialBlurAmount * (1 - _local2));
var _local4:BitmapFilter = new BlurFilter(_local3, _local3, 2);
var _local5:Array = new Array();
_local5.push(_local4);
this.target.filters = _local5;
if (this.isTimer == false){
this.remove();
_local6 = new FLASHEFFEvents("defaultPatternFinish");
this.component.dispatchEvent(_local6);
};
}
protected function motionFinish(_arg1:Event):void{
}
override public function show():void{
if (this.target != null){
this.startTransition(true);
};
}
}
}//package com.jumpeye.flashEff2.text.defaultFade
Section 26
//FeChar (com.jumpeye.flashEff2.text.FeChar)
package com.jumpeye.flashEff2.text {
import flash.display.*;
import flash.text.*;
public dynamic class FeChar extends Sprite {
private var _id:Number;
private var _textField:TextField;
private var _properties:Object;
private var _bottomPosition:Number;
private var _htmlText:String;// = ""
private var _type:String;// = "FeChar"
public function FeChar(_arg1:Number, _arg2:Number, _arg3:Object){
init();
this.text = ((_arg3.text) || (""));
this.id = _arg3.id;
this.x = _arg1;
this.y = _arg2;
this.properties = _arg3;
this.textField.embedFonts = true;
}
public function get textField():TextField{
return (_textField);
}
private function init(){
this.textField = new TextField();
this.textField.autoSize = TextFieldAutoSize.LEFT;
this.textField.selectable = false;
this.addChild(this.textField);
}
public function set text(_arg1:String):void{
this.textField.text = _arg1;
_htmlText = _arg1;
}
public function get id():Number{
return (this._id);
}
private function renewPositions(){
this.y = ((this.y + this.bottomPosition) - this.textField.getLineMetrics(0).ascent);
}
public function set textField(_arg1:TextField):void{
_textField = _arg1;
}
public function set bottomPosition(_arg1:Number):void{
_bottomPosition = _arg1;
}
public function applyTextFormat(_arg1:TextFormat):void{
_arg1.leading = 0;
_arg1.leftMargin = 0;
_arg1.rightMargin = 0;
_arg1.letterSpacing = 0;
_arg1.indent = 0;
_arg1.blockIndent = 0;
_arg1.align = "left";
this.textField.setTextFormat(_arg1);
if (this.textField.getTextFormat().italic == true){
this.textField.autoSize = TextFieldAutoSize.LEFT;
this.textField.width = (this.textField.width + (this.textField.height * 0.2125));
this.textField.autoSize = TextFieldAutoSize.NONE;
};
this.renewPositions();
}
public function get text():String{
return (this.textField.text);
}
public function set htmlText(_arg1:String):void{
trace(_arg1);
this.textField.htmlText = _arg1;
_htmlText = _arg1;
}
public function get properties():Object{
return (this._properties);
}
public function get bottomPosition():Number{
return (_bottomPosition);
}
public function set properties(_arg1:Object):void{
this._properties = _arg1;
}
public function set id(_arg1:Number):void{
this._id = _arg1;
}
public function get htmlText():String{
return (_htmlText);
}
public function get type():String{
return (this._type);
}
}
}//package com.jumpeye.flashEff2.text
Section 27
//FeGroup (com.jumpeye.flashEff2.text.FeGroup)
package com.jumpeye.flashEff2.text {
import flash.utils.*;
public dynamic class FeGroup extends FeTable {
private var _type:String;// = "FeGroup"
private var _id:Number;
private var _text:String;
private var _properties:Object;
public function FeGroup(_arg1:Number, _arg2:Number, _arg3:Object){
init();
this.x = ((_arg1) || (0));
this.y = ((_arg2) || (0));
this.text = _arg3.text;
this.id = _arg3.id;
this.properties = _arg3;
}
public function set properties(_arg1:Object):void{
this._properties = _arg1;
}
public function set text(_arg1:String):void{
this._text = _arg1;
}
public function get text():String{
return (this._text);
}
override public function set childs(_arg1:Array):void{
var className:String;
var classInstance:Class;
var child:*;
var arg = _arg1;
var len:uint = arg.length;
var i:uint;
while (i < len) {
className = arg[i].type;
try {
classInstance = (getDefinitionByName(("com.jumpeye.flashEff2.text." + className)) as Class);
child = new classInstance(arg[i].x, arg[i].y, arg[i]);
this.addChild(child);
this._childs.push(arg);
} catch(e) {
throw (e);
};
i = (i + 1);
};
}
private function init(){
}
public function get properties():Object{
return (this._properties);
}
public function set id(_arg1:Number):void{
this._id = _arg1;
}
override public function get childs():Array{
return (super.childs);
}
override public function get type():String{
return (this._type);
}
public function get id():Number{
return (this._id);
}
}
}//package com.jumpeye.flashEff2.text
Section 28
//FeTable (com.jumpeye.flashEff2.text.FeTable)
package com.jumpeye.flashEff2.text {
import flash.display.*;
import flash.utils.*;
public class FeTable extends Sprite {
private var tempChar:FeChar;
private var tempGroup:FeGroup;
private var _type:String;// = "FeTable"
protected var _childs:Array;
public function FeTable(){
init();
_childs = [];
}
public function cleanMe():void{
var _local2:*;
var _local1:* = 0;
while (_local1 < this._childs.length) {
_local2 = this._childs[_local1];
if (_local2.type != "FeChar"){
_local2.cleanMe();
};
if (_local2.numChildren == 0){
this.removeChildAtIndex(_local1);
} else {
_local1++;
};
};
}
public function pushChild(_arg1:Object):Object{
var classInstance:Class;
var child:*;
var arg = _arg1;
var className:String = arg.type;
try {
classInstance = (getDefinitionByName(("com.jumpeye.flashEff2.text." + className)) as Class);
child = new classInstance(arg.x, arg.y, arg);
this.addChild(child);
this._childs.push(child);
} catch(e) {
throw (e);
};
return (child);
}
public function removeChildAtIndex(_arg1:uint):Object{
this.removeChildAt(_arg1);
return (this._childs.splice(_arg1, 1)[0]);
}
public function set childs(_arg1:Array):void{
var _local2:uint = _arg1.length;
this._childs = [];
var _local3:uint;
while (_local3 < _local2) {
this.pushChild(_arg1[_local3]);
_local3++;
};
}
private function init(){
}
public function get childs():Array{
return (_childs);
}
public function get type():String{
return (this._type);
}
public function removeChilds():void{
var _local1:uint = this._childs.length;
var _local2:uint;
while (_local2 < _local1) {
if (this._childs[_local2].type == "FeGroup"){
this._childs[_local2].removeChilds();
};
this.removeChild(this._childs[_local2]);
_local2++;
};
this._childs = [];
}
}
}//package com.jumpeye.flashEff2.text
Section 29
//JDistortImage (com.jumpeye.flashEff2.utils.distort.JDistortImage)
package com.jumpeye.flashEff2.utils.distort {
import flash.display.*;
import flash.geom.*;
public class JDistortImage {
private var _yMax:Number;
private var _hsLen:Number;
private var _hseg:Number;
private var _xMin:Number;
public var texture:BitmapData;
private var _vsLen:Number;
private var _h:Number;
private var _xMax:Number;
private var _tri:Array;
public var smooth:Boolean;// = false
private var _p:Array;
private var _aMcs:Array;
private var _mc:Sprite;
private var _w:Number;
private var _vseg:Number;
private var _yMin:Number;
public function JDistortImage(_arg1:Sprite, _arg2, _arg3:Number, _arg4:Number):void{
smooth = false;
super();
_mc = _arg1;
texture = _arg2;
_vseg = _arg3;
_hseg = _arg4;
_w = texture.width;
_h = texture.height;
_aMcs = new Array();
_p = new Array();
_tri = new Array();
init();
}
public function setTransform(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number):void{
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Object;
var _local17:*;
var _local18:*;
var _local19:*;
var _local20:*;
_local9 = _w;
_local10 = _h;
_local11 = (_arg7 - _arg1);
_local12 = (_arg8 - _arg2);
_local13 = (_arg5 - _arg3);
_local14 = (_arg6 - _arg4);
_local15 = _p.length;
while (--_local15 > -1) {
_local16 = _p[_local15];
_local17 = ((_local16.x - _xMin) / _local9);
_local18 = ((_local16.y - _yMin) / _local10);
_local19 = (_arg1 + (_local18 * _local11));
_local20 = (_arg2 + (_local18 * _local12));
_local16.sx = (_local19 + (_local17 * ((_arg3 + (_local18 * _local13)) - _local19)));
_local16.sy = (_local20 + (_local17 * ((_arg4 + (_local18 * _local14)) - _local20)));
};
render();
}
private function addTriangle(_arg1:Object, _arg2:Object, _arg3:Object):void{
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Object;
_local10 = {};
_local4 = _arg1.x;
_local5 = _arg1.y;
_local6 = _arg2.x;
_local7 = _arg2.y;
_local8 = _arg3.x;
_local9 = _arg3.y;
_local10.tx = (-(_local5) * (_w / (_local7 - _local5)));
_local10.ty = (-(_local4) * (_h / (_local8 - _local4)));
_local10.a = (_local10.d = 0);
_local10.b = (_h / (_local8 - _local4));
_local10.c = (_w / (_local7 - _local5));
_tri.push([_arg1, _arg2, _arg3, _local10]);
}
private function init():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Object;
var _local8:Object;
var _local9:Object;
_p = new Array();
_tri = new Array();
_local3 = (_w / 2);
_local4 = (_h / 2);
_xMin = (_yMin = 0);
_xMax = _w;
_yMax = _h;
_hsLen = (_w / (_hseg + 1));
_vsLen = (_h / (_vseg + 1));
_local1 = 0;
while (_local1 < (_hseg + 2)) {
_local2 = 0;
while (_local2 < (_vseg + 2)) {
_local5 = (_local1 * _hsLen);
_local6 = (_local2 * _vsLen);
_p.push({x:_local5, y:_local6, sx:_local5, sy:_local6});
_local2++;
};
_local1++;
};
_local1 = 0;
while (_local1 < (_vseg + 1)) {
_local2 = 0;
while (_local2 < (_hseg + 1)) {
_local7 = _p[(_local2 + (_local1 * (_hseg + 2)))];
_local8 = _p[((_local2 + (_local1 * (_hseg + 2))) + 1)];
_local9 = _p[(_local2 + ((_local1 + 1) * (_hseg + 2)))];
addTriangle(_local7, _local8, _local9);
_local7 = _p[((_local2 + ((_local1 + 1) * (_vseg + 2))) + 1)];
_local8 = _p[(_local2 + ((_local1 + 1) * (_vseg + 2)))];
_local9 = _p[((_local2 + (_local1 * (_vseg + 2))) + 1)];
addTriangle(_local7, _local8, _local9);
_local2++;
};
_local1++;
};
render();
}
private function concat(_arg1, _arg2):Object{
var _local3:Matrix;
_local3 = new Matrix();
_local3.a = (_arg1.c * _arg2.b);
_local3.b = (_arg1.d * _arg2.b);
_local3.c = (_arg1.a * _arg2.c);
_local3.d = (_arg1.b * _arg2.c);
_local3.tx = (((_arg1.a * _arg2.tx) + (_arg1.c * _arg2.ty)) + _arg1.tx);
_local3.ty = (((_arg1.b * _arg2.tx) + (_arg1.d * _arg2.ty)) + _arg1.ty);
return (_local3);
}
private function render():void{
var _local1:Array;
var _local2:*;
var _local3:*;
var _local4:Object;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Sprite;
var _local10:Array;
var _local11:*;
var _local12:*;
var _local13:Number;
_local7 = (1 / _h);
_local8 = (1 / _w);
_local9 = _mc;
_local9.graphics.clear();
_local11 = new Matrix();
_local12 = {};
_local13 = _tri.length;
while (--_local13 > -1) {
_local10 = _tri[_local13];
_local2 = _local10[0];
_local3 = _local10[1];
_local4 = _local10[2];
_local12 = _local10[3];
_local5 = _local2.sx;
_local11.a = ((_local3.sx - _local5) * _local8);
_local6 = _local2.sy;
_local11.b = ((_local3.sy - _local6) * _local8);
_local11.c = ((_local4.sx - _local5) * _local7);
_local11.d = ((_local4.sy - _local6) * _local7);
_local11.tx = _local5;
_local11.ty = _local6;
_local11 = this.concat(_local11, _local12);
_local9.graphics.beginBitmapFill(texture, _local11, false, this.smooth);
_local9.graphics.moveTo(_local5, _local6);
_local9.graphics.lineTo(_local3.sx, _local3.sy);
_local9.graphics.lineTo(_local4.sx, _local4.sy);
_local9.graphics.endFill();
};
}
}
}//package com.jumpeye.flashEff2.utils.distort
Section 30
//JWavesEffect (com.jumpeye.flashEff2.utils.wavesEffect.JWavesEffect)
package com.jumpeye.flashEff2.utils.wavesEffect {
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
public class JWavesEffect extends Sprite {
public var bitmap:BitmapData;
private var map:Bitmap;
private var offsetPoints:Array;
private var target;
public var decrInterval:Number;
private var blurQuality:Number;
public var baseX;
public var baseY;
private var bounds:Object;
private var __value;// = 0
public var fractalNoiseVal;
private var hig:Number;
public var intervalId;
public var blurX;
public var blurY;
private var wid;
public function JWavesEffect(_arg1, _arg2:Boolean, _arg3:Number, _arg4:Number=0, _arg5:Number=0){
__value = 0;
super();
blurQuality = _arg3;
this.target = _arg1;
this.map = new Bitmap();
this.map.smoothing = _arg2;
this.addChild(map);
this.baseX = ((baseX) || (100));
this.baseY = ((baseY) || (100));
this.blurX = ((blurX) || (0));
this.blurY = ((blurY) || (0));
this.fractalNoiseVal = ((fractalNoiseVal) || (true));
this.offsetPoints = new Array();
this.offsetPoints[0] = new Point();
this.wid = ((_arg4)==0) ? _arg1.width : _arg4;
this.hig = ((_arg5)==0) ? _arg1.height : _arg5;
this.wid = ((this.wid)>2880) ? 2880 : this.wid;
this.hig = ((this.hig)>2880) ? 2880 : this.hig;
this.bitmap = new BitmapData((this.wid + 2), (this.hig + 2), true, 0);
}
public function get value():Number{
return (__value);
}
private function setEffect():void{
var _local1:Array;
this.initFilters(value);
_local1 = this.target.filters;
this.offsetPoints[0].x = this.value;
this.offsetPoints[0].y = this.value;
this.bitmap.perlinNoise(this.baseX, this.baseY, 2, 100, true, this.fractalNoiseVal, 7, true, this.offsetPoints);
_local1[0].mapBitmap = this.bitmap;
this.target.filters = _local1;
map.bitmapData = bitmap;
}
private function getDisplacement(_arg1):BitmapFilter{
var _local2:Point;
var _local3:DisplacementMapFilter;
_local2 = new Point(0, 0);
_local3 = new DisplacementMapFilter(this.bitmap, _local2, 1, 1, (_arg1 / 3), (_arg1 / 3), "color");
return (_local3);
}
private function initFilters(_arg1):void{
var _local2:*;
var _local3:*;
var _local4:Array;
_local2 = getDisplacement(_arg1);
_local3 = getBlur(0);
_local4 = [];
_local4.push(_local2);
_local4.push(_local3);
target.filters = [_local2];
}
private function getBlur(_arg1):BitmapFilter{
var _local2:Number;
var _local3:Number;
_local2 = _arg1;
_local3 = _arg1;
return (new BlurFilter(_local2, _local3, blurQuality));
}
public function set value(_arg1:Number):void{
__value = _arg1;
this.setEffect();
}
}
}//package com.jumpeye.flashEff2.utils.wavesEffect
Section 31
//JEmitter (com.jumpeye.particle.JEmitter)
package com.jumpeye.particle {
import flash.display.*;
import flash.utils.*;
import fl.transitions.easing.*;
public class JEmitter extends Sprite {
public var particleLifespan:Number;// = 0.5
public var particleEmissionInterval:Number;// = 0.1
public var particleCount:Number;// = 1
public var inteArr:Array;
private var totalTime:Number;
public var showCross:Boolean;// = false
private var endTime;
private var inte;
private var cross:Sprite;
public var inde:Number;// = 0
private var createdIntervals:Number;
public var isRandomInterval:Boolean;// = true
public var particleObj;
public var particleClass;
public var particles:Array;
public var easeFunc:Function;
private var eventDispatched:Boolean;
public var emitterLifespan:Number;// = 10
private var ind;
public function JEmitter(_arg1=null){
var _local2:*;
showCross = false;
particleLifespan = 0.5;
emitterLifespan = 10;
particleEmissionInterval = 0.1;
particleCount = 1;
inde = 0;
isRandomInterval = true;
super();
for (_local2 in _arg1) {
this[_local2] = _arg1[_local2];
};
init();
if (showCross){
cross = new (getDefinitionByName("emitter"));
this.addChild(cross);
};
}
public function destroy():void{
var _local1:*;
var _local2:*;
stopEmit();
_local2 = 0;
while (_local2 <= (this.numChildren - 1)) {
_local1 = this.getChildAt(_local2);
if ((_local1 is JParticle)){
clearParticle(_local1);
} else {
this.removeChild(_local1);
_local1 = null;
};
_local2++;
};
}
public function clearParticle(_arg1):void{
_arg1.destroy();
if (this.contains(_arg1)){
this.removeChild(_arg1);
};
_arg1 = null;
}
public function stopEmit():void{
clearInterval(inte);
}
private function init():void{
var _local1:*;
ind = 0;
createdIntervals = 0;
eventDispatched = false;
particles = [];
totalTime = 0;
inteArr = [];
_local1 = particleEmissionInterval;
while ((totalTime + particleLifespan) < emitterLifespan) {
if (isRandomInterval){
_local1 = randRange((particleEmissionInterval * 70), (particleEmissionInterval * 100));
_local1 = (_local1 / 100);
};
inteArr.push(_local1);
totalTime = (totalTime + _local1);
};
inteArr[(inteArr.length - 1)] = ((emitterLifespan - particleLifespan) - (totalTime - inteArr[(inteArr.length - 1)]));
totalTime = 0;
clearInterval(inte);
}
public function randRange(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1);
return (_local3);
}
public function endEffect(_arg1):void{
clearInterval(_arg1.inte);
clearParticle(_arg1);
}
private function startInterval():void{
if (inteArr[ind]){
inte = setInterval(createParticle, (inteArr[ind] * 1000), inteArr[ind]);
ind++;
};
}
public function startEmit():void{
init();
startInterval();
}
public function startEffect(_arg1, _arg2:Boolean=false):void{
}
public function test(){
var _local1:*;
stopEmit();
_local1 = 0;
while (_local1 <= (this.numChildren - 1)) {
trace(("c " + this.getChildAt(_local1)));
_local1++;
};
}
public function createParticle(_arg1:Number=0):void{
var _local2:Boolean;
var _local3:*;
var _local4:*;
_local2 = false;
this.stopEmit();
this.startInterval();
totalTime = (totalTime + _arg1);
_local3 = 0;
while (_local3 <= (particleCount - 1)) {
if ((((createdIntervals == (inteArr.length - 1))) && (!(eventDispatched)))){
_local2 = true;
eventDispatched = true;
} else {
_local2 = false;
eventDispatched = false;
};
_local4 = new particleClass(particleObj);
_local4.cacheAsBitmap = true;
startEffect(_local4, _local2);
this.addChild(_local4);
_local3++;
};
createdIntervals++;
}
}
}//package com.jumpeye.particle
Section 32
//JParticle (com.jumpeye.particle.JParticle)
package com.jumpeye.particle {
import flash.display.*;
public class JParticle extends Shape {
public var color:uint;// = 0xFFFFFF
public function JParticle(_arg1=null){
var _local2:*;
color = 0xFFFFFF;
super();
for (_local2 in _arg1) {
this[_local2] = _arg1[_local2];
};
this.drawParticle();
}
public function drawParticle():void{
graphics.beginFill(color, 1);
graphics.drawCircle(10, 10, 10);
graphics.endFill();
}
public function destroy():void{
graphics.clear();
}
}
}//package com.jumpeye.particle
Section 33
//Quadratic (com.jumpeye.transitions.easing.Quadratic)
package com.jumpeye.transitions.easing {
public class Quadratic {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
}
}//package com.jumpeye.transitions.easing
Section 34
//QuadraticEase (com.jumpeye.transitions.easing.QuadraticEase)
package com.jumpeye.transitions.easing {
import flash.display.*;
public class QuadraticEase extends Sprite {
public function QuadraticEase(){
var _local1:Quadratic;
super();
_local1 = new Quadratic();
}
}
}//package com.jumpeye.transitions.easing
Section 35
//Strong (com.jumpeye.transitions.easing.Strong)
package com.jumpeye.transitions.easing {
public class Strong {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
}
}//package com.jumpeye.transitions.easing
Section 36
//StrongEase (com.jumpeye.transitions.easing.StrongEase)
package com.jumpeye.transitions.easing {
import flash.display.*;
public class StrongEase extends Sprite {
public function StrongEase(){
var _local1:*;
super();
_local1 = new Strong();
}
}
}//package com.jumpeye.transitions.easing
Section 37
//TweenInfo (com.jumpeye.transitions.utils.tween.TweenInfo)
package com.jumpeye.transitions.utils.tween {
public class TweenInfo {
public var start:Number;
public var name:String;
public var change:Number;
public var target:Object;
public var property:String;
public var isPlugin:Boolean;
public function TweenInfo(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
}
}
}//package com.jumpeye.transitions.utils.tween
Section 38
//TweenLite (com.jumpeye.transitions.TweenLite)
package com.jumpeye.transitions {
import flash.display.*;
import flash.events.*;
import com.jumpeye.transitions.utils.tween.*;
import flash.utils.*;
import com.jumpeye.transitions.plugins.*;
public class TweenLite {
public var delay:Number;
protected var _hasUpdate:Boolean;
protected var _hasPlugins:Boolean;
public var started:Boolean;
public var initted:Boolean;
public var active:Boolean;
public var startTime:Number;
public var target:Object;
public var duration:Number;
public var gc:Boolean;
public var vars:Object;
public var ease:Function;
public var tweens:Array;
public var exposedVars:Object;
public var combinedTimeScale:Number;
public var initTime:Number;
public static const version:Number = 10.09;
private static var _timer:Timer = new Timer(2000);
public static var defaultEase:Function = easeOut;
public static var plugins:Object = {};
public static var currentTime:uint;
public static var masterList:Dictionary = new Dictionary(false);
protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, persist:1, renderOnStart:1, proxiedEase:1, easeParams:1, yoyo:1, loop:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, orientToBezier:1, timeScale:1};
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public static var timingSprite:Sprite = new Sprite();
public static var overwriteManager:Object;
private static var _tlInitted:Boolean;
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local4:int;
super();
if (_arg1 == null){
return;
};
if (!_tlInitted){
currentTime = getTimer();
timingSprite.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
_timer.addEventListener("timer", killGarbage, false, 0, true);
_timer.start();
_tlInitted = true;
};
this.vars = _arg3;
this.duration = ((_arg2) || (0.001));
this.delay = ((_arg3.delay) || (0));
this.combinedTimeScale = ((_arg3.timeScale) || (1));
this.active = Boolean((((_arg2 == 0)) && ((this.delay == 0))));
this.target = _arg1;
if (typeof(this.vars.ease) != "function"){
this.vars.ease = defaultEase;
};
if (this.vars.easeParams != null){
this.vars.proxiedEase = this.vars.ease;
this.vars.ease = easeProxy;
};
this.ease = this.vars.ease;
this.exposedVars = ((this.vars.isTV)==true) ? this.vars.exposedVars : this.vars;
this.tweens = [];
this.initTime = currentTime;
this.startTime = (this.initTime + (this.delay * 1000));
_local4 = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
if (((!((_arg1 in masterList))) || ((_local4 == 1)))){
masterList[_arg1] = [this];
} else {
masterList[_arg1].push(this);
};
if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (this.active))){
initTweenVals();
if (this.active){
render((this.startTime + 1));
} else {
render(this.startTime);
};
if (((((!((this.exposedVars.visible == null))) && ((this.vars.runBackwards == true)))) && ((this.target is DisplayObject)))){
this.target.visible = this.exposedVars.visible;
};
};
}
public function set enabled(_arg1:Boolean):void{
var _local2:Array;
var _local3:Boolean;
var _local4:int;
if (_arg1){
if (!(this.target in masterList)){
masterList[this.target] = [this];
} else {
_local2 = masterList[this.target];
_local4 = (_local2.length - 1);
while (_local4 > -1) {
if (_local2[_local4] == this){
_local3 = true;
break;
};
_local4--;
};
if (!_local3){
_local2[_local2.length] = this;
};
};
};
this.gc = (_arg1) ? false : true;
if (this.gc){
this.active = false;
} else {
this.active = this.started;
};
}
public function clear():void{
this.tweens = [];
this.vars = (this.exposedVars = {ease:this.vars.ease});
_hasUpdate = false;
}
public function render(_arg1:uint):void{
var _local2:Number;
var _local3:Number;
var _local4:TweenInfo;
var _local5:int;
_local2 = ((_arg1 - this.startTime) * 0.001);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4.target[_local4.property] = (_local4.start + (_local3 * _local4.change));
_local5--;
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
public function activate():void{
this.started = (this.active = true);
if (!this.initted){
initTweenVals();
};
if (this.vars.onStart != null){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
}
public function get enabled():Boolean{
return ((this.gc) ? false : true);
}
public function initTweenVals():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:TweenInfo;
if (((!((this.exposedVars.timeScale == undefined))) && ((this.target is TweenLite)))){
this.tweens[this.tweens.length] = new TweenInfo(this.target, "timeScale", this.target.timeScale, (this.exposedVars.timeScale - this.target.timeScale), "timeScale", false);
};
for (_local1 in this.exposedVars) {
if ((_local1 in _reservedProps)){
} else {
if ((_local1 in plugins)){
_local3 = new (plugins[_local1]);
if (_local3.onInitTween(this.target, this.exposedVars[_local1], this) == false){
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
} else {
this.tweens[this.tweens.length] = new TweenInfo(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true);
_hasPlugins = true;
};
} else {
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
};
};
};
if (this.vars.runBackwards == true){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
_local4 = this.tweens[_local2];
this.tweens[_local2].start = (_local4.start + _local4.change);
_local4.change = -(_local4.change);
_local2--;
};
};
if (this.vars.onUpdate != null){
_hasUpdate = true;
};
if (((TweenLite.overwriteManager.enabled) && ((this.target in masterList)))){
overwriteManager.manageOverwrites(this, masterList[this.target]);
};
this.initted = true;
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
public function killVars(_arg1:Object):void{
if (overwriteManager.enabled){
overwriteManager.killVars(_arg1, this.exposedVars, this.tweens);
};
}
public function complete(_arg1:Boolean=false):void{
var _local2:int;
if (!_arg1){
if (!this.initted){
initTweenVals();
};
this.startTime = (currentTime - ((this.duration * 1000) / this.combinedTimeScale));
render(currentTime);
return;
};
if (_hasPlugins){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
if (((this.tweens[_local2].isPlugin) && (!((this.tweens[_local2].target.onComplete == null))))){
this.tweens[_local2].target.onComplete();
};
_local2--;
};
};
if (this.vars.persist != true){
this.enabled = false;
};
if (this.vars.onComplete != null){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
};
}
public static function updateAll(_arg1:Event=null):void{
var _local2:uint;
var _local3:Dictionary;
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
_local2 = (currentTime = getTimer());
_local3 = masterList;
for each (_local4 in _local3) {
_local5 = (_local4.length - 1);
while (_local5 > -1) {
_local6 = _local4[_local5];
if (_local6.active){
_local6.render(_local2);
} else {
if (_local6.gc){
_local4.splice(_local5, 1);
} else {
if (_local2 >= _local6.startTime){
_local6.activate();
_local6.render(_local2);
};
};
};
_local5--;
};
};
}
public static function removeTween(_arg1:TweenLite, _arg2:Boolean=true):void{
if (_arg1 != null){
if (_arg2){
_arg1.clear();
};
_arg1.enabled = false;
};
}
public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{
var _local3:Array;
var _local4:int;
var _local5:TweenLite;
if (((!((_arg1 == null))) && ((_arg1 in masterList)))){
_local3 = masterList[_arg1];
_local4 = (_local3.length - 1);
while (_local4 > -1) {
_local5 = _local3[_local4];
if (((_arg2) && (!(_local5.gc)))){
_local5.complete(false);
};
_local5.clear();
_local4--;
};
delete masterList[_arg1];
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
protected static function killGarbage(_arg1:TimerEvent):void{
var _local2:Dictionary;
var _local3:Object;
_local2 = masterList;
for (_local3 in _local2) {
if (_local2[_local3].length == 0){
delete _local2[_local3];
};
};
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0}));
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package com.jumpeye.transitions
Section 39
//JLineMask (com.jumpeye.utils.JLineMask)
package com.jumpeye.utils {
import flash.display.*;
public class JLineMask extends Sprite {
private var isCenter:Boolean;// = false
private var __value;// = 0
private var hig:Number;
private var msk:Sprite;
private var dimD:Number;
private var orientation:String;
private var wid;
public function JLineMask(_arg1:Number=100, _arg2:Number=100, _arg3:String="left", _arg4:Boolean=false){
var _local5:*;
var _local6:*;
var _local7:*;
isCenter = false;
__value = 0;
super();
this.wid = _arg1;
this.hig = _arg2;
this.isCenter = _arg4;
this.orientation = _arg3;
this.msk = new Sprite();
_local5 = new Shape();
_local5.graphics.beginFill(3368601, 0.4);
_local6 = ((((_arg3 == "left")) || ((_arg3 == "right")))) ? 1 : _arg1;
_local7 = ((((_arg3 == "top")) || ((_arg3 == "bottom")))) ? 1 : _arg2;
_local5.graphics.drawRect(0, 0, _local6, _local7);
_local5.graphics.endFill();
msk.addChild(_local5);
this.addChild(msk);
value = 0;
}
public function get value():Number{
return (__value);
}
private function arrange():void{
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = ((((orientation == "left")) || ((orientation == "right")))) ? "x" : "y";
_local2 = ((((orientation == "left")) || ((orientation == "right")))) ? "width" : "height";
_local3 = ((((orientation == "left")) || ((orientation == "right")))) ? wid : hig;
if (!isCenter){
msk[_local1] = ((((orientation == "right")) || ((orientation == "bottom")))) ? (dimD - msk[_local2]) : 0;
} else {
msk[_local1] = ((((orientation == "right")) || ((orientation == "bottom")))) ? ((dimD / 2) - (msk[_local2] / 2)) : 0;
};
}
public function set value(_arg1:Number):void{
__value = _arg1;
this.setRedraw();
}
private function setRedraw():void{
var _local1:*;
_local1 = ((((orientation == "left")) || ((orientation == "right")))) ? "width" : "height";
dimD = ((((orientation == "left")) || ((orientation == "right")))) ? wid : hig;
msk[_local1] = this.value;
this.arrange();
}
}
}//package com.jumpeye.utils
Section 40
//Back (gs.easing.Back)
package gs.easing {
public class Back {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_arg5 + 1) * _arg1) - _arg5)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) - _arg5))) + _arg2));
};
_arg1 = (_arg1 - 2);
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 2)) + _arg2));
}
}
}//package gs.easing
Section 41
//Sine (gs.easing.Sine)
package gs.easing {
public class Sine {
private static const _HALF_PI:Number = 1.5707963267949;
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (((_arg3 * Math.sin(((_arg1 / _arg4) * _HALF_PI))) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * _HALF_PI))) + _arg3) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((-(_arg3) / 2) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2));
}
}
}//package gs.easing
Section 42
//AutoAlphaPlugin (gs.plugins.AutoAlphaPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class AutoAlphaPlugin extends TweenPlugin {
protected var _tweenVisible:Boolean;
protected var _tween:TweenLite;
protected var _visible:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function AutoAlphaPlugin(){
this.propName = "autoAlpha";
this.overwriteProps = ["alpha", "visible"];
this.onComplete = onCompleteTween;
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
if (((!((_target.visible == true))) && (_tweenVisible))){
_target.visible = true;
};
}
public function onCompleteTween():void{
if (((((_tweenVisible) && (!((_tween.vars.runBackwards == true))))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_visible = Boolean(!((_arg2 == 0)));
_tweenVisible = true;
addTween(_arg1, "alpha", _arg1.alpha, _arg2, "alpha");
return (true);
}
override public function killProps(_arg1:Object):void{
super.killProps(_arg1);
_tweenVisible = !(Boolean(("visible" in _arg1)));
}
}
}//package gs.plugins
Section 43
//EndArrayPlugin (gs.plugins.EndArrayPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class EndArrayPlugin extends TweenPlugin {
protected var _info:Array;
protected var _a:Array;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function EndArrayPlugin(){
_info = [];
super();
this.propName = "endArray";
this.overwriteProps = ["endArray"];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:ArrayTweenInfo;
var _local4:Number;
var _local5:int;
if (this.round){
_local2 = (_info.length - 1);
while (_local2 > -1) {
_local3 = _info[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local5 = ((_local4)<0) ? -1 : 1;
_a[_local3.index] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4);
_local2--;
};
} else {
_local2 = (_info.length - 1);
while (_local2 > -1) {
_local3 = _info[_local2];
_a[_local3.index] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
};
}
public function init(_arg1:Array, _arg2:Array):void{
var _local3:int;
_a = _arg1;
_local3 = (_arg2.length - 1);
while (_local3 > -1) {
if (((!((_arg1[_local3] == _arg2[_local3]))) && (!((_arg1[_local3] == null))))){
_info[_info.length] = new ArrayTweenInfo(_local3, _a[_local3], (_arg2[_local3] - _a[_local3]));
};
_local3--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (false);
};
init((_arg1 as Array), _arg2);
return (true);
}
}
}//package gs.plugins
Section 44
//FramePlugin (gs.plugins.FramePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class FramePlugin extends TweenPlugin {
public var frame:int;
protected var _target:MovieClip;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function FramePlugin(){
this.propName = "frame";
this.overwriteProps = ["frame"];
this.round = true;
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.gotoAndStop(this.frame);
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is MovieClip))) || (isNaN(_arg2)))){
return (false);
};
_target = (_arg1 as MovieClip);
this.frame = _target.currentFrame;
addTween(this, "frame", this.frame, _arg2, "frame");
return (true);
}
}
}//package gs.plugins
Section 45
//RemoveTintPlugin (gs.plugins.RemoveTintPlugin)
package gs.plugins {
public class RemoveTintPlugin extends TintPlugin {
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function RemoveTintPlugin(){
this.propName = "removeTint";
}
}
}//package gs.plugins
Section 46
//TintPlugin (gs.plugins.TintPlugin)
package gs.plugins {
import flash.display.*;
import flash.geom.*;
import gs.*;
import gs.utils.tween.*;
public class TintPlugin extends TweenPlugin {
protected var _ct:ColorTransform;
protected var _ignoreAlpha:Boolean;
protected var _target:DisplayObject;
public static const VERSION:Number = 1.1;
public static const API:Number = 1;
protected static var _props:Array = ["redMultiplier", "greenMultiplier", "blueMultiplier", "alphaMultiplier", "redOffset", "greenOffset", "blueOffset", "alphaOffset"];
public function TintPlugin(){
this.propName = "tint";
this.overwriteProps = ["tint"];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:ColorTransform;
updateTweens(_arg1);
if (_ignoreAlpha){
_local2 = _target.transform.colorTransform;
_ct.alphaMultiplier = _local2.alphaMultiplier;
_ct.alphaOffset = _local2.alphaOffset;
};
_target.transform.colorTransform = _ct;
}
public function init(_arg1:DisplayObject, _arg2:ColorTransform):void{
var _local3:int;
var _local4:String;
_target = _arg1;
_ct = _target.transform.colorTransform;
_local3 = (_props.length - 1);
while (_local3 > -1) {
_local4 = _props[_local3];
if (_ct[_local4] != _arg2[_local4]){
_tweens[_tweens.length] = new TweenInfo(_ct, _local4, _ct[_local4], (_arg2[_local4] - _ct[_local4]), "tint", false);
};
_local3--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:ColorTransform;
if (!(_arg1 is DisplayObject)){
return (false);
};
_local4 = new ColorTransform();
if (((!((_arg2 == null))) && (!((_arg3.exposedVars.removeTint == true))))){
_local4.color = uint(_arg2);
};
_ignoreAlpha = true;
init((_arg1 as DisplayObject), _local4);
return (true);
}
}
}//package gs.plugins
Section 47
//TweenPlugin (gs.plugins.TweenPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class TweenPlugin {
public var overwriteProps:Array;
protected var _tweens:Array;
public var round:Boolean;
public var onComplete:Function;
public var propName:String;
protected var _changeFactor:Number;// = 0
public static const VERSION:Number = 1.03;
public static const API:Number = 1;
public function TweenPlugin(){
_tweens = [];
_changeFactor = 0;
super();
}
protected function updateTweens(_arg1:Number):void{
var _local2:int;
var _local3:TweenInfo;
var _local4:Number;
var _local5:int;
if (this.round){
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local5 = ((_local4)<0) ? -1 : 1;
_local3.target[_local3.property] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4);
_local2--;
};
} else {
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
};
}
public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_changeFactor = _arg1;
}
protected function addTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String=null):void{
var _local6:Number;
if (_arg4 != null){
_local6 = ((typeof(_arg4))=="number") ? (_arg4 - _arg3) : Number(_arg4);
if (_local6 != 0){
_tweens[_tweens.length] = new TweenInfo(_arg1, _arg2, _arg3, _local6, ((_arg5) || (_arg2)), false);
};
};
}
public function killProps(_arg1:Object):void{
var _local2:int;
_local2 = (this.overwriteProps.length - 1);
while (_local2 > -1) {
if ((this.overwriteProps[_local2] in _arg1)){
this.overwriteProps.splice(_local2, 1);
};
_local2--;
};
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
if ((_tweens[_local2].name in _arg1)){
_tweens.splice(_local2, 1);
};
_local2--;
};
}
public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
addTween(_arg1, this.propName, _arg1[this.propName], _arg2, this.propName);
return (true);
}
public function get changeFactor():Number{
return (_changeFactor);
}
public static function activate(_arg1:Array):Boolean{
var _local2:int;
var _local3:Object;
_local2 = (_arg1.length - 1);
while (_local2 > -1) {
_local3 = new (_arg1[_local2]);
TweenLite.plugins[_local3.propName] = _arg1[_local2];
_local2--;
};
return (true);
}
}
}//package gs.plugins
Section 48
//VisiblePlugin (gs.plugins.VisiblePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
public class VisiblePlugin extends TweenPlugin {
protected var _tween:TweenLite;
protected var _visible:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function VisiblePlugin(){
this.propName = "visible";
this.overwriteProps = ["visible"];
this.onComplete = onCompleteTween;
}
override public function set changeFactor(_arg1:Number):void{
if (_target.visible != true){
_target.visible = true;
};
}
public function onCompleteTween():void{
if (((!((_tween.vars.runBackwards == true))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_visible = Boolean(_arg2);
return (true);
}
}
}//package gs.plugins
Section 49
//VolumePlugin (gs.plugins.VolumePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
import flash.media.*;
public class VolumePlugin extends TweenPlugin {
protected var _st:SoundTransform;
protected var _target:Object;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function VolumePlugin(){
this.propName = "volume";
this.overwriteProps = ["volume"];
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.soundTransform = _st;
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((isNaN(_arg2)) || (!(_arg1.hasOwnProperty("soundTransform"))))){
return (false);
};
_target = _arg1;
_st = _target.soundTransform;
addTween(_st, "volume", _st.volume, _arg2, "volume");
return (true);
}
}
}//package gs.plugins
Section 50
//ArrayTweenInfo (gs.utils.tween.ArrayTweenInfo)
package gs.utils.tween {
public class ArrayTweenInfo {
public var change:Number;
public var index:uint;
public var start:Number;
public function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){
this.index = _arg1;
this.start = _arg2;
this.change = _arg3;
}
}
}//package gs.utils.tween
Section 51
//TweenInfo (gs.utils.tween.TweenInfo)
package gs.utils.tween {
public class TweenInfo {
public var start:Number;
public var name:String;
public var change:Number;
public var target:Object;
public var property:String;
public var isPlugin:Boolean;
public function TweenInfo(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
}
}
}//package gs.utils.tween
Section 52
//TweenLite (gs.TweenLite)
package gs {
import flash.display.*;
import flash.events.*;
import gs.utils.tween.*;
import gs.plugins.*;
import flash.utils.*;
public class TweenLite {
public var delay:Number;
protected var _hasUpdate:Boolean;
protected var _hasPlugins:Boolean;
public var started:Boolean;
public var initted:Boolean;
public var active:Boolean;
public var startTime:Number;
public var target:Object;
public var duration:Number;
public var gc:Boolean;
public var vars:Object;
public var ease:Function;
public var tweens:Array;
public var exposedVars:Object;
public var combinedTimeScale:Number;
public var initTime:Number;
public static const version:Number = 10.09;
private static var _timer:Timer = new Timer(2000);
public static var defaultEase:Function = TweenLite.easeOut;
public static var plugins:Object = {};
public static var currentTime:uint;
public static var masterList:Dictionary = new Dictionary(false);
protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, persist:1, renderOnStart:1, proxiedEase:1, easeParams:1, yoyo:1, loop:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, orientToBezier:1, timeScale:1};
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public static var timingSprite:Sprite = new Sprite();
public static var overwriteManager:Object;
private static var _tlInitted:Boolean;
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local4:int;
super();
if (_arg1 == null){
return;
};
if (!_tlInitted){
TweenPlugin.activate([TintPlugin, RemoveTintPlugin, FramePlugin, AutoAlphaPlugin, VisiblePlugin, VolumePlugin, EndArrayPlugin]);
currentTime = getTimer();
timingSprite.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
_timer.addEventListener("timer", killGarbage, false, 0, true);
_timer.start();
_tlInitted = true;
};
this.vars = _arg3;
this.duration = ((_arg2) || (0.001));
this.delay = ((_arg3.delay) || (0));
this.combinedTimeScale = ((_arg3.timeScale) || (1));
this.active = Boolean((((_arg2 == 0)) && ((this.delay == 0))));
this.target = _arg1;
if (typeof(this.vars.ease) != "function"){
this.vars.ease = defaultEase;
};
if (this.vars.easeParams != null){
this.vars.proxiedEase = this.vars.ease;
this.vars.ease = easeProxy;
};
this.ease = this.vars.ease;
this.exposedVars = ((this.vars.isTV)==true) ? this.vars.exposedVars : this.vars;
this.tweens = [];
this.initTime = currentTime;
this.startTime = (this.initTime + (this.delay * 1000));
_local4 = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
if (((!((_arg1 in masterList))) || ((_local4 == 1)))){
masterList[_arg1] = [this];
} else {
masterList[_arg1].push(this);
};
if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (this.active))){
initTweenVals();
if (this.active){
render((this.startTime + 1));
} else {
render(this.startTime);
};
if (((((!((this.exposedVars.visible == null))) && ((this.vars.runBackwards == true)))) && ((this.target is DisplayObject)))){
this.target.visible = this.exposedVars.visible;
};
};
}
public function set enabled(_arg1:Boolean):void{
var _local2:Array;
var _local3:Boolean;
var _local4:int;
if (_arg1){
if (!(this.target in masterList)){
masterList[this.target] = [this];
} else {
_local2 = masterList[this.target];
_local4 = (_local2.length - 1);
while (_local4 > -1) {
if (_local2[_local4] == this){
_local3 = true;
break;
};
_local4--;
};
if (!_local3){
_local2[_local2.length] = this;
};
};
};
this.gc = (_arg1) ? false : true;
if (this.gc){
this.active = false;
} else {
this.active = this.started;
};
}
public function clear():void{
this.tweens = [];
this.vars = (this.exposedVars = {ease:this.vars.ease});
_hasUpdate = false;
}
public function render(_arg1:uint):void{
var _local2:Number;
var _local3:Number;
var _local4:TweenInfo;
var _local5:int;
_local2 = ((_arg1 - this.startTime) * 0.001);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4.target[_local4.property] = (_local4.start + (_local3 * _local4.change));
_local5--;
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
public function activate():void{
this.started = (this.active = true);
if (!this.initted){
initTweenVals();
};
if (this.vars.onStart != null){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
}
public function get enabled():Boolean{
return ((this.gc) ? false : true);
}
public function initTweenVals():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:TweenInfo;
if (((!((this.exposedVars.timeScale == undefined))) && ((this.target is TweenLite)))){
this.tweens[this.tweens.length] = new TweenInfo(this.target, "timeScale", this.target.timeScale, (this.exposedVars.timeScale - this.target.timeScale), "timeScale", false);
};
for (_local1 in this.exposedVars) {
if ((_local1 in _reservedProps)){
} else {
if ((_local1 in plugins)){
_local3 = new (plugins[_local1]);
if (_local3.onInitTween(this.target, this.exposedVars[_local1], this) == false){
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
} else {
this.tweens[this.tweens.length] = new TweenInfo(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true);
_hasPlugins = true;
};
} else {
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
};
};
};
if (this.vars.runBackwards == true){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
_local4 = this.tweens[_local2];
this.tweens[_local2].start = (_local4.start + _local4.change);
_local4.change = -(_local4.change);
_local2--;
};
};
if (this.vars.onUpdate != null){
_hasUpdate = true;
};
if (((TweenLite.overwriteManager.enabled) && ((this.target in masterList)))){
overwriteManager.manageOverwrites(this, masterList[this.target]);
};
this.initted = true;
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
public function killVars(_arg1:Object):void{
if (overwriteManager.enabled){
overwriteManager.killVars(_arg1, this.exposedVars, this.tweens);
};
}
public function complete(_arg1:Boolean=false):void{
var _local2:int;
if (!_arg1){
if (!this.initted){
initTweenVals();
};
this.startTime = (currentTime - ((this.duration * 1000) / this.combinedTimeScale));
render(currentTime);
return;
};
if (_hasPlugins){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
if (((this.tweens[_local2].isPlugin) && (!((this.tweens[_local2].target.onComplete == null))))){
this.tweens[_local2].target.onComplete();
};
_local2--;
};
};
if (this.vars.persist != true){
this.enabled = false;
};
if (this.vars.onComplete != null){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
};
}
public static function updateAll(_arg1:Event=null):void{
var _local2:uint;
var _local3:Dictionary;
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
_local2 = (currentTime = getTimer());
_local3 = masterList;
for each (_local4 in _local3) {
_local5 = (_local4.length - 1);
while (_local5 > -1) {
_local6 = _local4[_local5];
if (_local6.active){
_local6.render(_local2);
} else {
if (_local6.gc){
_local4.splice(_local5, 1);
} else {
if (_local2 >= _local6.startTime){
_local6.activate();
_local6.render(_local2);
};
};
};
_local5--;
};
};
}
public static function removeTween(_arg1:TweenLite, _arg2:Boolean=true):void{
if (_arg1 != null){
if (_arg2){
_arg1.clear();
};
_arg1.enabled = false;
};
}
public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{
var _local3:Array;
var _local4:int;
var _local5:TweenLite;
if (((!((_arg1 == null))) && ((_arg1 in masterList)))){
_local3 = masterList[_arg1];
_local4 = (_local3.length - 1);
while (_local4 > -1) {
_local5 = _local3[_local4];
if (((_arg2) && (!(_local5.gc)))){
_local5.complete(false);
};
_local5.clear();
_local4--;
};
delete masterList[_arg1];
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
protected static function killGarbage(_arg1:TimerEvent):void{
var _local2:Dictionary;
var _local3:Object;
_local2 = masterList;
for (_local3 in _local2) {
if (_local2[_local3].length == 0){
delete _local2[_local3];
};
};
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0}));
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package gs
Section 53
//btncopy_126 (tyra_banksfinal_fla.btncopy_126)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class btncopy_126 extends MovieClip {
public var f4:MovieClip;
public var f1:MovieClip;
public var f5:MovieClip;
public var f3:MovieClip;
public var f2:MovieClip;
}
}//package tyra_banksfinal_fla
Section 54
//btncopy_157 (tyra_banksfinal_fla.btncopy_157)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class btncopy_157 extends MovieClip {
public var f6:MovieClip;
public var f4:MovieClip;
public var f1:MovieClip;
public var f5:MovieClip;
public var f3:MovieClip;
public var f2:MovieClip;
}
}//package tyra_banksfinal_fla
Section 55
//buttons_213 (tyra_banksfinal_fla.buttons_213)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class buttons_213 extends MovieClip {
public var mascara:MovieClip;
public var extra:MovieClip;
public var dress:MovieClip;
public var face:MovieClip;
public var lip:MovieClip;
public var eyelens:MovieClip;
public var rouge:MovieClip;
public var eyeshade:MovieClip;
public var chain:MovieClip;
public var hair:MovieClip;
}
}//package tyra_banksfinal_fla
Section 56
//cbvdsfdsf_7 (tyra_banksfinal_fla.cbvdsfdsf_7)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class cbvdsfdsf_7 extends MovieClip {
public var masker:MovieClip;
}
}//package tyra_banksfinal_fla
Section 57
//chain_87 (tyra_banksfinal_fla.chain_87)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class chain_87 extends MovieClip {
public var btn:MovieClip;
}
}//package tyra_banksfinal_fla
Section 58
//cvbcvbcvbvcy_78_1_20 (tyra_banksfinal_fla.cvbcvbcvbvcy_78_1_20)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class cvbcvbcvbvcy_78_1_20 extends MovieClip {
public function cvbcvbcvbvcy_78_1_20(){
addFrameScript(56, frame57);
}
function frame57(){
stop();
}
}
}//package tyra_banksfinal_fla
Section 59
//dfgj_267 (tyra_banksfinal_fla.dfgj_267)
package tyra_banksfinal_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class dfgj_267 extends MovieClip {
public function dfgj_267(){
addFrameScript(0, frame1);
}
function frame1(){
buttonMode = true;
addEventListener(MouseEvent.CLICK, Links);
}
public function Links(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.allfungirlsgames.com");
navigateToURL(_local2, "_blank");
}
}
}//package tyra_banksfinal_fla
Section 60
//dress_72 (tyra_banksfinal_fla.dress_72)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class dress_72 extends MovieClip {
public var btn:MovieClip;
}
}//package tyra_banksfinal_fla
Section 61
//eyelenso_105 (tyra_banksfinal_fla.eyelenso_105)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class eyelenso_105 extends MovieClip {
public var btn:MovieClip;
}
}//package tyra_banksfinal_fla
Section 62
//eyeshaeo_153 (tyra_banksfinal_fla.eyeshaeo_153)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class eyeshaeo_153 extends MovieClip {
public var btn:MovieClip;
}
}//package tyra_banksfinal_fla
Section 63
//faceo_122 (tyra_banksfinal_fla.faceo_122)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class faceo_122 extends MovieClip {
public var btn:MovieClip;
}
}//package tyra_banksfinal_fla
Section 64
//hdhdfhf_emaikl_309 (tyra_banksfinal_fla.hdhdfhf_emaikl_309)
package tyra_banksfinal_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public dynamic class hdhdfhf_emaikl_309 extends MovieClip {
public var friendMail:TextField;
public var close:SimpleButton;
public function hdhdfhf_emaikl_309(){
addFrameScript(0, frame1);
}
public function hideAdd(_arg1:MouseEvent):void{
this.visible = false;
}
function frame1(){
this.visible = false;
close.addEventListener(MouseEvent.CLICK, hideAdd);
}
}
}//package tyra_banksfinal_fla
Section 65
//hhhvxcv_233 (tyra_banksfinal_fla.hhhvxcv_233)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class hhhvxcv_233 extends MovieClip {
public function hhhvxcv_233(){
addFrameScript(0, frame1, 7, frame8);
}
function frame1(){
stop();
}
function frame8(){
gotoAndStop(1);
}
}
}//package tyra_banksfinal_fla
Section 66
//hhhvxcvcopy_234 (tyra_banksfinal_fla.hhhvxcvcopy_234)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class hhhvxcvcopy_234 extends MovieClip {
public function hhhvxcvcopy_234(){
addFrameScript(0, frame1, 7, frame8);
}
function frame1(){
stop();
}
function frame8(){
gotoAndStop(1);
}
}
}//package tyra_banksfinal_fla
Section 67
//hjmkvzxcvzx_232 (tyra_banksfinal_fla.hjmkvzxcvzx_232)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class hjmkvzxcvzx_232 extends MovieClip {
public function hjmkvzxcvzx_232(){
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package tyra_banksfinal_fla
Section 68
//hkgh_197 (tyra_banksfinal_fla.hkgh_197)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class hkgh_197 extends MovieClip {
public var inner:MovieClip;
}
}//package tyra_banksfinal_fla
Section 69
//hujkgh_196 (tyra_banksfinal_fla.hujkgh_196)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class hujkgh_196 extends MovieClip {
public var outter:MovieClip;
}
}//package tyra_banksfinal_fla
Section 70
//jgjyiy9_emaikl_290 (tyra_banksfinal_fla.jgjyiy9_emaikl_290)
package tyra_banksfinal_fla {
import flash.display.*;
import flash.text.*;
public dynamic class jgjyiy9_emaikl_290 extends MovieClip {
public var addition:SimpleButton;
public var close:SimpleButton;
public var submit:SimpleButton;
public var messageDetail:TextField;
public var friendName:TextField;
public var friend2:MovieClip;
public var friend4:MovieClip;
public var friend1:MovieClip;
public var friend3:MovieClip;
public var friendMail:TextField;
public var nameDetail:TextField;
public var mailDetail:TextField;
}
}//package tyra_banksfinal_fla
Section 71
//MainTimeline (tyra_banksfinal_fla.MainTimeline)
package tyra_banksfinal_fla {
import flash.display.*;
import flash.geom.*;
import gs.*;
import flash.events.*;
import flash.filters.*;
import flash.text.*;
import gs.easing.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var girlDoll:String;
public var Cur;
public var prev:int;
public var toolName;
public var Prev;
public var nextBtn:SimpleButton;
public var j:int;
public var k:int;
public var screen:MovieClip;
public var i:int;
public var preloader:MovieClip;
public var ds:MovieClip;
public var resetBtn:SimpleButton;
public var contestMenu:ContextMenu;
public var percentage:Number;
public var popup:MovieClip;
public var logo_mc:SimpleButton;
public var girldollArray:Array;
public var sound_mc:MovieClip;
public var moreBtn:SimpleButton;
public var BitsLoaded:TextField;
public var queCount:uint;
public var againBtn:SimpleButton;
public var mailArray:Array;
public var ent:MovieClip;
public var buttonMsk:MovieClip;
public var kiba_mc:MovieClip;
public var bullet:backscore;
public var objMsk:MovieClip;
public var objects:MovieClip;
public var Objects:Array;
public var Names:Array;
public var brush:MovieClip;
public var site:MovieClip;
public var frontDesign:MovieClip;
public var doll:MovieClip;
public var more:SimpleButton;
public var again:SimpleButton;
public var Buttons:Array;
public var partOfdoll;
public var doneBtn:SimpleButton;
public var buttons:MovieClip;
public var animation:MovieClip;
public var email:SimpleButton;
public var bulletChannel:SoundChannel;
public var contextmenuItem:ContextMenuItem;
public var ball:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
public function colseclk(_arg1:MouseEvent):void{
popup.visible = false;
}
public function but_mod(_arg1:MouseEvent):void{
_arg1.currentTarget.buttonMode = true;
}
function frame2(){
stop();
Var.playback = true;
if (bulletChannel){
bulletChannel.stop();
};
frontDesign.playBtn.addEventListener(MouseEvent.CLICK, gamePage);
}
function frame4(){
stop();
ds.oo.text = Var.txt;
if (((this.loaderInfo.parameters.bg) && ((Var.playback == false)))){
ds.oo.text = this.loaderInfo.parameters.name;
girldollArray = this.loaderInfo.parameters.girldoll.split("");
again.addEventListener(MouseEvent.ROLL_OVER, over1);
again.addEventListener(MouseEvent.ROLL_OUT, outt);
again.addEventListener(MouseEvent.CLICK, again_clk);
email.addEventListener(MouseEvent.ROLL_OVER, over1);
email.addEventListener(MouseEvent.ROLL_OUT, outt);
more.addEventListener(MouseEvent.ROLL_OVER, over1);
more.addEventListener(MouseEvent.ROLL_OUT, outt);
more.addEventListener(MouseEvent.CLICK, link);
email.addEventListener(MouseEvent.CLICK, showMailBox);
doll.dress.gotoAndStop(Number(girldollArray[0].toString()));
doll.chain.gotoAndStop(Number(girldollArray[1].toString()));
doll.lip.gotoAndStop(Number(girldollArray[2].toString()));
doll.hair.gotoAndStop(Number(girldollArray[3].toString()));
doll.rouge.gotoAndStop(Number(girldollArray[4].toString()));
doll.eyeshade.gotoAndStop(Number(girldollArray[5].toString()));
doll.eyelens.gotoAndStop(Number(girldollArray[6].toString()));
doll.mascara.gotoAndStop(Number(girldollArray[7].toString()));
doll.face.gotoAndStop(Number(girldollArray[8].toString()));
doll.extra1.gotoAndStop(Number(girldollArray[9].toString()));
doll.extra2.gotoAndStop(Number(girldollArray[10].toString()));
doll.extra3.gotoAndStop(Number(girldollArray[11].toString()));
if (Number(girldollArray[12].toString()) != 1){
doll.lip.alpha = (Number(girldollArray[12].toString()) / 10);
} else {
doll.lip.alpha = Number(girldollArray[12].toString());
};
if (Number(girldollArray[13].toString()) != 1){
doll.rouge.alpha = (Number(girldollArray[13].toString()) / 10);
} else {
doll.rouge.alpha = Number(girldollArray[13].toString());
};
if (Number(girldollArray[14].toString()) != 1){
doll.eyeshade.alpha = (Number(girldollArray[14].toString()) / 10);
} else {
doll.eyeshade.alpha = Number(girldollArray[14].toString());
};
if (Number(girldollArray[15].toString()) != 1){
doll.mascara.alpha = (Number(girldollArray[15].toString()) / 10);
} else {
doll.mascara.alpha = Number(girldollArray[15].toString());
};
screen.outter.inner.gotoAndStop(Number(girldollArray[16].toString()));
} else {
ds.oo.text = Var.txt;
again.addEventListener(MouseEvent.ROLL_OVER, over1);
again.addEventListener(MouseEvent.ROLL_OUT, out1);
again.addEventListener(MouseEvent.CLICK, again_clk);
email.addEventListener(MouseEvent.ROLL_OVER, over1);
email.addEventListener(MouseEvent.ROLL_OUT, out1);
more.addEventListener(MouseEvent.ROLL_OVER, over1);
more.addEventListener(MouseEvent.ROLL_OUT, out1);
more.addEventListener(MouseEvent.CLICK, link);
email.addEventListener(MouseEvent.CLICK, showMailBox);
};
popup.close.addEventListener(MouseEvent.CLICK, colseclk);
popup.close.addEventListener(MouseEvent.CLICK, hideMailBox);
popup.addition.addEventListener(MouseEvent.CLICK, showExtra);
popup.submit.addEventListener(MouseEvent.CLICK, callMail);
queCount = 0;
mailArray = new Array(popup.friend1, popup.friend2, popup.friend3, popup.friend4);
girlDoll = ((((((((((((((((doll.dress.currentFrame.toString() + doll.chain.currentFrame.toString()) + doll.lip.currentFrame.toString()) + doll.hair.currentFrame.toString()) + doll.rouge.currentFrame.toString()) + doll.eyeshade.currentFrame.toString()) + doll.eyelens.currentFrame.toString()) + doll.mascara.currentFrame.toString()) + doll.face.currentFrame.toString()) + doll.extra1.currentFrame.toString()) + doll.extra2.currentFrame.toString()) + doll.extra3.currentFrame.toString()) + Math.round(doll.lip.alpha).toString()) + Math.round(doll.rouge.alpha).toString()) + Math.round(doll.eyeshade.alpha).toString()) + Math.round(doll.mascara.alpha).toString()) + screen.outter.inner.currentFrame.toString());
trace(("girlDoll=" + girlDoll));
if (loaderInfo.url.match("123peppy")){
logo_mc.visible = false;
more.visible = false;
} else {
logo_mc.addEventListener(MouseEvent.CLICK, link);
more.visible = true;
};
}
function frame3(){
MochiBot.track(this, "4dae3c4b");
stop();
Buttons = new Array();
Objects = new Array();
Names = new Array("dress", "chain", "lip", "hair", "rouge", "eyeshade", "eyelens", "mascara", "face", "extra");
TweenLite.to(frontDesign, 2, {x:(-(frontDesign.width) / 2), ease:Sine.easeOut});
init();
bullet = new backscore();
bulletChannel = bullet.play(0, int.MAX_VALUE);
sound_mc.addEventListener(MouseEvent.MOUSE_DOWN, soundFun);
sound_mc.buttonMode = true;
resetBtn.addEventListener(MouseEvent.MOUSE_DOWN, resetFun);
doneBtn.addEventListener(MouseEvent.MOUSE_DOWN, doneFun);
if (loaderInfo.url.match("123peppy")){
logo_mc.visible = false;
} else {
logo_mc.addEventListener(MouseEvent.CLICK, link1);
};
}
public function toolClk(_arg1:MouseEvent):void{
var _local2:*;
if (partOfdoll.name != "mascara"){
if (HitTest.complexHitTestObject(brush.hit, partOfdoll)){
_local2 = animation.getChildByName(partOfdoll.name);
_local2.gotoAndPlay(2);
partOfdoll.alpha = (partOfdoll.alpha + 0.3);
};
} else {
if (HitTest.complexHitTestObject(brush.hit, doll.eyeshade)){
partOfdoll.alpha = (partOfdoll.alpha + 0.3);
};
};
}
function frame1(){
stop();
contestMenu = new ContextMenu();
contestMenu.hideBuiltInItems();
contextmenuItem = new ContextMenuItem("www.123peppy.com");
contextmenuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, Site);
contestMenu.customItems.push(contextmenuItem);
this.contextMenu = contestMenu;
percentage = 0;
stage.addEventListener(Event.ENTER_FRAME, BeeMoving);
site.buttonMode = true;
site.addEventListener(MouseEvent.CLICK, sitefun);
}
public function out1(_arg1:MouseEvent):void{
TweenLite.to(_arg1.currentTarget, 0.6, {scaleX:1, scaleY:1, ease:Sine.easeOut});
}
public function doneFun(_arg1:MouseEvent):void{
var nextPage:Function;
var e = _arg1;
nextPage = function ():void{
nextFrame();
};
doneBtn.removeEventListener(MouseEvent.MOUSE_DOWN, doneFun);
resetBtn.removeEventListener(MouseEvent.MOUSE_DOWN, resetFun);
brush.Active = false;
Mouse.show();
objMsk.visible = true;
objects.mask = objMsk;
TweenLite.to(objects, 0.7, {x:((objMsk.x + (objMsk.width / 2)) + (objects.width / 2)), y:objMsk.y});
TweenLite.to(buttons, 0.7, {x:((buttonMsk.x + (buttonMsk.width / 2)) + (buttons.width / 2)), onComplete:nextPage});
}
public function palleteFun(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
_local2 = _arg1.currentTarget;
switch (_local2.str){
case "dress":
case "chain":
case "eyelens":
case "face":
partOfdoll = doll.getChildByName(_local2.str);
partOfdoll.gotoAndStop(_local2.name.substr(1));
break;
case "lip":
case "eyeshade":
case "rouge":
case "mascara":
brush.Active = true;
j = 0;
while (j < brush.numChildren) {
_local3 = brush.getChildAt(j);
_local3.visible = false;
j++;
};
toolName = brush.getChildByName(_local2.str);
toolName.visible = true;
if (toolName.name != "mascara"){
toolName.tips.gotoAndStop(_local2.name.substr(1));
};
partOfdoll = doll.getChildByName(_local2.str);
partOfdoll.alpha = 0;
partOfdoll.gotoAndStop(_local2.name.substr(1));
stage.addEventListener(MouseEvent.MOUSE_MOVE, toolMove);
stage.addEventListener(MouseEvent.MOUSE_DOWN, toolClk);
break;
case "hair":
animation.hair.gotoAndPlay(2);
doll.hair.Frame = _local2.name.substr(1);
stage.addEventListener(Event.ENTER_FRAME, hairAnimation);
break;
case "extra":
trace(_local2.Pstr.substr(0, 5));
if (_local2.Pstr.substr(0, 5) == "extra"){
trace("ind");
partOfdoll = doll.getChildByName(_local2.Pstr);
partOfdoll.gotoAndStop(_local2.name.substr(1));
} else {
screen.outter.inner.gotoAndStop(_local2.name.substr(1));
};
break;
};
}
public function makeFun(_arg1:MouseEvent):void{
var startAni:Function;
var e = _arg1;
startAni = function (){
var _local1:*;
var _local2:*;
TweenLite.to(buttons, 0.8, {x:buttonMsk.x, y:buttonMsk.y});
trace(buttons.x);
i = 0;
while (i < buttons.numChildren) {
Buttons[i] = buttons.getChildByName(Names[i]);
trace(("button Names :" + Buttons[i].name));
Buttons[i].no = i;
Buttons[i].buttonMode = true;
Buttons[i].addEventListener(MouseEvent.MOUSE_DOWN, butClk);
Buttons[i].addEventListener(MouseEvent.MOUSE_OUT, Var.Out);
Buttons[i].addEventListener(MouseEvent.MOUSE_OVER, Var.Over);
Objects[i] = objects.getChildByName(Names[i]);
trace(("pallete Names :" + Objects[i].name));
j = 0;
while (j < Objects[i].btn.numChildren) {
_local1 = Objects[i].btn.getChildAt(j);
if (Objects[i].name != "extra"){
_local1.str = Names[i];
_local1.buttonMode = true;
_local1.addEventListener(MouseEvent.MOUSE_DOWN, palleteFun);
} else {
if (Objects[i].name == "extra"){
k = 0;
while (k < _local1.numChildren) {
_local2 = _local1.getChildAt(k);
_local2.str = Names[i];
_local2.Pstr = _local1.name;
_local2.buttonMode = true;
_local2.addEventListener(MouseEvent.MOUSE_DOWN, palleteFun);
k++;
};
};
};
j++;
};
Objects[i].visible = false;
i++;
};
};
TweenLite.to(ent, 0.5, {y:580});
TweenLite.to(doll, 0.8, {y:doll.Y, onComplete:startAni});
nextBtn.visible = false;
resetBtn.visible = true;
doneBtn.visible = true;
nextBtn.removeEventListener(MouseEvent.MOUSE_DOWN, makeFun);
this.removeEventListener(Event.ENTER_FRAME, namesFun);
Var.txt = ent.ii.text;
}
public function showMailBox(_arg1:MouseEvent):void{
trace("email");
popup.visible = true;
email.mouseEnabled = false;
TweenLite.to(popup, 0.5, {y:279.8, ease:Back.easeOut});
popup.nameDetail.text = "";
popup.mailDetail.text = "";
popup.messageDetail.text = "";
popup.friendName.text = "";
popup.friendMail.text = "";
popup.friend1.friendMail.text = "";
popup.friend2.friendMail.text = "";
popup.friend3.friendMail.text = "";
popup.friend4.friendMail.text = "";
}
public function sitefun(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.123peppy.com");
navigateToURL(_local2, "_blank");
}
public function butClk(_arg1:MouseEvent):void{
var shows:Function;
var e = _arg1;
shows = function ():void{
if (Prev){
Objects[Prev.no].visible = false;
};
Objects[Cur.no].visible = true;
objects.x = ((objMsk.x - (objMsk.width / 2)) - (objects.width / 2));
TweenLite.to(objects, 0.4, {x:objMsk.x, y:objMsk.y});
Prev = Cur;
};
Cur = e.currentTarget;
if (!Prev){
shows();
} else {
brush.Active = false;
Mouse.show();
objMsk.visible = true;
objects.mask = objMsk;
TweenLite.to(objects, 0.4, {x:((objMsk.x + (objMsk.width / 2)) + (objects.width / 2)), y:objMsk.y, onComplete:shows});
};
}
public function outt(_arg1:MouseEvent):void{
TweenLite.to(_arg1.currentTarget, 0.6, {scaleX:1, scaleY:1, ease:Sine.easeOut});
}
public function hideMailBox(_arg1:MouseEvent):void{
var event = _arg1;
email.mouseEnabled = true;
TweenLite.to(popup, 0.5, {y:(600 + popup.height), ease:Back.easeIn});
var _local3 = popup;
with (_local3) {
friend1.visible = (friend2.visible = (friend3.visible = (friend4.visible = false)));
};
queCount = 0;
popup.nameDetail.text = "";
popup.mailDetail.text = "";
popup.messageDetail.text = "";
popup.friendName.text = "";
popup.friendMail.text = "";
popup.friend1.friendMail.text = "";
popup.friend2.friendMail.text = "";
popup.friend3.friendMail.text = "";
popup.friend4.friendMail.text = "";
}
public function init(){
brush.Active = false;
doll.hair.Frame = doll.hair.currentFrame;
objects.mask = objMsk;
buttons.mask = buttonMsk;
objects.y = objMsk.y;
objects.x = ((objMsk.x - (objMsk.width / 2)) - (objects.width / 2));
resetBtn.visible = false;
doneBtn.visible = false;
ent.ii.text = "";
ent.ii.text = "";
ent.ii.restrict = "A-Z0-9";
prev = -1;
doll.Y = doll.y;
doll.y = (doll.Y + doll.height);
screen.outter.inner.stop();
this.addEventListener(Event.ENTER_FRAME, namesFun);
nextBtn.addEventListener(MouseEvent.MOUSE_DOWN, makeFun);
}
public function namesFun(_arg1:Event):void{
if (ent.ii.text != ""){
nextBtn.visible = true;
} else {
nextBtn.visible = false;
};
}
public function showExtra(_arg1:MouseEvent):void{
if (queCount < 4){
mailArray[queCount].visible = true;
queCount++;
} else {
queCount = 0;
};
}
public function callMail(_arg1:MouseEvent):void{
var request:URLRequest;
var variables:URLVariables;
var event = _arg1;
email.mouseEnabled = true;
request = new URLRequest("http://facefun.123peppy.com/gamemail.php");
request.method = URLRequestMethod.POST;
variables = new URLVariables();
variables.nameDetail = popup.nameDetail.text;
variables.mailDetail = popup.mailDetail.text;
variables.messageDetail = popup.messageDetail.text;
variables.friendName = popup.friendName.text;
variables.friendMail = popup.friendMail.text;
variables.friendMail1 = popup.friend1.friendMail.text;
variables.friendMail2 = popup.friend2.friendMail.text;
variables.friendMail3 = popup.friend3.friendMail.text;
variables.friendMail4 = popup.friend4.friendMail.text;
variables.gamename = "Tyra Banks Makeover";
variables.girldoll = girlDoll;
switch (this.loaderInfo.parameters.lang){
case "fr":
variables.path = "http://www.123peppy.com/fr/play/tyra-banks-maquillage";
break;
case "de":
variables.path = "http://www.123peppy.com/de/play/tyra-banks-schminke";
break;
case "it":
variables.path = "http://www.123peppy.com/it/play/tyra-banks-trucco";
break;
case "pl":
variables.path = "http://www.123peppy.com/pl/play/tyra-banks-makijaż";
break;
case "ru":
variables.path = "http://www.123peppy.com/ru/play/макияж-тайра-бэнкс";
break;
case "tr":
variables.path = "http://www.123peppy.com/tr/play/tyra-banks-makyaj";
break;
case "sv":
variables.path = "http://www.123peppy.com/sv/play/tyra-banks-smink";
break;
case "pt-br":
variables.path = "http://www.123peppy.com/pt-br/play/maquiagem-tyra-banks";
break;
case "es":
variables.path = "http://www.123peppy.com/es/play/tyra-banks-maquillaje";
break;
case "nl":
variables.path = "http://www.123peppy.com/nl/play/tyra-banks-schminke";
break;
default:
variables.path = "http://www.123peppy.com/play/tyra-banks-makeup";
break;
};
variables.name = ds.oo.text;
request.data = variables;
sendToURL(request);
TweenLite.to(popup, 0.5, {y:(600 + popup.height), ease:Back.easeIn});
var _local3 = popup;
with (_local3) {
friend1.visible = (friend2.visible = (friend3.visible = (friend4.visible = false)));
};
queCount = 0;
}
public function BeeMoving(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local2 = (mouseX - ball.x);
_local3 = (mouseY - ball.y);
ball.x = (ball.x + (_local2 * 0.2));
ball.y = (ball.y + (_local3 * 0.2));
_local4 = loaderInfo.bytesLoaded;
_local5 = loaderInfo.bytesTotal;
percentage = Math.round(((_local4 / _local5) * 100));
BitsLoaded.text = (((Math.round((_local4 / 0x0400)) + "kBs /") + Math.round((_local5 / 0x0400))) + "kBs");
if (_local4 == _local5){
stage.removeEventListener(Event.ENTER_FRAME, BeeMoving);
if (this.loaderInfo.parameters.bg){
gotoAndStop(4);
} else {
gotoAndStop(2);
};
};
}
public function Site(_arg1:Event):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.123peppy.com");
navigateToURL(_local2, "_blank");
}
public function link1(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.123peppy.com");
navigateToURL(_local2, "_blank");
}
public function toolMove(_arg1:MouseEvent):void{
if (brush.Active){
Mouse.hide();
brush.x = mouseX;
brush.y = mouseY;
objects.mask = null;
objMsk.visible = false;
buttons.mask = null;
buttonMsk.visible = false;
if (((((((((((HitTest.complexHitTestObject(brush.hit, objects)) || (HitTest.complexHitTestObject(brush.hit, buttons)))) || (HitTest.complexHitTestObject(brush, nextBtn)))) || (HitTest.complexHitTestObject(brush, resetBtn)))) || (HitTest.complexHitTestObject(brush, logo_mc)))) || (HitTest.complexHitTestObject(brush, sound_mc)))){
Mouse.show();
brush.x = 1500;
};
} else {
Mouse.show();
objMsk.visible = true;
objects.mask = objMsk;
buttonMsk.visible = true;
buttons.mask = buttonMsk;
stage.removeEventListener(MouseEvent.MOUSE_MOVE, toolMove);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, toolClk);
};
}
public function gamePage(_arg1:MouseEvent):void{
nextFrame();
}
public function resetFun(_arg1:MouseEvent):void{
var _local2:*;
brush.Active = false;
Mouse.show();
objMsk.visible = true;
objects.mask = objMsk;
i = 0;
while (i < doll.numChildren) {
_local2 = doll.getChildAt(i);
_local2.gotoAndStop(1);
i++;
};
screen.outter.inner.gotoAndStop(1);
}
public function hairAnimation(_arg1:Event):void{
if (animation.hair.currentFrame == animation.hair.totalFrames){
doll.hair.gotoAndStop(doll.hair.Frame);
stage.removeEventListener(Event.ENTER_FRAME, hairAnimation);
};
}
public function again_clk(_arg1:MouseEvent):void{
gotoAndStop(2);
}
public function over1(_arg1:MouseEvent):void{
TweenLite.to(_arg1.currentTarget, 0.3, {scaleX:1.2, scaleY:1.2, ease:Sine.easeOut});
}
public function soundFun(_arg1:MouseEvent):void{
if (sound_mc.currentLabel == "off"){
sound_mc.gotoAndStop("on");
bulletChannel = bullet.play(0, int.MAX_VALUE);
} else {
if (sound_mc.currentLabel == "on"){
sound_mc.gotoAndStop("off");
if (bulletChannel){
bulletChannel.stop();
};
};
};
}
public function link(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.123peppy.com");
navigateToURL(_local2, "_blank");
}
}
}//package tyra_banksfinal_fla
Section 72
//mascarav_99 (tyra_banksfinal_fla.mascarav_99)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class mascarav_99 extends MovieClip {
public var btn:MovieClip;
}
}//package tyra_banksfinal_fla
Section 73
//nhg_271 (tyra_banksfinal_fla.nhg_271)
package tyra_banksfinal_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class nhg_271 extends MovieClip {
public function nhg_271(){
addFrameScript(0, frame1);
}
function frame1(){
buttonMode = true;
addEventListener(MouseEvent.CLICK, Links);
}
public function Links(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.girlgames4u.com");
navigateToURL(_local2, "_blank");
}
}
}//package tyra_banksfinal_fla
Section 74
//Objects_71 (tyra_banksfinal_fla.Objects_71)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Objects_71 extends MovieClip {
public var mascara:MovieClip;
public var extra:MovieClip;
public var dress:MovieClip;
public var face:MovieClip;
public var lip:MovieClip;
public var eyelens:MovieClip;
public var rouge:MovieClip;
public var eyeshade:MovieClip;
public var chain:MovieClip;
public var hair:MovieClip;
}
}//package tyra_banksfinal_fla
Section 75
//othermclogo123_261 (tyra_banksfinal_fla.othermclogo123_261)
package tyra_banksfinal_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class othermclogo123_261 extends MovieClip {
public function othermclogo123_261(){
addFrameScript(0, frame1);
}
function frame1(){
buttonMode = true;
addEventListener(MouseEvent.CLICK, Links);
}
public function Links(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.kibagames.com");
navigateToURL(_local2, "_blank");
}
}
}//package tyra_banksfinal_fla
Section 76
//othermcSymbol1_262 (tyra_banksfinal_fla.othermcSymbol1_262)
package tyra_banksfinal_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class othermcSymbol1_262 extends MovieClip {
public function othermcSymbol1_262(){
addFrameScript(0, frame1);
}
function frame1(){
buttonMode = true;
addEventListener(MouseEvent.CLICK, Links);
}
public function Links(_arg1:MouseEvent):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.didigames.com");
navigateToURL(_local2, "_blank");
}
}
}//package tyra_banksfinal_fla
Section 77
//peppydfgfsds_19 (tyra_banksfinal_fla.peppydfgfsds_19)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class peppydfgfsds_19 extends MovieClip {
public function peppydfgfsds_19(){
addFrameScript(46, frame47);
}
function frame47(){
stop();
}
}
}//package tyra_banksfinal_fla
Section 78
//sissorvcvc_235 (tyra_banksfinal_fla.sissorvcvc_235)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class sissorvcvc_235 extends MovieClip {
public function sissorvcvc_235(){
addFrameScript(0, frame1, 12, frame13);
}
function frame1(){
stop();
}
function frame13(){
stop();
}
}
}//package tyra_banksfinal_fla
Section 79
//soundon_253 (tyra_banksfinal_fla.soundon_253)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class soundon_253 extends MovieClip {
public function soundon_253(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package tyra_banksfinal_fla
Section 80
//Symbol10_138 (tyra_banksfinal_fla.Symbol10_138)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol10_138 extends MovieClip {
public var s2:MovieClip;
}
}//package tyra_banksfinal_fla
Section 81
//Symbol10copy_142 (tyra_banksfinal_fla.Symbol10copy_142)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol10copy_142 extends MovieClip {
public var s2:MovieClip;
}
}//package tyra_banksfinal_fla
Section 82
//Symbol10copy2_113 (tyra_banksfinal_fla.Symbol10copy2_113)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol10copy2_113 extends MovieClip {
public var s2:MovieClip;
}
}//package tyra_banksfinal_fla
Section 83
//Symbol10copy3_159 (tyra_banksfinal_fla.Symbol10copy3_159)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol10copy3_159 extends MovieClip {
public var s2:MovieClip;
}
}//package tyra_banksfinal_fla
Section 84
//Symbol10copy4_149 (tyra_banksfinal_fla.Symbol10copy4_149)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol10copy4_149 extends MovieClip {
public var s2:MovieClip;
}
}//package tyra_banksfinal_fla
Section 85
//Symbol10copy5_128 (tyra_banksfinal_fla.Symbol10copy5_128)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol10copy5_128 extends MovieClip {
public var s2:MovieClip;
}
}//package tyra_banksfinal_fla
Section 86
//Symbol11_139 (tyra_banksfinal_fla.Symbol11_139)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol11_139 extends MovieClip {
public var s3:MovieClip;
}
}//package tyra_banksfinal_fla
Section 87
//Symbol11copy_115 (tyra_banksfinal_fla.Symbol11copy_115)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol11copy_115 extends MovieClip {
public var s3:MovieClip;
}
}//package tyra_banksfinal_fla
Section 88
//Symbol11copy2_160 (tyra_banksfinal_fla.Symbol11copy2_160)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol11copy2_160 extends MovieClip {
public var s3:MovieClip;
}
}//package tyra_banksfinal_fla
Section 89
//Symbol11copy3_150 (tyra_banksfinal_fla.Symbol11copy3_150)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol11copy3_150 extends MovieClip {
public var s3:MovieClip;
}
}//package tyra_banksfinal_fla
Section 90
//Symbol11copy4_129 (tyra_banksfinal_fla.Symbol11copy4_129)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol11copy4_129 extends MovieClip {
public var s3:MovieClip;
}
}//package tyra_banksfinal_fla
Section 91
//Symbol12_140 (tyra_banksfinal_fla.Symbol12_140)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol12_140 extends MovieClip {
public var s4:MovieClip;
}
}//package tyra_banksfinal_fla
Section 92
//Symbol12copy_117 (tyra_banksfinal_fla.Symbol12copy_117)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol12copy_117 extends MovieClip {
public var s4:MovieClip;
}
}//package tyra_banksfinal_fla
Section 93
//Symbol12copy2_161 (tyra_banksfinal_fla.Symbol12copy2_161)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol12copy2_161 extends MovieClip {
public var s4:MovieClip;
}
}//package tyra_banksfinal_fla
Section 94
//Symbol12copy3_151 (tyra_banksfinal_fla.Symbol12copy3_151)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol12copy3_151 extends MovieClip {
public var s4:MovieClip;
}
}//package tyra_banksfinal_fla
Section 95
//Symbol12copy4_130 (tyra_banksfinal_fla.Symbol12copy4_130)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol12copy4_130 extends MovieClip {
public var s4:MovieClip;
}
}//package tyra_banksfinal_fla
Section 96
//Symbol13_141 (tyra_banksfinal_fla.Symbol13_141)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol13_141 extends MovieClip {
public var s1:MovieClip;
}
}//package tyra_banksfinal_fla
Section 97
//Symbol13copy_119 (tyra_banksfinal_fla.Symbol13copy_119)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol13copy_119 extends MovieClip {
public var s1:MovieClip;
}
}//package tyra_banksfinal_fla
Section 98
//Symbol13copy2_162 (tyra_banksfinal_fla.Symbol13copy2_162)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol13copy2_162 extends MovieClip {
public var s1:MovieClip;
}
}//package tyra_banksfinal_fla
Section 99
//Symbol13copy3_152 (tyra_banksfinal_fla.Symbol13copy3_152)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol13copy3_152 extends MovieClip {
public var s1:MovieClip;
}
}//package tyra_banksfinal_fla
Section 100
//Symbol13copy4_131 (tyra_banksfinal_fla.Symbol13copy4_131)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol13copy4_131 extends MovieClip {
public var s1:MovieClip;
}
}//package tyra_banksfinal_fla
Section 101
//Symbol1copy_22 (tyra_banksfinal_fla.Symbol1copy_22)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol1copy_22 extends MovieClip {
public var playBtn:SimpleButton;
}
}//package tyra_banksfinal_fla
Section 102
//Symbol1copy2bcvb_257 (tyra_banksfinal_fla.Symbol1copy2bcvb_257)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol1copy2bcvb_257 extends MovieClip {
public function Symbol1copy2bcvb_257(){
addFrameScript(0, frame1, 24, frame25);
}
function frame1(){
gotoAndPlay(Math.round(((Math.random() * Math.random()) * 50)));
}
function frame25(){
gotoAndPlay(Math.round(((Math.random() * Math.random()) * 50)));
}
}
}//package tyra_banksfinal_fla
Section 103
//Symbol1copy3bcvbcb_258 (tyra_banksfinal_fla.Symbol1copy3bcvbcb_258)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol1copy3bcvbcb_258 extends MovieClip {
public function Symbol1copy3bcvbcb_258(){
addFrameScript(0, frame1, 25, frame26);
}
function frame1(){
gotoAndPlay(Math.round(((Math.random() * Math.random()) * 50)));
}
function frame26(){
gotoAndPlay(Math.round(((Math.random() * Math.random()) * 50)));
}
}
}//package tyra_banksfinal_fla
Section 104
//Symbol1copybvcb_256 (tyra_banksfinal_fla.Symbol1copybvcb_256)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol1copybvcb_256 extends MovieClip {
public function Symbol1copybvcb_256(){
addFrameScript(0, frame1, 34, frame35);
}
function frame1(){
gotoAndPlay(Math.round(((Math.random() * Math.random()) * 50)));
}
function frame35(){
gotoAndPlay(Math.round(((Math.random() * Math.random()) * 50)));
}
}
}//package tyra_banksfinal_fla
Section 105
//Symbol1xcvzxcv_255 (tyra_banksfinal_fla.Symbol1xcvzxcv_255)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol1xcvzxcv_255 extends MovieClip {
public function Symbol1xcvzxcv_255(){
addFrameScript(0, frame1, 26, frame27);
}
function frame1(){
gotoAndPlay(Math.round(((Math.random() * Math.random()) * 50)));
}
function frame27(){
gotoAndPlay(Math.round((((Math.random() * Math.random()) * Math.random()) * 20)));
}
}
}//package tyra_banksfinal_fla
Section 106
//Symbol29_79 (tyra_banksfinal_fla.Symbol29_79)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol29_79 extends MovieClip {
public var f4:MovieClip;
public var f1:MovieClip;
public var f5:MovieClip;
public var f3:MovieClip;
public var f2:MovieClip;
}
}//package tyra_banksfinal_fla
Section 107
//Symbol30_92 (tyra_banksfinal_fla.Symbol30_92)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol30_92 extends MovieClip {
public var f4:MovieClip;
public var f1:MovieClip;
public var f5:MovieClip;
public var f3:MovieClip;
public var f2:MovieClip;
}
}//package tyra_banksfinal_fla
Section 108
//Symbol31_98 (tyra_banksfinal_fla.Symbol31_98)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol31_98 extends MovieClip {
public var f1:MovieClip;
public var f3:MovieClip;
public var f2:MovieClip;
}
}//package tyra_banksfinal_fla
Section 109
//Symbol32_103 (tyra_banksfinal_fla.Symbol32_103)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol32_103 extends MovieClip {
public var f1:MovieClip;
public var f2:MovieClip;
}
}//package tyra_banksfinal_fla
Section 110
//Symbol33_109 (tyra_banksfinal_fla.Symbol33_109)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol33_109 extends MovieClip {
public var f6:MovieClip;
public var f4:MovieClip;
public var f1:MovieClip;
public var f5:MovieClip;
public var f3:MovieClip;
public var f2:MovieClip;
}
}//package tyra_banksfinal_fla
Section 111
//Symbol34_136 (tyra_banksfinal_fla.Symbol34_136)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol34_136 extends MovieClip {
public var f6:MovieClip;
public var f4:MovieClip;
public var f1:MovieClip;
public var f5:MovieClip;
public var f3:MovieClip;
public var f2:MovieClip;
}
}//package tyra_banksfinal_fla
Section 112
//Symbol35_147 (tyra_banksfinal_fla.Symbol35_147)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol35_147 extends MovieClip {
public var f6:MovieClip;
public var f4:MovieClip;
public var f1:MovieClip;
public var f5:MovieClip;
public var f3:MovieClip;
public var f2:MovieClip;
}
}//package tyra_banksfinal_fla
Section 113
//Symbol37_177 (tyra_banksfinal_fla.Symbol37_177)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol37_177 extends MovieClip {
public var f1:MovieClip;
public var f3:MovieClip;
public var f2:MovieClip;
}
}//package tyra_banksfinal_fla
Section 114
//Symbol38_179 (tyra_banksfinal_fla.Symbol38_179)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol38_179 extends MovieClip {
public var f4:MovieClip;
public var f1:MovieClip;
public var f5:MovieClip;
public var f3:MovieClip;
public var f2:MovieClip;
}
}//package tyra_banksfinal_fla
Section 115
//Symbol39_180 (tyra_banksfinal_fla.Symbol39_180)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol39_180 extends MovieClip {
public var f1:MovieClip;
public var f3:MovieClip;
public var f2:MovieClip;
}
}//package tyra_banksfinal_fla
Section 116
//Symbol4_93 (tyra_banksfinal_fla.Symbol4_93)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol4_93 extends MovieClip {
public var btn:MovieClip;
}
}//package tyra_banksfinal_fla
Section 117
//Symbol40_181 (tyra_banksfinal_fla.Symbol40_181)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol40_181 extends MovieClip {
public var f1:MovieClip;
public var f3:MovieClip;
public var f2:MovieClip;
}
}//package tyra_banksfinal_fla
Section 118
//Symbol41_176 (tyra_banksfinal_fla.Symbol41_176)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol41_176 extends MovieClip {
public var extra2:MovieClip;
public var extra3:MovieClip;
public var extra1:MovieClip;
public var bg:MovieClip;
}
}//package tyra_banksfinal_fla
Section 119
//Symbol42_252 (tyra_banksfinal_fla.Symbol42_252)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol42_252 extends MovieClip {
public var sndon:MovieClip;
public var sndoff:MovieClip;
public function Symbol42_252(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package tyra_banksfinal_fla
Section 120
//Symbol43_287 (tyra_banksfinal_fla.Symbol43_287)
package tyra_banksfinal_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol43_287 extends MovieClip {
public var oo:TextField;
}
}//package tyra_banksfinal_fla
Section 121
//Symbol5_132 (tyra_banksfinal_fla.Symbol5_132)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol5_132 extends MovieClip {
public var btn:MovieClip;
}
}//package tyra_banksfinal_fla
Section 122
//Symbol58tool_243 (tyra_banksfinal_fla.Symbol58tool_243)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol58tool_243 extends MovieClip {
public var tips:MovieClip;
}
}//package tyra_banksfinal_fla
Section 123
//Symbol6_143 (tyra_banksfinal_fla.Symbol6_143)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol6_143 extends MovieClip {
public var btn:MovieClip;
}
}//package tyra_banksfinal_fla
Section 124
//Symbol64star_231 (tyra_banksfinal_fla.Symbol64star_231)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol64star_231 extends MovieClip {
public var lip:MovieClip;
public var rouge:MovieClip;
public var eyeshade:MovieClip;
public var hair:MovieClip;
}
}//package tyra_banksfinal_fla
Section 125
//Symbol7_163 (tyra_banksfinal_fla.Symbol7_163)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol7_163 extends MovieClip {
public var btn:MovieClip;
}
}//package tyra_banksfinal_fla
Section 126
//Symbol83_238 (tyra_banksfinal_fla.Symbol83_238)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol83_238 extends MovieClip {
public var tips:MovieClip;
}
}//package tyra_banksfinal_fla
Section 127
//Symbol84_241 (tyra_banksfinal_fla.Symbol84_241)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol84_241 extends MovieClip {
public var tips:MovieClip;
}
}//package tyra_banksfinal_fla
Section 128
//Symbol85_242 (tyra_banksfinal_fla.Symbol85_242)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol85_242 extends MovieClip {
public function Symbol85_242(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package tyra_banksfinal_fla
Section 129
//Symbol86_237 (tyra_banksfinal_fla.Symbol86_237)
package tyra_banksfinal_fla {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import flash.filters.*;
import flash.text.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Symbol86_237 extends MovieClip {
public var mascara:MovieClip;
public var i:int;
public var lip:MovieClip;
public var mc;
public var hit:MovieClip;
public var rouge:MovieClip;
public var eyeshade:MovieClip;
public function Symbol86_237(){
addFrameScript(0, frame1);
}
function frame1(){
i = 0;
while (i < numChildren) {
mc = getChildAt(i);
mc.visible = false;
i++;
};
}
}
}//package tyra_banksfinal_fla
Section 130
//Symbol9_137 (tyra_banksfinal_fla.Symbol9_137)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol9_137 extends MovieClip {
public var s5:MovieClip;
}
}//package tyra_banksfinal_fla
Section 131
//Symbol9copy_121 (tyra_banksfinal_fla.Symbol9copy_121)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol9copy_121 extends MovieClip {
public var s5:MovieClip;
}
}//package tyra_banksfinal_fla
Section 132
//Symbol9copy2_110 (tyra_banksfinal_fla.Symbol9copy2_110)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol9copy2_110 extends MovieClip {
public var s5:MovieClip;
}
}//package tyra_banksfinal_fla
Section 133
//Symbol9copy3_158 (tyra_banksfinal_fla.Symbol9copy3_158)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol9copy3_158 extends MovieClip {
public var s5:MovieClip;
}
}//package tyra_banksfinal_fla
Section 134
//Symbol9copy4_148 (tyra_banksfinal_fla.Symbol9copy4_148)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol9copy4_148 extends MovieClip {
public var s5:MovieClip;
}
}//package tyra_banksfinal_fla
Section 135
//Symbol9copy5_127 (tyra_banksfinal_fla.Symbol9copy5_127)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Symbol9copy5_127 extends MovieClip {
public var s5:MovieClip;
}
}//package tyra_banksfinal_fla
Section 136
//Timeline_239 (tyra_banksfinal_fla.Timeline_239)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Timeline_239 extends MovieClip {
public function Timeline_239(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package tyra_banksfinal_fla
Section 137
//Timeline_240 (tyra_banksfinal_fla.Timeline_240)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class Timeline_240 extends MovieClip {
public function Timeline_240(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndPlay(Math.round((Math.random() * 10)));
}
}
}//package tyra_banksfinal_fla
Section 138
//Timeline_277 (tyra_banksfinal_fla.Timeline_277)
package tyra_banksfinal_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_277 extends MovieClip {
public var oo:TextField;
}
}//package tyra_banksfinal_fla
Section 139
//tyra90890890890890_44 (tyra_banksfinal_fla.tyra90890890890890_44)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class tyra90890890890890_44 extends MovieClip {
public function tyra90890890890890_44(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package tyra_banksfinal_fla
Section 140
//tyrachain_34 (tyra_banksfinal_fla.tyrachain_34)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class tyrachain_34 extends MovieClip {
public function tyrachain_34(){
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package tyra_banksfinal_fla
Section 141
//tyradoll_211 (tyra_banksfinal_fla.tyradoll_211)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class tyradoll_211 extends MovieClip {
public var mascara:MovieClip;
public var extra2:MovieClip;
public var extra3:MovieClip;
public var extra1:MovieClip;
public var dress:MovieClip;
public var face:MovieClip;
public var lip:MovieClip;
public var eyelens:MovieClip;
public var rouge:MovieClip;
public var eyeshade:MovieClip;
public var chain:MovieClip;
public var hair:MovieClip;
}
}//package tyra_banksfinal_fla
Section 142
//tyradoll_39 (tyra_banksfinal_fla.tyradoll_39)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class tyradoll_39 extends MovieClip {
public function tyradoll_39(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndPlay(Math.round((Math.random() * 10)));
}
}
}//package tyra_banksfinal_fla
Section 143
//tyradollchange_31 (tyra_banksfinal_fla.tyradollchange_31)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class tyradollchange_31 extends MovieClip {
public function tyradollchange_31(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package tyra_banksfinal_fla
Section 144
//tyradollcopy_30 (tyra_banksfinal_fla.tyradollcopy_30)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class tyradollcopy_30 extends MovieClip {
public var mascara:MovieClip;
public var extra2:MovieClip;
public var extra3:MovieClip;
public var extra1:MovieClip;
public var dress:MovieClip;
public var face:MovieClip;
public var lip:MovieClip;
public var eyelens:MovieClip;
public var rouge:MovieClip;
public var eyeshade:MovieClip;
public var chain:MovieClip;
public var hair:MovieClip;
}
}//package tyra_banksfinal_fla
Section 145
//tyradressan_36 (tyra_banksfinal_fla.tyradressan_36)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class tyradressan_36 extends MovieClip {
public function tyradressan_36(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package tyra_banksfinal_fla
Section 146
//tyraeyeball_52 (tyra_banksfinal_fla.tyraeyeball_52)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class tyraeyeball_52 extends MovieClip {
public function tyraeyeball_52(){
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package tyra_banksfinal_fla
Section 147
//tyrahairan_67 (tyra_banksfinal_fla.tyrahairan_67)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class tyrahairan_67 extends MovieClip {
public function tyrahairan_67(){
addFrameScript(0, frame1, 3, frame4);
}
function frame1(){
stop();
}
function frame4(){
gotoAndStop(1);
}
}
}//package tyra_banksfinal_fla
Section 148
//tyrahaydenlipppp_54 (tyra_banksfinal_fla.tyrahaydenlipppp_54)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class tyrahaydenlipppp_54 extends MovieClip {
public function tyrahaydenlipppp_54(){
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package tyra_banksfinal_fla
Section 149
//tyrahaydenScarlettcvbcvbZScdGFKSFSxcbdollbbbbselena_56 (tyra_banksfinal_fla.tyrahaydenScarlettcvbcvbZScdGFKSFSxcbdollbbbbselena_56)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class tyrahaydenScarlettcvbcvbZScdGFKSFSxcbdollbbbbselena_56 extends MovieClip {
public function tyrahaydenScarlettcvbcvbZScdGFKSFSxcbdollbbbbselena_56(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package tyra_banksfinal_fla
Section 150
//tyrahaydenScarlettcvbcvbZScdGFKSFSxcbdollbbbbselenacopy_61 (tyra_banksfinal_fla.tyrahaydenScarlettcvbcvbZScdGFKSFSxcbdollbbbbselenacopy_61)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class tyrahaydenScarlettcvbcvbZScdGFKSFSxcbdollbbbbselenacopy_61 extends MovieClip {
public function tyrahaydenScarlettcvbcvbZScdGFKSFSxcbdollbbbbselenacopy_61(){
addFrameScript(0, frame1, 3, frame4);
}
function frame1(){
stop();
}
function frame4(){
gotoAndStop(1);
}
}
}//package tyra_banksfinal_fla
Section 151
//tyrahaydenScarlettcvbcvbZScdGFKSFSxcbdollSymbol18_59 (tyra_banksfinal_fla.tyrahaydenScarlettcvbcvbZScdGFKSFSxcbdollSymbol18_59)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class tyrahaydenScarlettcvbcvbZScdGFKSFSxcbdollSymbol18_59 extends MovieClip {
public function tyrahaydenScarlettcvbcvbZScdGFKSFSxcbdollSymbol18_59(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndPlay(Math.round((Math.random() * 10)));
}
}
}//package tyra_banksfinal_fla
Section 152
//tyrahaydenScarlettcvbcvbZScdGFKSFSxcbdollSymbol23_62 (tyra_banksfinal_fla.tyrahaydenScarlettcvbcvbZScdGFKSFSxcbdollSymbol23_62)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class tyrahaydenScarlettcvbcvbZScdGFKSFSxcbdollSymbol23_62 extends MovieClip {
public function tyrahaydenScarlettcvbcvbZScdGFKSFSxcbdollSymbol23_62(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package tyra_banksfinal_fla
Section 153
//tyravcvcvcvcvcv_37 (tyra_banksfinal_fla.tyravcvcvcvcvcv_37)
package tyra_banksfinal_fla {
import flash.display.*;
public dynamic class tyravcvcvcvcvcv_37 extends MovieClip {
public function tyravcvcvcvcvcv_37(){
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
gotoAndStop(1);
}
function frame1(){
stop();
stop();
}
}
}//package tyra_banksfinal_fla
Section 154
//YHKHGVK_212 (tyra_banksfinal_fla.YHKHGVK_212)
package tyra_banksfinal_fla {
import flash.display.*;
import flash.text.*;
public dynamic class YHKHGVK_212 extends MovieClip {
public var ii:TextField;
}
}//package tyra_banksfinal_fla
Section 155
//backscore (backscore)
package {
import flash.media.*;
public dynamic class backscore extends Sound {
}
}//package
Section 156
//fill_image (fill_image)
package {
import flash.display.*;
public dynamic class fill_image extends MovieClip {
}
}//package
Section 157
//filter_for_image (filter_for_image)
package {
import flash.display.*;
public dynamic class filter_for_image extends MovieClip {
}
}//package
Section 158
//FlashEff2 (FlashEff2)
package {
import flash.display.*;
import flash.geom.*;
import flash.events.*;
import com.jumpeye.core.*;
import flash.text.*;
import com.jumpeye.flashEff2.core.interfaces.*;
import com.jumpeye.flashEff2.text.*;
import com.jumpeye.Events.*;
import flash.utils.*;
import com.jumpeye.flashEff2.text.defaultFade.*;
import flash.net.*;
public dynamic class FlashEff2 extends JUIComponent {
private var _hideTransitionName:String;
protected var tepA:IFlashEffCommand;
protected var tepF:IFlashEffFilter;
protected var tepS:FeTDefaultFade;
protected var _initialTargetTransform:Transform;
protected var isButtonEffectApplyed:Boolean;// = false
private var _useSwapInsteadHide:Boolean;// = false
protected var transitionType:String;// = "show"
protected var hitAreaClip:Sprite;
private var _isTargetVisibleAtEnd:Boolean;// = false
private var _firstLevelOwner:Sprite;
private var _showTransitionStartCommands:Array;
private var _ideDataHolder:String;// = ""
private var _drawAfterFilters:Boolean;// = true
protected var showTimer:Timer;
private var _hideTransitionEndCommands:Array;
private var _highestOwner:Sprite;
private var _hideTransitionStartCommands:Array;
private var _textField:TextField;
protected var nextTarget:DisplayObject;
private var _showTransitionName:String;
protected var swapPattern:IFlashEffSymbolText;
protected var lastTransitionPattern:IFlashEffSymbolText;
protected var eventsDispatched:Number;// = 0
private var _swapTransitionName:String;
private var _swapTarget:DisplayObject;
private var __showDelay:Number;// = 0
protected var swapFlashEff2:FlashEff2;
private var _partialTable:FeTable;
private var _absWords:Array;
private var _target:DisplayObject;
private var __partialPattern:String;// = "com.jumpeye.flashEff2.text.defaultFade.FeTDefaultFade"
private var __hideAutoPlay:Boolean;// = true
protected var partialPattern:IFlashEffSymbol;
protected var maxEndEvents:Number;// = 0
private var __targetInstanceName:String;// = ""
protected var forceHide:Boolean;// = false
protected var bDBTO:Sprite;
private var _buttonOwner:Sprite;
protected var _partialTextOwnerClip:Sprite;
protected var _buttonEffectName:String;
protected var isDragOut:Boolean;// = false
private var __xmlPath:String;// = ""
private var _rollOutCommands:Array;
private var _absCustom:Array;
private var _rollOverCommands:Array;
private var _absLines:Array;
protected var setNewTarget:Boolean;// = false
private var __swapTargetVisibility:Boolean;// = false
protected var filterAsoc:Array;
private var _doubleClickCommands:Array;
private var _textTable:FeTable;
protected var hideTimer:Timer;
protected var _isTransitioning:Boolean;// = false
private var __xmlString:String;// = ""
protected var _buttonEffect:IFlashEffButtonEffect;
private var __swapType:String;// = "hideAndShow"
protected var _xml:XML;
protected var aDBTO:Sprite;
private var _isMouseTriggered:Boolean;// = true
protected var buttonTarget:Sprite;
protected var _cTT:String;// = ""
protected var partialInterval:Number;
private var _releaseCommands:Array;
private var _showTransitionEndCommands:Array;
private var _absMatrix:Array;
private var __targetVisibility:Boolean;// = true
private var __showAutoPlay:Boolean;// = true
private var __hideDelay:Number;// = 2
private var _useHandCursor:Boolean;// = false
private var forceAutoPlay;// = null
private var _clearAfterHide:Boolean;// = true
protected var aDBT:Sprite;
private var __swapTargetInstanceName:String;// = ""
protected var firstInDepth:Sprite;
private var __swapDelay:Number;// = 0
protected var showPattern:IFlashEffSymbolText;
private var _isFree:Boolean;// = true
private var _filterList:Array;
protected var drawCalled:Boolean;// = false
private var _absChars:Array;
private var _pressCommands:Array;
protected var hidePattern:IFlashEffSymbolText;
private var _targetOwner:MovieClip;
protected var tTS:Sprite;
protected var bDBT:Sprite;
protected var _textOwnerClip:Sprite;
public static const SWAP_TYPE_SHOW = "show";
public static const SWAP_TYPE_HIDE_AND_SHOW = "hideAndShow";
public static const SWAP_TYPE_HIDE = "hide";
private static var targetPaths:Array;
protected static var REMOVED_FROM_FLASHEFF:Boolean = false;
protected static var eventTypeAsoc:Array = [];
public function FlashEff2(){
init();
}
protected function wordsSplit(_arg1:String, _arg2:uint):Array{
var _local9:Rectangle;
var _local10:Boolean;
var _local11:uint;
var _local12:*;
var _local3:Array = _arg1.split(" ");
var _local4:Array = [];
var _local5:uint = _local3.length;
var _local6:uint;
var _local7:uint;
var _local8:* = 0;
while (_local8 < _local5) {
_local9 = this.textField.getCharBoundaries(((_arg2 + _local6) + _local8));
_local10 = false;
if (_local9 == null){
_local10 = true;
_local11 = _local3[_local8].length;
if (_local11 > 0){
_local12 = 0;
while (_local12 < _local11) {
_local9 = this.textField.getCharBoundaries((((_arg2 + _local6) + _local8) + _local12));
if (_local9 != null){
_local10 = false;
break;
};
_local12++;
};
};
};
if (_local10 == false){
_local4[_local7] = {id:((_arg2 + _local8) + _local6), bounds:_local9, text:_local3[_local8]};
_local6 = (_local6 + String(_local4[_local7].text).length);
_local7++;
} else {
_local6 = (_local6 + _local3[_local8].length);
};
_local8++;
};
return (_local4);
}
public function set partialPatternName(_arg1:String):void{
var patternReference:Class;
var arg = _arg1;
if (arg != ""){
try {
patternReference = (getDefinitionByName(arg) as Class);
} catch(e:ReferenceError) {
throw ((("FLASHEFF2 ERROR: The Pattern:" + arg) + " is unavailable."));
};
};
if (patternReference != null){
this.partialPattern = new patternReference(this);
this.partialPattern.target = this._partialTextOwnerClip;
};
__partialPattern = arg;
}
public function get drawAfterFilters():Boolean{
return (this._drawAfterFilters);
}
public function get swapTransitionName():String{
return (_swapTransitionName);
}
public function set swapTarget(_arg1:DisplayObject):void{
if (_arg1 != null){
this._swapTarget = _arg1;
_arg1.visible = this.swapTargetVisibility;
this._swapTransitionName = _arg1.name;
} else {
this._swapTarget = null;
this._swapTransitionName = "";
};
}
public function set xmlString(_arg1:String):void{
var _local2:XML;
if (_arg1 != ""){
this.__xmlString = _arg1;
_local2 = new XML(_arg1);
setProperties(_local2);
};
}
public function get currentTransitionType():String{
return (this._cTT);
}
public function set isMouseTriggered(_arg1:Boolean):void{
this._isMouseTriggered = _arg1;
}
public function removeButtonEffect():void{
if (this.buttonEffect != null){
this.buttonEffect.remove();
};
this.highestOwner.mouseChildren = true;
this.removeButtonEvents();
this.isButtonEffectApplyed = false;
}
public function removeAllCommands():void{
var _local1:*;
for (_local1 in _slot1.eventTypeAsoc) {
this.removeAllCommandsByEventType(_local1);
};
}
public function removeCommand(_arg1:IFlashEffCommand):void{
var _local2:*;
var _local3:Array;
var _local4:uint;
for (_local2 in _slot1.eventTypeAsoc) {
_local3 = this[(("_" + _local2) + "Commands")];
if (_local3 != null){
_local4 = 0;
while (_local4 < _local3.length) {
if (_local3[_local4] == _arg1){
_local3.splice(_local4, 1);
};
_local4++;
};
if (_slot1.eventTypeAsoc[_local2] != ""){
this.setCommands(_local2);
};
};
};
}
public function buttonPress():void{
pressButtonHandler(null, true);
}
public function get showTransition():IFlashEffSymbolText{
return (this.showPattern);
}
protected function pressButtonHandler(_arg1:MouseEvent=null, _arg2:Boolean=false):void{
this.isDragOut = true;
if ((((_arg2 == true)) || ((this.isMouseTriggered == true)))){
if (this._isTransitioning == false){
if (this.buttonEffect != null){
this.buttonEffect.buttonPress();
};
};
};
if (_arg1 != null){
this.dispatchEvent(new FLASHEFFEvents(FLASHEFFEvents.MOUSE_DOWN));
};
}
public function get filterList():Array{
return (this._filterList);
}
protected function runCommands(_arg1:Array):void{
var _local2:Number;
var _local3:*;
if (_arg1 != null){
_local2 = _arg1.length;
_local3 = 0;
while (_local3 < _local2) {
IFlashEffCommand(_arg1[_local3]).run();
_local3++;
};
};
}
public function get hideTransition():IFlashEffSymbolText{
return (this.hidePattern);
}
public function buttonRollOver():void{
rollOverButtonHandler(null, true);
}
protected function customSplit(_arg1:String, _arg2:uint, _arg3):Array{
var _local9:String;
var _local10:Rectangle;
var _local11:Boolean;
var _local12:uint;
var _local13:*;
var _local4:Array = [];
var _local5:uint = _arg3.length;
var _local6:uint;
var _local7:uint;
var _local8:* = 0;
while (_local8 < _local5) {
_local9 = this.textField.text.substr((_arg2 + _local6), _arg3[_local8]);
_local10 = this.textField.getCharBoundaries((_arg2 + _local6));
_local11 = false;
if (_local10 == null){
_local11 = true;
_local12 = _local9.length;
if (_local12 > 0){
_local13 = 0;
while (_local13 < _local12) {
_local10 = this.textField.getCharBoundaries(((_arg2 + _local6) + _local13));
if (_local10 != null){
_local11 = false;
break;
};
_local13++;
};
};
};
if (_local11 == false){
_local4[_local7] = {id:(_arg2 + _local6), bounds:_local10, text:_local9};
_local6 = (_local6 + _arg3[_local8]);
_local7++;
} else {
_local6 = (_local6 + _arg3[_local8]);
};
_local8++;
};
return (_local4);
}
protected function rollOverButtonHandler(_arg1:MouseEvent=null, _arg2:Boolean=false):void{
if ((((_arg2 == true)) || ((this.isMouseTriggered == true)))){
if (this._isTransitioning == false){
if (this.buttonEffect != null){
this.buttonEffect.buttonRollOver();
};
};
};
if (_arg1 != null){
this.dispatchEvent(new FLASHEFFEvents(FLASHEFFEvents.ROLL_OVER));
};
}
public function addFilterByName(_arg1:String, _arg2:Object=null):IFlashEffFilter{
var filterReference:Class;
var i:*;
var filterName = _arg1;
var initObj = _arg2;
try {
filterReference = (getDefinitionByName(filterName) as Class);
} catch(e:ReferenceError) {
trace((("FLASHEFF2 ERROR: The filter pattern '" + filterName) + "' is missing from library."));
return (null);
};
var filter:IFlashEffFilter = IFlashEffFilter(new filterReference(this));
if (initObj != null){
for (i in initObj) {
filter[i] = initObj[i];
};
};
this.addFilter(filter);
return (filter);
}
public function setXML(_arg1):void{
this.setProperties(_arg1);
}
protected function getFreePattern(_arg1:Object):void{
var _local2:String;
var _local3:XML;
var _local4:XMLList;
var _local5:String;
var _local6:Class;
var _local7:*;
var _local8:Number;
var _local9:*;
var _local10:XML;
var _local11:String;
if (_arg1 != null){
_local2 = "tweenType easeType tweenDuration target component";
_local3 = describeType(_arg1);
_local4 = _local3.elements("accessor");
_local5 = String(_local3.@name);
_local6 = (getDefinitionByName(_local5) as Class);
_local7 = new (_local6);
_local8 = _local4.length();
_local9 = 0;
while (_local9 < _local8) {
_local10 = _local4[_local9];
if (String(_local10.@declaredBy).substr(0, 21) == "com.jumpeye.flashEff2"){
if (_local10.@access == "readwrite"){
_local11 = _local10.@name;
if (_local2.indexOf(_local11) == -1){
_arg1[_local11] = _local7[_local11];
};
};
};
_local9++;
};
};
}
public function get firstLevelOwner():Sprite{
return (this._firstLevelOwner);
}
override public function dispatchEvent(_arg1:Event):Boolean{
var _local3:FLASHEFFEvents;
var _local4:Boolean;
var _local5:Point;
var _local6:DisplayObject;
var _local7:Timer;
var _local8:DisplayObject;
var _local9:Boolean;
var _local10:Boolean;
var _local11:Boolean;
var _local12:*;
var _local2:Boolean;
if ((((_arg1.type == FLASHEFFEvents.TRANSITION_END)) || ((_arg1.type == "defaultPatternFinish")))){
(_arg1 as FLASHEFFEvents).currentTransitionType = this.currentTransitionType;
eventsDispatched++;
if (eventsDispatched == maxEndEvents){
this.runCommands(this[(("_" + this.currentTransitionType) + "TransitionEndCommands")]);
if (isTargetVisibleAtEnd == true){
if (this.transitionType == "show"){
this.target.visible = true;
};
this._textOwnerClip.visible = false;
this._partialTextOwnerClip.visible = false;
};
_local2 = true;
_isTransitioning = false;
if (this.transitionType == "show"){
if (isButtonEffectApplyed == true){
_local5 = new Point(this.mouseX, this.mouseY);
_local5 = this.localToGlobal(_local5);
if (this.highestOwner.hitTestPoint(_local5.x, _local5.y, true)){
this.rollOverButtonHandler(null, true);
};
};
};
_local3 = new FLASHEFFEvents(FLASHEFFEvents.TRANSITION_END);
_local3.currentTransitionType = this.currentTransitionType;
_local4 = false;
if (this.transitionType == "show"){
if (this.hidePattern != null){
if ((((((this.hideAutoPlay == true)) && (!((this.forceAutoPlay == false))))) || ((this.forceAutoPlay == true)))){
this.hideTimer.reset();
this.hideTimer.start();
this.forceAutoPlay = null;
this.hideTimer.addEventListener(TimerEvent.TIMER, this.hideCaller);
};
};
} else {
if (this.setNewTarget == true){
this.hideTimer.stop();
this.showTimer.stop();
_local6 = this.target;
this.target = this.nextTarget;
if (_local6 != null){
_local6.visible = false;
};
this.setNewTarget = false;
this.nextTarget = null;
_local4 = super.dispatchEvent(_local3);
_local7 = new Timer(this.showDelay, 1);
if (this.showDelay > 0){
_local7.start();
_local7.addEventListener(TimerEvent.TIMER, this.showCallerWeak);
} else {
this.show(false);
};
return (_local4);
};
if (this._cTT == "swap"){
_local8 = this.target;
this.removeSwapFlashEff2();
this.target = this.swapTarget;
this.target.visible = true;
this.swapTarget = null;
_local8.visible = this.targetVisibility;
_local9 = this.hideAutoPlay;
_local10 = this.showAutoPlay;
_local11 = this.targetVisibility;
this.__hideAutoPlay = false;
this.__showAutoPlay = false;
this.targetVisibility = true;
this.invalidate();
this.drawNow();
this.__hideAutoPlay = _local9;
this.__showAutoPlay = _local10;
this.targetVisibility = _local11;
this.target.visible = true;
} else {
if (this._cTT == "hide"){
if (this._clearAfterHide == true){
this.removeEffect(true);
this.removeButtonEvents();
for (_local12 in this.filterList) {
IFlashEffFilter(this.filterList[_local12]).remove();
};
};
};
};
};
_local4 = super.dispatchEvent(_local3);
return (_local4);
} else {
_local2 = false;
};
} else {
if (_arg1.type == FLASHEFFEvents.TRANSITION_START){
this.runCommands(this[(("_" + this.currentTransitionType) + "TransitionStartCommands")]);
(_arg1 as FLASHEFFEvents).currentTransitionType = this.currentTransitionType;
};
};
if (_local2 == true){
return (super.dispatchEvent(_arg1));
};
return (true);
}
public function set showTransition(_arg1:IFlashEffSymbolText):void{
if (_arg1 != null){
if (this.showPattern != null){
this.showPattern.remove();
};
this.showPattern = _arg1;
this._showTransitionName = String(getQualifiedClassName(_arg1)).replace("::", ".");
};
}
public function set filterList(_arg1:Array):void{
var _local2:*;
this.removeAllFilters();
if (_arg1 != null){
for (_local2 in _arg1) {
this.addFilter(_arg1[_local2]);
};
};
}
public function getFilter(_arg1:String):IFlashEffFilter{
var _local2:*;
for (_local2 in this.filterList) {
if (String(getQualifiedClassName(this.filterList[_local2])).replace("::", ".") == _arg1){
return (this.filterList[_local2]);
};
};
return (null);
}
public function get highestOwner():Sprite{
return (this._highestOwner);
}
public function set swapTargetVisibility(_arg1:Boolean):void{
__swapTargetVisibility = _arg1;
if (this.swapTarget != null){
this.swapTarget.visible = _arg1;
};
}
protected function setButtonEvents():void{
this.highestOwner.addEventListener(MouseEvent.ROLL_OVER, this.rollOverButtonHandler);
this.highestOwner.addEventListener(MouseEvent.ROLL_OUT, this.rollOutButtonHandler);
this.highestOwner.addEventListener(MouseEvent.MOUSE_DOWN, this.pressButtonHandler);
this.highestOwner.addEventListener(MouseEvent.MOUSE_UP, this.releaseButtonHandler);
isButtonEffectApplyed = true;
}
public function buttonRelease():void{
releaseButtonHandler(null, true);
}
public function get ideDataHolder():String{
return (this._ideDataHolder);
}
protected function showCallerWeak(_arg1:TimerEvent):void{
this.show(false);
}
public function get absCustom():Array{
return (this._absCustom.concat());
}
protected function removeSwapFlashEff2(){
if (this.swapFlashEff2 != null){
this.swapFlashEff2.removeAll();
this.removeChild(this.swapFlashEff2);
this.swapFlashEff2.removeEventListener(FLASHEFFEvents.TRANSITION_END, dispatchEvent);
this.swapFlashEff2.removeEventListener(FLASHEFFEvents.DOUBLE_CLICK, dispatchEvent);
this.swapFlashEff2.removeEventListener(FLASHEFFEvents.MOUSE_DOWN, dispatchEvent);
this.swapFlashEff2.removeEventListener(FLASHEFFEvents.MOUSE_UP, dispatchEvent);
this.swapFlashEff2.removeEventListener(FLASHEFFEvents.ROLL_OUT, dispatchEvent);
this.swapFlashEff2.removeEventListener(FLASHEFFEvents.ROLL_OVER, dispatchEvent);
this.swapFlashEff2 = null;
};
}
public function set ideDataHolder(_arg1:String){
this._ideDataHolder = _arg1;
}
public function get commands():Array{
return (this._rollOverCommands.concat(this._rollOutCommands, this._pressCommands, this._releaseCommands, this._doubleClickCommands, this._showTransitionStartCommands, this._showTransitionEndCommands, this._hideTransitionStartCommands, this._hideTransitionEndCommands));
}
public function removeCommandByName(_arg1:String):void{
var _local2:*;
var _local3:Array;
var _local4:uint;
for (_local2 in _slot1.eventTypeAsoc) {
_local3 = this[(("_" + _local2) + "Commands")];
if (_local3 != null){
_local4 = 0;
while (_local4 < _local3.length) {
if (String(getQualifiedClassName(_local3[_local4])).replace("::", ".") == _arg1){
_local3.splice(_local4, 1);
};
_local4++;
};
if (_slot1.eventTypeAsoc[_local2] != ""){
this.setCommands(_local2);
};
};
};
}
public function removeAll():void{
this.removeEffect(true, this.showPattern);
this.removeEffect(true, this.hidePattern);
this.removeSwapFlashEff2();
this.removeAllCommands();
this.removeAllFilters();
this.removeButtonEffect();
this.buttonEffect = null;
this._buttonEffectName = "";
this.removeShowTransition();
this.removeHideTransition();
this.showTimer.stop();
this.hideTimer.stop();
this.showTimer.removeEventListener(TimerEvent.TIMER, this.showCaller);
this.hideTimer.removeEventListener(TimerEvent.TIMER, this.hideCaller);
if (this.target != null){
this.target.visible = true;
this.resetChildDisplayList(this.target);
this.hitAreaClip.width = (this.hitAreaClip.height = 0);
};
}
public function get showDelay():Number{
return (__showDelay);
}
public function get buttonEffectName():String{
return (this._buttonEffectName);
}
public function set swapTransition(_arg1:IFlashEffSymbolText):void{
if (_arg1 != null){
if (this.swapPattern != null){
this.swapPattern.remove();
};
this.swapPattern = _arg1;
this._swapTransitionName = String(getQualifiedClassName(_arg1)).replace("::", ".");
};
}
protected function getPath(_arg1:DisplayObject):String{
var _local2:DisplayObject = _arg1.parent;
var _local3:String = _arg1.name;
while (((!((_local2 is Stage))) && (!((_local2 == null))))) {
_local3 = ((_local2.name + ".") + _local3);
_local2 = _local2.parent;
};
return (_local3);
}
public function getShowPattern():IFlashEffSymbolText{
return (this.showPattern);
}
protected function pressCommandHandler(_arg1:MouseEvent):void{
this.runCommands(this._pressCommands);
}
public function set hideTransition(_arg1:IFlashEffSymbolText):void{
if (_arg1 != null){
if (this.hidePattern != null){
this.hidePattern.remove();
};
this.hidePattern = _arg1;
this._hideTransitionName = String(getQualifiedClassName(_arg1)).replace("::", ".");
};
}
public function set isTargetVisibleAtEnd(_arg1:Boolean):void{
this._isTargetVisibleAtEnd = _arg1;
}
public function get absChars():Array{
return (this._absChars.concat());
}
function setDrawTime():void{
if ((((this.showAutoPlay == true)) || ((this.hideAutoPlay == true)))){
if ((this.target is DisplayObject)){
if (this.target.stage == null){
this.target.addEventListener(Event.ADDED_TO_STAGE, this.targetOnAdd);
} else {
if (drawCalled == false){
drawCalled = true;
targetOnAdd(new Event(Event.ADDED_TO_STAGE));
};
};
};
};
}
public function getHidePattern():IFlashEffSymbolText{
return (this.hidePattern);
}
public function get textTable():FeTable{
return (this._textTable);
}
protected function callDraw(_arg1:Event):void{
this.draw();
}
public function get buttonOwner():Sprite{
return (this._buttonOwner);
}
public function set hideTransitionName(_arg1:String):void{
var patternClass:Class;
var arg = _arg1;
if (arg != ""){
try {
patternClass = (getDefinitionByName(arg) as Class);
if (this.hidePattern != null){
this.hidePattern.remove();
};
this.hidePattern = new patternClass(this);
} catch(e:ReferenceError) {
throw ((("FLASHEFF2 ERROR: The pattern '" + arg) + "' is missing from library."));
};
this._hideTransitionName = arg;
};
}
public function set hideDelay(_arg1:Number):void{
if (isNaN(_arg1)){
_arg1 = 2;
} else {
if (_arg1 < 0){
_arg1 = 0;
};
};
this.__hideDelay = _arg1;
if (_arg1 < 1E-6){
_arg1 = 1E-6;
};
this.hideTimer.delay = (_arg1 * 1000);
}
public function get absMatrix():Array{
return (this._absMatrix.concat());
}
public function set buttonEffect(_arg1:IFlashEffButtonEffect):void{
if (this.buttonEffect != null){
this.buttonEffect.remove();
};
if (_arg1 != null){
this.setButtonEvents();
this._buttonEffect = _arg1;
this._buttonEffect.target = this.buttonTarget;
this._buttonEffect.component = this;
this._buttonEffect.apply();
this._buttonEffectName = String(getQualifiedClassName(_arg1).replace("::", "."));
} else {
this.removeButtonEvents();
this._buttonEffect = null;
};
}
public function removeAllFilters():void{
var _local1:*;
var _local2:Boolean;
if (this.filterList != null){
_local1 = 0;
while (_local1 < this.filterList.length) {
_local2 = this.removeFilter(this.filterList[_local1]);
_local1 = (_local1 - Number(_local2));
_local1++;
};
};
this.filterAsoc = [];
}
public function set swapType(_arg1:String):void{
if ((((((_arg1 == _slot1.SWAP_TYPE_HIDE)) || ((_arg1 == _slot1.SWAP_TYPE_SHOW)))) || ((_arg1 == _slot1.SWAP_TYPE_HIDE_AND_SHOW)))){
this.__swapType = _arg1;
};
}
public function get xmlPath():String{
return (__xmlPath);
}
protected function rollOverCommandHandler(_arg1:MouseEvent):void{
this.runCommands(this._rollOverCommands);
}
public function getXML():XML{
return (_xml);
}
protected function setProp(_arg1:XMLList, _arg2:Object):void{
var child:XML;
var propType:String;
var propValue:String;
var propName:String;
var arg = _arg1;
var refObj = _arg2;
if (refObj != null){
for each (child in arg.children()) {
propType = child.type;
propValue = child.value;
propName = child.name().localName;
try {
switch (propType){
case "String":
refObj[propName] = String(propValue);
break;
case "Number":
refObj[propName] = Number(String(propValue));
break;
case "uint":
refObj[propName] = uint(String(propValue));
break;
case "int":
refObj[propName] = int(String(propValue));
break;
case "Boolean":
refObj[propName] = (String(propValue) == "true");
break;
case "Array":
refObj[propName] = String(propValue).split(",");
break;
case "XML":
refObj[propName] = XML(String(propValue));
break;
};
} catch(e:Error) {
trace(((((("FLASHEFF2 ERROR: While trying to set the " + propName) + " on ") + refObj) + ",this error came:") + e.message));
};
};
};
}
protected function getCommandsNumber():Number{
var _local2:*;
var _local1:Number = 0;
for (_local2 in _slot1.eventTypeAsoc) {
_local1 = (_local1 + this[(("_" + _local2) + "Commands")].length);
};
return (_local1);
}
protected function showCaller(_arg1:TimerEvent):void{
this.show();
}
public function set clearAfterHide(_arg1:Boolean):void{
_clearAfterHide = _arg1;
}
public function get hideAutoPlay():Boolean{
return (__hideAutoPlay);
}
public function get partialTable():FeTable{
return (this._partialTable);
}
protected function releaseButtonHandler(_arg1:MouseEvent=null, _arg2:Boolean=false):void{
if (this.isDragOut == true){
if ((((_arg2 == true)) || ((this.isMouseTriggered == true)))){
if (this._isTransitioning == false){
if (this.buttonEffect != null){
this.buttonEffect.buttonRelease();
};
};
};
};
if (_arg1 != null){
this.dispatchEvent(new FLASHEFFEvents(FLASHEFFEvents.MOUSE_UP));
};
}
protected function removedFromStage(_arg1:Event):void{
if (_slot1.REMOVED_FROM_FLASHEFF == false){
this.removeEffect(true);
this.removeAllCommands();
this.removeAllFilters();
this.removeButtonEffect();
};
}
public function get initialTargetTransform():Transform{
return (this._initialTargetTransform);
}
public function show(_arg1=null):void{
this.forceAutoPlay = _arg1;
this.showTimer.stop();
this.hideTimer.stop();
this.transitionType = "show";
this.transitionEffect(this.transitionType);
}
public function removeAllCommandsByEventType(_arg1:String):void{
var _local2:Array = this[(("_" + _arg1) + "Commands")];
if (_local2 != null){
if (_local2.length > 0){
this[(("_" + _arg1) + "Commands")] = [];
if (_slot1.eventTypeAsoc[_arg1] != ""){
this.setCommands(_arg1);
};
};
};
}
public function get isMouseTriggered():Boolean{
return (_isMouseTriggered);
}
public function set targetVisibility(_arg1:Boolean):void{
__targetVisibility = _arg1;
}
public function get xmlString():String{
return (__xmlString);
}
public function get swapTarget():DisplayObject{
return (this._swapTarget);
}
protected function init():void{
this._targetOwner = new MovieClip();
this._firstLevelOwner = new Sprite();
this._highestOwner = new Sprite();
this.bDBTO = new Sprite();
this.bDBT = new Sprite();
this.aDBT = new Sprite();
this.aDBTO = new Sprite();
this.aDBT.addChild(this.firstLevelOwner);
this.aDBTO.addChild(this.aDBT);
this.highestOwner.addChild(this.aDBTO);
this.addChild(this.highestOwner);
this.bDBT.addChild(this.targetOwner);
this.bDBTO.addChild(bDBT);
this.firstLevelOwner.addChild(this.bDBTO);
this.buttonTarget = this.aDBT;
this.firstInDepth = this.bDBTO;
this.hitAreaClip = new Sprite();
this.addChild(this.hitAreaClip);
this.highestOwner.hitArea = this.hitAreaClip;
this.hitAreaClip.mouseEnabled = false;
this.hitAreaClip.visible = false;
this.hitAreaClip.graphics.beginFill(0);
this.hitAreaClip.graphics.drawRect(0, 0, 1, 1);
this.hitAreaClip.graphics.endFill();
this.hitAreaClip.height = 0;
this.hitAreaClip.width = 0;
this._textOwnerClip = new Sprite();
this._partialTextOwnerClip = new Sprite();
this.targetOwner.addChild(this._textOwnerClip);
this.targetOwner.addChild(this._partialTextOwnerClip);
this._textTable = new FeTable();
this._partialTable = new FeTable();
this._textOwnerClip.addChild(DisplayObject(this.textTable));
this._partialTextOwnerClip.addChild(DisplayObject(this.partialTable));
tTS = new Sprite();
this._buttonOwner = new Sprite();
this.aDBTO.addChild(this.buttonOwner);
this.resetArrays();
this._filterList = [];
this._rollOverCommands = [];
this._rollOutCommands = [];
this._pressCommands = [];
this._releaseCommands = [];
this._doubleClickCommands = [];
this._showTransitionStartCommands = [];
this._showTransitionEndCommands = [];
this._hideTransitionStartCommands = [];
this._hideTransitionEndCommands = [];
this.filterAsoc = [];
if (_slot1.targetPaths == null){
_slot1.targetPaths = [];
};
this.showTimer = new Timer((this.showDelay * 1000), 1);
this.hideTimer = new Timer((this.hideDelay * 1000), 1);
this.partialPatternName = this.__partialPattern;
this.addEventListener(Event.REMOVED_FROM_STAGE, removedFromStage);
}
protected function setCommands(_arg1:String):void{
var eventType = _arg1;
try {
if (((!((this[(("_" + eventType) + "Commands")] == null))) && ((this[(("_" + eventType) + "Commands")].length > 0)))){
this.highestOwner.addEventListener(MouseEvent[_slot1.eventTypeAsoc[eventType]], this[(eventType + "CommandHandler")]);
} else {
this.highestOwner.removeEventListener(MouseEvent[_slot1.eventTypeAsoc[eventType]], this[(eventType + "CommandHandler")]);
};
} catch(e:Error) {
trace("FLASHEFF2 ERROR: Unknown eventType. Available events are: rollOver, rollOut, press, release, doubleClick, showTransitionStart, showTransitionEnd, hideTransitionStart and hideTransitionEnd.");
};
if (this.highestOwner.hasEventListener("doubleClick")){
this.highestOwner.doubleClickEnabled = true;
this.highestOwner.mouseChildren = false;
} else {
this.highestOwner.doubleClickEnabled = false;
this.highestOwner.mouseChildren = true;
};
}
public function set showDelay(_arg1:Number):void{
if (isNaN(_arg1)){
_arg1 = 0;
} else {
if (_arg1 <= 0){
_arg1 = 0;
};
};
this.__showDelay = _arg1;
if (_arg1 < 1E-6){
_arg1 = 1E-6;
};
this.showTimer.delay = (_arg1 * 1000);
}
public function set useSwapInsteadHide(_arg1:Boolean):void{
this._useSwapInsteadHide = _arg1;
}
override public function set useHandCursor(_arg1:Boolean):void{
var arg = _arg1;
this._useHandCursor = arg;
this.highestOwner.buttonMode = arg;
this.highestOwner.useHandCursor = arg;
try {
this.target["mouseEnabled"] = !(arg);
} catch(e:Error) {
};
}
public function set target(_arg1:DisplayObject):void{
var point:Point;
var bounds:Rectangle;
var arg = _arg1;
if (this._target != null){
if (this.showPattern != null){
try {
this.showPattern.remove();
this.showPattern["target"] = null;
} catch(e:Error) {
};
};
if (this.hidePattern != null){
try {
this.hidePattern.remove();
this.hidePattern["target"] = null;
} catch(e:Error) {
};
};
this._target.visible = true;
this.resetChildDisplayList(this._target);
};
if (arg != null){
if (arg.parent != null){
resetChildDisplayList(arg);
this._target = arg;
if (this._targetInstanceName == ""){
this.invalidate();
this.setDrawTime();
};
this.__targetInstanceName = arg.name;
point = new Point(0, 0);
bounds = arg.getBounds(arg);
if ((arg is TextField)){
point.x = bounds.x;
point.y = bounds.y;
this._textField = TextField(arg);
this.textField.visible = false;
this._partialTextOwnerClip.scaleX = (this._textOwnerClip.scaleX = this.textField.scaleX);
this._partialTextOwnerClip.scaleY = (this._textOwnerClip.scaleY = this.textField.scaleY);
};
this.hitAreaClip.width = (bounds.width * this.target.scaleX);
this.hitAreaClip.height = (bounds.height * this.target.scaleY);
this.hitAreaClip.x = ((bounds.x * target.scaleX) - point.x);
this.hitAreaClip.y = ((bounds.y * target.scaleY) - point.y);
point = arg.localToGlobal(point);
point = this.parent.globalToLocal(point);
_slot1.targetPaths[this.getPath(arg)] = {target:arg, displayList:target.parent, x:arg.x, y:arg.y, rotation:arg.rotation};
_slot1.REMOVED_FROM_FLASHEFF = true;
this.targetOwner.addChild(arg);
_slot1.REMOVED_FROM_FLASHEFF = false;
this.x = (this.x + (point.x - this.x));
this.y = (this.y + (point.y - this.y));
this.rotation = this.target.rotation;
this.target.x = 0;
this.target.y = 0;
this.target.rotation = 0;
tTS.transform = arg.transform;
this._initialTargetTransform = tTS.transform;
} else {
trace("FLASHEFF2 ERROR: Please add the target to the display list, before setting the _targetInstanceName|target property on FlashEff2.");
};
} else {
trace("FLASHEFF2 ERROR: Target must be a non-null DisplayObject.");
};
}
public function set _targetInstanceName(_arg1:String):void{
var scope:DisplayObjectContainer;
var paths:Array;
var targName:String;
var i:*;
var newTarget:DisplayObject;
var strPath:String;
var existObj:Object;
var arg = _arg1;
if (arg != ""){
if ((this.parent is DisplayObject)){
scope = this.parent;
paths = arg.split(".");
targName = paths.pop();
try {
i = 0;
while (i < paths.length) {
scope = (scope[paths[i]] as DisplayObjectContainer);
i = (i + 1);
};
} catch(e:Error) {
trace("FLASHEFF2 ERROR: The _targetInstanceName path is invalid.");
return;
};
if (scope != null){
newTarget = scope.getChildByName(targName);
if (newTarget == null){
strPath = this.getPath(scope);
existObj = _slot1.targetPaths[((strPath + ".") + arg)];
if (existObj != null){
newTarget = existObj.target;
};
};
this.target = newTarget;
};
} else {
trace("FLASHEFF2 ERROR: Please add the component to the display list, before setting the _targetInstanceName property.");
};
this.__targetInstanceName = arg;
};
}
protected function startPartialEffect():void{
if (this.partialPattern != null){
try {
this.partialPattern["partialBlurAmount"] = IFlashEffText(this.lastTransitionPattern).partialBlurAmount;
this.partialPattern["partialStart"] = IFlashEffText(this.lastTransitionPattern).partialStart;
this.partialPattern.tweenDuration = this.lastTransitionPattern.tweenDuration;
this.partialPattern.tweenType = this.lastTransitionPattern.tweenType;
this.partialPattern.easeType = this.lastTransitionPattern.easeType;
} catch(e:Error) {
trace("FLASHEFF2 ERROR: an error ocured when trying to set partialBlurAmount, partialStart, tweenDuration,tweenType and easeType on the partialPattern.");
};
var _local2 = this.partialPattern;
_local2[this.transitionType]();
};
clearInterval(this.partialInterval);
}
protected function targetOnAdd(_arg1:Event):void{
if ((this.target.parent is MovieClip)){
if (MovieClip(this.target.parent).currentFrame <= 1){
this.target.visible = false;
};
};
this.target.removeEventListener(Event.ADDED_TO_STAGE, this.targetOnAdd);
this.target.stage.invalidate();
this.firstLevelOwner.addEventListener(Event.RENDER, callDraw);
}
public function removeFilter(_arg1:IFlashEffFilter):Boolean{
var _local2:*;
var _local3:uint;
if (_arg1 != null){
_arg1.remove();
for (_local2 in this.filterList) {
if (this.filterList[_local2] == _arg1){
if (_arg1.target == this.firstInDepth){
this.firstInDepth = this.filterAsoc[_arg1.target.name];
};
if (this.filterList.length > (_local2 + 1)){
this.filterAsoc[this.filterList[(_local2 + 1)].target.name] = this.filterAsoc[_arg1.target.name];
};
this.filterList.splice(_local2, 1);
_local3 = 0;
while (_local2 < _arg1.target.numChildren) {
_arg1.target.parent.addChild(_arg1.target.getChildAt(_local3));
_local3++;
};
_arg1.target.parent.removeChild(_arg1.target);
return (true);
};
};
};
return (false);
}
public function setProperties(_arg1):void{
var child:XML;
var command:IFlashEffCommand;
var filter:IFlashEffFilter;
var me:FlashEff2;
var urlLdr:URLLoader;
var xmlArg = _arg1;
if ((xmlArg is XML)){
this.invalidate();
this._xml = (xmlArg as XML);
this.removeEffect(true);
this.removeAllCommands();
this.removeAllFilters();
this.removeButtonEffect();
if (xmlArg.params.children().length() > 0){
this.setProp(xmlArg.params, this);
};
for each (child in xmlArg.patterns.children()) {
switch (String(child.type)){
case "command":
command = this.addCommandByName(String(child.name), String(child.event));
this.setProp(child.params, command);
break;
case "showCommand":
command = this.addCommandByName(String(child.name), String(child.event));
this.setProp(child.params, command);
break;
case "hideCommand":
command = this.addCommandByName(String(child.name), String(child.event));
this.setProp(child.params, command);
break;
case "filter":
filter = this.addFilterByName(String(child.name));
this.setProp(child.params, filter);
break;
case "buttonEffect":
this.buttonEffectName = String(child.name);
this.setProp(child.params, this.buttonEffect);
break;
case "hide":
this.hideTransitionName = String(child.name);
this.setProp(child.params, this.hidePattern);
break;
case "show":
this.showTransitionName = String(child.name);
this.setProp(child.params, this.showPattern);
break;
case "swap":
this.swapTransitionName = String(child.name);
this.setProp(child.params, this.swapPattern);
break;
};
};
drawCalled = false;
this.setDrawTime();
} else {
me = this;
urlLdr = new URLLoader();
urlLdr.dataFormat = "text";
urlLdr.addEventListener(Event.COMPLETE, function (_arg1:Event){
var _local2:FLASHEFFEvents = new FLASHEFFEvents(FLASHEFFEvents.COMPLETE);
_local2.data = urlLdr.data;
me.dispatchEvent(_local2);
var _local3:XML = XML(urlLdr.data);
if (String(_local3.params.xmlPath.value) == xmlArg){
_local3.params.xmlPath.value = "";
};
me.setProperties(_local3);
});
urlLdr.addEventListener("ioError", function (_arg1:Event){
trace("FLASHEFF2 ERROR: There was an IO_ERROR problem loading the xml. Please check the xmlPath.");
me.dispatchEvent(_arg1);
});
urlLdr.load(new URLRequest(xmlArg));
};
}
public function get swapTargetVisibility():Boolean{
return (__swapTargetVisibility);
}
protected function resetChildDisplayList(_arg1:DisplayObject):void{
var _local3:*;
var _local4:Object;
var _local2:Array = _slot1.targetPaths;
for (_local3 in _local2) {
_local4 = _local2[_local3];
if (_local4 != null){
if (_local4.target == _arg1){
if (_local4.displayList.getChildByName(_arg1.name) == null){
_local4.displayList.addChild(_arg1);
_arg1.x = _local4.x;
_arg1.y = _local4.y;
_arg1.rotation = _local4.rotation;
};
_slot1.targetPaths[_local3] = null;
return;
};
};
};
}
public function removeEffect(_arg1:Boolean=false, _arg2:IFlashEffSymbolText=null):void{
if (_arg2 == null){
_arg2 = this.lastTransitionPattern;
};
if (_arg2 != null){
_arg2.remove();
};
if (this.partialPattern != null){
this.partialPattern.remove();
};
if (this.textTable != null){
this.textTable.removeChilds();
};
if (this.partialTable != null){
this.partialTable.removeChilds();
};
if (_arg1 == false){
if (_isTransitioning == true){
eventsDispatched = 0;
maxEndEvents = 1;
this.dispatchEvent(new FLASHEFFEvents(FLASHEFFEvents.TRANSITION_END));
};
};
if (target != null){
this.target.visible = _isTargetVisibleAtEnd;
};
this.maxEndEvents = 0;
}
public function set buttonEffectName(_arg1:String):void{
var btnEff:Class;
var arg = _arg1;
if (arg != ""){
try {
btnEff = (getDefinitionByName(arg) as Class);
this.buttonEffect = IFlashEffButtonEffect(new btnEff(this));
} catch(e:Error) {
};
this._buttonEffectName = arg;
};
}
public function set showAutoPlay(_arg1:Boolean):void{
__showAutoPlay = _arg1;
this.invalidate();
setDrawTime();
}
public function getFilterAt(_arg1:uint):IFlashEffFilter{
if (_arg1 < this.filterList.length){
return (this.filterList[_arg1]);
};
return (null);
}
override protected function draw():void{
var _local1:Boolean;
var _local2:*;
var _local3:Timer;
var _local4:IFlashEffFilter;
if (this.isInvalid("all")){
if (this.target != null){
_local1 = false;
if (((!((this.showPattern == null))) && ((this.showAutoPlay == true)))){
this.transitionType = "show";
_local1 = true;
} else {
if (this.hidePattern != null){
if (this.hideAutoPlay == true){
_local1 = true;
this.transitionType = "hide";
};
};
};
if (this.target.parent != this.targetOwner){
if ((((((_local1 == true)) || ((this.filterList.length > 0)))) || ((this.getCommandsNumber() > 0)))){
this.target = this.target;
};
};
this.target.visible = this.targetVisibility;
if (_local1){
_local3 = this[(this.transitionType + "Timer")];
if (this[(this.transitionType + "Delay")] > 0){
_local3.reset();
_local3.start();
_local3.addEventListener(TimerEvent.TIMER, this[(this.transitionType + "Caller")]);
if (this.transitionType == "show"){
if (this.target != null){
this.target.visible = false;
};
};
} else {
this.transitionEffect(this.transitionType);
};
};
for (_local2 in this.filterList) {
_local4 = (this.filterList[_local2] as IFlashEffFilter);
_local4.remove();
if (_isFree){
getFreePattern(_local4);
};
_local4.apply();
};
};
this.dispatchEvent(new FLASHEFFEvents(FLASHEFFEvents.INIT));
super.draw();
};
}
public function get swapTransition():IFlashEffSymbolText{
return (this.swapPattern);
}
public function hide():void{
this.showTimer.stop();
this.hideTimer.stop();
this.transitionType = "hide";
this.transitionEffect(this.transitionType);
}
public function get isTargetVisibleAtEnd():Boolean{
return (_isTargetVisibleAtEnd);
}
public function transitionEffect(_arg1:String="show"):void{
var i:*;
var transt = _arg1;
if (this.isInvalid("all")){
for (i in this.filterList) {
IFlashEffFilter(this.filterList[i]).remove();
IFlashEffFilter(this.filterList[i]).apply();
};
};
this.validate();
this.removeEffect(true);
this.maxEndEvents = 1;
this._cTT = transt;
if (this.target != null){
if (this.targetOwner.getChildByName(this.target.name) != this.target){
this.target = this.target;
};
try {
eventsDispatched = 0;
if (_isFree == true){
this.getFreePattern(this[(transt + "Pattern")]);
};
this.lastTransitionPattern = this[(transt + "Pattern")];
if (transt == "hide"){
if (this.useSwapInsteadHide == true){
if (this.forceHide == false){
if (this.swapTarget != null){
this._cTT = "swap";
switch (this.swapType){
case _slot1.SWAP_TYPE_HIDE:
this.addSwapFlashEff2(0);
break;
case _slot1.SWAP_TYPE_SHOW:
this.addSwapFlashEff2(this.numChildren);
break;
default:
this.addSwapFlashEff2(0);
break;
};
this.swapFlashEff2.target = this.swapTarget;
this.swapFlashEff2.showDelay = ((this.swapDelay) || (0.0001));
if (this.swapType != _slot1.SWAP_TYPE_HIDE){
if (this.swapPattern != null){
this.swapFlashEff2.showTransition = this.swapPattern;
} else {
this.swapFlashEff2.showTransition = (this.clonePattern(this.showPattern) as IFlashEffSymbolText);
};
if (this.swapType == _slot1.SWAP_TYPE_SHOW){
this.target.visible = true;
this.dispatchEvent(new FLASHEFFEvents(FLASHEFFEvents.TRANSITION_START));
return;
} else {
this.maxEndEvents = 2;
};
} else {
this.swapTarget.visible = true;
};
} else {
trace("FLASHEFF2 ERROR: The swapTarget property is null, a hide transition will be applied.");
};
};
};
};
if (this.lastTransitionPattern != null){
if (this.target.parent != this.targetOwner){
this.target = this.target;
};
this.target.visible = true;
this.lastTransitionPattern.component = this;
try {
this.lastTransitionPattern["target"] = this.target;
} catch(e:TypeError) {
trace("FLASHEFF2 ERROR: You have placed a text pattern over a symbol. Please use a symbol pattern instead!");
return;
};
_isTransitioning = true;
var _local3 = this.lastTransitionPattern;
_local3[transt]();
} else {
trace((("FLASHEFF2 WARNING: The " + transt) + "Transition pattern is null. The transition will not be applied."));
};
} catch(e:ReferenceError) {
throw (("FLASHEFF2 ERROR: " + e));
};
} else {
trace("FLASHEFF2 WARNING: Please set the target or _targetInstanceName property before applying an effect.");
};
this.forceHide = false;
}
public function get absWords():Array{
return (this._absWords.concat());
}
public function changeTarget(_arg1:DisplayObject):void{
var _local2:Timer;
this.nextTarget = _arg1;
if (this.target != null){
this.setNewTarget = true;
_local2 = this.hideTimer;
this.forceHide = true;
if (this.hideDelay > 0){
_local2.reset();
_local2.start();
_local2.addEventListener(TimerEvent.TIMER, this.hideCaller);
} else {
this.hide();
};
} else {
this.target = _arg1;
this.show(false);
};
}
protected function linesSplit():Array{
var _local7:*;
var _local8:String;
var _local9:Boolean;
var _local10:uint;
var _local11:*;
var _local1:Array = [];
var _local2:Array = [];
var _local3:uint = this.textField.numLines;
var _local4:uint;
var _local5:Number = 0;
var _local6:uint;
while (_local6 < _local3) {
_local7 = this.textField.getCharBoundaries(_local4);
_local8 = this.textField.getLineText(_local6);
_local9 = false;
if (_local7 == null){
_local9 = true;
_local10 = _local8.length;
if (_local10 > 0){
_local11 = 0;
while (_local11 < _local10) {
_local7 = this.textField.getCharBoundaries((_local4 + _local11));
if (_local7 != null){
_local9 = false;
break;
};
_local11++;
};
};
};
if (_local9 == false){
_local2[(_local6 - _local5)] = {id:_local4, bounds:_local7, lineId:_local6, text:_local8};
_local4 = (_local4 + String(_local8).length);
} else {
_local5++;
_local4 = (_local4 + _local8.length);
};
_local6++;
};
return (_local2);
}
public function set swapDelay(_arg1:Number):void{
this.__swapDelay = _arg1;
}
public function get hideDelay():Number{
return (__hideDelay);
}
protected function resetArrays():void{
_absChars = [];
_absWords = [];
_absLines = [];
_absMatrix = [];
_absCustom = [];
}
public function addCommand(_arg1:IFlashEffCommand, _arg2:String):IFlashEffCommand{
var command = _arg1;
var eventType = _arg2;
if (command != null){
try {
this[(("_" + eventType) + "Commands")].push(command);
command.component = this;
command.target = this.target;
command.commandEventType = eventType;
if (_slot1.eventTypeAsoc[eventType] != ""){
this.setCommands(eventType);
};
} catch(e:Error) {
trace("FLASHEFF2 ERROR: Unknown eventType. Available events are: rollOver, rollOut, press, release, doubleClick, showTransitionStart, showTransitionEnd, hideTransitionStart and hideTransitionEnd.");
};
};
return (command);
}
protected function charSplit(_arg1:String, _arg2:uint):Array{
var _local8:Rectangle;
var _local3:Array = String(_arg1).split("");
var _local4:Array = [];
var _local5:uint = _local3.length;
var _local6:uint;
var _local7:uint;
while (_local7 < _local5) {
_local8 = this.textField.getCharBoundaries((_arg2 + _local7));
if (_local3[_local7] != " "){
if (!isNaN(String(_local3[_local7]).charCodeAt(0))){
if (_local8 != null){
_local4[(_local7 - _local6)] = {id:(_arg2 + _local7), bounds:_local8, text:_local3[_local7]};
} else {
_local6++;
};
};
} else {
_local6++;
};
_local7++;
};
return (_local4);
}
protected function releaseCommandHandler(_arg1:MouseEvent):void{
this.runCommands(this._releaseCommands);
}
public function get hideTransitionName():String{
return (this._hideTransitionName);
}
protected function clonePattern(_arg1:Object):Object{
var _local2:XML;
var _local3:XMLList;
var _local4:String;
var _local5:Class;
var _local6:*;
var _local7:Number;
var _local8:*;
var _local9:XML;
var _local10:String;
if (_arg1 != null){
_local2 = describeType(_arg1);
_local3 = _local2.elements("accessor");
_local4 = String(_local2.@name);
_local5 = (getDefinitionByName(_local4) as Class);
_local6 = new (_local5);
_local7 = _local3.length();
_local8 = 0;
while (_local8 < _local7) {
_local9 = _local3[_local8];
if (_local9.@declaredBy == _local4){
if (_local9.@access == "readwrite"){
_local10 = _local9.@name;
_local6[_local10] = _arg1[_local10];
};
};
_local8++;
};
return (_local6);
};
return (null);
}
protected function hideCaller(_arg1:TimerEvent):void{
this.hide();
}
protected function rollOutCommandHandler(_arg1:MouseEvent):void{
this.runCommands(this._rollOutCommands);
}
public function get clearAfterHide():Boolean{
return (_clearAfterHide);
}
public function addFilter(_arg1:IFlashEffFilter):void{
var _local2:DisplayObject;
var _local3:Boolean;
if (this._isFree == true){
this.getFreePattern(_arg1);
};
if (_arg1 != null){
_local2 = this.firstInDepth;
this.firstInDepth = new Sprite();
this.firstLevelOwner.addChild(this.firstInDepth);
this.firstInDepth.addChild(_local2);
_arg1.component = this;
_arg1.target = this.firstInDepth;
this.filterAsoc[_arg1.target.name] = _local2;
if (!this.isInvalid("all")){
_local3 = this.target.visible;
this.target.visible = true;
_arg1.apply();
this.target.visible = _local3;
};
this.filterList.push(_arg1);
};
}
public function get swapType():String{
return (this.__swapType);
}
public function get targetVisibility():Boolean{
return (__targetVisibility);
}
public function get buttonEffect():IFlashEffButtonEffect{
return (this._buttonEffect);
}
protected function addSwapFlashEff2(_arg1:uint=0){
var _local2:*;
if (this.swapFlashEff2 != null){
this.removeSwapFlashEff2();
};
this.swapFlashEff2 = new FlashEff2();
this.swapFlashEff2.addEventListener(FLASHEFFEvents.TRANSITION_END, dispatchEvent);
this.swapFlashEff2.addEventListener(FLASHEFFEvents.DOUBLE_CLICK, dispatchEvent);
this.swapFlashEff2.addEventListener(FLASHEFFEvents.MOUSE_DOWN, dispatchEvent);
this.swapFlashEff2.addEventListener(FLASHEFFEvents.MOUSE_UP, dispatchEvent);
this.swapFlashEff2.addEventListener(FLASHEFFEvents.ROLL_OUT, dispatchEvent);
this.swapFlashEff2.addEventListener(FLASHEFFEvents.ROLL_OVER, dispatchEvent);
this.addChildAt(this.swapFlashEff2, _arg1);
for (_local2 in this.filterList) {
this.swapFlashEff2.addFilter((this.clonePattern(this.filterList[_local2]) as IFlashEffFilter));
};
for (_local2 in this.commands) {
this.swapFlashEff2.addCommand((this.clonePattern(this.commands[_local2]) as IFlashEffCommand), (this.commands[_local2] as IFlashEffCommand).commandEventType);
};
}
public function addCommandByName(_arg1:String, _arg2:String, _arg3:Object=null):IFlashEffCommand{
var commandRef:Class;
var command:IFlashEffCommand;
var i:*;
var commandName = _arg1;
var eventType = _arg2;
var initObj = _arg3;
try {
commandRef = (getDefinitionByName(commandName) as Class);
command = IFlashEffCommand(new commandRef(this));
if (initObj != null){
for (i in initObj) {
command[i] = initObj[i];
};
};
} catch(e:ReferenceError) {
trace((("FLASHEFF2 ERROR: The command pattern '" + commandName) + "' is missing from library."));
return (null);
};
return (this.addCommand(command, eventType));
}
protected function removeButtonEvents():void{
this.highestOwner.removeEventListener(MouseEvent.ROLL_OVER, this.rollOverButtonHandler);
this.highestOwner.removeEventListener(MouseEvent.ROLL_OUT, this.rollOutButtonHandler);
this.highestOwner.removeEventListener(MouseEvent.MOUSE_DOWN, this.pressButtonHandler);
this.highestOwner.removeEventListener(MouseEvent.MOUSE_UP, this.releaseButtonHandler);
isButtonEffectApplyed = false;
}
public function get target():DisplayObject{
return (this._target);
}
public function swap(_arg1:DisplayObject=null, _arg2:String=""):void{
if (_arg1 != null){
this.swapTarget = _arg1;
};
if (_arg2 != ""){
this.swapType = _arg2;
};
this.useSwapInsteadHide = true;
this.hide();
}
protected function doubleClickCommandHandler(_arg1:MouseEvent):void{
this.runCommands(this._doubleClickCommands);
this.dispatchEvent(new FLASHEFFEvents(FLASHEFFEvents.DOUBLE_CLICK));
}
public function get _targetInstanceName():String{
return (this.__targetInstanceName);
}
public function get useSwapInsteadHide():Boolean{
return (this._useSwapInsteadHide);
}
override public function get useHandCursor():Boolean{
return (_useHandCursor);
}
public function get targetOwner():MovieClip{
return (this._targetOwner);
}
public function get absLines():Array{
return (this._absLines.concat());
}
protected function rollOutButtonHandler(_arg1:MouseEvent=null, _arg2:Boolean=false):void{
if ((((_arg2 == true)) || ((this.isMouseTriggered == true)))){
if (this._isTransitioning == false){
if (this.buttonEffect != null){
this.buttonEffect.buttonRollOut();
};
};
};
this.isDragOut = false;
if (_arg1 != null){
this.dispatchEvent(new FLASHEFFEvents(FLASHEFFEvents.ROLL_OUT));
};
}
public function get showAutoPlay():Boolean{
return (__showAutoPlay);
}
public function get swapDelay():Number{
return (this.__swapDelay);
}
public function get isTransitioning():Boolean{
return (this._isTransitioning);
}
public function set xmlPath(_arg1:String):void{
if (_arg1 != ""){
this.__xmlPath = _arg1;
setProperties(this.__xmlPath);
};
}
public function set showTransitionName(_arg1:String):void{
var patternClass:Class;
var arg = _arg1;
if (arg != ""){
try {
patternClass = (getDefinitionByName(arg) as Class);
if (this.showPattern != null){
this.showPattern.remove();
};
this.showPattern = IFlashEffSymbolText(new patternClass(this));
} catch(e:ReferenceError) {
throw ((("FLASHEFF2 ERROR: The pattern '" + arg) + "' is missing from library."));
};
this._showTransitionName = arg;
};
}
public function drawTextTable(_arg1:String, _arg2:String, _arg3:Number, _arg4:Array, _arg5:Number, _arg6:Number, _arg7:Array=null):Boolean{
var _local9:Array;
var _local10:Array;
var _local11:Array;
var _local14:*;
var _local15:*;
var _local16:uint;
var _local19:uint;
var _local28:Number;
var _local29:Object;
var _local30:*;
var _local31:Number;
var _local32:Number;
var _local33:Number;
var _local34:Number;
this.textTable.removeChilds();
this.partialTable.removeChilds();
this.resetArrays();
var _local8:Object = this.textTable;
var _local12:Boolean;
var _local13:Boolean;
var _local17:uint = 1;
var _local18:uint = 1;
var _local20:uint;
var _local21:String = _arg1;
var _local22:String = _arg1;
_local10 = this.linesSplit();
_local17 = _local10.length;
var _local23:Array = [];
var _local24:Array = [];
if (_arg2 == "lines"){
this.filterArray(_local10, _arg2, _arg3, _arg4);
};
_local14 = 0;
while (_local14 < _local17) {
if (_local22 == "custom"){
_local9 = (_local10[_local14].childs = this.customSplit(_local10[_local14].text, _local10[_local14].id, _arg7[_local10[_local14].lineId]));
_arg1 = "words";
_local21 = _arg1;
} else {
_local9 = (_local10[_local14].childs = this.wordsSplit(_local10[_local14].text, _local10[_local14].id));
};
_local10[_local14].owner = this.textTable;
_local18 = _local9.length;
_local15 = 0;
while (_local15 < _local18) {
_local23.push(_local9[_local15]);
_local9[_local15].passed = _local10[_local14].passed;
_local9[_local15].owner = this.textTable;
_local11 = (_local9[_local15].childs = this.charSplit(_local9[_local15].text, _local9[_local15].id));
_local19 = _local11.length;
_local16 = 0;
while (_local16 < _local19) {
_local11[_local16].passed = _local9[_local15].passed;
_local24.push(_local11[_local16]);
_local16++;
};
_local15++;
};
_local14++;
};
if ((((_arg3 < 100)) || ((_arg2 == "selectedStrings")))){
if (_arg2 == "words"){
this.filterArray(_local23, _arg2, _arg3, _arg4);
} else {
if ((((_arg2 == "letters")) || ((_arg2 == "selectedStrings")))){
this.filterArray(_local24, _arg2, _arg3, _arg4);
};
};
_local28 = (_arg5 * 10);
if (this.transitionType == "hide"){
_local28 = 0;
this._partialTextOwnerClip.alpha = 1;
} else {
this._partialTextOwnerClip.alpha = 0;
};
clearInterval(this.partialInterval);
this.partialInterval = setInterval(this.startPartialEffect, (_local28 * ((this.lastTransitionPattern.tweenDuration) || (0))));
maxEndEvents++;
};
switch (_arg1.toLocaleLowerCase()){
case "lines":
_local17 = _local10.length;
_local8 = this.textTable;
_local15 = 0;
while (_local15 < _local17) {
_local29 = _local8;
if (_local10[_local15].passed == false){
_local29 = this.partialTable;
};
_local30 = _local29.pushChild({type:"FeGroup", x:_local10[_local15].bounds.x, y:_local10[_local15].bounds.y, text:_local10[_local15].text, bounds:_local10[_local15].bounds, id:_local10[_local15].id});
_local10[_local15].owner = _local30;
_absLines.push(_local30);
_local15++;
};
_arg1 = "words";
case "words":
_local17 = _local10.length;
_local14 = 0;
while (_local14 < _local17) {
_local31 = _local10[_local14].owner.x;
_local32 = _local10[_local14].owner.y;
_local8 = _local10[_local14].owner;
_local9 = _local10[_local14].childs;
_local18 = _local9.length;
_local15 = 0;
while (_local15 < _local18) {
_local29 = _local8;
_local33 = _local31;
_local34 = _local32;
if ((((_local9[_local15].passed == false)) && ((((_local21 == "words")) || ((_arg2 == "words")))))){
_local29 = this.partialTable;
_local33 = 0;
_local34 = 0;
} else {
if (_local9[_local15].passed == false){
_local33 = 0;
_local34 = 0;
};
};
_local30 = _local29.pushChild({type:"FeGroup", x:(_local9[_local15].bounds.x - _local33), y:(_local9[_local15].bounds.y - _local34), text:_local9[_local15].text, bounds:_local9[_local15].bounds, id:_local9[_local15].id});
_local9[_local15].owner = _local30;
_absWords.push(_local30);
if (_local22 == "custom"){
_absCustom.push(_local30);
};
_local15++;
};
_local14++;
};
_arg1 = "chars";
case "chars":
_local14 = 0;
while (_local14 < _local17) {
_local9 = _local10[_local14].childs;
_local18 = _local9.length;
_local15 = 0;
while (_local15 < _local18) {
_local11 = _local9[_local15].childs;
_local8 = _local9[_local15].owner;
_local31 = (_local8.x + _local10[_local14].owner.x);
_local32 = (_local8.y + _local10[_local14].owner.y);
_local19 = _local11.length;
_local16 = 0;
while (_local16 < _local19) {
_local29 = _local8;
_local33 = _local31;
_local34 = _local32;
if (_local11[_local16].passed != false){
_local11[_local16].passed = _local9[_local15].passed;
};
if (_local11[_local16].passed == false){
if ((((_local21 == "chars")) || ((((_arg2 == "letters")) || ((_arg2 == "selectedStrings")))))){
_local29 = this.partialTable;
_local33 = 0;
_local34 = 0;
} else {
if (_arg2 == "words"){
_local33 = _local8.x;
_local34 = _local8.y;
};
};
};
_local30 = _local29.pushChild({type:"FeChar", x:((_local11[_local16].bounds.x - 2) - _local33), y:((_local11[_local16].bounds.y - 2) - _local34), text:_local11[_local16].text, bounds:_local11[_local16].bounds, id:_local11[_local16].id});
_local20 = this.textField.getLineIndexOfChar(_local30.id);
_local30.bottomPosition = this.textField.getLineMetrics(_local20).ascent;
_local30.applyTextFormat(this.textField.getTextFormat(_local30.id, (_local30.id + 1)));
_absChars.push(_local30);
_local16++;
};
_local15++;
};
_local14++;
};
break;
};
this.textTable.cleanMe();
var _local25:uint = this.textTable.childs.length;
_local20 = 0;
var _local26:Number = -1;
var _local27:Number = 0;
if (_local25 < 1){
maxEndEvents--;
} else {
_absMatrix[_local20] = [];
};
_local14 = 0;
while (_local14 < _local25) {
_local30 = this.textTable.childs[_local14];
_local20 = this.textField.getLineIndexOfChar(_local30.id);
if (_local20 != _local26){
_local26 = _local20;
_local27 = _absMatrix.push([]);
};
_absMatrix[(_local27 - 1)].push(_local30);
_local14++;
};
_local14 = 0;
while (_local14 < _absMatrix.length) {
if (_absMatrix[_local14].length == 0){
_absMatrix.splice(_local14, 1);
_local14--;
};
_local14++;
};
this._textOwnerClip.visible = true;
DisplayObject(this.textTable).visible = true;
DisplayObject(this._partialTextOwnerClip).visible = true;
this.textField.visible = false;
return (true);
}
protected function filterArray(_arg1:Array, _arg2:String, _arg3:Number, _arg4:Array):void{
var _local6:uint;
var _local7:Array;
var _local8:*;
var _local9:uint;
var _local10:Number;
var _local11:String;
var _local12:Object;
var _local13:int;
var _local14:String;
var _local15:int;
var _local16:int;
var _local17:RegExp;
var _local18:String;
var _local19:uint;
var _local20:*;
var _local5:uint = _arg1.length;
if (_arg2 != "selectedStrings"){
_local6 = _local5;
_local7 = new Array(_local5);
_local8 = 0;
while (_local8 < _local5) {
_local7[_local8] = _local8;
_local8++;
};
while (((_local6 / _local5) * 100) > _arg3) {
_local9 = Math.floor((Math.random() * _local7.length));
_arg1[_local7[_local9]].passed = false;
_local6--;
_local7.splice(_local9, 1);
};
} else {
_local10 = _arg4.length;
_local11 = this.textField.text;
_local12 = {};
_local8 = 0;
while (_local8 < _local5) {
_arg1[_local8].passed = false;
_local12[_arg1[_local8].id] = _local8;
_local8++;
};
_local8 = 0;
while (_local8 < _local10) {
_local13 = 0;
_local14 = _arg4[_local8];
_local15 = _local11.indexOf(_local14, _local13);
_local16 = _local14.length;
_local17 = / /g;
_local18 = _local14.replace(_local17, "");
_local19 = _local18.length;
while (_local15 != -1) {
_local20 = _local15;
while (_local20 < (_local15 + _local16)) {
if (_local12[_local20] != undefined){
_arg1[_local12[_local20]].passed = true;
};
_local20++;
};
_local13 = (_local15 + _local16);
_local15 = _local11.indexOf(_local14, _local13);
};
_local8++;
};
};
}
public function set swapTargetInstanceName(_arg1:String):void{
var scope:DisplayObjectContainer;
var paths:Array;
var targName:String;
var i:*;
var newTarget:DisplayObject;
var strPath:String;
var existObj:Object;
var arg = _arg1;
if (arg != ""){
if ((this.parent is DisplayObject)){
scope = this.parent;
paths = arg.split(".");
targName = paths.pop();
try {
i = 0;
while (i < paths.length) {
scope = (scope[paths[i]] as DisplayObjectContainer);
i = (i + 1);
};
} catch(e:Error) {
trace("FLASHEFF2 ERROR: The swapTargetInstanceName path is invalid.");
return;
};
if (scope != null){
newTarget = scope.getChildByName(targName);
if (newTarget == null){
strPath = this.getPath(scope);
existObj = _slot1.targetPaths[((strPath + ".") + arg)];
if (existObj != null){
newTarget = existObj.target;
};
};
this.swapTarget = newTarget;
} else {
trace("FLASHEFF2 ERROR: The swapTargetInstanceName path is invalid.");
};
};
this.__swapTargetInstanceName = arg;
} else {
this.swapTarget = null;
};
}
public function set hideAutoPlay(_arg1:Boolean):void{
__hideAutoPlay = _arg1;
this.invalidate();
setDrawTime();
}
public function get textField():TextField{
return (this._textField);
}
public function removeShowTransition():void{
if (this.showPattern != null){
this.showPattern.remove();
this.showPattern = null;
this._showTransitionName = "";
};
}
public function removeHideTransition():void{
if (this.hidePattern != null){
this.hidePattern.remove();
this.hidePattern = null;
this._hideTransitionName = "";
};
}
public function get showTransitionName():String{
return (this._showTransitionName);
}
public function set drawAfterFilters(_arg1:Boolean):void{
if (_arg1 != this.drawAfterFilters){
if (_arg1 == true){
buttonTarget = this.aDBT;
aDBTO.addChild(this.buttonOwner);
} else {
buttonTarget = this.bDBT;
this.bDBTO.addChild(this.buttonOwner);
};
if (this.buttonEffect != null){
this.buttonEffect.target = this.buttonTarget;
};
};
this._drawAfterFilters = _arg1;
}
public function get swapTargetInstanceName():String{
return (this.__swapTargetInstanceName);
}
public function set swapTransitionName(_arg1:String):void{
var patternClass:Class;
var arg = _arg1;
if (arg != ""){
try {
patternClass = (getDefinitionByName(arg) as Class);
if (this.swapPattern != null){
this.swapPattern.remove();
};
this.swapPattern = new patternClass(this);
} catch(e:ReferenceError) {
throw ((("FLASHEFF2 ERROR: The pattern '" + arg) + "' is missing from library."));
};
this._swapTransitionName = arg;
};
}
public function applyButtonEffect():void{
this.setButtonEvents();
this.isButtonEffectApplyed = true;
this.highestOwner.mouseChildren = false;
}
public function get textOwnerClip():Sprite{
return (_textOwnerClip);
}
public function get partialPatternName():String{
return (__partialPattern);
}
public function get partialTextOwnerClip():Sprite{
return (_partialTextOwnerClip);
}
public function buttonRollOut():void{
rollOutButtonHandler(null, true);
}
eventTypeAsoc["rollOver"] = "ROLL_OVER";
eventTypeAsoc["rollOut"] = "ROLL_OUT";
eventTypeAsoc["press"] = "MOUSE_DOWN";
eventTypeAsoc["release"] = "MOUSE_UP";
eventTypeAsoc["doubleClick"] = "DOUBLE_CLICK";
eventTypeAsoc["showTransitionStart"] = "";
eventTypeAsoc["showTransitionEnd"] = "";
eventTypeAsoc["hideTransitionStart"] = "";
eventTypeAsoc["hideTransitionEnd"] = "";
}
}//package
Section 159
//HitTest (HitTest)
package {
import flash.display.*;
import flash.geom.*;
public class HitTest {
protected static function getDrawMatrix(_arg1:DisplayObject, _arg2:Rectangle, _arg3:Number):Matrix{
var _local4:Point;
var _local5:Matrix;
var _local6:Matrix;
_local6 = _arg1.root.transform.concatenatedMatrix;
_local4 = _arg1.localToGlobal(new Point());
_local5 = _arg1.transform.concatenatedMatrix;
_local5.tx = (_local4.x - _arg2.x);
_local5.ty = (_local4.y - _arg2.y);
_local5.a = (_local5.a / _local6.a);
_local5.d = (_local5.d / _local6.d);
if (_arg3 != 1){
_local5.scale(_arg3, _arg3);
};
return (_local5);
}
public static function complexHitTestObject(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=1):Boolean{
return (!((complexIntersectionRectangle(_arg1, _arg2, _arg3).width == 0)));
}
public static function complexIntersectionRectangle(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=1):Rectangle{
var _local4:Rectangle;
var _local5:BitmapData;
var _local6:Rectangle;
if (_arg3 <= 0){
throw (new Error("ArgumentError: Error #5001: Invalid value for accurracy", 5001));
};
if (!_arg1.hitTestObject(_arg2)){
return (new Rectangle());
};
_local4 = intersectionRectangle(_arg1, _arg2);
if (((((_local4.width * _arg3) < 1)) || (((_local4.height * _arg3) < 1)))){
return (new Rectangle());
};
_local5 = new BitmapData((_local4.width * _arg3), (_local4.height * _arg3), false, 0);
_local5.draw(_arg1, HitTest.getDrawMatrix(_arg1, _local4, _arg3), new ColorTransform(1, 1, 1, 1, 0xFF, -255, -255, 0xFF));
_local5.draw(_arg2, HitTest.getDrawMatrix(_arg2, _local4, _arg3), new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0xFF, 0xFF), BlendMode.DIFFERENCE);
_local6 = _local5.getColorBoundsRect(4294967295, 4278255615);
_local5.dispose();
if (_arg3 != 1){
_local6.x = (_local6.x / _arg3);
_local6.y = (_local6.y / _arg3);
_local6.width = (_local6.width / _arg3);
_local6.height = (_local6.height / _arg3);
};
_local6.x = (_local6.x + _local4.x);
_local6.y = (_local6.y + _local4.y);
return (_local6);
}
public static function intersectionRectangle(_arg1:DisplayObject, _arg2:DisplayObject):Rectangle{
var _local3:Rectangle;
var _local4:Rectangle;
var _local5:Rectangle;
if (((((!(_arg1.root)) || (!(_arg2.root)))) || (!(_arg1.hitTestObject(_arg2))))){
return (new Rectangle());
};
_local3 = _arg1.getBounds(_arg1.root);
_local4 = _arg2.getBounds(_arg2.root);
_local5 = new Rectangle();
_local5.x = Math.max(_local3.x, _local4.x);
_local5.y = Math.max(_local3.y, _local4.y);
_local5.width = Math.min(((_local3.x + _local3.width) - _local5.x), ((_local4.x + _local4.width) - _local5.x));
_local5.height = Math.min(((_local3.y + _local3.height) - _local5.y), ((_local4.y + _local4.height) - _local5.y));
return (_local5);
}
}
}//package
Section 160
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 161
//Var (Var)
package {
import gs.*;
import flash.events.*;
public class Var {
public static var txt:String = "";
public static var playback:Boolean = false;
public static function Over(_arg1:MouseEvent):void{
TweenLite.to(_arg1.currentTarget, 0.1, {scaleX:1.2, scaleY:1.2});
}
public static function Out(_arg1:MouseEvent):void{
TweenLite.to(_arg1.currentTarget, 0.3, {scaleX:1, scaleY:1});
}
}
}//package