# Class-loading delay?

**URL:** https://forum.kirupa.com/t/class-loading-delay/268709
**Category:** flash
**Created:** [August 17, 2008, 8:12pm UTC](https://forum.kirupa.com/t/class-loading-delay/268709 "2008-08-17T20:12:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Sage\_of\_Fire](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@Sage\_of\_Fire](https://forum.kirupa.com/u/Sage_of_Fire)
#### Post date: [August 17, 2008, 8:12pm UTC](https://forum.kirupa.com/t/class-loading-delay/268709/1 "2008-08-17T20:12:34Z")

</div>

I’m working on a steadily expanding AS3 project, and I’ve run into a pretty annoying snag. I want a particular method of a certain class to execute on an ENTER\_FRAME event, so I set up an event listener tied to the method. I get it to work, at first, then the compiler says it can’t find the method on the class.

I have a hunch that I need to somehow delay the script until I have all the external classes loaded, but I’m not really sure how to do that. Can I make a loading bar for a script that never ‘loads’ anything, but imports external classes? Thanks!
