I'm trying to create a small app that allows you to change
the colour of several movie clips. So far I've got several swatches
that change each movie clip using the setRGB() function and that
My client has asked for a preview of the colour change
though. The idea is when you roll over a swatch it will change the
movie clip color. If you roll out without clicking and applying the
color it will revert back to the color before you rolled over the
swatch. If you did click while hovering and set the color it will
keep that color.
My first thought was to use getrgb on the current color and
use it in the setrgb function of the temporary color to change back
but it seems you can only use rgb values, not strings or variables?
Any suggestions on this would be greatly appreciated!
Why would you think you can't use a variable? As long as the
variable is a
number with an appropriate color value it will work fine.
should be using the ColorTransform class, Color is