# Using a tween engine in a class

**URL:** https://forum.kirupa.com/t/using-a-tween-engine-in-a-class/262348
**Category:** Uncategorized
**Created:** [June 5, 2008, 9:49am UTC](https://forum.kirupa.com/t/using-a-tween-engine-in-a-class/262348 "2008-06-05T09:49:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)
#### Post date: [June 5, 2008, 9:49am UTC](https://forum.kirupa.com/t/using-a-tween-engine-in-a-class/262348/1 "2008-06-05T09:49:16Z")

</div>

Hello,  
I want to use a simple tween engine (mc\_tween.as) with a custom Class of mine.

Basically, so when one Rolls over the MC instance, it tweens to the side.

I just cannot get my custom class to communicate with the tween class though! therefore it just doesn’t work.

Can anyone help me solve this problem? Is there a line of code to let the actionscript codes to access each other?

(-:

---

<div class="post-metadata">

### Author: ![creatify](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@creatify](https://forum.kirupa.com/u/creatify)
#### Post date: [June 5, 2008, 1:50pm UTC](https://forum.kirupa.com/t/using-a-tween-engine-in-a-class/262348/2 "2008-06-05T13:50:20Z")

</div>

I’m guessing mc\_tween.as is not a Class correct? Or is it an AS1 class? It probably won’t be easy to add to your Class if mc\_tween.as not a Class itself.

If its not a class, I’d actually find and use a different Tween Class - like TweenLite for example - something thats Class based and easily imported into your own class.

Hope this helps

---

<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: [June 5, 2008, 2:57pm UTC](https://forum.kirupa.com/t/using-a-tween-engine-in-a-class/262348/3 "2008-06-05T14:57:33Z")

</div>

urg this topic was done not that long ago _collaspes_
