Worked liked charm!!! I guess valdhor also suggested something
   like this in one of his initial mails. Thanks to all




On Fri, Jan 15, 2010 at 12:45 PM, Amy <amyblankens...@bellsouth.net> wrote:

>
>
>
>
> --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>,
> "valdhor" <valdhorli...@...> wrote:
> >
> > Hmmmmm I don't use charts.
> >
> > Maybe you could try...
> >
> > myComp.myChart.styleName = "noGutterChart";
> >
> > Actaully, the myChart component may not have been instantiated at that
> point. I would add a creationComplete event handler to the myChart component
> that dispatches a custom event that will bubble up to the component that you
> are in. When that event comes in, apply the style.
>
> My guess is that the setStyle functionality bypasses some of the controls
> in the life cycle logic of the chart, whereas styleName will just set a flag
> somewhere and the logic will just wait until the appropriate moment to apply
> the styles to the objects, which will have been instantiated at that point.
>
> MPO is that if you use styleName you should not need to add an event
> listener for initialized or creationcomplete. Be aware that neither of these
> events will fire until the component has already been added to the Canvas
> and the Canvas has been added to the display list.
>
> HTH;
>
> Amy
>
>  
>

Reply via email to