Loader component and external .swf with an array trouble

Hi everyone,

Here´s my new reason to be stuck again:

I have an .swf containing an array of 4 images that keep looping. The trouble comes when I load it on another .fla using a loader component and LoadMovie. It loads the .swf but it gets stuck on the first image.

Here´s the piece of code of the external swf. Could anyone help me to identify the problem?

Stage.align = “TL”;
Stage.scaleMode = “noScale”;
//-------------------------------------------------------------------
// import tween class
//-------------------------------------------------------------------
import mx.transitions.Tween;
import mx.transitions.easing.;
//-------------------------------------------------------------------
// declare variables
//-------------------------------------------------------------------
var my_xml:XML = new XML ();
my_xml.ignoreWhite = true;
var time:Number = 5;
var urls:Array = new Array ();
var prevMovie:String;
var index:Number = 0;
var depth:Number = 0;
//-------------------------------------------------------------------
// load XML
//-------------------------------------------------------------------
my_xml.onLoad = function (success) {
if (success) {
for (var i = 0; i < this.firstChild.childNodes.length; i++) {
urls.push (this.firstChild.childNodes
.attributes.url);
}
loadImages ();
intervalId = setInterval (_root, “loadImages”, time * 1000);
} else {
trace (“Error al cargar el archivo”);
}
};
//
my_xml.load (“rafa.xml”);
//-------------------------------------------------------------------
//
//-------------------------------------------------------------------
loadImages = function ():Void {
prevMovie = currentMovie;
currentMovie = this.createEmptyMovieClip (“currentMovie” + depth, depth);
var mclListener:Object = new Object ();
lop;
mclListener.onLoadComplete = function (target_mc:MovieClip) {
var tween_handler:Object = new Tween (target_mc, “_alpha”, Strong.easeOut, 0, 100, 3, true);
tween_handler.onMotionFinished = function () {
unloadMovie (prevMovie);
};
};
var movieClipLoader:MovieClipLoader = new MovieClipLoader ();
movieClipLoader.addListener (mclListener);
movieClipLoader.loadClip (urls[index], currentMovie);
index == urls.length - 1 ? index = 0 : index++;
depth++;
};