Hello, I hit control, test movie, the movie starts playing fine but a output window pops up, saying (Easing function ‘easeoutback’ is missing!!!) and (Easing function ‘easeInOutQuad’ is missing!!!) all the script for those fuctions are located in frame one, why is giving me that message, thanks, check the code on frame one
function linear(t, b, c, d)
{
return (c * t / d + b);
} // End of the function
function easeoutquad(t, b, c, d, a, p, s)
{
return (-c * (t = t / d) * (t - 2) + b);
} // End of the function
function easeinquad(t, b, c, d, a, p, s)
{
return (c * (t = t / d) * t + b);
} // End of the function
function easeinoutquad(t, b, c, d, a, p, s)
{
var _loc1 = t;
_loc1 = _loc1 / (d / 2);
if (_loc1 < 1)
{
return (c / 2 * _loc1 * _loc1 + b);
} // end if
return (-c / 2 * (--_loc1 * (_loc1 - 2) - 1) + b);
} // End of the function
function easeinback(t, b, c, d, s)
{
var _loc1 = s;
var _loc2 = t;
if (_loc1 == undefined)
{
_loc1 = 1.701580E+000;
} // end if
_loc2 = _loc2 / d;
return (c * (_loc2) * _loc2 * ((_loc1 + 1) * _loc2 - _loc1) + b);
} // End of the function
function easeoutback(t, b, c, d, s)
{
var _loc1 = t;
var _loc2 = s;
if (_loc2 == undefined)
{
_loc2 = 1.701580E+000;
} // end if
_loc1 = _loc1 / d - 1;
return (c * ((_loc1) * _loc1 * ((_loc2 + 1) * _loc1 + _loc2) + 1) + b);
} // End of the function
function easeinoutback(t, b, c, d, s)
{
var _loc1 = t;
var _loc2 = s;
if (_loc2 == undefined)
{
_loc2 = 1.701580E+000;
} // end if
_loc1 = _loc1 / (d / 2);
if (_loc1 < 1)
{
_loc2 = _loc2 * 1.525000E+000;
return (c / 2 * (_loc1 * _loc1 * ((_loc2 + 1) * _loc1 - _loc2)) + b);
} // end if
_loc1 = _loc1 - 2;
_loc2 = _loc2 * 1.525000E+000;
return (c / 2 * ((_loc1) * _loc1 * ((_loc2 + 1) * _loc1 + _loc2) + 2) + b);
} // End of the function
MovieClip.prototype.tween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2)
{
var _loc3 = this;
if (delay == undefined)
{
delay = 0;
} // end if
if (typeof(prop) == "string")
{
var properties = [prop];
var oldProperties = [_loc3[prop]];
var newProperties = [propDest];
}
else
{
var properties = [];
var oldProperties = [];
var newProperties = [];
for (var i in prop)
{
oldProperties.push(_loc3[prop*]);
} // end of for...in
for (var i in prop)
{
properties.push(prop*);
} // end of for...in
for (var i in propDest)
{
newProperties.push(propDest*);
} // end of for...in
} // end else if
var $_callback_assigned = false;
if (_root.__tweenController__ == undefined)
{
var tweenHolder = _root.createEmptyMovieClip("__tweenController__", 123432);
tweenHolder.$_tweenPropList = new Array();
tweenHolder.$_tTime = getTimer();
tweenHolder.onEnterFrame = function ()
{
var _loc3 = this;
var tTime = _loc3.$_tTime = getTimer();
for (var _loc2 = 0; _loc2 < _loc3.$_tweenPropList.length; ++_loc2)
{
var _loc1 = _loc3.$_tweenPropList[_loc2];
if (_loc1._timeStart + _loc1._delay * 1000 <= tTime)
{
if (_loc1._timeDest + _loc1._delay * 1000 <= tTime)
{
_loc1._targ[_loc1._prop] = _loc1._propDest;
_loc3.$_tweenPropList.splice(_loc2, 1);
--_loc2;
--_loc1._targ.$_tweenCount;
if (_loc1._targ.$_tweenCount == 0)
{
delete _loc1._targ.$_tweenCount;
} // end if
if (_loc1._callback != undefined)
{
if (_global.backwardCallbackTweening)
{
var childMC = _loc1._targ.createEmptyMovieClip("__child__", 122344);
_loc1._callback.apply(childMC, extra1);
childMC.removeMovieClip();
}
else
{
_loc1._callback.apply(_loc1._targ, extra1);
} // end if
} // end else if
if (_loc3.$_tweenPropList.length == 0)
{
_loc3.removeMovieClip();
} // end if
continue;
} // end if
if (_loc1._propStart == undefined)
{
_loc1._propStart = _loc1._targ[_loc1._prop];
} // end if
_loc1._targ[_loc1._prop] = _global.findTweenValue(_loc1._propStart, _loc1._propDest, _loc1._timeStart, tTime - _loc1._delay * 1000, _loc1._timeDest, _loc1._animType, _loc1._extra1, _loc1._extra2);
if (typeof(_loc1._targ) != "movieclip" && _loc1._prop == "__special_text_b__")
{
_loc1._targ.textColor = (_loc1._targ.__special_text_r__ << 16) + (_loc1._targ.__special_text_g__ << 8) + _loc1._targ.__special_text_b__;
} // end if
} // end if
} // end of for
};
} // end if
var tweenPropList = _root.__tweenController__.$_tweenPropList;
var tTime = _root.__tweenController__.$_tTime;
for (var i in oldProperties)
{
if (newProperties* != undefined && !_loc3.$_isTweenLocked)
{
if (_loc3.$_tweenCount > 0)
{
for (var _loc2 = 0; _loc2 < tweenPropList.length; ++_loc2)
{
if (tweenPropList[_loc2]._targ == _loc3 && tweenPropList[_loc2]._prop == properties*)
{
if (tTime + delay * 1000 < tweenPropList[_loc2]._timeDest)
{
tweenPropList.splice(_loc2, 1);
--_loc2;
--_loc3.$_tweenCount;
} // end if
} // end if
} // end of for
} // end if
tweenPropList.push({_prop: properties*, _targ: _loc3, _propStart: undefined, _propDest: newProperties*, _timeStart: tTime, _timeDest: tTime + timeSeconds * 1000, _animType: animType, _extra1: extra1, _extra2: extra2, _delay: delay, _callback: _callback_assigned ? (undefined) : (callback)});
_loc3.$_tweenCount = _loc3.$_tweenCount > 0 ? (_loc3.$_tweenCount + 1) : (1);
$_callback_assigned = true;
} // end if
} // end of for...in
ASSetPropFlags(_loc3, "$_tweenCount", 1, 0);
};
ASSetPropFlags(MovieClip.prototype, "tween", 1, 0);
_global.findTweenValue = function (_propStart, _propDest, _timeStart, _timeNow, _timeDest, _animType, _extra1, _extra2)
{
var t = _timeNow - _timeStart;
var b = _propStart;
var c = _propDest - _propStart;
var d = _timeDest - _timeStart;
var a = _extra1;
var p = _extra2;
var s = _extra1;
var newNum = _animType.toLowerCase().call(null, t, b, c, d, a, p, s);
if (newNum == undefined)
{
trace ("Easing function \'" + _animType + "\' is missing!!!");
}
else
{
return (newNum);
} // end else if
};
ASSetPropFlags(_global, "findTweenValue", 1, 0);
p = 0;
_root.pauseClipArray = new Array();
_root.pauser = function (mcName, secondsToPause, endFunction)
{
function donePausing()
{
if (endFunction == undefined)
{
mcName.play();
}
else
{
endFunction();
} // end else if
} // End of the function
++p;
var startTime = getTimer();
var pauseTime = secondsToPause * 1000;
if (endFunction == undefined)
{
mcName.stop();
} // end if
mcName.createEmptyMovieClip("timer" + p + "_mc", p);
_root.pauseClipArray.push(mcName["timer" + p + "_mc"]);
mcName["timer" + p + "_mc"].onEnterFrame = function ()
{
if (getTimer() - startTime > pauseTime)
{
donePausing();
removeMovieClip (this);
} // end if
};
};
_root.killAllPauses = function ()
{
var _loc1 = _root;
for (mc in _loc1.pauseClipArray)
{
removeMovieClip (_loc1.pauseClipArray[mc]);
} // end of for...in
};
if (timesReplayed == undefined)
{
timesReplayed = 0;
} // end if
timesReplayed = timesReplayed + 1;
if (_root.clickTAG != undefined)
{
_root.clickTag = _root.clickTAG;
} // end if
clickTag_mc.onRelease = function ()
{
getURL("http://www.allstatecentral.com/");
};
MovieClip.prototype.slideOutPic1 = function (tempo, d)
{
this.tween("_x", -300, tempo, "easeOutQuad", d);
};
MovieClip.prototype.slidePic2 = function (tempo, d)
{
var _loc1 = this;
_loc1.myx = _loc1._x;
_loc1._x = bannerwidth;
_loc1.tween("_x", _loc1.myx, tempo, "easeOutQuad", d);
};
MovieClip.prototype.slideOutPic2 = function (tempo, d)
{
this.tween("_x", -10, tempo, "easeOutQuad", d);
};
MovieClip.prototype.slidePic3 = function (tempo, d)
{
this.tween("_x", 270, tempo, "easeOutQuad", d);
};
MovieClip.prototype.slideGlow2 = function (tempo, d)
{
this.tween("_x", 68, tempo, "easeOutQuad", d);
};
MovieClip.prototype.growIn = function (sp, d)
{
var _loc1 = this;
_loc1._alpha = 0;
_loc1._xscale = _loc1._yscale = 0;
_loc1.tween(["_xscale", "_yscale", "_alpha"], [100, 100, 60], sp, "easeoutback", d);
};
MovieClip.prototype.growOut = function (sp, d)
{
var _loc1 = this;
_loc1._xscale = _loc1._yscale = 0;
_loc1.tween(["_xscale", "_yscale", "_alpha"], [100, 100, 0], sp, "easeoutback", d);
};
MovieClip.prototype.alphaIn = function (tempo, del)
{
this._alpha = 0;
this.tween(["_alpha"], [100], tempo, "easeInOutQuad", del);
};
MovieClip.prototype.alphaOut = function (tempo, del)
{
this.tween(["_alpha"], [0], tempo, "easeInOutQuad", del);
};
var bannerwidth = 300;
var bannerheight = 250;
var borderstroke = createEmptyMovieClip("brdr", 1000000000);
borderstroke._x = 0;
borderstroke._y = 0;
borderstroke.lineStyle(1, "0x000000", 100);
borderstroke.moveTo(5.000000E-001, 5.000000E-001);
borderstroke.lineTo(bannerwidth - 1, 0);
borderstroke.lineTo(bannerwidth - 1, bannerheight - 1);
borderstroke.lineTo(0, bannerheight - 1);
borderstroke.lineTo(0, 0);
MovieClip.prototype.timer = function (sec)
{
var _loc1 = this;
_loc1.createEmptyMovieClip("time", 400000);
_loc1.time.t0 = getTimer();
_loc1.time.t2 = sec * 1000;
_loc1.stop();
_loc1.time.onEnterFrame = function ()
{
var _loc1 = this;
_loc1.t1 = getTimer() - _loc1.t0;
if (_loc1.t1 > _loc1.t2)
{
_loc1._parent.play();
delete _loc1.onEnterFrame;
} // end if
};
};
and this is the code on frame 3
function activateCTA()
{
var _loc1 = _root;
trace ("activateCTA()");
var mc = _loc1.cta_mc;
var reflect = _loc1.ctaReflection_mc;
mc.onRollOver = function ()
{
mc.tween(["_xscale", "_yscale"], [105, 105], 2.500000E-001, "easeOutBack");
Reflect.tween(["_xscale", "_yscale"], [105, 105], 2.500000E-001, "easeOutBack");
};
mc.onRollOut = txt4_mc.onDragOut = function ()
{
mc.tween(["_xscale", "_yscale"], [100, 100], 2.500000E-001, "easeOutBack");
Reflect.tween(["_xscale", "_yscale"], [100, 100], 2.500000E-001, "easeOutBack");
};
mc.onRelease = function() {
getURL("http://www.allstatecentral.com/");
};
} // End of the function
function replay()
{
if (timesReplayed < 2)
{
_root.gotoAndPlay(1);
} // end if
} // End of the function
function clearOut()
{
var _loc1 = _root;
trace ("clearOut");
for (var _loc2 = 0; _loc2 < 20; ++_loc2)
{
var _loc3 = _loc1["dotsUp" + _loc2];
_loc1["dotsUp" + _loc2].removeMovieClip();
_loc1["dotsReverse" + _loc2].removeMovieClip();
_loc1["dotsReverseTwo" + _loc2].removeMovieClip();
_loc1["dotsUpTwo" + _loc2].removeMovieClip();
_loc1["dotsLastframe" + _loc2].removeMovieClip();
_loc1["dotsLastframereverse" + _loc2].removeMovieClip();
_loc1["glow" + _loc2].removeMovieClip();
} // end of for
for (var _loc2 = 0; _loc2 < 20; ++_loc2)
{
trace ("_root[\"dotsUp\" + i] = " + _loc1["dotsUp" + _loc2] + "
----------");
} // end of for
} // End of the function
function fire1()
{
var _loc2 = _root;
for (var _loc1 = 0; _loc1 < 5; ++_loc1)
{
duplicateMovieClip(dots, "dotsUp" + _loc1, depth);
_loc2["dotsUp" + _loc1]._alpha = random(60) + 10;
++depth;
} // end of for
} // End of the function
function fire2()
{
var _loc2 = _root;
for (var _loc1 = 0; _loc1 < 10; ++_loc1)
{
duplicateMovieClip(dots2, "dotsReverse" + _loc1, depth);
_loc2["dotsReverse" + _loc1]._alpha = random(90);
++depth;
} // end of for
} // End of the function
function fire3()
{
var _loc2 = _root;
for (var _loc1 = 0; _loc1 < 10; ++_loc1)
{
duplicateMovieClip(dots3, "dotsUpTwo" + _loc1, depth);
_loc2["dotsUpTwo" + _loc1]._alpha = random(60);
++depth;
} // end of for
} // End of the function
function fire4()
{
var _loc2 = _root;
for (var _loc1 = 0; _loc1 < 5; ++_loc1)
{
duplicateMovieClip(dots4, "dotsReverseTwo" + _loc1, depth);
_loc2["dotsReverseTwo" + _loc1]._alpha = random(90);
++depth;
} // end of for
} // End of the function
function fire5()
{
var _loc2 = _root;
for (var _loc1 = 0; _loc1 < 10; ++_loc1)
{
duplicateMovieClip(dots5, "dotsLastframe" + _loc1, depth);
_loc2["dotsLastframe" + _loc1]._alpha = random(60);
++depth;
} // end of for
} // End of the function
function fire6()
{
var _loc2 = _root;
for (var _loc1 = 0; _loc1 < 5; ++_loc1)
{
duplicateMovieClip(dots6, "dotsLastframereverse" + _loc1, depth);
_loc2["dotsLastframereverse" + _loc1]._alpha = random(90);
++depth;
} // end of for
} // End of the function
function animate()
{
var _loc2 = _root;
var _loc1 = 2.500000E-001;
glow1.growIn(1, _loc1);
t1.alphaIn(5.000000E-001, _loc1);
for (var _loc3 = 0; _loc3 < 4; ++_loc3)
{
_loc2["dotsUp" + _loc3].timer(_loc1 + 2.000000E-001 * (_loc3 - 1));
} // end of for
_loc1 = _loc1 + 1.500000E+000;
pic2.alphaIn(5.000000E-001, _loc1);
pic2.slidePic2(5.000000E-001, _loc1);
glow2.growIn(1, _loc1);
_loc1 = _loc1 + 2.500000E-001;
pic2.slideOutPic2(5.000000E-001, _loc1);
pic1.slideOutPic1(5.000000E-001, _loc1);
glow1.growOut(5.000000E-001, _loc1);
glow2.slideGlow2(5.000000E-001, _loc1);
pic3.alphaIn(2.000000E-001, _loc1);
_loc1 = _loc1 + 2.500000E-001;
t2.alphaIn(5.000000E-001, _loc1);
_loc1 = _loc1 + 2.500000E-001;
for (var _loc3 = 0; _loc3 < 10; ++_loc3)
{
_loc2["dotsReverse" + _loc3].timer(_loc1 + 2.000000E-001 * (_loc3 - 1));
} // end of for
_loc1 = _loc1 + 2.500000E-001;
for (var _loc3 = 0; _loc3 < 10; ++_loc3)
{
_loc2["dotsUpTwo" + _loc3].timer(_loc1 + 2.000000E-001 * (_loc3 - 1));
} // end of for
_loc1 = _loc1 + 1;
pic3.slidePic3(5.000000E-001, _loc1);
_loc1 = _loc1 + 7.500000E-001;
glow3.growIn(1, _loc1);
_loc1 = _loc1 + 1;
for (var _loc3 = 0; _loc3 < 4; ++_loc3)
{
_loc2["dotsReverseTwo" + _loc3].timer(_loc1 + 2.000000E-001 * (_loc3 - 1));
} // end of for
t1.tween(["_alpha"], [0], 5.000000E-001, "easeInOutQuad", _loc1);
t2.tween(["_alpha"], [0], 5.000000E-001, "easeInOutQuad", _loc1);
_loc1 = _loc1 + 2;
mask_mc.tween(["_xscale", "_yscale"], [100, 218], 5.000000E-001, "easeInOutQuad", _loc1);
maskTwo_mc.tween(["_xscale", "_yscale"], [100, 218], 5.000000E-001, "easeInOutQuad", _loc1);
pic2.tween(["_x"], [60], 5.000000E-001, "easeInOutQuad", _loc1);
glow2.tween(["_x"], [150], 5.000000E-001, "easeInOutQuad", _loc1);
glow1.tween(["_x"], [85], 5.000000E-001, "easeInOutQuad", _loc1);
glow1.growIn(5.000000E-001, _loc1);
maskThree_mc.tween(["_xscale", "_yscale"], [100, 218], 5.000000E-001, "easeInOutQuad", _loc1);
pic1.tween(["_x"], [-50], 5.000000E-001, "easeInOutQuad", _loc1);
_loc1 = _loc1 + 5.000000E-001;
t3.tween(["_y"], [140], 5.000000E-001, "easeInOutQuad", _loc1);
cta_mc.tween(["_alpha"], [100], 5.000000E-001, "easeInOutQuad", _loc1, activateCTA);
ctaReflection_mc.tween(["_alpha"], [100], 5.000000E-001, "easeInOutQuad", _loc1);
_loc1 = _loc1 + 2.500000E-001;
for (var _loc3 = 0; _loc3 < 10; ++_loc3)
{
_loc2["dotsLastframe" + _loc3].timer(_loc1 + 2.000000E-001 * (_loc3 - 1));
} // end of for
_loc1 = _loc1 + 5.000000E-001;
for (var _loc3 = 0; _loc3 < 5; ++_loc3)
{
_loc2["dotsLastframereverse" + _loc3].timer(_loc1 + 2.000000E-001 * (_loc3 - 1));
} // end of for
_loc1 = _loc1 + 4.500000E+000;
_loc2.pauser(this, _loc1, replay);
} // End of the function
stop ();
cta_mc._alpha = 0;
ctaReflection_mc._alpha = 0;
var depth = 1000;
fire1();
fire2();
fire3();
fire4();
fire5();
fire6();
glow1.swapDepths(depth);
glow2.swapDepths(depth);
glow3.swapDepths(depth);
animate();