Box colour change

I have a box which covers part of the stage and I want this box to change colour, but not any colours just a few that I pick. I want the transition between the colours to be as smooth as possible and not too fast. Can this be done with AS?:crazy:

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=22838

Thanks for the link lost but where do i put the code?

in the main timeline? remember to use your movie clips name rather than ‘myMovieClip’ or ‘this’

Ok I have created an example of the effect I want to achieve with AS! I have attached my file and I hope that someone can help me with the code so that the tweening between the colours that I have used is smooth! Perhaps the whole thing can be done without the use of several instances of the same bg symbol, as I have done now?

Thanks :tie:

you want the color in the background to cycle?

YES!

With your setup it would be easiest to just right click between each keyframe and choose “Insert Motion Tween” to create a motion tween between each one.

Considering you are using gradients you could only fade them either through tweens or via beginGradientFill() in the drawing API with Flash MX. And lemme tell ya, that beginGradientFill() isn’t for beginners :hangover: