Re: [flexcoders] Re: Overriding parent's style in custom component

2008-09-17 Thread Tom Chiverton
On Tuesday 16 Sep 2008, aaronius9er9er wrote: > I think that'll do! I'd be interested in hearing if there's a better > alternative though. Pan's setStyle() suggestion should work. -- Tom Chiverton Helping to widespreadedly entrench supply-chains

[flexcoders] Re: Overriding parent's style in custom component

2008-09-16 Thread aaronius9er9er
Actually, I just got what I'm looking for. The only styles I need to override are backgroundColor and backgroundAlpha, which are both used in Container's createBorder() method. I know I'm never going to want a border/background created by Container for my component so I'm just overriding createBo

[flexcoders] Re: Overriding parent's style in custom component

2008-09-16 Thread aaronius9er9er
Good point. That would work, but I think I would no longer be able to deal with the background color using getStyle('backgroundColor') from my custom component (it wouldn't exist). Essentially I'd have to set a backgroundColor class variable from setStyle(). Not terrible. Any better ideas? ---