enterFrame

I am trying to get a movie to update it’s color after the user clicks on a button and changes the value of Red Green Blue.

How do I set it so that it keeps checking and changes it’s color once the button has been clicked.

this is what I have on my movie.

onEnterFrame = function() {
my_color = new Color(this.window1);
my_color.setTransform(_root.myColorTransform);}