![]() ![]() ![]() |
|
![]() | |
![]() | |
![]() |
Main class of MovieClip Tweening prototypes, prototypes only parses arguments (and does not store any variables to MovieClip) to instance of class named $tweenManager
autoStop - boolean, default to false, determines if running tweens may be automatically stoped . This property is useful when you dont like to write stopTween() before tween() method call, stopTween(properties) is called automatically
example:
$tweenManager.autoStop = true;
broadcastEvents - boolean, default to false, determines if tweening MovieClip may broadcast events (based on AsBroadcaster), useful for 1 - n relations:
onTweenStart
onTweenUpdate
onTweenEnd
example:
$tweenManager.broadcastEvents = true;
my_obj = {};
my_obj.onTweenStart = function(){
trace('my_obj onTweenStart');
}
my_obj.onTweenUpdate = function(){
trace('my_obj onTweenUpdate');
}
my_obj.onTweenEnd = function(){
trace('my_obj onTweenEnd');
}
my_second_obj = {};
my_second_obj.onTweenEnd = function(){
trace('my_second_obj onTweenEnd');
}
my_mc.onTweenEnd = function(){
trace('my_mc onTweenEnd')
}
my_mc.addListener(my_obj);
my_mc.addListener(my_second_obj);
my_mc.addListener(my_mc);
my_mc.tween('_x',200);
updateInterval: numeric value of calling update function.
0 is default - onEnterFrame; values higher than 0 are controlled with setInterval
Methods:
pauseAll() : pauses all runing and delayed tweens
unPauseAll() unpauses all runing and delayed tweens
stopAll() : stops all running and delayed tweens
Tips:
I some cases, when you upgrade from older version, and you having trouble to running tweens, use following technique:
use (trace($tweenManager)), if you see [object Object] or [AS2 tweenManager [version nr]], and version nr is lower you have installed, that means older version of tweenManager is loaded. You must delete the precompiled class file (*.aso) in directory:
WinXP:
C:\Documents and Settings\[username]\Local Settings\Application Data\Macromedia\Flash MX 2004\[language]\Configuration\Classes\aso\
zigo.tweenManager.aso
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |