I need a button that has a triangle shape.
how to make a custom component like a triangle button in flex?
what class should i override? updateDisplayList()? or layoutChrom()?
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.
Depending on how complex you want the button to be you might be able to get away with using a process like this – except make the color outside the triangle the same for the ‘clicked’ and ‘unclicked’ states. Only change the color inside the triangle for the selected state.
If you need something more complex you can start with this or this for guidance.