Flash - ActionScript - Change fill color of a button in code -


Action script 3 - CS5

I am new to flashing and wondering how the code To change the fill color from Something like this -

btnRed.fillColor = "0xff0000";

Thanks for your comment!

View all properties in a display property , Which is a property called changing paintforms.

The code given below makes it so that a square with black fill color is replaced green:

 var class: size = new size (); Square.graphics.beginFill (0x000000); Square.graphics.drawRect (0, 0, 200, 200); Var whistle: colorantsform = class.transform. Caller transforms; Ct.color = 0x00FF00; Square.transform.colorTransform = ct; AddChild (class); 

Comments