# Using Tween class in AS2.0

**URL:** https://forum.kirupa.com/t/using-tween-class-in-as2-0/231999
**Category:** flash
**Created:** [July 10, 2007, 12:13pm UTC](https://forum.kirupa.com/t/using-tween-class-in-as2-0/231999 "2007-07-10T12:13:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![TheMagicMan](https://avatars.discourse-cdn.com/v4/letter/t/f4b2a3/32.png) [@TheMagicMan](https://forum.kirupa.com/u/TheMagicMan)
#### Post date: [July 10, 2007, 12:13pm UTC](https://forum.kirupa.com/t/using-tween-class-in-as2-0/231999/1 "2007-07-10T12:13:50Z")

</div>

I’m using FlashCS3 with AS2.0. I am trying to create a movieclip button which controls the properties of another movieclip.

In my actions layer I have:  
import mx.transitions.Tween;  
import mx.transitions.easing.\*;

On my movieclip:  
on(release){  
\_root.attachMovie(“myform”,“myform1”,200);  
\_root.myform1.\_x=200;  
\_root.myform1.\_y=200;  
var fading:Tween = new Tween(myform1, “\_alpha”, Elastic.easeOut, 0, 100, 10, true);  
}

It gives me the error message of not being able to load the tween class.  
Can someone help me with this?

Thank you.
