Tween Class

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:

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

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

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

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

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)?