Tutorial Navigation
 

     
 Links
 

 
.

 

 Search         Date   
      

SwishMax
:  Change Color Dynamic, 
April 12, 2004  -  by Pemtium  
How to change the color of any object or text dynamically?
View Sample: (roll your mouse over Colored Square)







The only code you need to change the color of any object is this:
NEW COLOR (object).setrgb(HexadecimalColor);
To change the color of an object on rollover or rollout:
onselfevent (rollOver) {
   NEW COLOR (this).setrgb(0x0000FF);
}
onselfevent (rollout) {
   NEW COLOR (this).setrgb(0x00FFFF);
}
 
 

    Total Download: 49 Last Download: 9/08/2008

.

     
 Featured Links