Hi All… (YES I AM BACK AGAIN!) Any / ALL HELP WANTED AND DEEPLY APPRECIATED!!!
I am still receiving the following ERROR message (going on day 3 with this problem):
ReferenceError: Error #1069: Property easeOut not found on gs.TweenLite and there is no default value.
at gs::TweenLite()
at gs::TweenLite$/to()
at main_fla::MainTimeline/initSite()
at main_fla::MainTimeline/frame1()
This is the entire TweenLite.as:
package gs
{
import flash.display.;
import flash.events.;
import flash.utils.;
import flash.display.;
import flash.events.;
import flash.utils.;
import flash.geom.ColorTransform;
import flash.media.Sound;
import flash.media.SoundChannel;
import gs.easing.Quart;
public class TweenLite extends Object
{
public var delay:Number;
protected var _initted:Boolean;
protected var _subTweens:Array;
public var startTime:int;
public var target:Object;
public var duration:Number;
protected var _hst:Boolean;
protected var _isDisplayObject:Boolean;
protected var _active:Boolean;
public var vars:Object;
public var tweens:Array;
public var initTime:int;
private static var _timer:Timer = new Timer(2000);
private static var _classInitted:Boolean;
public var defaultEase:Function = this.easeOut;
public static var version:Number = 7;
private static var _sprite:Sprite = new Sprite();
static var _all:Dictionary = new Dictionary();
public var killDelayedCallsTo:Function = killTweensOf;
static var _curTime:uint;
private static var _listening:Boolean;
public function TweenLite(param1:Object, param2:Number, param3:Object)
{
var _loc_4:*;
if (param1 == null)
{
return;
}// end if
if (param3.overwrite != false && param1 != null || _all[param1] == undefined)
{
delete _all[param1];
_all[param1] = new Dictionary();
}// end if
_all[param1][this] = this;
this.vars = param3;
if (!param2)
{
}// end if
this.duration = 0.001;
if (!param3.delay)
{
}// end if
this.delay = 0;
if (param2 == 0)
{
}// end if
_active = this.delay == 0;
this.target = param1;
_isDisplayObject = param1 is DisplayObject;
if (!(this.vars.ease is Function))
{
this.vars.ease = defaultEase;
}// end if
if (this.vars.easeParams != null)
{
this.vars.proxiedEase = this.vars.ease;
this.vars.ease = easeProxy;
}// end if
if (!isNaN(Number(this.vars.autoAlpha)))
{
this.vars.alpha = Number(this.vars.autoAlpha);
this.vars.visible = this.vars.alpha > 0;
}// end if
this.tweens = [];
_subTweens = [];
var _loc_5:Boolean;
_initted = false;
_hst = _loc_5;
if (!_classInitted)
{
_curTime = getTimer();
_sprite.addEventListener(Event.ENTER_FRAME, executeAll);
_classInitted = true;
}// end if
this.initTime = _curTime;
if (this.vars.runBackwards == true && this.vars.renderOnStart != true || _active)
{
initTweenVals();
this.startTime = _curTime;
if (_active)
{
render(this.startTime + 1);
}
else
{
render(this.startTime);
}// end else if
_loc_4 = this.vars.visible;
if (this.vars.isTV == true)
{
_loc_4 = this.vars.exposedProps.visible;
}// end if
if (_loc_4 != null && this.vars.runBackwards == true && _isDisplayObject)
{
this.target.visible = Boolean(_loc_4);
}// end if
}// end if
if (!_listening && !_active)
{
_timer.addEventListener("timer", killGarbage);
_timer.start();
_listening = true;
}// end if
return;
}// end function
protected function addSubTween(param1:Function, param2:Object, param3:Object, param4:Object = null) : void
{
var _loc_5:Object;
var _loc_6:String;
_loc_5 = {proxy:param1, target:param2, info:param4};
_subTweens.push(_loc_5);
for (_loc_6 in param3)
{
// label
if (typeof(param3[_loc_6]) == "number")
{
this.tweens.push({o:param2, p:_loc_6, s:param2[_loc_6], c:param3[_loc_6] - param2[_loc_6], sub:_loc_5});
continue;
}// end if
this.tweens.push({o:param2, p:_loc_6, s:param2[_loc_6], c:Number(param3[_loc_6]), sub:_loc_5});
}// end of for ... in
_hst = true;
return;
}// end function
public function initTweenVals(param1:Boolean = false, param2:String = "") : void
{
var _loc_3:String;
var _loc_4:int;
var _loc_5:Object;
var _loc_6:Array;
var _loc_7:ColorTransform;
var _loc_8:ColorTransform;
var _loc_9:Object;
_loc_5 = this.vars;
if (_loc_5.isTV == true)
{
_loc_5 = _loc_5.exposedProps;
}// end if
if (this.target is Array)
{
if (!this.vars.endArray)
{
}// end if
_loc_6 = [];
_loc_4 = 0;
while (_loc_4 < _loc_6.length)
{
// label
if (this.target[_loc_4] != _loc_6[_loc_4] && this.target[_loc_4] != undefined)
{
this.tweens.push({o:this.target, p:_loc_4.toString(), s:this.target[_loc_4], c:_loc_6[_loc_4] - this.target[_loc_4]});
}// end if
_loc_4++;
}// end while
}
else
{
if (typeof(_loc_5.tint) != "undefined" || this.vars.removeTint == true && _isDisplayObject)
{
_loc_7 = this.target.transform.colorTransform;
_loc_8 = new ColorTransform();
if (_loc_5.alpha != undefined)
{
_loc_8.alphaMultiplier = _loc_5.alpha;
delete _loc_5.alpha;
}
else
{
_loc_8.alphaMultiplier = this.target.alpha;
}// end else if
if (this.vars.removeTint != true && _loc_5.tint != null && _loc_5.tint != "" || _loc_5.tint == 0)
{
_loc_8.color = _loc_5.tint;
}// end if
addSubTween(tintProxy, {progress:0}, {progress:1}, {target:this.target, color:_loc_7, endColor:_loc_8});
}// end if
if (_loc_5.frame != null && _isDisplayObject)
{
addSubTween(frameProxy, {frame:this.target.currentFrame}, {frame:_loc_5.frame}, {target:this.target});
}// end if
if (!isNaN(this.vars.volume) && _isDisplayObject || this.target is SoundChannel)
{
addSubTween(volumeProxy, this.target.soundTransform, {volume:this.vars.volume}, {target:this.target});
}// end if
for (_loc_3 in _loc_5)
{
// label
if (_loc_3 == "ease" || _loc_3 == "delay" || _loc_3 == "overwrite" || _loc_3 == "onComplete" || _loc_3 == "onCompleteParams" || _loc_3 == "runBackwards" || _loc_3 == "persist" || _loc_3 == "onUpdate" || _loc_3 == "onUpdateParams" || _loc_3 == "volume" || _loc_3 == "onStart" || _loc_3 == "onStartParams" || _loc_3 == "renderOnStart" || _loc_3 == "proxiedEase" || _loc_3 == "easeParams" || param1 && param2.indexOf(" " + _loc_3 + " ") != -1)
{
continue;
}// end if
if (!(_isDisplayObject && _loc_3 == "visible" || _loc_3 == "autoAlpha" || _loc_3 == "tint" || _loc_3 == "removeTint" || _loc_3 == "frame"))
{
if (typeof(_loc_5[_loc_3]) == "number")
{
this.tweens.push({o:this.target, p:_loc_3, s:this.target[_loc_3], c:_loc_5[_loc_3] - this.target[_loc_3]});
continue;
}// end if
this.tweens.push({o:this.target, p:_loc_3, s:this.target[_loc_3], c:Number(_loc_5[_loc_3])});
}// end if
}// end of for ... in
}// end else if
if (this.vars.runBackwards == true)
{
while (_loc_4-- > -1)
{
// label
_loc_9 = this.tweens[this.tweens.length-1];
this.tweens[this.tweens.length--].s = _loc_9.s + _loc_9.c;
_loc_9.c = _loc_9.c * -1;
}// end while
}// end if
if (_loc_5.visible == true && _isDisplayObject)
{
this.target.visible = true;
}// end if
_initted = true;
return;
}// end function
public function get active() : Boolean
{
if (_active)
{
return true;
}// end if
if ((_curTime - this.initTime) / 1000 > this.delay)
{
_active = true;
this.startTime = this.initTime + this.delay * 1000;
if (!_initted)
{
initTweenVals();
}
else if (this.vars.visible != undefined && _isDisplayObject)
{
this.target.visible = true;
}// end else if
if (this.vars.onStart != null)
{
this.vars.onStart.apply(null, this.vars.onStartParams);
}// end if
if (this.duration == 0.001)
{
this.startTime-1;
}// end if
return true;
}
else
{
return false;
}// end else if
}// end function
public function render(param1:uint) : void
{
var _loc_2:Number;
var _loc_3:Number;
var _loc_4:Object;
var _loc_5:int;
_loc_2 = (param1 - this.startTime) / 1000;
if (_loc_2 >= this.duration)
{
_loc_2 = this.duration;
_loc_3 = 1;
}
else
{
_loc_3 = this.vars.ease(_loc_2, 0, 1, this.duration);
}// end else if
while (_loc_5-- > -1)
{
// label
_loc_4 = this.tweens[this.tweens.length--];
_loc_4.o[_loc_4.p] = _loc_4.s + _loc_3 * _loc_4.c;
}// end while
if (_hst)
{
while (_loc_5-- > -1)
{
// label
_subTweens[_subTweens.length--].proxy(_subTweens[_loc_5]);
}// end while
}// end if
if (this.vars.onUpdate != null)
{
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
}// end if
if (_loc_2 == this.duration)
{
complete(true);
}// end if
return;
}// end function
protected function easeProxy(param1:Number, param2:Number, param3:Number, param4:Number) : Number
{
return this.vars.proxiedEase.apply(null, _loc_5.concat(this.vars.easeParams));
}// end function
public function complete(param1:Boolean = false) : void
{
if (!param1)
{
if (!_initted)
{
initTweenVals();
}// end if
this.startTime = _curTime - this.duration * 1000;
render(_curTime);
return;
}// end if
if (this.vars.visible != undefined && _isDisplayObject)
{
if (!isNaN(this.vars.autoAlpha) && this.target.alpha == 0)
{
this.target.visible = false;
}
else if (this.vars.runBackwards != true)
{
this.target.visible = this.vars.visible;
}// end if
}// end else if
if (this.vars.persist != true)
{
removeTween(this);
}// end if
if (this.vars.onComplete != null)
{
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
}// end if
return;
}// end function
public static function easeOut(param1:Number, param2:Number, param3:Number, param4:Number) : Number
{
var _loc_5:* = param1 / param4;
param1 = param1 / param4;
return (-param3) * _loc_5 * (param1 - 2) + param2;
}// end function
public static function frameProxy(param1:Object) : void
{
param1.info.target.gotoAndStop(Math.round(param1.target.frame));
return;
}// end function
public static function removeTween(param1:TweenLite = null) : void
{
if (param1 != null && _all[param1.target] != undefined)
{
delete _all[param1.target][param1];
}// end if
return;
}// end function
public static function killTweensOf(param1:Object = null, param2:Boolean = false) : void
{
var _loc_3:Object;
var _loc_4:*;
if (param1 != null && _all[param1] != undefined)
{
if (param2)
{
_loc_3 = _all[param1];
for (_loc_4 in _loc_3)
{
// label
_loc_3[_loc_4].complete(false);
}// end of for ... in
}// end if
delete _all[param1];
}// end if
return;
}// end function
public static function delayedCall(param1:Number, param2:Function, param3:Array = null, param4 = null) : TweenLite
{
return new TweenLite(param2, 0, {delay:param1, onComplete:param2, onCompleteParams:param3, onCompleteScope:param4, overwrite:false});
}// end function
public static function from(param1:Object, param2:Number, param3:Object) : TweenLite
{
param3.runBackwards = true;
return new TweenLite(param1, param2, param3);
}// end function
public static function executeAll(param1:Event = null) : void
{
var _loc_2:uint;
var _loc_3:Dictionary;
var _loc_4:Object;
var _loc_5:Object;
var _loc_6:* = getTimer();
_curTime = getTimer();
_loc_2 = _loc_6;
if (_listening)
{
_loc_3 = _all;
for each (_loc_4 in _loc_3)
{
// label
for (_loc_5 in _loc_4)
{
// label
if (_loc_4[_loc_5] != undefined && _loc_4[_loc_5].active)
{
_loc_4[_loc_5].render(_loc_2);
}// end if
}// end of for ... in
}// end of for each ... in
}// end if
return;
}// end function
public static function volumeProxy(param1:Object) : void
{
param1.info.target.soundTransform = param1.target;
return;
}// end function
public static function killGarbage(param1:TimerEvent) : void
{
var _loc_2:uint;
var _loc_3:Boolean;
var _loc_4:Object;
var _loc_5:Object;
var _loc_6:Object;
_loc_2 = 0;
for (_loc_4 in _all)
{
// label
_loc_3 = false;
for (_loc_5 in _all[_loc_4])
{
// label
_loc_3 = true;
break;
}// end of for ... in
if (true)
{
delete _all[_loc_4];
continue;
}// end if
}// end of for ... in
if (_loc_2++ == 0)
{
_timer.removeEventListener("timer", killGarbage);
_timer.stop();
_listening = false;
}// end if
return;
}// end function
public static function tintProxy(param1:Object) : void
{
var _loc_2:Number;
var _loc_3:Number;
var _loc_4:Object;
var _loc_5:Object;
_loc_2 = param1.target.progress;
_loc_3 = 1 - _loc_2;
_loc_4 = param1.info.color;
_loc_5 = param1.info.endColor;
param1.info.target.transform.colorTransform = new ColorTransform(_loc_4.redMultiplier * _loc_3 + _loc_5.redMultiplier * _loc_2, _loc_4.greenMultiplier * _loc_3 + _loc_5.greenMultiplier * _loc_2, _loc_4.blueMultiplier * _loc_3 + _loc_5.blueMultiplier * _loc_2, _loc_4.alphaMultiplier * _loc_3 + _loc_5.alphaMultiplier * _loc_2, _loc_4.redOffset * _loc_3 + _loc_5.redOffset * _loc_2, _loc_4.greenOffset * _loc_3 + _loc_5.greenOffset * _loc_2, _loc_4.blueOffset * _loc_3 + _loc_5.blueOffset * _loc_2, _loc_4.alphaOffset * _loc_3 + _loc_5.alphaOffset * _loc_2);
return;
}// end function
public static function to(param1:Object, param2:Number, param3:Object) : TweenLite
{
return new TweenLite(param1, param2, param3);
}// end function
}
}