3 Replies Latest reply on Nov 16, 2007 2:45 PM by clbeech

    This will be easy

    jzauner
      Here's what I've got:

      var color1=new Color ("buttons_mc.button1_mc.buttonBG_mc");
      color1.setRGB(0xFFCCCC);

      I need an array that will create the above but will change the instance name to accomodate more buttonBG_mcs. Something like this: "buttons_mc" + i + "_mc"

      I think the array would be part of a function that would change the color of buttonBG_mc over multiple instances.

      I've been learning actionscript for about five minutes, but I think this is a routine problem to solve. I'm going to look through my book for the answer, but I thought I'd throw the question out just in case I can't find it.

      Thanks in advance.