# Class, urlloader and as3

**URL:** https://forum.kirupa.com/t/class-urlloader-and-as3/284451
**Category:** Uncategorized
**Created:** [March 19, 2009, 10:58am UTC](https://forum.kirupa.com/t/class-urlloader-and-as3/284451 "2009-03-19T10:58:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![MZA](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@MZA](https://forum.kirupa.com/u/MZA)
#### Post date: [March 19, 2009, 10:58am UTC](https://forum.kirupa.com/t/class-urlloader-and-as3/284451/1 "2009-03-19T10:58:34Z")

</div>

Hello.

Im trying to get the grasp of classes and as3 and i got probably an easy question for someone with good as3 knowledge.

Lets say i got a main.as and a class URLLoad.as that loads some external vars. In the URLLoad class i got a event.complete listener. So i know when the vars are finnished loading and everything works fine. But how do i know it has finnished loading the vars if i try to reach them from main.as file??? Whats the routine for doing this? Is it better to remove the event.complete listener to main.as file?

Thanks for any help.  
Jarod
