title: How to use loaderInfo?
body: <p>I want to make a loading bar but at first I need to have loading info per enter frame. This is how I do it but it seem not working. Could you teach me how to do it?</p>
  
  <pre><code> var mapLoader : Loader = new Loader( );
       var mapLoaderInfoLoad:Number;
       var mapLoaderInfoTotal:Number;
  
  public function engine() 
  {
  
          addEventListener( Event.ENTER_FRAME, onEnterFrame,false,0,true );
  
          mapLoader.load( new URLRequest( "Mapcontrol.swf" ) );
          mapLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler );
  
  }
  private function onEnterFrame( evt:Event ):void
      {mapLoaderInfoLoad = mapLoader.loaderInfo.bytesLoaded;
          mapLoaderInfoTotal = mapLoader.loaderInfo.bytesTotal;
          trace(mapLoaderInfoLoad);
          trace(mapLoaderInfoTotal);}
  
  public function completeHandler ( eventOBJ : Event ) : void
       {
           stage.addChild( mapLoader.content );
       }
  </code></pre>