# Preloader creates a #1011 error

**URL:** <https://forum.kirupa.com/t/preloader-creates-a-1011-error/329099>\
**Category:** flash\
**Created:** [July 20, 2012, 11:34am UTC](https://forum.kirupa.com/t/preloader-creates-a-1011-error/329099 "2012-07-20T11:34:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MFRS](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@MFRS](https://forum.kirupa.com/u/MFRS)\
**Post date:** [July 20, 2012, 11:34am UTC](https://forum.kirupa.com/t/preloader-creates-a-1011-error/329099/1 "2012-07-20T11:34:32Z")

</div>

So i’m trying to create a preloader for my game, and when it loads it it says theres an indefinite term that has no properties. The code of the preloader is:

```auto
var l:Loader= new Loader();
l.load(new URLRequest("Fisic_Steps_ing_Version.swf"));
l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,progressivo);
l.contentLoaderInfo.addEventListener(Event.COMPLETE,completo);

function progressivo (e:ProgressEvent) :void{
    bar.scaleX= e.bytesLoaded/e.bytesTotal;
}
function completo (e:Event) :void{
    addChild(l);
}

```

And the code i have at the first frame is:

```auto
import flash.events.KeyboardEvent;

stop();

stage.addEventListener(KeyboardEvent.KEY_DOWN, startGameFs);

function startGameFs (e:KeyboardEvent) :void{
    inicio_teclas.gotoAndPlay(2);
    stage.removeEventListener(KeyboardEvent.KEY_DOWN,startGameFs);
}

```

Anyone knows why this happens?
