|
|
 |
|
|
|
|
|
3 STEP QUICK TUTORIAL
It is assumed that you have good (intermediate level) knowledge of Sprites 1.Create a simple rectangle and Group it as Srpite 2.Name the sprite Object "mySpr" 3.Create a simple button and insert following code in its script tab
on(press) { //new Color object c=new Color("mySpr"); //to change color ofsprite mySpr colToSet=0xEEEEEE; //light gray color hex value EEEEEE c.setRGB(colToSet); }
0x tells that it is a hex value (same as in c++, flash mx).
Downwload the example attached
|
|
|
|