Robert,
I have advised my institution to start migrating toward ArcGIS Server 10 and Flex API 2 and Flex 4. That process is going to take time.
But, meanwhile, I notice that even using the modified legenddata.mxml per your code above is not working for me: I still see 404 errors related to .png graphics of the legends icons.
Here is what my Service Capture tells me:
At 9:00 AM,
GET /arcgisoutput/_ags_leg22f08466ff714f55889e54d097763b30.png
server returned HTTP/1.1 200 OK
At 9:30 AM,
GET /arcgisoutput/_ags_leg22f08466ff714f55889e54d097763b30.png HTTP/1.1
server returned HTTP/1.1 404 Not Found and my Flex debugger pops up:
Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.
I don't think loading the bytes is going to help when there is no image existing on the server to load?
I have spent too much time on this to let it fail; I have managed to program the dynamic legends in the SearchWidget.mxml file as well.
Any idea about what is happening? As I said above, there is some kind of 'recycling' of data going on ArcGIS Server; please note that the dynamic legends SOAP calls always return the layer names--just the images/icons of legends are being lost after extended user sessions.
If you don't mind I can send you a link to the deployed web app; I don't have the authority to share that link openly yet.
Thanks!
Meengla