Menu

Problem when setting TweenMode & DurationMode

Help
Jan
2006-06-16
2013-04-01
  • Jan

    Jan - 2006-06-16

    Hi everyone!

    I'm currenty trying out AnimationPackage
    and I ran into a problem concerning the Animation class. This might be a bug but I'm currently guessing that I did something wrong somewhere along the way...

    So, I'm trying to set up a simple Animation instance where 3 movieclips (mc1, mc2 and mc3) are moved across the screen with different starting points. All of this works well, as long as I don't
    change the TweenModes and DurationModes of the AnimationCore class.
    Then only the first tween starts, the others just don't happen. Does anyone know what the deal is?

    Here's the code:

    import  de.alex_uhlmann.animationpackage.*;
    import  de.alex_uhlmann.animationpackage.animation.*;
    import  de.alex_uhlmann.animationpackage.drawing.*;
    import  de.alex_uhlmann.animationpackage.utility.*;
    import  com.robertpenner.easing.*;

    APCore.initialize();
    APCore.setFPS(31);

    // These are the two lines of code that break the functionality!
    AnimationCore.setTweenModes(AnimationCore.FRAMES);
    AnimationCore.setDurationModes(AnimationCore.MS);

    var a = new  Animation();
    a.addChild(new Move(mc1, 390, 93), 0, 1000);
    a.addChild(new  Move(mc2, 390, 215), 300, 1500);
    a.addChild(new Move(mc3, 390, 347), 1000,  3000);
    a.animationStyle(3000, Expo.easeOut);
    a.animate(0,  100);

    Thanks in advance!

     
    • Alex Uhlmann

      Alex Uhlmann - 2006-10-20

      Hi Jan,

      Good news, it's fixed! I've just done an update on AP, this was one of the bugfixes.

      Best,
      Alex

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.