Ver Mensaje Individual
  #3 (permalink)  
Antiguo 16/08/2007, 11:23
doors1x
 
Fecha de Ingreso: junio-2007
Mensajes: 49
Antigüedad: 16 años, 9 meses
Puntos: 0
Re: contacto de movies

amigo probe con el codigo pero no me funciona no se donde colocarlos exactamente , te voy a poner el codigo que tengo.



on(press){

startDrag(_parent.balde,false);
//trace(_parent.queLlevo);

this._root.balde.prevFrame();


}


on(release){
if (eval(_droptarget) == (_parent.batidora)){
with(_parent){
//cantoRodados._visible = false;
//simula.tipoAgregadoGrueso = "canto rodado"
//trace("estoy en mezcladora");
this._root.balde.nextFrame();
//simula.cont = 666;
//trace(_root.simula.i);
elementos[_root.simula.i][0] = _root.queLlevo;
elementos[_root.simula.i][1] = _root.cuantoLlevo;
_root.simula.i = Number(_root.simula.i) + Number(1) ;






}
}
//que hace si lo suelto en agregado grueso
if (eval(_droptarget) == (_parent.grueso2)){
with(_parent){
//cantoRodados._visible = false;
//simula.tipoAgregadoGrueso = "canto rodado"
//trace("estoy en grueso");
_root.queLlevo = "grueso";
this._parent.attachMovie("ventanaPedirCuanto2", "ventanaPedirCuanto2", 1);
ventanaPedirCuanto2._x = 300;
ventanaPedirCuanto2._y = 200;
}
}

if (eval(_droptarget) == (_parent.fino2)){
with(_parent){
//cantoRodados._visible = false;
//simula.tipoAgregadoGrueso = "canto rodado"
//trace("estoy en fino");
_root.queLlevo = "fino";
this._parent.attachMovie("ventanaPedirCuanto1", "ventanaPedirCuanto1", 1);
ventanaPedirCuanto1._x = 300;
ventanaPedirCuanto1._y = 200;

}
}

if (eval(_droptarget) == (_parent.cemento)){
with(_parent){
//cantoRodados._visible = false;
//simula.tipoAgregadoGrueso = "canto rodado"
//trace("estoy en cemento");
_root.queLlevo = "cemento";
this._parent.attachMovie("ventanaPedirCuanto3", "ventanaPedirCuanto3", 1);
ventanaPedirCuanto3._x = 300;
ventanaPedirCuanto3._y = 200;
}
}



stopDrag();
}

NO SE EN QUE PARTE COLOCAR ESE CODIDO, YA QUE TIENE QUE ESTAR ENTRE ALGUN "ON"...