This content has been marked as final. Show 4 replies
use Button class set it's cornerRadius to 0.
anyway when I try that I get this error
1119: Access of possibly undefined property cornerRadius through a reference with static type mx.controls:Button.
I figured out I haved to declare the cornerRadius in a style sheet in mxml and then assign the style name to my button's styleName property;
and then :
button.styleName = "myCustomButtonStyleName";
thanks atta707 !
You can also do button.setStyle('cornerRadius', 0);