dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Tweening loop issues

  1. #1
    Junior Member
    Join Date
    May 2009
    Posts
    14

    Tweening loop issues

    I've been creating a few flash projects for my World of warcraft guild and one of the things I've been working on is this:

    http://www.pgn-guild.com/testing2.html

    The achievements are moved entirely by tweens done within a loop. Yet for some reason the 3rd achievement will never retract and I can't figure out why for the life of me.

    Here is the relevant code:

    Code:
    import flash.events.MouseEvent;
    import flash.utils.*;
    import gs.TweenMax;
    import gs.easing.*;
    
    
    var mover:Array = new Array();
    mover.push(Ach1);
    mover.push(Ach2);
    mover.push(Ach3);
    
    
    function MRight (e:MouseEvent):void
    {
            for (var i:int = 0; i < mover.length; i++)
        {        
            if (e.target == mover[i])
                {                
            {
                    TweenMax.to(e.target, .50, {x:-75, overwrite:2});
                    return void;
            }
                }
        }
    }
    
    function MLeft (e:MouseEvent):void
    {
            for (var i:int = 0; i < mover.length; i++)
        {        
            if (e.target == mover[i])
                {                
            {
                    TweenMax.to(e.target, .50, {x:-470, overwrite:2});
                    return void;
            }
                }
        }
    }
    Any help you guys could provide would be awesome.

  2. #2
    a.k.a gltovar deadlock32's Avatar
    Join Date
    May 2001
    Location
    Naperville,IL
    Posts
    489
    on the link you showed us, it third tab down does go back when I tried it on IE7 and Firefox 3. Maybe you need to clear you cache or you posted an old link or something. = D

  3. #3
    Junior Member
    Join Date
    May 2009
    Posts
    14
    Yeah I got some help and fixed it. Forgot to post here. Thanks though!

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