Hi
having some difficulty getting the handlers working with the built-in Tween 
class

also, does the Tween class actually exist in more than one place?


//CODE START

import mx.effects.*;
import mx.transitions.easing.*;

function myTweenFunc(){

        myMC.onTweenUpdate = function(value) {
                this._x = value;
        }

                        
        var tw = new Tween(myMC,-310, 20, 500,false);
        tw.easingEquation = Regular.easeInOut;
        tw.FPS=61;

         //the following handler doesn't work!!!!
        tw.onMotionFinished=function(){
        trace('finished moving lance');
         }

}
myTweenFunc();

//CODE END


Any suggestions?
Thanks in advance
Jim bachalo

[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca
--------------------------------------------
"...all improvisation is life in search of a style."
             - Bruce Mau,'LifeStyle'
_______________________________________________
[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