Hi guys (and girls),
Working in FLEX 4:
I’m experiencing something funny.
I’m trying to retrieve ItemRenderer instances from a dataGroup by using getElementAt().
Everything works if I call the method when the application is up and running, lets say I call the method by clicking a button.
If I try to call the method programmatic some other way, before the program is up and running, the getElementAt() returns null.
Here’s the funny part though …
Let’s say I’m calling my getElementAt() method through a changeWatcher (programmatic, before the program is up and running) it dosen’t work If I simply run the application. But if I set a breakpoint and use the variables view to open and inspect my DataGroups private Array “indexToRenderer”, then everything works fine when I resume the application. How can that be?
Hi FLEX harUI,
Thanks a million for taking interest in my problem. I belive my problem requires the “Community touch”.
I’m not using virtualLayout. And as I’m right now just working on the view layer, not calling any services, data should be available as needed.
Getters getting called at odd timing – how to check?
I’m using the Framework Mate to wire my application together. If you have the time, please check out my forum post at:
Maybee that post better can explain what I’m trying to do.