RE: [flexcoders] Loaded Runtime Style Sheet rendering
Claudia, You might also look for the StyleEvent.COMPLETE event that is triggered on the IEventDispatcher that is returned from calling StyleManager.loadStyleDeclaraitions. So, you'll have code like this: var eventDispatcher:IEventDispatcher = StyleManager.loadStyleDeclarations("beige.swf"); eventDispatcher.addEventListener(StyleEvent.COMPLETE, doStuff); joan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Sunday, February 03, 2008 9:36 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Loaded Runtime Style Sheet rendering There should be an updateComplete after the CSS SWF is loaded. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claudia Barnal Sent: Sunday, February 03, 2008 11:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Loaded Runtime Style Sheet rendering Hi, Is there any kind of event that is dispatched once a runtime style sheet (theme) is loaded to an application and the change is _visible_ to the user? It's possible to know when the theme has been implemented, but I haven't been able to catch when the theme is actually rendered and visible to the user. Depending on the theme and components being used, the loaded runtime style sheet rendering might vary, which is why I need some sort of event to tell me when it's initialized. Thanks, Claudia
RE: [flexcoders] Loaded Runtime Style Sheet rendering
There should be an updateComplete after the CSS SWF is loaded. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claudia Barnal Sent: Sunday, February 03, 2008 11:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Loaded Runtime Style Sheet rendering Hi, Is there any kind of event that is dispatched once a runtime style sheet (theme) is loaded to an application and the change is _visible_ to the user? It's possible to know when the theme has been implemented, but I haven't been able to catch when the theme is actually rendered and visible to the user. Depending on the theme and components being used, the loaded runtime style sheet rendering might vary, which is why I need some sort of event to tell me when it's initialized. Thanks, Claudia
Re: [flexcoders] Loaded Runtime Style Sheet rendering
Thanks Igor, I'm not sure this is what I need. I'm not loading CSS files, I'm loading compiled CSS SWFs. And my question was really regarding an event being dispatched when the CSS (SWF) has been loaded and rendered in the application. Claudia On Feb 3, 2008 4:14 PM, Igor Costa <[EMAIL PROTECTED]> wrote: > > > > > > > Hi there Claudia > > here`s a small piece component that was develop by Rubens that gets what > you`re looking for. > > > Here`s the link http://www.rubenswieringa.com/blog/index.php?tag=css > > Best regards > Igor Costa > > > > On Feb 3, 2008 5:04 PM, Claudia Barnal <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > Hi, > > > > Is there any kind of event that is dispatched once a runtime style > > sheet (theme) is loaded to an application and the change is _visible_ > > to the user? > > > > It's possible to know when the theme has been implemented, but I > > haven't been able to catch when the theme is actually rendered and > > visible to the user. > > > > Depending on the theme and components being used, the loaded runtime > > style sheet rendering might vary, which is why I need some sort of > > event to tell me when it's initialized. > > > > Thanks, > > Claudia > > > > > > -- > > Igor Costa > www.igorcosta.com > www.igorcosta.org
Re: [flexcoders] Loaded Runtime Style Sheet rendering
Hi there Claudia here`s a small piece component that was develop by Rubens that gets what you`re looking for. Here`s the link http://www.rubenswieringa.com/blog/index.php?tag=css Best regards Igor Costa On Feb 3, 2008 5:04 PM, Claudia Barnal <[EMAIL PROTECTED]> wrote: > Hi, > > Is there any kind of event that is dispatched once a runtime style > sheet (theme) is loaded to an application and the change is _visible_ > to the user? > > It's possible to know when the theme has been implemented, but I > haven't been able to catch when the theme is actually rendered and > visible to the user. > > Depending on the theme and components being used, the loaded runtime > style sheet rendering might vary, which is why I need some sort of > event to tell me when it's initialized. > > Thanks, > Claudia > > -- Igor Costa www.igorcosta.com www.igorcosta.org
[flexcoders] Loaded Runtime Style Sheet rendering
Hi, Is there any kind of event that is dispatched once a runtime style sheet (theme) is loaded to an application and the change is _visible_ to the user? It's possible to know when the theme has been implemented, but I haven't been able to catch when the theme is actually rendered and visible to the user. Depending on the theme and components being used, the loaded runtime style sheet rendering might vary, which is why I need some sort of event to tell me when it's initialized. Thanks, Claudia