How do I make object(s) change colour with AS 2.0 in Flash?

  • Thread starter Thread starter Billy
  • Start date Start date
B

Billy

Guest
I am trying to make an object change its colour when i press a button and it works, the code is:

on (press) {
myColor = new Color(test2);
myColor.setRGB(0x0000ff);

}

This will change the colour of "test2" to blue.
Now im wondering if its possible that the colour changes to (for example) yellow if the button is pressed a second time.
Also, is it possible to change the colour of two or more objects at one time?
appreciate any suggestions :)
 
Java allows you to play online games, chat with people around the world, calculate your mortgage interest, and view images in 3D, just to name a few. It's also integral to the intranet applications and other e-business solutions that are the foundation of corporate computing.
 
Back
Top