# Class Core misunderstanding

**URL:** https://forum.kirupa.com/t/class-core-misunderstanding/269789
**Category:** flash
**Created:** [September 1, 2008, 6:02pm UTC](https://forum.kirupa.com/t/class-core-misunderstanding/269789 "2008-09-01T18:02:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Didi32](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@Didi32](https://forum.kirupa.com/u/Didi32)
#### Post date: [September 1, 2008, 6:02pm UTC](https://forum.kirupa.com/t/class-core-misunderstanding/269789/1 "2008-09-01T18:02:17Z")

</div>

Hi:

The answer to my question is probably obvious to most of you. However, I can’t seem to figure it out and I can’t find any information online because I don’t really know what to look for.

I have create a package that loads an xml file and creates arrays with its values with a for loop.  
When I create a new instance of this class in the main timeline, I would like to be able to know when the arrays are finished to be created so that I can use them from the main timeline. I have tried to addEventListener to the instance of the class but it doesn’t work; so I guess there must be something to add to my class - Event dispatcher or something - but concretely, what is it? I can’t seem to find any example.

Thanks,  
Didi
