views:

285

answers:

0

Hi,

I am building custom as3 flex component with Flex3. My component has a style:

[Style(name="rollOverColor", type="uint", format="Color", inherit="no")]

Everything works fine until I include both my component and a LinkButton into MXML application. Flex builder tells that there is an error in the application when I try to compile it (with no more details).

After some digging I found that the LinkButton has the same style with inherit="yes". If I change inherit="no" to "yes" in my component, everything works fine. However I don't understand why I can't have "no" here. This means I could come up with a conflict anywhere and I should use some very custom style names, which would make my component less attractive, as users won't be able to guess style names. Can this conflict be resolved in some way?

Thank you,

Antanas