# BaseClass preloader using loaderInfo

**URL:** <https://forum.kirupa.com/t/baseclass-preloader-using-loaderinfo/279184>\
**Category:** flash\
**Created:** [January 10, 2009, 10:59pm UTC](https://forum.kirupa.com/t/baseclass-preloader-using-loaderinfo/279184 "2009-01-10T22:59:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![the\_lar](https://avatars.discourse-cdn.com/v4/letter/t/90ced4/32.png) [@the\_lar](https://forum.kirupa.com/u/the_lar)\
**Post date:** [January 10, 2009, 10:59pm UTC](https://forum.kirupa.com/t/baseclass-preloader-using-loaderinfo/279184/1 "2009-01-10T22:59:45Z")

</div>

Hi all,

I’ve googled this to death but can’t get any solutions to work!

All I want to do is add preloading onto my main base class for my project. I am simply trying:

```auto

package Classes{
    import flash.display.MovieClip;
    import flash.events.*;
    public class loadTest extends MovieClip {
        public function loadTest() {
            this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, showProgress);
        }
        private function showProgress(myEvent:ProgressEvent):void {
            trace("Loading");
        }
    }
}

```

I export, then CTRL+RETURN to simulate a download, but my progressUpdate event is not triggered until I reach 100% - obviously that’s not going to make for a very successful preloader. What am I doing wrong?

Many thanks  
Lar
