Have you tried listening for the "onEnd" event of the MoveOnCurve instance?

// pseudo code

import mx.utils.Delegate;
import de.alex_uhlmann.animationpackage.animation.*;
import com.robertpenner.easing.*;

function curveEndHandler(curve):Void {
    trace("curveEndHandler");
}

// replace params with real values
var myMOC:MoveOnCurve = new MoveOnCurve(mc, points, duration, easing);
myMOC.addEventListener("onEnd", Delegate.create(this, this.curveEndHandler));
myMOC.animate(0,100); // or myMOC.run();

// end pseudo code

regards,
Muzak

----- Original Message ----- 
From: "Wendy Richardson" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, October 23, 2006 10:30 PM
Subject: [Flashcoders] "animationpackage" library, onCallback ?


> Animationpackage: That's a fun library, has taken me too many hrs to get to 
> where I almost want to go.
>
> Now I have 2 animations on curves, want them to run one after each other, and 
> trying to start a second animation at the completion 
> of the first, and I am trying to use "onCallback" from said libraries.
>
> As directed, I add:
>
> /var myListener:Object = new Object(); APCore.addListener(myListener); /
>
> I add onCallback to the animationStyle line:
>
> /...code for first animation... works fine....//
> myMOC.animationStyle(3000,Sine.easeInOut,"onCallback"); /
>
> / /and later try to trace at animation's end:
>
> myListener.onCallback = function(){ trace("onCallback"); }
>
> I get no indication that I have reached the last function.
>
> ANyone got a working example, a few statements, of getting the onCallback 
> working?
>
> Thanks Wendy
>


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to