Randomness

here’s a question. Is it possible to randomly change the “tint” of an object that’s tweened on rollOver? I’m not thinking so.

you want to change it during the tween? after the tween? you want to tween the tint or change it with A/S?

I want the tint to be different on each rollOver.

I think this is what you want. Don’t forget to give your button an instance name. In my code its myButton.

on(rollOver){
differentColor = Math.round(Math.random() * 0xFFFFFF);
myColor = new Color(myButton);
myColor.setRGB(differentColor);
}

Hope this helps.

Kyle