Ok, I have made a function to change the color (combineRGB), it works well with the following stuff, changing the color of "ball1"

ball1Color = new Color ( "ball1" );
ball1Color.setRGB (combineRGB ( 201, 0, 0 ));

but now I want to change the color of "ballx" (x = int)

x = 1;
theName = eval ( "ball" + x)
objectColor = eval ( theName + "Color" );
objectColor = new Color ( theName );
objectColor.setRGB (combineRGB ( 201, 0, 0 ));

why doesnt it work?
whats wrong?

thx