# Playing another tween as the other tween ends

**URL:** <https://forum.kirupa.com/t/playing-another-tween-as-the-other-tween-ends/260736>\
**Category:** flash\
**Created:** [May 19, 2008, 1:14pm UTC](https://forum.kirupa.com/t/playing-another-tween-as-the-other-tween-ends/260736 "2008-05-19T13:14:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerome\_chevreau](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jerome\_chevreau](https://forum.kirupa.com/u/jerome_chevreau)\
**Post date:** [May 19, 2008, 1:14pm UTC](https://forum.kirupa.com/t/playing-another-tween-as-the-other-tween-ends/260736/1 "2008-05-19T13:14:22Z")

</div>

Hi,

I am currently working on a web site and i cannot run a another tween animaton when i click on another button.  
i have a main MC( with 4 buttons on it) on the stage and when i click on a button it animates 2 blocks that have been created at runtime and goes from right to left.  
What i want is when i click on another menu button, the boolean changes and i must be able the rewind the animation and do another but it does not work.I must click twice, once it rewind and the 2nd one it shows the animation…

Please help as it is quite urgent.

[jerome.chevreau@gmail.com](mailto:jerome.chevreau@gmail.com)

Please please

Thanks

---

<div class="post-metadata">

**Author:** ![Pier25](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pier25](https://forum.kirupa.com/u/Pier25)\
**Post date:** [May 19, 2008, 1:24pm UTC](https://forum.kirupa.com/t/playing-another-tween-as-the-other-tween-ends/260736/2 "2008-05-19T13:24:55Z")

</div>

Hi Jerome

Could you post some code?

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [May 19, 2008, 1:27pm UTC](https://forum.kirupa.com/t/playing-another-tween-as-the-other-tween-ends/260736/3 "2008-05-19T13:27:58Z")

</div>

I assume when you say tween you mean timeline tween = bad

you need to script it with tween class

in that case you would have a function

animation function(1 or 0){  
if (var ==1){  
play foreward code  
} else{  
playbackward code  
}  
}

you would call it by animation(1 or 0) 😛  
}

---

<div class="post-metadata">

**Author:** ![Pier25](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pier25](https://forum.kirupa.com/u/Pier25)\
**Post date:** [May 19, 2008, 1:36pm UTC](https://forum.kirupa.com/t/playing-another-tween-as-the-other-tween-ends/260736/4 "2008-05-19T13:36:56Z")

</div>

yeah frame based animation is usually bad…

I think with fuse you can animate frame based animations. Fuse gives you a new property called “\_frame” and it’s possible to tween it using AS. Something like my\_mc.tween("\_frame",20,2)

Edited:  
Well there’s actually a method for doing that my\_mc.frameTo(…);

[http://www.mosessupposes.com/Fuse/fuse2docs/com/mosesSupposes/fuse/Shortcuts.html](http://www.mosessupposes.com/Fuse/fuse2docs/com/mosesSupposes/fuse/Shortcuts.html)
