Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Tween Class not working

Participant ,
Dec 04, 2017 Dec 04, 2017

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

TOPICS
ActionScript
293
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Dec 04, 2017 Dec 04, 2017
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines