loadMovie () prblem

hi there

i am trying to load external file from a folder

1-- for backgound

2–2nd for with mouse move

http://myrozgar.noads.biz/flash/yessa_new.html

1 thing i done mean getting background

but 2nd thing leaf move on mouse move, i cant

total is the leaf name which move on mousemove

i want same action that get the leaf image from folder and move with mouse

here is my code

for(i=1;i<5;i++)
{
this[“total”+i];
this[“total”+i]._alpha = 100-(i20);
this[“total”+i].speed = i
3;
this[“total”+i].diffx = this[“total”+i].diffy = 0;
}

this.onEnterFrame=function()
{
for(i=1;i<5;i++)
{
mc = this[“total”+i];
mc.diffx = _root._xmouse - mc._x ;
mc.diffy = _root._ymouse - mc._y ;
mc._x += mc.diffx/mc.speed;
mc._y += mc.diffy/mc.speed;
}
}

/// Load external background image
loadMovie(“photo.jpg”, _root.photo.empty);

/// Load external background image
_root.createEmptyMovieClip(“backgroundpic”, 0);
backgroundpic.loadMovie(“photo.jpg”);

_root.createEmptyMovieClip(“leaf_mc”, this.getNextHighestDepth());
leaf_mc.loadMovie(“jani.png”);

onMouseMove=function(){
onEnterFrame= function(){
var speed:Number=5;
//for(i=1;i<5;i++)
//{
leaf_mc.diffx = _root._xmouse - leaf_mc._x ;
leaf_mc.diffy = _root._ymouse - leaf_mc._y ;
leaf_mc._x += leaf_mc.diffx/speed;
leaf_mc._y += leaf_mc.diffy/speed;
//}

}}

i done this

Once you load a movie using loadMovie you need to make sure that the movie has completely loaded before you can implement any actions to it.

can any one get him out here

i get this external file method here