# Extremely simply preloader problem... doing my head in!

**URL:** https://forum.kirupa.com/t/extremely-simply-preloader-problem-doing-my-head-in/246566
**Category:** flash
**Created:** [December 12, 2007, 12:20pm UTC](https://forum.kirupa.com/t/extremely-simply-preloader-problem-doing-my-head-in/246566 "2007-12-12T12:20:09Z")
**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: [December 12, 2007, 12:20pm UTC](https://forum.kirupa.com/t/extremely-simply-preloader-problem-doing-my-head-in/246566/1 "2007-12-12T12:20:09Z")

</div>

So simple you wouldn’t believe, but it just refuses to work, here’s my code:

```auto
package {
    import flash.display.*;
    import flash.net.*;
    public class Gameloader extends MovieClip{
        public function Gameloader() { 
            var request:URLRequest = new URLRequest("Elf_game.swf");
            var loader:Loader = new Loader();
            loader.load(request);
            addChild(loader);
        } 
    }
}

```

The above code is the main document class of my loader file, there’s absolutely nothing else to the file at all.

I get the following errors:  
1061: Call to a possibly undefined method load through a reference with static type Loader.  
1067: Implicit coercion of a value of type Loader to an unrelated type flash.display:DisplayObject.

I just don’t get it, I’m obviously doing something wrong.

Please help me!!

Thanks
