Get color value through variable

hi!

i read the tutorial on this site abt changing the color values of an object, or of a movie clip. it is really nice explained, thanks. my question is:

how can i get the value of a color from a variable. if i click the button, some rgb value should be stored in a variable and through some function i should get it. i wrote the function something like this:


on (press) {
var colorful = new Color("_root.shapes");
colorful.setRGB(myVariable);
}


but it’s not working. can anyone help me?

ssjogus

** i am a designer, so do not know much of action script !!

ssjogus