RE: [flexcoders] How to create new custom Style in custom component?

2006-03-23 Thread Stephen Gilson
Sure, there is a chapter on this topic in the Creating Components book at: http://livedocs.macromedia.com/labs/1/flex20beta2/1813.html Stephen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stanislav Zayarsky Sent: Thursday, March 23,

Re: [flexcoders] How to create new custom Style in custom component?

2006-03-23 Thread Anatole Tartakovsky
I believe the simplest way is to look in the generated code - it gives you the better understanding on both code and timing. The code would go like this: .. var style:CSSStyleDeclaration;style = StyleManager.getStyleDeclaration(".yourStyleName");if (!style){style = new

Re: [flexcoders] How to create new custom Style in custom component?

2006-03-23 Thread Stanislav Zayarsky
Thanks Anatole, This helps! Best regards Stanislav On 3/23/06, Anatole Tartakovsky [EMAIL PROTECTED] wrote: I believe the simplest way is to look in the generated code - it gives you the better understanding on both code and timing. The code would go like this: .. var

Re: [flexcoders] How to create new custom Style in custom component?

2006-03-23 Thread Stanislav Zayarsky
Thanks Stephen, I suppose it will work with Flex 1.5 too? Best regards Stanislav On 3/23/06, Stanislav Zayarsky [EMAIL PROTECTED] wrote: Thanks Anatole, This helps! Best regards Stanislav On 3/23/06, Anatole Tartakovsky [EMAIL PROTECTED] wrote: I believe the simplest way is to look in

RE: [flexcoders] How to create new custom Style in custom component?

2006-03-23 Thread Stephen Gilson
That will work for Flex 2.0 only. Stephen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stanislav Zayarsky Sent: Thursday, March 23, 2006 12:13 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to create new custom Style