STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229494
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2575 · P5149

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/13486394?noj=FRM13486394-14DC" width="1" height="1"></div>

Joe by joeaucca.swf

This is the info page for
Flash #210118

(Click the ID number above for more basic data on this flash file.)


Text






OFFLINE





ActionScript [AS3]

Section 1
//analogvu_2 (aacplayer_fla.analogvu_2) package aacplayer_fla { import flash.display.*; public dynamic class analogvu_2 extends MovieClip { public var arm:MovieClip; } }//package aacplayer_fla
Section 2
//analogvu_4 (aacplayer_fla.analogvu_4) package aacplayer_fla { import flash.display.*; public dynamic class analogvu_4 extends MovieClip { public var arm:MovieClip; } }//package aacplayer_fla
Section 3
//autoFalante_4 (aacplayer_fla.autoFalante_4) package aacplayer_fla { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.geom.*; import flash.filters.*; import flash.text.*; import flash.media.*; import flash.net.*; import flash.system.*; import flash.ui.*; import flash.accessibility.*; import flash.errors.*; public dynamic class autoFalante_4 extends MovieClip { public var autoLeft:MovieClip; public var ba:ByteArray; public var f:Number; public var n:Number; public var time:Timer; public function autoFalante_4(){ addFrameScript(0, frame1); } public function diptimer(_arg1:TimerEvent):void{ var _local2:* = null; var _local3:* = 0; var _local4:* = undefined; f = 1; n = 1; _local3 = 0; _local2 = _arg1; try { if (f > 0){ f = (f - 0); }; if (f < 0){ f = 0; }; ba = new ByteArray(); SoundMixer.computeSpectrum(ba, true, 0); _local3 = 0; while (_local3 < 0x0200) { n = ba.readFloat(); if (n > f){ f = n; }; if (_local3 < 0x0100){ autoLeft.width = (f * 75); autoLeft.height = (f * 75); }; _local3 = (_local3 + 1); }; } catch(ev:Error) { }; } function frame1(){ f = 0; n = 0; time = new Timer(1, 0); time.addEventListener("timer", diptimer); time.start(); } } }//package aacplayer_fla
Section 4
//blue_spectrum_10 (aacplayer_fla.blue_spectrum_10) package aacplayer_fla { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.geom.*; import flash.filters.*; import flash.text.*; import flash.media.*; import flash.net.*; import flash.system.*; import flash.ui.*; import flash.accessibility.*; import flash.errors.*; public dynamic class blue_spectrum_10 extends MovieClip { public const SPECTRUM_HEIGHT:int = 130; public const CHANNEL_LENGTH:int = 0x0100; public const _WIDTH:int = 5; public var spectrumHit:MovieClip; public var spectrum:MovieClip; public var currentEffect:Number; public var changeEnabled:Boolean; public var ba:ByteArray; public var spectrumModes:Array; public var colors:Array; public var barColor:uint; public var spectrumTm:Timer; public function blue_spectrum_10(){ addFrameScript(0, frame1); } public function spectrumClick(_arg1:MouseEvent){ var _local2:*; if (changeEnabled){ if ((spectrumModes.length - 1) > currentEffect){ currentEffect++; } else { currentEffect = 0; }; }; } public function renderSpectrum(_arg1:TimerEvent):void{ var e:TimerEvent; var loc1:*; var arg1 = _arg1; e = arg1; try { spectrumModes[currentEffect].call(null); } catch(e:Error) { trace(("error: " + e)); }; } public function singleLine(){ var _local1:* = NaN; var _local2:* = 0; var _local3:* = 0; var _local4:* = spectrum.graphics; _local4.clear(); SoundMixer.computeSpectrum(ba, false, 0); var _local5:* = SPECTRUM_HEIGHT; var _local6:* = [0, (SPECTRUM_HEIGHT - (SPECTRUM_HEIGHT / 4)), SPECTRUM_HEIGHT]; var _local7:* = SpreadMethod.PAD; _local4.beginFill(barColor, 1); _local4.moveTo(0, 0); _local4.endFill(); _local4.lineStyle(1, barColor); _local2 = 0; while (_local2 < CHANNEL_LENGTH) { _local1 = ba.readFloat(); _local1 = ba.readFloat(); _local1 = (_local1 * _local5); _local4.lineTo(_local2, -(_local1)); _local2 = (_local2 + 2); }; } public function vlines(){ var _local1:* = NaN; var _local2:* = 0; var _local3:* = 0; var _local4:* = spectrum.graphics; _local4.clear(); SoundMixer.computeSpectrum(ba, false, 0); var _local5:* = SPECTRUM_HEIGHT; var _local6:* = [0, (SPECTRUM_HEIGHT - (SPECTRUM_HEIGHT / 4)), SPECTRUM_HEIGHT]; var _local7:* = SpreadMethod.PAD; _local4.beginFill(barColor, 1); _local4.moveTo(0, 0); _local4.drawRect(0, -1, CHANNEL_LENGTH, 2); _local4.endFill(); _local2 = _WIDTH; while (_local2 < CHANNEL_LENGTH) { _local3 = 0; while (_local3 < _WIDTH) { _local1 = ba.readFloat(); _local3++; }; _local1 = (_local1 * _local5); _local4.beginFill(colors[1], 1); _local4.drawRect((_local2 - 1), 0, 1, -(_local1)); _local4.endFill(); _local2 = (_local2 + _WIDTH); }; _local2 = _WIDTH; while (_local2 < CHANNEL_LENGTH) { _local3 = 0; while (_local3 < _WIDTH) { _local1 = ba.readFloat(); _local3++; }; _local1 = (_local1 * _local5); _local4.beginFill(colors[1], 1); _local4.drawRect((_local2 - 1), 0, 1, _local1); _local4.endFill(); _local2 = (_local2 + _WIDTH); }; } public function curves_fill(){ var _local1:* = NaN; var _local2:* = 0; var _local3:* = spectrum.graphics; _local3.clear(); var _local4:* = SPECTRUM_HEIGHT; SoundMixer.computeSpectrum(ba, false, 0); _local3.beginFill(barColor, 1); _local3.moveTo(0, 0); _local3.drawRect(0, -1, CHANNEL_LENGTH, 2); _local3.endFill(); _local3.beginFill(barColor, 1); _local3.moveTo(0, 0); _local2 = 1; while (_local2 < CHANNEL_LENGTH) { _local1 = ba.readFloat(); _local1 = (((3 * _local1) * _local4) / 4); _local3.lineTo(_local2, -(_local1)); _local2 = (_local2 + 2); }; _local2 = CHANNEL_LENGTH; while (_local2 > 1) { _local1 = ba.readFloat(); _local1 = (((3 * _local1) * _local4) / 4); _local3.lineTo(_local2, _local1); _local2 = (_local2 - 2); }; _local3.endFill(); } public function dots(){ var _local1:* = NaN; var _local2:* = 0; var _local3:* = spectrum.graphics; _local3.clear(); var _local4:* = SPECTRUM_HEIGHT; SoundMixer.computeSpectrum(ba, false, 0); _local3.beginFill(barColor, 1); _local3.moveTo(0, 0); _local3.drawRect(0, -1, CHANNEL_LENGTH, 2); _local3.endFill(); _local3.beginFill(barColor, 1); _local3.moveTo(0, 0); _local2 = 0; while (_local2 < CHANNEL_LENGTH) { _local1 = ba.readFloat(); _local1 = (_local4 * _local1); _local3.drawCircle(_local2, -(_local1), 1); _local2 = (_local2 + 2); }; _local2 = CHANNEL_LENGTH; while (_local2 > 0) { _local1 = ba.readFloat(); _local1 = (_local4 * _local1); _local3.drawCircle(_local2, _local1, 1); _local2 = (_local2 - 2); }; _local3.endFill(); } public function super1(){ var _local1:* = NaN; var _local2:* = 0; var _local3:* = 0; var _local4:* = null; var _local5:* = null; var _local6:* = spectrum.graphics; _local6.clear(); SoundMixer.computeSpectrum(ba, true, 0); var _local7:* = [0, (SPECTRUM_HEIGHT - (SPECTRUM_HEIGHT / 4)), SPECTRUM_HEIGHT]; var _local8:* = SpreadMethod.PAD; _local6.beginFill(barColor, 1); _local6.moveTo(0, 0); _local6.drawRect(0, -1, CHANNEL_LENGTH, 2); _local6.endFill(); _local2 = _WIDTH; while (_local2 < CHANNEL_LENGTH) { _local1 = ba.readFloat(); _local1 = Math.min((_local1 * SPECTRUM_HEIGHT), SPECTRUM_HEIGHT); _local4 = new Matrix(); _local4.createGradientBox(CHANNEL_LENGTH, -(_local1), (Math.PI / 2)); _local6.beginGradientFill(GradientType.LINEAR, colors, [1, 1, 1], _local7, _local4, _local8); _local6.moveTo((_local2 - 2), 0); _local6.curveTo(((_local2 + (_WIDTH / 2)) - (_WIDTH / 10)), (_local1 / 10), (_local2 + (_WIDTH / 2)), -(_local1)); _local6.curveTo(((_local2 + (_WIDTH / 2)) + (_WIDTH / 10)), (_local1 / 10), ((_local2 + _WIDTH) + 2), 0); _local6.endFill(); _local2 = (_local2 + _WIDTH); }; _local3 = 0; while (_local3 < (CHANNEL_LENGTH - (0x0100 / _WIDTH))) { _local1 = ba.readFloat(); _local3++; }; _local2 = _WIDTH; while (_local2 < CHANNEL_LENGTH) { _local1 = ba.readFloat(); _local1 = Math.min((_local1 * SPECTRUM_HEIGHT), SPECTRUM_HEIGHT); _local5 = new Matrix(); _local5.createGradientBox(CHANNEL_LENGTH, _local1, (Math.PI / 2)); _local6.beginGradientFill(GradientType.LINEAR, colors, [1, 1, 1], _local7, _local5, _local8); _local6.moveTo((_local2 - 1), 0); _local6.curveTo((_local2 + (_WIDTH / 2)), (_local1 / 6), (_local2 + (_WIDTH / 2)), _local1); _local6.curveTo((_local2 + (_WIDTH / 2)), (_local1 / 6), ((_local2 + _WIDTH) + 2), 0); _local6.endFill(); _local2 = (_local2 + _WIDTH); }; } public function super2(){ var _local1:* = NaN; var _local2:* = 0; var _local3:* = 0; var _local4:* = null; var _local5:* = null; var _local6:* = spectrum.graphics; _local6.clear(); SoundMixer.computeSpectrum(ba, false, 0); var _local7:* = [0, (SPECTRUM_HEIGHT - (SPECTRUM_HEIGHT / 4)), SPECTRUM_HEIGHT]; var _local8:* = SpreadMethod.PAD; _local6.beginFill(barColor, 1); _local6.moveTo(0, 0); _local6.drawRect(0, -1, CHANNEL_LENGTH, 2); _local6.endFill(); _local2 = _WIDTH; while (_local2 < CHANNEL_LENGTH) { _local3 = 0; while (_local3 < _WIDTH) { _local1 = ba.readFloat(); _local3++; }; _local1 = (_local1 * SPECTRUM_HEIGHT); _local4 = new Matrix(); _local4.createGradientBox(CHANNEL_LENGTH, -(_local1), (Math.PI / 2)); _local6.beginGradientFill(GradientType.LINEAR, colors, [1, 1, 1], _local7, _local4, _local8); _local6.moveTo((_local2 - 2), 0); _local6.curveTo(((_local2 + (_WIDTH / 3)) - (_WIDTH / 10)), (_local1 / 6), (_local2 + (_WIDTH / 2)), -(_local1)); _local6.curveTo(((_local2 + (_WIDTH / 3)) + (_WIDTH / 10)), (_local1 / 6), ((_local2 + _WIDTH) + 2), 0); _local6.endFill(); _local2 = (_local2 + _WIDTH); }; _local2 = _WIDTH; while (_local2 < CHANNEL_LENGTH) { _local3 = 0; while (_local3 < _WIDTH) { _local1 = ba.readFloat(); _local3++; }; _local1 = (_local1 * SPECTRUM_HEIGHT); _local5 = new Matrix(); _local5.createGradientBox(CHANNEL_LENGTH, _local1, (Math.PI / 2)); _local6.beginGradientFill(GradientType.LINEAR, colors, [1, 1, 1], _local7, _local5, _local8); _local6.moveTo((_local2 - 1), 0); _local6.curveTo((_local2 + (_WIDTH / 3)), (_local1 / 6), (_local2 + (_WIDTH / 2)), _local1); _local6.curveTo((_local2 + (_WIDTH / 3)), (_local1 / 6), ((_local2 + _WIDTH) + 2), 0); _local6.endFill(); _local2 = (_local2 + _WIDTH); }; } function frame1(){ currentEffect = 0; changeEnabled = true; spectrumHit.addEventListener(MouseEvent.CLICK, spectrumClick); ba = new ByteArray(); spectrumModes = [super1, super2, dots, curves_fill, vlines, singleLine]; colors = [0xFFFFFF, 0xFFFFFF, 0xFFFFFF]; barColor = 0xFF; spectrumTm = new Timer(40, 0); spectrumTm.addEventListener("timer", renderSpectrum); spectrumTm.start(); } } }//package aacplayer_fla
Section 5
//btnPlayPause_47 (aacplayer_fla.btnPlayPause_47) package aacplayer_fla { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.geom.*; import flash.filters.*; import flash.text.*; import flash.media.*; import flash.net.*; import flash.system.*; import flash.ui.*; import flash.accessibility.*; import flash.errors.*; public dynamic class btnPlayPause_47 extends MovieClip { public function btnPlayPause_47(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package aacplayer_fla
Section 6
//btnStop_49 (aacplayer_fla.btnStop_49) package aacplayer_fla { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.geom.*; import flash.filters.*; import flash.text.*; import flash.media.*; import flash.net.*; import flash.system.*; import flash.ui.*; import flash.accessibility.*; import flash.errors.*; public dynamic class btnStop_49 extends MovieClip { public function btnStop_49(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package aacplayer_fla
Section 7
//Sprite452_27 (aacplayer_fla.Sprite452_27) package aacplayer_fla { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.geom.*; import flash.filters.*; import flash.text.*; import flash.media.*; import flash.net.*; import flash.system.*; import flash.ui.*; import flash.accessibility.*; import flash.errors.*; public dynamic class Sprite452_27 extends MovieClip { public function Sprite452_27(){ addFrameScript(184, frame185); } function frame185(){ stop(); } } }//package aacplayer_fla
Section 8
//Knob (com.aacplayer.addons.Knob) package com.aacplayer.addons { import flash.display.*; import flash.events.*; import flash.geom.*; import flash.text.*; import flash.ui.*; public class Knob extends Sprite { var dial:Shape; var labelField:TextField; var valueField:TextField; var clickPoint:Point; var clickRotation:Number; var targetRotation:Number;// = 0 var minValue:Number; var maxValue:Number; var unit:String; var outputPreprocessor:Function; var outputProcessorParams:Array; var precision:Number; var defaultValue:Number; var _currentValue:Number; var shift:Boolean; var control:Boolean; public static const MIN_ROTATION:int = -160; public static const MAX_ROTATION:int = 130; public static const EASING:int = 3; public static const RADIUS:int = 12; public static const RESPONSIVNESS:Number = 4; public function Knob(_arg1:String, _arg2:Number=0, _arg3:Number=100, _arg4:Number=0, _arg5:String="", _arg6:int=6, _arg7:Number=1, _arg8:Function=null, ... _args){ this.minValue = _arg2; this.maxValue = _arg3; this.unit = _arg5; this.defaultValue = Math.min(Math.max(_arg4, _arg2), _arg3); this.outputPreprocessor = _arg8; this.outputProcessorParams = _args; graphics.lineStyle(1, 0, 0.1); graphics.beginFill(0, 0.15); graphics.drawCircle(0, 0, (RADIUS * 1.5)); drawTick(MIN_ROTATION, 0xFFFFFF); var _local10:* = ((MAX_ROTATION - MIN_ROTATION) / (_arg6 + 1)); var _local11:* = 1; while (_local11 <= _arg6) { drawTick((MIN_ROTATION + (_local11 * _local10)), 0x888888); _local11++; }; drawTick(MAX_ROTATION, 0x444444); this.precision = _arg7; dial = new Shape(); dial.graphics.lineStyle(2, 0x333333); dial.graphics.beginFill(0x222222); dial.graphics.drawCircle(0, 0, RADIUS); dial.graphics.lineStyle(1, 0xDDDDDD); dial.graphics.moveTo(0, 0); dial.graphics.lineTo(0, -11); addChild(dial); labelField = new TextField(); labelField.defaultTextFormat = new TextFormat("_sans", 9, 0xBBBBBB); labelField.selectable = false; labelField.text = _arg1; labelField.autoSize = TextFieldAutoSize.LEFT; labelField.antiAliasType = AntiAliasType.ADVANCED; labelField.x = ((-(labelField.textWidth) * 0.5) - 2); labelField.y = 15; labelField.mouseEnabled = false; addChild(labelField); valueField = new TextField(); valueField.defaultTextFormat = new TextFormat("_sans", 8, 0x444444, null, null, null, null, null, "center"); valueField.selectable = false; valueField.antiAliasType = AntiAliasType.ADVANCED; valueField.x = -50; valueField.width = 100; valueField.y = 25; valueField.mouseEnabled = false; addChild(valueField); doubleClickEnabled = true; value = _arg4; addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); addEventListener(MouseEvent.DOUBLE_CLICK, resetHandler); addEventListener(Event.ADDED_TO_STAGE, stageInHandler); addEventListener(Event.REMOVED_FROM_STAGE, stageOutHandler); } function calcRotation(_arg1:Number):Number{ return (((((_arg1 - minValue) / (maxValue - minValue)) * (MAX_ROTATION - MIN_ROTATION)) + MIN_ROTATION)); } function mouseDownHandler(_arg1:MouseEvent):void{ stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler); stage.addEventListener(MouseEvent.MOUSE_MOVE, changeHandler); clickPoint = new Point(mouseX, mouseY); clickRotation = dial.rotation; } function resetHandler(_arg1:MouseEvent):void{ var _local2:* = defaultValue; if (((shift) && (control))){ _local2 = (((maxValue - minValue) * 0.5) + minValue); } else { if (shift){ _local2 = maxValue; } else { if (control){ _local2 = minValue; }; }; }; animateToValue(_local2); } function stageInHandler(_arg1:Event):void{ stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler); stage.addEventListener(KeyboardEvent.KEY_UP, keyUpHandler); } function stageOutHandler(_arg1:Event):void{ stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler); stage.removeEventListener(KeyboardEvent.KEY_UP, keyDownHandler); } function keyDownHandler(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.SHIFT){ shift = true; }; if (_arg1.keyCode == Keyboard.CONTROL){ control = true; }; } function keyUpHandler(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.SHIFT){ shift = false; }; if (_arg1.keyCode == Keyboard.CONTROL){ control = false; }; } function mouseUpHandler(_arg1:MouseEvent):void{ stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler); stage.removeEventListener(MouseEvent.MOUSE_MOVE, changeHandler); } function changeHandler(_arg1:MouseEvent):void{ var _local2:* = (clickPoint.y - mouseY); targetRotation = Math.min(Math.max((clickRotation + (_local2 * RESPONSIVNESS)), MIN_ROTATION), MAX_ROTATION); addEventListener(Event.ENTER_FRAME, enterFrameHandler); } function enterFrameHandler(_arg1:Event):void{ dial.rotation = (dial.rotation + ((targetRotation - dial.rotation) / EASING)); _currentValue = ((((dial.rotation - MIN_ROTATION) / (MAX_ROTATION - MIN_ROTATION)) * (maxValue - minValue)) + minValue); if (outputPreprocessor != null){ _currentValue = outputPreprocessor.apply(_currentValue, outputProcessorParams); }; updateValueField(); dispatchEvent(new Event(Event.CHANGE)); if (Math.abs((targetRotation - dial.rotation)) < 0.01){ removeEventListener(Event.ENTER_FRAME, enterFrameHandler); }; } function updateValueField():void{ var _local1:* = Number((Math.round((_currentValue / precision)) * precision)); _local1 = (Math.round((_local1 * 100)) / 100); valueField.text = (_local1.toString() + unit); } public function animateToValue(_arg1:Number):void{ targetRotation = calcRotation(_arg1); addEventListener(Event.ENTER_FRAME, enterFrameHandler); } public function get value():Number{ return (_currentValue); } public function set value(_arg1:Number):void{ var _local2:*; _currentValue = _arg1; _local2 = calcRotation(_arg1); targetRotation = _local2; dial.rotation = _local2; updateValueField(); } public function getMinValue():Number{ return (minValue); } public function getMaxValue():Number{ return (maxValue); } function drawTick(_arg1:Number, _arg2:uint):void{ graphics.moveTo(0, 0); graphics.lineStyle(1, _arg2); var _local3:* = (((_arg1 - 90) / 180) * Math.PI); graphics.lineTo(((Math.cos(_local3) * RADIUS) * 1.3), ((Math.sin(_local3) * RADIUS) * 1.3)); } } }//package com.aacplayer.addons
Section 9
//Visualization (com.aacplayer.addons.Visualization) package com.aacplayer.addons { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.media.*; public class Visualization extends Sprite { var line:Shape; var _enabled:Boolean; var _width:int; var _height:int; public function Visualization(_arg1:int, _arg2:int){ line = new Shape(); addChild(line); _width = _arg1; _height = _arg2; } function enterFrameHandler(_arg1:Event):void{ var event:Event; var ba:ByteArray; var off:Number; var i:int; var loc1:*; var loc2:*; var loc3:*; var arg1 = _arg1; event = arg1; ba = new ByteArray(); SoundMixer.computeSpectrum(ba, false); off = 0; i = 0; var _local3 = line.graphics; loc2 = _local3; with (_local3) { clear(); moveTo(0, (_height >> 1)); lineStyle(1, 0xDD0000, 0.6); i = 0; while (i < 0x0200) { if ((((i >= 0xFF)) && ((off == 0)))){ off = _width; lineTo(_width, (_height >> 1)); lineStyle(3, 15606306, 0.2); moveTo(0, 0); }; lineTo((((i / 0x0100) * _width) - off), ((-(ba.readFloat()) * 125) + (_height >> 1))); i++; }; }; } public function set enabled(_arg1:Boolean):void{ _enabled = _arg1; if (_enabled){ addEventListener(Event.ENTER_FRAME, enterFrameHandler); } else { removeEventListener(Event.ENTER_FRAME, enterFrameHandler); }; } public function get enabled():Boolean{ return (_enabled); } } }//package com.aacplayer.addons
Section 10
//ArtistImage (com.aacplayer.ArtistImage) package com.aacplayer { import flash.display.*; import flash.events.*; import com.caurina.transitions.*; import flash.utils.*; import flash.text.*; import flash.net.*; import flash.system.*; public class ArtistImage extends MovieClip { var xml:XML; var urlLoader:URLLoader; var imageLoader:Loader; var ImageHeight:Number; var ImageWidth:Number; var AreaMask:Sprite; var picbox:MovieClip; var ArtistName:String; public var StatTimer:Timer; public var TimerDuration:Number;// = 30000 public var ApiKey:String;// = "" public var Method:String;// = "artist.getinfo" public var ApiHost:String;// = "http://ws.audioscrobbler.com/2.0/" public function ArtistImage(_arg1:Number, _arg2:Number, _arg3:String){ PluginHolder = new MovieClip(); picbox = new MovieClip(); this.addChild(PluginHolder); ImageHeight = _arg2; ImageWidth = _arg1; ApiKey = _arg3; PluginHolder.addChild(picbox); } public function LoadArtistInfo(_arg1):void{ if ((((Trim(_arg1) == "")) || ((Trim(_arg1) == "[Unknown]")))){ while (picbox.numChildren) { picbox.removeChildAt(0); }; while (PluginHolder.numChildren) { PluginHolder.removeChildAt(0); }; return; }; ArtistName = _arg1; var _local2:* = ((((((ApiHost + "?method=") + Method) + "&artist=") + escape(_arg1.toLowerCase())) + "&api_key=") + ApiKey); xmlLoader_aritst = new URLLoader(); xmlData_aritst = new XML(); xmlLoader_aritst.addEventListener(Event.COMPLETE, LoadArtistXML); xmlLoader_aritst.addEventListener(IOErrorEvent.IO_ERROR, handleIOError); xmlLoader_aritst.addEventListener(HTTPStatusEvent.HTTP_STATUS, handleHttpStatus); xmlLoader_aritst.addEventListener(SecurityErrorEvent.SECURITY_ERROR, handleSecurityError); xmlLoader_aritst.load(new URLRequest(_local2)); } function handleIOError(_arg1:IOErrorEvent):void{ } function handleHttpStatus(_arg1:HTTPStatusEvent):void{ } function handleSecurityError(_arg1:SecurityErrorEvent):void{ } public function UnloadImage():void{ while (picbox.numChildren) { picbox.removeChildAt(0); }; while (PluginHolder.numChildren) { PluginHolder.removeChildAt(0); }; } function LoadArtistXML(_arg1:Event){ xmlData_aritst = new XML(_arg1.target.data); xmlData_aritst = xmlData_aritst.replace(String.fromCharCode(65279), ""); ParseArtistInfo(xmlData_aritst); } function ParseArtistInfo(_arg1:XML){ var ArtistInfo:XML; var imageurl:String; var loc1:*; var loc3:*; var loc4:*; var loc2:*; var loc5:*; var loc6:*; var arg1 = _arg1; imageurl = null; ArtistInfo = arg1; if (("image" in ArtistInfo.artist)){ loc3 = 0; loc4 = ArtistInfo.artist.image; loc2 = new XMLList(""); for each (loc5 in loc4) { var _local5 = loc5; loc6 = _local5; with (_local5) { if (@size == "mega"){ loc2[loc3] = loc5; }; }; }; imageurl = loc2; if (Trim(imageurl) == ""){ while (picbox.numChildren) { picbox.removeChildAt(0); }; while (PluginHolder.numChildren) { PluginHolder.removeChildAt(0); }; trace("artist image not available..."); return; }; if (imageLoader != null){ try { PluginHolder.picbox.removeChild(imageLoader); imageLoader.unload(); imageLoader = null; while (PluginHolder.picbox.numChildren) { PluginHolder.picbox.removeChildAt(0); }; } catch(e:Error) { }; }; imageLoader = new Loader(); try { imageLoader.load(new URLRequest(imageurl)); imageLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imageLoading); imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded); } catch(e:Error) { }; } else { while (picbox.numChildren) { picbox.removeChildAt(0); }; while (PluginHolder.numChildren) { PluginHolder.removeChildAt(0); }; }; } function imageLoaded(_arg1:Event):void{ var _local4:*; var _local2:* = new TextField(); while (picbox.numChildren) { picbox.removeChildAt(0); }; while (PluginHolder.numChildren) { PluginHolder.removeChildAt(0); }; picbox.addChild(imageLoader); PluginHolder.addChild(picbox); imageLoader.width = 100; imageLoader.height = 100; imageLoader.alpha = 5.8; picbox.x = -((ImageWidth + 10)); Tweener.addTween(picbox, {x:0, time:1, transition:"easeOutCubic"}); AreaMask = new Sprite(); AreaMask.graphics.beginFill(2768533); AreaMask.graphics.drawRect(0, 0, ImageWidth, ImageHeight); AreaMask.graphics.endFill(); AreaMask.y = 0; AreaMask.x = 0; PluginHolder.addChild(AreaMask); picbox.mask = AreaMask; _local2.text = ArtistName; _local2.width = 315; _local2.x = (imageLoader.width + 15); _local2.y = 0; _local2.selectable = false; _local2.border = false; _local2.autoSize = TextFieldAutoSize.LEFT; _local2.antiAliasType = AntiAliasType.ADVANCED; var _local3:* = new TextFormat(); _local3.font = "arial"; _local3.color = 0xFFFFFF; _local3.size = 12; _local3.italic = true; _local2.setTextFormat(_local3); _local4 = new Sprite(); _local4.graphics.beginFill(0x555555); _local4.graphics.endFill(); _local4.alpha = 0.1; PluginHolder.addChildAt(_local4, 0); } function imageLoading(_arg1:ProgressEvent):void{ } function LTrim(_arg1:String):String{ var _local2:* = 0; while ((((_local2 < _arg1.length)) && ((_arg1.substr(_local2, 1) == " ")))) { _local2++; }; return (_arg1.substr(_local2, (_arg1.length - _local2))); } function RTrim(_arg1:String):String{ var _local2:* = (_arg1.length - 1); while ((((_local2 > 0)) && ((_arg1.substr(_local2, 1) == " ")))) { _local2--; }; return (_arg1.substr(0, (_local2 + 1))); } function Trim(_arg1:String){ return (LTrim(RTrim(_arg1))); } } }//package com.aacplayer
Section 11
//ArtistImage3 (com.aacplayer.ArtistImage3) package com.aacplayer { import flash.display.*; import flash.events.*; import com.caurina.transitions.*; import flash.utils.*; import flash.text.*; import flash.net.*; import flash.system.*; public class ArtistImage3 extends MovieClip { var xml:XML; var urlLoader:URLLoader; var imageLoader:Loader; var ImageHeight:Number; var ImageWidth:Number; var AreaMask:Sprite; var picbox:MovieClip; var ArtistName:String; public var StatTimer:Timer; public var TimerDuration:Number;// = 30000 public var ApiKey:String;// = "" public var Method:String;// = "artist.getinfo" public var ApiHost:String;// = "http://ws.audioscrobbler.com/2.0/" public function ArtistImage3(_arg1:Number, _arg2:Number, _arg3:String){ PluginHolder = new MovieClip(); picbox = new MovieClip(); this.addChild(PluginHolder); ImageHeight = _arg2; ImageWidth = _arg1; ApiKey = _arg3; PluginHolder.addChild(picbox); } public function LoadArtistInfo(_arg1):void{ if ((((Trim(_arg1) == "")) || ((Trim(_arg1) == "[Unknown]")))){ while (picbox.numChildren) { picbox.removeChildAt(0); }; while (PluginHolder.numChildren) { PluginHolder.removeChildAt(0); }; return; }; ArtistName = _arg1; var _local2:* = ((((((ApiHost + "?method=") + Method) + "&artist=") + escape(_arg1.toLowerCase())) + "&api_key=") + ApiKey); xmlLoader_aritst = new URLLoader(); xmlData_aritst = new XML(); xmlLoader_aritst.addEventListener(Event.COMPLETE, LoadArtistXML); xmlLoader_aritst.addEventListener(IOErrorEvent.IO_ERROR, handleIOError); xmlLoader_aritst.addEventListener(HTTPStatusEvent.HTTP_STATUS, handleHttpStatus); xmlLoader_aritst.addEventListener(SecurityErrorEvent.SECURITY_ERROR, handleSecurityError); xmlLoader_aritst.load(new URLRequest(_local2)); } function handleIOError(_arg1:IOErrorEvent):void{ } function handleHttpStatus(_arg1:HTTPStatusEvent):void{ } function handleSecurityError(_arg1:SecurityErrorEvent):void{ } public function UnloadImage():void{ while (picbox.numChildren) { picbox.removeChildAt(0); }; while (PluginHolder.numChildren) { PluginHolder.removeChildAt(0); }; } function LoadArtistXML(_arg1:Event){ xmlData_aritst = new XML(_arg1.target.data); xmlData_aritst = xmlData_aritst.replace(String.fromCharCode(65279), ""); ParseArtistInfo(xmlData_aritst); } function ParseArtistInfo(_arg1:XML){ var ArtistInfo:XML; var imageurl:String; var loc1:*; var loc3:*; var loc4:*; var loc2:*; var loc5:*; var loc6:*; var arg1 = _arg1; imageurl = null; ArtistInfo = arg1; if (("image" in ArtistInfo.artist)){ loc3 = 0; loc4 = ArtistInfo.artist.image; loc2 = new XMLList(""); for each (loc5 in loc4) { var _local5 = loc5; loc6 = _local5; with (_local5) { if (@size == "mega"){ loc2[loc3] = loc5; }; }; }; imageurl = loc2; if (Trim(imageurl) == ""){ while (picbox.numChildren) { picbox.removeChildAt(0); }; while (PluginHolder.numChildren) { PluginHolder.removeChildAt(0); }; trace("artist image not available..."); return; }; if (imageLoader != null){ try { PluginHolder.picbox.removeChild(imageLoader); imageLoader.unload(); imageLoader = null; while (PluginHolder.picbox.numChildren) { PluginHolder.picbox.removeChildAt(0); }; } catch(e:Error) { }; }; imageLoader = new Loader(); try { imageLoader.load(new URLRequest(imageurl)); imageLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imageLoading); imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded); } catch(e:Error) { }; } else { while (picbox.numChildren) { picbox.removeChildAt(0); }; while (PluginHolder.numChildren) { PluginHolder.removeChildAt(0); }; }; } function imageLoaded(_arg1:Event):void{ var _local4:*; var _local2:* = new TextField(); while (picbox.numChildren) { picbox.removeChildAt(0); }; while (PluginHolder.numChildren) { PluginHolder.removeChildAt(0); }; picbox.addChild(imageLoader); PluginHolder.addChild(picbox); imageLoader.width = 120; imageLoader.height = 120; imageLoader.alpha = 5.8; picbox.x = -((ImageWidth + 10)); Tweener.addTween(picbox, {x:0, time:1, transition:"easeOutCubic"}); AreaMask = new Sprite(); AreaMask.graphics.beginFill(2768533); AreaMask.graphics.drawRect(0, 0, ImageWidth, ImageHeight); AreaMask.graphics.endFill(); AreaMask.y = 0; AreaMask.x = 0; PluginHolder.addChild(AreaMask); picbox.mask = AreaMask; _local2.text = ArtistName; _local2.width = 315; _local2.x = (imageLoader.width + 15); _local2.y = 0; _local2.selectable = false; _local2.border = false; _local2.autoSize = TextFieldAutoSize.LEFT; _local2.antiAliasType = AntiAliasType.ADVANCED; var _local3:* = new TextFormat(); _local3.font = "arial"; _local3.color = 0xFFFFFF; _local3.size = 12; _local3.italic = true; _local2.setTextFormat(_local3); _local4 = new Sprite(); _local4.graphics.beginFill(0x555555); _local4.graphics.endFill(); _local4.alpha = 0.1; PluginHolder.addChildAt(_local4, 0); } function imageLoading(_arg1:ProgressEvent):void{ } function LTrim(_arg1:String):String{ var _local2:* = 0; while ((((_local2 < _arg1.length)) && ((_arg1.substr(_local2, 1) == " ")))) { _local2++; }; return (_arg1.substr(_local2, (_arg1.length - _local2))); } function RTrim(_arg1:String):String{ var _local2:* = (_arg1.length - 1); while ((((_local2 > 0)) && ((_arg1.substr(_local2, 1) == " ")))) { _local2--; }; return (_arg1.substr(0, (_local2 + 1))); } function Trim(_arg1:String){ return (LTrim(RTrim(_arg1))); } } }//package com.aacplayer
Section 12
//StationStatus (com.aacplayer.StationStatus) package com.aacplayer { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.net.*; import flash.system.*; public class StationStatus extends Sprite { var xml:XML; var urlLoader:URLLoader; public var StationUrl:String; public var Status:String; public var ListenerCount:Number; public var PeakListeners:Number; public var Bitrate:String; public var Artist:String; public var Title:String; public var StatTimer:Timer; public var TimerDuration:Number;// = 30000 public function StationStatus(){ StationUrl = ""; ListenerCount = 0; StatTimer = new Timer(TimerDuration); StatTimer.addEventListener(TimerEvent.TIMER, ReLoadXML); } public function GetStatus(_arg1:String):void{ var _local2:* = (Capabilities.playerType == "External"); var _local3:* = ""; if (!_local2){ _local3 = ("?r=" + Math.round((Math.random() * 999))); }; StationUrl = (_arg1 + _local3); loadXML(StationUrl); StatTimer.start(); } function ReLoadXML(_arg1:Event):void{ loadXML(StationUrl); } function loadXML(_arg1:String):void{ try { urlLoader = new URLLoader(new URLRequest(_arg1)); urlLoader.addEventListener(Event.COMPLETE, parseXML); urlLoader.addEventListener(Event.COMPLETE, LoadArtistXML); urlLoader.addEventListener(IOErrorEvent.IO_ERROR, handleIOError); urlLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS, handleHttpStatus); urlLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, handleSecurityError); } catch(e:Error) { }; } function handleIOError(_arg1:IOErrorEvent):void{ } function handleHttpStatus(_arg1:HTTPStatusEvent):void{ } function handleSecurityError(_arg1:SecurityErrorEvent):void{ } function parseXML(_arg1:Event):void{ xml = new XML(_arg1.target.data); xml = xml.replace(String.fromCharCode(65279), ""); ListenerCount = xml.listeners.text(); Status = xml.status.text(); PeakListeners = xml.peaklisteners.text(); Bitrate = xml.bitrate.text(); Artist = xml.artist.text(); Title = xml.title.text(); dispatchEvent(new Event("ON_STATION_STATUS")); } } }//package com.aacplayer
Section 13
//SuperSimpleFLVPlayer (com.aacplayer.SuperSimpleFLVPlayer) package com.aacplayer { import flash.display.*; import flash.events.*; import flash.media.*; import flash.net.*; public class SuperSimpleFLVPlayer extends Sprite { var nc:NetConnection; var ns:NetStream; var vid:Video; var client:Object; public function SuperSimpleFLVPlayer(){ nc = new NetConnection(); nc.connect(null); ns = new NetStream(nc); client = new Object(); ns.client = client; ns.addEventListener(NetStatusEvent.NET_STATUS, netstat); client.onMetaData = nsMetaDataCallback; } public function initVideo(_arg1:Number, _arg2:Number):void{ vid = new Video(_arg1, _arg2); addChild(vid); vid.x = 0; vid.y = 0; vid.attachNetStream(ns); } function nsMetaDataCallback(_arg1:Object):void{ } public function PlayVideo(_arg1:String):void{ ns.play(_arg1); } function netstat(_arg1:NetStatusEvent):void{ var _local2:* = _arg1.info.code; switch (_local2){ case "NetStream.Play.Start": dispatchEvent(new Event("OnStart")); break; case "NetStream.Buffer.Full": break; case "NetStream.Buffer.Empty": break; case "NetStream.Buffer.Flush": break; case "NetStream.Play.Stop": dispatchEvent(new Event("OnStop")); break; }; } } }//package com.aacplayer
Section 14
//TimerDisplay (com.aacplayer.TimerDisplay) package com.aacplayer { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.text.*; public class TimerDisplay extends MovieClip { public var _delay:Number; public var _lastTime:Number; public var _thisTime:Number;// = 0 public var _elapsedTime:Number; public var _elapsedHours:Number; public var _elapsedMinutes:Number; public var _elapsedSeconds:Number; public var _timeLapse:String; public var timer:Timer; public function TimerDisplay(_arg1:Number){ timer = new Timer(_arg1); _delay = _arg1; timer.addEventListener(TimerEvent.TIMER, timerListener); } function timerListener(_arg1:TimerEvent):void{ _elapsedTime = (getTimer() - _lastTime); _timeLapse = timeToString(_elapsedTime); dispatchEvent(new Event("TIMER_COUNT")); } public function TimeLapse():String{ var _local1:* = null; if (_elapsedHours > 0){ _local1 = (((((_elapsedHours.toString() + " hour ") + _elapsedMinutes.toString()) + " minutes and ") + _elapsedSeconds.toString()) + " seconds"); }; if ((((_elapsedMinutes > 0)) && ((_elapsedHours == 0)))){ _local1 = (((_elapsedMinutes.toString() + " minutes and ") + _elapsedSeconds.toString()) + " seconds"); }; if ((((((_elapsedMinutes == 0)) && ((_elapsedHours == 0)))) && ((_elapsedSeconds > 0)))){ _local1 = (_elapsedSeconds.toString() + " seconds"); }; return (_local1); } public function StartCount():void{ _elapsedTime = 0; _lastTime = getTimer(); timer.start(); } public function PauseCount():void{ timer.stop(); _thisTime = (getTimer() - _lastTime); } public function ResumeCount():void{ _lastTime = (getTimer() - _thisTime); timer.start(); _thisTime = 0; } public function StopCount():void{ timer.stop(); } public function getTimeLapse():String{ return (_timeLapse); } function timeToString(_arg1){ var _local2:* = null; var _local3:* = null; var _local4:* = null; var _local5:* = null; _elapsedHours = Math.floor((_arg1 / 3600000)); var _local6:* = (_arg1 - (_elapsedHours * 3600000)); _elapsedMinutes = Math.floor((_local6 / 60000)); _local6 = (_local6 - (_elapsedMinutes * 60000)); _elapsedSeconds = Math.floor((_local6 / 1000)); _local6 = (_local6 - (_elapsedSeconds * 1000)); var _local7:* = Math.floor((_local6 / 10)); if (_elapsedHours < 10){ _local2 = ("0" + _elapsedHours.toString()); } else { _local2 = _elapsedHours.toString(); }; if (_elapsedMinutes < 10){ _local3 = ("0" + _elapsedMinutes.toString()); } else { _local3 = _elapsedMinutes.toString(); }; if (_elapsedSeconds < 10){ _local4 = ("0" + _elapsedSeconds.toString()); } else { _local4 = _elapsedSeconds.toString(); }; if (_local7 < 10){ _local5 = ("0" + _local7.toString()); } else { _local5 = _local7.toString(); }; return (((((_local2 + ":") + _local3) + ":") + _local4)); } } }//package com.aacplayer
Section 15
//CenterLine (com.anttikupila.revolt.drawers.CenterLine) package com.anttikupila.revolt.drawers { import flash.display.*; import flash.geom.*; public class CenterLine extends Drawer { var lineSprite:Sprite; var z:Number;// = 0 var yOffset:Number;// = 50 public function CenterLine(){ fourier = true; lineSprite = new Sprite(); } override public function drawGFX(_arg1:BitmapData, _arg2:Array):void{ var _local4:*; lineSprite.graphics.clear(); lineSprite.graphics.moveTo((_arg1.width / 2), ((_arg1.height / 2) + yOffset)); lineSprite.graphics.lineStyle(2, 0x990000); lineSprite.graphics.lineTo(((_arg1.width / 2) - ((_arg2[0] * _arg1.width) / 4)), ((_arg1.height / 2) + yOffset)); lineSprite.graphics.moveTo((_arg1.width / 2), ((_arg1.height / 2) + yOffset)); lineSprite.graphics.lineStyle(2, 0x9900); lineSprite.graphics.lineTo(((_arg1.width / 2) + ((_arg2[(_arg2.length / 2)] * _arg1.width) / 4)), ((_arg1.height / 2) + yOffset)); var _local3:* = (((Math.sin(z) * 20) / 180) * Math.PI); _local4 = new Matrix(); _local4.rotate(_local3); _local4.translate(0, (((-(Math.sin((_local3 * 2))) * _arg1.height) / 2) - (Math.pow(Math.sin((z * 5)), 2) * 10))); _arg1.draw(lineSprite, _local4, null, "screen"); z = (z + 0.02); } } }//package com.anttikupila.revolt.drawers
Section 16
//Drawer (com.anttikupila.revolt.drawers.Drawer) package com.anttikupila.revolt.drawers { import flash.display.*; public class Drawer { var _fourier:Boolean;// = true public function drawGFX(_arg1:BitmapData, _arg2:Array):void{ trace(("drawGFX is not defined for " + this)); } public function get fourier():Boolean{ return (_fourier); } public function set fourier(_arg1:Boolean):void{ _fourier = _arg1; } public function init():void{ } } }//package com.anttikupila.revolt.drawers
Section 17
//Exploder (com.anttikupila.revolt.drawers.Exploder) package com.anttikupila.revolt.drawers { import flash.display.*; public class Exploder extends Drawer { var pos:Number;// = 0 var lineSprite:Sprite; public function Exploder(){ lineSprite = new Sprite(); fourier = true; } override public function drawGFX(_arg1:BitmapData, _arg2:Array):void{ var _local3:* = undefined; var _local4:* = NaN; var _local5:* = 0; var _local6:* = NaN; var _local7:* = NaN; var _local8:* = NaN; var _local9:* = (_arg1.height * 0.75); lineSprite.graphics.clear(); lineSprite.graphics.beginFill(0xF09000); lineSprite.graphics.moveTo((((-(Math.sin(0)) * 2) + (_arg1.width / 2)) + ((_arg1.width / 8) * Math.sin(pos))), ((Math.cos(0) + (_arg1.height * 0.65)) + ((_arg1.height / 8) * Math.cos((pos / 2))))); var _local10:* = 0; var _local11:* = _arg2; for (_local3 in _local11) { _local4 = _arg2[_local3]; _local5 = _local3; if (_local3 < (_arg2.length / 2)){ _local5 = (_local5 + (_arg2.length / 2)); }; _local6 = Math.ceil(((_local9 / 2) * (_local4 + 0.5))); _local7 = (((((-(Math.sin(((_local3 / (_arg2.length / 2)) * Math.PI))) * _local6) * _local4) * 3) + (_arg1.width / 2)) + ((_arg1.width / 8) * Math.sin(pos))); _local8 = (((((Math.cos(((_local5 / (_arg2.length / 2)) * Math.PI)) * _local6) * _local4) / 2) + (_arg1.height * 0.65)) + ((_arg1.height / 8) * Math.cos((pos / 2)))); lineSprite.graphics.lineTo(_local7, _local8); }; lineSprite.graphics.endFill(); _arg1.draw(lineSprite, null, null, "screen", null, true); pos = (pos + 0.01); } } }//package com.anttikupila.revolt.drawers
Section 18
//Line (com.anttikupila.revolt.drawers.Line) package com.anttikupila.revolt.drawers { import flash.display.*; public class Line extends Drawer { var lineSprite:Sprite; public function Line(){ fourier = true; lineSprite = new Sprite(); } override public function drawGFX(_arg1:BitmapData, _arg2:Array):void{ var _local3:* = 0; var _local4:* = NaN; var _local5:* = NaN; lineSprite.graphics.clear(); lineSprite.graphics.moveTo(0, (_arg1.height / 2)); var _local6:* = 0; while (_local6 < _arg2.length) { _local3 = _local6; if (_local6 >= (_arg2.length / 2)){ _local3 = (_local3 - (_arg2.length / 2)); }; if (_local6 == (_arg2.length / 2)){ lineSprite.graphics.moveTo(0, (_arg1.height / 2)); }; lineSprite.graphics.lineStyle(1, (0xFFFF * _local3)); _local4 = ((_local3 / _arg2.length) * ((_arg1.width * 4) + 2)); _local5 = ((-(_arg2[_local6]) * _arg1.height) / 4); _local4 = (_local4 - 2); if (_local6 >= (_arg2.length / 2)){ _local5 = (_local5 * -1); }; lineSprite.graphics.lineTo(_local4, (_local5 + (_arg1.height / 2))); _local6 = (_local6 + 2); }; lineSprite.graphics.endFill(); _arg1.draw(lineSprite); } } }//package com.anttikupila.revolt.drawers
Section 19
//SmoothLine (com.anttikupila.revolt.drawers.SmoothLine) package com.anttikupila.revolt.drawers { import flash.display.*; public class SmoothLine extends Line { var z:Number;// = 0 public function SmoothLine(){ lineSprite = new Sprite(); } override public function drawGFX(_arg1:BitmapData, _arg2:Array):void{ var _local3:* = 0; var _local4:* = undefined; var _local5:* = undefined; var _local6:* = undefined; var _local7:* = _arg2.length; lineSprite.graphics.clear(); lineSprite.graphics.moveTo(-2, (_arg1.height / 2)); var _local8:* = 0; while (_local8 < _local7) { _local3 = _local8; _local4 = 0xFF0000; if (_local8 >= (_local7 / 2)){ _local3 = (_local3 - (_local7 / 2)); _local4 = 0xFFFF00; }; lineSprite.graphics.lineStyle(1, _local4); _local5 = ((_local3 / (_local7 / 2)) * (_arg1.width + 10)); _local6 = (((-(_arg2[_local8]) * _arg1.height) / 4) + ((Math.cos(z) * _arg1.height) / 8)); if (_local8 >= (_local7 / 2)){ _local6 = (_local6 * -1); }; if (_local8 == (_local7 / 2)){ lineSprite.graphics.moveTo(0, (_local6 + (_arg1.height / 2))); }; lineSprite.graphics.lineTo(_local5, (_local6 + (_arg1.height / 2))); _local8 = (_local8 + 4); }; _arg1.draw(lineSprite, null, null, "add"); z = (z + 0.01); } override public function init():void{ fourier = ((Math.round((Math.random() * 2)))!=1) ? false : true; } } }//package com.anttikupila.revolt.drawers
Section 20
//TunnelDrawer (com.anttikupila.revolt.drawers.TunnelDrawer) package com.anttikupila.revolt.drawers { import flash.display.*; import com.anttikupila.revolt.effects.*; public class TunnelDrawer extends Drawer { var z:Number;// = 0 var blur:Blur; public function TunnelDrawer(){ blur = new Blur(3, 3); } override public function drawGFX(_arg1:BitmapData, _arg2:Array):void{ var _local3:* = NaN; var _local4:* = 0; while (_local4 < _arg2.length) { _local3 = _arg2[_local4]; _arg1.setPixel(((((Math.sin(((_local4 / (_arg2.length / 2)) * Math.PI)) * 40) * _local3) + (Math.sin(z) * 40)) + (_arg1.width / 2)), ((((Math.cos(((_local4 / (_arg2.length / 2)) * Math.PI)) * 40) * _local3) + (Math.cos(z) * 40)) + (_arg1.height / 2)), (39423 | ((_local3 * 360) << 8))); if (_local3 > 0.5){ _arg1.setPixel(((((((Math.sin(((_local4 / 0x0100) * Math.PI)) * 40) * _local3) + (Math.sin(z) * 40)) + (_arg1.width / 2)) + (Math.random() * 10)) - 5), ((((((Math.cos(((_local4 / (_arg2.length / 2)) * Math.PI)) * 40) * _local3) + (Math.cos(z) * 40)) + (_arg1.height / 2)) + (Math.random() * 10)) - 5), 0xFFFFFF); }; _local4++; }; z = (z + 0.015); blur.applyFX(_arg1); } } }//package com.anttikupila.revolt.drawers
Section 21
//Blur (com.anttikupila.revolt.effects.Blur) package com.anttikupila.revolt.effects { import flash.display.*; import flash.geom.*; import flash.filters.*; public class Blur extends Effect { var blurX:Number; var blurY:Number; var blurQuality:Number; public function Blur(_arg1:Number=2, _arg2:Number=2, _arg3:Number=1){ blurX = _arg1; blurY = _arg2; blurQuality = _arg3; } override public function applyFX(_arg1:BitmapData):void{ var _local2:* = new BlurFilter(blurX, blurY, blurQuality); _arg1.applyFilter(_arg1, new Rectangle(0, 0, _arg1.width, _arg1.height), new Point(0, 0), _local2); } } }//package com.anttikupila.revolt.effects
Section 22
//Effect (com.anttikupila.revolt.effects.Effect) package com.anttikupila.revolt.effects { import flash.display.*; public class Effect { function Drawer(){ } public function applyFX(_arg1:BitmapData):void{ trace(("applyFX is not defined for " + this)); } } }//package com.anttikupila.revolt.effects
Section 23
//Perlin (com.anttikupila.revolt.effects.Perlin) package com.anttikupila.revolt.effects { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.geom.*; import flash.filters.*; public class Perlin extends Effect { var noiseMap:BitmapData; var noiseInt:Timer; var xVal:Number; var yVal:Number; var _displaceMode:String; var perlinCount:uint;// = 5 static var noiseMaps:Array; public function Perlin(_arg1:Number=20, _arg2:Number=20, _arg3:String="clamp"){ xVal = _arg1; yVal = _arg2; _displaceMode = _arg3; } public function set interval(_arg1:Number):void{ if (noiseInt){ noiseInt.stop(); }; noiseInt = new Timer(_arg1, 0); noiseInt.addEventListener(TimerEvent.TIMER, remapNoise); noiseInt.start(); remapNoise(null); } override public function applyFX(_arg1:BitmapData):void{ var _local2:* = 0; var _local3:* = null; if (!noiseMaps){ noiseMaps = new Array(); _local2 = 0; while (_local2 < perlinCount) { _local3 = new BitmapData(_arg1.width, _arg1.height, false, 0x808080); _local3.perlinNoise(100, 40, 3, (Math.random() * 100), false, true, 1, true); noiseMaps.push(_local3); _local2++; }; interval = 937; }; var _local4:* = new DisplacementMapFilter(noiseMap, new Point(0, 0), 1, 2, xVal, yVal); _local4.mode = _displaceMode; _arg1.applyFilter(_arg1, new Rectangle(0, 0, _arg1.width, _arg1.height), new Point(0, 0), _local4); } function remapNoise(_arg1:TimerEvent):void{ var _local2:* = 0; if (noiseMaps){ _local2 = Math.floor((Math.random() * perlinCount)); noiseMap = noiseMaps[_local2]; }; } } }//package com.anttikupila.revolt.effects
Section 24
//Tint (com.anttikupila.revolt.effects.Tint) package com.anttikupila.revolt.effects { import flash.display.*; import flash.geom.*; import flash.filters.*; public class Tint extends Effect { var colorMatrix:Array; static var r_lum:Number = 0.212671; static var g_lum:Number = 0.71516; static var b_lum:Number = 0.072169; public function Tint(_arg1:Number, _arg2:Number){ var _local3:* = (((_arg1 >> 16) & 0xFF) / 0xFF); var _local4:* = (((_arg1 >> 8) & 0xFF) / 0xFF); var _local5:* = ((_arg1 & 0xFF) / 0xFF); if (isNaN(_arg2)){ _arg2 = 1; }; var _local6:* = (1 - _arg2); colorMatrix = new Array((_local6 + ((_arg2 * _local3) * r_lum)), ((_arg2 * _local3) * g_lum), ((_arg2 * _local3) * b_lum), 0, 0, ((_arg2 * _local4) * r_lum), (_local6 + ((_arg2 * _local4) * g_lum)), ((_arg2 * _local4) * b_lum), 0, 0, ((_arg2 * _local5) * r_lum), ((_arg2 * _local5) * g_lum), (_local6 + ((_arg2 * _local5) * b_lum)), 0, 0, 0, 0, 0, 1, 0); } override public function applyFX(_arg1:BitmapData):void{ var _local2:* = new ColorMatrixFilter(colorMatrix); _arg1.applyFilter(_arg1, new Rectangle(0, 0, _arg1.width, _arg1.height), new Point(0, 0), _local2); } r_lum = 0.212671; g_lum = 0.71516; b_lum = 0.072169; } }//package com.anttikupila.revolt.effects
Section 25
//Explosion (com.anttikupila.revolt.presets.Explosion) package com.anttikupila.revolt.presets { import com.anttikupila.revolt.effects.*; import com.anttikupila.revolt.scalers.*; import com.anttikupila.revolt.drawers.*; public class Explosion extends Preset { public function Explosion(){ fourier = true; drawers = new Array(new Exploder()); effects = new Array(new Blur(3, 3), new Perlin(5, 3), new Blur(10, 6), new Tint(0xFF0000, 0.1)); scalers = new Array(new ZoomIn()); } override public function toString():String{ return ("Circular explosion"); } } }//package com.anttikupila.revolt.presets
Section 26
//LineFourier (com.anttikupila.revolt.presets.LineFourier) package com.anttikupila.revolt.presets { import com.anttikupila.revolt.effects.*; import com.anttikupila.revolt.scalers.*; import com.anttikupila.revolt.drawers.*; public class LineFourier extends Preset { public function LineFourier(){ fourier = true; drawers = new Array(new Line()); effects = new Array(new Blur(), new Perlin(5, 2)); scalers = new Array(new ZoomOut()); } override public function toString():String{ return ("Line with fourier transformation"); } } }//package com.anttikupila.revolt.presets
Section 27
//LineNoFourier (com.anttikupila.revolt.presets.LineNoFourier) package com.anttikupila.revolt.presets { public class LineNoFourier extends LineFourier { public function LineNoFourier(){ fourier = false; } override public function toString():String{ return ("Line without fourier transformation"); } } }//package com.anttikupila.revolt.presets
Section 28
//LineSmooth (com.anttikupila.revolt.presets.LineSmooth) package com.anttikupila.revolt.presets { import com.anttikupila.revolt.effects.*; import com.anttikupila.revolt.scalers.*; import com.anttikupila.revolt.drawers.*; public class LineSmooth extends LineNoFourier { public function LineSmooth(){ drawers = new Array(new SmoothLine()); scalers = new Array(new ZoomIn()); effects = new Array(new Perlin(10, 2), new Blur(3, 3), new Tint(0, 0.05)); } override public function toString():String{ return ("Smooth line without fourier transformation"); } } }//package com.anttikupila.revolt.presets
Section 29
//LineWorm (com.anttikupila.revolt.presets.LineWorm) package com.anttikupila.revolt.presets { import com.anttikupila.revolt.effects.*; import com.anttikupila.revolt.scalers.*; import com.anttikupila.revolt.drawers.*; public class LineWorm extends Preset { public function LineWorm(){ fourier = true; drawers = new Array(new CenterLine()); effects = new Array(new Perlin(8, 6), new Blur(2, 2), new Tint(0, 0.05)); scalers = new Array(new ZoomIn(150)); } override public function toString():String{ return ("Line worm"); } } }//package com.anttikupila.revolt.presets
Section 30
//Preset (com.anttikupila.revolt.presets.Preset) package com.anttikupila.revolt.presets { import flash.display.*; public class Preset { var _fourier:Boolean;// = true var _scalers:Array; var _effects:Array; var _drawers:Array; public function Preset(){ _scalers = new Array(); _effects = new Array(); _drawers = new Array(); } public function set fourier(_arg1:Boolean):void{ _fourier = _arg1; } public function get fourier():Boolean{ return (_fourier); } public function init():void{ } public function applyGfx(_arg1:BitmapData, _arg2:Array):void{ var _local3:* = undefined; var _local4:* = undefined; var _local5:* = undefined; var _local6:* = 0; var _local7:* = _scalers; for (_local3 in _local7) { _scalers[_local3].applyScale(_arg1); }; _local6 = 0; _local7 = _effects; for (_local4 in _local7) { _effects[_local4].applyFX(_arg1); }; _local6 = 0; _local7 = _drawers; for (_local5 in _local7) { _drawers[_local5].drawGFX(_arg1, _arg2); }; } public function set drawers(_arg1:Array):void{ _drawers = _arg1; } public function set effects(_arg1:Array):void{ _effects = _arg1; } public function set scalers(_arg1:Array):void{ _scalers = _arg1; } public function toString():String{ return ("Abstract preset"); } } }//package com.anttikupila.revolt.presets
Section 31
//Tunnel (com.anttikupila.revolt.presets.Tunnel) package com.anttikupila.revolt.presets { import com.anttikupila.revolt.effects.*; import com.anttikupila.revolt.scalers.*; import com.anttikupila.revolt.drawers.*; public class Tunnel extends Preset { public function Tunnel(){ drawers = new Array(new TunnelDrawer()); scalers = new Array(new ZoomIn()); var _local1:* = new Perlin(10, 10); _local1.interval = 3748; effects = new Array(_local1); } override public function toString():String{ return ("Smooth line without fourier transformation"); } } }//package com.anttikupila.revolt.presets
Section 32
//Scale (com.anttikupila.revolt.scalers.Scale) package com.anttikupila.revolt.scalers { import flash.display.*; public class Scale { public function applyScale(_arg1:BitmapData):void{ trace(("applyScale is not defined for " + this)); } } }//package com.anttikupila.revolt.scalers
Section 33
//ZoomIn (com.anttikupila.revolt.scalers.ZoomIn) package com.anttikupila.revolt.scalers { import flash.display.*; import flash.geom.*; public class ZoomIn extends Scale { var gfx2:BitmapData; var _speed:Number; public function ZoomIn(_arg1:Number=100){ _speed = _arg1; } override public function applyScale(_arg1:BitmapData):void{ if (!gfx2){ gfx2 = _arg1.clone(); }; var _local2:* = new Matrix(); var _local3:* = (1 + ((0.05 * _speed) / 100)); _local2.scale(_local3, _local3); var _local4:* = (-((_local3 - 1)) / 2); _local2.translate((_local4 * _arg1.width), (_local4 * _arg1.height)); gfx2.draw(_arg1, _local2); _arg1.draw(gfx2); } } }//package com.anttikupila.revolt.scalers
Section 34
//ZoomOut (com.anttikupila.revolt.scalers.ZoomOut) package com.anttikupila.revolt.scalers { import flash.display.*; import flash.geom.*; public class ZoomOut extends Scale { var gfx2:BitmapData; var _speed:Number; public function ZoomOut(_arg1:Number=100){ _speed = _arg1; } override public function applyScale(_arg1:BitmapData):void{ if (!gfx2){ gfx2 = _arg1.clone(); }; var _local2:* = new Matrix(); var _local3:* = (1 - ((0.05 * _speed) / 100)); _local2.scale(_local3, _local3); var _local4:* = ((1 - _local3) / 2); _local2.translate((_local4 * _arg1.width), (_local4 * _arg1.height)); gfx2.draw(_arg1, _local2); _arg1.draw(gfx2); } } }//package com.anttikupila.revolt.scalers
Section 35
//SoundProcessor (com.anttikupila.soundSpectrum.SoundProcessor) package com.anttikupila.soundSpectrum { import flash.utils.*; import flash.media.*; public class SoundProcessor extends Sound { public const LEFT:String = "left"; public const RIGHT:String = "right"; public const BOTH:String = "both"; var ba:ByteArray; public function SoundProcessor(){ ba = new ByteArray(); super(); } function getSection(_arg1:ByteArray, _arg2:uint=0x0200):Array{ var _local3:* = new Array(); var _local4:* = 0; while (_local4 < _arg2) { _local3.push(_arg1.readFloat()); _local4++; }; return (_local3); } public function getLeftChannel(_arg1:Boolean):Array{ SoundMixer.computeSpectrum(ba, _arg1, 0); return (getSection(ba, 0x0100)); } public function getRightChannel(_arg1:Boolean):Array{ SoundMixer.computeSpectrum(ba, _arg1, 0); ba.position = 0x0400; return (getSection(ba, 0x0100)); } public function getSoundSpectrum(_arg1:Boolean):Array{ SoundMixer.computeSpectrum(ba, _arg1, 0); return (getSection(ba, 0x0200)); } public function getVolume(_arg1:String="both"):Number{ var _local2:* = undefined; SoundMixer.computeSpectrum(ba, false, 0); var _local3:* = new Array(); var _local4:* = _arg1; switch (_local4){ case LEFT: _local3 = getLeftChannel(true); break; case RIGHT: _local3 = getRightChannel(true); break; case BOTH: default: _local3 = getSoundSpectrum(true); break; }; var _local5:* = 0; _local4 = 0; var _local6:* = _local3; for (_local2 in _local6) { _local5 = (_local5 + _local3[_local2]); }; _local5 = (_local5 / _local2); return ((_local5 * 100)); } } }//package com.anttikupila.soundSpectrum
Section 36
//AuxFunctions (com.caurina.transitions.AuxFunctions) package com.caurina.transitions { public class AuxFunctions { public static function numberToR(_arg1:Number):Number{ return (((_arg1 & 0xFF0000) >> 16)); } public static function numberToG(_arg1:Number):Number{ return (((_arg1 & 0xFF00) >> 8)); } public static function numberToB(_arg1:Number):Number{ return ((_arg1 & 0xFF)); } public static function getObjectLength(_arg1:Object):uint{ var _local2:* = null; var _local3:* = 0; var _local4:* = 0; var _local5:* = _arg1; for (_local2 in _local5) { _local3++; }; return (_local3); } public static function concatObjects(... _args):Object{ var _local6:*; var _local7:*; var _local2:* = null; var _local3:* = null; var _local4:* = {}; var _local5:* = 0; while (_local5 < _args.length) { _local2 = _args[_local5]; _local6 = 0; _local7 = _local2; for (_local3 in _local7) { if (_local2[_local3] == null){ delete _local4[_local3]; } else { _local4[_local3] = _local2[_local3]; }; }; _local5++; }; return (_local4); } } }//package com.caurina.transitions
Section 37
//Equations (com.caurina.transitions.Equations) package com.caurina.transitions { public class Equations { public function Equations(){ trace("Equations is a static class and should not be instantiated."); } public static function init():void{ Tweener.registerTransition("easenone", easeNone); Tweener.registerTransition("linear", easeNone); Tweener.registerTransition("easeinquad", easeInQuad); Tweener.registerTransition("easeoutquad", easeOutQuad); Tweener.registerTransition("easeinoutquad", easeInOutQuad); Tweener.registerTransition("easeoutinquad", easeOutInQuad); Tweener.registerTransition("easeincubic", easeInCubic); Tweener.registerTransition("easeoutcubic", easeOutCubic); Tweener.registerTransition("easeinoutcubic", easeInOutCubic); Tweener.registerTransition("easeoutincubic", easeOutInCubic); Tweener.registerTransition("easeinquart", easeInQuart); Tweener.registerTransition("easeoutquart", easeOutQuart); Tweener.registerTransition("easeinoutquart", easeInOutQuart); Tweener.registerTransition("easeoutinquart", easeOutInQuart); Tweener.registerTransition("easeinquint", easeInQuint); Tweener.registerTransition("easeoutquint", easeOutQuint); Tweener.registerTransition("easeinoutquint", easeInOutQuint); Tweener.registerTransition("easeoutinquint", easeOutInQuint); Tweener.registerTransition("easeinsine", easeInSine); Tweener.registerTransition("easeoutsine", easeOutSine); Tweener.registerTransition("easeinoutsine", easeInOutSine); Tweener.registerTransition("easeoutinsine", easeOutInSine); Tweener.registerTransition("easeincirc", easeInCirc); Tweener.registerTransition("easeoutcirc", easeOutCirc); Tweener.registerTransition("easeinoutcirc", easeInOutCirc); Tweener.registerTransition("easeoutincirc", easeOutInCirc); Tweener.registerTransition("easeinexpo", easeInExpo); Tweener.registerTransition("easeoutexpo", easeOutExpo); Tweener.registerTransition("easeinoutexpo", easeInOutExpo); Tweener.registerTransition("easeoutinexpo", easeOutInExpo); Tweener.registerTransition("easeinelastic", easeInElastic); Tweener.registerTransition("easeoutelastic", easeOutElastic); Tweener.registerTransition("easeinoutelastic", easeInOutElastic); Tweener.registerTransition("easeoutinelastic", easeOutInElastic); Tweener.registerTransition("easeinback", easeInBack); Tweener.registerTransition("easeoutback", easeOutBack); Tweener.registerTransition("easeinoutback", easeInOutBack); Tweener.registerTransition("easeoutinback", easeOutInBack); Tweener.registerTransition("easeinbounce", easeInBounce); Tweener.registerTransition("easeoutbounce", easeOutBounce); Tweener.registerTransition("easeinoutbounce", easeInOutBounce); Tweener.registerTransition("easeoutinbounce", easeOutInBounce); } public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); } public static function easeInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:*; _local6 = (_arg1 / _arg4); _arg1 = _local6; return ((((_arg3 * _local6) * _arg1) + _arg2)); } public static function easeOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:*; _local6 = (_arg1 / _arg4); _arg1 = _local6; return ((((-(_arg3) * _local6) * (_arg1 - 2)) + _arg2)); } public static function easeInOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:*; _local6 = (_arg1 / (_arg4 / 2)); _arg1 = _local6; if (_local6 < 1){ return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2)); }; --_arg1; return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2)); } public static function easeOutInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutQuad((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInQuad(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:*; _local6 = (_arg1 / _arg4); _arg1 = _local6; return (((((_arg3 * _local6) * _arg1) * _arg1) + _arg2)); } public static function easeOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:*; _local6 = ((_arg1 / _arg4) - 1); _arg1 = _local6; return (((_arg3 * (((_local6 * _arg1) * _arg1) + 1)) + _arg2)); } public static function easeInOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:*; _local6 = (_arg1 / (_arg4 / 2)); _arg1 = _local6; if (_local6 < 1){ return ((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) + _arg2)); }; _local6 = (_arg1 - 2); _arg1 = _local6; return ((((_arg3 / 2) * (((_local6 * _arg1) * _arg1) + 2)) + _arg2)); } public static function easeOutInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutCubic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInCubic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:*; _local6 = (_arg1 / _arg4); _arg1 = _local6; return ((((((_arg3 * _local6) * _arg1) * _arg1) * _arg1) + _arg2)); } public static function easeOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:*; _local6 = ((_arg1 / _arg4) - 1); _arg1 = _local6; return (((-(_arg3) * ((((_local6 * _arg1) * _arg1) * _arg1) - 1)) + _arg2)); } public static function easeInOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:*; _local6 = (_arg1 / (_arg4 / 2)); _arg1 = _local6; if (_local6 < 1){ return (((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); }; _local6 = (_arg1 - 2); _arg1 = _local6; return ((((-(_arg3) / 2) * ((((_local6 * _arg1) * _arg1) * _arg1) - 2)) + _arg2)); } public static function easeOutInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutQuart((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInQuart(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:*; _local6 = (_arg1 / _arg4); _arg1 = _local6; return (((((((_arg3 * _local6) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); } public static function easeOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:*; _local6 = ((_arg1 / _arg4) - 1); _arg1 = _local6; return (((_arg3 * (((((_local6 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2)); } public static function easeInOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:*; _local6 = (_arg1 / (_arg4 / 2)); _arg1 = _local6; if (_local6 < 1){ return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); }; _local6 = (_arg1 - 2); _arg1 = _local6; return ((((_arg3 / 2) * (((((_local6 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2)); } public static function easeOutInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutQuint((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInQuint(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return ((((-(_arg3) * Math.cos((((_arg1 / _arg4) * Math.PI) / 2))) + _arg3) + _arg2)); } public static function easeOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return (((_arg3 * Math.sin((((_arg1 / _arg4) * Math.PI) / 2))) + _arg2)); } public static function easeInOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return ((((-(_arg3) / 2) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2)); } public static function easeOutInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutSine((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInSine(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return (((_arg1)!=0) ? (((_arg3 * Math.pow(2, (10 * ((_arg1 / _arg4) - 1)))) + _arg2) - (_arg3 * 0.001)) : _arg2); } public static function easeOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return (((_arg1)!=_arg4) ? (((_arg3 * 1.001) * (-(Math.pow(2, ((-10 * _arg1) / _arg4))) + 1)) + _arg2) : (_arg2 + _arg3)); } public static function easeInOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:*; if (_arg1 == 0){ return (_arg2); }; if (_arg1 == _arg4){ return ((_arg2 + _arg3)); }; _local6 = (_arg1 / (_arg4 / 2)); _arg1 = _local6; if (_local6 < 1){ return (((((_arg3 / 2) * Math.pow(2, (10 * (_arg1 - 1)))) + _arg2) - (_arg3 * 0.0005))); }; --_arg1; return (((((_arg3 / 2) * 1.0005) * (-(Math.pow(2, (-10 * _arg1))) + 2)) + _arg2)); } public static function easeOutInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutExpo((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInExpo(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:*; _local6 = (_arg1 / _arg4); _arg1 = _local6; return (((-(_arg3) * (Math.sqrt((1 - (_local6 * _arg1))) - 1)) + _arg2)); } public static function easeOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:*; _local6 = ((_arg1 / _arg4) - 1); _arg1 = _local6; return (((_arg3 * Math.sqrt((1 - (_local6 * _arg1)))) + _arg2)); } public static function easeInOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:*; _local6 = (_arg1 / (_arg4 / 2)); _arg1 = _local6; if (_local6 < 1){ return ((((-(_arg3) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2)); }; _local6 = (_arg1 - 2); _arg1 = _local6; return ((((_arg3 / 2) * (Math.sqrt((1 - (_local6 * _arg1))) + 1)) + _arg2)); } public static function easeOutInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutCirc((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInCirc(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local7:*; var _local6:* = NaN; if (_arg1 == 0){ return (_arg2); }; _local7 = (_arg1 / _arg4); _arg1 = _local7; if (_local7 == 1){ return ((_arg2 + _arg3)); }; var _local8:* = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period; var _local9:* = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude; if (((!(Boolean(_local9))) || ((_local9 < Math.abs(_arg3))))){ _local9 = _arg3; _local6 = (_local8 / 4); } else { _local6 = ((_local8 / (2 * Math.PI)) * Math.asin((_arg3 / _local9))); }; _arg1--; return ((((-(_local9) * Math.pow(2, (10 * _local7))) * Math.sin((((((_arg1 * _arg4) - _local6) * 2) * Math.PI) / _local8))) + _arg2)); } public static function easeOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local7:*; var _local6:* = NaN; if (_arg1 == 0){ return (_arg2); }; _local7 = (_arg1 / _arg4); _arg1 = _local7; if (_local7 == 1){ return ((_arg2 + _arg3)); }; var _local8:* = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period; var _local9:* = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude; if (((!(Boolean(_local9))) || ((_local9 < Math.abs(_arg3))))){ _local9 = _arg3; _local6 = (_local8 / 4); } else { _local6 = ((_local8 / (2 * Math.PI)) * Math.asin((_arg3 / _local9))); }; return (((((_local9 * Math.pow(2, (-10 * _arg1))) * Math.sin((((((_arg1 * _arg4) - _local6) * 2) * Math.PI) / _local8))) + _arg3) + _arg2)); } public static function easeInOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local7:*; var _local6:* = NaN; if (_arg1 == 0){ return (_arg2); }; _local7 = (_arg1 / (_arg4 / 2)); _arg1 = _local7; if (_local7 == 2){ return ((_arg2 + _arg3)); }; var _local8:* = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? ((_arg4 * 0.3) * 1.5) : _arg5.period; var _local9:* = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude; if (((!(Boolean(_local9))) || ((_local9 < Math.abs(_arg3))))){ _local9 = _arg3; _local6 = (_local8 / 4); } else { _local6 = ((_local8 / (2 * Math.PI)) * Math.asin((_arg3 / _local9))); }; if (_arg1 < 1){ _arg1--; return (((((-0.5 * _local9) * Math.pow(2, (10 * _local7))) * Math.sin((((((_arg1 * _arg4) - _local6) * 2) * Math.PI) / _local8))) + _arg2)); }; _arg1--; return ((((((_local9 * Math.pow(2, (-10 * _local7))) * Math.sin((((((_arg1 * _arg4) - _local6) * 2) * Math.PI) / _local8))) * 0.5) + _arg3) + _arg2)); } public static function easeOutInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutElastic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInElastic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local7:*; var _local6:* = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot; _local7 = (_arg1 / _arg4); _arg1 = _local7; return (((((_arg3 * _local7) * _arg1) * (((_local6 + 1) * _arg1) - _local6)) + _arg2)); } public static function easeOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local7:*; var _local6:* = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot; _local7 = ((_arg1 / _arg4) - 1); _arg1 = _local7; return (((_arg3 * (((_local7 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 1)) + _arg2)); } public static function easeInOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local7:*; var _local6:* = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot; _local7 = (_arg1 / (_arg4 / 2)); _arg1 = _local7; if (_local7 < 1){ _local7 = (_local6 * 1.525); _local6 = _local7; return ((((((_arg3 / 2) * _arg1) * _arg1) * (((_local7 + 1) * _arg1) - _local6)) + _arg2)); }; _local7 = (_arg1 - 2); _arg1 = _local7; _local7 = (_local6 * 1.525); _local6 = _local7; return ((((_arg3 / 2) * (((_local7 * _arg1) * (((_local7 + 1) * _arg1) + _local6)) + 2)) + _arg2)); } public static function easeOutInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutBack((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInBack(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return (((_arg3 - easeOutBounce((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2)); } public static function easeOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:*; _local6 = (_arg1 / _arg4); _arg1 = _local6; if (_local6 < (1 / 2.75)){ return (((((_arg3 * 7.5625) * _arg1) * _arg1) + _arg2)); }; if (_arg1 < (2 / 2.75)){ _local6 = (_arg1 - (1.5 / 2.75)); _arg1 = _local6; return (((_arg3 * (((7.5625 * _local6) * _arg1) + 0.75)) + _arg2)); }; if (_arg1 < (2.5 / 2.75)){ _local6 = (_arg1 - (2.25 / 2.75)); _arg1 = _local6; return (((_arg3 * (((7.5625 * _local6) * _arg1) + 0.9375)) + _arg2)); }; _local6 = (_arg1 - (2.625 / 2.75)); _arg1 = _local6; return (((_arg3 * (((7.5625 * _local6) * _arg1) + 0.984375)) + _arg2)); } public static function easeInOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (((easeInBounce((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2)); }; return ((((easeOutBounce(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _arg2)); } public static function easeOutInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutBounce((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInBounce(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } } }//package com.caurina.transitions
Section 38
//PropertyInfoObj (com.caurina.transitions.PropertyInfoObj) package com.caurina.transitions { public class PropertyInfoObj { public var valueStart:Number; public var valueComplete:Number; public var originalValueComplete:Object; public var arrayIndex:Number; public var extra:Object; public var isSpecialProperty:Boolean; public var hasModifier:Boolean; public var modifierFunction:Function; public var modifierParameters:Array; public function PropertyInfoObj(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number, _arg5:Object, _arg6:Boolean, _arg7:Function, _arg8:Array){ valueStart = _arg1; valueComplete = _arg2; originalValueComplete = _arg3; arrayIndex = _arg4; extra = _arg5; isSpecialProperty = _arg6; hasModifier = Boolean(_arg7); modifierFunction = _arg7; modifierParameters = _arg8; } public function clone():PropertyInfoObj{ var _local1:* = new PropertyInfoObj(valueStart, valueComplete, originalValueComplete, arrayIndex, extra, isSpecialProperty, modifierFunction, modifierParameters); return (_local1); } public function toString():String{ var _local1:* = "\n[PropertyInfoObj "; _local1 = (_local1 + ("valueStart:" + String(valueStart))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("valueComplete:" + String(valueComplete))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("originalValueComplete:" + String(originalValueComplete))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("arrayIndex:" + String(arrayIndex))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("extra:" + String(extra))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("isSpecialProperty:" + String(isSpecialProperty))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("hasModifier:" + String(hasModifier))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("modifierFunction:" + String(modifierFunction))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("modifierParameters:" + String(modifierParameters))); _local1 = (_local1 + "]\n"); return (_local1); } } }//package com.caurina.transitions
Section 39
//SpecialProperty (com.caurina.transitions.SpecialProperty) package com.caurina.transitions { public class SpecialProperty { public var getValue:Function; public var setValue:Function; public var parameters:Array; public var preProcess:Function; public function SpecialProperty(_arg1:Function, _arg2:Function, _arg3:Array=null, _arg4:Function=null){ getValue = _arg1; setValue = _arg2; parameters = _arg3; preProcess = _arg4; } public function toString():String{ var _local1:* = ""; _local1 = (_local1 + "[SpecialProperty "); _local1 = (_local1 + ("getValue:" + String(getValue))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("setValue:" + String(setValue))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("parameters:" + String(parameters))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("preProcess:" + String(preProcess))); _local1 = (_local1 + "]"); return (_local1); } } }//package com.caurina.transitions
Section 40
//SpecialPropertyModifier (com.caurina.transitions.SpecialPropertyModifier) package com.caurina.transitions { public class SpecialPropertyModifier { public var modifyValues:Function; public var getValue:Function; public function SpecialPropertyModifier(_arg1:Function, _arg2:Function){ modifyValues = _arg1; getValue = _arg2; } public function toString():String{ var _local1:* = ""; _local1 = (_local1 + "[SpecialPropertyModifier "); _local1 = (_local1 + ("modifyValues:" + String(modifyValues))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("getValue:" + String(getValue))); _local1 = (_local1 + "]"); return (_local1); } } }//package com.caurina.transitions
Section 41
//SpecialPropertySplitter (com.caurina.transitions.SpecialPropertySplitter) package com.caurina.transitions { public class SpecialPropertySplitter { public var parameters:Array; public var splitValues:Function; public function SpecialPropertySplitter(_arg1:Function, _arg2:Array){ splitValues = _arg1; parameters = _arg2; } public function toString():String{ var _local1:* = ""; _local1 = (_local1 + "[SpecialPropertySplitter "); _local1 = (_local1 + ("splitValues:" + String(splitValues))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("parameters:" + String(parameters))); _local1 = (_local1 + "]"); return (_local1); } } }//package com.caurina.transitions
Section 42
//Tweener (com.caurina.transitions.Tweener) package com.caurina.transitions { import flash.display.*; import flash.events.*; import flash.utils.*; public class Tweener { static var __tweener_controller__:MovieClip; static var _engineExists:Boolean = false; static var _inited:Boolean = false; static var _currentTime:Number; static var _tweenList:Array; static var _timeScale:Number = 1; static var _transitionList:Object; static var _specialPropertyList:Object; static var _specialPropertyModifierList:Object; static var _specialPropertySplitterList:Object; static var _currentTimeFrame:Number; public function Tweener(){ trace("Tweener is a static class and should not be instantiated."); } public static function updateFrame():void{ var _local1:*; _currentTimeFrame++; } public static function onEnterFrame(_arg1:Event):void{ updateTime(); updateFrame(); var _local2:* = false; _local2 = updateTweens(); if (!_local2){ stopEngine(); }; } public static function setTimeScale(_arg1:Number):void{ var _local2:* = NaN; var _local3:* = NaN; if (isNaN(_arg1)){ _arg1 = 1; }; if (_arg1 < 1E-5){ _arg1 = 1E-5; }; if (_arg1 != _timeScale){ if (_tweenList != null){ _local2 = 0; while (_local2 < _tweenList.length) { _local3 = getCurrentTweeningTime(_tweenList[_local2]); _tweenList[_local2].timeStart = (_local3 - (((_local3 - _tweenList[_local2].timeStart) * _timeScale) / _arg1)); _tweenList[_local2].timeComplete = (_local3 - (((_local3 - _tweenList[_local2].timeComplete) * _timeScale) / _arg1)); if (_tweenList[_local2].timePaused != undefined){ _tweenList[_local2].timePaused = (_local3 - (((_local3 - _tweenList[_local2].timePaused) * _timeScale) / _arg1)); }; _local2++; }; }; _timeScale = _arg1; }; } public static function isTweening(_arg1:Object):Boolean{ var _local2:* = 0; if (!Boolean(_tweenList)){ return (false); }; _local2 = 0; while (_local2 < _tweenList.length) { if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){ return (true); }; _local2++; }; return (false); } static function updateTweens():Boolean{ var _local1:* = 0; if (_tweenList.length == 0){ return (false); }; _local1 = 0; while (_local1 < _tweenList.length) { if ((((_tweenList[_local1] == undefined)) || (!(_tweenList[_local1].isPaused)))){ if (!updateTweenByIndex(_local1)){ removeTweenByIndex(_local1); }; if (_tweenList[_local1] == null){ removeTweenByIndex(_local1, true); _local1--; }; }; _local1++; }; return (true); } public static function getTweens(_arg1:Object):Array{ var _local5:*; var _local6:*; var _local2:* = 0; var _local3:* = null; if (!Boolean(_tweenList)){ return ([]); }; var _local4:* = new Array(); _local2 = 0; while (_local2 < _tweenList.length) { if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){ _local5 = 0; _local6 = _tweenList[_local2].properties; for (_local3 in _local6) { _local4.push(_local3); }; }; _local2++; }; return (_local4); } static function handleError(_arg1:TweenListObj, _arg2:Error, _arg3:String):void{ var pTweening:TweenListObj; var pError:Error; var pCallBackName:String; var eventScope:Object; var loc1:*; var arg1 = _arg1; var arg2 = _arg2; var arg3 = _arg3; eventScope = null; pTweening = arg1; pError = arg2; pCallBackName = arg3; if (((Boolean(pTweening.onError)) && ((pTweening.onError is Function)))){ eventScope = (Boolean(pTweening.onErrorScope)) ? pTweening.onErrorScope : pTweening.scope; try { pTweening.onError.apply(eventScope, [pTweening.scope, pError]); } catch(metaError:Error) { printError(((((String(pTweening.scope) + " raised an error while executing the 'onError' handler. Original error:\n ") + pError.getStackTrace()) + "\nonError error: ") + metaError.getStackTrace())); }; } else { if (!Boolean(pTweening.onError)){ printError(((((String(pTweening.scope) + " raised an error while executing the '") + pCallBackName) + "'handler. \n") + pError.getStackTrace())); }; }; } public static function getCurrentTweeningTime(_arg1:Object):Number{ return ((_arg1.useFrames) ? _currentTimeFrame : _currentTime); } public static function getVersion():String{ return ("AS3 1.31.74"); } public static function printError(_arg1:String):void{ trace(("## [Tweener] Error: " + _arg1)); } public static function addTween(_arg1:Object=null, _arg2:Object=null):Boolean{ var _local3:* = NaN; var _local4:* = NaN; var _local5:* = null; var _local6:* = null; var _local7:* = null; var _local8:* = null; var _local9:* = null; var _local10:* = NaN; var _local11:* = null; var _local12:* = null; var _local13:* = null; var _local14:* = null; if (!Boolean(_arg1)){ return (false); }; if ((_arg1 is Array)){ _local6 = _arg1.concat(); } else { _local6 = [_arg1]; }; var _local15:* = TweenListObj.makePropertiesChain(_arg2); if (!_inited){ init(); }; if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){ startEngine(); }; var _local16:* = (isNaN(_local15.time)) ? 0 : _local15.time; var _local17:* = (isNaN(_local15.delay)) ? 0 : _local15.delay; var _local18:* = new Array(); var _local19:* = {time:true, delay:true, useFrames:true, skipUpdates:true, transition:true, transitionParams:true, onStart:true, onUpdate:true, onComplete:true, onOverwrite:true, onError:true, rounded:true, onStartParams:true, onUpdateParams:true, onCompleteParams:true, onOverwriteParams:true, onStartScope:true, onUpdateScope:true, onCompleteScope:true, onOverwriteScope:true, onErrorScope:true}; var _local20:* = new Object(); var _local21:* = 0; var _local22:* = _local15; for (_local5 in _local22) { if (_local19[_local5]){ } else { if (_specialPropertySplitterList[_local5]){ _local11 = _specialPropertySplitterList[_local5].splitValues(_local15[_local5], _specialPropertySplitterList[_local5].parameters); _local3 = 0; while (_local3 < _local11.length) { if (_specialPropertySplitterList[_local11[_local3].name]){ _local12 = _specialPropertySplitterList[_local11[_local3].name].splitValues(_local11[_local3].value, _specialPropertySplitterList[_local11[_local3].name].parameters); _local4 = 0; while (_local4 < _local12.length) { _local18[_local12[_local4].name] = {valueStart:undefined, valueComplete:_local12[_local4].value, arrayIndex:_local12[_local4].arrayIndex, isSpecialProperty:false}; _local4++; }; } else { _local18[_local11[_local3].name] = {valueStart:undefined, valueComplete:_local11[_local3].value, arrayIndex:_local11[_local3].arrayIndex, isSpecialProperty:false}; }; _local3++; }; } else { if (_specialPropertyModifierList[_local5] != undefined){ _local13 = _specialPropertyModifierList[_local5].modifyValues(_local15[_local5]); _local3 = 0; while (_local3 < _local13.length) { _local20[_local13[_local3].name] = {modifierParameters:_local13[_local3].parameters, modifierFunction:_specialPropertyModifierList[_local5].getValue}; _local3++; }; } else { _local18[_local5] = {valueStart:undefined, valueComplete:_local15[_local5]}; }; }; }; }; _local21 = 0; _local22 = _local18; for (_local5 in _local22) { if (_specialPropertyList[_local5] != undefined){ _local18[_local5].isSpecialProperty = true; } else { if (_local6[0][_local5] != undefined){ } else { printError((((("The property '" + _local5) + "' doesn't seem to be a normal object property of ") + String(_local6[0])) + " or a registered special property.")); }; }; }; _local21 = 0; _local22 = _local20; for (_local5 in _local22) { if (_local18[_local5] == undefined){ } else { _local18[_local5].modifierParameters = _local20[_local5].modifierParameters; _local18[_local5].modifierFunction = _local20[_local5].modifierFunction; }; }; if (typeof(_local15.transition) != "string"){ _local7 = _local15.transition; } else { _local14 = _local15.transition.toLowerCase(); _local7 = _transitionList[_local14]; }; if (!Boolean(_local7)){ _local7 = _transitionList["easeoutexpo"]; }; _local3 = 0; while (_local3 < _local6.length) { _local8 = new Object(); _local21 = 0; _local22 = _local18; for (_local5 in _local22) { _local8[_local5] = new PropertyInfoObj(_local18[_local5].valueStart, _local18[_local5].valueComplete, _local18[_local5].valueComplete, _local18[_local5].arrayIndex, {}, _local18[_local5].isSpecialProperty, _local18[_local5].modifierFunction, _local18[_local5].modifierParameters); }; if (_local15.useFrames != true){ _local9 = new TweenListObj(_local6[_local3], (_currentTime + ((_local17 * 1000) / _timeScale)), (_currentTime + (((_local17 * 1000) + (_local16 * 1000)) / _timeScale)), false, _local7, _local15.transitionParams); } else { _local9 = new TweenListObj(_local6[_local3], (_currentTimeFrame + (_local17 / _timeScale)), (_currentTimeFrame + ((_local17 + _local16) / _timeScale)), true, _local7, _local15.transitionParams); }; _local9.properties = _local8; _local9.onStart = _local15.onStart; _local9.onUpdate = _local15.onUpdate; _local9.onComplete = _local15.onComplete; _local9.onOverwrite = _local15.onOverwrite; _local9.onError = _local15.onError; _local9.onStartParams = _local15.onStartParams; _local9.onUpdateParams = _local15.onUpdateParams; _local9.onCompleteParams = _local15.onCompleteParams; _local9.onOverwriteParams = _local15.onOverwriteParams; _local9.onStartScope = _local15.onStartScope; _local9.onUpdateScope = _local15.onUpdateScope; _local9.onCompleteScope = _local15.onCompleteScope; _local9.onOverwriteScope = _local15.onOverwriteScope; _local9.onErrorScope = _local15.onErrorScope; _local9.rounded = _local15.rounded; _local9.skipUpdates = _local15.skipUpdates; removeTweensByTime(_local9.scope, _local9.properties, _local9.timeStart, _local9.timeComplete); _tweenList.push(_local9); if ((((_local16 == 0)) && ((_local17 == 0)))){ _local10 = (_tweenList.length - 1); updateTweenByIndex(_local10); removeTweenByIndex(_local10); }; _local3++; }; return (true); } public static function addCaller(_arg1:Object=null, _arg2:Object=null):Boolean{ var _local3:* = NaN; var _local4:* = null; var _local5:* = null; var _local6:* = null; var _local7:* = NaN; var _local8:* = null; if (!Boolean(_arg1)){ return (false); }; if ((_arg1 is Array)){ _local4 = _arg1.concat(); } else { _local4 = [_arg1]; }; var _local9:* = _arg2; if (!_inited){ init(); }; if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){ startEngine(); }; var _local10:* = (isNaN(_local9.time)) ? 0 : _local9.time; var _local11:* = (isNaN(_local9.delay)) ? 0 : _local9.delay; if (typeof(_local9.transition) != "string"){ _local5 = _local9.transition; } else { _local8 = _local9.transition.toLowerCase(); _local5 = _transitionList[_local8]; }; if (!Boolean(_local5)){ _local5 = _transitionList["easeoutexpo"]; }; _local3 = 0; while (_local3 < _local4.length) { if (_local9.useFrames != true){ _local6 = new TweenListObj(_local4[_local3], (_currentTime + ((_local11 * 1000) / _timeScale)), (_currentTime + (((_local11 * 1000) + (_local10 * 1000)) / _timeScale)), false, _local5, _local9.transitionParams); } else { _local6 = new TweenListObj(_local4[_local3], (_currentTimeFrame + (_local11 / _timeScale)), (_currentTimeFrame + ((_local11 + _local10) / _timeScale)), true, _local5, _local9.transitionParams); }; _local6.properties = null; _local6.onStart = _local9.onStart; _local6.onUpdate = _local9.onUpdate; _local6.onComplete = _local9.onComplete; _local6.onOverwrite = _local9.onOverwrite; _local6.onStartParams = _local9.onStartParams; _local6.onUpdateParams = _local9.onUpdateParams; _local6.onCompleteParams = _local9.onCompleteParams; _local6.onOverwriteParams = _local9.onOverwriteParams; _local6.onStartScope = _local9.onStartScope; _local6.onUpdateScope = _local9.onUpdateScope; _local6.onCompleteScope = _local9.onCompleteScope; _local6.onOverwriteScope = _local9.onOverwriteScope; _local6.onErrorScope = _local9.onErrorScope; _local6.isCaller = true; _local6.count = _local9.count; _local6.waitFrames = _local9.waitFrames; _tweenList.push(_local6); if ((((_local10 == 0)) && ((_local11 == 0)))){ _local7 = (_tweenList.length - 1); updateTweenByIndex(_local7); removeTweenByIndex(_local7); }; _local3++; }; return (true); } public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{ var p_scope:Object; var p_properties:Object; var p_timeStart:Number; var p_timeComplete:Number; var removed:Boolean; var removedLocally:Boolean; var i:uint; var tl:uint; var pName:String; var eventScope:Object; var loc1:*; var loc2:*; var loc3:*; var arg1 = _arg1; var arg2 = _arg2; var arg3 = _arg3; var arg4 = _arg4; removedLocally = false; i = 0; pName = null; eventScope = null; p_scope = arg1; p_properties = arg2; p_timeStart = arg3; p_timeComplete = arg4; removed = false; tl = _tweenList.length; i = 0; while (i < tl) { if (((Boolean(_tweenList[i])) && ((p_scope == _tweenList[i].scope)))){ if ((((p_timeComplete > _tweenList[i].timeStart)) && ((p_timeStart < _tweenList[i].timeComplete)))){ removedLocally = false; loc2 = 0; loc3 = _tweenList[i].properties; for (pName in loc3) { if (!Boolean(p_properties[pName])){ } else { if (Boolean(_tweenList[i].onOverwrite)){ eventScope = (Boolean(_tweenList[i].onOverwriteScope)) ? _tweenList[i].onOverwriteScope : _tweenList[i].scope; try { _tweenList[i].onOverwrite.apply(eventScope, _tweenList[i].onOverwriteParams); } catch(e:Error) { handleError(_tweenList[i], e, "onOverwrite"); }; }; _tweenList[i].properties[pName] = undefined; delete _tweenList[i].properties[pName]; removedLocally = true; removed = true; }; }; if (removedLocally){ if (AuxFunctions.getObjectLength(_tweenList[i].properties) == 0){ removeTweenByIndex(i); }; }; }; }; i = (i + 1); }; return (removed); } public static function removeTweens(_arg1:Object, ... _args):Boolean{ var _local3:* = 0; var _local4:* = null; var _local5:* = null; var _local6:* = 0; var _local7:* = new Array(); _local3 = 0; while (_local3 < _args.length) { if ((((typeof(_args[_local3]) == "string")) && ((_local7.indexOf(_args[_local3]) == -1)))){ if (_specialPropertySplitterList[_args[_local3]]){ _local4 = _specialPropertySplitterList[_args[_local3]]; _local5 = _local4.splitValues(_arg1, null); _local6 = 0; while (_local6 < _local5.length) { _local7.push(_local5[_local6].name); _local6++; }; } else { _local7.push(_args[_local3]); }; }; _local3++; }; return (affectTweens(removeTweenByIndex, _arg1, _local7)); } public static function removeAllTweens():Boolean{ var _local1:* = 0; if (!Boolean(_tweenList)){ return (false); }; var _local2:* = false; _local1 = 0; while (_local1 < _tweenList.length) { removeTweenByIndex(_local1); _local2 = true; _local1++; }; return (_local2); } public static function pauseTweens(_arg1:Object, ... _args):Boolean{ var _local3:* = 0; var _local4:* = new Array(); _local3 = 0; while (_local3 < _args.length) { if ((((typeof(_args[_local3]) == "string")) && ((_local4.indexOf(_args[_local3]) == -1)))){ _local4.push(_args[_local3]); }; _local3++; }; return (affectTweens(pauseTweenByIndex, _arg1, _local4)); } public static function pauseAllTweens():Boolean{ var _local1:* = 0; if (!Boolean(_tweenList)){ return (false); }; var _local2:* = false; _local1 = 0; while (_local1 < _tweenList.length) { pauseTweenByIndex(_local1); _local2 = true; _local1++; }; return (_local2); } public static function resumeTweens(_arg1:Object, ... _args):Boolean{ var _local3:* = 0; var _local4:* = new Array(); _local3 = 0; while (_local3 < _args.length) { if ((((typeof(_args[_local3]) == "string")) && ((_local4.indexOf(_args[_local3]) == -1)))){ _local4.push(_args[_local3]); }; _local3++; }; return (affectTweens(resumeTweenByIndex, _arg1, _local4)); } public static function resumeAllTweens():Boolean{ var _local1:* = 0; if (!Boolean(_tweenList)){ return (false); }; var _local2:* = false; _local1 = 0; while (_local1 < _tweenList.length) { resumeTweenByIndex(_local1); _local2 = true; _local1++; }; return (_local2); } static function affectTweens(_arg1:Function, _arg2:Object, _arg3:Array):Boolean{ var _local4:* = 0; var _local5:* = null; var _local6:* = 0; var _local7:* = 0; var _local8:* = 0; var _local9:* = false; if (!Boolean(_tweenList)){ return (false); }; _local4 = 0; while (_local4 < _tweenList.length) { if (((_tweenList[_local4]) && ((_tweenList[_local4].scope == _arg2)))){ if (_arg3.length != 0){ _local5 = new Array(); _local6 = 0; while (_local6 < _arg3.length) { if (Boolean(_tweenList[_local4].properties[_arg3[_local6]])){ _local5.push(_arg3[_local6]); }; _local6++; }; if (_local5.length > 0){ _local7 = AuxFunctions.getObjectLength(_tweenList[_local4].properties); if (_local7 != _local5.length){ _local8 = splitTweens(_local4, _local5); _arg1(_local8); _local9 = true; } else { _arg1(_local4); _local9 = true; }; }; } else { _arg1(_local4); _local9 = true; }; }; _local4++; }; return (_local9); } public static function splitTweens(_arg1:Number, _arg2:Array):uint{ var _local3:* = 0; var _local4:* = null; var _local5:* = false; var _local6:* = _tweenList[_arg1]; var _local7:* = _local6.clone(false); _local3 = 0; while (_local3 < _arg2.length) { _local4 = _arg2[_local3]; if (Boolean(_local6.properties[_local4])){ _local6.properties[_local4] = undefined; delete _local6.properties[_local4]; }; _local3++; }; var _local8:* = 0; var _local9:* = _local7.properties; for (_local4 in _local9) { _local5 = false; _local3 = 0; while (_local3 < _arg2.length) { if (_arg2[_local3] == _local4){ _local5 = true; break; }; _local3++; }; if (_local5){ } else { _local7.properties[_local4] = undefined; delete _local7.properties[_local4]; }; }; _tweenList.push(_local7); return ((_tweenList.length - 1)); } public static function getTweenCount(_arg1:Object):Number{ var _local2:* = 0; if (!Boolean(_tweenList)){ return (0); }; var _local3:* = 0; _local2 = 0; while (_local2 < _tweenList.length) { if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){ _local3 = (_local3 + AuxFunctions.getObjectLength(_tweenList[_local2].properties)); }; _local2++; }; return (_local3); } public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{ _tweenList[_arg1] = null; if (_arg2){ _tweenList.splice(_arg1, 1); }; return (true); } public static function pauseTweenByIndex(_arg1:Number):Boolean{ var _local2:* = _tweenList[_arg1]; if ((((_local2 == null)) || (_local2.isPaused))){ return (false); }; _local2.timePaused = getCurrentTweeningTime(_local2); _local2.isPaused = true; return (true); } public static function resumeTweenByIndex(_arg1:Number):Boolean{ var _local2:* = _tweenList[_arg1]; if ((((_local2 == null)) || (!(_local2.isPaused)))){ return (false); }; var _local3:* = getCurrentTweeningTime(_local2); _local2.timeStart = (_local2.timeStart + (_local3 - _local2.timePaused)); _local2.timeComplete = (_local2.timeComplete + (_local3 - _local2.timePaused)); _local2.timePaused = undefined; _local2.isPaused = false; return (true); } static function updateTweenByIndex(_arg1:Number):Boolean{ var i:Number; var tTweening:TweenListObj; var isOver:Boolean; var mustUpdate:Boolean; var nv:Number; var t:Number; var b:Number; var c:Number; var d:Number; var pName:String; var eventScope:Object; var tScope:Object; var cTime:Number; var tProperty:Object; var pv:Number; var loc1:*; var loc3:*; var arg1 = _arg1; tTweening = null; mustUpdate = false; nv = NaN; t = NaN; b = NaN; c = NaN; d = NaN; pName = null; eventScope = null; tScope = null; tProperty = null; pv = NaN; i = arg1; tTweening = _tweenList[i]; if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){ return (false); }; isOver = false; cTime = getCurrentTweeningTime(tTweening); if (cTime >= tTweening.timeStart){ tScope = tTweening.scope; if (tTweening.isCaller){ do { t = (((tTweening.timeComplete - tTweening.timeStart) / tTweening.count) * (tTweening.timesCalled + 1)); b = tTweening.timeStart; c = (tTweening.timeComplete - tTweening.timeStart); d = (tTweening.timeComplete - tTweening.timeStart); nv = tTweening.transition(t, b, c, d); } while (!(cTime >= nv)); } else { mustUpdate = (((((tTweening.skipUpdates < 1)) || (!(tTweening.skipUpdates)))) || ((tTweening.updatesSkipped >= tTweening.skipUpdates))); if (cTime >= tTweening.timeComplete){ isOver = true; mustUpdate = true; }; if (!tTweening.hasStarted){ if (Boolean(tTweening.onStart)){ eventScope = (Boolean(tTweening.onStartScope)) ? tTweening.onStartScope : tScope; try { tTweening.onStart.apply(eventScope, tTweening.onStartParams); } catch(e2:Error) { handleError(tTweening, e2, "onStart"); }; }; loc2 = 0; loc3 = tTweening.properties; for (pName in loc3) { if (tTweening.properties[pName].isSpecialProperty){ if (Boolean(_specialPropertyList[pName].preProcess)){ tTweening.properties[pName].valueComplete = _specialPropertyList[pName].preProcess(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].originalValueComplete, tTweening.properties[pName].extra); }; pv = _specialPropertyList[pName].getValue(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra); } else { pv = tScope[pName]; }; tTweening.properties[pName].valueStart = (isNaN(pv)) ? tTweening.properties[pName].valueComplete : pv; }; mustUpdate = true; tTweening.hasStarted = true; }; if (mustUpdate){ loc2 = 0; loc3 = tTweening.properties; for (pName in loc3) { tProperty = tTweening.properties[pName]; if (isOver){ nv = tProperty.valueComplete; } else { if (tProperty.hasModifier){ t = (cTime - tTweening.timeStart); d = (tTweening.timeComplete - tTweening.timeStart); nv = tTweening.transition(t, 0, 1, d, tTweening.transitionParams); nv = tProperty.modifierFunction(tProperty.valueStart, tProperty.valueComplete, nv, tProperty.modifierParameters); } else { t = (cTime - tTweening.timeStart); b = tProperty.valueStart; c = (tProperty.valueComplete - tProperty.valueStart); d = (tTweening.timeComplete - tTweening.timeStart); nv = tTweening.transition(t, b, c, d, tTweening.transitionParams); }; }; if (tTweening.rounded){ nv = Math.round(nv); }; if (tProperty.isSpecialProperty){ _specialPropertyList[pName].setValue(tScope, nv, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra); } else { tScope[pName] = nv; }; }; tTweening.updatesSkipped = 0; if (Boolean(tTweening.onUpdate)){ eventScope = (Boolean(tTweening.onUpdateScope)) ? tTweening.onUpdateScope : tScope; try { tTweening.onUpdate.apply(eventScope, tTweening.onUpdateParams); } catch(e3:Error) { handleError(tTweening, e3, "onUpdate"); }; }; } else { loc3 = ((loc2 = tTweening).updatesSkipped + 1); loc2.updatesSkipped = loc3; }; }; if (((isOver) && (Boolean(tTweening.onComplete)))){ eventScope = (Boolean(tTweening.onCompleteScope)) ? tTweening.onCompleteScope : tScope; try { tTweening.onComplete.apply(eventScope, tTweening.onCompleteParams); } catch(e4:Error) { handleError(tTweening, e4, "onComplete"); }; }; return (!(isOver)); }; return (true); } public static function init(... _args):void{ _inited = true; _transitionList = new Object(); Equations.init(); _specialPropertyList = new Object(); _specialPropertyModifierList = new Object(); _specialPropertySplitterList = new Object(); } public static function registerTransition(_arg1:String, _arg2:Function):void{ if (!_inited){ init(); }; _transitionList[_arg1] = _arg2; } public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null, _arg5:Function=null):void{ if (!_inited){ init(); }; var _local6:* = new SpecialProperty(_arg2, _arg3, _arg4, _arg5); _specialPropertyList[_arg1] = _local6; } public static function registerSpecialPropertyModifier(_arg1:String, _arg2:Function, _arg3:Function):void{ if (!_inited){ init(); }; var _local4:* = new SpecialPropertyModifier(_arg2, _arg3); _specialPropertyModifierList[_arg1] = _local4; } public static function registerSpecialPropertySplitter(_arg1:String, _arg2:Function, _arg3:Array=null):void{ if (!_inited){ init(); }; var _local4:* = new SpecialPropertySplitter(_arg2, _arg3); _specialPropertySplitterList[_arg1] = _local4; } static function startEngine():void{ _engineExists = true; _tweenList = new Array(); __tweener_controller__ = new MovieClip(); __tweener_controller__.addEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame); _currentTimeFrame = 0; updateTime(); } static function stopEngine():void{ _engineExists = false; _tweenList = null; _currentTime = 0; _currentTimeFrame = 0; __tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame); __tweener_controller__ = null; } public static function updateTime():void{ _currentTime = getTimer(); } _engineExists = false; _inited = false; _timeScale = 1; } }//package com.caurina.transitions
Section 43
//TweenListObj (com.caurina.transitions.TweenListObj) package com.caurina.transitions { public class TweenListObj { public var scope:Object; public var properties:Object; public var timeStart:Number; public var timeComplete:Number; public var useFrames:Boolean; public var transition:Function; public var transitionParams:Object; public var onStart:Function; public var onUpdate:Function; public var onComplete:Function; public var onOverwrite:Function; public var onError:Function; public var onStartParams:Array; public var onUpdateParams:Array; public var onCompleteParams:Array; public var onOverwriteParams:Array; public var onOverwriteScope:Object; public var onErrorScope:Object; public var rounded:Boolean; public var isPaused:Boolean; public var timePaused:Number; public var isCaller:Boolean; public var count:Number; public var timesCalled:Number; public var waitFrames:Boolean; public var skipUpdates:Number; public var updatesSkipped:Number; public var hasStarted:Boolean; public var onUpdateScope:Object; public var onCompleteScope:Object; public var onStartScope:Object; public function TweenListObj(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Boolean, _arg5:Function, _arg6:Object){ scope = _arg1; timeStart = _arg2; timeComplete = _arg3; useFrames = _arg4; transition = _arg5; transitionParams = _arg6; properties = new Object(); isPaused = false; timePaused = undefined; isCaller = false; updatesSkipped = 0; timesCalled = 0; skipUpdates = 0; hasStarted = false; } public function toString():String{ var _local1:* = null; var _local2:* = "\n[TweenListObj "; _local2 = (_local2 + ("scope:" + String(scope))); _local2 = (_local2 + ", properties:"); var _local3:* = true; var _local4:* = 0; var _local5:* = properties; for (_local1 in _local5) { if (!_local3){ _local2 = (_local2 + ","); }; _local2 = (_local2 + ("[name:" + properties[_local1].name)); _local2 = (_local2 + (",valueStart:" + properties[_local1].valueStart)); _local2 = (_local2 + (",valueComplete:" + properties[_local1].valueComplete)); _local2 = (_local2 + "]"); _local3 = false; }; _local2 = (_local2 + (", timeStart:" + String(timeStart))); _local2 = (_local2 + (", timeComplete:" + String(timeComplete))); _local2 = (_local2 + (", useFrames:" + String(useFrames))); _local2 = (_local2 + (", transition:" + String(transition))); _local2 = (_local2 + (", transitionParams:" + String(transitionParams))); if (skipUpdates){ _local2 = (_local2 + (", skipUpdates:" + String(skipUpdates))); }; if (updatesSkipped){ _local2 = (_local2 + (", updatesSkipped:" + String(updatesSkipped))); }; if (Boolean(onStart)){ _local2 = (_local2 + (", onStart:" + String(onStart))); }; if (Boolean(onUpdate)){ _local2 = (_local2 + (", onUpdate:" + String(onUpdate))); }; if (Boolean(onComplete)){ _local2 = (_local2 + (", onComplete:" + String(onComplete))); }; if (Boolean(onOverwrite)){ _local2 = (_local2 + (", onOverwrite:" + String(onOverwrite))); }; if (Boolean(onError)){ _local2 = (_local2 + (", onError:" + String(onError))); }; if (onStartParams){ _local2 = (_local2 + (", onStartParams:" + String(onStartParams))); }; if (onUpdateParams){ _local2 = (_local2 + (", onUpdateParams:" + String(onUpdateParams))); }; if (onCompleteParams){ _local2 = (_local2 + (", onCompleteParams:" + String(onCompleteParams))); }; if (onOverwriteParams){ _local2 = (_local2 + (", onOverwriteParams:" + String(onOverwriteParams))); }; if (onStartScope){ _local2 = (_local2 + (", onStartScope:" + String(onStartScope))); }; if (onUpdateScope){ _local2 = (_local2 + (", onUpdateScope:" + String(onUpdateScope))); }; if (onCompleteScope){ _local2 = (_local2 + (", onCompleteScope:" + String(onCompleteScope))); }; if (onOverwriteScope){ _local2 = (_local2 + (", onOverwriteScope:" + String(onOverwriteScope))); }; if (onErrorScope){ _local2 = (_local2 + (", onErrorScope:" + String(onErrorScope))); }; if (rounded){ _local2 = (_local2 + (", rounded:" + String(rounded))); }; if (isPaused){ _local2 = (_local2 + (", isPaused:" + String(isPaused))); }; if (timePaused){ _local2 = (_local2 + (", timePaused:" + String(timePaused))); }; if (isCaller){ _local2 = (_local2 + (", isCaller:" + String(isCaller))); }; if (count){ _local2 = (_local2 + (", count:" + String(count))); }; if (timesCalled){ _local2 = (_local2 + (", timesCalled:" + String(timesCalled))); }; if (waitFrames){ _local2 = (_local2 + (", waitFrames:" + String(waitFrames))); }; if (hasStarted){ _local2 = (_local2 + (", hasStarted:" + String(hasStarted))); }; _local2 = (_local2 + "]\n"); return (_local2); } public function clone(_arg1:Boolean):TweenListObj{ var _local2:* = null; var _local3:* = new TweenListObj(scope, timeStart, timeComplete, useFrames, transition, transitionParams); _local3.properties = new Array(); var _local4:* = 0; var _local5:* = properties; for (_local2 in _local5) { _local3.properties[_local2] = properties[_local2].clone(); }; _local3.skipUpdates = skipUpdates; _local3.updatesSkipped = updatesSkipped; if (!_arg1){ _local3.onStart = onStart; _local3.onUpdate = onUpdate; _local3.onComplete = onComplete; _local3.onOverwrite = onOverwrite; _local3.onError = onError; _local3.onStartParams = onStartParams; _local3.onUpdateParams = onUpdateParams; _local3.onCompleteParams = onCompleteParams; _local3.onOverwriteParams = onOverwriteParams; _local3.onStartScope = onStartScope; _local3.onUpdateScope = onUpdateScope; _local3.onCompleteScope = onCompleteScope; _local3.onOverwriteScope = onOverwriteScope; _local3.onErrorScope = onErrorScope; }; _local3.rounded = rounded; _local3.isPaused = isPaused; _local3.timePaused = timePaused; _local3.isCaller = isCaller; _local3.count = count; _local3.timesCalled = timesCalled; _local3.waitFrames = waitFrames; _local3.hasStarted = hasStarted; return (_local3); } public static function makePropertiesChain(_arg1:Object):Object{ var _local2:* = null; var _local3:* = null; var _local4:* = null; var _local5:* = NaN; var _local6:* = NaN; var _local7:* = NaN; var _local8:* = _arg1.base; if (_local8){ _local2 = {}; if ((_local8 is Array)){ _local3 = []; _local7 = 0; while (_local7 < _local8.length) { _local3.push(_local8[_local7]); _local7++; }; } else { _local3 = [_local8]; }; _local3.push(_arg1); _local5 = _local3.length; _local6 = 0; while (_local6 < _local5) { if (_local3[_local6]["base"]){ _local4 = AuxFunctions.concatObjects(makePropertiesChain(_local3[_local6]["base"]), _local3[_local6]); } else { _local4 = _local3[_local6]; }; _local2 = AuxFunctions.concatObjects(_local2, _local4); _local6++; }; if (_local2["base"]){ delete _local2["base"]; }; return (_local2); }; return (_arg1); } } }//package com.caurina.transitions
Section 44
//BarColor (com.everydayflash.equalizer.color.BarColor) package com.everydayflash.equalizer.color { import com.everydayflash.equalizer.*; public interface BarColor { function setSettings(_arg1:EqualizerSettings):void; function getColor(_arg1:int, _arg2:int):uint; function onRendered():void; } }//package com.everydayflash.equalizer.color
Section 45
//GradientBarColor (com.everydayflash.equalizer.color.GradientBarColor) package com.everydayflash.equalizer.color { import com.everydayflash.equalizer.*; public class GradientBarColor implements BarColor { private var tc:Array; private var bc:Array; private var settings:EqualizerSettings; public function GradientBarColor(_arg1:uint=0xFF00, _arg2:uint=0xFF0000){ tc = [((_arg1 >> 16) & 0xFF), ((_arg1 >> 8) & 0xFF), (_arg1 & 0xFF)]; bc = [((_arg2 >> 16) & 0xFF), ((_arg2 >> 8) & 0xFF), (_arg2 & 0xFF)]; } public function setSettings(_arg1:EqualizerSettings):void{ this.settings = _arg1; } public function getColor(_arg1:int, _arg2:int):uint{ var _local3:Number = (_arg2 / settings.height); var _local4:* = (0xFF << 24); var _local5:* = ((tc[0] + (_local3 * (bc[0] - tc[0]))) << 16); var _local6:* = ((tc[1] + (_local3 * (bc[1] - tc[1]))) << 8); var _local7:int = (tc[2] + (_local3 * (bc[2] - tc[2]))); return ((((_local4 + _local5) + _local6) + _local7)); } public function onRendered():void{ } } }//package com.everydayflash.equalizer.color
Section 46
//SolidBarColor (com.everydayflash.equalizer.color.SolidBarColor) package com.everydayflash.equalizer.color { import com.everydayflash.equalizer.*; public class SolidBarColor implements BarColor { private var color:uint; public function SolidBarColor(_arg1:uint=4294967295){ color = _arg1; } public function setSettings(_arg1:EqualizerSettings):void{ } public function getColor(_arg1:int, _arg2:int):uint{ return (color); } public function onRendered():void{ } } }//package com.everydayflash.equalizer.color
Section 47
//SpectrumReader (com.everydayflash.equalizer.util.SpectrumReader) package com.everydayflash.equalizer.util { import flash.utils.*; import flash.media.*; public class SpectrumReader { private var bytes:ByteArray; private var reduction:int; private var size:int; private var resultTemplate:Array; private var SPECTRUM_LENGTH:Number;// = 0x0200 private var ARITHMETIC_MEAN:int;// = 0 private var GEOMTRIC_MEAN:int;// = 0 private var MEDIAN:int;// = 0 private var CM_ARITHMETIC_MEAN:int;// = 0 public function SpectrumReader(_arg1:int){ size = _arg1; reduction = Math.round((SPECTRUM_LENGTH / size)); bytes = new ByteArray(); resultTemplate = new Array(); var _local2:* = 0; while (_local2 < size) { resultTemplate.push(0); _local2++; }; } public function getSpectrum():Array{ var _local1:Array; try { SoundMixer.computeSpectrum(bytes, true, 0); _local1 = byMaximumValues(bytes); } catch(e:Error) { }; return (reverseLeftChannel(_local1)); } private function byMaximumValues(_arg1:ByteArray):Array{ var _local2:Array = resultTemplate.concat(); var _local3:uint; while (_local3 < SPECTRUM_LENGTH) { _local2[Math.floor((_local3 / reduction))] = Math.max(_arg1.readFloat(), _local2[Math.floor((_local3 / reduction))]); _local3++; }; return (_local2); } private function byArithmeticMean(_arg1:ByteArray):Array{ var _local2:Array = resultTemplate.concat(); var _local3:* = 0; while (_local3 < SPECTRUM_LENGTH) { _local2[Math.floor((_local3 / reduction))] = (_local2[Math.floor((_local3 / reduction))] + _arg1.readFloat()); _local3++; }; _local3 = 0; while (_local3 < size) { _local2[_local3] = (_local2[_local3] / reduction); _local3++; }; return (_local2); } private function byGeometricMean(_arg1:ByteArray):Array{ var _local2:* = NaN; var _local3:* = NaN; var _local4:Array = resultTemplate.concat(); var _local5:* = 0; while (_local5 < SPECTRUM_LENGTH) { _local2 = _arg1.readFloat(); _local3 = Math.floor((_local5 / reduction)); if (_local4[_local3] == 0){ _local4[_local3] = _local2; } else { if (_local2 > 0){ _local4[Math.floor((_local5 / reduction))] = (_local4[Math.floor((_local5 / reduction))] * _local2); }; }; _local5++; }; _local5 = 0; while (_local5 < size) { _local4[_local5] = Math.pow(_local4[_local5], (1 / reduction)); _local5++; }; return (_local4); } private function byMedian(_arg1:ByteArray):Array{ var _local2:Array = new Array(); var _local3:Array = resultTemplate.concat(); var _local4:* = 0; while (_local4 < SPECTRUM_LENGTH) { _local2.push(_arg1.readFloat()); _local4++; }; _local4 = 0; while (_local4 < SPECTRUM_LENGTH) { _local3[Math.floor((_local4 / reduction))] = ((_local2[(_local4 + (reduction / 2))] + _local2[((_local4 + (reduction / 2)) + 1)]) / 2); _local4 = (_local4 + reduction); }; return (_local3); } private function byMedianNoZero(_arg1:ByteArray):Array{ var _local2:* = 0; var _local3:Array = new Array(); var _local4:Array = resultTemplate.concat(); var _local5:* = 0; while (_local5 < SPECTRUM_LENGTH) { _local3.push(_arg1.readFloat()); _local5++; }; _local5 = 0; while (_local5 < SPECTRUM_LENGTH) { if (_local3[(_local5 + (reduction / 2))] != 0){ _local4[Math.floor((_local5 / reduction))] = ((_local3[(_local5 + (reduction / 2))] + _local3[((_local5 + (reduction / 2)) + 1)]) / 2); } else { _local2 = 0; while (_local2 < reduction) { _local4[Math.floor((_local5 / reduction))] = _local3[(_local5 + _local2)]; if (_local4[Math.floor((_local5 / reduction))] > 0){ break; }; _local2++; }; }; _local5 = (_local5 + reduction); }; return (_local4); } private function multiply(_arg1:Array, _arg2:Number):Array{ var _local3:Array = new Array(); var _local4:* = 0; while (_local4 < size) { _local3.push(Math.min((_arg1[_local4] * _arg2), 1)); _local4++; }; return (_local3); } private function reverseLeftChannel(_arg1:Array):Array{ var _local2:uint; var _local3:Array = new Array(); var _local4:* = 0; while (_local4 < size) { _local2 = ((_local4 < (size / 2))) ? (((size / 2) - _local4) - 1) : _local4; _local3[_local2] = _arg1[_local4]; _local4++; }; return (_local3); } public function getSize():int{ return (size); } } }//package com.everydayflash.equalizer.util
Section 48
//Equalizer (com.everydayflash.equalizer.Equalizer) package com.everydayflash.equalizer { import flash.display.*; import flash.events.*; import com.everydayflash.equalizer.util.*; public class Equalizer extends Sprite { public var canvas:BitmapData; private var canvasHolder:Bitmap; private var settings:EqualizerSettings; private var reader:SpectrumReader; private var effects:EqualizerEffects; public function Equalizer(_arg1:EqualizerSettings=null){ if (_arg1 == null){ _arg1 = new EqualizerSettings(); }; effects = new EqualizerEffects(this); update(_arg1); } public function update(_arg1:EqualizerSettings):void{ settings = _arg1; if (((!((canvas == null))) && (contains(canvasHolder)))){ removeChild(canvasHolder); canvas.dispose(); }; reader = new SpectrumReader(settings.numOfBars); settings.colorManager.setSettings(settings); canvas = new BitmapData(settings.getWidth(), settings.height, true, 0); canvasHolder = new Bitmap(canvas); addChild(canvasHolder); effects.update(settings); } public function getSettings():EqualizerSettings{ return (settings); } public function render(_arg1:Event):void{ var _local2:* = 0; var _local3:* = 0; var _local4:* = 0; var _local5:* = NaN; var _local6:* = NaN; canvas.lock(); var _local7:Array = reader.getSpectrum(); var _local8:int = (reader.getSize() / 2); var _local9:int = settings.barSize; var _local10:int = (((settings.vgrid) && ((settings.barSize > 1)))) ? 1 : 0; _local2 = 0; while (_local2 < reader.getSize()) { _local5 = Math.min(settings.height, Math.round((_local7[_local2] * settings.height))); _local6 = 0; _local3 = 0; while (_local3 < settings.height) { if (canvas.getPixel32((_local2 * _local9), _local3) != 0){ _local4 = 0; while (_local4 < (_local9 - _local10)) { canvas.setPixel32(((_local2 * _local9) + _local4), _local3, 0); _local4++; }; if (settings.hgrid == 0){ _local6++; } else { if (((!((settings.hgrid == 0))) && (((_local3 % settings.hgrid) == 0)))){ _local6++; }; }; }; if (_local6 > (settings.height / (32 * (settings.hgrid + 1)))){ break; }; _local3++; }; _local3 = 0; while (_local3 < _local5) { if (!((!((settings.hgrid == 0))) && (((_local3 % settings.hgrid) == 1)))){ if (((!((settings.hgrid == 0))) && (((_local5 / settings.hgrid) < 1)))){ break; }; _local4 = 0; while (_local4 < (_local9 - _local10)) { canvas.setPixel32(((_local2 * _local9) + _local4), (settings.height - _local3), settings.colorManager.getColor(_local2, _local3)); _local4++; }; }; _local3++; }; _local2++; }; canvas.unlock(); settings.colorManager.onRendered(); effects.onRendered(); } } }//package com.everydayflash.equalizer
Section 49
//EqualizerEffects (com.everydayflash.equalizer.EqualizerEffects) package com.everydayflash.equalizer { import flash.display.*; import com.gskinner.geom.*; import flash.geom.*; import flash.filters.*; public class EqualizerEffects { private var equalizer:Equalizer; private var currentEffect:int; private var reflection:BitmapData; private var reflectionHolder:Bitmap; public function EqualizerEffects(_arg1:Equalizer){ equalizer = _arg1; } public function update(_arg1:EqualizerSettings):void{ var _local2:ColorMatrix; currentEffect = _arg1.effect; equalizer.filters = [new BlurFilter(0, 0, 1)]; if (((!((reflection == null))) && (equalizer.contains(reflectionHolder)))){ equalizer.removeChild(reflectionHolder); reflection.dispose(); (reflection == null); }; switch (_arg1.effect){ case EqualizerSettings.FX_LIGHT_BLUR: equalizer.filters = [new BlurFilter(6, 6, 3)]; break; case EqualizerSettings.FX_STRONG_BLUR: equalizer.filters = [new BlurFilter(12, 12, 3)]; break; case EqualizerSettings.FX_REFLECTION: reflection = new BitmapData(_arg1.getWidth(), _arg1.height, true, 0); reflectionHolder = new Bitmap(reflection); reflectionHolder.y = (_arg1.height * 1.6); reflectionHolder.x = 0; reflectionHolder.rotation = 180; reflectionHolder.scaleX = -1; reflectionHolder.scaleY = 0.6; _local2 = new ColorMatrix(); _local2.adjustBrightness(-60); reflectionHolder.filters = [new ColorMatrixFilter(_local2), new BlurFilter(6, 6, 3)]; equalizer.addChild(reflectionHolder); reflectionHolder.alpha = 0.8; break; }; } public function onRendered():void{ if (currentEffect == EqualizerSettings.FX_REFLECTION){ reflection.copyPixels(equalizer.canvas, equalizer.canvas.rect, new Point(0, 0)); }; } } }//package com.everydayflash.equalizer
Section 50
//EqualizerSettings (com.everydayflash.equalizer.EqualizerSettings) package com.everydayflash.equalizer { import com.everydayflash.equalizer.color.*; public class EqualizerSettings { public var numOfBars:int; public var height:int; public var barSize:int; public var colorManager:BarColor; public var vgrid:Boolean; public var hgrid:int; public var effect:int; public static var FX_NONE:int = 0; public static var FX_REFLECTION:int = 1; public static var FX_LIGHT_BLUR:int = 2; public static var FX_STRONG_BLUR:int = 3; public function EqualizerSettings(){ numOfBars = 32; height = 32; barSize = 1; colorManager = new SolidBarColor(); vgrid = false; hgrid = 0; effect = FX_NONE; } public function getWidth():int{ return ((numOfBars * barSize)); } public function toString():String{ var _local1:* = (((((("Size: (" + numOfBars) + " * ") + barSize) + ") / ") + height) + "\n"); return (_local1); } } }//package com.everydayflash.equalizer
Section 51
//Animation (com.greensock.core.Animation) package com.greensock.core { import flash.display.*; import flash.events.*; import flash.utils.*; public class Animation { protected var _onUpdate:Function; public var _delay:Number; public var _rawPrevTime:Number; public var _active:Boolean; public var _gc:Boolean; public var _initted:Boolean; public var _startTime:Number; public var _time:Number; public var _totalTime:Number; public var _duration:Number; public var _totalDuration:Number; public var _pauseTime:Number; public var _timeScale:Number; public var _reversed:Boolean; public var _timeline:SimpleTimeline; public var _dirty:Boolean; public var _paused:Boolean; public var _next:Animation; public var _prev:Animation; public var vars:Object; public var timeline:SimpleTimeline; public var data; public static const version:String = "12.1.1"; public static var ticker:Shape = new Shape(); public static var _rootTimeline:SimpleTimeline; public static var _rootFramesTimeline:SimpleTimeline; protected static var _rootFrame:Number = -1; protected static var _tickEvent:Event = new Event("tick"); protected static var _tinyNum:Number = 1E-10; public function Animation(_arg1:Number=0, _arg2:Object=null){ this.vars = ((_arg2) || ({})); if (this.vars._isGSVars){ this.vars = this.vars.vars; }; _duration = (_totalDuration = ((_arg1) || (0))); _delay = ((Number(this.vars.delay)) || (0)); _timeScale = 1; _totalTime = (_time = 0); data = this.vars.data; _rawPrevTime = -1; if (_rootTimeline == null){ if (_rootFrame == -1){ _rootFrame = 0; _rootFramesTimeline = new SimpleTimeline(); _rootTimeline = new SimpleTimeline(); _rootTimeline._startTime = (getTimer() / 1000); _rootFramesTimeline._startTime = 0; _rootTimeline._active = (_rootFramesTimeline._active = true); ticker.addEventListener("enterFrame", _updateRoot, false, 0, true); } else { return; }; }; var _local3:SimpleTimeline = (this.vars.useFrames) ? _rootFramesTimeline : _rootTimeline; _local3.add(this, _local3._time); _reversed = (this.vars.reversed == true); if (this.vars.paused){ paused(true); }; } public function play(_arg1=null, _arg2:Boolean=true){ if (_arg1 != null){ seek(_arg1, _arg2); }; reversed(false); return (paused(false)); } public function pause(_arg1=null, _arg2:Boolean=true){ if (_arg1 != null){ seek(_arg1, _arg2); }; return (paused(true)); } public function resume(_arg1=null, _arg2:Boolean=true){ if (_arg1 != null){ seek(_arg1, _arg2); }; return (paused(false)); } public function seek(_arg1, _arg2:Boolean=true){ return (totalTime(Number(_arg1), _arg2)); } public function restart(_arg1:Boolean=false, _arg2:Boolean=true){ reversed(false); paused(false); return (totalTime((_arg1) ? -(_delay) : 0, _arg2, true)); } public function reverse(_arg1=null, _arg2:Boolean=true){ if (_arg1 != null){ seek(((_arg1) || (totalDuration())), _arg2); }; reversed(true); return (paused(false)); } public function render(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{ } public function invalidate(){ return (this); } public function isActive():Boolean{ var _local2:Number; var _local1:SimpleTimeline = _timeline; return ((((_local1 == null)) || (((((((((!(_gc)) && (!(_paused)))) && (_local1.isActive()))) && ((_local1.rawTime() >= _startTime)))) && ((_local2 < (_startTime + (totalDuration() / _timeScale)))))))); } public function _enabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{ _gc = !(_arg1); _active = Boolean(((((((_arg1) && (!(_paused)))) && ((_totalTime > 0)))) && ((_totalTime < _totalDuration)))); if (!_arg2){ if (((_arg1) && ((timeline == null)))){ _timeline.add(this, (_startTime - _delay)); } else { if (((!(_arg1)) && (!((timeline == null))))){ _timeline._remove(this, true); }; }; }; return (false); } public function _kill(_arg1:Object=null, _arg2:Object=null):Boolean{ return (_enabled(false, false)); } public function kill(_arg1:Object=null, _arg2:Object=null){ _kill(_arg1, _arg2); return (this); } protected function _uncache(_arg1:Boolean){ var _local2:Animation = (_arg1) ? this : timeline; while (_local2) { _local2._dirty = true; _local2 = _local2.timeline; }; return (this); } protected function _swapSelfInParams(_arg1:Array):Array{ var _local2:int = _arg1.length; var _local3:Array = _arg1.concat(); while (--_local2 > -1) { if (_arg1[_local2] === "{self}"){ _local3[_local2] = this; }; }; return (_local3); } public function eventCallback(_arg1:String, _arg2:Function=null, _arg3:Array=null){ if (_arg1 == null){ return (null); }; if (_arg1.substr(0, 2) == "on"){ if (arguments.length == 1){ return (vars[_arg1]); }; if (_arg2 == null){ delete vars[_arg1]; } else { vars[_arg1] = _arg2; vars[(_arg1 + "Params")] = ((((_arg3 is Array)) && (!((_arg3.join("").indexOf("{self}") === -1))))) ? _swapSelfInParams(_arg3) : _arg3; }; if (_arg1 == "onUpdate"){ _onUpdate = _arg2; }; }; return (this); } public function delay(_arg1:Number=NaN){ if (!arguments.length){ return (_delay); }; if (_timeline.smoothChildTiming){ startTime(((_startTime + _arg1) - _delay)); }; _delay = _arg1; return (this); } public function duration(_arg1:Number=NaN){ if (!arguments.length){ _dirty = false; return (_duration); }; _duration = (_totalDuration = _arg1); _uncache(true); if (_timeline.smoothChildTiming){ if (_time > 0){ if (_time < _duration){ if (_arg1 != 0){ totalTime((_totalTime * (_arg1 / _duration)), true); }; }; }; }; return (this); } public function totalDuration(_arg1:Number=NaN){ _dirty = false; return ((arguments.length) ? duration(_arg1) : _totalDuration); } public function time(_arg1:Number=NaN, _arg2:Boolean=false){ if (!arguments.length){ return (_time); }; if (_dirty){ totalDuration(); }; if (_arg1 > _duration){ _arg1 = _duration; }; return (totalTime(_arg1, _arg2)); } public function totalTime(_arg1:Number=NaN, _arg2:Boolean=false, _arg3:Boolean=false){ var _local5:SimpleTimeline; if (!arguments.length){ return (_totalTime); }; if (_timeline){ if ((((_arg1 < 0)) && (!(_arg3)))){ _arg1 = (_arg1 + totalDuration()); }; if (_timeline.smoothChildTiming){ if (_dirty){ totalDuration(); }; if ((((_arg1 > _totalDuration)) && (!(_arg3)))){ _arg1 = _totalDuration; }; _local5 = _timeline; _startTime = ((_paused) ? _pauseTime : _local5._time - ((_reversed) ? (_totalDuration - _arg1) : _arg1 / _timeScale)); if (!_timeline._dirty){ _uncache(false); }; if (_local5._timeline != null){ while (_local5._timeline) { if (_local5._timeline._time !== ((_local5._startTime + _local5._totalTime) / _local5._timeScale)){ _local5.totalTime(_local5._totalTime, true); }; _local5 = _local5._timeline; }; }; }; if (_gc){ _enabled(true, false); }; if (((!((_totalTime == _arg1))) || ((_duration === 0)))){ render(_arg1, _arg2, false); }; }; return (this); } public function progress(_arg1:Number=NaN, _arg2:Boolean=false){ return ((arguments.length) ? totalTime((duration() * _arg1), _arg2) : (_time / duration())); } public function totalProgress(_arg1:Number=NaN, _arg2:Boolean=false){ return ((arguments.length) ? totalTime((duration() * _arg1), _arg2) : (_time / duration())); } public function startTime(_arg1:Number=NaN){ if (!arguments.length){ return (_startTime); }; if (_arg1 != _startTime){ _startTime = _arg1; if (timeline){ if (timeline._sortChildren){ timeline.add(this, (_arg1 - _delay)); }; }; }; return (this); } public function timeScale(_arg1:Number=NaN){ var _local3:Number; if (!arguments.length){ return (_timeScale); }; _arg1 = ((_arg1) || (1E-6)); if (((_timeline) && (_timeline.smoothChildTiming))){ _local3 = (((_pauseTime) || ((_pauseTime == 0)))) ? _pauseTime : _timeline._totalTime; _startTime = (_local3 - (((_local3 - _startTime) * _timeScale) / _arg1)); }; _timeScale = _arg1; return (_uncache(false)); } public function reversed(_arg1:Boolean=false){ if (!arguments.length){ return (_reversed); }; if (_arg1 != _reversed){ _reversed = _arg1; totalTime((((_timeline) && (!(_timeline.smoothChildTiming)))) ? (totalDuration() - _totalTime) : _totalTime, true); }; return (this); } public function paused(_arg1:Boolean=false){ var _local3:Number; var _local4:Number; if (!arguments.length){ return (_paused); }; if (_arg1 != _paused){ if (_timeline){ _local3 = _timeline.rawTime(); _local4 = (_local3 - _pauseTime); if (((!(_arg1)) && (_timeline.smoothChildTiming))){ _startTime = (_startTime + _local4); _uncache(false); }; _pauseTime = (_arg1) ? _local3 : NaN; _paused = _arg1; _active = ((((!(_arg1)) && ((_totalTime > 0)))) && ((_totalTime < _totalDuration))); if (((((((!(_arg1)) && (!((_local4 == 0))))) && (_initted))) && (!((duration() === 0))))){ render((_timeline.smoothChildTiming) ? _totalTime : ((_local3 - _startTime) / _timeScale), true, true); }; }; }; if (((_gc) && (!(_arg1)))){ _enabled(true, false); }; return (this); } public static function _updateRoot(_arg1:Event=null):void{ _rootFrame++; _rootTimeline.render((((getTimer() / 1000) - _rootTimeline._startTime) * _rootTimeline._timeScale), false, false); _rootFramesTimeline.render(((_rootFrame - _rootFramesTimeline._startTime) * _rootFramesTimeline._timeScale), false, false); ticker.dispatchEvent(_tickEvent); } } }//package com.greensock.core
Section 52
//PropTween (com.greensock.core.PropTween) package com.greensock.core { public final class PropTween { public var t:Object; public var p:String; public var s:Number; public var c:Number; public var f:Boolean; public var pr:int; public var pg:Boolean; public var n:String; public var r:Boolean; public var _next:PropTween; public var _prev:PropTween; public function PropTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean, _arg7:PropTween=null, _arg8:int=0){ this.t = _arg1; this.p = _arg2; this.s = _arg3; this.c = _arg4; this.n = _arg5; this.f = (_arg1[_arg2] is Function); this.pg = _arg6; if (_arg7){ _arg7._prev = this; this._next = _arg7; }; this.pr = _arg8; } } }//package com.greensock.core
Section 53
//SimpleTimeline (com.greensock.core.SimpleTimeline) package com.greensock.core { public class SimpleTimeline extends Animation { public var autoRemoveChildren:Boolean; public var smoothChildTiming:Boolean; public var _sortChildren:Boolean; public var _first:Animation; public var _last:Animation; public function SimpleTimeline(_arg1:Object=null){ super(0, _arg1); this.autoRemoveChildren = (this.smoothChildTiming = true); } public function insert(_arg1, _arg2=0){ return (add(_arg1, ((_arg2) || (0)))); } public function add(_arg1, _arg2="+=0", _arg3:String="normal", _arg4:Number=0){ var _local6:Number; _arg1._startTime = (Number(((_arg2) || (0))) + _arg1._delay); if (_arg1._paused){ if (this != _arg1._timeline){ _arg1._pauseTime = (_arg1._startTime + ((rawTime() - _arg1._startTime) / _arg1._timeScale)); }; }; if (_arg1.timeline){ _arg1.timeline._remove(_arg1, true); }; _arg1.timeline = (_arg1._timeline = this); if (_arg1._gc){ _arg1._enabled(true, true); }; var _local5:Animation = _last; if (_sortChildren){ _local6 = _arg1._startTime; while (((_local5) && ((_local5._startTime > _local6)))) { _local5 = _local5._prev; }; }; if (_local5){ _arg1._next = _local5._next; _local5._next = Animation(_arg1); } else { _arg1._next = _first; _first = Animation(_arg1); }; if (_arg1._next){ _arg1._next._prev = _arg1; } else { _last = Animation(_arg1); }; _arg1._prev = _local5; if (_timeline){ _uncache(true); }; return (this); } public function _remove(_arg1:Animation, _arg2:Boolean=false){ if (_arg1.timeline == this){ if (!_arg2){ _arg1._enabled(false, true); }; if (_arg1._prev){ _arg1._prev._next = _arg1._next; } else { if (_first === _arg1){ _first = _arg1._next; }; }; if (_arg1._next){ _arg1._next._prev = _arg1._prev; } else { if (_last === _arg1){ _last = _arg1._prev; }; }; _arg1._next = (_arg1._prev = (_arg1.timeline = null)); if (_timeline){ _uncache(true); }; }; return (this); } override public function render(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{ var _local5:Animation; var _local4:Animation = _first; _totalTime = (_time = (_rawPrevTime = _arg1)); while (_local4) { _local5 = _local4._next; if (((_local4._active) || ((((_arg1 >= _local4._startTime)) && (!(_local4._paused)))))){ if (!_local4._reversed){ _local4.render(((_arg1 - _local4._startTime) * _local4._timeScale), _arg2, _arg3); } else { _local4.render(((_local4._dirty) ? _local4.totalDuration() : _local4._totalDuration - ((_arg1 - _local4._startTime) * _local4._timeScale)), _arg2, _arg3); }; }; _local4 = _local5; }; } public function rawTime():Number{ return (_totalTime); } } }//package com.greensock.core
Section 54
//Ease (com.greensock.easing.Ease) package com.greensock.easing { public class Ease { protected var _func:Function; protected var _params:Array; protected var _p1:Number; protected var _p2:Number; protected var _p3:Number; public var _type:int; public var _power:int; public var _calcEnd:Boolean; protected static var _baseParams:Array = [0, 0, 1, 1]; public function Ease(_arg1:Function=null, _arg2:Array=null, _arg3:Number=0, _arg4:Number=0){ _func = _arg1; _params = (_arg2) ? _baseParams.concat(_arg2) : _baseParams; _type = _arg3; _power = _arg4; } public function getRatio(_arg1:Number):Number{ var _local2:Number; if (_func != null){ _params[0] = _arg1; return (_func.apply(null, _params)); }; _local2 = ((_type)==1) ? (1 - _arg1) : ((_type)==2) ? _arg1 : ((_arg1)<0.5) ? (_arg1 * 2) : ((1 - _arg1) * 2); if (_power == 1){ _local2 = (_local2 * _local2); } else { if (_power == 2){ _local2 = (_local2 * (_local2 * _local2)); } else { if (_power == 3){ _local2 = (_local2 * ((_local2 * _local2) * _local2)); } else { if (_power == 4){ _local2 = (_local2 * (((_local2 * _local2) * _local2) * _local2)); }; }; }; }; return (((_type)==1) ? (1 - _local2) : ((_type)==2) ? _local2 : ((_arg1)<0.5) ? (_local2 / 2) : (1 - (_local2 / 2))); } } }//package com.greensock.easing
Section 55
//TweenEvent (com.greensock.events.TweenEvent) package com.greensock.events { import flash.events.*; public class TweenEvent extends Event { public static const VERSION:Number = 12; public static const START:String = "start"; public static const UPDATE:String = "change"; public static const COMPLETE:String = "complete"; public static const REVERSE_COMPLETE:String = "reverseComplete"; public static const REPEAT:String = "repeat"; public function TweenEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); } override public function clone():Event{ return (new TweenEvent(this.type, this.bubbles, this.cancelable)); } } }//package com.greensock.events
Section 56
//AutoAlphaPlugin (com.greensock.plugins.AutoAlphaPlugin) package com.greensock.plugins { import com.greensock.*; public class AutoAlphaPlugin extends TweenPlugin { protected var _target:Object; protected var _ignoreVisible:Boolean; public static const API:Number = 2; public function AutoAlphaPlugin(){ super("autoAlpha,alpha,visible"); } override public function _onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _addTween(_arg1, "alpha", _arg1.alpha, _arg2, "alpha"); return (true); } override public function _kill(_arg1:Object):Boolean{ _ignoreVisible = ("visible" in _arg1); return (super._kill(_arg1)); } override public function setRatio(_arg1:Number):void{ super.setRatio(_arg1); if (!_ignoreVisible){ _target.visible = !((_target.alpha == 0)); }; } } }//package com.greensock.plugins
Section 57
//BevelFilterPlugin (com.greensock.plugins.BevelFilterPlugin) package com.greensock.plugins { import com.greensock.*; import flash.filters.*; public class BevelFilterPlugin extends FilterPlugin { public static const API:Number = 2; private static var _propNames:Array = ["distance", "angle", "highlightColor", "highlightAlpha", "shadowColor", "shadowAlpha", "blurX", "blurY", "strength", "quality"]; public function BevelFilterPlugin(){ super("bevelFilter"); } override public function _onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ return (_initFilter(_arg1, _arg2, _arg3, BevelFilter, new BevelFilter(0, 0, 0xFFFFFF, 0.5, 0, 0.5, 2, 2, 0, ((_arg2.quality) || (2))), _propNames)); } } }//package com.greensock.plugins
Section 58
//BezierPlugin (com.greensock.plugins.BezierPlugin) package com.greensock.plugins { import com.greensock.*; import flash.geom.*; public class BezierPlugin extends TweenPlugin { protected var _target:Object; protected var _autoRotate:Array; protected var _round:Object; protected var _lengths:Array; protected var _segments:Array; protected var _length:Number; protected var _func:Object; protected var _props:Array; protected var _l1:Number; protected var _l2:Number; protected var _li:Number; protected var _curSeg:Array; protected var _s1:Number; protected var _s2:Number; protected var _si:Number; protected var _beziers:Object; protected var _segCount:int; protected var _prec:Number; protected var _timeRes:int; protected var _initialRotations:Array; protected var _startRatio:int; public static const API:Number = 2; protected static const _RAD2DEG:Number = 57.2957795130823; protected static var _r1:Array = []; protected static var _r2:Array = []; protected static var _r3:Array = []; protected static var _corProps:Object = {}; public function BezierPlugin(){ super("bezier"); this._overwriteProps.pop(); this._func = {}; this._round = {}; } override public function _onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ var _local9:String; var _local10:Boolean; var _local11:int; var _local12:int; var _local13:Array; var _local14:Object; var _local15:Object; this._target = _arg1; var _local4:Object = ((_arg2 is Array)) ? {values:_arg2} : _arg2; this._props = []; this._timeRes = ((_local4.timeResolution)==null) ? 6 : int(_local4.timeResolution); var _local5:Array = ((_local4.values) || ([])); var _local6:Object = {}; var _local7:Object = _local5[0]; var _local8:Object = ((_local4.autoRotate) || (_arg3.vars.orientToBezier)); this._autoRotate = (_local8) ? ((_local8 is Array)) ? (_local8 as Array) : [["x", "y", "rotation", ((_local8)===true) ? 0 : Number(_local8)]] : null; if ((_local7 is Point)){ this._props = ["x", "y"]; } else { for (_local9 in _local7) { this._props.push(_local9); }; }; _local11 = this._props.length; while (--_local11 > -1) { _local9 = this._props[_local11]; this._overwriteProps.push(_local9); _local10 = (this._func[_local9] = (_arg1[_local9] is Function)); _local6[_local9] = (_local10) ? _arg1[(((_local9.indexOf("set")) || (!((("get" + _local9.substr(3)) in _arg1))))) ? _local9 : ("get" + _local9.substr(3))]() : _arg1[_local9]; if (!_local14){ if (_local6[_local9] !== _local5[0][_local9]){ _local14 = _local6; }; }; }; this._beziers = (((((!((_local4.type === "cubic"))) && (!((_local4.type === "quadratic"))))) && (!((_local4.type === "soft"))))) ? bezierThrough(_local5, (isNaN(_local4.curviness)) ? 1 : _local4.curviness, false, (_local4.type === "thruBasic"), ((_local4.correlate) || ("x,y,z")), _local14) : _parseBezierData(_local5, _local4.type, _local6); this._segCount = this._beziers[_local9].length; if (this._timeRes){ _local15 = _parseLengthData(this._beziers, this._timeRes); this._length = _local15.length; this._lengths = _local15.lengths; this._segments = _local15.segments; this._l1 = (this._li = (this._s1 = (this._si = 0))); this._l2 = this._lengths[0]; this._curSeg = this._segments[0]; this._s2 = this._curSeg[0]; this._prec = (1 / this._curSeg.length); }; _local13 = this._autoRotate; if (_local13){ this._initialRotations = []; if (!(_local13[0] is Array)){ _local13 = [_local13]; this._autoRotate = _local13; }; _local11 = _local13.length; while (--_local11 > -1) { _local12 = 0; while (_local12 < 3) { _local9 = _local13[_local11][_local12]; this._func[_local9] = ((_arg1[_local9] is Function)) ? _arg1[(((_local9.indexOf("set")) || (!((("get" + _local9.substr(3)) in _arg1))))) ? _local9 : ("get" + _local9.substr(3))] : false; _local12++; }; _local9 = _local13[_local11][2]; this._initialRotations[_local11] = (this._func[_local9]) ? this._func[_local9]() : this._target[_local9]; }; }; _startRatio = (_arg3.vars.runBackwards) ? 1 : 0; return (true); } override public function _kill(_arg1:Object):Boolean{ var _local3:String; var _local4:int; var _local2:Array = this._props; for (_local3 in _beziers) { if ((_local3 in _arg1)){ delete _beziers[_local3]; delete _func[_local3]; _local4 = _local2.length; while (--_local4 > -1) { if (_local2[_local4] === _local3){ _local2.splice(_local4, 1); }; }; }; }; return (super._kill(_arg1)); } override public function _roundProps(_arg1:Object, _arg2:Boolean=true):void{ var _local3:Array = this._overwriteProps; var _local4:int = _local3.length; while (--_local4 > -1) { if ((((((_local3[_local4] in _arg1)) || (("bezier" in _arg1)))) || (("bezierThrough" in _arg1)))){ this._round[_local3[_local4]] = _arg2; }; }; } override public function setRatio(_arg1:Number):void{ var _local6:int; var _local7:Number; var _local8:int; var _local9:String; var _local10:Segment; var _local11:Number; var _local12:Number; var _local13:int; var _local14:Array; var _local15:Array; var _local16:Array; var _local17:Segment; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; var _local23:Number; var _local2:int = this._segCount; var _local3:Object = this._func; var _local4:Object = this._target; var _local5 = !((_arg1 === this._startRatio)); if (this._timeRes == 0){ _local6 = ((_arg1)<0) ? 0 : ((_arg1)>=1) ? (_local2 - 1) : ((_local2 * _arg1) >> 0); _local11 = ((_arg1 - (_local6 * (1 / _local2))) * _local2); } else { _local14 = this._lengths; _local15 = this._curSeg; _arg1 = (_arg1 * this._length); _local8 = this._li; if ((((_arg1 > this._l2)) && ((_local8 < (_local2 - 1))))){ _local13 = (_local2 - 1); do { } while ((((_local8 < _local13)) && (((this._l2 = _local14[_temp2]) <= _arg1)))); this._l1 = _local14[(_local8 - 1)]; this._li = _local8; _local15 = this._segments[_local8]; this._curSeg = _local15; this._s2 = _local15[(this._s1 = (this._si = 0))]; } else { if ((((_arg1 < this._l1)) && ((_local8 > 0)))){ do { } while ((((_local8 > 0)) && (((this._l1 = _local14[_temp4]) >= _arg1)))); if ((((_local8 === 0)) && ((_arg1 < this._l1)))){ this._l1 = 0; } else { _local8++; }; this._l2 = _local14[_local8]; this._li = _local8; _local15 = this._segments[_local8]; this._curSeg = _local15; this._s1 = ((_local15[((this._si = (_local15.length - 1)) - 1)]) || (0)); this._s2 = _local15[this._si]; }; }; _local6 = _local8; _arg1 = (_arg1 - this._l1); _local8 = this._si; if ((((_arg1 > this._s2)) && ((_local8 < (_local15.length - 1))))){ _local13 = (_local15.length - 1); do { } while ((((_local8 < _local13)) && (((this._s2 = _local15[_temp6]) <= _arg1)))); this._s1 = _local15[(_local8 - 1)]; this._si = _local8; } else { if ((((_arg1 < this._s1)) && ((_local8 > 0)))){ do { } while ((((_local8 > 0)) && (((this._s1 = _local15[_temp8]) >= _arg1)))); if ((((_local8 === 0)) && ((_arg1 < this._s1)))){ this._s1 = 0; } else { _local8++; }; this._s2 = _local15[_local8]; this._si = _local8; }; }; _local11 = ((_local8 + ((_arg1 - this._s1) / (this._s2 - this._s1))) * this._prec); }; _local7 = (1 - _local11); _local8 = this._props.length; while (--_local8 > -1) { _local9 = this._props[_local8]; _local10 = this._beziers[_local9][_local6]; _local12 = (((((_local11 * _local11) * _local10.da) + ((3 * _local7) * ((_local11 * _local10.ca) + (_local7 * _local10.ba)))) * _local11) + _local10.a); if (this._round[_local9]){ _local12 = ((_local12 + ((_local12)>0) ? 0.5 : -0.5) >> 0); }; if (_local3[_local9]){ var _local24 = _local4; _local24[_local9](_local12); } else { _local4[_local9] = _local12; }; }; if (this._autoRotate != null){ _local16 = this._autoRotate; _local8 = _local16.length; while (--_local8 > -1) { _local9 = _local16[_local8][2]; _local22 = ((_local16[_local8][3]) || (0)); _local23 = ((_local16[_local8][4])==true) ? 1 : _RAD2DEG; _local10 = this._beziers[_local16[_local8][0]][_local6]; _local17 = this._beziers[_local16[_local8][1]][_local6]; _local18 = (_local10.a + ((_local10.b - _local10.a) * _local11)); _local20 = (_local10.b + ((_local10.c - _local10.b) * _local11)); _local18 = (_local18 + ((_local20 - _local18) * _local11)); _local20 = (_local20 + (((_local10.c + ((_local10.d - _local10.c) * _local11)) - _local20) * _local11)); _local19 = (_local17.a + ((_local17.b - _local17.a) * _local11)); _local21 = (_local17.b + ((_local17.c - _local17.b) * _local11)); _local19 = (_local19 + ((_local21 - _local19) * _local11)); _local21 = (_local21 + (((_local17.c + ((_local17.d - _local17.c) * _local11)) - _local21) * _local11)); _local12 = (_local5) ? ((Math.atan2((_local21 - _local19), (_local20 - _local18)) * _local23) + _local22) : this._initialRotations[_local8]; if (_local3[_local9]){ _local24 = _local4; _local24[_local9](_local12); } else { _local4[_local9] = _local12; }; }; }; } public static function bezierThrough(_arg1:Array, _arg2:Number=1, _arg3:Boolean=false, _arg4:Boolean=false, _arg5:String="x,y,z", _arg6:Object=null):Object{ var _local9:Array; var _local10:int; var _local11:String; var _local12:int; var _local13:Array; var _local14:int; var _local15:Number; var _local16:Boolean; var _local17:Object; var _local7:Object = {}; var _local8:Object = ((_arg6) || (_arg1[0])); _arg5 = (("," + _arg5) + ","); if ((_local8 is Point)){ _local9 = ["x", "y"]; } else { _local9 = []; for (_local11 in _local8) { _local9.push(_local11); }; }; if (_arg1.length > 1){ _local17 = _arg1[(_arg1.length - 1)]; _local16 = true; _local10 = _local9.length; while (--_local10 > -1) { _local11 = _local9[_local10]; if (Math.abs((_local8[_local11] - _local17[_local11])) > 0.05){ _local16 = false; break; }; }; if (_local16){ _arg1 = _arg1.concat(); if (_arg6){ _arg1.unshift(_arg6); }; _arg1.push(_arg1[1]); _arg6 = _arg1[(_arg1.length - 3)]; }; }; _r1.length = (_r2.length = (_r3.length = 0)); _local10 = _local9.length; while (--_local10 > -1) { _local11 = _local9[_local10]; _corProps[_local11] = !((_arg5.indexOf((("," + _local11) + ",")) === -1)); _local7[_local11] = _parseAnchors(_arg1, _local11, _corProps[_local11], _arg6); }; _local10 = _r1.length; while (--_local10 > -1) { _r1[_local10] = Math.sqrt(_r1[_local10]); _r2[_local10] = Math.sqrt(_r2[_local10]); }; if (!_arg4){ _local10 = _local9.length; while (--_local10 > -1) { if (_corProps[_local11]){ _local13 = _local7[_local9[_local10]]; _local14 = (_local13.length - 1); _local12 = 0; while (_local12 < _local14) { _local15 = ((_local13[(_local12 + 1)].da / _r2[_local12]) + (_local13[_local12].da / _r1[_local12])); _r3[_local12] = (((_r3[_local12]) || (0)) + (_local15 * _local15)); _local12++; }; }; }; _local10 = _r3.length; while (--_local10 > -1) { _r3[_local10] = Math.sqrt(_r3[_local10]); }; }; _local10 = _local9.length; _local12 = (_arg3) ? 4 : 1; while (--_local10 > -1) { _local11 = _local9[_local10]; _local13 = _local7[_local11]; _calculateControlPoints(_local13, _arg2, _arg3, _arg4, _corProps[_local11]); if (_local16){ _local13.splice(0, _local12); _local13.splice((_local13.length - _local12), _local12); }; }; return (_local7); } public static function _parseBezierData(_arg1:Array, _arg2:String, _arg3:Object=null):Object{ var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Array; var _local12:Array; var _local13:int; var _local14:int; var _local15:int; var _local16:String; var _local17:int; var _local18:Object; _arg2 = ((_arg2) || ("soft")); var _local4:Object = {}; var _local5:int = ((_arg2)==="cubic") ? 3 : 2; var _local6 = (_arg2 === "soft"); if (((_local6) && (_arg3))){ _arg1 = [_arg3].concat(_arg1); }; if ((((_arg1 == null)) || ((_arg1.length < (_local5 + 1))))){ throw (new Error("invalid Bezier data")); }; if ((_arg1[1] is Point)){ _local12 = ["x", "y"]; } else { _local12 = []; for (_local16 in _arg1[0]) { _local12.push(_local16); }; }; _local13 = _local12.length; while (--_local13 > -1) { _local16 = _local12[_local13]; _local11 = []; _local4[_local16] = _local11; _local17 = 0; _local15 = _arg1.length; _local14 = 0; while (_local14 < _local15) { _local7 = ((_arg3)==null) ? _arg1[_local14][_local16] : _local18 = _arg1[_local14][_local16]; ((((typeof(_local18) === "string")) && ((_local18.charAt(1) === "=")))) ? (_arg3[_local16] + Number((_local18.charAt(0) + _local18.substr(2)))) : Number(_local18); if (_local6){ if (_local14 > 1){ if (_local14 < (_local15 - 1)){ var _temp1 = _local17; _local17 = (_local17 + 1); var _local19 = _temp1; _local11[_local19] = ((_local7 + _local11[(_local17 - 2)]) / 2); }; }; }; var _temp2 = _local17; _local17 = (_local17 + 1); _local19 = _temp2; _local11[_local19] = _local7; _local14++; }; _local15 = ((_local17 - _local5) + 1); _local17 = 0; _local14 = 0; while (_local14 < _local15) { _local7 = _local11[_local14]; _local8 = _local11[(_local14 + 1)]; _local9 = _local11[(_local14 + 2)]; _local10 = ((_local5)===2) ? 0 : _local11[(_local14 + 3)]; var _temp3 = _local17; _local17 = (_local17 + 1); _local19 = _temp3; _local11[_local19] = ((_local5)===3) ? new Segment(_local7, _local8, _local9, _local10) : new Segment(_local7, (((2 * _local8) + _local7) / 3), (((2 * _local8) + _local9) / 3), _local9); _local14 = (_local14 + _local5); }; _local11.length = _local17; }; return (_local4); } protected static function _parseAnchors(_arg1:Array, _arg2:String, _arg3:Boolean, _arg4:Object):Array{ var _local6:int; var _local7:int; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Object; var _local5:Array = []; if (_arg4){ _arg1 = [_arg4].concat(_arg1); _local7 = _arg1.length; while (--_local7 > -1) { _local11 = _arg1[_local7][_arg2]; if (typeof(_local11) === "string"){ if (_local11.charAt(1) === "="){ _arg1[_local7][_arg2] = (_arg4[_arg2] + Number((_local11.charAt(0) + _local11.substr(2)))); }; }; }; }; _local6 = (_arg1.length - 2); if (_local6 < 0){ _local5[0] = new Segment(_arg1[0][_arg2], 0, 0, _arg1[((_local6)<-1) ? 0 : 1][_arg2]); return (_local5); }; _local7 = 0; while (_local7 < _local6) { _local8 = _arg1[_local7][_arg2]; _local9 = _arg1[(_local7 + 1)][_arg2]; _local5[_local7] = new Segment(_local8, 0, 0, _local9); if (_arg3){ _local10 = _arg1[(_local7 + 2)][_arg2]; _r1[_local7] = (((_r1[_local7]) || (0)) + ((_local9 - _local8) * (_local9 - _local8))); _r2[_local7] = (((_r2[_local7]) || (0)) + ((_local10 - _local9) * (_local10 - _local9))); }; _local7++; }; _local5[_local7] = new Segment(_arg1[_local7][_arg2], 0, 0, _arg1[(_local7 + 1)][_arg2]); return (_local5); } protected static function _calculateControlPoints(_arg1:Array, _arg2:Number=1, _arg3:Boolean=false, _arg4:Boolean=false, _arg5:Boolean=false):void{ var _local9:int; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Segment; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Array; var _local19:Number; var _local20:Number; var _local21:Number; var _local6:int = (_arg1.length - 1); var _local7:int; var _local8:Number = _arg1[0].a; _local9 = 0; while (_local9 < _local6) { _local13 = _arg1[_local7]; _local10 = _local13.a; _local11 = _local13.d; _local12 = _arg1[(_local7 + 1)].d; if (_arg5){ _local19 = _r1[_local9]; _local20 = _r2[_local9]; _local21 = ((((_local20 + _local19) * _arg2) * 0.25) / (_arg4) ? 0.5 : ((_r3[_local9]) || (0.5))); _local14 = (_local11 - ((_local11 - _local10) * (_arg4) ? (_arg2 * 0.5) : ((_local19)!==0) ? (_local21 / _local19) : 0)); _local15 = (_local11 + ((_local12 - _local11) * (_arg4) ? (_arg2 * 0.5) : ((_local20)!==0) ? (_local21 / _local20) : 0)); _local16 = (_local11 - (_local14 + (((((_local15 - _local14) * (((_local19 * 3) / (_local19 + _local20)) + 0.5)) / 4)) || (0)))); } else { _local14 = (_local11 - (((_local11 - _local10) * _arg2) * 0.5)); _local15 = (_local11 + (((_local12 - _local11) * _arg2) * 0.5)); _local16 = (_local11 - ((_local14 + _local15) / 2)); }; _local14 = (_local14 + _local16); _local15 = (_local15 + _local16); _local17 = _local14; _local13.c = _local17; if (_local9 != 0){ _local13.b = _local8; } else { _local8 = (_local13.a + ((_local13.c - _local13.a) * 0.6)); _local13.b = _local8; }; _local13.da = (_local11 - _local10); _local13.ca = (_local17 - _local10); _local13.ba = (_local8 - _local10); if (_arg3){ _local18 = cubicToQuadratic(_local10, _local8, _local17, _local11); _arg1.splice(_local7, 1, _local18[0], _local18[1], _local18[2], _local18[3]); _local7 = (_local7 + 4); } else { _local7++; }; _local8 = _local15; _local9++; }; _local13 = _arg1[_local7]; _local13.b = _local8; _local13.c = (_local8 + ((_local13.d - _local8) * 0.4)); _local13.da = (_local13.d - _local13.a); _local13.ca = (_local13.c - _local13.a); _local13.ba = (_local8 - _local13.a); if (_arg3){ _local18 = cubicToQuadratic(_local13.a, _local8, _local13.c, _local13.d); _arg1.splice(_local7, 1, _local18[0], _local18[1], _local18[2], _local18[3]); }; } public static function cubicToQuadratic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Array{ var _local5:Object = {a:_arg1}; var _local6:Object = {}; var _local7:Object = {}; var _local8:Object = {c:_arg4}; var _local9:Number = ((_arg1 + _arg2) / 2); var _local10:Number = ((_arg2 + _arg3) / 2); var _local11:Number = ((_arg3 + _arg4) / 2); var _local12:Number = ((_local9 + _local10) / 2); var _local13:Number = ((_local10 + _local11) / 2); var _local14:Number = ((_local13 - _local12) / 8); _local5.b = (_local9 + ((_arg1 - _local9) / 4)); _local6.b = (_local12 + _local14); _local5.c = (_local6.a = ((_local5.b + _local6.b) / 2)); _local6.c = (_local7.a = ((_local12 + _local13) / 2)); _local7.b = (_local13 - _local14); _local8.b = (_local11 + ((_arg4 - _local11) / 4)); _local7.c = (_local8.a = ((_local7.b + _local8.b) / 2)); return ([_local5, _local6, _local7, _local8]); } public static function quadraticToCubic(_arg1:Number, _arg2:Number, _arg3:Number):Object{ return (new Segment(_arg1, (((2 * _arg2) + _arg1) / 3), (((2 * _arg2) + _arg3) / 3), _arg3)); } protected static function _parseLengthData(_arg1:Object, _arg2:uint=6):Object{ var _local10:String; var _local11:int; var _local12:int; var _local13:Number; var _local3:Array = []; var _local4:Array = []; var _local5:Number = 0; var _local6:Number = 0; var _local7:int = (_arg2 - 1); var _local8:Array = []; var _local9:Array = []; for (_local10 in _arg1) { _addCubicLengths(_arg1[_local10], _local3, _arg2); }; _local12 = _local3.length; _local11 = 0; while (_local11 < _local12) { _local5 = (_local5 + Math.sqrt(_local3[_local11])); _local13 = (_local11 % _arg2); _local9[_local13] = _local5; if (_local13 == _local7){ _local6 = (_local6 + _local5); _local13 = ((_local11 / _arg2) >> 0); _local8[_local13] = _local9; _local4[_local13] = _local6; _local5 = 0; _local9 = []; }; _local11++; }; return ({length:_local6, lengths:_local4, segments:_local8}); } private static function _addCubicLengths(_arg1:Array, _arg2:Array, _arg3:uint=6):void{ var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:int; var _local14:Number; var _local15:Segment; var _local16:int; var _local4:Number = (1 / _arg3); var _local5:int = _arg1.length; while (--_local5 > -1) { _local15 = _arg1[_local5]; _local8 = _local15.a; _local9 = (_local15.d - _local8); _local10 = (_local15.c - _local8); _local11 = (_local15.b - _local8); _local7 = 0; _local6 = _local7; _local13 = 1; while (_local13 <= _arg3) { _local12 = (_local4 * _local13); _local14 = (1 - _local12); var _temp1 = _local7; _local7 = ((((_local12 * _local12) * _local9) + ((3 * _local14) * ((_local12 * _local10) + (_local14 * _local11)))) * _local12); _local6 = (_temp1 - _local7); _local16 = (((_local5 * _arg3) + _local13) - 1); _arg2[_local16] = (((_arg2[_local16]) || (0)) + (_local6 * _local6)); _local13++; }; }; } } }//package com.greensock.plugins class Segment { public var a:Number; public var b:Number; public var c:Number; public var d:Number; public var da:Number; public var ca:Number; public var ba:Number; private function Segment(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){ this.a = _arg1; this.b = _arg2; this.c = _arg3; this.d = _arg4; this.da = (_arg4 - _arg1); this.ca = (_arg3 - _arg1); this.ba = (_arg2 - _arg1); } }
Section 59
//BezierThroughPlugin (com.greensock.plugins.BezierThroughPlugin) package com.greensock.plugins { import com.greensock.*; public class BezierThroughPlugin extends BezierPlugin { public static const API:Number = 2; public function BezierThroughPlugin(){ _propName = "bezierThrough"; } override public function _onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if ((_arg2 is Array)){ _arg2 = {values:_arg2}; }; _arg2.type = "thru"; return (super._onInitTween(_arg1, _arg2, _arg3)); } } }//package com.greensock.plugins
Section 60
//BlurFilterPlugin (com.greensock.plugins.BlurFilterPlugin) package com.greensock.plugins { import com.greensock.*; import flash.filters.*; public class BlurFilterPlugin extends FilterPlugin { public static const API:Number = 2; private static var _propNames:Array = ["blurX", "blurY", "quality"]; public function BlurFilterPlugin(){ super("blurFilter"); } override public function _onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ return (_initFilter(_arg1, _arg2, _arg3, BlurFilter, new BlurFilter(0, 0, ((_arg2.quality) || (2))), _propNames)); } } }//package com.greensock.plugins
Section 61
//ColorMatrixFilterPlugin (com.greensock.plugins.ColorMatrixFilterPlugin) package com.greensock.plugins { import com.greensock.*; import flash.filters.*; public class ColorMatrixFilterPlugin extends FilterPlugin { protected var _matrix:Array; protected var _matrixTween:EndArrayPlugin; public static const API:Number = 2; private static var _propNames:Array = []; protected static var _idMatrix:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]; protected static var _lumR:Number = 0.212671; protected static var _lumG:Number = 0.71516; protected static var _lumB:Number = 0.072169; public function ColorMatrixFilterPlugin(){ super("colorMatrixFilter"); } override public function _onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ var _local4:Object = _arg2; _initFilter(_arg1, {remove:_arg2.remove, index:_arg2.index, addFilter:_arg2.addFilter}, _arg3, ColorMatrixFilter, new ColorMatrixFilter(_idMatrix.slice()), _propNames); if (_filter == null){ trace("FILTER NULL! "); return (true); }; _matrix = ColorMatrixFilter(_filter).matrix; var _local5:Array = []; if (((!((_local4.matrix == null))) && ((_local4.matrix is Array)))){ _local5 = _local4.matrix; } else { if (_local4.relative == true){ _local5 = _matrix.slice(); } else { _local5 = _idMatrix.slice(); }; _local5 = setBrightness(_local5, _local4.brightness); _local5 = setContrast(_local5, _local4.contrast); _local5 = setHue(_local5, _local4.hue); _local5 = setSaturation(_local5, _local4.saturation); _local5 = setThreshold(_local5, _local4.threshold); if (!isNaN(_local4.colorize)){ _local5 = colorize(_local5, _local4.colorize, _local4.amount); }; }; _matrixTween = new EndArrayPlugin(); _matrixTween._init(_matrix, _local5); return (true); } override public function setRatio(_arg1:Number):void{ _matrixTween.setRatio(_arg1); ColorMatrixFilter(_filter).matrix = _matrix; super.setRatio(_arg1); } public static function colorize(_arg1:Array, _arg2:Number, _arg3:Number=1):Array{ if (isNaN(_arg2)){ return (_arg1); }; if (isNaN(_arg3)){ _arg3 = 1; }; var _local4:Number = (((_arg2 >> 16) & 0xFF) / 0xFF); var _local5:Number = (((_arg2 >> 8) & 0xFF) / 0xFF); var _local6:Number = ((_arg2 & 0xFF) / 0xFF); var _local7:Number = (1 - _arg3); var _local8:Array = [(_local7 + ((_arg3 * _local4) * _lumR)), ((_arg3 * _local4) * _lumG), ((_arg3 * _local4) * _lumB), 0, 0, ((_arg3 * _local5) * _lumR), (_local7 + ((_arg3 * _local5) * _lumG)), ((_arg3 * _local5) * _lumB), 0, 0, ((_arg3 * _local6) * _lumR), ((_arg3 * _local6) * _lumG), (_local7 + ((_arg3 * _local6) * _lumB)), 0, 0, 0, 0, 0, 1, 0]; return (applyMatrix(_local8, _arg1)); } public static function setThreshold(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; var _local3:Array = [(_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), 0, 0, 0, 1, 0]; return (applyMatrix(_local3, _arg1)); } public static function setHue(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; _arg2 = (_arg2 * (Math.PI / 180)); var _local3:Number = Math.cos(_arg2); var _local4:Number = Math.sin(_arg2); var _local5:Array = [((_lumR + (_local3 * (1 - _lumR))) + (_local4 * -(_lumR))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * -(_lumG))), ((_lumB + (_local3 * -(_lumB))) + (_local4 * (1 - _lumB))), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * 0.143)), ((_lumG + (_local3 * (1 - _lumG))) + (_local4 * 0.14)), ((_lumB + (_local3 * -(_lumB))) + (_local4 * -0.283)), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * -((1 - _lumR)))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * _lumG)), ((_lumB + (_local3 * (1 - _lumB))) + (_local4 * _lumB)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]; return (applyMatrix(_local5, _arg1)); } public static function setBrightness(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; _arg2 = ((_arg2 * 100) - 100); return (applyMatrix([1, 0, 0, 0, _arg2, 0, 1, 0, 0, _arg2, 0, 0, 1, 0, _arg2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], _arg1)); } public static function setSaturation(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; var _local3:Number = (1 - _arg2); var _local4:Number = (_local3 * _lumR); var _local5:Number = (_local3 * _lumG); var _local6:Number = (_local3 * _lumB); var _local7:Array = [(_local4 + _arg2), _local5, _local6, 0, 0, _local4, (_local5 + _arg2), _local6, 0, 0, _local4, _local5, (_local6 + _arg2), 0, 0, 0, 0, 0, 1, 0]; return (applyMatrix(_local7, _arg1)); } public static function setContrast(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; _arg2 = (_arg2 + 0.01); var _local3:Array = [_arg2, 0, 0, 0, (128 * (1 - _arg2)), 0, _arg2, 0, 0, (128 * (1 - _arg2)), 0, 0, _arg2, 0, (128 * (1 - _arg2)), 0, 0, 0, 1, 0]; return (applyMatrix(_local3, _arg1)); } public static function applyMatrix(_arg1:Array, _arg2:Array):Array{ var _local6:int; var _local7:int; if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){ return (_arg2); }; var _local3:Array = []; var _local4:int; var _local5:int; _local6 = 0; while (_local6 < 4) { _local7 = 0; while (_local7 < 5) { _local5 = ((_local7)==4) ? _arg1[(_local4 + 4)] : 0; _local3[(_local4 + _local7)] = (((((_arg1[_local4] * _arg2[_local7]) + (_arg1[(_local4 + 1)] * _arg2[(_local7 + 5)])) + (_arg1[(_local4 + 2)] * _arg2[(_local7 + 10)])) + (_arg1[(_local4 + 3)] * _arg2[(_local7 + 15)])) + _local5); _local7 = (_local7 + 1); }; _local4 = (_local4 + 5); _local6 = (_local6 + 1); }; return (_local3); } } }//package com.greensock.plugins
Section 62
//ColorTransformPlugin (com.greensock.plugins.ColorTransformPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; import flash.geom.*; public class ColorTransformPlugin extends TintPlugin { public static const API:Number = 2; public function ColorTransformPlugin(){ _propName = "colorTransform"; } override public function _onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ var _local4:ColorTransform; var _local6:String; var _local7:Number; var _local5:ColorTransform = new ColorTransform(); if ((_arg1 is DisplayObject)){ _transform = DisplayObject(_arg1).transform; _local4 = _transform.colorTransform; } else { if ((_arg1 is ColorTransform)){ _local4 = (_arg1 as ColorTransform); } else { return (false); }; }; if ((_arg2 is ColorTransform)){ _local5.concat(_arg2); } else { _local5.concat(_local4); }; for (_local6 in _arg2) { if ((((_local6 == "tint")) || ((_local6 == "color")))){ if (_arg2[_local6] != null){ _local5.color = int(_arg2[_local6]); }; } else { if ((((((_local6 == "tintAmount")) || ((_local6 == "exposure")))) || ((_local6 == "brightness")))){ } else { _local5[_local6] = _arg2[_local6]; }; }; }; if (!(_arg2 is ColorTransform)){ if (!isNaN(_arg2.tintAmount)){ _local7 = (_arg2.tintAmount / (1 - (((_local5.redMultiplier + _local5.greenMultiplier) + _local5.blueMultiplier) / 3))); _local5.redOffset = (_local5.redOffset * _local7); _local5.greenOffset = (_local5.greenOffset * _local7); _local5.blueOffset = (_local5.blueOffset * _local7); _local5.redMultiplier = (_local5.greenMultiplier = (_local5.blueMultiplier = (1 - _arg2.tintAmount))); } else { if (!isNaN(_arg2.exposure)){ _local5.redOffset = (_local5.greenOffset = (_local5.blueOffset = (0xFF * (_arg2.exposure - 1)))); _local5.redMultiplier = (_local5.greenMultiplier = (_local5.blueMultiplier = 1)); } else { if (!isNaN(_arg2.brightness)){ _local5.redOffset = (_local5.greenOffset = (_local5.blueOffset = Math.max(0, ((_arg2.brightness - 1) * 0xFF)))); _local5.redMultiplier = (_local5.greenMultiplier = (_local5.blueMultiplier = (1 - Math.abs((_arg2.brightness - 1))))); }; }; }; }; _init(_local4, _local5); return (true); } } }//package com.greensock.plugins
Section 63
//DropShadowFilterPlugin (com.greensock.plugins.DropShadowFilterPlugin) package com.greensock.plugins { import com.greensock.*; import flash.filters.*; public class DropShadowFilterPlugin extends FilterPlugin { public static const API:Number = 2; private static var _propNames:Array = ["distance", "angle", "color", "alpha", "blurX", "blurY", "strength", "quality", "inner", "knockout", "hideObject"]; public function DropShadowFilterPlugin(){ super("dropShadowFilter"); } override public function _onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ return (_initFilter(_arg1, _arg2, _arg3, DropShadowFilter, new DropShadowFilter(0, 45, 0, 0, 0, 0, 1, ((_arg2.quality) || (2)), _arg2.inner, _arg2.knockout, _arg2.hideObject), _propNames)); } } }//package com.greensock.plugins
Section 64
//EndArrayPlugin (com.greensock.plugins.EndArrayPlugin) package com.greensock.plugins { import com.greensock.*; public class EndArrayPlugin extends TweenPlugin { protected var _a:Array; protected var _round:Boolean; protected var _info:Array; public static const API:Number = 2; public function EndArrayPlugin(){ _info = []; super("endArray"); } 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); } public function _init(_arg1:Array, _arg2:Array):void{ _a = _arg1; var _local3:int = _arg2.length; var _local4:int; while (--_local3 > -1) { if (((!((_arg1[_local3] == _arg2[_local3]))) && (!((_arg1[_local3] == null))))){ var _temp1 = _local4; _local4 = (_local4 + 1); var _local5 = _temp1; _info[_local5] = new ArrayTweenInfo(_local3, _a[_local3], (_arg2[_local3] - _a[_local3])); }; }; } override public function _roundProps(_arg1:Object, _arg2:Boolean=true):void{ if (("endArray" in _arg1)){ _round = _arg2; }; } override public function setRatio(_arg1:Number):void{ var _local3:ArrayTweenInfo; var _local4:Number; var _local2:int = _info.length; if (_round){ while (--_local2 > -1) { _local3 = _info[_local2]; _local4 = ((_local3.c * _arg1) + _local3.s); _a[_local3.i] = ((_local4)>0) ? ((_local4 + 0.5) >> 0) : ((_local4 - 0.5) >> 0); }; } else { while (--_local2 > -1) { _local3 = _info[_local2]; _a[_local3.i] = ((_local3.c * _arg1) + _local3.s); }; }; } } }//package com.greensock.plugins class ArrayTweenInfo { public var i:uint; public var s:Number; public var c:Number; private function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){ this.i = _arg1; this.s = _arg2; this.c = _arg3; } }
Section 65
//FilterPlugin (com.greensock.plugins.FilterPlugin) package com.greensock.plugins { import com.greensock.*; import flash.filters.*; public class FilterPlugin extends TweenPlugin { protected var _target:Object; protected var _type:Class; protected var _filter:BitmapFilter; protected var _index:int; protected var _remove:Boolean; private var _tween:TweenLite; public static const API:Number = 2; public function FilterPlugin(_arg1:String="", _arg2:Number=0){ super(_arg1, _arg2); } protected function _initFilter(_arg1, _arg2:Object, _arg3:TweenLite, _arg4:Class, _arg5:BitmapFilter, _arg6:Array):Boolean{ var _local8:String; var _local9:int; var _local10:HexColorsPlugin; _target = _arg1; _tween = _arg3; _type = _arg4; var _local7:Array = _target.filters; var _local11:Object = ((_arg2 is BitmapFilter)) ? {} : _arg2; if (_local11.index != null){ _index = _local11.index; } else { _index = _local7.length; if (_local11.addFilter != true){ do { } while ((((--_index > -1)) && (!((_local7[_index] is _type))))); }; }; if ((((_index < 0)) || (!((_local7[_index] is _type))))){ if (_index < 0){ _index = _local7.length; }; if (_index > _local7.length){ _local9 = (_local7.length - 1); while (++_local9 < _index) { _local7[_local9] = new BlurFilter(0, 0, 1); }; }; _local7[_index] = _arg5; _target.filters = _local7; }; _filter = _local7[_index]; _remove = (_local11.remove == true); _local9 = _arg6.length; while (--_local9 > -1) { _local8 = _arg6[_local9]; if ((((_local8 in _arg2)) && (!((_filter[_local8] == _arg2[_local8]))))){ if ((((((_local8 == "color")) || ((_local8 == "highlightColor")))) || ((_local8 == "shadowColor")))){ _local10 = new HexColorsPlugin(); _local10._initColor(_filter, _local8, _arg2[_local8]); _addTween(_local10, "setRatio", 0, 1, _propName); } else { if ((((((((_local8 == "quality")) || ((_local8 == "inner")))) || ((_local8 == "knockout")))) || ((_local8 == "hideObject")))){ _filter[_local8] = _arg2[_local8]; } else { _addTween(_filter, _local8, _filter[_local8], _arg2[_local8], _propName); }; }; }; }; return (true); } override public function setRatio(_arg1:Number):void{ super.setRatio(_arg1); var _local2:Array = _target.filters; if (!(_local2[_index] is _type)){ _index = _local2.length; do { } while ((((--_index > -1)) && (!((_local2[_index] is _type))))); if (_index == -1){ _index = _local2.length; }; }; if ((((((((_arg1 == 1)) && (_remove))) && ((_tween._time == _tween._duration)))) && (!((_tween.data == "isFromStart"))))){ if (_index < _local2.length){ _local2.splice(_index, 1); }; } else { _local2[_index] = _filter; }; _target.filters = _local2; } } }//package com.greensock.plugins
Section 66
//FrameLabelPlugin (com.greensock.plugins.FrameLabelPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; public class FrameLabelPlugin extends FramePlugin { public static const API:Number = 2; public function FrameLabelPlugin(){ _propName = "frameLabel"; } override public function _onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if ((!(_arg3.target) is MovieClip)){ return (false); }; _target = (_arg1 as MovieClip); this.frame = _target.currentFrame; var _local4:Array = _target.currentLabels; var _local5:String = _arg2; var _local6:int = _target.currentFrame; var _local7:int = _local4.length; while (--_local7 > -1) { if (_local4[_local7].name == _local5){ _local6 = _local4[_local7].frame; break; }; }; if (this.frame != _local6){ _addTween(this, "frame", this.frame, _local6, "frame", true); }; return (true); } } }//package com.greensock.plugins
Section 67
//FramePlugin (com.greensock.plugins.FramePlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; public class FramePlugin extends TweenPlugin { public var frame:int; protected var _target:MovieClip; public static const API:Number = 2; public function FramePlugin(){ super("frame,frameLabel,frameForward,frameBackward"); } 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", true); return (true); } override public function setRatio(_arg1:Number):void{ super.setRatio(_arg1); if (this.frame != _target.currentFrame){ _target.gotoAndStop(this.frame); }; } } }//package com.greensock.plugins
Section 68
//GlowFilterPlugin (com.greensock.plugins.GlowFilterPlugin) package com.greensock.plugins { import com.greensock.*; import flash.filters.*; public class GlowFilterPlugin extends FilterPlugin { public static const API:Number = 2; private static var _propNames:Array = ["color", "alpha", "blurX", "blurY", "strength", "quality", "inner", "knockout"]; public function GlowFilterPlugin(){ super("glowFilter"); } override public function _onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ return (_initFilter(_arg1, _arg2, _arg3, GlowFilter, new GlowFilter(0xFFFFFF, 0, 0, 0, ((_arg2.strength) || (1)), ((_arg2.quality) || (2)), _arg2.inner, _arg2.knockout), _propNames)); } } }//package com.greensock.plugins
Section 69
//HexColorsPlugin (com.greensock.plugins.HexColorsPlugin) package com.greensock.plugins { import com.greensock.*; public class HexColorsPlugin extends TweenPlugin { protected var _colors:Array; public static const API:Number = 2; public function HexColorsPlugin(){ super("hexColors"); _overwriteProps = []; _colors = []; } override public function _onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ var _local4:String; for (_local4 in _arg2) { _initColor(_arg1, _local4, uint(_arg2[_local4])); }; return (true); } public function _initColor(_arg1:Object, _arg2:String, _arg3:uint):void{ var _local6:uint; var _local7:uint; var _local8:uint; var _local4 = (typeof(_arg1[_arg2]) == "function"); var _local5:uint = (_local4) ? _arg1[(((_arg2.indexOf("set")) || (!((("get" + _arg2.substr(3)) in _arg1))))) ? _arg2 : ("get" + _arg2.substr(3))]() : _arg1[_arg2]; if (_local5 != _arg3){ _local6 = (_local5 >> 16); _local7 = ((_local5 >> 8) & 0xFF); _local8 = (_local5 & 0xFF); _colors[_colors.length] = new ColorProp(_arg1, _arg2, _local4, _local6, ((_arg3 >> 16) - _local6), _local7, (((_arg3 >> 8) & 0xFF) - _local7), _local8, ((_arg3 & 0xFF) - _local8)); _overwriteProps[_overwriteProps.length] = _arg2; }; } override public function _kill(_arg1:Object):Boolean{ var _local2:int = _colors.length; while (_local2--) { if (_arg1[_colors[_local2].p] != null){ _colors.splice(_local2, 1); }; }; return (super._kill(_arg1)); } override public function setRatio(_arg1:Number):void{ var _local3:ColorProp; var _local4:Number; var _local2:int = _colors.length; while (--_local2 > -1) { _local3 = _colors[_local2]; _local4 = ((((_local3.rs + (_arg1 * _local3.rc)) << 16) | ((_local3.gs + (_arg1 * _local3.gc)) << 8)) | (_local3.bs + (_arg1 * _local3.bc))); if (_local3.f){ var _local5 = _local3.t; _local5[_local3.p](_local4); } else { _local3.t[_local3.p] = _local4; }; }; } } }//package com.greensock.plugins class ColorProp { public var t:Object; public var p:String; public var f:Boolean; public var rs:int; public var rc:int; public var gs:int; public var gc:int; public var bs:int; public var bc:int; private function ColorProp(_arg1:Object, _arg2:String, _arg3:Boolean, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int, _arg9:int){ this.t = _arg1; this.p = _arg2; this.f = _arg3; this.rs = _arg4; this.rc = _arg5; this.gs = _arg6; this.gc = _arg7; this.bs = _arg8; this.bc = _arg9; } }
Section 70
//RemoveTintPlugin (com.greensock.plugins.RemoveTintPlugin) package com.greensock.plugins { public class RemoveTintPlugin extends TintPlugin { public static const API:Number = 2; public function RemoveTintPlugin(){ _propName = "removeTint"; } } }//package com.greensock.plugins
Section 71
//RoundPropsPlugin (com.greensock.plugins.RoundPropsPlugin) package com.greensock.plugins { import com.greensock.core.*; import com.greensock.*; public class RoundPropsPlugin extends TweenPlugin { protected var _tween:TweenLite; public static const API:Number = 2; public function RoundPropsPlugin(){ super("roundProps", -1); _overwriteProps.length = 0; } override public function _onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _tween = _arg3; return (true); } public function _onInitAllProps():Boolean{ var _local5:String; var _local6:PropTween; var _local7:PropTween; var _local1:Array = ((_tween.vars.roundProps is Array)) ? _tween.vars.roundProps : _tween.vars.roundProps.split(","); var _local2:int = _local1.length; var _local3:Object = {}; var _local4:PropTween = _tween._propLookup.roundProps; while (--_local2 > -1) { _local3[_local1[_local2]] = 1; }; _local2 = _local1.length; while (--_local2 > -1) { _local5 = _local1[_local2]; _local6 = _tween._firstPT; while (_local6) { _local7 = _local6._next; if (_local6.pg){ _local6.t._roundProps(_local3, true); } else { if (_local6.n == _local5){ _add(_local6.t, _local5, _local6.s, _local6.c); if (_local7){ _local7._prev = _local6._prev; }; if (_local6._prev){ _local6._prev._next = _local7; } else { if (_tween._firstPT == _local6){ _tween._firstPT = _local7; }; }; _local6._next = (_local6._prev = null); _tween._propLookup[_local5] = _local4; }; }; _local6 = _local7; }; }; return (false); } public function _add(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number):void{ _addTween(_arg1, _arg2, _arg3, (_arg3 + _arg4), _arg2, true); _overwriteProps[_overwriteProps.length] = _arg2; } } }//package com.greensock.plugins
Section 72
//ShortRotationPlugin (com.greensock.plugins.ShortRotationPlugin) package com.greensock.plugins { import com.greensock.*; public class ShortRotationPlugin extends TweenPlugin { public static const API:Number = 2; public function ShortRotationPlugin(){ super("shortRotation"); _overwriteProps.pop(); } override public function _onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ var _local5:Number; var _local6:String; if (typeof(_arg2) == "number"){ return (false); }; var _local4:Boolean = Boolean((_arg2.useRadians == true)); for (_local6 in _arg2) { if (_local6 != "useRadians"){ _local5 = ((_arg1[_local6] is Function)) ? _arg1[(((_local6.indexOf("set")) || (!((("get" + _local6.substr(3)) in _arg1))))) ? _local6 : ("get" + _local6.substr(3))]() : _arg1[_local6]; _initRotation(_arg1, _local6, _local5, ((typeof(_arg2[_local6]))=="number") ? Number(_arg2[_local6]) : (_local5 + Number(_arg2[_local6].split("=").join(""))), _local4); }; }; return (true); } public function _initRotation(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Boolean=false):void{ var _local6:Number = (_arg5) ? (Math.PI * 2) : 360; var _local7:Number = ((_arg4 - _arg3) % _local6); if (((_arg4 - _arg3) % _local6) != (_local7 % (_local6 / 2))){ _local7 = ((_local7)<0) ? (_local7 + _local6) : (_local7 - _local6); }; _addTween(_arg1, _arg2, _arg3, (_arg3 + _local7), _arg2); _overwriteProps[_overwriteProps.length] = _arg2; } } }//package com.greensock.plugins
Section 73
//TintPlugin (com.greensock.plugins.TintPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.core.*; import com.greensock.*; import flash.geom.*; public class TintPlugin extends TweenPlugin { protected var _transform:Transform; public static const API:Number = 2; protected static var _props:Array = ["redMultiplier", "greenMultiplier", "blueMultiplier", "alphaMultiplier", "redOffset", "greenOffset", "blueOffset", "alphaOffset"]; public function TintPlugin(){ super("tint,colorTransform,removeTint"); } override public function _onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (!(_arg1 is DisplayObject)){ return (false); }; var _local4:ColorTransform = new ColorTransform(); if (((!((_arg2 == null))) && (!((_arg3.vars.removeTint == true))))){ _local4.color = uint(_arg2); }; _transform = DisplayObject(_arg1).transform; var _local5:ColorTransform = _transform.colorTransform; _local4.alphaMultiplier = _local5.alphaMultiplier; _local4.alphaOffset = _local5.alphaOffset; _init(_local5, _local4); return (true); } public function _init(_arg1:ColorTransform, _arg2:ColorTransform):void{ var _local4:String; var _local3:int = _props.length; while (--_local3 > -1) { _local4 = _props[_local3]; if (_arg1[_local4] != _arg2[_local4]){ _addTween(_arg1, _local4, _arg1[_local4], _arg2[_local4], "tint"); }; }; } override public function setRatio(_arg1:Number):void{ var _local2:ColorTransform = _transform.colorTransform; var _local3:PropTween = _firstPT; while (_local3) { _local2[_local3.p] = ((_local3.c * _arg1) + _local3.s); _local3 = _local3._next; }; _transform.colorTransform = _local2; } } }//package com.greensock.plugins
Section 74
//TweenPlugin (com.greensock.plugins.TweenPlugin) package com.greensock.plugins { import com.greensock.core.*; import com.greensock.*; public class TweenPlugin { public var _propName:String; public var _overwriteProps:Array; public var _priority:int;// = 0 protected var _firstPT:PropTween; public static const version:String = "12.1.5"; public static const API:Number = 2; public function TweenPlugin(_arg1:String="", _arg2:int=0){ _overwriteProps = _arg1.split(","); _propName = _overwriteProps[0]; _priority = ((_arg2) || (0)); } public function _onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ return (false); } protected function _addTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String=null, _arg6:Boolean=false):PropTween{ var _local7:Number = ((_arg4)==null) ? 0 : ((((typeof(_arg4) === "number")) || (!((_arg4.charAt(1) === "="))))) ? (Number(_arg4) - _arg3) : (int((_arg4.charAt(0) + "1")) * Number(_arg4.substr(2))); if (_local7 !== 0){ _firstPT = new PropTween(_arg1, _arg2, _arg3, _local7, ((_arg5) || (_arg2)), false, _firstPT); _firstPT.r = _arg6; return (_firstPT); }; return (null); } public function setRatio(_arg1:Number):void{ var _local3:Number; var _local2:PropTween = _firstPT; while (_local2) { _local3 = ((_local2.c * _arg1) + _local2.s); if (_local2.r){ _local3 = ((_local3 + ((_local3)>0) ? 0.5 : -0.5) | 0); }; if (_local2.f){ var _local4 = _local2.t; _local4[_local2.p](_local3); } else { _local2.t[_local2.p] = _local3; }; _local2 = _local2._next; }; } public function _roundProps(_arg1:Object, _arg2:Boolean=true):void{ var _local3:PropTween = _firstPT; while (_local3) { if ((((_propName in _arg1)) || (((!((_local3.n == null))) && ((_local3.n.split((_propName + "_")).join("") in _arg1)))))){ _local3.r = _arg2; }; _local3 = _local3._next; }; } public function _kill(_arg1:Object):Boolean{ var _local3:int; if ((_propName in _arg1)){ _overwriteProps = []; } else { _local3 = _overwriteProps.length; while (--_local3 > -1) { if ((_overwriteProps[_local3] in _arg1)){ _overwriteProps.splice(_local3, 1); }; }; }; var _local2:PropTween = _firstPT; while (_local2) { if ((_local2.n in _arg1)){ if (_local2._next){ _local2._next._prev = _local2._prev; }; if (_local2._prev){ _local2._prev._next = _local2._next; _local2._prev = null; } else { if (_firstPT == _local2){ _firstPT = _local2._next; }; }; }; _local2 = _local2._next; }; return (false); } private static function _onTweenEvent(_arg1:String, _arg2:TweenLite):Boolean{ var _local4:Boolean; var _local5:PropTween; var _local6:PropTween; var _local7:PropTween; var _local8:PropTween; var _local3:PropTween = _arg2._firstPT; if (_arg1 == "_onInitAllProps"){ while (_local3) { _local8 = _local3._next; _local5 = _local6; while (((_local5) && ((_local5.pr > _local3.pr)))) { _local5 = _local5._next; }; if ((_local3._prev = (_local5) ? _local5._prev : _local7)){ _local3._prev._next = _local3; } else { _local6 = _local3; }; if ((_local3._next = _local5)){ _local5._prev = _local3; } else { _local7 = _local3; }; _local3 = _local8; }; _local3 = (_arg2._firstPT = _local6); }; while (_local3) { if (_local3.pg){ if ((_arg1 in _local3.t)){ if (_local3.t[_arg1]()){ _local4 = true; }; }; }; _local3 = _local3._next; }; return (_local4); } public static function activate(_arg1:Array):Boolean{ TweenLite._onPluginEvent = TweenPlugin._onTweenEvent; var _local2:int = _arg1.length; while (--_local2 > -1) { if (_arg1[_local2].API == TweenPlugin.API){ TweenLite._plugins[new ((_arg1[_local2] as Class))._propName] = _arg1[_local2]; }; }; return (true); } } }//package com.greensock.plugins
Section 75
//VisiblePlugin (com.greensock.plugins.VisiblePlugin) package com.greensock.plugins { import com.greensock.*; public class VisiblePlugin extends TweenPlugin { protected var _target:Object; protected var _tween:TweenLite; protected var _visible:Boolean; protected var _initVal:Boolean; protected var _progress:int; public static const API:Number = 2; public function VisiblePlugin(){ super("visible"); } override public function _onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _tween = _arg3; _progress = (_tween.vars.runBackwards) ? 0 : 1; _initVal = _target.visible; _visible = Boolean(_arg2); return (true); } override public function setRatio(_arg1:Number):void{ _target.visible = ((((_arg1 == 1)) && (((((_tween._time / _tween._duration) == _progress)) || ((_tween._duration == 0)))))) ? _visible : _initVal; } } }//package com.greensock.plugins
Section 76
//VolumePlugin (com.greensock.plugins.VolumePlugin) package com.greensock.plugins { import com.greensock.*; import flash.media.*; public class VolumePlugin extends TweenPlugin { protected var _target:Object; protected var _st:SoundTransform; public static const API:Number = 2; public function VolumePlugin(){ super("volume"); } override public function _onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (((((isNaN(_arg2)) || (_arg1.hasOwnProperty("volume")))) || (!(_arg1.hasOwnProperty("soundTransform"))))){ return (false); }; _target = _arg1; _st = _target.soundTransform; _addTween(_st, "volume", _st.volume, _arg2, "volume"); return (true); } override public function setRatio(_arg1:Number):void{ super.setRatio(_arg1); _target.soundTransform = _st; } } }//package com.greensock.plugins
Section 77
//TweenLite (com.greensock.TweenLite) package com.greensock { import flash.display.*; import flash.events.*; import com.greensock.core.*; import flash.utils.*; import com.greensock.easing.*; public class TweenLite extends Animation { public var target:Object; public var ratio:Number; public var _propLookup:Object; public var _firstPT:PropTween; protected var _targets:Array; public var _ease:Ease; protected var _easeType:int; protected var _easePower:int; protected var _siblings:Array; protected var _overwrite:int; protected var _overwrittenProps:Object; protected var _notifyPluginsOfEnabled:Boolean; protected var _startAt:TweenLite; public static const version:String = "12.1.5"; public static var defaultEase:Ease = new Ease(null, null, 1, 1); public static var defaultOverwrite:String = "auto"; public static var ticker:Shape = Animation.ticker; public static var _plugins:Object = {}; public static var _onPluginEvent:Function; protected static var _tweenLookup:Dictionary = new Dictionary(false); protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, onCompleteScope:1, useFrames:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, onUpdateScope:1, onStart:1, onStartParams:1, onStartScope:1, onReverseComplete:1, onReverseCompleteParams:1, onReverseCompleteScope:1, onRepeat:1, onRepeatParams:1, onRepeatScope:1, easeParams:1, yoyo:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, onReverseCompleteListener:1, onRepeatListener:1, orientToBezier:1, immediateRender:1, repeat:1, repeatDelay:1, data:1, paused:1, reversed:1}; protected static var _overwriteLookup:Object; public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){ var _local4:int; super(_arg2, _arg3); if (_arg1 == null){ throw (new Error(((("Cannot tween a null object. Duration: " + _arg2) + ", data: ") + this.data))); }; if (!_overwriteLookup){ _overwriteLookup = {none:0, all:1, auto:2, concurrent:3, allOnStart:4, preexisting:5, true:1, false:0}; ticker.addEventListener("enterFrame", _dumpGarbage, false, -1, true); }; ratio = 0; this.target = _arg1; _ease = defaultEase; _overwrite = (("overwrite" in this.vars)) ? ((typeof(this.vars.overwrite))==="number") ? (this.vars.overwrite >> 0) : _overwriteLookup[this.vars.overwrite] : _overwriteLookup[defaultOverwrite]; if ((((this.target is Array)) && ((typeof(this.target[0]) === "object")))){ _targets = this.target.concat(); _propLookup = []; _siblings = []; _local4 = _targets.length; while (--_local4 > -1) { _siblings[_local4] = _register(_targets[_local4], this, false); if (_overwrite == 1){ if (_siblings[_local4].length > 1){ _applyOverwrite(_targets[_local4], this, null, 1, _siblings[_local4]); }; }; }; } else { _propLookup = {}; _siblings = _tweenLookup[_arg1]; if (_siblings == null){ _siblings = (_tweenLookup[_arg1] = [this]); } else { _siblings[_siblings.length] = this; if (_overwrite == 1){ _applyOverwrite(_arg1, this, null, 1, _siblings); }; }; }; if (((this.vars.immediateRender) || ((((((_arg2 == 0)) && ((_delay == 0)))) && (!((this.vars.immediateRender == false))))))){ render(-(_delay), false, true); }; } protected function _init():void{ var _local2:int; var _local3:Boolean; var _local4:PropTween; var _local5:String; var _local6:Object; var _local1:Boolean = vars.immediateRender; if (vars.startAt){ if (_startAt != null){ _startAt.render(-1, true); }; vars.startAt.overwrite = 0; vars.startAt.immediateRender = true; _startAt = new TweenLite(target, 0, vars.startAt); if (_local1){ if (_time > 0){ _startAt = null; } else { if (_duration !== 0){ return; }; }; }; } else { if (((vars.runBackwards) && (!((_duration === 0))))){ if (_startAt != null){ _startAt.render(-1, true); _startAt = null; } else { _local6 = {}; for (_local5 in vars) { if (!(_local5 in _reservedProps)){ _local6[_local5] = vars[_local5]; }; }; _local6.overwrite = 0; _local6.data = "isFromStart"; _startAt = TweenLite.to(target, 0, _local6); if (!_local1){ _startAt.render(-1, true); } else { if (_time === 0){ return; }; }; }; }; }; if ((vars.ease is Ease)){ _ease = ((vars.easeParams is Array)) ? vars.ease.config.apply(vars.ease, vars.easeParams) : vars.ease; } else { if (typeof(vars.ease) === "function"){ _ease = new Ease(vars.ease, vars.easeParams); } else { _ease = defaultEase; }; }; _easeType = _ease._type; _easePower = _ease._power; _firstPT = null; if (_targets){ _local2 = _targets.length; while (--_local2 > -1) { if (_initProps(_targets[_local2], (_propLookup[_local2] = {}), _siblings[_local2], (_overwrittenProps) ? _overwrittenProps[_local2] : null)){ _local3 = true; }; }; } else { _local3 = _initProps(target, _propLookup, _siblings, _overwrittenProps); }; if (_local3){ _onPluginEvent("_onInitAllProps", this); }; if (_overwrittenProps){ if (_firstPT == null){ if (typeof(target) !== "function"){ _enabled(false, false); }; }; }; if (vars.runBackwards){ _local4 = _firstPT; while (_local4) { _local4.s = (_local4.s + _local4.c); _local4.c = -(_local4.c); _local4 = _local4._next; }; }; _onUpdate = vars.onUpdate; _initted = true; } protected function _initProps(_arg1:Object, _arg2:Object, _arg3:Array, _arg4:Object):Boolean{ var _local6:String; var _local7:int; var _local8:Boolean; var _local9:Object; var _local10:Object; var _local5:Object = this.vars; if (_arg1 == null){ return (false); }; for (_local6 in _local5) { _local10 = _local5[_local6]; if ((_local6 in _reservedProps)){ if ((_local10 is Array)){ if (_local10.join("").indexOf("{self}") !== -1){ _local5[_local6] = _swapSelfInParams((_local10 as Array)); }; }; } else { if ((((_local6 in _plugins)) && (new (_plugins[_local6])._onInitTween(_arg1, _local10, this)))){ _firstPT = new PropTween(_local9, "setRatio", 0, 1, _local6, true, _firstPT, _local9._priority); _local7 = _local9._overwriteProps.length; while (--_local7 > -1) { _arg2[_local9._overwriteProps[_local7]] = _firstPT; }; if (((_local9._priority) || (("_onInitAllProps" in _local9)))){ _local8 = true; }; if (((("_onDisable" in _local9)) || (("_onEnable" in _local9)))){ _notifyPluginsOfEnabled = true; }; } else { _firstPT = (_arg2[_local6] = new PropTween(_arg1, _local6, 0, 1, _local6, false, _firstPT)); _firstPT.s = (_firstPT.f) ? _arg1[(((_local6.indexOf("set")) || (!((("get" + _local6.substr(3)) in _arg1))))) ? _local6 : ("get" + _local6.substr(3))]() : Number(_arg1[_local6]); _firstPT.c = ((typeof(_local10))==="number") ? (Number(_local10) - _firstPT.s) : ((((typeof(_local10) === "string")) && ((_local10.charAt(1) === "=")))) ? (int((_local10.charAt(0) + "1")) * Number(_local10.substr(2))) : ((Number(_local10)) || (0)); }; }; }; if (_arg4){ if (_kill(_arg4, _arg1)){ return (_initProps(_arg1, _arg2, _arg3, _arg4)); }; }; if (_overwrite > 1){ if (_firstPT != null){ if (_arg3.length > 1){ if (_applyOverwrite(_arg1, this, _arg2, _overwrite, _arg3)){ _kill(_arg2, _arg1); return (_initProps(_arg1, _arg2, _arg3, _arg4)); }; }; }; }; return (_local8); } override public function render(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{ var _local4:Boolean; var _local5:String; var _local6:PropTween; var _local7:Number; var _local9:Number; var _local8:Number = _time; if (_arg1 >= _duration){ _totalTime = (_time = _duration); ratio = (_ease._calcEnd) ? _ease.getRatio(1) : 1; if (!_reversed){ _local4 = true; _local5 = "onComplete"; }; if (_duration == 0){ _local7 = _rawPrevTime; if (_startTime === _timeline._duration){ _arg1 = 0; }; if ((((((_arg1 === 0)) || ((_local7 < 0)))) || ((_local7 === _tinyNum)))){ if (_local7 !== _arg1){ _arg3 = true; if ((((_local7 > 0)) && (!((_local7 === _tinyNum))))){ _local5 = "onReverseComplete"; }; }; }; _local7 = (((((!(_arg2)) || (!((_arg1 === 0))))) || ((_rawPrevTime === _arg1)))) ? _arg1 : _tinyNum; _rawPrevTime = _local7; }; } else { if (_arg1 < 1E-7){ _totalTime = (_time = 0); ratio = (_ease._calcEnd) ? _ease.getRatio(0) : 0; if (((!((_local8 === 0))) || ((((((_duration === 0)) && ((_rawPrevTime > 0)))) && (!((_rawPrevTime === _tinyNum))))))){ _local5 = "onReverseComplete"; _local4 = _reversed; }; if (_arg1 < 0){ _active = false; if (_duration == 0){ if (_rawPrevTime >= 0){ _arg3 = true; }; _local7 = (((((!(_arg2)) || (!((_arg1 === 0))))) || ((_rawPrevTime === _arg1)))) ? _arg1 : _tinyNum; _rawPrevTime = _local7; }; } else { if (!_initted){ _arg3 = true; }; }; } else { _totalTime = (_time = _arg1); if (_easeType){ _local9 = (_arg1 / _duration); if ((((_easeType == 1)) || ((((_easeType == 3)) && ((_local9 >= 0.5)))))){ _local9 = (1 - _local9); }; if (_easeType == 3){ _local9 = (_local9 * 2); }; if (_easePower == 1){ _local9 = (_local9 * _local9); } else { if (_easePower == 2){ _local9 = (_local9 * (_local9 * _local9)); } else { if (_easePower == 3){ _local9 = (_local9 * ((_local9 * _local9) * _local9)); } else { if (_easePower == 4){ _local9 = (_local9 * (((_local9 * _local9) * _local9) * _local9)); }; }; }; }; if (_easeType == 1){ ratio = (1 - _local9); } else { if (_easeType == 2){ ratio = _local9; } else { if ((_arg1 / _duration) < 0.5){ ratio = (_local9 / 2); } else { ratio = (1 - (_local9 / 2)); }; }; }; } else { ratio = _ease.getRatio((_arg1 / _duration)); }; }; }; if ((((_time == _local8)) && (!(_arg3)))){ return; }; if (!_initted){ _init(); if (((!(_initted)) || (_gc))){ return; }; if (((_time) && (!(_local4)))){ ratio = _ease.getRatio((_time / _duration)); } else { if (((_local4) && (_ease._calcEnd))){ ratio = _ease.getRatio(((_time)===0) ? 0 : 1); }; }; }; if (!_active){ if (((((!(_paused)) && (!((_time === _local8))))) && ((_arg1 >= 0)))){ _active = true; }; }; if (_local8 == 0){ if (_startAt != null){ if (_arg1 >= 0){ _startAt.render(_arg1, _arg2, _arg3); } else { if (!_local5){ _local5 = "_dummyGS"; }; }; }; if (vars.onStart){ if (((!((_time == 0))) || ((_duration == 0)))){ if (!_arg2){ vars.onStart.apply(null, vars.onStartParams); }; }; }; }; _local6 = _firstPT; while (_local6) { if (_local6.f){ var _local10 = _local6.t; _local10[_local6.p](((_local6.c * ratio) + _local6.s)); } else { _local6.t[_local6.p] = ((_local6.c * ratio) + _local6.s); }; _local6 = _local6._next; }; if (_onUpdate != null){ if ((((((_arg1 < 0)) && (!((_startAt == null))))) && (!((_startTime == 0))))){ _startAt.render(_arg1, _arg2, _arg3); }; if (!_arg2){ if (((!((_time === _local8))) || (_local4))){ _onUpdate.apply(null, vars.onUpdateParams); }; }; }; if (_local5){ if (!_gc){ if ((((((((_arg1 < 0)) && (!((_startAt == null))))) && ((_onUpdate == null)))) && (!((_startTime == 0))))){ _startAt.render(_arg1, _arg2, _arg3); }; if (_local4){ if (_timeline.autoRemoveChildren){ _enabled(false, false); }; _active = false; }; if (!_arg2){ if (vars[_local5]){ vars[_local5].apply(null, vars[(_local5 + "Params")]); }; }; if ((((((_duration === 0)) && ((_rawPrevTime === _tinyNum)))) && (!((_local7 === _tinyNum))))){ _rawPrevTime = 0; }; }; }; } override public function _kill(_arg1:Object=null, _arg2:Object=null):Boolean{ var _local3:int; var _local4:Object; var _local5:String; var _local6:PropTween; var _local7:Object; var _local8:Boolean; var _local9:Object; var _local10:Boolean; if (_arg1 === "all"){ _arg1 = null; }; if (_arg1 == null){ if ((((_arg2 == null)) || ((_arg2 == this.target)))){ return (_enabled(false, false)); }; }; _arg2 = ((((_arg2) || (_targets))) || (this.target)); if ((((_arg2 is Array)) && ((typeof(_arg2[0]) === "object")))){ _local3 = _arg2.length; while (--_local3 > -1) { if (_kill(_arg1, _arg2[_local3])){ _local8 = true; }; }; } else { if (_targets){ _local3 = _targets.length; while (--_local3 > -1) { if (_arg2 === _targets[_local3]){ _local7 = ((_propLookup[_local3]) || ({})); _overwrittenProps = ((_overwrittenProps) || ([])); _local4 = (_overwrittenProps[_local3] = (_arg1) ? ((_overwrittenProps[_local3]) || ({})) : "all"); break; }; }; } else { if (_arg2 !== this.target){ return (false); }; _local7 = _propLookup; _local4 = (_overwrittenProps = (_arg1) ? ((_overwrittenProps) || ({})) : "all"); }; if (_local7){ _local9 = ((_arg1) || (_local7)); _local10 = ((((((!((_arg1 == _local4))) && (!((_local4 == "all"))))) && (!((_arg1 == _local7))))) && (((!((typeof(_arg1) == "object"))) || (!((_arg1._tempKill == true)))))); for (_local5 in _local9) { _local6 = _local7[_local5]; if (_local6 != null){ if (((_local6.pg) && (_local6.t._kill(_local9)))){ _local8 = true; }; if (((!(_local6.pg)) || ((_local6.t._overwriteProps.length === 0)))){ if (_local6._prev){ _local6._prev._next = _local6._next; } else { if (_local6 == _firstPT){ _firstPT = _local6._next; }; }; if (_local6._next){ _local6._next._prev = _local6._prev; }; _local6._next = (_local6._prev = null); }; delete _local7[_local5]; }; if (_local10){ _local4[_local5] = 1; }; }; if ((((_firstPT == null)) && (_initted))){ _enabled(false, false); }; }; }; return (_local8); } override public function invalidate(){ if (_notifyPluginsOfEnabled){ _onPluginEvent("_onDisable", this); }; _firstPT = null; _overwrittenProps = null; _onUpdate = null; _startAt = null; _initted = (_active = (_notifyPluginsOfEnabled = false)); _propLookup = (_targets) ? {} : []; return (this); } override public function _enabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{ var _local3:int; if (((_arg1) && (_gc))){ if (_targets){ _local3 = _targets.length; while (--_local3 > -1) { _siblings[_local3] = _register(_targets[_local3], this, true); }; } else { _siblings = _register(target, this, true); }; }; super._enabled(_arg1, _arg2); if (_notifyPluginsOfEnabled){ if (_firstPT != null){ return (_onPluginEvent((_arg1) ? "_onEnable" : "_onDisable", this)); }; }; return (false); } public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ return (new TweenLite(_arg1, _arg2, _arg3)); } public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ _arg3 = _prepVars(_arg3, true); _arg3.runBackwards = true; return (new TweenLite(_arg1, _arg2, _arg3)); } public static function fromTo(_arg1:Object, _arg2:Number, _arg3:Object, _arg4:Object):TweenLite{ _arg4 = _prepVars(_arg4, true); _arg3 = _prepVars(_arg3); _arg4.startAt = _arg3; _arg4.immediateRender = ((!((_arg4.immediateRender == false))) && (!((_arg3.immediateRender == false)))); return (new TweenLite(_arg1, _arg2, _arg4)); } protected static function _prepVars(_arg1:Object, _arg2:Boolean=false):Object{ if (_arg1._isGSVars){ _arg1 = _arg1.vars; }; if (((_arg2) && (!(("immediateRender" in _arg1))))){ _arg1.immediateRender = true; }; return (_arg1); } public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenLite{ return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, onReverseComplete:_arg2, onReverseCompleteParams:_arg3, immediateRender:false, useFrames:_arg4, overwrite:0})); } public static function set(_arg1:Object, _arg2:Object):TweenLite{ return (new TweenLite(_arg1, 0, _arg2)); } private static function _dumpGarbage(_arg1:Event):void{ var _local2:int; var _local3:Array; var _local4:Object; if (((_rootFrame / 60) >> 0) === (_rootFrame / 60)){ for (_local4 in _tweenLookup) { _local3 = _tweenLookup[_local4]; _local2 = _local3.length; while (--_local2 > -1) { if (_local3[_local2]._gc){ _local3.splice(_local2, 1); }; }; if (_local3.length === 0){ delete _tweenLookup[_local4]; }; }; }; } public static function killTweensOf(_arg1, _arg2=false, _arg3:Object=null):void{ if (typeof(_arg2) === "object"){ _arg3 = _arg2; _arg2 = false; }; var _local4:Array = TweenLite.getTweensOf(_arg1, _arg2); var _local5:int = _local4.length; while (--_local5 > -1) { _local4[_local5]._kill(_arg3, _arg1); }; } public static function killDelayedCallsTo(_arg1:Function):void{ killTweensOf(_arg1); } public static function getTweensOf(_arg1, _arg2:Boolean=false):Array{ var _local3:int; var _local4:Array; var _local5:int; var _local6:TweenLite; if ((((((_arg1 is Array)) && (!((typeof(_arg1[0]) == "string"))))) && (!((typeof(_arg1[0]) == "number"))))){ _local3 = _arg1.length; _local4 = []; while (--_local3 > -1) { _local4 = _local4.concat(getTweensOf(_arg1[_local3], _arg2)); }; _local3 = _local4.length; while (--_local3 > -1) { _local6 = _local4[_local3]; _local5 = _local3; while (--_local5 > -1) { if (_local6 === _local4[_local5]){ _local4.splice(_local3, 1); }; }; }; } else { _local4 = _register(_arg1).concat(); _local3 = _local4.length; while (--_local3 > -1) { if (((_local4[_local3]._gc) || (((_arg2) && (!(_local4[_local3].isActive())))))){ _local4.splice(_local3, 1); }; }; }; return (_local4); } protected static function _register(_arg1:Object, _arg2:TweenLite=null, _arg3:Boolean=false):Array{ var _local5:int; var _local4:Array = _tweenLookup[_arg1]; if (_local4 == null){ _local4 = (_tweenLookup[_arg1] = []); }; if (_arg2){ _local5 = _local4.length; _local4[_local5] = _arg2; if (_arg3){ while (--_local5 > -1) { if (_local4[_local5] === _arg2){ _local4.splice(_local5, 1); }; }; }; }; return (_local4); } protected static function _applyOverwrite(_arg1:Object, _arg2:TweenLite, _arg3:Object, _arg4:int, _arg5:Array):Boolean{ var _local6:int; var _local7:Boolean; var _local8:TweenLite; var _local13:Number; var _local14:int; if ((((_arg4 == 1)) || ((_arg4 >= 4)))){ _local14 = _arg5.length; _local6 = 0; while (_local6 < _local14) { _local8 = _arg5[_local6]; if (_local8 != _arg2){ if (!_local8._gc){ if (_local8._enabled(false, false)){ _local7 = true; }; }; } else { if (_arg4 == 5){ break; }; }; _local6++; }; return (_local7); }; var _local9:Number = (_arg2._startTime + 1E-10); var _local10:Array = []; var _local11:int; var _local12 = (_arg2._duration == 0); _local6 = _arg5.length; while (--_local6 > -1) { _local8 = _arg5[_local6]; if ((((((_local8 === _arg2)) || (_local8._gc))) || (_local8._paused))){ } else { if (_local8._timeline != _arg2._timeline){ _local13 = ((_local13) || (_checkOverlap(_arg2, 0, _local12))); if (_checkOverlap(_local8, _local13, _local12) === 0){ var _temp1 = _local11; _local11 = (_local11 + 1); var _local15 = _temp1; _local10[_local15] = _local8; }; } else { if (_local8._startTime <= _local9){ if ((_local8._startTime + (_local8.totalDuration() / _local8._timeScale)) > _local9){ if (!((((_local12) || (!(_local8._initted)))) && (((_local9 - _local8._startTime) <= 2E-10)))){ var _temp2 = _local11; _local11 = (_local11 + 1); _local15 = _temp2; _local10[_local15] = _local8; }; }; }; }; }; }; _local6 = _local11; while (--_local6 > -1) { _local8 = _local10[_local6]; if (_arg4 == 2){ if (_local8._kill(_arg3, _arg1)){ _local7 = true; }; }; if (((!((_arg4 === 2))) || (((!(_local8._firstPT)) && (_local8._initted))))){ if (_local8._enabled(false, false)){ _local7 = true; }; }; }; return (_local7); } private static function _checkOverlap(_arg1:Animation, _arg2:Number, _arg3:Boolean):Number{ var _local4:SimpleTimeline = _arg1._timeline; var _local5:Number = _local4._timeScale; var _local6:Number = _arg1._startTime; var _local7:Number = 1E-10; while (_local4._timeline) { _local6 = (_local6 + _local4._startTime); _local5 = (_local5 * _local4._timeScale); if (_local4._paused){ return (-100); }; _local4 = _local4._timeline; }; _local6 = (_local6 / _local5); return (((_local6)>_arg2) ? (_local6 - _arg2) : (((((_arg3) && ((_local6 == _arg2)))) || (((!(_arg1._initted)) && (((_local6 - _arg2) < (2 * _local7))))))) ? _local7 : _local6 = (_local6 + ((_arg1.totalDuration() / _arg1._timeScale) / _local5)); ((_local6)>(_arg2 + _local7)) ? 0 : ((_local6 - _arg2) - _local7)); } } }//package com.greensock
Section 78
//TweenMax (com.greensock.TweenMax) package com.greensock { import flash.display.*; import flash.events.*; import com.greensock.core.*; import flash.utils.*; import com.greensock.plugins.*; import com.greensock.events.*; public class TweenMax extends TweenLite implements IEventDispatcher { protected var _dispatcher:EventDispatcher; protected var _hasUpdateListener:Boolean; protected var _repeat:int;// = 0 protected var _repeatDelay:Number;// = 0 protected var _cycle:int;// = 0 public var _yoyo:Boolean; public static const version:String = "12.1.5"; protected static var _listenerLookup:Object = {onCompleteListener:TweenEvent.COMPLETE, onUpdateListener:TweenEvent.UPDATE, onStartListener:TweenEvent.START, onRepeatListener:TweenEvent.REPEAT, onReverseCompleteListener:TweenEvent.REVERSE_COMPLETE}; public static var ticker:Shape = Animation.ticker; public static var allTo:Function = staggerTo; public static var allFrom:Function = staggerFrom; public static var allFromTo:Function = staggerFromTo; public function TweenMax(_arg1:Object, _arg2:Number, _arg3:Object){ super(_arg1, _arg2, _arg3); _yoyo = (this.vars.yoyo == true); _repeat = int(this.vars.repeat); _repeatDelay = ((this.vars.repeatDelay) || (0)); _dirty = true; if (((((((((this.vars.onCompleteListener) || (this.vars.onUpdateListener))) || (this.vars.onStartListener))) || (this.vars.onRepeatListener))) || (this.vars.onReverseCompleteListener))){ _initDispatcher(); if (_duration == 0){ if (_delay == 0){ if (this.vars.immediateRender){ _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE)); _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE)); }; }; }; }; } override public function invalidate(){ _yoyo = Boolean((this.vars.yoyo == true)); _repeat = ((this.vars.repeat) || (0)); _repeatDelay = ((this.vars.repeatDelay) || (0)); _hasUpdateListener = false; _initDispatcher(); _uncache(true); return (super.invalidate()); } public function updateTo(_arg1:Object, _arg2:Boolean=false){ var _local4:String; var _local5:Number; var _local6:Number; var _local7:PropTween; var _local8:Number; var _local3:Number = ratio; if (_arg2){ if (_startTime < _timeline._time){ _startTime = _timeline._time; _uncache(false); if (_gc){ _enabled(true, false); } else { _timeline.insert(this, (_startTime - _delay)); }; }; }; for (_local4 in _arg1) { this.vars[_local4] = _arg1[_local4]; }; if (_initted){ if (_arg2){ _initted = false; } else { if (_gc){ _enabled(true, false); }; if (_notifyPluginsOfEnabled){ if (_firstPT != null){ _onPluginEvent("_onDisable", this); }; }; if ((_time / _duration) > 0.998){ _local5 = _time; render(0, true, false); _initted = false; render(_local5, true, false); } else { if (_time > 0){ _initted = false; _init(); _local6 = (1 / (1 - _local3)); _local7 = _firstPT; while (_local7) { _local8 = (_local7.s + _local7.c); _local7.c = (_local7.c * _local6); _local7.s = (_local8 - _local7.c); _local7 = _local7._next; }; }; }; }; }; return (this); } override public function render(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{ var _local8:Boolean; var _local9:String; var _local10:PropTween; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:int; var _local15:int; if (!_initted){ if ((((_duration === 0)) && (vars.repeat))){ invalidate(); }; }; var _local4:Number = (_dirty) ? totalDuration() : _totalDuration; var _local5:Number = _time; var _local6:Number = _totalTime; var _local7:Number = _cycle; if (_arg1 >= _local4){ _totalTime = _local4; _cycle = _repeat; if (((_yoyo) && (!(((_cycle & 1) == 0))))){ _time = 0; ratio = (_ease._calcEnd) ? _ease.getRatio(0) : 0; } else { _time = _duration; ratio = (_ease._calcEnd) ? _ease.getRatio(1) : 1; }; if (!_reversed){ _local8 = true; _local9 = "onComplete"; }; if (_duration == 0){ _local11 = _rawPrevTime; if (_startTime === _timeline._duration){ _arg1 = 0; }; if ((((((_arg1 === 0)) || ((_local11 < 0)))) || ((_local11 === _tinyNum)))){ if (_local11 !== _arg1){ _arg3 = true; if (_local11 > _tinyNum){ _local9 = "onReverseComplete"; }; }; }; _local11 = (((((!(_arg2)) || (!((_arg1 === 0))))) || ((_rawPrevTime === _arg1)))) ? _arg1 : _tinyNum; _rawPrevTime = _local11; }; } else { if (_arg1 < 1E-7){ _totalTime = (_time = (_cycle = 0)); ratio = (_ease._calcEnd) ? _ease.getRatio(0) : 0; if (((!((_local6 === 0))) || ((((((_duration === 0)) && ((_rawPrevTime > 0)))) && (!((_rawPrevTime === _tinyNum))))))){ _local9 = "onReverseComplete"; _local8 = _reversed; }; if (_arg1 < 0){ _active = false; if (_duration == 0){ if (_rawPrevTime >= 0){ _arg3 = true; }; _local11 = (((((!(_arg2)) || (!((_arg1 === 0))))) || ((_rawPrevTime === _arg1)))) ? _arg1 : _tinyNum; _rawPrevTime = _local11; }; } else { if (!_initted){ _arg3 = true; }; }; } else { _totalTime = (_time = _arg1); if (_repeat != 0){ _local12 = (_duration + _repeatDelay); _cycle = ((_totalTime / _local12) >> 0); if (_cycle !== 0){ if (_cycle === (_totalTime / _local12)){ _cycle--; }; }; _time = (_totalTime - (_cycle * _local12)); if (_yoyo){ if ((_cycle & 1) != 0){ _time = (_duration - _time); }; }; if (_time > _duration){ _time = _duration; } else { if (_time < 0){ _time = 0; }; }; }; if (_easeType){ _local13 = (_time / _duration); _local14 = _easeType; _local15 = _easePower; if ((((_local14 == 1)) || ((((_local14 == 3)) && ((_local13 >= 0.5)))))){ _local13 = (1 - _local13); }; if (_local14 == 3){ _local13 = (_local13 * 2); }; if (_local15 == 1){ _local13 = (_local13 * _local13); } else { if (_local15 == 2){ _local13 = (_local13 * (_local13 * _local13)); } else { if (_local15 == 3){ _local13 = (_local13 * ((_local13 * _local13) * _local13)); } else { if (_local15 == 4){ _local13 = (_local13 * (((_local13 * _local13) * _local13) * _local13)); }; }; }; }; if (_local14 == 1){ ratio = (1 - _local13); } else { if (_local14 == 2){ ratio = _local13; } else { if ((_time / _duration) < 0.5){ ratio = (_local13 / 2); } else { ratio = (1 - (_local13 / 2)); }; }; }; } else { ratio = _ease.getRatio((_time / _duration)); }; }; }; if ((((((_local5 == _time)) && (!(_arg3)))) && ((_cycle === _local7)))){ if (_local6 !== _totalTime){ if (_onUpdate != null){ if (!_arg2){ _onUpdate.apply(((vars.onUpdateScope) || (this)), vars.onUpdateParams); }; }; }; return; } else { if (!_initted){ _init(); if (((!(_initted)) || (_gc))){ return; }; if (((_time) && (!(_local8)))){ ratio = _ease.getRatio((_time / _duration)); } else { if (((_local8) && (_ease._calcEnd))){ ratio = _ease.getRatio(((_time)===0) ? 0 : 1); }; }; }; }; if (!_active){ if (((((!(_paused)) && (!((_time === _local5))))) && ((_arg1 >= 0)))){ _active = true; }; }; if (_local6 == 0){ if (_startAt != null){ if (_arg1 >= 0){ _startAt.render(_arg1, _arg2, _arg3); } else { if (!_local9){ _local9 = "_dummyGS"; }; }; }; if (((!((_totalTime == 0))) || ((_duration == 0)))){ if (!_arg2){ if (vars.onStart){ vars.onStart.apply(null, vars.onStartParams); }; if (_dispatcher){ _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.START)); }; }; }; }; _local10 = _firstPT; while (_local10) { if (_local10.f){ var _local16 = _local10.t; _local16[_local10.p](((_local10.c * ratio) + _local10.s)); } else { _local10.t[_local10.p] = ((_local10.c * ratio) + _local10.s); }; _local10 = _local10._next; }; if (_onUpdate != null){ if ((((((_arg1 < 0)) && (!((_startAt == null))))) && (!((_startTime == 0))))){ _startAt.render(_arg1, _arg2, _arg3); }; if (!_arg2){ if (((!((_totalTime === _local6))) || (_local8))){ _onUpdate.apply(null, vars.onUpdateParams); }; }; }; if (_hasUpdateListener){ if ((((((((_arg1 < 0)) && (!((_startAt == null))))) && ((_onUpdate == null)))) && (!((_startTime == 0))))){ _startAt.render(_arg1, _arg2, _arg3); }; if (!_arg2){ _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE)); }; }; if (_cycle != _local7){ if (!_arg2){ if (!_gc){ if (vars.onRepeat){ vars.onRepeat.apply(null, vars.onRepeatParams); }; if (_dispatcher){ _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.REPEAT)); }; }; }; }; if (_local9){ if (!_gc){ if ((((((((((_arg1 < 0)) && (!((_startAt == null))))) && ((_onUpdate == null)))) && (!(_hasUpdateListener)))) && (!((_startTime == 0))))){ _startAt.render(_arg1, _arg2, true); }; if (_local8){ if (_timeline.autoRemoveChildren){ _enabled(false, false); }; _active = false; }; if (!_arg2){ if (vars[_local9]){ vars[_local9].apply(null, vars[(_local9 + "Params")]); }; if (_dispatcher){ _dispatcher.dispatchEvent(new TweenEvent(((_local9)=="onComplete") ? TweenEvent.COMPLETE : TweenEvent.REVERSE_COMPLETE)); }; }; if ((((((_duration === 0)) && ((_rawPrevTime === _tinyNum)))) && (!((_local11 === _tinyNum))))){ _rawPrevTime = 0; }; }; }; } protected function _initDispatcher():Boolean{ var _local2:String; var _local1:Boolean; for (_local2 in _listenerLookup) { if ((_local2 in vars)){ if ((vars[_local2] is Function)){ if (_dispatcher == null){ _dispatcher = new EventDispatcher(this); }; _dispatcher.addEventListener(_listenerLookup[_local2], vars[_local2], false, 0, true); _local1 = true; }; }; }; return (_local1); } public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{ if (_dispatcher == null){ _dispatcher = new EventDispatcher(this); }; if (_arg1 == TweenEvent.UPDATE){ _hasUpdateListener = true; }; _dispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5); } public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{ if (_dispatcher){ _dispatcher.removeEventListener(_arg1, _arg2, _arg3); }; } public function hasEventListener(_arg1:String):Boolean{ return (((_dispatcher)==null) ? false : _dispatcher.hasEventListener(_arg1)); } public function willTrigger(_arg1:String):Boolean{ return (((_dispatcher)==null) ? false : _dispatcher.willTrigger(_arg1)); } public function dispatchEvent(_arg1:Event):Boolean{ return (((_dispatcher)==null) ? false : _dispatcher.dispatchEvent(_arg1)); } override public function progress(_arg1:Number=NaN, _arg2:Boolean=false){ return ((arguments.length) ? totalTime(((duration() * (((_yoyo) && (!(((_cycle & 1) === 0))))) ? (1 - _arg1) : _arg1) + (_cycle * (_duration + _repeatDelay))), _arg2) : (_time / duration())); } override public function totalProgress(_arg1:Number=NaN, _arg2:Boolean=false){ return ((arguments.length) ? totalTime((totalDuration() * _arg1), _arg2) : (_totalTime / totalDuration())); } override public function time(_arg1:Number=NaN, _arg2:Boolean=false){ if (!arguments.length){ return (_time); }; if (_dirty){ totalDuration(); }; if (_arg1 > _duration){ _arg1 = _duration; }; if (((_yoyo) && (!(((_cycle & 1) === 0))))){ _arg1 = ((_duration - _arg1) + (_cycle * (_duration + _repeatDelay))); } else { if (_repeat != 0){ _arg1 = (_arg1 + (_cycle * (_duration + _repeatDelay))); }; }; return (totalTime(_arg1, _arg2)); } override public function duration(_arg1:Number=NaN){ if (!arguments.length){ return (this._duration); }; return (super.duration(_arg1)); } override public function totalDuration(_arg1:Number=NaN){ if (!arguments.length){ if (_dirty){ _totalDuration = ((_repeat)==-1) ? 999999999999 : ((_duration * (_repeat + 1)) + (_repeatDelay * _repeat)); _dirty = false; }; return (_totalDuration); }; return (((_repeat)==-1) ? this : duration(((_arg1 - (_repeat * _repeatDelay)) / (_repeat + 1)))); } public function repeat(_arg1:int=0){ if (!arguments.length){ return (_repeat); }; _repeat = _arg1; return (_uncache(true)); } public function repeatDelay(_arg1:Number=NaN){ if (!arguments.length){ return (_repeatDelay); }; _repeatDelay = _arg1; return (_uncache(true)); } public function yoyo(_arg1:Boolean=false){ if (!arguments.length){ return (_yoyo); }; _yoyo = _arg1; return (this); } public static function killTweensOf(_arg1, _arg2=false, _arg3:Object=null):void{ TweenLite.killTweensOf(_arg1, _arg2, _arg3); } public static function killDelayedCallsTo(_arg1:Function):void{ TweenLite.killTweensOf(_arg1); } public static function getTweensOf(_arg1, _arg2:Boolean=false):Array{ return (TweenLite.getTweensOf(_arg1, _arg2)); } public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{ return (new TweenMax(_arg1, _arg2, _arg3)); } public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{ _arg3 = _prepVars(_arg3, true); _arg3.runBackwards = true; return (new TweenMax(_arg1, _arg2, _arg3)); } public static function fromTo(_arg1:Object, _arg2:Number, _arg3:Object, _arg4:Object):TweenMax{ _arg4 = _prepVars(_arg4, false); _arg3 = _prepVars(_arg3, false); _arg4.startAt = _arg3; _arg4.immediateRender = ((!((_arg4.immediateRender == false))) && (!((_arg3.immediateRender == false)))); return (new TweenMax(_arg1, _arg2, _arg4)); } public static function staggerTo(_arg1:Array, _arg2:Number, _arg3:Object, _arg4:Number=0, _arg5:Function=null, _arg6:Array=null):Array{ var copy:Object; var i:int; var p:String; var targets = _arg1; var duration = _arg2; var vars = _arg3; var stagger = _arg4; var onCompleteAll = _arg5; var onCompleteAllParams = _arg6; vars = _prepVars(vars, false); var a:Array = []; var l:int = targets.length; var delay:Number = ((vars.delay) || (0)); i = 0; while (i < l) { copy = {}; for (p in vars) { copy[p] = vars[p]; }; copy.delay = delay; if (i == (l - 1)){ if (onCompleteAll != null){ copy.onComplete = function ():void{ if (vars.onComplete){ vars.onComplete.apply(null, arguments); }; onCompleteAll.apply(null, onCompleteAllParams); }; }; }; a[i] = new TweenMax(targets[i], duration, copy); delay = (delay + stagger); i = (i + 1); }; return (a); } public static function staggerFrom(_arg1:Array, _arg2:Number, _arg3:Object, _arg4:Number=0, _arg5:Function=null, _arg6:Array=null):Array{ _arg3 = _prepVars(_arg3, true); _arg3.runBackwards = true; if (_arg3.immediateRender != false){ _arg3.immediateRender = true; }; return (staggerTo(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6)); } public static function staggerFromTo(_arg1:Array, _arg2:Number, _arg3:Object, _arg4:Object, _arg5:Number=0, _arg6:Function=null, _arg7:Array=null):Array{ _arg4 = _prepVars(_arg4, false); _arg3 = _prepVars(_arg3, false); _arg4.startAt = _arg3; _arg4.immediateRender = ((!((_arg4.immediateRender == false))) && (!((_arg3.immediateRender == false)))); return (staggerTo(_arg1, _arg2, _arg4, _arg5, _arg6, _arg7)); } public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenMax{ return (new TweenMax(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, onReverseComplete:_arg2, onReverseCompleteParams:_arg3, immediateRender:false, useFrames:_arg4, overwrite:0})); } public static function set(_arg1:Object, _arg2:Object):TweenMax{ return (new TweenMax(_arg1, 0, _arg2)); } public static function isTweening(_arg1:Object):Boolean{ return ((TweenLite.getTweensOf(_arg1, true).length > 0)); } public static function getAllTweens(_arg1:Boolean=false):Array{ var _local2:Array = _getChildrenOf(_rootTimeline, _arg1); return (_local2.concat(_getChildrenOf(_rootFramesTimeline, _arg1))); } protected static function _getChildrenOf(_arg1:SimpleTimeline, _arg2:Boolean):Array{ if (_arg1 == null){ return ([]); }; var _local3:Array = []; var _local4:int; var _local5:Animation = _arg1._first; while (_local5) { if ((_local5 is TweenLite)){ var _temp1 = _local4; _local4 = (_local4 + 1); var _local6 = _temp1; _local3[_local6] = _local5; } else { if (_arg2){ var _temp2 = _local4; _local4 = (_local4 + 1); _local6 = _temp2; _local3[_local6] = _local5; }; _local3 = _local3.concat(_getChildrenOf(SimpleTimeline(_local5), _arg2)); _local4 = _local3.length; }; _local5 = _local5._next; }; return (_local3); } public static function killAll(_arg1:Boolean=false, _arg2:Boolean=true, _arg3:Boolean=true, _arg4:Boolean=true):void{ var _local7:Boolean; var _local9:Animation; var _local10:int; var _local5:Array = getAllTweens(_arg4); var _local6:int = _local5.length; var _local8:Boolean = ((((_arg2) && (_arg3))) && (_arg4)); _local10 = 0; while (_local10 < _local6) { _local9 = _local5[_local10]; if (((((((_local8) || ((_local9 is SimpleTimeline)))) || ((((TweenLite(_local9).target == TweenLite(_local9).vars.onComplete)) && (_arg3))))) || (((_arg2) && (!(_local7)))))){ if (_arg1){ _local9.totalTime((_local9._reversed) ? 0 : _local9.totalDuration()); } else { _local9._enabled(false, false); }; }; _local10++; }; } public static function killChildTweensOf(_arg1:DisplayObjectContainer, _arg2:Boolean=false):void{ var _local5:int; var _local3:Array = getAllTweens(false); var _local4:int = _local3.length; _local5 = 0; while (_local5 < _local4) { if (_containsChildOf(_arg1, _local3[_local5].target)){ if (_arg2){ _local3[_local5].totalTime(_local3[_local5].totalDuration()); } else { _local3[_local5]._enabled(false, false); }; }; _local5++; }; } private static function _containsChildOf(_arg1:DisplayObjectContainer, _arg2:Object):Boolean{ var _local3:int; var _local4:DisplayObjectContainer; if ((_arg2 is Array)){ _local3 = _arg2.length; while (--_local3 > -1) { if (_containsChildOf(_arg1, _arg2[_local3])){ return (true); }; }; } else { if ((_arg2 is DisplayObject)){ _local4 = _arg2.parent; while (_local4) { if (_local4 == _arg1){ return (true); }; _local4 = _local4.parent; }; }; }; return (false); } public static function pauseAll(_arg1:Boolean=true, _arg2:Boolean=true, _arg3:Boolean=true):void{ _changePause(true, _arg1, _arg2, _arg3); } public static function resumeAll(_arg1:Boolean=true, _arg2:Boolean=true, _arg3:Boolean=true):void{ _changePause(false, _arg1, _arg2, _arg3); } private static function _changePause(_arg1:Boolean, _arg2:Boolean=true, _arg3:Boolean=false, _arg4:Boolean=true):void{ var _local6:Boolean; var _local7:Animation; var _local5:Array = getAllTweens(_arg4); var _local8:Boolean = ((((_arg2) && (_arg3))) && (_arg4)); var _local9:int = _local5.length; while (--_local9 > -1) { _local7 = _local5[_local9]; _local6 = (((_local7 is TweenLite)) && ((TweenLite(_local7).target == _local7.vars.onComplete))); if (((((((_local8) || ((_local7 is SimpleTimeline)))) || (((_local6) && (_arg3))))) || (((_arg2) && (!(_local6)))))){ _local7.paused(_arg1); }; }; } public static function globalTimeScale(_arg1:Number=NaN):Number{ if (!arguments.length){ return (((_rootTimeline)==null) ? 1 : _rootTimeline._timeScale); }; _arg1 = ((_arg1) || (0.0001)); if (_rootTimeline == null){ TweenLite.to({}, 0, {}); }; var _local3:SimpleTimeline = _rootTimeline; var _local4:Number = (getTimer() / 1000); _local3._startTime = (_local4 - (((_local4 - _local3._startTime) * _local3._timeScale) / _arg1)); _local3 = _rootFramesTimeline; _local4 = _rootFrame; _local3._startTime = (_local4 - (((_local4 - _local3._startTime) * _local3._timeScale) / _arg1)); _rootFramesTimeline._timeScale = (_rootTimeline._timeScale = _arg1); return (_arg1); } TweenPlugin.activate([AutoAlphaPlugin, EndArrayPlugin, FramePlugin, RemoveTintPlugin, TintPlugin, VisiblePlugin, VolumePlugin, BevelFilterPlugin, BezierPlugin, BezierThroughPlugin, BlurFilterPlugin, ColorMatrixFilterPlugin, ColorTransformPlugin, DropShadowFilterPlugin, FrameLabelPlugin, GlowFilterPlugin, HexColorsPlugin, RoundPropsPlugin, ShortRotationPlugin]); } }//package com.greensock
Section 79
//ColorMatrix (com.gskinner.geom.ColorMatrix) package com.gskinner.geom { public dynamic class ColorMatrix extends Array { private static const DELTA_INDEX:Array = [0, 0.01, 0.02, 0.04, 0.05, 0.06, 0.07, 0.08, 0.1, 0.11, 0.12, 0.14, 0.15, 0.16, 0.17, 0.18, 0.2, 0.21, 0.22, 0.24, 0.25, 0.27, 0.28, 0.3, 0.32, 0.34, 0.36, 0.38, 0.4, 0.42, 0.44, 0.46, 0.48, 0.5, 0.53, 0.56, 0.59, 0.62, 0.65, 0.68, 0.71, 0.74, 0.77, 0.8, 0.83, 0.86, 0.89, 0.92, 0.95, 0.98, 1, 1.06, 1.12, 1.18, 1.24, 1.3, 1.36, 1.42, 1.48, 1.54, 1.6, 1.66, 1.72, 1.78, 1.84, 1.9, 1.96, 2, 2.12, 2.25, 2.37, 2.5, 2.62, 2.75, 2.87, 3, 3.2, 3.4, 3.6, 3.8, 4, 4.3, 4.7, 4.9, 5, 5.5, 6, 6.5, 6.8, 7, 7.3, 7.5, 7.8, 8, 8.4, 8.7, 9, 9.4, 9.6, 9.8, 10]; private static const IDENTITY_MATRIX:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]; private static const LENGTH:Number = IDENTITY_MATRIX.length; public function ColorMatrix(_arg1:Array=null){ _arg1 = fixMatrix(_arg1); copyMatrix(((_arg1.length == LENGTH)) ? _arg1 : IDENTITY_MATRIX); } public function reset():void{ var _local1:uint; while (_local1 < LENGTH) { this[_local1] = IDENTITY_MATRIX[_local1]; _local1++; }; } public function adjustColor(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{ adjustHue(_arg4); adjustContrast(_arg2); adjustBrightness(_arg1); adjustSaturation(_arg3); } public function adjustBrightness(_arg1:Number):void{ _arg1 = cleanValue(_arg1, 100); if ((((_arg1 == 0)) || (isNaN(_arg1)))){ return; }; multiplyMatrix([1, 0, 0, 0, _arg1, 0, 1, 0, 0, _arg1, 0, 0, 1, 0, _arg1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]); } public function adjustContrast(_arg1:Number):void{ var _local2:* = NaN; _arg1 = cleanValue(_arg1, 100); if ((((_arg1 == 0)) || (isNaN(_arg1)))){ return; }; if (_arg1 < 0){ _local2 = (127 + ((_arg1 / 100) * 127)); } else { _local2 = (_arg1 % 1); if (_local2 == 0){ _local2 = DELTA_INDEX[_arg1]; } else { _local2 = ((DELTA_INDEX[(_arg1 << 0)] * (1 - _local2)) + (DELTA_INDEX[((_arg1 << 0) + 1)] * _local2)); }; _local2 = ((_local2 * 127) + 127); }; multiplyMatrix([(_local2 / 127), 0, 0, 0, (0.5 * (127 - _local2)), 0, (_local2 / 127), 0, 0, (0.5 * (127 - _local2)), 0, 0, (_local2 / 127), 0, (0.5 * (127 - _local2)), 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]); } public function adjustSaturation(_arg1:Number):void{ _arg1 = cleanValue(_arg1, 100); if ((((_arg1 == 0)) || (isNaN(_arg1)))){ return; }; var _local2:Number = (1 + ((_arg1 > 0)) ? ((3 * _arg1) / 100) : (_arg1 / 100)); var _local3:Number = 0.3086; var _local4:Number = 0.6094; var _local5:Number = 0.082; multiplyMatrix([((_local3 * (1 - _local2)) + _local2), (_local4 * (1 - _local2)), (_local5 * (1 - _local2)), 0, 0, (_local3 * (1 - _local2)), ((_local4 * (1 - _local2)) + _local2), (_local5 * (1 - _local2)), 0, 0, (_local3 * (1 - _local2)), (_local4 * (1 - _local2)), ((_local5 * (1 - _local2)) + _local2), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]); } public function adjustHue(_arg1:Number):void{ _arg1 = ((cleanValue(_arg1, 180) / 180) * Math.PI); if ((((_arg1 == 0)) || (isNaN(_arg1)))){ return; }; var _local2:Number = Math.cos(_arg1); var _local3:Number = Math.sin(_arg1); var _local4:Number = 0.213; var _local5:Number = 0.715; var _local6:Number = 0.072; multiplyMatrix([((_local4 + (_local2 * (1 - _local4))) + (_local3 * -(_local4))), ((_local5 + (_local2 * -(_local5))) + (_local3 * -(_local5))), ((_local6 + (_local2 * -(_local6))) + (_local3 * (1 - _local6))), 0, 0, ((_local4 + (_local2 * -(_local4))) + (_local3 * 0.143)), ((_local5 + (_local2 * (1 - _local5))) + (_local3 * 0.14)), ((_local6 + (_local2 * -(_local6))) + (_local3 * -0.283)), 0, 0, ((_local4 + (_local2 * -(_local4))) + (_local3 * -((1 - _local4)))), ((_local5 + (_local2 * -(_local5))) + (_local3 * _local5)), ((_local6 + (_local2 * (1 - _local6))) + (_local3 * _local6)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]); } public function concat(_arg1:Array):void{ _arg1 = fixMatrix(_arg1); if (_arg1.length != LENGTH){ return; }; multiplyMatrix(_arg1); } public function clone():ColorMatrix{ return (new ColorMatrix(this)); } public function toString():String{ return ((("ColorMatrix [ " + this.join(" , ")) + " ]")); } public function toArray():Array{ return (slice(0, 20)); } protected function copyMatrix(_arg1:Array):void{ var _local2:Number = LENGTH; var _local3:uint; while (_local3 < _local2) { this[_local3] = _arg1[_local3]; _local3++; }; } protected function multiplyMatrix(_arg1:Array):void{ var _local2:uint; var _local3:* = NaN; var _local4:* = NaN; var _local5:Array = []; var _local6:uint; while (_local6 < 5) { _local2 = 0; while (_local2 < 5) { _local5[_local2] = this[(_local2 + (_local6 * 5))]; _local2++; }; _local2 = 0; while (_local2 < 5) { _local3 = 0; _local4 = 0; while (_local4 < 5) { _local3 = (_local3 + (_arg1[(_local2 + (_local4 * 5))] * _local5[_local4])); _local4++; }; this[(_local2 + (_local6 * 5))] = _local3; _local2++; }; _local6++; }; } protected function cleanValue(_arg1:Number, _arg2:Number):Number{ return (Math.min(_arg2, Math.max(-(_arg2), _arg1))); } protected function fixMatrix(_arg1:Array=null):Array{ if (_arg1 == null){ return (IDENTITY_MATRIX); }; if ((_arg1 is ColorMatrix)){ _arg1 = _arg1.slice(0); }; if (_arg1.length < LENGTH){ _arg1 = _arg1.slice(0, _arg1.length).concat(IDENTITY_MATRIX.slice(_arg1.length, LENGTH)); } else { if (_arg1.length > LENGTH){ _arg1 = _arg1.slice(0, LENGTH); }; }; return (_arg1); } } }//package com.gskinner.geom
Section 80
//ArtistImageCopia (com.ArtistImageCopia) package com { import flash.display.*; import flash.events.*; import com.caurina.transitions.*; import flash.utils.*; import flash.text.*; import flash.net.*; import flash.system.*; public class ArtistImageCopia extends MovieClip { var xml:XML; var urlLoader:URLLoader; var imageLoader2:Loader; var ImageHeight:Number; var ImageWidth:Number; var AreaMask:Sprite; var picbox2:MovieClip; var ArtistName:String; public var StatTimer:Timer; public var TimerDuration:Number;// = 30000 public var ApiKey:String;// = "" public var Method:String;// = "artist.getinfo" public var ApiHost:String;// = "http://ws.audioscrobbler.com/2.0/" public function ArtistImageCopia(_arg1:Number, _arg2:Number, _arg3:String){ PluginHolder = new MovieClip(); picbox2 = new MovieClip(); this.addChild(PluginHolder); ImageHeight = _arg2; ImageWidth = _arg1; ApiKey = _arg3; PluginHolder.addChild(picbox2); } public function LoadArtistInfo(_arg1):void{ if ((((Trim(_arg1) == "")) || ((Trim(_arg1) == "[Unknown]")))){ while (picbox2.numChildren) { picbox2.removeChildAt(0); }; while (PluginHolder.numChildren) { PluginHolder.removeChildAt(0); }; return; }; ArtistName = _arg1; var _local2:* = ((((((ApiHost + "?method=") + Method) + "&artist=") + escape(_arg1.toLowerCase())) + "&api_key=") + ApiKey); xmlLoader_aritst = new URLLoader(); xmlData_aritst = new XML(); xmlLoader_aritst.addEventListener(Event.COMPLETE, LoadArtistXML); xmlLoader_aritst.addEventListener(IOErrorEvent.IO_ERROR, handleIOError); xmlLoader_aritst.addEventListener(HTTPStatusEvent.HTTP_STATUS, handleHttpStatus); xmlLoader_aritst.addEventListener(SecurityErrorEvent.SECURITY_ERROR, handleSecurityError); xmlLoader_aritst.load(new URLRequest(_local2)); } function handleIOError(_arg1:IOErrorEvent):void{ } function handleHttpStatus(_arg1:HTTPStatusEvent):void{ } function handleSecurityError(_arg1:SecurityErrorEvent):void{ } public function UnloadImage():void{ while (picbox2.numChildren) { picbox2.removeChildAt(0); }; while (PluginHolder.numChildren) { PluginHolder.removeChildAt(0); }; } function LoadArtistXML(_arg1:Event){ xmlData_aritst = new XML(_arg1.target.data); xmlData_aritst = xmlData_aritst.replace(String.fromCharCode(65279), ""); ParseArtistInfo(xmlData_aritst); } function ParseArtistInfo(_arg1:XML){ var ArtistInfo:XML; var imageurl:String; var loc1:*; var loc3:*; var loc4:*; var loc2:*; var loc5:*; var loc6:*; var arg1 = _arg1; imageurl = null; ArtistInfo = arg1; if (("image" in ArtistInfo.artist)){ loc3 = 0; loc4 = ArtistInfo.artist.image; loc2 = new XMLList(""); for each (loc5 in loc4) { var _local5 = loc5; loc6 = _local5; with (_local5) { if (@size == "mega"){ loc2[loc3] = loc5; }; }; }; imageurl = loc2; if (Trim(imageurl) == ""){ while (picbox2.numChildren) { picbox2.removeChildAt(0); }; while (PluginHolder.numChildren) { PluginHolder.removeChildAt(0); }; trace("artist image not available..."); return; }; if (imageLoader2 != null){ try { PluginHolder.picbox2.removeChild(imageLoader2); imageLoader2.unload(); imageLoader2 = null; while (PluginHolder.picbox2.numChildren) { PluginHolder.picbox2.removeChildAt(0); }; } catch(e:Error) { }; }; imageLoader2 = new Loader(); try { imageLoader2.load(new URLRequest(imageurl)); imageLoader2.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imageLoading); imageLoader2.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded); } catch(e:Error) { }; } else { while (picbox2.numChildren) { picbox2.removeChildAt(0); }; while (PluginHolder.numChildren) { PluginHolder.removeChildAt(0); }; }; } function imageLoaded(_arg1:Event):void{ var _local4:*; var _local2:* = new TextField(); while (picbox2.numChildren) { picbox2.removeChildAt(0); }; while (PluginHolder.numChildren) { PluginHolder.removeChildAt(0); }; picbox2.addChild(imageLoader2); PluginHolder.addChild(picbox2); imageLoader2.width = 120; imageLoader2.height = 120; imageLoader2.alpha = 5.8; picbox2.x = -((ImageWidth + 10)); Tweener.addTween(picbox2, {x:0, time:1, transition:"easeOutCubic"}); AreaMask = new Sprite(); AreaMask.graphics.beginFill(2768533); AreaMask.graphics.drawRect(0, 0, ImageWidth, ImageHeight); AreaMask.graphics.endFill(); AreaMask.y = 0; AreaMask.x = 0; PluginHolder.addChild(AreaMask); picbox2.mask = AreaMask; _local2.text = ArtistName; _local2.width = 315; _local2.x = (imageLoader2.width + 15); _local2.y = 0; _local2.selectable = false; _local2.border = false; _local2.autoSize = TextFieldAutoSize.LEFT; _local2.antiAliasType = AntiAliasType.ADVANCED; var _local3:* = new TextFormat(); _local3.font = "arial"; _local3.color = 0xFFFFFF; _local3.size = 12; _local3.italic = true; _local2.setTextFormat(_local3); _local4 = new Sprite(); _local4.graphics.beginFill(0x555555); _local4.graphics.endFill(); _local4.alpha = 0.1; PluginHolder.addChildAt(_local4, 0); } function imageLoading(_arg1:ProgressEvent):void{ } function LTrim(_arg1:String):String{ var _local2:* = 0; while ((((_local2 < _arg1.length)) && ((_arg1.substr(_local2, 1) == " ")))) { _local2++; }; return (_arg1.substr(_local2, (_arg1.length - _local2))); } function RTrim(_arg1:String):String{ var _local2:* = (_arg1.length - 1); while ((((_local2 > 0)) && ((_arg1.substr(_local2, 1) == " ")))) { _local2--; }; return (_arg1.substr(0, (_local2 + 1))); } function Trim(_arg1:String){ return (LTrim(RTrim(_arg1))); } } }//package com
Section 81
//ComponentShim (fl.core.ComponentShim) package fl.core { import flash.display.*; public dynamic class ComponentShim extends MovieClip { } }//package fl.core
Section 82
//FLVPlayback (fl.video.FLVPlayback) package fl.video { import flash.display.*; public dynamic class FLVPlayback extends MovieClip { public var boundingBox_mc:MovieClip; } }//package fl.video
Section 83
//base_24 (Radio_1_fla.base_24) package Radio_1_fla { import flash.display.*; public dynamic class base_24 extends MovieClip { public var slider_mc:MovieClip; } }//package Radio_1_fla
Section 84
//connect_18 (Radio_1_fla.connect_18) package Radio_1_fla { import flash.display.*; public dynamic class connect_18 extends MovieClip { public var track_mc:base_24; } }//package Radio_1_fla
Section 85
//ISpectre (spectrumAnalyzer.core.ISpectre) package spectrumAnalyzer.core { interface ISpectre { function activate():void; function deactivate():void; } }//package spectrumAnalyzer.core
Section 86
//SoundSpectrumAnalyzer (spectrumAnalyzer.core.SoundSpectrumAnalyzer) package spectrumAnalyzer.core { import flash.display.*; public class SoundSpectrumAnalyzer extends Sprite implements ISpectre { public function activate():void{ throw (new IllegalOperationError("Abstract class: method must be overriden in subclass.")); } public function deactivate():void{ throw (new IllegalOperationError("Abstract class: method must be overriden in subclass.")); } } }//package spectrumAnalyzer.core
Section 87
//BarSpectrum (spectrumAnalyzer.frequencyAnalyzer.BarSpectrum) package spectrumAnalyzer.frequencyAnalyzer { import flash.events.*; import flash.utils.*; import flash.media.*; import spectrumAnalyzer.core.*; public class BarSpectrum extends SoundSpectrumAnalyzer { var _bars:Array; var _byteArray:ByteArray; var _type:String; var _timer:Timer; var _numOfBars:int; var _barsColor:uint; var _idleIndex:uint; var _idleDelay:uint; var _idleSize:Number; var _ratio:Number; var _spacing:Number; var _barWidth:Number; var _maxHeight:Number; var _reverse:Boolean; var _isIdle:Boolean;// = true var _idleTimer:Timer; var _FBD:Boolean; public static const SYMETRIC:String = "symetric"; public static const PARALEL:String = "paralel"; public static const INTERPOLATED:String = "interpolated"; public static const CENTERED:String = "centered"; public function BarSpectrum(_arg1:int=32, _arg2:Number=5, _arg3:Number=30, _arg4:Number=0.5, _arg5:uint=0x2F2F2F, _arg6:String="interpolated", _arg7:uint=12){ if ((((_arg1 > 0)) && ((_arg1 <= 0x0200)))){ _numOfBars = _arg1; } else { throw (new Error("Invalid number of bars. Value must be an integer between 2 and 512.")); }; _barWidth = _arg2; _maxHeight = _arg3; _spacing = _arg4; _barsColor = _arg5; _type = _arg6; _ratio = (0x0200 / _numOfBars); _idleDelay = 150; _idleSize = int(((_maxHeight / 100) * 25)); createBars(); showPeaks = false; FBD(true); _timer = new Timer(_arg7); _timer.start(); _timer.addEventListener(TimerEvent.TIMER, onTimer); } override public function deactivate():void{ removeEventListener(Event.ENTER_FRAME, onEnterFrame); } override public function activate():void{ addEventListener(Event.ENTER_FRAME, onEnterFrame); if (_isIdle){ setIdle(false); }; } public function set type(_arg1:String):void{ if ((((((_arg1 == SYMETRIC)) || ((_arg1 == PARALEL)))) || ((_arg1 == INTERPOLATED)))){ _type = _arg1; } else { throw (new Error("Wrong type. Must be one of the folowing: BarSpectrum.SYMETRIC, BarSpectrum.PARALEL, BarSpectrum.INTERPOLATED.")); }; } public function gradientBars(_arg1:Boolean):void{ var _local2:* = 0; while (_local2 < _bars.length) { DynamicBar(_bars[_local2]).gradient = _arg1; _local2++; }; } public function setGradientProperties(_arg1:Array, _arg2:Array, _arg3:Array, _arg4:Number):void{ var _local5:* = 0; while (_local5 < _bars.length) { DynamicBar(_bars[_local5]).setGradientProperties(_arg1, _arg2, _arg3, _arg4); _local5++; }; } public function setIdle(_arg1:Boolean):void{ if (!_idleTimer){ _idleTimer = new Timer(_idleDelay); }; if (_arg1){ removeEventListener(Event.ENTER_FRAME, onEnterFrame); _idleTimer.addEventListener(TimerEvent.TIMER, onIdle); _idleTimer.start(); } else { if (!_arg1){ addEventListener(Event.ENTER_FRAME, onEnterFrame); if (_idleTimer){ _idleTimer.removeEventListener(TimerEvent.TIMER, onIdle); _idleTimer.stop(); }; }; }; _isIdle = _arg1; } public function set idleSize(_arg1:Number):void{ if ((((_arg1 <= _maxHeight)) && ((_arg1 >= 0)))){ _idleSize = _arg1; } else { if (_arg1 > _maxHeight){ _idleSize = _maxHeight; } else { if (_arg1 < 0){ _idleSize = 0; }; }; }; } public function set idleDelay(_arg1:uint):void{ _idleDelay = _arg1; if (_idleTimer){ _idleTimer.delay = _idleDelay; }; } public function get idleDelay():uint{ return (_idleDelay); } public function get idleSize():Number{ return (_idleSize); } function onIdle(_arg1:TimerEvent):void{ var _local2:* = undefined; if (_reverse){ if (_reverse){ if (_idleIndex > 0){ if (_bars[(_idleIndex - 1)]){ _bars[(_idleIndex - 1)].grow((_idleSize * 0.5)); }; _bars[_idleIndex].grow(_idleSize); _idleIndex = _local2; } else { if (_idleIndex == 0){ _reverse = false; }; }; }; } else { if (_idleIndex < (_bars.length - 1)){ if (_bars[(_idleIndex + 1)]){ _bars[(_idleIndex + 1)].grow((_idleSize * 0.5)); }; _bars[_idleIndex].grow(_idleSize); _local2 = (_idleIndex + 1); _idleIndex = _local2; } else { if (_idleIndex == (_bars.length - 1)){ _reverse = true; }; }; }; } public function getBar(_arg1:uint):DynamicBar{ if ((((_arg1 <= _bars.length)) && ((_arg1 > 0)))){ return (DynamicBar(_bars[(_arg1 - 1)])); }; throw (new Error((("Specified bar number is invalid. You must pass in a number between 1 and " + _numOfBars) + "."))); } public function get bars():Array{ return (_bars); } public function FBD(_arg1:Boolean):void{ var _local2:* = 0; while (_local2 < _numOfBars) { DynamicBar(_bars[_local2]).setFBD(_arg1); if (_arg1){ DynamicBar(_bars[_local2]).grow(1); }; _local2++; }; } public function set showPeaks(_arg1:Boolean):void{ var _local2:* = 0; while (_local2 < _numOfBars) { DynamicBar(_bars[_local2]).showPeak = _arg1; _local2++; }; } function onEnterFrame(_arg1:Event):void{ var _local2:* = 0; var _local3:* = 0; var _local4:* = 0; _byteArray = new ByteArray(); try { SoundMixer.computeSpectrum(_byteArray, true); _local2 = 0x0200; _local3 = 0; while (_local3 < 0x0200) { _local2--; if (_type != "symetric"){ if (_type != "interpolated"){ if (_type != "paralel"){ if (_type == "centered"){ if (_local2 < 0x0100){ if ((_numOfBars % 2) != 0){ _local4 = ((_numOfBars - int((_local2 / _ratio))) - 1); } else { _local4 = (_numOfBars - (int((_local2 / _ratio)) + 1)); }; DynamicBar(_bars[_local4]).grow((_byteArray.readFloat() * _maxHeight)); } else { if ((_numOfBars % 2) != 0){ _local4 = ((int((_local2 / _ratio)) % int((0x0100 / _ratio))) + 1); } else { _local4 = (int((_local2 / _ratio)) % int((0x0100 / _ratio))); }; DynamicBar(_bars[_local4]).grow((_byteArray.readFloat() * _maxHeight)); }; }; } else { _local4 = int((_local3 / _ratio)); DynamicBar(_bars[_local4]).grow((_byteArray.readFloat() * _maxHeight)); }; } else { if (_local3 < 0x0100){ _local4 = (int((_local3 / _ratio)) * 2); DynamicBar(_bars[_local4]).grow((_byteArray.readFloat() * _maxHeight)); } else { _local4 = (((int((_local3 / _ratio)) % int((0x0100 / _ratio))) * 2) + 1); DynamicBar(_bars[_local4]).grow((_byteArray.readFloat() * _maxHeight)); }; }; } else { if (_local3 < 0x0100){ if ((_numOfBars % 2) != 0){ _local4 = ((_numOfBars - (int((_local3 / _ratio)) * 2)) - 1); } else { _local4 = (_numOfBars - ((int((_local3 / _ratio)) * 2) + 1)); }; DynamicBar(_bars[_local4]).grow((_byteArray.readFloat() * _maxHeight)); } else { if ((_numOfBars % 2) != 0){ _local4 = (((int((_local3 / _ratio)) % int((0x0100 / _ratio))) * 2) + 1); } else { _local4 = ((int((_local3 / _ratio)) % int((0x0100 / _ratio))) * 2); }; DynamicBar(_bars[_local4]).grow((_byteArray.readFloat() * _maxHeight)); }; }; _local3++; }; } catch(e:Error) { }; } public function kill():void{ _timer.removeEventListener(TimerEvent.TIMER, onTimer); removeEventListener(Event.ENTER_FRAME, onEnterFrame); removeEventListener(Event.ENTER_FRAME, onIdle); _numOfBars = NaN; _barWidth = NaN; _maxHeight = NaN; _bars = null; _byteArray = null; _ratio = NaN; _spacing = NaN; _barsColor = NaN; _type = null; _idleIndex = NaN; _timer = null; _idleSize = NaN; if (this.parent){ this.parent.removeChild(this); }; } function onTimer(_arg1:TimerEvent):void{ var _local2:* = 0; while (_local2 < _bars.length) { _bars[_local2].update(); _local2++; }; } function __drawBg():void{ graphics.clear(); graphics.beginFill(0, 0); graphics.drawRect(0, 0, ((_numOfBars * _barWidth) + (_numOfBars * _spacing)), _maxHeight); graphics.endFill(); } function createBars():void{ var _local1:* = 0; var _local2:* = null; _bars = []; __drawBg(); while (_local1 < _numOfBars) { _local2 = new DynamicBar(_barsColor, _barWidth, _maxHeight, false); _bars.push(_local2); _local2.x = ((_local1 * _barWidth) + (_local1 * _spacing)); _local2.y = _maxHeight; addChild(_local2); _local1++; }; } public function reverse():void{ _bars.reverse(); } } }//package spectrumAnalyzer.frequencyAnalyzer
Section 88
//DynamicBar (spectrumAnalyzer.frequencyAnalyzer.DynamicBar) package spectrumAnalyzer.frequencyAnalyzer { import flash.display.*; import flash.geom.*; public class DynamicBar extends Sprite { var _width:Number; var _bar:Sprite; var _color:uint; var _growFactor:Number; var _growth:Number; var _peakDist:Number; var _height:Number; var _gradient:Boolean; var _colors:Array; var _alphas:Array; var _ratios:Array; var _rotation:Number;// = 1.57075 var _FBD:Boolean; var _minShrink:int; var _hasPeak:Boolean;// = true var _initialPeakSpeed:Number;// = 0 var _peak:Sprite; var _initialFoS:Number;// = 0.001 var _peakAcceleration:Number;// = 1.1 var _peakHeight:Number; var _peakColor:uint; public function DynamicBar(_arg1:uint=0, _arg2:Number=5, _arg3:Number=50, _arg4:Boolean=true, _arg5:Boolean=false, _arg6:Boolean=false){ _colors = [5398886, 9214623]; _alphas = [0.2, 0.6]; _ratios = [0, 225]; _width = _arg2; _height = _arg3; _gradient = _arg4; _color = _arg1; _peakHeight = 1; _peakColor = 0xDDDDDD; _peakDist = 0; _FBD = _arg6; if (_arg5){ _growth = _height; }; _bar = new Sprite(); addChild(_bar); __createPeak(); setMinShrink(); } public function set barAlpha(_arg1:Number):void{ _bar.alpha = _arg1; } function __createPeak():void{ _peak = new Sprite(); __updatePeakGraphics(); addChild(_peak); } function setMinShrink():void{ if (_FBD){ _minShrink = 1; _growth = 2; } else { _minShrink = 0; _growth = 1; }; } function shrink():void{ var m:Matrix; var a:*; var _loc_3:*; var _loc_2:*; var loc1:*; var loc2:*; m = null; a = undefined; _loc_3 = undefined; _loc_2 = undefined; if (_growth > _minShrink){ _growth--; _loc_2 = _bar; var _local2 = _bar; loc2 = _local2; with (_local2) { graphics.clear(); graphics.beginFill(_color); graphics.drawRect(0, 0, _width, -(_growth)); graphics.endFill(); }; if (_gradient){ m = new Matrix(); m.createGradientBox(_width, -(_height), _rotation); _local2 = _bar; loc2 = _local2; with (_local2) { graphics.beginGradientFill(GradientType.LINEAR, _colors, _alphas, _ratios, m); graphics.drawRect(0, 0, _width, -(_growth)); graphics.endFill(); a = 0; while (a <= _growth) { graphics.moveTo(0, (a * -1)); graphics.lineStyle(1, 0); graphics.lineTo(_width, (a * -1)); a = (a + _width); }; }; }; }; } public function grow(_arg1:Number):void{ var param1:Number; var m:Matrix; var a:*; var value:*; var _loc_3:*; var loc1:*; var loc2:*; var arg1 = _arg1; m = null; a = undefined; _loc_3 = undefined; param1 = arg1; value = param1; if ((((value <= _height)) && ((value >= _growth)))){ _loc_3 = _bar; var _local3 = _bar; loc2 = _local3; with (_local3) { graphics.clear(); graphics.beginFill(_color); graphics.drawRect(0, 0, _width, -(Math.round(_growth))); graphics.endFill(); }; if (_gradient){ m = new Matrix(); m.createGradientBox(_width, -(_height), _rotation); _local3 = _bar; loc2 = _local3; with (_local3) { graphics.beginGradientFill(GradientType.LINEAR, _colors, _alphas, _ratios, m); graphics.drawRect(0, 0, _width, -(_growth)); graphics.endFill(); a = 0; while (a <= _growth) { graphics.moveTo(0, (a * -1)); graphics.lineStyle(1, 0); graphics.lineTo(_width, (a * -1)); a = (a + _width); }; }; }; _growth = Math.round(value); }; } public function setGradientProperties(_arg1:Array, _arg2:Array, _arg3:Array, _arg4:Number):void{ if ((((_arg1.length == _arg2.length)) && ((_arg2.length == _arg3.length)))){ _alphas = _arg1; _ratios = _arg2; _colors = _arg3; } else { throw (new Error("All arrays must have the same length.")); }; _rotation = _arg4; } function __updatePeakGraphics():void{ var _loc_2:*; var loc1:*; var loc2:*; _loc_2 = _peak; var _local2 = _peak; loc2 = _local2; with (_local2) { graphics.clear(); graphics.beginFill(_peakColor); graphics.drawRect(0, 0, _width, _peakHeight); graphics.endFill(); }; } public function set gradient(_arg1:Boolean):void{ _gradient = _arg1; } public function get gradient():Boolean{ return (_gradient); } public function set color(_arg1:uint):void{ _color = _arg1; } public function set peakDistance(_arg1:Number):void{ if ((((_arg1 >= 0)) && ((_arg1 <= 5)))){ _peakDist = _arg1; }; } public function get color():uint{ return (_color); } public function setFBD(_arg1:Boolean):void{ _FBD = _arg1; setMinShrink(); } public function set peakAcceleration(_arg1:uint):void{ if (_arg1 < 10000){ _peakAcceleration = (_arg1 / 10); } else { throw (new Error("It's just a sprite, you can't break the sound barrier with it! (a.k.a. Value can't exceed 10000 :) )")); }; } public function set peakHeight(_arg1:Number):void{ if (_arg1 > 0){ _peakHeight = _arg1; __updatePeakGraphics(); } else { throw (new Error("Peak height must be larger than 0.")); }; } public function set peakColor(_arg1:uint):void{ _peakColor = _arg1; __updatePeakGraphics(); } public function set showPeak(_arg1:Boolean):void{ var _local2:* = _arg1; _hasPeak = _arg1; _peak.visible = _local2; if (!_arg1){ _peak.y = -(_peak.height); }; } public function get hasPeak():Boolean{ return (_hasPeak); } public function update():void{ if (_hasPeak){ __movePeak(); }; shrink(); } function __movePeak():void{ if (_peak.y >= ((-(_bar.height) - _peak.height) - _peakDist)){ _peak.y = ((-(_bar.height) - _peak.height) - _peakDist); _initialPeakSpeed = 0; _initialFoS = 0.001; _peak.visible = false; } else { if (_peak.y < ((-(_bar.height) - _peak.height) - _peakDist)){ _initialFoS = (_initialFoS * _peakAcceleration); _initialPeakSpeed = (_initialPeakSpeed + _initialFoS); _peak.visible = true; if ((_peak.y + _initialPeakSpeed) < ((-(_bar.height) - _peak.height) - _peakDist)){ _peak.y = (_peak.y + _initialPeakSpeed); } else { if ((_peak.y + _initialPeakSpeed) >= ((-(_bar.height) - _peak.height) - _peakDist)){ _peak.y = ((-(_bar.height) - _peak.height) - _peakDist); _initialPeakSpeed = 0; _initialFoS = 0.001; }; }; }; }; } } }//package spectrumAnalyzer.frequencyAnalyzer
Section 89
//AnalogVu (AnalogVu) package { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.geom.*; import flash.filters.*; import flash.text.*; import flash.media.*; import flash.net.*; import aacplayer_fla.*; import flash.system.*; import flash.ui.*; import flash.accessibility.*; import flash.errors.*; public dynamic class AnalogVu extends MovieClip { public var vumeter_left:analogvu_4; public var vumeter_right:analogvu_2; public var ba:ByteArray; public var f:Number; public var n:Number; public var time:Timer; public function AnalogVu(){ addFrameScript(0, frame1); } public function diptimer(_arg1:TimerEvent):void{ var _local2:* = null; var _local3:* = 0; var _local4:* = undefined; _local3 = 0; _local2 = _arg1; try { if (f > 0){ f = (f - 0.05); }; if (f < 0){ f = 0; }; ba = new ByteArray(); SoundMixer.computeSpectrum(ba, true, 0); _local3 = 0; while (_local3 < 0x0200) { n = ba.readFloat(); if (n > f){ f = n; }; if (_local3 < 0x0100){ vumeter_right.arm.rotation = ((f * 360) / 8); } else { vumeter_left.arm.rotation = ((f * 360) / 8); }; _local3 = (_local3 + 1); }; } catch(ev:Error) { }; } function frame1(){ f = 0; n = 0; time = new Timer(40, 0); time.addEventListener("timer", diptimer); time.start(); } } }//package
Section 90
//autavoz (autavoz) package { import flash.display.*; public dynamic class autavoz extends MovieClip { public var vibra:MovieClip; } }//package
Section 91
//autavoz1 (autavoz1) package { import flash.display.*; public dynamic class autavoz1 extends MovieClip { public var vibra:MovieClip; } }//package
Section 92
//autavoz2 (autavoz2) package { import flash.display.*; public dynamic class autavoz2 extends MovieClip { public var vibra:MovieClip; } }//package
Section 93
//autavoz3 (autavoz3) package { import flash.display.*; public dynamic class autavoz3 extends MovieClip { public var vibra:MovieClip; } }//package
Section 94
//calitos (calitos) package { import flash.display.*; import flash.events.*; import com.caurina.transitions.*; import com.everydayflash.equalizer.*; import flash.utils.*; import com.greensock.*; import flash.geom.*; import flash.filters.*; import spectrumAnalyzer.frequencyAnalyzer.*; import com.everydayflash.equalizer.color.*; import com.anttikupila.revolt.presets.*; import flash.text.*; import flash.media.*; import com.anttikupila.soundSpectrum.*; import com.aacplayer.*; import flash.net.*; import com.aacplayer.addons.*; import com.*; import fl.video.*; import flash.system.*; import flash.ui.*; import flash.accessibility.*; import flash.errors.*; public class calitos extends MovieClip { public var infotab:InfoTab; public var metaDataText:TextField; public var labletxt:TextField; public var nowPlayingScroller:MovieClip; public var maskClip:MovieClip; public var mask_s:MovieClip; public var btnPlayPause:MovieClip; public var btnStop:MovieClip; public var sCaption:TextField; public var livestatus:TextField; public var iconfb:MovieClip; public var icontw:MovieClip; public var iconmail:MovieClip; public var iconandroid:MovieClip; public var iconmidiaplayer:MovieClip; public var iconreal:MovieClip; public var iconwinamp:MovieClip; public var iconmidia:MovieClip; public var iconquick:MovieClip; public var controle:Controle; public var videohandle:MovieClip; public var logoFile:String; public var logohandler:MovieClip; public var logom:MovieClip; public var stationName:TextField; public var disconnectioncount:Number;// = 0 private var timerDisp:TimerDisplay; private var clockDisp:Timer; private var reconnectTimer:Timer; private var reconnectAttempt:Number;// = 0 private var knob:Knob; private var visualization:Visualization; private var stationStatus:StationStatus; private var artistImage:ArtistImage; private var artistImage2:ArtistImage3; private var artistImage1:ArtistImageCopia; private var ArtistName:String; private var SongTitle:String; private var UrlStatusScriptLink:String; private var tmrduration:String; private var labelText:String; private var uid:String; private var uniqueid:String; private var xmlLoader:URLLoader; private var xmlData:XML; private var LogoURLRequest:URLRequest; private var isConnected:Boolean; private var isTryingtoConnect:Boolean; private var isPaused:Boolean; private var isDebugMode:Boolean; private var widthPos:Number; private var bounds:Rectangle; private var xPos:Number; private var myLoader:Loader; private var connect:MovieClip; private var banLoader:Loader; private var maxPos:Number; private var minPos:Number; private var scrollingSpeed:Number; private var minScrollerTextLength:Number; private var isDirectionLeft:Boolean; private var soundVolume:SoundTransform; private var metaDataValues:Array; private var banURLRequest:URLRequest; private var heightPos:Number; private var netStream:NetStream;// = null private var netConnection:NetConnection;// = null private var streamserver:Array; private var rtmpserver:String; private var streamaddress:String; private var streamaddressbackup:String; public var streamservercount:Number; public var max_dc_count:Number;// = 3 public var server_index:Number;// = 0 public var equalizer_config:Array; private var introvideo:String; public var videoplayer:SuperSimpleFLVPlayer; private var sp:SoundProcessor; private var gfx:BitmapData; private var presetList:Array; private var presetInt:Timer; private var preset:Preset; private var lastChange:Number; public var mySpectrum:BarSpectrum; private var equa:EqualizerSettings; private var equalizer:Equalizer; private var ProVolume:Number; private var VolumeLimite:Rectangle; private var xPos1:Number; private var yPos:Number; private var widthPos1:Number; private var heightPos1:Number;// = 0 private var Limites:Rectangle; public var altavoz:MovieClip; public var altavoz1:MovieClip; public var altavoz2:MovieClip; public var altavoz3:MovieClip; public function calitos(){ infotab = new InfoTab(); controle = new Controle(); stationStatus = new StationStatus(); equalizer_config = new Array(); VolumeLimite = controle.getBounds(controle); xPos1 = VolumeLimite.x; yPos = VolumeLimite.y; widthPos1 = (VolumeLimite.width - controle.DragVolume.width); Limites = new Rectangle(xPos1, yPos, widthPos1, heightPos1); super(); addFrameScript(0, mainFrame); } function scrollTitle(){ if (nowPlayingScroller.nowPlaying.width > 288){ nowPlayingScroller.nowPlaying.x = 5; Tweener.addTween(nowPlayingScroller.nowPlaying, {x:-800, time:30, delay:3, onUpdate:scroollupdate, transition:"linear", onComplete:scrollTitle}); } else { nowPlayingScroller.nowPlaying.x = 5; }; } function mainFrame(){ stage.align = "TL"; stage.scaleMode = "noScale"; initialize(); } function initialize():void{ var distorsion:*; var loc1:*; distorsion = undefined; distorsion = function (){ var _local1:* = undefined; var _local2:* = undefined; var _local3:* = undefined; _local1 = undefined; _local2 = undefined; _local3 = undefined; _local1 = new ByteArray(); SoundMixer.computeSpectrum(_local1); _local2 = _local1.readFloat(); _local3 = Math.abs(Math.floor((_local2 * 0x0200))); trace(_local3); if (_local3 >= ritmo){ Tweener.addTween(altavoz.vibra, {time:0, scaleX:1.05, scaleY:1.05}); Tweener.addTween(altavoz1.vibra, {time:0, scaleX:1.05, scaleY:1.05}); Tweener.addTween(altavoz2.vibra, {time:0, scaleX:1.05, scaleY:1.05}); Tweener.addTween(altavoz3.vibra, {time:0, scaleX:1.05, scaleY:1.05}); TweenMax.to(altavoz.vibra.color_mc, 0.1, {tint:0xD00000}); TweenMax.to(altavoz2.vibra.color_mc, 0.1, {tint:0xD00000}); } else { Tweener.addTween(altavoz.vibra, {time:0, scaleX:1, scaleY:1}); Tweener.addTween(altavoz1.vibra, {time:0, scaleX:1, scaleY:1}); Tweener.addTween(altavoz2.vibra, {time:0, scaleX:1, scaleY:1}); Tweener.addTween(altavoz3.vibra, {time:0, scaleX:1, scaleY:1}); TweenMax.to(altavoz.vibra.color_mc, 0.1, {tint:0xD0B700}); TweenMax.to(altavoz2.vibra.color_mc, 0.1, {tint:0xD0B700}); }; }; isPaused = false; isDebugMode = false; videohandle.visible = false; initSecuritySettings(); initContextMenu(); initVolumeControl(); initDrag(); parseSettings(); initSoundProcessor(); initSpectrum(); initStatusTimer(); initClock(); initReconnect(); initMetaData(); initTileScrolling(); initButtons(); initArtistImage(); ritmo = 100; altavoz.vibra.addEventListener("enterFrame", distorsion); } function initSecuritySettings():void{ Security.allowDomain("*"); } function initContextMenu():void{ var my_menu:ContextMenu; var my_notice:*; var my_email:*; var openLink:*; var loc1:*; openLink = undefined; openLink = function (_arg1:ContextMenuEvent):void{ navigateToURL(new URLRequest("http://jmdroid.epizy.com/")); }; my_menu = new ContextMenu(); my_menu.hideBuiltInItems(); my_notice = new ContextMenuItem("Darkinred"); my_email = new ContextMenuItem("Darkinred"); my_email.separatorBefore = true; my_notice.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, openLink); my_menu.customItems.push(my_notice, my_email); contextMenu = my_menu; } function initVisualization():void{ visualization = new Visualization(400, 200); visualization.enabled = true; addChild(visualization); } function initVolumeControl():void{ var knobChangeHandler:*; var loc1:*; knobChangeHandler = undefined; knobChangeHandler = function (_arg1:Event):void{ if (netStream){ soundVolume.volume = _arg1.target.value; netStream.soundTransform = soundVolume; }; }; knob = new Knob("Volume", 0, 1, 0.9, "", 15, 0.001); knob.addEventListener(Event.CHANGE, knobChangeHandler); knob.x = 403; knob.y = 311; } function initDrag():void{ var volumeDrag:*; var stopVolume:*; var Volume:*; var loc1:*; volumeDrag = undefined; stopVolume = undefined; Volume = undefined; volumeDrag = function (_arg1:MouseEvent):void{ controle.DragVolume.startDrag(false, Limites); addEventListener(Event.ENTER_FRAME, Volume); stage.addEventListener(MouseEvent.MOUSE_UP, stopVolume); }; stopVolume = function (_arg1:MouseEvent):void{ controle.DragVolume.stopDrag(); stage.removeEventListener(MouseEvent.MOUSE_UP, stopVolume); }; Volume = function (_arg1:Event):void{ ProVolume = (controle.DragVolume.x / widthPos1); soundVolume.volume = ProVolume; netStream.soundTransform = soundVolume; controle.BarVolume.width = (controle.DragVolume.x + 10); }; controle.DragVolume.x = widthPos1; controle.DragVolume.buttonMode = true; controle.DragVolume.addEventListener(MouseEvent.MOUSE_DOWN, volumeDrag); } function InitLogo(_arg1:String, _arg2:Number, _arg3:Number):void{ var logofilename:String; var xloc:Number; var yloc:Number; var loader:Loader; var loc1:*; var arg1 = _arg1; var arg2 = _arg2; var arg3 = _arg3; loader = null; logofilename = arg1; xloc = arg2; yloc = arg3; loader = new Loader(); loader.load(new URLRequest(logofilename)); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, function (){ logom.addChild(loader); logom.x = xloc; logom.y = yloc; }); } function initEqualizer():void{ mySpectrum = new BarSpectrum(48, 5, 70, 1, 0, BarSpectrum.CENTERED, 30); mySpectrum.showPeaks = true; mySpectrum.gradientBars(true); mySpectrum.setIdle(true); mySpectrum.FBD(false); mySpectrum.setGradientProperties([1, 1, 1], [0, 10, 225], [uint(equalizer_config[0]), uint(equalizer_config[1]), uint(equalizer_config[2])], (3.1415 * 0.5)); var _local1:* = 0; while (_local1 < 48) { DynamicBar(mySpectrum.bars[_local1]).peakHeight = 1.5; DynamicBar(mySpectrum.bars[_local1]).peakAcceleration = 11.13; DynamicBar(mySpectrum.bars[_local1]).peakColor = 0xFFFFFF; DynamicBar(mySpectrum.bars[_local1]).peakDistance = 1; _local1++; }; addChild(mySpectrum); mySpectrum.activate(); mySpectrum.x = 207; mySpectrum.y = 50; } function initSpectrum():void{ equa = new EqualizerSettings(); equa.numOfBars = 10; equa.height = 48; equa.barSize = 10; equa.vgrid = true; equa.hgrid = 3; equa.colorManager = new GradientBarColor(0xFF0000, 0xFFFFFF); equalizer = new Equalizer(); equalizer.update(equa); equalizer.x = 213; equalizer.y = 226; addChild(equalizer); addEventListener(Event.ENTER_FRAME, equalizer.render); } function initStatusTimer():void{ var diptimer:*; var loc1:*; diptimer = undefined; diptimer = function (_arg1:Event):void{ tmrduration = timerDisp.getTimeLapse(); labletxt.text = tmrduration; livestatus.text = "LIVE"; }; livestatus.text = "OFFLINE"; soundVolume = new SoundTransform(); timerDisp = new TimerDisplay(100); timerDisp.addEventListener("TIMER_COUNT", diptimer); } function initClock():void{ var clocktimer:*; var loc1:*; clocktimer = undefined; clocktimer = function (_arg1:Event):void{ var _local2:* = new Date(); var _local3:* = _local2.getHours(); var _local4:* = _local2.getMinutes(); var _local5:* = _local2.getSeconds(); if (_local3 <= 12){ ampm = "am"; } else { ampm = "pm"; }; if (_local3 > 12){ _local3 = (_local3 - 12); }; if (_local3 == 0){ _local3 = 12; }; if (_local3 < 10){ _local3 = ("0" + _local3); } else { }; if (_local4 < 10){ _local4 = ("0" + _local4); } else { }; if (_local5 < 10){ _local5 = ("0" + _local5); } else { }; infotab.Station.text = ((((((_local3 + ": ") + _local4) + ": ") + _local5) + ": ") + ampm); }; clockDisp = new Timer(1000); clockDisp.addEventListener(TimerEvent.TIMER, clocktimer); clockDisp.start(); } function initReconnect():void{ var reconnectEvent:*; var loc1:*; reconnectEvent = undefined; reconnectEvent = function (_arg1:Event):void{ var e:Event; var bufferPct:Number; var delayTimer:Timer; var loc1:*; var loc2:*; var arg1 = _arg1; delayTimer = null; e = arg1; if (((isTryingtoConnect) && (!(isConnected)))){ labletxt.text = "..."; doStop(); doConnect(); }; bufferPct = 0; if (netStream){ bufferPct = Math.min(Math.round(((netStream.bufferLength / netStream.bufferTime) * 100)), 100); }; infotab.Bitrate.text = (("BF:" + bufferPct) + "%"); infotab.Disconnection.text = ("DC:" + disconnectioncount); if (((isConnected) && ((bufferPct == 0)))){ reconnectAttempt++; }; if (reconnectAttempt > 0){ doStop(); delayTimer = new Timer(5000, 1); delayTimer.addEventListener(TimerEvent.TIMER, function (){ doConnect(); }); delayTimer.start(); }; }; reconnectTimer = new Timer(5000); reconnectTimer.addEventListener(TimerEvent.TIMER, reconnectEvent); reconnectTimer.start(); } function initSoundProcessor(){ sp = new SoundProcessor(); gfx = new BitmapData(289, 110, false, 0); var _local1:* = new Bitmap(gfx); addChildAt(_local1, 4); _local1.x = 206; _local1.y = 33; presetList = new Array(new LineFourier(), new LineNoFourier(), new Explosion(), new LineSmooth(), new LineWorm(), new Tunnel()); var _local2:* = new Timer(7100, 1); _local2.addEventListener(TimerEvent.TIMER, setupTimer); _local2.start(); nextPreset(null); } function compute(_arg1:Event):void{ var _local2:* = sp.getSoundSpectrum(preset.fourier); preset.applyGfx(gfx, _local2); } function setupTimer(_arg1:Event):void{ presetInt = new Timer(12950, 0); presetInt.addEventListener(TimerEvent.TIMER, nextTimedPreset); presetInt.start(); nextPreset(null); } function nextPreset(_arg1:Event):void{ var _local2:* = Math.floor((Math.random() * presetList.length)); var _local3:* = presetList[_local2]; if (_local3 == preset){ nextPreset(null); } else { preset = _local3; preset.init(); }; lastChange = getTimer(); } function nextTimedPreset(_arg1:Event):void{ if ((getTimer() - lastChange) > 5000){ nextPreset(_arg1); }; } function initMetaData():void{ metaDataValues = new Array(); metaDataValues["artist"] = ""; metaDataValues["title"] = ""; metaDataValues["genre"] = ""; metaDataValues["name"] = ""; metaDataValues["url"] = ""; } function initTileScrolling():void{ maxPos = 0; minPos = 0; scrollingSpeed = 1; minScrollerTextLength = maskClip.width; isDirectionLeft = true; nowPlayingScroller.nowPlaying.multiline = false; nowPlayingScroller.mask = maskClip; nowPlayingScroller.nowPlaying.autoSize = "right"; } function initButtons():void{ btnPlayPause.buttonMode = true; btnStop.buttonMode = true; btnPlayPause.addEventListener(MouseEvent.CLICK, btnPlayPausePauseClick); btnStop.addEventListener(MouseEvent.CLICK, btnStopClick); iconfb.buttonMode = true; icontw.buttonMode = true; iconmail.buttonMode = true; iconandroid.buttonMode = true; iconmidiaplayer.buttonMode = true; iconwinamp.buttonMode = true; iconmidia.buttonMode = true; iconreal.buttonMode = true; iconquick.buttonMode = true; } function initArtistImage():void{ artistImage = new ArtistImage(100, 100, "79a03d77ad8b9820d8745bfb30e2e31b"); addChildAt(artistImage, 20); artistImage.x = 212; artistImage.y = 174; artistImage2 = new ArtistImage3(115, 115, "79a03d77ad8b9820d8745bfb30e2e31b"); artistImage2.x = 507; artistImage2.y = 41; artistImage1 = new ArtistImageCopia(120, 120, "79a03d77ad8b9820d8745bfb30e2e31b"); artistImage1.x = 200; artistImage1.y = 271; } function updateStationStatus(_arg1:Event):void{ infotab.Listeners.text = ("usr " + stationStatus.ListenerCount); ArtistName = stationStatus.Artist; SongTitle = stationStatus.Title; } function parseSettings():void{ var videointro:String; var bottomcolor:String; var middlecolor:String; var topcolor:String; var peakcolor:String; var facebook:String; var twitter:String; var email:String; var winamp:String; var quick:String; var real:String; var midia:String; var android:String; var midiaplayer:String; var autoplay:String; var loc1:*; videointro = null; facebook = null; twitter = null; email = null; winamp = null; quick = null; real = null; midia = null; android = null; midiaplayer = null; streamaddress = "http://streaming.radionomy.com/jyjradio?lang=es-ES%2ces%3bq%3d0.8"; rtmpserver = "rtmp://whmsonic8.ipstm.net/shoutcast"; stationName.text = "Calitos Artz"; videointro = "wdth = 325, height = 220"; UrlStatusScriptLink = "estadisticas.php"; bottomcolor = "008000"; middlecolor = "ffff00"; topcolor = "FF0000"; peakcolor = "ffffff"; equalizer_config.push(("0x" + bottomcolor)); equalizer_config.push(("0x" + middlecolor)); equalizer_config.push(("0x" + topcolor)); equalizer_config.push(("0x" + peakcolor)); initEqualizer(); facebook = "https://www.facebook.com/JoeMiqui"; twitter = "https://www.facebook.com/JoeMiqui"; email = ""; winamp = "http://jmdroid.epizy.com/"; quick = "http://jmdroid.epizy.com/"; real = "http://jmdroid.epizy.com/"; midia = "http://jmdroid.epizy.com/"; android = ""; midiaplayer = ""; iconfb.addEventListener(MouseEvent.CLICK, function (){ navigateToURL(new URLRequest(facebook), "_blank"); }); icontw.addEventListener(MouseEvent.CLICK, function (){ navigateToURL(new URLRequest(twitter), "_blank"); }); iconmail.addEventListener(MouseEvent.CLICK, function (){ navigateToURL(new URLRequest(email), "_blank"); }); iconandroid.addEventListener(MouseEvent.CLICK, function (){ navigateToURL(new URLRequest(android), "_blank"); }); iconmidiaplayer.addEventListener(MouseEvent.CLICK, function (){ navigateToURL(new URLRequest(midiaplayer), "_blank"); }); iconmidia.addEventListener(MouseEvent.CLICK, function (){ navigateToURL(new URLRequest(midia), "_blank"); }); iconreal.addEventListener(MouseEvent.CLICK, function (){ navigateToURL(new URLRequest(real), "_blank"); }); iconquick.addEventListener(MouseEvent.CLICK, function (){ navigateToURL(new URLRequest(quick), "_blank"); }); iconwinamp.addEventListener(MouseEvent.CLICK, function (){ navigateToURL(new URLRequest(winamp), "_blank"); }); sCaption.text = "Darkinred"; autoplay = "yes"; if (autoplay != "yes"){ }; if (introvideo == ""){ if (autoplay == "yes"){ doPlayPause(); }; } else { btnStop.visible = false; btnPlayPause.visible = false; mySpectrum.visible = false; btnStop.visible = true; btnPlayPause.visible = true; mySpectrum.visible = true; if (autoplay == "yes"){ doPlayPause(); }; }; } function playRadio():void{ var netStreamClientObj:Object; var loc1:*; var video:Video; netStreamClientObj = null; loc1 = undefined; netStreamClientObj = null; netStream = new NetStream(netConnection); netStream.checkPolicyFile = true; netStream.addEventListener(NetStatusEvent.NET_STATUS, netStreamOnStatus); netStream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler); netStreamClientObj = new Object(); netStream.client = netStreamClientObj; netStreamClientObj.onCuePoint = function (_arg1:Object):void{ }; netStreamClientObj.onHeaderData = function (_arg1:Object){ var _local2:* = undefined; var _local3:* = undefined; var _local4:* = undefined; var _local5:* = undefined; _local2 = null; _local3 = null; _local2 = ""; _local4 = 0; _local5 = _arg1; var _local6:* = 0; var _local7:* = _local5; for (_local3 in _local7) { if (!isDebugMode){ } else { _local2 = (_local2 + (((_local3 + ": ") + _arg1[_local3]) + "\n")); }; }; if (isDebugMode){ metaDataText.text = _local2; } else { if (_arg1["icy-genre"] != undefined){ metaDataValues["genre"] = _arg1["icy-genre"]; }; if (_arg1["icy-name"] != undefined){ metaDataValues["name"] = _arg1["icy-name"]; }; updateMetaData(); }; }; netStreamClientObj.onMetaData = function (_arg1:Object){ var _local2:* = undefined; var _local3:* = undefined; var _local4:* = undefined; var _local5:* = undefined; _local2 = null; _local3 = null; _local2 = ""; _local4 = 0; _local5 = _arg1; var _local6:* = 0; var _local7:* = _local5; for (_local3 in _local7) { if (!isDebugMode){ } else { _local2 = (_local2 + (((_local3 + ": ") + _arg1[_local3]) + "\n")); }; }; if (isDebugMode){ metaDataText.text = _local2; } else { if (_arg1["StreamTitle"] != undefined){ metaDataValues["title"] = _arg1["StreamTitle"]; }; if (_arg1["StreamArtist"] != undefined){ metaDataValues["artist"] = _arg1["StreamArtist"]; }; if (_arg1["StreamUrl"] != undefined){ metaDataValues["url"] = _arg1["StreamUrl"]; }; if (_arg1["title"] != undefined){ metaDataValues["title"] = _arg1["title"]; }; if (_arg1["artist"] != undefined){ metaDataValues["artist"] = _arg1["artist"]; }; updateMetaData(); }; }; netStream.bufferTime = 10; netStream.seek(0); video = new Video(); video.attachNetStream(netStream); netStream.play(streamaddress); soundVolume.volume; netStream.soundTransform = soundVolume; } function asyncErrorHandler(_arg1:AsyncErrorEvent):void{ } function updateMetaData():void{ var _local1:* = undefined; var _local2:* = null; var _local3:* = null; var _local4:* = null; _local1 = undefined; _local1 = ""; nowPlaying = ""; if (metaDataValues["artist"] != ""){ _local1 = (_local1 + (("Artist: " + metaDataValues["artist"]) + "\n")); }; if (metaDataValues["title"] != ""){ _local1 = (_local1 + (("Title: " + metaDataValues["title"]) + "\n")); }; if (metaDataValues["genre"] != ""){ _local1 = (_local1 + (("Genre: " + metaDataValues["genre"]) + "\n")); }; if (metaDataValues["name"] != ""){ _local1 = (_local1 + (("Name: " + metaDataValues["name"]) + "\n")); }; if (metaDataValues["url"] != ""){ _local1 = (_local1 + (("URL: " + metaDataValues["url"]) + "\n")); }; metaDataText.text = _local1; if (metaDataValues["artist"] != ""){ nowPlaying = (nowPlaying + (metaDataValues["artist"] + " - ")); }; if (metaDataValues["title"] != ""){ nowPlaying = (nowPlaying + metaDataValues["title"]); }; _local2 = metaDataValues["title"]; _local4 = _local2.split("-"); _local3 = trimWhitespace(_local4[0]); artistImage.LoadArtistInfo(_local3); artistImage2.LoadArtistInfo(_local3); nowPlayingScroller.nowPlaying.text = nowPlaying; nowPlayingScroller.nowPlaying.width = nowPlayingScroller.nowPlaying.textWidth; nowPlayingScroller.nowPlaying.x = 5; stationStatus.GetStatus(UrlStatusScriptLink); scrollTitle(); } function scroollupdate():void{ if (nowPlayingScroller.nowPlaying.x < ((nowPlayingScroller.nowPlaying.width - 273) * -1)){ Tweener.addTween(nowPlayingScroller.nowPlaying, {x:800, time:30, delay:3, onUpdate:scroollRightupdate, transition:"linear", onComplete:scrollTitle}); }; } function scroollRightupdate():void{ if (nowPlayingScroller.nowPlaying.x > 5){ scrollTitle(); }; } function btnPlayPausePauseClick(_arg1:Event):void{ doPlayPause(); } function btnStopClick(_arg1:Event):void{ turnDownAudio(); doStop(); ShowInfo(false); } function nowPlayingUpdater(_arg1:Event):void{ if (nowPlayingScroller.nowPlaying.textWidth > minScrollerTextLength){ if (isDirectionLeft){ nowPlayingScroller.nowPlaying.x = (nowPlayingScroller.nowPlaying.x - scrollingSpeed); if (nowPlayingScroller.nowPlaying.x < minPos){ isDirectionLeft = false; }; } else { nowPlayingScroller.nowPlaying.x = (nowPlayingScroller.nowPlaying.x + scrollingSpeed); if (nowPlayingScroller.nowPlaying.x > maxPos){ isDirectionLeft = true; }; }; }; } function netConnectionOnStatus(_arg1:NetStatusEvent):void{ if (_arg1.info.code == "NetConnection.Connect.Success"){ isTryingtoConnect = false; playRadio(); }; if (_arg1.info.code == "NetConnection.Connect.Closed"){ netConnection.removeEventListener(NetStatusEvent.NET_STATUS, netConnectionOnStatus); }; } function netStreamOnStatus(_arg1:NetStatusEvent):void{ var _local2:*; if (_arg1.info.code == "NetStream.Play.Start"){ addEventListener(Event.ENTER_FRAME, compute); timerDisp.StartCount(); isConnected = true; }; if (_arg1.info.code == "NetStream.Play.StreamNotFound"){ if (!isConnected){ doStop(); }; }; if (_arg1.info.code == "NetStream.Buffer.Flush"){ bufferFlush = true; }; if (_arg1.info.code == "NetStream.Buffer.Empty"){ isConnected = false; doStop(); isTryingtoConnect = true; disconnectioncount++; if (disconnectioncount > max_dc_count){ disconnectioncount = 0; if (server_index > streamservercount){ server_index = 0; } else { server_index++; }; streamaddress = streamserver[server_index]; trace(streamaddress); }; }; if (_arg1.info.code != "NetStream.Play.Stop"){ }; } function isLoaded(_arg1:Event):void{ LogoLoader.addChild(myLoader); myLoader.scaleX = 1; myLoader.scaleY = 1; } function doStop():void{ if (netStream != null){ netStream.removeEventListener(NetStatusEvent.NET_STATUS, netStreamOnStatus); netStream.removeEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler); netStream.close(); netStream = null; }; if (netConnection != null){ netConnection.removeEventListener(NetStatusEvent.NET_STATUS, netConnectionOnStatus); netConnection.close(); netConnection = null; }; reconnectAttempt = 0; isConnected = false; isPaused = false; metaDataValues["artist"] = ""; metaDataValues["title"] = ""; metaDataValues["genre"] = ""; metaDataValues["name"] = ""; metaDataValues["url"] = ""; updateMetaData(); updateLabelText(); livestatus.text = "OFFLINE"; btnPlayPause.gotoAndPlay(6); isTryingtoConnect = false; tmrduration = "00:00"; timerDisp.StopCount(); nowPlayingScroller.nowPlaying.text = ""; stationStatus.removeEventListener("ON_STATION_STATUS", updateStationStatus); infotab.Listeners.text = ""; infotab.Bitrate.text = ""; artistImage.UnloadImage(); } function doConnect():void{ isConnected = false; isTryingtoConnect = true; updateLabelText(); netConnection = new NetConnection(); netConnection.addEventListener(NetStatusEvent.NET_STATUS, netConnectionOnStatus); if (rtmpserver != ""){ netConnection.connect(rtmpserver); } else { netConnection.connect(null); }; isConnected = netConnection.connected; stationStatus.addEventListener("ON_STATION_STATUS", updateStationStatus); btnPlayPause.gotoAndPlay(2); ShowInfo(true); turnUpAudio(); } function turnUpAudio():void{ var audiovol:Number; var loc1:*; audiovol = NaN; audiovol = 0; voladj = new Timer(25, 80); voladj.addEventListener(TimerEvent.TIMER, function (){ var _local1:*; audiovol++; knob.value = (audiovol / 100); soundVolume.volume = (audiovol / 100); if (netStream != null){ netStream.soundTransform = soundVolume; }; }); voladj.start(); } function turnDownAudio():void{ var audiovold:Number; var loc1:*; audiovold = NaN; audiovold = 80; voladjd = new Timer(20, 80); voladjd.addEventListener(TimerEvent.TIMER, function (){ var _local1:*; audiovold--; knob.value = (audiovold / 100); }); voladjd.start(); } function doPause():void{ if (((!((netStream == null))) && (!(isPaused)))){ netStream.pause(); timerDisp.PauseCount(); isPaused = true; btnPlayPause.gotoAndPlay(6); }; } function doResume():void{ if (netStream != null){ netStream.resume(); timerDisp.ResumeCount(); isPaused = false; btnPlayPause.gotoAndPlay(2); }; } function updateLabelText(){ if (((((!(isPaused)) && (!(isTryingtoConnect)))) && (isConnected))){ labelText = "Playing..."; } else { if (((isTryingtoConnect) && (!(isConnected)))){ labelText = "Loading..."; } else { if (((!(isConnected)) && (!(isTryingtoConnect)))){ labelText = "Stopped"; } else { if (isPaused){ labelText = "Paused"; } else { labelText = ""; }; }; }; }; } function doPlayPause():void{ if (isPaused){ doResume(); } else { if (((!(isPaused)) && (isConnected))){ doPause(); } else { doConnect(); }; }; updateLabelText(); } function trimWhitespace(_arg1:String):String{ if (_arg1 == null){ return (""); }; return (_arg1.replace(new RegExp("^\\s+|\\s+$", "g"), "")); } function ShowInfo(_arg1:Boolean):void{ if (!_arg1){ }; } } }//package
Section 95
//capa (capa) package { import flash.display.*; public dynamic class capa extends MovieClip { } }//package
Section 96
//Controle (Controle) package { import flash.display.*; public dynamic class Controle extends MovieClip { public var BarVolume:MovieClip; public var DragVolume:MovieClip; } }//package
Section 97
//Font5 (Font5) package { import flash.text.*; public dynamic class Font5 extends Font { } }//package
Section 98
//Font6 (Font6) package { import flash.text.*; public dynamic class Font6 extends Font { } }//package
Section 99
//Font7 (Font7) package { import flash.text.*; public dynamic class Font7 extends Font { } }//package
Section 100
//InfoTab (InfoTab) package { import flash.display.*; import flash.text.*; public dynamic class InfoTab extends MovieClip { public var Disconnection:TextField; public var Station:TextField; public var Listeners:TextField; public var Bitrate:TextField; } }//package
Section 101
//mask_s (mask_s) package { import flash.display.*; public dynamic class mask_s extends MovieClip { } }//package
Section 102
//maskClip (maskClip) package { import flash.display.*; public dynamic class maskClip extends MovieClip { } }//package
Section 103
//spectrum (spectrum) package { import flash.display.*; public dynamic class spectrum extends MovieClip { } }//package

Library Items

Symbol 1 Font {Font5}
Symbol 2 Font {Font6}
Symbol 3 Font {Font7}Used by:56 57 58 59 97 101 102 104 105
Symbol 4 MovieClip {spectrum}
Symbol 5 MovieClip {fl.core.ComponentShim}
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClipUses:6Used by:8
Symbol 8 MovieClip {fl.video.FLVPlayback}Uses:7
Symbol 9 GraphicUsed by:12
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClipUses:10Used by:12
Symbol 12 MovieClip {Radio_1_fla.base_24}Uses:9 11Used by:13
Symbol 13 MovieClip {Radio_1_fla.connect_18}Uses:12
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClipUses:14Used by:18
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClipUses:16Used by:18
Symbol 18 MovieClip {Controle}Uses:15 17Used by:Timeline
Symbol 19 BitmapUsed by:20
Symbol 20 GraphicUses:19Used by:21
Symbol 21 MovieClip {capa}Uses:20Used by:Timeline
Symbol 22 GraphicUsed by:27 30
Symbol 23 GraphicUsed by:27
Symbol 24 GraphicUsed by:25
Symbol 25 ButtonUses:24Used by:27 30
Symbol 26 GraphicUsed by:27
Symbol 27 MovieClip {aacplayer_fla.btnStop_49}Uses:22 23 25 26Used by:Timeline
Symbol 28 GraphicUsed by:30
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClip {aacplayer_fla.btnPlayPause_47}Uses:22 28 25 29Used by:Timeline
Symbol 31 GraphicUsed by:32
Symbol 32 MovieClipUses:31Used by:33 37
Symbol 33 MovieClipUses:32Used by:47
Symbol 34 GraphicUsed by:35
Symbol 35 MovieClipUses:34Used by:36 45
Symbol 36 MovieClipUses:35Used by:47
Symbol 37 MovieClipUses:32Used by:47
Symbol 38 GraphicUsed by:39
Symbol 39 MovieClipUses:38Used by:40 44
Symbol 40 MovieClipUses:39Used by:47
Symbol 41 MovieClipUsed by:42
Symbol 42 MovieClipUses:41Used by:43 46
Symbol 43 MovieClipUses:42Used by:47
Symbol 44 MovieClipUses:39Used by:47
Symbol 45 MovieClipUses:35Used by:47
Symbol 46 MovieClipUses:42Used by:47
Symbol 47 MovieClip {aacplayer_fla.Sprite452_27}Uses:33 36 37 40 43 44 45 46Used by:Timeline
Symbol 48 GraphicUsed by:51 52
Symbol 49 GraphicUsed by:50
Symbol 50 MovieClipUses:49Used by:51 52
Symbol 51 MovieClip {aacplayer_fla.analogvu_4}Uses:48 50Used by:53
Symbol 52 MovieClip {aacplayer_fla.analogvu_2}Uses:48 50Used by:53
Symbol 53 MovieClip {AnalogVu}Uses:52 51Used by:Timeline
Symbol 54 GraphicUsed by:55
Symbol 55 MovieClip {maskClip}Uses:54Used by:Timeline
Symbol 56 EditableTextUses:3Used by:60
Symbol 57 EditableTextUses:3Used by:60
Symbol 58 EditableTextUses:3Used by:60
Symbol 59 EditableTextUses:3Used by:60
Symbol 60 MovieClip {InfoTab}Uses:56 57 58 59Used by:Timeline
Symbol 61 GraphicUsed by:62
Symbol 62 MovieClipUses:61Used by:65
Symbol 63 BitmapUsed by:64
Symbol 64 GraphicUses:63Used by:65
Symbol 65 MovieClipUses:62 64Used by:66 67 68 69
Symbol 66 MovieClip {autavoz3}Uses:65Used by:Timeline
Symbol 67 MovieClip {autavoz2}Uses:65Used by:Timeline
Symbol 68 MovieClip {autavoz1}Uses:65Used by:Timeline
Symbol 69 MovieClip {autavoz}Uses:65Used by:Timeline
Symbol 70 GraphicUsed by:74
Symbol 71 MovieClipUsed by:74
Symbol 72 GraphicUsed by:73
Symbol 73 MovieClipUses:72Used by:74
Symbol 74 MovieClip {aacplayer_fla.blue_spectrum_10}Uses:70 71 73Used by:Timeline
Symbol 75 GraphicUsed by:76
Symbol 76 MovieClipUses:75Used by:83
Symbol 77 GraphicUsed by:78
Symbol 78 MovieClipUses:77Used by:83
Symbol 79 GraphicUsed by:80
Symbol 80 MovieClipUses:79Used by:83
Symbol 81 GraphicUsed by:82
Symbol 82 MovieClipUses:81Used by:83
Symbol 83 MovieClipUses:76 78 80 82Used by:84
Symbol 84 MovieClip {aacplayer_fla.autoFalante_4}Uses:83Used by:Timeline
Symbol 85 GraphicUsed by:86
Symbol 86 MovieClip {mask_s}Uses:85Used by:Timeline
Symbol 87 BitmapUsed by:88
Symbol 88 GraphicUses:87Used by:Timeline
Symbol 89 BitmapUsed by:90
Symbol 90 GraphicUses:89Used by:Timeline
Symbol 91 GraphicUsed by:94
Symbol 92 GraphicUsed by:93
Symbol 93 MovieClipUses:92Used by:94
Symbol 94 MovieClipUses:91 93Used by:Timeline
Symbol 95 FontUsed by:96
Symbol 96 EditableTextUses:95Used by:Timeline
Symbol 97 EditableTextUses:3Used by:Timeline
Symbol 98 GraphicUsed by:Timeline
Symbol 99 GraphicUsed by:Timeline
Symbol 100 MovieClipUsed by:Timeline
Symbol 101 EditableTextUses:3Used by:Timeline
Symbol 102 EditableTextUses:3Used by:103
Symbol 103 MovieClipUses:102Used by:Timeline
Symbol 104 EditableTextUses:3Used by:Timeline
Symbol 105 EditableTextUses:3Used by:Timeline
Symbol 106 GraphicUsed by:107
Symbol 107 MovieClipUses:106Used by:112
Symbol 108 GraphicUsed by:112
Symbol 109 GraphicUsed by:112
Symbol 110 GraphicUsed by:111
Symbol 111 MovieClipUses:110Used by:112
Symbol 112 MovieClipUses:107 108 109 111Used by:Timeline
Symbol 113 GraphicUsed by:114
Symbol 114 MovieClipUses:113Used by:117
Symbol 115 BitmapUsed by:116
Symbol 116 GraphicUses:115Used by:117
Symbol 117 MovieClipUses:114 116Used by:118
Symbol 118 MovieClipUses:117Used by:Timeline
Symbol 119 GraphicUsed by:120
Symbol 120 MovieClipUses:119Used by:Timeline
Symbol 121 GraphicUsed by:122 125 126
Symbol 122 MovieClipUses:121Used by:Timeline
Symbol 123 GraphicUsed by:124
Symbol 124 MovieClipUses:123Used by:Timeline
Symbol 125 MovieClipUses:121Used by:Timeline
Symbol 126 MovieClipUses:121Used by:Timeline
Symbol 127 GraphicUsed by:128 129 130 131
Symbol 128 MovieClipUses:127Used by:Timeline
Symbol 129 MovieClipUses:127Used by:Timeline
Symbol 130 MovieClipUses:127Used by:Timeline
Symbol 131 MovieClipUses:127Used by:Timeline
Symbol 132 GraphicUsed by:Timeline

Instance Names

"videohandle"Frame 1Symbol 94 MovieClip
"mask_s"Frame 1Symbol 86 MovieClip {mask_s}
"metaDataText"Frame 1Symbol 96 EditableText
"stationName"Frame 1Symbol 97 EditableText
"altavoz"Frame 1Symbol 69 MovieClip {autavoz}
"altavoz1"Frame 1Symbol 68 MovieClip {autavoz1}
"altavoz2"Frame 1Symbol 67 MovieClip {autavoz2}
"altavoz3"Frame 1Symbol 66 MovieClip {autavoz3}
"infotab"Frame 1Symbol 60 MovieClip {InfoTab}
"logom"Frame 1Symbol 100 MovieClip
"livestatus"Frame 1Symbol 101 EditableText
"maskClip"Frame 1Symbol 55 MovieClip {maskClip}
"nowPlayingScroller"Frame 1Symbol 103 MovieClip
"labletxt"Frame 1Symbol 104 EditableText
"sCaption"Frame 1Symbol 105 EditableText
"btnPlayPause"Frame 1Symbol 30 MovieClip {aacplayer_fla.btnPlayPause_47}
"btnStop"Frame 1Symbol 27 MovieClip {aacplayer_fla.btnStop_49}
"icontw"Frame 1Symbol 120 MovieClip
"iconmail"Frame 1Symbol 122 MovieClip
"iconfb"Frame 1Symbol 124 MovieClip
"iconandroid"Frame 1Symbol 125 MovieClip
"iconmidiaplayer"Frame 1Symbol 126 MovieClip
"iconquick"Frame 1Symbol 128 MovieClip
"iconreal"Frame 1Symbol 129 MovieClip
"iconwinamp"Frame 1Symbol 130 MovieClip
"iconmidia"Frame 1Symbol 131 MovieClip
"controle"Frame 1Symbol 18 MovieClip {Controle}
"boundingBox_mc"Symbol 8 MovieClip {fl.video.FLVPlayback} Frame 1Symbol 7 MovieClip
"slider_mc"Symbol 12 MovieClip {Radio_1_fla.base_24} Frame 1Symbol 11 MovieClip
"track_mc"Symbol 13 MovieClip {Radio_1_fla.connect_18} Frame 1Symbol 12 MovieClip {Radio_1_fla.base_24}
"BarVolume"Symbol 18 MovieClip {Controle} Frame 1Symbol 15 MovieClip
"DragVolume"Symbol 18 MovieClip {Controle} Frame 1Symbol 17 MovieClip
"arm"Symbol 51 MovieClip {aacplayer_fla.analogvu_4} Frame 1Symbol 50 MovieClip
"arm"Symbol 52 MovieClip {aacplayer_fla.analogvu_2} Frame 1Symbol 50 MovieClip
"vumeter_right"Symbol 53 MovieClip {AnalogVu} Frame 1Symbol 52 MovieClip {aacplayer_fla.analogvu_2}
"vumeter_left"Symbol 53 MovieClip {AnalogVu} Frame 1Symbol 51 MovieClip {aacplayer_fla.analogvu_4}
"Station"Symbol 60 MovieClip {InfoTab} Frame 1Symbol 56 EditableText
"Bitrate"Symbol 60 MovieClip {InfoTab} Frame 1Symbol 57 EditableText
"Disconnection"Symbol 60 MovieClip {InfoTab} Frame 1Symbol 58 EditableText
"Listeners"Symbol 60 MovieClip {InfoTab} Frame 1Symbol 59 EditableText
"color_mc"Symbol 65 MovieClip Frame 1Symbol 62 MovieClip
"vibra"Symbol 66 MovieClip {autavoz3} Frame 1Symbol 65 MovieClip
"vibra"Symbol 67 MovieClip {autavoz2} Frame 1Symbol 65 MovieClip
"vibra"Symbol 68 MovieClip {autavoz1} Frame 1Symbol 65 MovieClip
"vibra"Symbol 69 MovieClip {autavoz} Frame 1Symbol 65 MovieClip
"spectrum"Symbol 74 MovieClip {aacplayer_fla.blue_spectrum_10} Frame 1Symbol 71 MovieClip
"spectrumHit"Symbol 74 MovieClip {aacplayer_fla.blue_spectrum_10} Frame 1Symbol 73 MovieClip
"autoLeft"Symbol 84 MovieClip {aacplayer_fla.autoFalante_4} Frame 1Symbol 83 MovieClip
"vid"Symbol 94 MovieClip Frame 1Symbol 93 MovieClip
"nowPlaying"Symbol 103 MovieClip Frame 1Symbol 102 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.




http://swfchan.com/43/210118/info.shtml
Created: 8/10 -2018 11:30:00 Last modified: 8/10 -2018 11:30:00 Server time: 14/11 -2024 06:50:38