# Loader Class Not Working - Can anyone fix this?

**URL:** https://forum.kirupa.com/t/loader-class-not-working-can-anyone-fix-this/315231
**Category:** flash
**Created:** [October 20, 2010, 4:51pm UTC](https://forum.kirupa.com/t/loader-class-not-working-can-anyone-fix-this/315231 "2010-10-20T16:51:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![vivefree](https://avatars.discourse-cdn.com/v4/letter/v/f05b48/32.png) [@vivefree](https://forum.kirupa.com/u/vivefree)
#### Post date: [October 20, 2010, 4:51pm UTC](https://forum.kirupa.com/t/loader-class-not-working-can-anyone-fix-this/315231/1 "2010-10-20T16:51:06Z")

</div>

Here’s the error I’m getting… anyone know why?

siteLoader.as, Line 23 1061: Call to a possibly undefined method load through a reference with static type Loader.

```auto
package {
    
    import flash.display.MovieClip;
    import flash.net.URLRequest;
    import flash.display.*;

    public class siteLoader extends MovieClip 
    {
        
        private var myLoader:Loader;
  
        public function siteLoader()
        {
            myLoader = new Loader();
            addChild(myLoader);
            var mySwfFile:URLRequest = new URLRequest("index.swf");
        
            //Problem Here    
            myLoader.load(mySwfFile);
        }
}

}

```
