PDA

View Full Version : callback, functions, laco tween



jerryj
May 20th, 2005, 09:27 AM
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.

jerryj
May 20th, 2005, 09:30 AM
oops, sorry, I used html code wrappers instead of actionscript,

jerryj.