highlighting = new Color(_root.buttonything);Pretty confusing chunk of code, isnt it? It might seem a bit less confusing if I tell you that its actually a great deal like setRGB. Ive set a new Color object named highlighting, and then created a new generic object named buttonhighlight to hold the following values:
buttonhighlight = new Object();
buttonhighlight = { ra: '40', rb: '44', ga: '50', gb: '112', ba: '100', bb: '90', aa: '100', ab: '55'};
highlighting.setTransform(buttonhighlight);
ra: Percentage (-100 to 100) of the red value in an RGB spectrum.
rb: Offset (-255 to 255) for red.
ga: Percentage of the green value.
gb: Offset of the green.
ba: Percentage of the blue value.
bb: Offset of the blue.
aa: Percentage for alpha/opacity.
ab: Offset for alpha.
Tweaking these values allows you to adjust how much the hue of the object is shifted in each color that forms the overall blend (red, green, blue) to adjust the tint, as well as the brightness and opacity. Youll have play around with them a little to get the hang of it.
Once those values are defined, they can be assigned to the movie clip with the setTransform command the last line of code above, by using the two objects created to link them back to the instance of the movie clip.


