Help with the onMotionFinished


    private function scaleMc(mc:MovieClip, a:Number, z:Number):Boolean {
        var elasticWidth:Tween = new Tween(mc, "_width", Elastic.easeOut,a,z,3,true);
        var elasticHeight:Tween = new Tween(mc, "_height", Elastic.easeOut,a,z,2,true);
        elasticHeight.onMotionFinished = function () {isFinished = true}
        trace(isFinished);
        return isFinished;
    }

This function is declared in a custom class.
Is that true that the onMotionFinished cant work within a custom class? (isFinished always return false which is its default value)

Any helps would be great

No it’s just that the onMotionFinished function is called after the scaleMC function has returned.

Yes, I just figure that out.
Thanks