Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have the following problem and wondering whether you guys can help me. I have intergrated a third-party flex component in my Flex application but the component inherits the app style I have defined in a css and included in the root node as good practices suggest. I need lo leave alone the component' style otherwise the buttons inside such component will look bad.

I tried to override the style/skin inside the parent container using setStyle without success. Basically it would be enough if I can override the s|Button style I have defined in the css file.

How can I achieve this?

Thanks in advance Best Regards

share|improve this question
    
What component are you using? Most likely just create a style for that component which uses the default style settings instead of the inherited ones from your app. –  JeffryHouser Jun 13 '13 at 12:56
    
I cannot access the component's source I just have the swc available. How can I crate a style for that component with default style settings. Could you plese show me code? Thanks –  MadBlack Jun 13 '13 at 13:19
    
You'll have to look at the documentation for the component you're using for information on that component's styles. Then you can figure out what is inherited and set it that way. –  JeffryHouser Jun 13 '13 at 13:31
    
Component's documentation says nothing. I tried to leverage the Flex style inheritance but no results achieved so far. –  MadBlack Jun 13 '13 at 15:05
1  
You'll need to go back to the component's creator, then to request documentation on the component's styles. Or you could review code if you have it. Otherwise, you're stuck guessing which could be difficult. What component are you using? –  JeffryHouser Jun 13 '13 at 15:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.