Callback, functions, laco tween

hi ,

it seems to me that when you use laco tweens and callback a function, you can’t pass data in that function, because the function won’t wait until the tween is finished but is being carried out right away.

For instance, I want to tween movieclip MC:

MC.tween('_x', 100, 0.5, 'linear', enableButtons(button1, button2));

and the function is:

function enableButtons(a,b){
a.enabled=true;
b.enabled=true;
}

Does anyone recognize this problem or knows an answer?

thank you,
Jerryj.