Can you use another event other than initialize? Maybe creationComplete? I think initialize fires before the data has been injected in.
On Tue, May 19, 2009 at 4:50 PM, Kyle Patterson <[email protected]> wrote: > How can you call an initialize function on an itemrenderer and not receive a > null error. I need to read the data from a loaded xml file but it appears > that the data isn’t there yet when the initialized function is called, I > tried to use creationComplete as well still no luck. Here’s an example of > what I’m trying to do, if anyone has any suggestions I would appreciate it. > > > > <VBox xmlns:mx”…. Initialize=”init();”> > > <script> > > <