Color with AS3

i used to use setRGB in AS2 like this:

myColor.setRGB(myColors[randomColor]);


my goal is to have a movie clip’s color change randomly when i press a key.

does setRGB still work in AS3?

if so, how?

big thanks!