- status: open --> open-fixed
it appears that the onStart event is being broadcast on
effects before the actual effect starts to animate. in
the following example, the onStart event for the
rotation is broadcast when the first child of the
sequence (move) begins and then again when the rotation
begins. to see the anomaly:
1. in the root create a movieclip instance called "mc".
2. put some graphic in it.
3. paste the following code and compile:
import de.alex_uhlmann.animationpackage.*;
import de.alex_uhlmann.animationpackage.animation.*;
import de.alex_uhlmann.animationpackage.drawing.*;
import de.alex_uhlmann.animationpackage.utility.*;
import com.robertpenner.easing.*;
APCore.initialize();
var myListener:Object = new Object();
APCore.addListener(myListener);
var masterSequence:Sequence = new Sequence();
var tEffect:Move = new Move(mc, [0,0, 500,0]);
masterSequence.addChild(tEffect);
var tEffect:Rotation = new Rotation(mc, 90,2000);
var tListener:Object = new Object();
tEffect.addEventListener("onStart", tListener);
tListener.onStart = function(eventObject:Object){
trace ("onStart called");
}
masterSequence.addChild(tEffect);
masterSequence.animationStyle(8000, Circ.easeInOut);
masterSequence.animate(0, 100);
expected results: the first trace inside the onStart is
not called when the move sequence begins.
actual results: the first trace insdie the onStart
function is called when the move sequence begins and
then again when the rotation sequence begins.