How to display dynamic images from reading a file

Hello, I’m reading a file using this

var my_lv:LoadVars = new LoadVars();
my_lv.load(“data.txt”);
my_lv.onLoad = function(success) {
if (success)
{
trace(‘called’);
path = this.pic1;
path2 = this.pic2;
}
}

and also want to display the images dynamically loaded and animate in flash using

var ImgMc2:MovieClip = createEmptyMovieClip(“ImgMc2”, getNextHighestDepth());
var mcLoader2:MovieClipLoader = new MovieClipLoader();
mcLoader2.addListener(this);
mcLoader2.loadClip(path2,ImgMc2);

function onLoadInit(mc:MovieClip)
{
origW = ImgMc2._width;
origH = ImgMc2._height;
ImgMc2._width = Stage.width;
ImgMc2._height = Stage.height;

_root.ImgMc2.onEnterFrame= function()
{
if(ImgMc2._width<(ImgMc2._width+ImgMc2._width))
{
ImgMc2._width = ImgMc2._width+10;
ImgMc2._height = ImgMc2._height+10;
}
};
}
both codes work fine separately.

but when i merge them the problem is file loading handler is called in the last.

how and what to do to run both piece of codes fine .

or

anyone please tell me the last called event in actionscript.

regards

Rizwan Ali