# Listener create complete

**URL:** <https://forum.kirupa.com/t/listener-create-complete/316155>\
**Category:** flash\
**Created:** [November 14, 2010, 5:08pm UTC](https://forum.kirupa.com/t/listener-create-complete/316155 "2010-11-14T17:08:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![VeddyCent](https://avatars.discourse-cdn.com/v4/letter/v/bc8723/32.png) [@VeddyCent](https://forum.kirupa.com/u/VeddyCent)\
**Post date:** [November 14, 2010, 5:08pm UTC](https://forum.kirupa.com/t/listener-create-complete/316155/1 "2010-11-14T17:08:00Z")

</div>

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.
