I cant seem to know this script, please help me
Wantutree Jan 29, 2010 2:15 AMHi everyone. I have been experiencing problems in this code, i cant seem to know where should i edit it. this is the story, im editing a flash site, and this script is for a tween or something(thats what i understand and i believe its quite right). so basically, its a tween for the twelve menus of the site, but, i want to add another button, so i add another button inside the movie clips where all the buttons resides, but when i test it, the new button doesnt show up. actually, ive never edited the below actionscript so please, can somebody help me out on this. heres a screenshot for a little help./
Screenshot1:
(The buttons are originally 12, so when i added another one, basically, it became 13.)
Screenshot2:
(After testing it, The button is missing, well actually if you hover to where the new button is, its actually clickable, but the thing is, its invisible.)
Screenshot3:
(Heres the actual layers and frames alignment, theres no label name or anything,)
Now heres the actionscript
Actionscript on a frame:
_global.$createTweenController = function ()
{
var _loc3 = _root.createEmptyMovieClip("__tweenController__", 123432);
_loc3.$_tweenPropList = new Array();
_loc3.$_tTime = getTimer();
_loc3.onEnterFrame = _global.$updateTweens;
};
ASSetPropFlags(_global, "$createTweenController", 1, 0);
_global.$removeTweenController = function ()
{
delete _root.__tweenController__.$_tweenPropList;
delete _root.__tweenController__.$_tTime;
delete _root.__tweenController__.onEnterFrame;
_root.__tweenController__.removeMovieClip();
};
ASSetPropFlags(_global, "$removeTweenController", 1, 0);
_global.$addTween = function (mtarget, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, extras)
{
if (timeSeconds < 1.000000E-003)
{
timeSeconds = 2;
} // end if
if (animType == undefined || animType == "")
{
animType = "easeOutExpo";
} // end if
if (delay == undefined)
{
delay = 0;
} // end if
if (typeof(prop) == "string")
{
var _loc7 = [prop];
var _loc11 = [mtarget[prop]];
var _loc9 = [propDest];
}
else
{
_loc7 = [];
_loc11 = [];
_loc9 = [];
for (var _loc32 in prop)
{
_loc11.push(mtarget[prop[_loc32]]);
} // end of for...in
for (var _loc32 in prop)
{
_loc7.push(prop[_loc32]);
} // end of for...in
for (var _loc32 in propDest)
{
_loc9.push(propDest[_loc32]);
} // end of for...in
} // end else if
var _loc12 = false;
if (_root.__tweenController__ == undefined)
{
_global.$createTweenController();
} // end if
var _loc4 = _root.__tweenController__.$_tweenPropList;
var _loc8 = _root.__tweenController__.$_tTime;
for (var _loc32 in _loc11)
{
if (_loc9[_loc32] != undefined && !mtarget.$_isTweenLocked)
{
if (mtarget.$_tweenCount > 0)
{
for (var _loc3 = 0; _loc3 < _loc4.length; ++_loc3)
{
if (_loc4[_loc3]._targ == mtarget && _loc4[_loc3]._prop == _loc7[_loc32])
{
if (_loc8 + delay * 1000 < _loc4[_loc3]._timeDest)
{
_loc4.splice(_loc3, 1);
--_loc3;
--mtarget.$_tweenCount;
} // end if
} // end if
} // end of for
} // end if
_loc4.push({_prop: _loc7[_loc32], _targ: mtarget, _propStart: undefined, _propDest: _loc9[_loc32], _timeStart: _loc8, _timeDest: _loc8 + timeSeconds * 1000, _animType: animType, _extra1: extra1, _extra2: extra2, _extras: extras, _delay: delay, _isPaused: false, _timePaused: 0, _callback: _loc12 ? (undefined) : (callback)});
mtarget.$_tweenCount = mtarget.$_tweenCount > 0 ? (mtarget.$_tweenCount + 1) : (1);
_loc12 = true;
} // end if
} // end of for...in
ASSetPropFlags(mtarget, "$_tweenCount", 1, 0);
};
ASSetPropFlags(_global, "$addTween", 1, 0);
_global.$updateTweens = function ()
{
var _loc8 = this.$_tTime = getTimer();
for (var _loc5 = 0; _loc5 < this.$_tweenPropList.length; ++_loc5)
{
var _loc3 = this.$_tweenPropList[_loc5];
if (_loc3._targ.toString() == undefined)
{
this.$_tweenPropList.splice(_loc5, 1);
--_loc5;
continue;
} // end if
if (_loc3._timeStart + _loc3._delay * 1000 <= _loc8 && !_loc3._isPaused)
{
if (_loc3._propStart == undefined)
{
if (_loc3._prop.substr(0, 10) == "__special_")
{
if (_loc3._prop == "__special_mc_frame__")
{
_loc3._propStart = _loc3._targ._currentframe;
}
else if (_loc3._prop == "__special_mc_ra__")
{
_loc3._propStart = new Color(_loc3._targ).getTransform().ra;
}
else if (_loc3._prop == "__special_mc_rb__")
{
_loc3._propStart = new Color(_loc3._targ).getTransform().rb;
}
else if (_loc3._prop == "__special_mc_ga__")
{
_loc3._propStart = new Color(_loc3._targ).getTransform().ga;
}
else if (_loc3._prop == "__special_mc_gb__")
{
_loc3._propStart = new Color(_loc3._targ).getTransform().gb;
}
else if (_loc3._prop == "__special_mc_ba__")
{
_loc3._propStart = new Color(_loc3._targ).getTransform().ba;
}
else if (_loc3._prop == "__special_mc_bb__")
{
_loc3._propStart = new Color(_loc3._targ).getTransform().bb;
}
else if (_loc3._prop == "__special_mc_aa__")
{
_loc3._propStart = new Color(_loc3._targ).getTransform().aa;
}
else if (_loc3._prop == "__special_mc_ab__")
{
_loc3._propStart = new Color(_loc3._targ).getTransform().ab;
}
else if (_loc3._prop == "__special_text_r__")
{
_loc3._propStart = _loc3._targ.textColor >> 16;
}
else if (_loc3._prop == "__special_text_g__")
{
_loc3._propStart = (_loc3._targ.textColor & 65280) >> 8;
}
else if (_loc3._prop == "__special_text_b__")
{
_loc3._propStart = _loc3._targ.textColor & 255;
}
else if (_loc3._prop == "__special_sound_volume__")
{
_loc3._propStart = _loc3._targ.getVolume();
}
else if (_loc3._prop == "__special_sound_pan__")
{
_loc3._propStart = _loc3._targ.getPan();
}
else if (_loc3._prop == "__special_bst_t__")
{
_loc3._propStart = 0;
_loc3._extras.__special_bst_ix__ = _loc3._targ._x;
_loc3._extras.__special_bst_iy__ = _loc3._targ._y;
}
else
{
_loc3._propStart = _loc3._targ[_loc3._prop];
} // end else if
}
else
{
_loc3._propStart = _loc3._targ[_loc3._prop];
} // end if
} // end else if
var _loc9 = _loc3._timeDest + _loc3._delay * 1000;
if (_loc9 <= _loc8)
{
var _loc4 = _loc3._propDest;
}
else
{
_loc4 = _global.findTweenValue(_loc3._propStart, _loc3._propDest, _loc3._timeStart, _loc8 - _loc3._delay * 1000, _loc3._timeDest, _loc3._animType, _loc3._extra1, _loc3._extra2);
} // end else if
_loc3._targ[_loc3._prop] = _loc3._extras.mustRound ? (Math.round(_loc4)) : (_loc4);
if (_loc3._prop == "__special_mc_frame__")
{
_loc3._targ.gotoAndStop(Math.round(_loc4));
}
else if (_loc3._prop == "__special_mc_ra__")
{
new Color(_loc3._targ).setTransform({ra: _loc4});
}
else if (_loc3._prop == "__special_mc_rb__")
{
new Color(_loc3._targ).setTransform({rb: _loc4});
}
else if (_loc3._prop == "__special_mc_ga__")
{
new Color(_loc3._targ).setTransform({ga: _loc4});
}
else if (_loc3._prop == "__special_mc_gb__")
{
new Color(_loc3._targ).setTransform({gb: _loc4});
}
else if (_loc3._prop == "__special_mc_ba__")
{
new Color(_loc3._targ).setTransform({ba: _loc4});
}
else if (_loc3._prop == "__special_mc_bb__")
{
new Color(_loc3._targ).setTransform({bb: _loc4});
}
else if (_loc3._prop == "__special_mc_aa__")
{
new Color(_loc3._targ).setTransform({aa: _loc4});
}
else if (_loc3._prop == "__special_mc_ab__")
{
new Color(_loc3._targ).setTransform({ab: _loc4});
} // end else if
if (_loc3._prop == "__special_bst_t__")
{
var _loc6 = _loc3._extras;
var _loc7 = _global.findPointOnCurve(_loc6.__special_bst_ix__, _loc6.__special_bst_iy__, _loc6.__special_bst_cx__, _loc6.__special_bst_cy__, _loc6.__special_bst_dx__, _loc6.__special_bst_dy__, _loc4);
if (_loc3._extras.mustRound)
{
_loc3._targ._x = Math.round(_loc7.x);
_loc3._targ._y = Math.round(_loc7.y);
}
else
{
_loc3._targ._x = _loc7.x;
_loc3._targ._y = _loc7.y;
} // end if
} // end else if
if (typeof(_loc3._targ) != "movieclip" && _loc3._prop == "__special_text_b__")
{
_loc3._targ.textColor = (_loc3._targ.__special_text_r__ << 16) + (_loc3._targ.__special_text_g__ << 8) + _loc3._targ.__special_text_b__;
} // end if
if (_loc3._prop == "__special_sound_volume__")
{
_loc3._targ.setVolume(_loc4);
} // end if
if (_loc3._prop == "__special_sound_pan__")
{
_loc3._targ.setPan(_loc4);
} // end if
if (_loc3._targ.onTweenUpdate != undefined)
{
_loc3._targ.onTweenUpdate(_loc3._prop);
} // end if
if (_loc9 <= _loc8)
{
if (_loc3._targ.onTweenComplete != undefined)
{
_loc3._targ.onTweenComplete(_loc3._prop);
} // end if
_global.$stopTween(_loc3._targ, [_loc3._prop], false);
--_loc5;
if (_loc3._callback != undefined)
{
if (_global.backwardCallbackTweening)
{
var _loc10 = _loc3._targ.createEmptyMovieClip("__child__", 122344);
_loc3._callback.apply(_loc10, null);
_loc10.removeMovieClip();
continue;
} // end if
_loc3._callback.apply(_loc3._targ, null);
} // end if
} // end if
} // end if
} // end of for
if (this.$_tweenPropList.length == 0)
{
_global.$removeTweenController();
} // end if
};
ASSetPropFlags(_global, "$updateTween", 1, 0);
_global.$stopTween = function (mtarget, props, wipeFuture)
{
var _loc4 = _root.__tweenController__.$_tweenPropList;
var _loc7;
for (var _loc9 in _loc4)
{
_loc7 = _loc4[_loc9]._prop;
for (var _loc5 = 0; _loc5 < props.length || _loc5 < 1 && props == undefined; ++_loc5)
{
if (_loc4[_loc9]._targ == mtarget && (_loc7 == props[_loc5] || props == undefined) && (wipeFuture || _loc4[_loc9]._timeDest + _loc4[_loc9]._delay * 1000 <= getTimer()))
{
switch (_loc7)
{
case "__special_mc_frame__":
case "__special_mc_ra__":
case "__special_mc_rb__":
case "__special_mc_ga__":
case "__special_mc_gb__":
case "__special_mc_ba__":
case "__special_mc_bb__":
case "__special_mc_aa__":
case "__special_mc_ab__":
case "__special_sound_volume__":
case "__special_bst_t__":
{
delete mtarget.__special_bst_t__;
delete mtarget[_loc7];
break;
}
case "__special_text_b__":
{
delete mtarget.__special_text_r__;
delete mtarget.__special_text_g__;
delete mtarget.__special_text_b__;
break;
}
} // End of switch
_loc4.splice(_loc9, 1);
} // end if
} // end of for
} // end of for...in
if (props == undefined)
{
delete mtarget.$_tweenCount;
}
else
{
mtarget.$_tweenCount = 0;
for (var _loc9 in _loc4)
{
if (_loc4[_loc9]._targ == mtarget)
{
++mtarget.$_tweenCount;
} // end if
} // end of for...in
if (mtarget.$_tweenCount == 0)
{
delete mtarget.$_tweenCount;
} // end if
} // end else if
if (_loc4.length == 0)
{
_global.$removeTweenController();
} // end if
};
ASSetPropFlags(_global, "$stopTween", 1, 0);
MovieClip.prototype.tween = TextField.prototype.tween = Sound.prototype.tween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2)
{
_global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "tween", 1, 0);
ASSetPropFlags(TextField.prototype, "tween", 1, 0);
ASSetPropFlags(Sound.prototype, "tween", 1, 0);
MovieClip.prototype.roundedTween = TextField.prototype.roundedTween = Sound.prototype.roundedTween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2)
{
_global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound: true});
};
ASSetPropFlags(MovieClip.prototype, "roundedTween", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedTween", 1, 0);
ASSetPropFlags(Sound.prototype, "roundedTween", 1, 0);
MovieClip.prototype.stopTween = TextField.prototype.stopTween = Sound.prototype.stopTween = function (props)
{
if (typeof(props) == "string")
{
props = [props];
} // end if
if (props != undefined)
{
for (var _loc3 = 1; _loc3 < Arguments.length; ++_loc3)
{
props.push(Arguments[_loc3]);
} // end of for
} // end if
_global.$stopTween(this, props, true);
};
ASSetPropFlags(MovieClip.prototype, "stopTween", 1, 0);
ASSetPropFlags(TextField.prototype, "stopTween", 1, 0);
ASSetPropFlags(Sound.prototype, "stopTween", 1, 0);
MovieClip.prototype.pauseTween = TextField.prototype.pauseTween = Sound.prototype.pauseTween = function (props)
{
if (props != undefined)
{
if (typeof(props) == "string")
{
props = [props];
} // end if
for (var _loc6 = 1; _loc6 < Arguments.length; ++_loc6)
{
props.push(Arguments[_loc6]);
} // end of for
} // end if
var _loc4 = _root.__tweenController__.$_tweenPropList;
var _loc5;
for (var _loc7 in _loc4)
{
if (_loc4[_loc7]._targ == this && !_loc4[_loc7]._isPaused)
{
if (props != undefined)
{
_loc5 = false;
for (var _loc6 in props)
{
if (props[_loc6] == _loc4[_loc7]._prop)
{
_loc5 = true;
break;
} // end if
} // end of for...in
} // end if
if (props == undefined || _loc5)
{
_loc4[_loc7]._isPaused = true;
_loc4[_loc7]._timePaused = _root.__tweenController__.$_tTime;
} // end if
} // end if
} // end of for...in
};
ASSetPropFlags(MovieClip.prototype, "pauseTween", 1, 0);
ASSetPropFlags(TextField.prototype, "pauseTween", 1, 0);
ASSetPropFlags(Sound.prototype, "pauseTween", 1, 0);
MovieClip.prototype.resumeTween = TextField.prototype.resumeTween = Sound.prototype.resumeTween = function (props)
{
if (props != undefined)
{
if (typeof(props) == "string")
{
props = [props];
} // end if
for (var _loc7 = 1; _loc7 < Arguments.length; ++_loc7)
{
props.push(Arguments[_loc7]);
} // end of for
} // end if
var _loc3 = _root.__tweenController__.$_tweenPropList;
var _loc5;
var _loc6;
for (var _loc8 in _loc3)
{
if (_loc3[_loc8]._targ == this && _loc3[_loc8]._isPaused)
{
if (props != undefined)
{
_loc5 = false;
for (var _loc7 in props)
{
if (props[_loc7] == _loc3[_loc8]._prop)
{
_loc5 = true;
break;
} // end if
} // end of for...in
} // end if
if (props == undefined || _loc5)
{
_loc3[_loc8]._isPaused = false;
_loc6 = _root.__tweenController__.$_tTime - _loc3[_loc8]._timePaused;
_loc3[_loc8]._timeStart = _loc3[_loc8]._timeStart + _loc6;
_loc3[_loc8]._timeDest = _loc3[_loc8]._timeDest + _loc6;
_loc3[_loc8]._timePaused = 0;
} // end if
} // end if
} // end of for...in
};
ASSetPropFlags(MovieClip.prototype, "resumeTween", 1, 0);
ASSetPropFlags(TextField.prototype, "resumeTween", 1, 0);
ASSetPropFlags(Sound.prototype, "resumeTween", 1, 0);
MovieClip.prototype.lockTween = TextField.prototype.lockTween = Sound.prototype.lockTween = function ()
{
this.$_isTweenLocked = true;
ASSetPropFlags(this, "this.$_isTweenLocked", 1, 0);
};
ASSetPropFlags(MovieClip.prototype, "lockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "lockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "lockTween", 1, 0);
MovieClip.prototype.unlockTween = TextField.prototype.unlockTween = Sound.prototype.unlockTween = function ()
{
delete this.$_isTweenLocked;
};
ASSetPropFlags(MovieClip.prototype, "unlockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "unlockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "unlockTween", 1, 0);
MovieClip.prototype.getTweens = TextField.prototype.getTweens = Sound.prototype.getTweens = function ()
{
return (this.$_tweenCount);
};
ASSetPropFlags(MovieClip.prototype, "getTweens", 1, 0);
ASSetPropFlags(TextField.prototype, "getTweens", 1, 0);
ASSetPropFlags(Sound.prototype, "getTweens", 1, 0);
MovieClip.prototype.isTweening = TextField.prototype.isTweening = Sound.prototype.isTweening = function ()
{
return (this.$_tweenCount > 0 ? (true) : (false));
};
ASSetPropFlags(MovieClip.prototype, "isTweening", 1, 0);
ASSetPropFlags(TextField.prototype, "isTweening", 1, 0);
ASSetPropFlags(Sound.prototype, "isTweening", 1, 0);
MovieClip.prototype.alphaTo = TextField.prototype.alphaTo = function (propDest_a, timeSeconds, animType, delay, callback, extra1, extra2)
{
_global.$addTween(this, "_alpha", propDest_a, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "alphaTo", 1, 0);
ASSetPropFlags(TextField.prototype, "alphaTo", 1, 0);
MovieClip.prototype.frameTo = function (propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2)
{
_global.$addTween(this, "__special_mc_frame__", propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "frameTo", 1, 0);
MovieClip.prototype.rotateTo = TextField.prototype.rotateTo = function (propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2)
{
_global.$addTween(this, "_rotation", propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "rotateTo", 1, 0);
ASSetPropFlags(TextField.prototype, "rotateTo", 1, 0);
MovieClip.prototype.scaleTo = TextField.prototype.scaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2)
{
_global.$addTween(this, ["_xscale", "_yscale"], [propDest_scale, propDest_scale], timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "scaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "scaleTo", 1, 0);
MovieClip.prototype.xScaleTo = TextField.prototype.xScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2)
{
_global.$addTween(this, "_xscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "xScaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xScaleTo", 1, 0);
MovieClip.prototype.yScaleTo = TextField.prototype.yScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2)
{
_global.$addTween(this, "_yscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "yScaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yScaleTo", 1, 0);
TextField.prototype.scrollTo = function (propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2)
{
_global.$addTween(this, "scroll", propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, "scrollTo", 1, 0);
MovieClip.prototype.slideTo = TextField.prototype.slideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2)
{
_global.$addTween(this, ["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "slideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "slideTo", 1, 0);
MovieClip.prototype.roundedSlideTo = TextField.prototype.roundedSlideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2)
{
_global.$addTween(this, ["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2, {mustRound: true});
};
ASSetPropFlags(MovieClip.prototype, "roundedSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedSlideTo", 1, 0);
MovieClip.prototype.xSlideTo = TextField.prototype.xSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2)
{
_global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "xSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xSlideTo", 1, 0);
MovieClip.prototype.roundedXSlideTo = TextField.prototype.roundedXSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2)
{
_global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound: true});
};
ASSetPropFlags(MovieClip.prototype, "roundedXSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedXSlideTo", 1, 0);
MovieClip.prototype.ySlideTo = TextField.prototype.ySlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2)
{
_global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "ySlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "ySlideTo", 1, 0);
MovieClip.prototype.roundedYSlideTo = TextField.prototype.roundedYSlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2)
{
_global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound: true});
};
ASSetPropFlags(MovieClip.prototype, "roundedYSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedYSlideTo", 1, 0);
MovieClip.prototype.bezierSlideTo = TextField.prototype.bezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2)
{
var _loc3 = new Object();
_loc3.__special_bst_ix__ = undefined;
_loc3.__special_bst_iy__ = undefined;
_loc3.__special_bst_cx__ = cpoint_x;
_loc3.__special_bst_cy__ = cpoint_y;
_loc3.__special_bst_dx__ = propDest_x;
_loc3.__special_bst_dy__ = propDest_y;
_global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _loc3);
};
ASSetPropFlags(MovieClip.prototype, "bezierSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "bezierSlideTo", 1, 0);
MovieClip.prototype.roundedBezierSlideTo = TextField.prototype.roundedBezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2)
{
var _loc3 = new Object();
_loc3.__special_bst_ix__ = undefined;
_loc3.__special_bst_iy__ = undefined;
_loc3.__special_bst_cx__ = cpoint_x;
_loc3.__special_bst_cy__ = cpoint_y;
_loc3.__special_bst_dx__ = propDest_x;
_loc3.__special_bst_dy__ = propDest_y;
_loc3.mustRound = true;
_global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _loc3);
};
ASSetPropFlags(MovieClip.prototype, "roundedBezierSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedBezierSlideTo", 1, 0);
Sound.prototype.volumeTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2)
{
_global.$addTween(this, "__special_sound_volume__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "volumeTo", 1, 0);
Sound.prototype.panTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2)
{
_global.$addTween(this, "__special_sound_pan__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "panTo", 1, 0);
MovieClip.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2)
{
if (propDest_color == null)
{
this.colorTransformTo(100, 0, 100, 0, 100, 0, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
}
else
{
var _loc3 = propDest_color >> 16;
var _loc5 = (propDest_color & 65280) >> 8;
var _loc4 = propDest_color & 255;
this.colorTransformTo(0, _loc3, 0, _loc5, 0, _loc4, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
} // end else if
};
ASSetPropFlags(MovieClip.prototype, "colorTo", 1, 0);
TextField.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2)
{
var _loc3 = propDest_color >> 16;
var _loc6 = (propDest_color & 65280) >> 8;
var _loc4 = propDest_color & 255;
_global.$addTween(this, ["__special_text_r__", "__special_text_g__", "__special_text_b__"], [_loc3, _loc6, _loc4], timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, "colorTo", 1, 0);
MovieClip.prototype.colorTransformTo = function ()
{
if (typeof(arguments[0]) == "object" && arguments[0] != undefined)
{
_global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0].ra, arguments[0].rb, arguments[0].ga, arguments[0].gb, arguments[0].ba, arguments[0].bb, arguments[0].aa, arguments[0].ab], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6]);
}
else
{
_global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7]], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], arguments[13]);
} // end else if
};
ASSetPropFlags(MovieClip.prototype, "colorTransformTo", 1, 0);
_global.findPointOnCurve = function (p1x, p1y, cx, cy, p2x, p2y, t)
{
return ({x: p1x + t * (2 * (1 - t) * (cx - p1x) + t * (p2x - p1x)), y: p1y + t * (2 * (1 - t) * (cy - p1y) + t * (p2y - p1y))});
};
ASSetPropFlags(_global, "findPointOnCurve", 1, 0);
_global.findTweenValue = function (_propStart, _propDest, _timeStart, _timeNow, _timeDest, _animType, _extra1, _extra2)
{
var _loc1 = _timeNow - _timeStart;
var _loc4 = _propStart;
var _loc2 = _propDest - _propStart;
var _loc3 = _timeDest - _timeStart;
var _loc6 = _extra1;
var _loc7 = _extra2;
var _loc5 = _extra1;
switch (_animType.toLowerCase())
{
case "linear":
{
return (_loc2 * _loc1 / _loc3 + _loc4);
}
case "easeinquad":
{
_loc1 = _loc1 / _loc3;
return (_loc2 * (_loc1) * _loc1 + _loc4);
}
case "easeoutquad":
{
_loc1 = _loc1 / _loc3;
return (-_loc2 * (_loc1) * (_loc1 - 2) + _loc4);
}
case "easeinoutquad":
{
_loc1 = _loc1 / (_loc3 / 2);
if (_loc1 < 1)
{
return (_loc2 / 2 * _loc1 * _loc1 + _loc4);
} // end if
return (-_loc2 / 2 * (--_loc1 * (_loc1 - 2) - 1) + _loc4);
}
case "easeoutinquad":
{
if (_loc1 < _loc3 / 2)
{
return (findTweenValue(0, _loc2, 0, _loc1 * 2, _loc3, "easeOutQuad") * 5.000000E-001 + _loc4);
} // end if
return (findTweenValue(0, _loc2, 0, _loc1 * 2 - _loc3, _loc3, "easeInQuad") * 5.000000E-001 + _loc2 * 5.000000E-001 + _loc4);
}
case "easeincubic":
{
_loc1 = _loc1 / _loc3;
return (_loc2 * (_loc1) * _loc1 * _loc1 + _loc4);
}
case "easeoutcubic":
{
_loc1 = _loc1 / _loc3 - 1;
return (_loc2 * ((_loc1) * _loc1 * _loc1 + 1) + _loc4);
}
case "easeinoutcubic":
{
_loc1 = _loc1 / (_loc3 / 2);
if (_loc1 < 1)
{
return (_loc2 / 2 * _loc1 * _loc1 * _loc1 + _loc4);
} // end if
_loc1 = _loc1 - 2;
return (_loc2 / 2 * ((_loc1) * _loc1 * _loc1 + 2) + _loc4);
}
case "easeoutincubic":
{
if (_loc1 < _loc3 / 2)
{
return (findTweenValue(0, _loc2, 0, _loc1 * 2, _loc3, "easeOutCubic") * 5.000000E-001 + _loc4);
} // end if
return (findTweenValue(0, _loc2, 0, _loc1 * 2 - _loc3, _loc3, "easeInCubic") * 5.000000E-001 + _loc2 * 5.000000E-001 + _loc4);
}
case "easeinquart":
{
_loc1 = _loc1 / _loc3;
return (_loc2 * (_loc1) * _loc1 * _loc1 * _loc1 + _loc4);
}
case "easeoutquart":
{
_loc1 = _loc1 / _loc3 - 1;
return (-_loc2 * ((_loc1) * _loc1 * _loc1 * _loc1 - 1) + _loc4);
}
case "easeinoutquart":
{
_loc1 = _loc1 / (_loc3 / 2);
if (_loc1 < 1)
{
return (_loc2 / 2 * _loc1 * _loc1 * _loc1 * _loc1 + _loc4);
} // end if
_loc1 = _loc1 - 2;
return (-_loc2 / 2 * ((_loc1) * _loc1 * _loc1 * _loc1 - 2) + _loc4);
}
case "easeoutinquart":
{
if (_loc1 < _loc3 / 2)
{
return (findTweenValue(0, _loc2, 0, _loc1 * 2, _loc3, "easeOutQuart") * 5.000000E-001 + _loc4);
} // end if
return (findTweenValue(0, _loc2, 0, _loc1 * 2 - _loc3, _loc3, "easeInQuart") * 5.000000E-001 + _loc2 * 5.000000E-001 + _loc4);
}
case "easeinquint":
{
_loc1 = _loc1 / _loc3;
return (_loc2 * (_loc1) * _loc1 * _loc1 * _loc1 * _loc1 + _loc4);
}
case "easeoutquint":
{
_loc1 = _loc1 / _loc3 - 1;
return (_loc2 * ((_loc1) * _loc1 * _loc1 * _loc1 * _loc1 + 1) + _loc4);
}
case "easeinoutquint":
{
_loc1 = _loc1 / (_loc3 / 2);
if (_loc1 < 1)
{
return (_loc2 / 2 * _loc1 * _loc1 * _loc1 * _loc1 * _loc1 + _loc4);
} // end if
_loc1 = _loc1 - 2;
return (_loc2 / 2 * ((_loc1) * _loc1 * _loc1 * _loc1 * _loc1 + 2) + _loc4);
}
case "easeoutinquint":
{
if (_loc1 < _loc3 / 2)
{
return (findTweenValue(0, _loc2, 0, _loc1 * 2, _loc3, "easeOutQuint") * 5.000000E-001 + _loc4);
} // end if
return (findTweenValue(0, _loc2, 0, _loc1 * 2 - _loc3, _loc3, "easeInQuint") * 5.000000E-001 + _loc2 * 5.000000E-001 + _loc4);
}
case "easeinsine":
{
return (-_loc2 * Math.cos(_loc1 / _loc3 * 1.570796E+000) + _loc2 + _loc4);
}
case "easeoutsine":
{
return (_loc2 * Math.sin(_loc1 / _loc3 * 1.570796E+000) + _loc4);
}
case "easeinoutsine":
{
return (-_loc2 / 2 * (Math.cos(3.141593E+000 * _loc1 / _loc3) - 1) + _loc4);
}
case "easeoutinsine":
{
if (_loc1 < _loc3 / 2)
{
return (findTweenValue(0, _loc2, 0, _loc1 * 2, _loc3, "easeOutSine") * 5.000000E-001 + _loc4);
} // end if
return (findTweenValue(0, _loc2, 0, _loc1 * 2 - _loc3, _loc3, "easeInSine") * 5.000000E-001 + _loc2 * 5.000000E-001 + _loc4);
}
case "easeinexpo":
{
return (_loc1 == 0 ? (_loc4) : (_loc2 * Math.pow(2, 10 * (_loc1 / _loc3 - 1)) + _loc4));
}
case "easeoutexpo":
{
return (_loc1 == _loc3 ? (_loc4 + _loc2) : (_loc2 * (-Math.pow(2, -10 * _loc1 / _loc3) + 1) + _loc4));
}
case "easeinoutexpo":
{
if (_loc1 == 0)
{
return (_loc4);
} // end if
if (_loc1 == _loc3)
{
return (_loc4 + _loc2);
} // end if
_loc1 = _loc1 / (_loc3 / 2);
if (_loc1 < 1)
{
return (_loc2 / 2 * Math.pow(2, 10 * (_loc1 - 1)) + _loc4);
} // end if
return (_loc2 / 2 * (-Math.pow(2, -10 * --_loc1) + 2) + _loc4);
}
case "easeoutinexpo":
{
if (_loc1 == 0)
{
return (_loc4);
} // end if
if (_loc1 == _loc3)
{
return (_loc4 + _loc2);
} // end if
_loc1 = _loc1 / (_loc3 / 2);
if (_loc1 < 1)
{
return (_loc2 / 2 * (-Math.pow(2, -10 * _loc1 / 1) + 1) + _loc4);
} // end if
return (_loc2 / 2 * (Math.pow(2, 10 * (_loc1 - 2) / 1) + 1) + _loc4);
}
case "easeincirc":
{
_loc1 = _loc1 / _loc3;
return (-_loc2 * (Math.sqrt(1 - _loc1 * _loc1) - 1) + _loc4);
}
case "easeoutcirc":
{
_loc1 = _loc1 / _loc3 - 1;
return (_loc2 * Math.sqrt(1 - (_loc1) * _loc1) + _loc4);
}
case "easeinoutcirc":
{
_loc1 = _loc1 / (_loc3 / 2);
if (_loc1 < 1)
{
return (-_loc2 / 2 * (Math.sqrt(1 - _loc1 * _loc1) - 1) + _loc4);
} // end if
_loc1 = _loc1 - 2;
return (_loc2 / 2 * (Math.sqrt(1 - (_loc1) * _loc1) + 1) + _loc4);
}
case "easeoutincirc":
{
if (_loc1 < _loc3 / 2)
{
return (findTweenValue(0, _loc2, 0, _loc1 * 2, _loc3, "easeOutCirc") * 5.000000E-001 + _loc4);
} // end if
return (findTweenValue(0, _loc2, 0, _loc1 * 2 - _loc3, _loc3, "easeInCirc") * 5.000000E-001 + _loc2 * 5.000000E-001 + _loc4);
}
case "easeinelastic":
{
if (_loc1 == 0)
{
return (_loc4);
} // end if
_loc1 = _loc1 / _loc3;
if (_loc1 == 1)
{
return (_loc4 + _loc2);
} // end if
if (!_loc7)
{
_loc7 = _loc3 * 3.000000E-001;
} // end if
if (!_loc6 || _loc6 < Math.abs(_loc2))
{
_loc6 = _loc2;
_loc5 = _loc7 / 4;
}
else
{
_loc5 = _loc7 / 6.283185E+000 * Math.asin(_loc2 / _loc6);
} // end else if
_loc1 = _loc1 - 1;
return (-_loc6 * Math.pow(2, 10 * (_loc1)) * Math.sin((_loc1 * _loc3 - _loc5) * 6.283185E+000 / _loc7) + _loc4);
}
case "easeoutelastic":
{
if (_loc1 == 0)
{
return (_loc4);
} // end if
_loc1 = _loc1 / _loc3;
if (_loc1 == 1)
{
return (_loc4 + _loc2);
} // end if
if (!_loc7)
{
_loc7 = _loc3 * 3.000000E-001;
} // end if
if (!_loc6 || _loc6 < Math.abs(_loc2))
{
_loc6 = _loc2;
_loc5 = _loc7 / 4;
}
else
{
_loc5 = _loc7 / 6.283185E+000 * Math.asin(_loc2 / _loc6);
} // end else if
return (_loc6 * Math.pow(2, -10 * _loc1) * Math.sin((_loc1 * _loc3 - _loc5) * 6.283185E+000 / _loc7) + _loc2 + _loc4);
}
case "easeinoutelastic":
{
if (_loc1 == 0)
{
return (_loc4);
} // end if
_loc1 = _loc1 / (_loc3 / 2);
if (_loc1 == 2)
{
return (_loc4 + _loc2);
} // end if
if (!_loc7)
{
_loc7 = _loc3 * 4.500000E-001;
} // end if
if (!_loc6 || _loc6 < Math.abs(_loc2))
{
_loc6 = _loc2;
_loc5 = _loc7 / 4;
}
else
{
_loc5 = _loc7 / 6.283185E+000 * Math.asin(_loc2 / _loc6);
} // end else if
if (_loc1 < 1)
{
_loc1 = _loc1 - 1;
return (-5.000000E-001 * (_loc6 * Math.pow(2, 10 * (_loc1)) * Math.sin((_loc1 * _loc3 - _loc5) * 6.283185E+000 / _loc7)) + _loc4);
} // end if
_loc1 = _loc1 - 1;
return (_loc6 * Math.pow(2, -10 * (_loc1)) * Math.sin((_loc1 * _loc3 - _loc5) * 6.283185E+000 / _loc7) * 5.000000E-001 + _loc2 + _loc4);
}
case "easeoutinelastic":
{
if (_loc1 < _loc3 / 2)
{
return (findTweenValue(0, _loc2, 0, _loc1 * 2, _loc3, "easeOutElastic") * 5.000000E-001 + _loc4);
} // end if
return (findTweenValue(0, _loc2, 0, _loc1 * 2 - _loc3, _loc3, "easeInElastic") * 5.000000E-001 + _loc2 * 5.000000E-001 + _loc4);
}
case "easeinback":
{
if (_loc5 == undefined)
{
_loc5 = 1.701580E+000;
} // end if
_loc1 = _loc1 / _loc3;
return (_loc2 * (_loc1) * _loc1 * ((_loc5 + 1) * _loc1 - _loc5) + _loc4);
}
case "easeoutback":
{
if (_loc5 == undefined)
{
_loc5 = 1.701580E+000;
} // end if
_loc1 = _loc1 / _loc3 - 1;
return (_loc2 * ((_loc1) * _loc1 * ((_loc5 + 1) * _loc1 + _loc5) + 1) + _loc4);
}
case "easeinoutback":
{
if (_loc5 == undefined)
{
_loc5 = 1.701580E+000;
} // end if
_loc1 = _loc1 / (_loc3 / 2);
if (_loc1 < 1)
{
_loc5 = _loc5 * 1.525000E+000;
return (_loc2 / 2 * (_loc1 * _loc1 * ((_loc5 + 1) * _loc1 - _loc5)) + _loc4);
} // end if
_loc1 = _loc1 - 2;
_loc5 = _loc5 * 1.525000E+000;
return (_loc2 / 2 * ((_loc1) * _loc1 * ((_loc5 + 1) * _loc1 + _loc5) + 2) + _loc4);
}
case "easeoutinback":
{
if (_loc1 < _loc3 / 2)
{
return (findTweenValue(0, _loc2, 0, _loc1 * 2, _loc3, "easeOutBack") * 5.000000E-001 + _loc4);
} // end if
return (findTweenValue(0, _loc2, 0, _loc1 * 2 - _loc3, _loc3, "easeInBack") * 5.000000E-001 + _loc2 * 5.000000E-001 + _loc4);
}
case "easeinbounce":
{
return (_loc2 - findTweenValue(0, _loc2, 0, _loc3 - _loc1, _loc3, "easeOutBounce") + _loc4);
}
case "easeoutbounce":
{
_loc1 = _loc1 / _loc3;
if (_loc1 < 3.636364E-001)
{
return (_loc2 * (7.562500E+000 * _loc1 * _loc1) + _loc4);
}
else if (_loc1 < 7.272727E-001)
{
_loc1 = _loc1 - 5.454545E-001;
return (_loc2 * (7.562500E+000 * (_loc1) * _loc1 + 7.500000E-001) + _loc4);
}
else if (_loc1 < 9.090909E-001)
{
_loc1 = _loc1 - 8.181818E-001;
return (_loc2 * (7.562500E+000 * (_loc1) * _loc1 + 9.375000E-001) + _loc4);
}
else
{
_loc1 = _loc1 - 9.545455E-001;
return (_loc2 * (7.562500E+000 * (_loc1) * _loc1 + 9.843750E-001) + _loc4);
} // end else if
}
case "easeinoutbounce":
{
if (_loc1 < _loc3 / 2)
{
return (findTweenValue(0, _loc2, 0, _loc1 * 2, _loc3, "easeInBounce") * 5.000000E-001 + _loc4);
} // end if
return (findTweenValue(0, _loc2, 0, _loc1 * 2 - _loc3, _loc3, "easeOutBounce") * 5.000000E-001 + _loc2 * 5.000000E-001 + _loc4);
}
case "easeoutinbounce":
{
if (_loc1 < _loc3 / 2)
{
return (findTweenValue(0, _loc2, 0, _loc1 * 2, _loc3, "easeOutBounce") * 5.000000E-001 + _loc4);
} // end if
return (findTweenValue(0, _loc2, 0, _loc1 * 2 - _loc3, _loc3, "easeInBounce") * 5.000000E-001 + _loc2 * 5.000000E-001 + _loc4);
}
} // End of switch
trace ("MC TWEEN ### Error on transition: there\'s no \"" + _animType + "\" animation type.");
return (0);
};
ASSetPropFlags(_global, "findTweenValue", 1, 0);
stop ();
HELP ME PLEASE
If you want to see the site please go to http://www.nigol.ae