I am using Robert's TOC for Flex View 1.3 which handles scale dependency. It works great however, sometimes (not always) on loading the site, one or two mapservices/map layers in the TOC do not have the (+ tree node expander) in front of them (to display the layers contained in that map service). In other words, i think, the mapservice doesnt load (for reasons i am still not sure about as it happens only sometimes on initial loading or even on refreshing the webbrowser), hence the code which is rendering the TOC items doesnt work. Is there any way to ensure that all layers have been loaded before being rendered (in the TOC) else wait for all layers to finish loading? It might also be the case that the layers are loaded on the map but the rendering is not working?
Any ideas on how to sort this out.