Problem with LACO's colorTo

I have a problem with applying the colorTo to a line that is drawn dynamically.
I have three buttons and when the buttons are clicked the line is moved underneath them. The problem is that the line is supposed to be recolored depending on which button is clicked.

Here is the fla.