For rounded corners sometimes cornerRadius is not enough…

Have you ever tried to use cornerRadius on a HBox for example and when you compiled your Flex code, the corners of the HBox were still squared…Well the thing is that you have to make one other things to get cornerRadius to work. You have to put the borderStyle property of your HBox to solid.

In the example below you can see one HBox that does not have borderStyle=”solid” and the other one that does, and the difference is obvious 🙂 (again if you click on the picture it will take you to the actual application)

If for example you do not want to see the border is shown when we set borderStyle to solid just add the borderThickness to 0 (with borderThickness=”0″).

The code of application is in the picture below.



  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: