Copy link to clipboard
Copied
Hi I am trying to check out the Tween class in AS3.
I am importing the class:
import fl.transitions.Tween;
import fl.transitions.easing.*;
And then using it in code such as:
myTween = new Tween(emily_mc, "x", Elastic.easeOut, 30, 500, 3, true);
But I get n an error implying that the Tween class isn't imported:
Emily Demo/MC1.as, Line 44, Column 28 | 1046: Type was not found or was not a compile-time constant: Tween. |
everything i can find onlne suggest sthat the Class should be imported!
NB I am using Animate CC 2018.
Have also tried in Flash CS6 abnd get same error.
Any help/suggestions appreciated.
Best Tommy Banana
Copy link to clipboard
Copied
I have found a solution using Greensock: Tween Lite which works fine.
But would be interested to find out why Tween class doesn't work.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now