FLASH + Change color of letter in grid

I have a grid of letters, and when a button is clicked, it makes all the other letters invisible, but i would like to change the color of the actual letter inside of making all the other letter invisible

function showAnswers() {
      //this function turns off the visibility on all letters except those that belong to a word

      for (var i = 0; i<boardSize; ++i) {
            for (var j = 0; j<boardSize; ++j) {
                  var clip:String = "letter"+i+"_"+j;
                  //if dummy==true then the letter does not belong to a word, so we turn off the visibility
                  if (board[clip].dummy) {
                       board[clip]._visible = false;                  }
            }
      }
}
dkilbyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ddlamCommented:
if (board[clip].dummy) {
                    board[clip]._visible = false;
}else{
                    var my_color:Color = new Color(board[clip]);
                    my_color.setRGB(0xFF0000);
}

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
seifipCommented:
unction showAnswers() {
     for (var i = 0; i<boardSize; ++i) {

          for (var j = 0; j<boardSize; ++j) {
               var clip:String = "letter"+i+"_"+j;

              if (board[clip].dummy) {

                    board[clip]._visible = false;

                    }else{

                    clr = new Color(board[clip]);
                    clr.setRGB(0xFF9900);

               }
          }
     }
}

just change the 0xFF9900 to any color you want (you can find the roght color string in color choose on the Tools panel, just change the # to 0x)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.