How could i use percentage width for buttons at tooglebuttonbar, because i dont want to use the width property.
How could i use percentage width for buttons at tooglebuttonbar, because i dont want
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To set percentage width of a component:
In MXML, you can set the width
property using a percentage value.
In AS3, use the percentWidth
property.
However, if you want to set the percentage width of buttons in a toggleButtonBar you can look at the buttonWidth style, but I suspect that doesn’t accept percentages. If not, you’re going to have to extend the component and re-write the updateDisplayList() method to size and position the buttons based on a percentage.