# Tween Class

**URL:** <https://forum.kirupa.com/t/tween-class/183633>\
**Category:** Uncategorized\
**Created:** [March 28, 2006, 11:09pm UTC](https://forum.kirupa.com/t/tween-class/183633 "2006-03-28T23:09:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mle](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mle](https://forum.kirupa.com/u/mle)\
**Post date:** [March 28, 2006, 11:09pm UTC](https://forum.kirupa.com/t/tween-class/183633/1 "2006-03-28T23:09:52Z")

</div>

I searched for this and didn’t find what I was looking for so I hope it hasn’t already been addressed.  
I’m following the Kirupa Tween Class tutorial and I think I actually understand it. So I went to apply it to one of my movie clips. When I check the syntax it said there was an error with both of these:

> import mx.transitions.Tween;  
> import.mx.transitions.easing.\*;  
> Any ideas why that would come up?  
> Also, I have 18 movie clips. Would I need to apply the tween class to each one individually if I want them to do the same thing?  
> Thanks in advance!!! :hugegrin:

---

<div class="post-metadata">

**Author:** ![serkios](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/serkios/32/608_2.png) [@serkios](https://forum.kirupa.com/u/serkios)\
**Post date:** [March 28, 2006, 11:11pm UTC](https://forum.kirupa.com/t/tween-class/183633/2 "2006-03-28T23:11:05Z")

</div>

Could you show us the exact error message? And are you exporting your file using Actionscript 2.0?

---

<div class="post-metadata">

**Author:** ![mle](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mle](https://forum.kirupa.com/u/mle)\
**Post date:** [March 28, 2006, 11:32pm UTC](https://forum.kirupa.com/t/tween-class/183633/3 "2006-03-28T23:32:51Z")

</div>

This is what I got:

> **Error** Symbol=page1, layer=action, frame=1:Line 1: Syntax error.  
> import mx.transitions.Tween;

**Error** Symbol=page1, layer=action, frame=1:Line 2: Syntax error.  
import mx.transitions.easing.\*;

Total ActionScript Errors: 2 Reported Errors: 2

---

<div class="post-metadata">

**Author:** ![mle](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mle](https://forum.kirupa.com/u/mle)\
**Post date:** [March 28, 2006, 11:33pm UTC](https://forum.kirupa.com/t/tween-class/183633/4 "2006-03-28T23:33:38Z")

</div>

OHH…and no I don’t think I’m using Actionscript 2.0. Could that be the whole problem?

---

<div class="post-metadata">

**Author:** ![serkios](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/serkios/32/608_2.png) [@serkios](https://forum.kirupa.com/u/serkios)\
**Post date:** [March 28, 2006, 11:51pm UTC](https://forum.kirupa.com/t/tween-class/183633/5 "2006-03-28T23:51:35Z")

</div>

Yes try exporting using AS 2.0, that may solve your problems.

---

<div class="post-metadata">

**Author:** ![mle](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mle](https://forum.kirupa.com/u/mle)\
**Post date:** [March 29, 2006, 12:40am UTC](https://forum.kirupa.com/t/tween-class/183633/6 "2006-03-29T00:40:46Z")

</div>

Thanks! Also, I was wondering if I could use this code in conjunction with the tutorial for transitions between external SWFs. In the AS can I use the \_alpha function to tell it to fade in, stop, and then fade out (in the tutorial this is done with motion tweening)?
