5 Replies Latest reply on Apr 16, 2009 6:14 PM by kglad

    Can't get tween to work in action script...

    wurdup Level 1

      The code works below:

       

      if (currentpage = "friends" {
                          new Tween (friends_btn.secondLine.para1,"_alpha",Regular.easeOut,100,0,2,true);
                      }

       

       

       

      but why won't this work?

       

       

      new Tween (this[currentpage+"_btn"].secondLine.para1,"_alpha",Regular.easeOut,100,0,2,true);