Skip to main content
Inspiring
December 4, 2017
Question

Tween Class not working

  • December 4, 2017
  • 1 reply
  • 311 views

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 281046: 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

This topic has been closed for replies.

1 reply

Inspiring
December 4, 2017

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.