Quick Help with random color

one of the tutorials give this code for random color

in an example with a movieClip with the name of myClip

how would you make it change color. This should be really easy for most of you, and should be for me too… but for some reason, i cant get it to work.

Heres the code:

myColor = Math.round( Math.random()*0xFFFFFF );
myColoredObject = new Color (_root.square);
myColoredObject.setRGB(myColor);

//sky

ultra High props to first person to answer this!!!