Ver Mensaje Individual
  #9 (permalink)  
Antiguo 23/12/2006, 10:04
guest150783
 
Fecha de Ingreso: enero-2005
Ubicación: culiacan, sinaloa, mexico
Mensajes: 97
Antigüedad: 19 años, 3 meses
Puntos: 0
Re: Ejecutar un Mc hasta que retire el clic

modifique un poco el .fla que pusiste y el codigo seria este, solo lo modifique para que funcionara lo que necesitas



photo.stop();
function goto(obj) {
onEnterFrame = function () {
if (obj == "atras") {
if (photo._currentframe == 1) {
photo.gotoAndStop(32);
} else {
photo.prevFrame();
}
} else {
photo.stop();
delete (this.onEnterFrame);
}
};
}
BtnIzquierdo.onRollOver = function() {
Mouse.hide();
cursor.startDrag();
cursor._x = _xmouse;
cursor._y = _ymouse;
BtnIzquierdo.onPress = function() {
goto("atras");
};
BtnIzquierdo.onRelease = function() {
goto("aqui cualquier otra cosa diferenta a atras");
};
};
BtnIzquierdo.onRollOut = function() {
Mouse.show()();
cursor.stopDrag();
cursor._x = 100000;
cursor._y = 100000;
photo.stop();
};
BtnDerecho.onRollOver = function() {
Mouse.hide();
cursor.startDrag();
cursor._x = _xmouse;
cursor._y = _ymouse;
this.onPress = function() {
photo.play();
};
this.onRelease = function() {
photo.stop();
};
};
BtnDerecho.onRollOut = function() {
Mouse.show()();
cursor.stopDrag();
cursor._x = 100000;
cursor._y = 100000;
photo.stop();
};