# Callback, functions, laco tween

**URL:** <https://forum.kirupa.com/t/callback-functions-laco-tween/90756>\
**Category:** Uncategorized\
**Created:** [May 20, 2005, 1:27pm UTC](https://forum.kirupa.com/t/callback-functions-laco-tween/90756 "2005-05-20T13:27:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerryj](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jerryj](https://forum.kirupa.com/u/jerryj)\
**Post date:** [May 20, 2005, 1:27pm UTC](https://forum.kirupa.com/t/callback-functions-laco-tween/90756/1 "2005-05-20T13:27:47Z")

</div>

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:

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

```

and the function is:

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

```

Does anyone recognize this problem or knows an answer?

thank you,  
Jerryj.
