I have a movie clip right now (a lion) and in it are two color movie clips, the ones I’m changing the color of, and some shading effects, etc. However, the code I’m using only changes one instance of the lion movie clip and I’d like to change all of them. This is my current code, on frame 1 of a movie clip with the sliders in it:
var cmane:Color = new Color("_root.lion.colormane");
this.onEnterFrame = function() {
red.text = redSlider.ratio;
green.text = greenSlider.ratio;
blue.text = blueSlider.ratio;
myRed = (redSlider.ratio);
myGreen = (greenSlider.ratio);
myBlue = (blueSlider.ratio);
cmane.setRGB(myRed<<16|myGreen<<8|myBlue);
};
I tried creating a variable (just the myRed, my Green, my Blue combination) in the slider clip and have the color defined in the lion clip as that variable, but that didn’t work. Any suggestions?
Nevermind, I fixed the problem. Turns out I just had to put the code inside the lion movie clip…