Hola amigos, a ver si me pueden ayudar, tengo el siguiente codigo que funciona pero que tiene un pequeño fallo y es que cuando una hamburguesa impacta sobre el homer, se ejecuta la animacion pero dura muy muy poco y enseguida sale el otro movieclip del homer que va andando.Me podrian echar un cable?
Gracias desde ya.

Código ActionScript :

this.onEnterFrame=function(){

//Mover el bicho
if(homerBurguer==0){
homerComiendo._visible=false;
homer1._visible=true;
if(!gir){
if(homer1._x+4<=limiteDerecho){
homer1._x=homer1._x+4;
}
else{
homer1._x=limitDerecho;
}
}
else{
if(homer1._x-4>=widthHomer+limiteIzq){
homer1._x=homer1._x-4;
}
else{
homer1._x=widthHomer+limiteIzq;
}
}
//Comprobar si choca contra las parades para provocar le cambio de sentido
if(homer1._x==limiteDerecho and !gir){
homer1._x=limiteDerecho+widthHomer;
homer1._xscale=-100;
gir=true;
}
if(homer1._x==widthHomer+limiteIzq and gir){
homer1._x=limiteIzq+widthHomer/2;
homer1._xscale=100;
gir=false;
}
}
if(hamburguer1._visible==true){
hamburguer1._y+=4;
if(hamburguer1._y>=360){
hamburguer1._visible=false;
numBurguers=numBurguers-1;
}
}
if(hamburguer2._visible==true){
hamburguer2._y+=4;
if(hamburguer2._y>=360){
hamburguer2._visible=false;
numBurguers=numBurguers-1;
}
}
if(hamburguer3._visible==true){
hamburguer3._y+=4;
if(hamburguer3._y>=360){
hamburguer3._visible=false;
numBurguers=numBurguers-1;
}
}
if(hamburguer4._visible==true){
hamburguer4._y+=4;
if(hamburguer4._y>=360){
hamburguer4._visible=false;
numBurguers=numBurguers-1;
}
}
if(hamburguer5._visible==true){
hamburguer5._y+=4;
if(hamburguer5._y>=360){
hamburguer5._visible=false;
numBurguers=numBurguers-1;
}
}
if(homer1.hitTest(hamburguer1._x,hamburguer1._y,shapeFlag) && hamburguer1._visible && !homerComiendo.hitTest(hamburguer1)){
hamburguer1._visible=false;
homer1._visible=false;
homerComiendo._xscale=homer1._xscale;
homerMComiendo._x=homer1._x;
homerComiendo._visible=true;
homerComiendo.play();
numBurguers=numBurguers-1;
homerBurguer=1;
}
if(!homer1._visible){
homerBurguer=0;
}
}