Color tween shape with AS only. how can i do?

i’m doing a project that i need to do color shape tweens and i’m doing it the stupidest way but it’s the only way that i know… i’m doing all the probabilities but i’m sure this can be done easily with action script. in this example that i’m show i only have 3 colours but in my project i’ll need to use 6 colours and 5 diferent objects and it makes a lot of probabilities so i’d like some help… PLEASE :puzzled:

check my fla to see how i have done this.

Please help me

Thanks in advance