Cant make the loader.close() works

Im using a button to load a swf into stage and another to close the connection just to test the function and it keep showing me the progress of the download and call my oncomplete function. this is my external class


 
package 
{
 import flash.events.Event;
 import flash.events.ProgressEvent;
 import flash.display.Loader;
 import flash.net.URLRequest;
 
 public class file_loader
 {
  public var my_file_loader:Loader;

  public function file_loader():void
  {
   this.my_file_loader = new Loader();
   my_file_loader.contentLoaderInfo.addEventListener(Event.COMPLETE,on_file_loaded);
   my_file_loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,check_progress);
  }
  
  public function on_file_loaded(evento:Event):void
  {
    trace("file loaded");
  }
 
  public function check_progress(evento:ProgressEvent):void
  {
    var loaded:Number    = evento.bytesLoaded;
    var total:Number      = evento.bytesTotal;
    var percent:Number  = loaded/total;
    trace(percent);
  }
 
  public function load():void
  {
    my_file_loader.load(new URLRequest("myfile.jpg"));
  }
 
  public function close():void
  {
   try
   {
    my_file_loader.close();
   }catch(error:Error){}
  }
 
 }
}
 

The usage for the class is this


var my_file_loader:file_loader = new file_loader();
my_file_loader.load();
 
var my_button:MovieClip = this.button_onstage;
my_button.addEventListener(MouseEvent.CLICK,close_load);
 
function close_load(evento:MouseEvent):void
{
my_file_loader.close();
}