A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Trouble with an import

  1. #1
    Senior Member
    Join Date
    Feb 2004
    Posts
    782

    Trouble with an import

    So when compiling, I keep getting this issue:

    1172: Definition fl.transitions:Tween could not be found.

    I use the IDE Adobe Flash CS. Anyone know whats wrong? Do I have to add a class path somewhere?
    Flash Ninja Clan - Games and cartoons

  2. #2
    Senior Member
    Join Date
    Jun 2008
    Posts
    549
    Have you imported the tween class?

    import fl.transitions.Tween;

  3. #3
    Senior Member
    Join Date
    Feb 2004
    Posts
    782
    Yeah, I have the imports, I think I'm missing some sort of plugin or class library. Not sure what I'm doing wrong. Its like my flash doesn't have fl.transitions or something.
    Flash Ninja Clan - Games and cartoons

  4. #4
    Designer, Programmer, Musician angelhdz's Avatar
    Join Date
    Mar 2010
    Posts
    971
    Make a fresh/new .fla document. Put some movieclip on stage, name it whatever you want, and add this script in the first frame of the main timeline to test the Tween class:

    import fl.transitions.Tween;

    var t1:Tween = new Tween (YourClipName, "alpha", null, 0, 1, 50, false);
    Already mastering AS3. It was so fun. Now into Javascript and PHP and all its libraries

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center