Section 1
//PropTween (com.greensock.core.PropTween)
package com.greensock.core {
public final class PropTween {
public var start:Number;
public var name:String;
public var prevNode:PropTween;
public var change:Number;
public var target:Object;
public var priority:int;
public var property:String;
public var nextNode:PropTween;
public var isPlugin:Boolean;
public function PropTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean, _arg7:PropTween=null, _arg8:int=0){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
if (_arg7){
_arg7.prevNode = this;
this.nextNode = _arg7;
};
this.priority = _arg8;
}
}
}//package com.greensock.core
Section 2
//SimpleTimeline (com.greensock.core.SimpleTimeline)
package com.greensock.core {
public class SimpleTimeline extends TweenCore {
public var autoRemoveChildren:Boolean;
protected var _lastChild:TweenCore;
protected var _firstChild:TweenCore;
public function SimpleTimeline(_arg1:Object=null){
super(0, _arg1);
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:TweenCore;
var _local5:Number;
var _local6:TweenCore;
_local4 = _firstChild;
this.cachedTotalTime = _arg1;
this.cachedTime = _arg1;
while (_local4) {
_local6 = _local4.nextNode;
if (((_local4.active) || ((((((_arg1 >= _local4.cachedStartTime)) && (!(_local4.cachedPaused)))) && (!(_local4.gc)))))){
if (!_local4.cachedReversed){
_local4.renderTime(((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale), _arg2, false);
} else {
_local5 = (_local4.cacheIsDirty) ? _local4.totalDuration : _local4.cachedTotalDuration;
_local4.renderTime((_local5 - ((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale)), _arg2, false);
};
};
_local4 = _local6;
};
}
public function get rawTime():Number{
return (this.cachedTotalTime);
}
public function remove(_arg1:TweenCore, _arg2:Boolean=false):void{
if (_arg1.cachedOrphan){
return;
};
if (!_arg2){
_arg1.setEnabled(false, true);
};
if (_arg1.nextNode){
_arg1.nextNode.prevNode = _arg1.prevNode;
} else {
if (_lastChild == _arg1){
_lastChild = _arg1.prevNode;
};
};
if (_arg1.prevNode){
_arg1.prevNode.nextNode = _arg1.nextNode;
} else {
if (_firstChild == _arg1){
_firstChild = _arg1.nextNode;
};
};
_arg1.cachedOrphan = true;
}
public function insert(_arg1:TweenCore, _arg2=0):TweenCore{
var _local3:SimpleTimeline;
_local3 = _arg1.timeline;
if (((!(_arg1.cachedOrphan)) && (_local3))){
_local3.remove(_arg1, true);
};
_arg1.timeline = this;
_arg1.cachedStartTime = (Number(_arg2) + _arg1.delay);
if (_arg1.gc){
_arg1.setEnabled(true, true);
};
if (((_arg1.cachedPaused) && (!((_local3 == this))))){
_arg1.cachedPauseTime = (_arg1.cachedStartTime + ((this.rawTime - _arg1.cachedStartTime) / _arg1.cachedTimeScale));
};
if (_lastChild){
_lastChild.nextNode = _arg1;
} else {
_firstChild = _arg1;
};
_arg1.prevNode = _lastChild;
_lastChild = _arg1;
_arg1.nextNode = null;
_arg1.cachedOrphan = false;
return (_arg1);
}
}
}//package com.greensock.core
Section 3
//TweenCore (com.greensock.core.TweenCore)
package com.greensock.core {
import com.greensock.*;
public class TweenCore {
public var initted:Boolean;
protected var _hasUpdate:Boolean;
public var active:Boolean;
protected var _delay:Number;
public var cachedReversed:Boolean;
public var nextNode:TweenCore;
public var cachedTime:Number;
protected var _rawPrevTime:Number;// = -1
public var vars:Object;
public var cachedTotalTime:Number;
public var data;
public var timeline:SimpleTimeline;
public var cachedOrphan:Boolean;
public var cachedStartTime:Number;
public var prevNode:TweenCore;
public var cachedDuration:Number;
public var gc:Boolean;
public var cachedPauseTime:Number;
public var cacheIsDirty:Boolean;
public var cachedPaused:Boolean;
public var cachedTimeScale:Number;
public var cachedTotalDuration:Number;
public static const version:Number = 1.693;
protected static var _classInitted:Boolean;
public function TweenCore(_arg1:Number=0, _arg2:Object=null){
var _local3:SimpleTimeline;
_rawPrevTime = -1;
super();
this.vars = ((_arg2)!=null) ? _arg2 : {};
if (this.vars.isGSVars){
this.vars = this.vars.vars;
};
this.cachedDuration = (this.cachedTotalDuration = _arg1);
_delay = (this.vars.delay) ? Number(this.vars.delay) : 0;
this.cachedTimeScale = (this.vars.timeScale) ? Number(this.vars.timeScale) : 1;
this.active = Boolean((((((_arg1 == 0)) && ((_delay == 0)))) && (!((this.vars.immediateRender == false)))));
this.cachedTotalTime = (this.cachedTime = 0);
this.data = this.vars.data;
if (!_classInitted){
if (isNaN(TweenLite.rootFrame)){
TweenLite.initClass();
_classInitted = true;
} else {
return;
};
};
_local3 = ((this.vars.timeline is SimpleTimeline)) ? this.vars.timeline : (this.vars.useFrames) ? TweenLite.rootFramesTimeline : TweenLite.rootTimeline;
_local3.insert(this, _local3.cachedTotalTime);
if (this.vars.reversed){
this.cachedReversed = true;
};
if (this.vars.paused){
this.paused = true;
};
}
public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
}
public function get delay():Number{
return (_delay);
}
public function get duration():Number{
return (this.cachedDuration);
}
public function set reversed(_arg1:Boolean):void{
if (_arg1 != this.cachedReversed){
this.cachedReversed = _arg1;
setTotalTime(this.cachedTotalTime, true);
};
}
public function set startTime(_arg1:Number):void{
if (((!((this.timeline == null))) && (((!((_arg1 == this.cachedStartTime))) || (this.gc))))){
this.timeline.insert(this, (_arg1 - _delay));
} else {
this.cachedStartTime = _arg1;
};
}
public function set delay(_arg1:Number):void{
this.startTime = (this.startTime + (_arg1 - _delay));
_delay = _arg1;
}
public function resume():void{
this.paused = false;
}
public function get paused():Boolean{
return (this.cachedPaused);
}
public function play():void{
this.reversed = false;
this.paused = false;
}
public function set duration(_arg1:Number):void{
var _local2:Number;
_local2 = (_arg1 / this.cachedDuration);
this.cachedDuration = (this.cachedTotalDuration = _arg1);
setDirtyCache(true);
if (((((this.active) && (!(this.cachedPaused)))) && (!((_arg1 == 0))))){
this.setTotalTime((this.cachedTotalTime * _local2), true);
};
}
public function invalidate():void{
}
public function restart(_arg1:Boolean=false, _arg2:Boolean=true):void{
this.reversed = false;
this.paused = false;
this.setTotalTime((_arg1) ? -(_delay) : 0, _arg2);
}
public function complete(_arg1:Boolean=false, _arg2:Boolean=false):void{
if (!_arg1){
renderTime(this.totalDuration, _arg2, false);
return;
};
if (this.timeline.autoRemoveChildren){
this.setEnabled(false, false);
} else {
this.active = false;
};
if (!_arg2){
if (((((this.vars.onComplete) && ((this.cachedTotalTime >= this.cachedTotalDuration)))) && (!(this.cachedReversed)))){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
} else {
if (((((this.cachedReversed) && ((this.cachedTotalTime == 0)))) && (this.vars.onReverseComplete))){
this.vars.onReverseComplete.apply(null, this.vars.onReverseCompleteParams);
};
};
};
}
public function get totalTime():Number{
return (this.cachedTotalTime);
}
public function get startTime():Number{
return (this.cachedStartTime);
}
public function get reversed():Boolean{
return (this.cachedReversed);
}
public function set currentTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
protected function setDirtyCache(_arg1:Boolean=true):void{
var _local2:TweenCore;
_local2 = (_arg1) ? this : this.timeline;
while (_local2) {
_local2.cacheIsDirty = true;
_local2 = _local2.timeline;
};
}
public function reverse(_arg1:Boolean=true):void{
this.reversed = true;
if (_arg1){
this.paused = false;
} else {
if (this.gc){
this.setEnabled(true, false);
};
};
}
public function set paused(_arg1:Boolean):void{
if (((!((_arg1 == this.cachedPaused))) && (this.timeline))){
if (_arg1){
this.cachedPauseTime = this.timeline.rawTime;
} else {
this.cachedStartTime = (this.cachedStartTime + (this.timeline.rawTime - this.cachedPauseTime));
this.cachedPauseTime = NaN;
setDirtyCache(false);
};
this.cachedPaused = _arg1;
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
};
if (((!(_arg1)) && (this.gc))){
this.setEnabled(true, false);
};
}
public function kill():void{
setEnabled(false, false);
}
public function set totalTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
public function get currentTime():Number{
return (this.cachedTime);
}
protected function setTotalTime(_arg1:Number, _arg2:Boolean=false):void{
var _local3:Number;
var _local4:Number;
if (this.timeline){
_local3 = (this.cachedPaused) ? this.cachedPauseTime : this.timeline.cachedTotalTime;
if (this.cachedReversed){
_local4 = (this.cacheIsDirty) ? this.totalDuration : this.cachedTotalDuration;
this.cachedStartTime = (_local3 - ((_local4 - _arg1) / this.cachedTimeScale));
} else {
this.cachedStartTime = (_local3 - (_arg1 / this.cachedTimeScale));
};
if (!this.timeline.cacheIsDirty){
setDirtyCache(false);
};
if (this.cachedTotalTime != _arg1){
renderTime(_arg1, _arg2, false);
};
};
}
public function pause():void{
this.paused = true;
}
public function set totalDuration(_arg1:Number):void{
this.duration = _arg1;
}
public function get totalDuration():Number{
return (this.cachedTotalDuration);
}
public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
this.gc = !(_arg1);
if (_arg1){
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
if (((!(_arg2)) && (this.cachedOrphan))){
this.timeline.insert(this, (this.cachedStartTime - _delay));
};
} else {
this.active = false;
if (((!(_arg2)) && (!(this.cachedOrphan)))){
this.timeline.remove(this, true);
};
};
return (false);
}
}
}//package com.greensock.core
Section 4
//Cubic (com.greensock.easing.Cubic)
package com.greensock.easing {
public class Cubic {
public static const power:uint = 2;
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 * 0.5));
if (_arg1 < 1){
return ((((((_arg3 * 0.5) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 * 0.5) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2));
}
}
}//package com.greensock.easing
Section 5
//Strong (com.greensock.easing.Strong)
package com.greensock.easing {
public class Strong {
public static const power:uint = 4;
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 * 0.5));
if (_arg1 < 1){
return ((((((((_arg3 * 0.5) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 * 0.5) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
}
}//package com.greensock.easing
Section 6
//TweenLite (com.greensock.TweenLite)
package com.greensock {
import com.greensock.core.*;
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import com.greensock.plugins.*;
public class TweenLite extends TweenCore {
public var target:Object;
public var ratio:Number;// = 0
protected var _overwrite:int;
protected var _notifyPluginsOfEnabled:Boolean;
protected var _hasPlugins:Boolean;
public var cachedPT1:PropTween;
protected var _overwrittenProps:Object;
public var propTweenLookup:Object;
protected var _ease:Function;
public static const version:Number = 11.698;
public static var rootTimeline:SimpleTimeline;
public static var fastEaseLookup:Dictionary = new Dictionary(false);
public static var onPluginEvent:Function;
public static var rootFramesTimeline:SimpleTimeline;
public static var defaultEase:Function = TweenLite.easeOut;
public static var plugins:Object = {};
public static var masterList:Dictionary = new Dictionary(false);
public static var overwriteManager:Object;
public static var rootFrame:Number;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
private static var _shape:Shape = new Shape();
protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, useFrames:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, onStart:1, onStartParams:1, onInit:1, onInitParams:1, onReverseComplete:1, onReverseCompleteParams:1, onRepeat:1, onRepeatParams:1, proxiedEase:1, easeParams:1, yoyo:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, onReverseCompleteListener:1, onRepeatListener:1, orientToBezier:1, timeScale:1, immediateRender:1, repeat:1, repeatDelay:1, timeline:1, data:1, paused:1, reversed:1};
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local4:Array;
var _local5:TweenLite;
ratio = 0;
super(_arg2, _arg3);
if (_arg1 == null){
throw (new Error("Cannot tween a null object."));
};
this.target = _arg1;
if ((((this.target is TweenCore)) && (this.vars.timeScale))){
this.cachedTimeScale = 1;
};
propTweenLookup = {};
_ease = defaultEase;
_overwrite = (((!((Number(_arg3.overwrite) > -1))) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
_local4 = masterList[_arg1];
if (!_local4){
masterList[_arg1] = [this];
} else {
if (_overwrite == 1){
for each (_local5 in _local4) {
if (!_local5.gc){
_local5.setEnabled(false, false);
};
};
masterList[_arg1] = [this];
} else {
_local4[_local4.length] = this;
};
};
if (((this.active) || (this.vars.immediateRender))){
renderTime(0, false, true);
};
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:Boolean;
var _local5:Number;
var _local6:PropTween;
_local5 = this.cachedTime;
if (_arg1 >= this.cachedDuration){
this.cachedTotalTime = (this.cachedTime = this.cachedDuration);
this.ratio = 1;
_local4 = !(this.cachedReversed);
if (this.cachedDuration == 0){
if ((((((_arg1 == 0)) || ((_rawPrevTime < 0)))) && (!((_rawPrevTime == _arg1))))){
_arg3 = true;
};
_rawPrevTime = _arg1;
};
} else {
if (_arg1 <= 0){
this.cachedTotalTime = (this.cachedTime = (this.ratio = 0));
if (_arg1 < 0){
this.active = false;
if (this.cachedDuration == 0){
if (_rawPrevTime >= 0){
_arg3 = true;
_local4 = (_rawPrevTime > 0);
};
_rawPrevTime = _arg1;
};
};
if (((this.cachedReversed) && (!((_local5 == 0))))){
_local4 = true;
};
} else {
this.cachedTotalTime = (this.cachedTime = _arg1);
this.ratio = _ease(_arg1, 0, 1, this.cachedDuration);
};
};
if ((((this.cachedTime == _local5)) && (!(_arg3)))){
return;
};
if (!this.initted){
init();
if (((!(_local4)) && (this.cachedTime))){
this.ratio = _ease(this.cachedTime, 0, 1, this.cachedDuration);
};
};
if (((!(this.active)) && (!(this.cachedPaused)))){
this.active = true;
};
if ((((((((_local5 == 0)) && (this.vars.onStart))) && (((!((this.cachedTime == 0))) || ((this.cachedDuration == 0)))))) && (!(_arg2)))){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
_local6 = this.cachedPT1;
while (_local6) {
_local6.target[_local6.property] = (_local6.start + (this.ratio * _local6.change));
_local6 = _local6.nextNode;
};
if (((_hasUpdate) && (!(_arg2)))){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (((_local4) && (!(this.gc)))){
if (((_hasPlugins) && (this.cachedPT1))){
onPluginEvent("onComplete", this);
};
complete(true, _arg2);
};
}
protected function init():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:Boolean;
var _local5:Array;
var _local6:PropTween;
if (this.vars.onInit){
this.vars.onInit.apply(null, this.vars.onInitParams);
};
if (typeof(this.vars.ease) == "function"){
_ease = this.vars.ease;
};
if (this.vars.easeParams){
this.vars.proxiedEase = _ease;
_ease = easeProxy;
};
this.cachedPT1 = null;
this.propTweenLookup = {};
for (_local1 in this.vars) {
if ((((_local1 in _reservedProps)) && (!((((_local1 == "timeScale")) && ((this.target is TweenCore))))))){
} else {
if ((((_local1 in plugins)) && (new ((plugins[_local1] as Class)).onInitTween(this.target, this.vars[_local1], this)))){
this.cachedPT1 = new PropTween(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true, this.cachedPT1);
if (this.cachedPT1.name == "_MULTIPLE_"){
_local2 = _local3.overwriteProps.length;
while (--_local2 > -1) {
this.propTweenLookup[_local3.overwriteProps[_local2]] = this.cachedPT1;
};
} else {
this.propTweenLookup[this.cachedPT1.name] = this.cachedPT1;
};
if (_local3.priority){
this.cachedPT1.priority = _local3.priority;
_local4 = true;
};
if (((_local3.onDisable) || (_local3.onEnable))){
_notifyPluginsOfEnabled = true;
};
_hasPlugins = true;
} else {
this.cachedPT1 = new PropTween(this.target, _local1, Number(this.target[_local1]), ((typeof(this.vars[_local1]))=="number") ? (Number(this.vars[_local1]) - this.target[_local1]) : Number(this.vars[_local1]), _local1, false, this.cachedPT1);
this.propTweenLookup[_local1] = this.cachedPT1;
};
};
};
if (_local4){
onPluginEvent("onInitAllProps", this);
};
if (this.vars.runBackwards){
_local6 = this.cachedPT1;
while (_local6) {
_local6.start = (_local6.start + _local6.change);
_local6.change = -(_local6.change);
_local6 = _local6.nextNode;
};
};
_hasUpdate = Boolean(!((this.vars.onUpdate == null)));
if (_overwrittenProps){
killVars(_overwrittenProps);
if (this.cachedPT1 == null){
this.setEnabled(false, false);
};
};
if ((((((((_overwrite > 1)) && (this.cachedPT1))) && (masterList[this.target]))) && ((_local5.length > 1)))){
if (overwriteManager.manageOverwrites(this, this.propTweenLookup, _local5, _overwrite)){
init();
};
};
this.initted = true;
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
override public function invalidate():void{
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
onPluginEvent("onDisable", this);
};
this.cachedPT1 = null;
_overwrittenProps = null;
_hasUpdate = (this.initted = (this.active = (_notifyPluginsOfEnabled = false)));
this.propTweenLookup = {};
}
public function killVars(_arg1:Object, _arg2:Boolean=true):Boolean{
var _local3:String;
var _local4:PropTween;
var _local5:Boolean;
if (_overwrittenProps == null){
_overwrittenProps = {};
};
for (_local3 in _arg1) {
if ((_local3 in propTweenLookup)){
_local4 = propTweenLookup[_local3];
if (((_local4.isPlugin) && ((_local4.name == "_MULTIPLE_")))){
_local4.target.killProps(_arg1);
if (_local4.target.overwriteProps.length == 0){
_local4.name = "";
};
if (((!((_local3 == _local4.target.propName))) || ((_local4.name == "")))){
delete propTweenLookup[_local3];
};
};
if (_local4.name != "_MULTIPLE_"){
if (_local4.nextNode){
_local4.nextNode.prevNode = _local4.prevNode;
};
if (_local4.prevNode){
_local4.prevNode.nextNode = _local4.nextNode;
} else {
if (this.cachedPT1 == _local4){
this.cachedPT1 = _local4.nextNode;
};
};
if (((_local4.isPlugin) && (_local4.target.onDisable))){
_local4.target.onDisable();
if (_local4.target.activeDisable){
_local5 = true;
};
};
delete propTweenLookup[_local3];
};
};
if (((_arg2) && (!((_arg1 == _overwrittenProps))))){
_overwrittenProps[_local3] = 1;
};
};
return (_local5);
}
override public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
var _local3:Array;
if (_arg1){
_local3 = TweenLite.masterList[this.target];
if (!_local3){
TweenLite.masterList[this.target] = [this];
} else {
if (_local3.indexOf(this) == -1){
_local3[_local3.length] = this;
};
};
};
super.setEnabled(_arg1, _arg2);
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
return (onPluginEvent((_arg1) ? "onEnable" : "onDisable", this));
};
return (false);
}
public static function initClass():void{
rootFrame = 0;
rootTimeline = new SimpleTimeline(null);
rootFramesTimeline = new SimpleTimeline(null);
rootTimeline.cachedStartTime = (getTimer() * 0.001);
rootFramesTimeline.cachedStartTime = rootFrame;
rootTimeline.autoRemoveChildren = true;
rootFramesTimeline.autoRemoveChildren = true;
_shape.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
}
public static function killTweensOf(_arg1:Object, _arg2:Boolean=false, _arg3:Object=null):void{
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
if ((_arg1 in masterList)){
_local4 = masterList[_arg1];
_local5 = _local4.length;
while (--_local5 > -1) {
_local6 = _local4[_local5];
if (!_local6.gc){
if (_arg2){
_local6.complete(false, false);
};
if (_arg3 != null){
_local6.killVars(_arg3);
};
if ((((_arg3 == null)) || ((((_local6.cachedPT1 == null)) && (_local6.initted))))){
_local6.setEnabled(false, false);
};
};
};
if (_arg3 == null){
delete masterList[_arg1];
};
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
if (_arg3.isGSVars){
_arg3 = _arg3.vars;
};
_arg3.runBackwards = true;
if (!("immediateRender" in _arg3)){
_arg3.immediateRender = true;
};
return (new TweenLite(_arg1, _arg2, _arg3));
}
protected static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (1 - (_arg1 / _arg4));
return ((1 - (_arg1 * _arg1)));
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, immediateRender:false, useFrames:_arg4, overwrite:0}));
}
protected static function updateAll(_arg1:Event=null):void{
var _local2:Dictionary;
var _local3:Object;
var _local4:Array;
var _local5:int;
rootTimeline.renderTime((((getTimer() * 0.001) - rootTimeline.cachedStartTime) * rootTimeline.cachedTimeScale), false, false);
rootFrame = (rootFrame + 1);
rootFramesTimeline.renderTime(((rootFrame - rootFramesTimeline.cachedStartTime) * rootFramesTimeline.cachedTimeScale), false, false);
if (!(rootFrame % 60)){
_local2 = masterList;
for (_local3 in _local2) {
_local4 = _local2[_local3];
_local5 = _local4.length;
while (--_local5 > -1) {
if (TweenLite(_local4[_local5]).gc){
_local4.splice(_local5, 1);
};
};
if (_local4.length == 0){
delete _local2[_local3];
};
};
};
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package com.greensock
Section 7
//_LOADER_star_2 (horizcomicviewer_fla._LOADER_star_2)
package horizcomicviewer_fla {
import flash.display.*;
public dynamic class _LOADER_star_2 extends MovieClip {
public function _LOADER_star_2(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
rotation = (rotation + (1 + (Math.random() * 0.4)));
}
function frame2(){
rotation = (rotation + (1 + (Math.random() * 0.4)));
}
}
}//package horizcomicviewer_fla
Section 8
//MainTimeline (horizcomicviewer_fla.MainTimeline)
package horizcomicviewer_fla {
import com.greensock.*;
import flash.events.*;
import com.greensock.easing.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var moment;
public var mature;
public var arrayindex;
public var loadermain:loadMain;
public var option1:ContextMenuItem;
public var option2:ContextMenuItem;
public var option4:ContextMenuItem;
public var option3:ContextMenuItem;
public var markerholder:MovieClip;
public var h;
public var i;
public var newpanel:Base;
public var w;
public var arrowvar;
public var hint:MovieClip;
public var temptile:BGtile;
public var mousefollow:MovieClip;
public var centerH;
public var maxtiles;
public var centerW;
public var nextbut:MovieClip;
public var customWidth;
public var tilearr:Array;
public var urlcheck:URLLoader;
public var quality;
public var currpanel;
public var markertemp:Marker;
public var scrollmc:MovieClip;
public var mham;
public var companel:Base;
public var leveled;
public var debugtxt:TextField;
public var hidetimer:MovieClip;
public var loadermainvar:loadMain;
public var maxlength;
public var prevbut:MovieClip;
public var url;
public var comicclicked;
public var customContextMenu:ContextMenu;
public var loaderbg:BGtile;
public var comicplace;
public var maturemc:MovieClip;
public var mh;
public var buttoncover:MovieClip;
public var comicmask:MovieClip;
public var savemc:MovieClip;
public var comicholder:MovieClip;
public var customHeight;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2);
}
public function option3down(_arg1:ContextMenuEvent):void{
stage.quality = "MEDIUM";
}
public function markerover(_arg1:MouseEvent):void{
_arg1.currentTarget.gotoAndStop(2);
}
public function saveclick(_arg1:MouseEvent){
navigateToURL(url, "_blank");
}
public function comicup(_arg1:MouseEvent):void{
moment = (mouseX - mousefollow.x);
comicclicked = false;
}
public function nextac():void{
nextbut.mouseEnabled = true;
nextbut.mouseChildren = true;
TweenLite.to(nextbut, 0.5, {alpha:1});
}
function frame2(){
url = new URLRequest("https://dl.dropboxusercontent.com/s/wo3ng3c7i28fxqw/kiba%20rune%20dog%20pt%202%20copy.png?dl=1&token_hash=AAEOhU-cMieHuXmiyLBKHkXaUdmoUT-dCbovBIA7Y9bP4g");
mature = "-Blood\n-Gore";
scrollmc.mouseEnabled = false;
comicmask.y = 0;
comicholder.mask = comicmask;
prevbut.buttonMode = true;
nextbut.buttonMode = true;
mousefollow.visible = false;
debugtxt.visible = false;
companel = new Base();
companel.x = 0;
companel.y = 0;
companel.intxt.visible = false;
comicholder.addChild(companel);
maturemc.mouseEnabled = false;
maturemc.mouseChildren = false;
if (mature != ""){
maturemc.intxt.text = ("Contains:\n" + mature);
} else {
maturemc.alpha = 0;
};
stage.addEventListener(MouseEvent.MOUSE_DOWN, hidemature);
maxtiles = (Math.ceil(companel.incomic.height) / 400);
maxlength = ((maxtiles * 400) + 50);
moment = 0;
leveled = true;
i = 0;
while (i < maxtiles) {
newpanel = new Base();
newpanel.x = ((comicholder.x + 400) + (i * 400));
newpanel.y = 0;
newpanel.incomic.y = (-400 - (i * 400));
newpanel.intxt.text = ((("Y: " + newpanel.y) + " Y: ") + newpanel.incomic.y);
newpanel.intxt.visible = false;
comicholder.addChild(newpanel);
i++;
};
comicclicked = false;
comicplace = 0;
comicholder.addEventListener(MouseEvent.MOUSE_DOWN, comicdown);
comicholder.addEventListener(MouseEvent.MOUSE_UP, comicup);
stage.addEventListener(MouseEvent.MOUSE_OUT, comicout);
comicholder.addEventListener(Event.ENTER_FRAME, comicupdate);
arrowvar = 0;
currpanel = 0;
nextbut.addEventListener(MouseEvent.CLICK, nextclick);
prevbut.addEventListener(MouseEvent.CLICK, prevclick);
prevde();
mham = (600 / (maxtiles - 2));
mh = 0;
while (mh < maxtiles) {
markertemp = new Marker();
markertemp.markernum = mh;
markertemp.x = (mh * mham);
markertemp.buttonMode = true;
markertemp.y = 25;
markertemp.addEventListener(MouseEvent.MOUSE_OVER, markerover);
markertemp.addEventListener(MouseEvent.MOUSE_OUT, markerout);
markertemp.addEventListener(MouseEvent.CLICK, markerclick);
if (markertemp.x <= 601){
markerholder.addChild(markertemp);
};
mh++;
};
hint.mouseEnabled = false;
hint.mouseChildren = false;
hint.alpha = 0;
savemc.buttonMode = true;
if (url == ""){
savemc.gotoAndStop(3);
};
urlcheck = new URLLoader(url);
urlcheck.addEventListener(IOErrorEvent.IO_ERROR, notfound);
savemc.addEventListener(MouseEvent.MOUSE_OVER, saveover);
savemc.addEventListener(MouseEvent.MOUSE_OUT, saveout);
savemc.addEventListener(MouseEvent.CLICK, saveclick);
stage.addEventListener(KeyboardEvent.KEY_UP, keypress);
buttoncover.mouseEnabled = false;
buttoncover.y = 425;
buttoncover.alpha = 0;
hidetimer.visible = false;
stage.addEventListener(MouseEvent.MOUSE_MOVE, stageover);
}
public function nextclick(_arg1:MouseEvent):void{
nextbut.arrowbg.gotoAndPlay(1);
arrowvar = -2;
arrowmove();
}
function frame1(){
stop();
quality = false;
customWidth = 800;
customHeight = 450;
if (customWidth == 0){
customWidth = stage.stageWidth;
};
if (customHeight == 0){
customHeight = stage.stageHeight;
};
centerW = (customWidth / 2);
centerH = (customHeight / 2);
loadermain.x = centerW;
loadermain.y = centerH;
tilearr = new Array();
arrayindex = 0;
w = 0;
while (w < (customWidth / 100)) {
h = 0;
while (h < (customHeight / 100)) {
temptile = new BGtile();
temptile.x = (50 + (100 * w));
temptile.y = (50 + (100 * h));
tilearr[arrayindex] = stage.addChild(temptile);
arrayindex++;
h++;
};
w++;
};
loadermainvar = new loadMain();
loadermainvar.stop();
loadermainvar.x = centerW;
loadermainvar.y = centerH;
loadermainvar.scaleX = 0.7;
loadermainvar.scaleY = loadermainvar.scaleX;
loadermainvar.playbut.visible = false;
loadermainvar.playbut.addEventListener(MouseEvent.CLICK, playclick);
stage.addChild(loadermainvar);
loadermainvar.addEventListener(Event.ENTER_FRAME, loaderupdate);
loaderbg.visible = false;
loadermain.visible = false;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP;
option1 = new ContextMenuItem("Made by Kei");
option2 = new ContextMenuItem("Quality = Low");
option3 = new ContextMenuItem("Quality = Medium");
option4 = new ContextMenuItem("Quality = High");
option1.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, option1down);
option2.separatorBefore = true;
option2.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, option2down);
option3.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, option3down);
option4.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, option4down);
customContextMenu = new ContextMenu();
customContextMenu.hideBuiltInItems();
customContextMenu.customItems.push(option1, option2, option3, option4);
this.contextMenu = customContextMenu;
if (!quality){
option2.enabled = false;
option3.enabled = false;
option4.enabled = false;
};
}
public function option2down(_arg1:ContextMenuEvent):void{
stage.quality = "LOW";
}
public function levelbut():void{
currpanel = Math.round((comicholder.x / 400));
arrowvar = 0;
arrowcheck();
}
public function notfound(_arg1:IOErrorEvent):void{
savemc.gotoAndStop(3);
}
public function arrowcheck():void{
nextac();
prevac();
if (currpanel >= 0){
currpanel = 0;
prevde();
};
if (currpanel <= ((0 - maxtiles) + 2)){
currpanel = ((0 - maxtiles) + 2);
nextde();
};
}
public function loaderupdate(_arg1:Event):void{
_arg1.currentTarget.loadtxt.text = (("Loading..." + Math.round(((this.stage.loaderInfo.bytesLoaded / this.stage.loaderInfo.bytesTotal) * 100))) + "%");
if ((((this.stage.loaderInfo.bytesLoaded == this.stage.loaderInfo.bytesTotal)) || ((this.stage.loaderInfo.bytesTotal == 0)))){
loadermainvar.removeEventListener(Event.ENTER_FRAME, loaderupdate);
loadermainvar.play();
_arg1.currentTarget.loadtxt.text = "Loaded!";
};
}
public function saveout(_arg1:MouseEvent):void{
if (savemc.currentFrame != 3){
savemc.gotoAndStop(1);
};
TweenLite.to(hint, 0.5, {y:355, alpha:0});
}
public function nextde():void{
nextbut.mouseEnabled = false;
nextbut.mouseChildren = false;
TweenLite.to(nextbut, 0.5, {alpha:0.1});
}
public function deletemainload():void{
loadermainvar.parent.removeChild(loadermainvar);
}
public function playclick(_arg1:MouseEvent):void{
_arg1.currentTarget.removeEventListener(MouseEvent.CLICK, playclick);
completeload();
}
public function stageover(_arg1:MouseEvent):void{
Mouse.show();
hidetimer.y = 25;
hidetimer.killTweenOf;
TweenLite.to(buttoncover, 1, {alpha:0});
TweenLite.to(hidetimer, 4, {y:425, onComplete:hidebuttons});
}
public function markerout(_arg1:MouseEvent):void{
_arg1.currentTarget.gotoAndStop(1);
}
public function option1down(_arg1:ContextMenuEvent):void{
navigateToURL(new URLRequest("http://www.furaffinity.net/user/thatkeiguy/"));
}
public function comicupdate(_arg1:Event):void{
mousefollow.x = (mousefollow.x + ((mouseX - mousefollow.x) / 2));
moment = (moment / 1.09);
if (leveled){
moment = 0;
};
if ((((((Math.round(moment) == 0)) && ((comicclicked == false)))) && ((leveled == false)))){
levelcomic();
};
comicholder.x = (comicholder.x + moment);
if (comicclicked){
comicholder.x = (mouseX - comicplace);
};
if (comicholder.x > 50){
moment = 0;
comicclicked = false;
comicholder.x = 50;
};
if (comicholder.x < (800 - maxlength)){
moment = 0;
comicclicked = false;
comicholder.x = (800 - maxlength);
};
scrollmc.x = (75 + (600 * ((Math.abs(comicholder.x) / 400) / (maxtiles - 2))));
if (comicholder.x > 0){
scrollmc.x = 75;
};
if (comicholder.x < (800 - (maxtiles * 400))){
scrollmc.x = 675;
};
debugtxt.text = ((("" + currpanel) + " ") + arrowvar);
}
public function comicout(_arg1:MouseEvent):void{
if (comicclicked){
moment = (mouseX - mousefollow.x);
};
comicclicked = false;
}
public function prevclick(_arg1:MouseEvent):void{
prevbut.arrowbg.gotoAndPlay(1);
arrowvar = 2;
arrowmove();
}
public function keypress(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 39){
if (nextbut.mouseEnabled){
nextbut.dispatchEvent(new MouseEvent(MouseEvent.CLICK, true));
};
};
if (_arg1.keyCode == 37){
if (prevbut.mouseEnabled){
prevbut.dispatchEvent(new MouseEvent(MouseEvent.CLICK, true));
};
};
}
public function levelcomic():void{
leveled = true;
TweenLite.to(comicholder, 0.75, {x:(0 + (Math.round((comicholder.x / 400)) * 400)), ease:Strong.easeInOut, onComplete:levelbut});
moment = 0;
}
public function arrowmove():void{
nextde();
prevde();
currpanel = (currpanel + arrowvar);
if (currpanel >= 0){
currpanel = 0;
prevde();
};
if (currpanel <= ((0 - maxtiles) + 2)){
currpanel = ((0 - maxtiles) + 2);
nextde();
};
TweenLite.to(comicholder, 1.5, {x:(currpanel * 400), ease:Cubic.easeInOut, onComplete:arrowcheck});
}
public function option4down(_arg1:ContextMenuEvent):void{
stage.quality = "HIGH";
}
public function comicdown(_arg1:MouseEvent):void{
comicclicked = true;
leveled = false;
comicplace = (mouseX - comicholder.x);
TweenLite.killTweensOf(comicholder);
nextde();
prevde();
}
public function prevac():void{
prevbut.mouseEnabled = true;
prevbut.mouseChildren = true;
TweenLite.to(prevbut, 0.5, {alpha:1});
}
public function markerclick(_arg1:MouseEvent):void{
if (leveled){
arrowvar = 0;
currpanel = (_arg1.currentTarget.markernum * -1);
arrowmove();
};
}
public function completeload():void{
var _local1:*;
nextFrame();
_local1 = 0;
while (_local1 < arrayindex) {
TweenLite.to(tilearr[_local1], 0.5, {x:centerW, y:centerH, scaleX:0, scaleY:0, rotation:(Math.random() * 360), delay:(Math.random() * 1), easing:Strong.easeInOut});
tilearr[_local1].addEventListener(Event.ENTER_FRAME, tiledelete);
_local1++;
};
TweenLite.to(loadermainvar, 1, {alpha:0, onComplete:deletemainload});
}
public function hidemature(_arg1:MouseEvent):void{
TweenLite.to(maturemc, 1.5, {alpha:0});
stage.removeEventListener(MouseEvent.MOUSE_DOWN, hidemature);
}
public function saveover(_arg1:MouseEvent):void{
if (savemc.currentFrame != 3){
savemc.gotoAndStop(2);
};
TweenLite.to(hint, 0.5, {y:350, alpha:1});
}
public function tiledelete(_arg1:Event):void{
if (_arg1.currentTarget.scaleX <= 0.01){
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, tiledelete);
_arg1.currentTarget.parent.removeChild(_arg1.currentTarget);
};
}
public function prevde():void{
prevbut.mouseEnabled = false;
prevbut.mouseChildren = false;
TweenLite.to(prevbut, 0.5, {alpha:0.1});
}
public function hidebuttons():void{
TweenLite.to(buttoncover, 2, {alpha:1});
Mouse.hide();
}
}
}//package horizcomicviewer_fla
Section 9
//Symbol1_12 (horizcomicviewer_fla.Symbol1_12)
package horizcomicviewer_fla {
import flash.display.*;
public dynamic class Symbol1_12 extends MovieClip {
public var arrowbg:MovieClip;
}
}//package horizcomicviewer_fla
Section 10
//Symbol1_26 (horizcomicviewer_fla.Symbol1_26)
package horizcomicviewer_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Symbol1_26 extends MovieClip {
public var intxt:TextField;
}
}//package horizcomicviewer_fla
Section 11
//Symbol10_19 (horizcomicviewer_fla.Symbol10_19)
package horizcomicviewer_fla {
import flash.display.*;
public dynamic class Symbol10_19 extends MovieClip {
public function Symbol10_19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package horizcomicviewer_fla
Section 12
//Symbol5_13 (horizcomicviewer_fla.Symbol5_13)
package horizcomicviewer_fla {
import flash.display.*;
public dynamic class Symbol5_13 extends MovieClip {
public function Symbol5_13(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package horizcomicviewer_fla
Section 13
//Base (Base)
package {
import flash.display.*;
import flash.text.*;
public dynamic class Base extends MovieClip {
public var intxt:TextField;
public var incomic:MovieClip;
}
}//package
Section 14
//BGtile (BGtile)
package {
import flash.display.*;
public dynamic class BGtile extends MovieClip {
}
}//package
Section 15
//loadMain (loadMain)
package {
import flash.display.*;
import flash.text.*;
public dynamic class loadMain extends MovieClip {
public var loadtxt:TextField;
public var playbut:SimpleButton;
public function loadMain(){
addFrameScript(26, frame27);
}
function frame27(){
stop();
playbut.visible = true;
}
}
}//package
Section 16
//Marker (Marker)
package {
import flash.display.*;
public dynamic class Marker extends MovieClip {
public function Marker(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package