Moviecliploader inside a function

I have this code but the only way it works is when I call the loadclip method from outside the function…

I’ve tried with _root but I don’t know how acces the moviecliploader declared outside the function.

thanks


var cargador_loading:MovieClipLoader = new MovieClipLoader;

listener_cargador_loading = {};

listener_cargador.onLoadInit = function(){
       //actions
}
	
cargador_loading.addListener(listener_cargador);

function cargar_loading(){
       cargador_loading.loadClip(_root.ruta_loading,_root.cargando);
}