Forum Moderators: open
import mx.transitions.Tween;
import mx.transitions.easing.*;
new Tween(hntitle_mc,"_y",Elastic.easeOut,hntitle_mc._y,181,15,false);
I keep getting syntax errors for the lines of code importing my classes but don't know how to change it to reference these classes correctly.
Apologies if this is a stupid question, I have tried looking at the directory struct. in the Adobe app folder and using that as my directory path...
Make sure your publication settings are set for AS3, not AS2. It's possible (probably?) the class you're using is AS3. If it's set for AS2, it wil do nothing or error.
Second, the class files need to be either in the same directory or in the directory path you specify. When uploading, make sure this structure remains consistent. So I **THINK** this
import mx.transitions.Tween;
Means you have a directory in the same directory as your fla/swf named mx, which contains a directory transitions, which contains the class Tween.as.
directory/mx/transitions/Tween.as