Tween Class Help Please

Out of context: Reply #6

  • Started
  • Last post
  • 12 Responses
  • visualplane_0

    When I have one tween here it works, but when I have 4 sets of tweens nothing happens. What's wrong here?:

    import fl.transitions.Tween;
    import fl.transitions.easing.*;

    buttonSectionA.addEventListener... , SectionA);
    function SectionA(event:MouseEvent):void
    {
    var myTweenA:Tween = new Tween(mainBox, 'x', Strong.easeOut, 0, 65, 1, true);
    }

    buttonSectionB.addEventListener... , SectionA);
    function SectionB(event:MouseEvent):void
    {
    var myTweenB:Tween = new Tween(mainBox, 'x', Strong.easeOut, 0, -831, 1, true);
    }

    buttonSectionC.addEventListener... , SectionA);
    function SectionC(event:MouseEvent):void
    {
    var myTweenC:Tween = new Tween(mainBox, 'x', Strong.easeOut, 0, -1731, 1, true);
    }

    buttonSectionE.addEventListener... , SectionA);
    function SectionE(event:MouseEvent):void
    {
    var myTweenD:Tween = new Tween(mainBox, 'x', Strong.easeOut, 0, -2631, 1, true);
    }

View thread