This content has been marked as final. Show 5 replies
There are no compiler errors and all code works fine.
The problem is near the component, or the class for the component not fully loading before the component is loaded. Tried delaying using component, loading as external swf, preloaders. No luck.
Well I'll take your word for it then. Why don't you try going down the list one by one and including an extra file each time. If some are working and you strike one that fails it coud be related to the code inside that.
Another quick check then... from the names of your files it could be the case: Are the included files creating large data objects... eg. arrays etc. Hundreds or perhaps even thousands of lines of code?
I'd done a bit of adding/removing code, but you convinced me to do it much more thoroughly and I'm at least getting a populated list now. The 'offending' code seems to be defining prototype functions for arrays (attached fi) which seemed to be unrelated. (Don't think there's anything wrong with this code per se). Maybe these modify the array class which interferes with the list class loading or something. Weirdly, I still have a string prototype function defined which doesn't seem cause problems.
Nasty little problem, because it only popped up well into the development when I thought I'd got the lists working already.
I suspect its related to the dataProvider API which is used for the List classes. It also modifies Array.prototype and there's likely some form of conflict there somewhere.