Guest User

Untitled

a guest
Dec 9th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for(var i:int=0;i<totalLevels;i++)
  2. {
  3.     if(i<LevelsCompleted.levels || i==0)
  4.     {
  5.                                     button[i].updateActiveButtonColors([0xff666666,0xff666666]);
  6. button[1].updateInactiveButtonColors([0xff0000ff, 0xff0000ff]);
  7.     }
  8.     else
  9.     {
  10.        button[i].updateActiveButtonColors([0xff666666, 0xff666666]);
  11.        button[i].updateInactiveButtonColors([0xff666666, 0xff666666]);
  12.     }
  13. }
Add Comment
Please, Sign In to add comment