When a user clicks a field I want the color to change. Each click will result in a different color (of 5). I assume I need an array but am currently unable to get it to work.
I have the following code on a mouseUp:
function changeColor()
{
var changeColor= new Array(5)
changeColor[0]="10,100,50";
changeColor[1]="100,120,70";
changeColor[2]="80,10,30";
changeColor[3]="20,120,65";
changeColor[4]="15,150,50";
var x=0;
for (x=0; x<5; x++)
{
TextField1.fillColor = changeColor[x];}
}