Right, the easiest thing to do is set up frames with a stop function in each, with them covering all the colours you want involved then having a script that randomly selects a number, for example 0, 1, 2, 3, or 4. The have if functions where if the random number = 0 goto and stop the frame with red, repeat for every colour, then on the frame with red, don't have red as on of the 'choosable' colours, ie, if you have 6 colours, you need 5 if functions, one for every colou bar the colour of the frame the script is going in. Stick this on every frames and there you go. It would work better if you set a timer for i dunno, half a second before it picks a number and changes colour. As for setting colour codes, not sure about doing that in AS2.