Button Colour Change

Hi

Using the code below, I am able to change the colour of a movie clip simply by putting my mouse over a button and allowing the action script to do all the work.

 
btn.onRollover = function() {
my_color = new Color(colourbox);
my_color.setRGB(0x0033FF);
};
btn.onRollout = function() {
my_color = new Color(colourbox);
my_color.setRGB(0xDCAD4E);
};
 

Is it possible to make the colours blend into eachother, creating a smooth transtion purly using action script?

In the past i have seen people use the command “decay” to tell the movie to animate somthing. I think a similar approach is needed to make the colours blend using actionscript.

Its easy to animate this, but im hoping some coding can be of more assistance.

I have attatched a test file that I have been using. Feel free to download it.

Thanks in advance

Mark.N


Lamborghini estoque