1 Reply Latest reply on Feb 8, 2007 3:42 PM by kglad

    Changing color of a nested movie clip

    Jurgamund
      Ok, so I can change the color of a movie clip fine using actionscript. But say that my movie clip contains an outline and a color inside, and I only want the color inside to change. I figured I should separate the movieclip into two separate clips in order to to this. So now, I need to know how to changed the color of a nested clip.

      circle consists of circleOut and circleFill movie clips

      container.attachMovie("circle","circle1",1);
      var circlefillcolor = new Color(container["circle1"]);
      circlefillcolor.setRGB(0x333333);

      This code will turn the whole circle including the outline gray.

      container.attachMovie("circle","circle1",1);
      var circlefillcolor = new Color(container["circle1"].circleFill);
      circlefillcolor.setRGB(0x333333);

      This code won't do anything color related.

      I know I am doing it wrong but I don't know how to fix it. Any suggestions?