tengo este codigo de un template q baje, pero quiero hacer que tenga la carga de las imagenes aleatoria.. donde y como lo modifico?
stop();
import mx.transitions.Tween;
import mx.transitions.easing.*;
tn_mc._visible = false;
var intervalId:Number;
var initial_alpha:Number = 20;
var i:Number = 1;
var j:Number = 0;
var k:Number = 0;
var duration:Number = 250;
var maxCount:Number = 22;
var label_list:Array = new Array("000_design", "000_design","000_design","001_design","002_design ","003_design","004_design","005_design","006_desi gn","007_design","008_design","009_design","010_de sign","011_design","012_design","013_design","014_ design","015_design","016_design","017_design","01 8_design","019_design","020_design");
var link_list:Array = new Array("http://www.","http://www.","http://www.","http://www.","http://www.","http://www.","http://www.","http://www.","http://www.","http://www.","http://www.","http://www.","http://www.","http://www.","http://www.","http://www.","http://www.","http://www.","http://www.","http://www.");
function createThumbnails()
{
duplicateMovieClip( tn_mc, "tn" + i, i );
this["tn" + i].gotoAndStop(i);
position_x = j * 110 + 240;
position_y = k;
j++;
if( i % 5 == 0 ) { j = 0; k++; }
this["tn" + i]._x = position_x;
this["tn" + i]._alpha = initial_alpha;
this["tn" + i].fm_label.text = label_list[i-1];
this["tn" + i].fm_url = link_list[i-1];
this["tn" + i].fm_button._visible = false;
random_y = random(450);
new Tween(this["tn" + i], "_alpha", Strong.easeInOut, initial_alpha, 100, 3, true);
new Tween(this["tn" + i], "_x", Strong.easeOut, position_x + 300 - i*10, position_x - i*10, 3, true);
new Tween(this["tn" + i], "_y", Elastic.easeInOut, position_y + 200 + i*20, position_y + i*20, 3, true);
this["tn" + i].fm_button.onPress = function()
{
this._parent.swapDepths(_root.getNextHighestDepth( ));
this._parent.startDrag();
}
this["tn" + i].fm_button.onRelease = function()
{
this._parent.stopDrag();
}
this["tn" + i].fm_link.onRelease = function()
{
getURL( this._parent.fm_url );
}
if(i >= maxCount)
{
clearInterval(intervalId);
for( i = 1; i <= maxCount; i++ )
this["tn" + i].fm_button._visible = true;
}
i++;
}
intervalId = setInterval(this, "createThumbnails", duration);