Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

creating a rounded button from AS3?

How to create rounded & good looking "OK" and "CANCEL" buttons from AS3 ?

I dont want to use any images for these, just draw them?

like image 931
Tom Avatar asked May 12 '26 06:05

Tom


1 Answers

I'd use a Shape or a Sprite, and draw on it using the graphics proerty something like

var s:Shape = new Shape();
s.graphics.beginFill(0x123123, 1);
s.graphics.drawRoundRect(...);
s.graphics.endFill();

or using a Sprite if you want to attach additional elements on it (like a label)

like image 173
Carlo Avatar answered May 14 '26 21:05

Carlo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!