Re: [flexcoders] Flex2 :: Component-Inheriting Styles :: Help

2006-03-14 Thread Manish Jethani
On 3/14/06, Michael Schmalle [EMAIL PROTECTED] wrote: Lets say we have Component and SubComponent(composite inside Component, queued in Component.allChildrensList). 1) SubComponent uses getStyle(sizerThickness) How do I get this to where you call Component.setStyle(sizerThickness) and

Re: [flexcoders] Flex2 :: Component-Inheriting Styles :: Help

2006-03-14 Thread Michael Schmalle
Hi Manish, I understand what you wrote, I guess my question is more about the implementation of getStyle(). If you have a sub component that needs to access 'sizerThickness', and it's a composited component that stands on it's own as a 'component', should I declare that style on the Host

Re: [flexcoders] Flex2 :: Component-Inheriting Styles :: Help

2006-03-14 Thread Manish Jethani
On 3/14/06, Michael Schmalle [EMAIL PROTECTED] wrote: I understand what you wrote, I guess my question is more about the implementation of getStyle(). If you have a sub component that needs to access 'sizerThickness', and it's a composited component that stands on it's own as a

Re: [flexcoders] Flex2 :: Component-Inheriting Styles :: Help

2006-03-14 Thread Michael Schmalle
Manish, H I feel like an idiot! I forgot the styleName pointer. OMG! Your right, this is where I messed up. I guess I am doing tomany things at once. I feel like a newbie right now man. Thanks a lot. PS Is it convention now that you put all child creation calls in an if() statement? I

Re: [flexcoders] Flex2 :: Component-Inheriting Styles :: Help

2006-03-14 Thread Michael Schmalle
BTW, I just added that simple little line and it works just like expected. Well, who says wasting hours on a solution that takes 1 second is a bad thing?! :-) Peace, MikeOn 3/14/06, Michael Schmalle [EMAIL PROTECTED] wrote: Manish, H I feel like an idiot! I forgot the styleName

Re: [flexcoders] Flex2 :: Component-Inheriting Styles :: Help

2006-03-14 Thread Manish Jethani
On 3/15/06, Michael Schmalle [EMAIL PROTECTED] wrote: PS Is it convention now that you put all child creation calls in an if() statement? I thought createChildren() only ran once. Did this change in Flex2? `createChildren` only runs once, but a subclass can override `createChildren` and

Re: [flexcoders] Flex2 :: Component-Inheriting Styles :: Help

2006-03-14 Thread Michael Schmalle
Oh yeah, They were doing that back with Flex1, got ya Thanks, Peace, MikeOn 3/14/06, Manish Jethani [EMAIL PROTECTED] wrote: On 3/15/06, Michael Schmalle [EMAIL PROTECTED] wrote: PS Is it convention now that you put all child creation calls in an if() statement? I thought

[flexcoders] Flex2 :: Component-Inheriting Styles :: Help

2006-03-13 Thread Michael Schmalle
Hello, Lets say we have Component and SubComponent(composite inside Component, queued in Component.allChildrensList). 1) SubComponent uses getStyle(sizerThickness) How do I get this to where you call Component.setStyle(sizerThickness) and through inheriting this style, SubComponent can use