Listener create complete

Hi all,

I generate thumbnail images for an XML file. So I loop through the XML and generate instance of a thumbnail class. These thumbnails are place in a sprite container.

The problem I have is that after the loop I print the width of the sprite (in the same function) and it returns 0, even though its full of thumbnails. So I’m trying to add a listener that listeners when the thumbnails have completed being created but I have no idea what kind of listener I need or what to attach it to.

Any replies would be much appreciated.