# Twenn Class problem

**URL:** <https://forum.kirupa.com/t/twenn-class-problem/182996>\
**Category:** flash\
**Created:** [March 23, 2006, 12:54am UTC](https://forum.kirupa.com/t/twenn-class-problem/182996 "2006-03-23T00:54:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thinker2501](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@Thinker2501](https://forum.kirupa.com/u/Thinker2501)\
**Post date:** [March 23, 2006, 12:54am UTC](https://forum.kirupa.com/t/twenn-class-problem/182996/1 "2006-03-23T00:54:36Z")

</div>

when calling one of the methods of the tween class there is a parameter for a callBack function. The documentation says that the callBack is called after the tween has finished, but whenever I use a callBack it is called as soon as the tween is started. Anyone know how to fix this?

---

<div class="post-metadata">

**Author:** ![prototype](https://avatars.discourse-cdn.com/v4/letter/p/e19adc/32.png) [@prototype](https://forum.kirupa.com/u/prototype)\
**Post date:** [March 23, 2006, 1:18am UTC](https://forum.kirupa.com/t/twenn-class-problem/182996/2 "2006-03-23T01:18:24Z")

</div>

Use onMotionFinished

From the Help files:

var myTween:Tween = new Tween(img1\_mc, “\_x”, mx.transitions.easing.Strong.easeOut,0, 300, 3, true);  
myTween.onMotionFinished = function() {  
//Your Function Goes Here;  
};

---

<div class="post-metadata">

**Author:** ![Friendly](https://avatars.discourse-cdn.com/v4/letter/f/b5e925/32.png) [@Friendly](https://forum.kirupa.com/u/Friendly)\
**Post date:** [March 23, 2006, 6:13pm UTC](https://forum.kirupa.com/t/twenn-class-problem/182996/3 "2006-03-23T18:13:15Z")

</div>

> **[Is it possible for php to check for file on users computers?](https://www.kirupa.com/forum/showthread.php?t=210964)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

skyo sucks monkey balls!
