Ver Mensaje Individual
  #7 (permalink)  
Antiguo 29/12/2004, 21:10
nono03
 
Fecha de Ingreso: junio-2003
Mensajes: 20
Antigüedad: 20 años, 10 meses
Puntos: 0
este no solo es mas sencillo sino que se adapta a cualquier mc calculando su largo
m =6 //(barra._height - agarra._height)/100
this.onEnterFrame = function() {
if (_global.subir == true) {
if (c<cua._height-20) {
cua._y -= m;
agarra._y++
c += m;
}
}
if (_global.bajar == true) {
if (c>0) {
cua._y += m;
agarra._y--
c -= m;
}
}
};
alto.onPress = function() {
_global.subir = true;
alto._alpha = 100;
};
alto.onRelease = function() {
_global.subir = false;
alto._alpha = 40;
};
bajo.onPress = function() {
_global.bajar = true;
bajo._alpha = 100;
};
bajo.onRelease = function() {
_global.bajar = false;
bajo._alpha = 40;
};
alto.onDragOut = function() {
_global.subir = false;
alto._alpha = 40;
};
bajo.onDragOut = function() {
_global.bajar = false;
bajo._alpha = 40;
};