I would like to know how to apply gradient and corner radius in flex.
Is css the only way? I mean I want to use more of flex properties to make this happen
Can someone give a sample class or code for it?
Thanks
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.
First of all, as you’ve mentioned, these properties can be customized through CSs (
header-colors,background-gradient-colors,highlight-alphas, etc)Secondly, you can use Flash drawing API to create your own shapes in custom (or extended) components, but it’s much more tricky task:
Usage (add
xmlns:test="test.*"to the top level component properties)It’s good to take a look at Graphics class documentation for further info: