Script contains errors when using import?

Hi there,

Been awhile since i last used flash 8, but a simple import gives me the following error message

Error Scene=Page 1, layer=Script 0, frame=1:Line 1: Syntax error.
import mx.transitions.Tween;

Error Scene=Page 1, layer=Script 0, frame=1:Line 2: Syntax error.
import mx.transitions.easing.*;

Total ActionScript Errors: 2 Reported Errors: 2

What can be wrong with these two lines of code?


import mx.transitions.Tween;
import mx.transitions.easing.*;

Any ideas?

Solved: publish settings were wrong (still on AS 1.0 and not AS2.0)