This content has been marked as final. Show 4 replies
instead of applicationComplete have you tried creationComplete?
I tried. It's not working also.
"waterturtle" <firstname.lastname@example.org> wrote in message
>I am new to Flex and i am stuck with this problem. The attached file is
> of a big application, which compiled to swf file without any problem. It
> works sometimes, but sometimes "chart" object which is UIComponent is not
> initialized and i got Alert ("not initialized" ).
> My question, is how can i wait ( loop or something like this ) till
> will initialize?
> If i call chart.initialize() - i got an error, so i probably do something
> To summarize : i want to check if "chart" initialized, if not - i want
> initialize it and then procceed to "addData" method
Do it on the CHART creationComplete event rather than the Application one.
Use creationComplete event with creationPolicy="All" property.
Hpe This Helps