Please Help me with this, problem with video



var AniLoader:Loader = new Loader(); 
var AniRequest:URLRequest = new URLRequest("Animation.swf");
AniLoader.load(AniRequest); 
AniLoader.x = 0;
AniLoader.y = 0;
addChild(AniLoader);

AniLoader.addEventListener (Event.Complete, removeAni);

function removeAni(e:Event):void
{
removeChild(AniLoader);
main_Action();
}



I’m trying to load a video into my flash, what code can i use in the eventListener that listen to an event where the movie is finish playing?

the code below just doesn’t work
AniLoader.addEventListener (Event.Complete, removeAni);

anyone know how?