# Simple Tween Script?

**URL:** <https://forum.kirupa.com/t/simple-tween-script/204909>\
**Category:** Uncategorized\
**Created:** [October 24, 2006, 2:56pm UTC](https://forum.kirupa.com/t/simple-tween-script/204909 "2006-10-24T14:56:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pablo\_2006](https://avatars.discourse-cdn.com/v4/letter/p/c67d28/32.png) [@pablo\_2006](https://forum.kirupa.com/u/pablo_2006)\
**Post date:** [October 24, 2006, 2:56pm UTC](https://forum.kirupa.com/t/simple-tween-script/204909/1 "2006-10-24T14:56:59Z")

</div>

Hi, as usual i’ve gone way overboard. I simply need 8 menu buttons to slide into view, one after the other, and align at the side. I’ve scripted it and it works, but the script is huge for what it acheives. Kind of wish i’d just tweened the ■■■■ thing on the timeline.

Are there any simple scripts out there that I can learn the error of my ways from?

---

<div class="post-metadata">

**Author:** ![rhamej](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rhamej](https://forum.kirupa.com/u/rhamej)\
**Post date:** [October 24, 2006, 5:14pm UTC](https://forum.kirupa.com/t/simple-tween-script/204909/2 "2006-10-24T17:14:31Z")

</div>

How bout positng your code and let us try to make it better =)

---

<div class="post-metadata">

**Author:** ![BlueEyedMonster](https://avatars.discourse-cdn.com/v4/letter/b/b3f665/32.png) [@BlueEyedMonster](https://forum.kirupa.com/u/BlueEyedMonster)\
**Post date:** [October 24, 2006, 7:48pm UTC](https://forum.kirupa.com/t/simple-tween-script/204909/3 "2006-10-24T19:48:57Z")

</div>

You might want to try using the [Laco tweens](http://laco.wz.cz/)  
then you’d just have to do something like this:

```auto

buttons.slideTo(x coordinate, y coordinate, number of seconds it should take)

```

I resisted using Laco tweens when I was just learning flash because for some reason I thought it would be harder. Little did I know it makes AS friggin easy.

---

<div class="post-metadata">

**Author:** ![hetlicht](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@hetlicht](https://forum.kirupa.com/u/hetlicht)\
**Post date:** [October 24, 2006, 7:51pm UTC](https://forum.kirupa.com/t/simple-tween-script/204909/4 "2006-10-24T19:51:22Z")

</div>

Lacos tweens is the way to go my friend.

Cheers.

Hetlicht
