View Full Version : [AS2] Initially Undefined, but then not.

05-04-2011, 06:36 PM
I have a flash file that loads an XML file and sets a bunch of things with the XML. Within some of the content there is a custom component. The problem that I'm running into is that on the initial load (and only on a web server) the xml data for the componet (text) is undefined. However, once a new area is clicked the data is loading normally. It will only show undefined the one time and only if the browser doesn't have it cached.

I've tried setting the text to the id of the objects to see if maybe it isn't getting set right away, but it is. Is there anything like an added to stage listener I should use to make sure it's ready to be set?

I thought at first it was an XML load issue, but since it's one xml file and everything else is getting set correctly, I've ruled that out.

Any ideas?