Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/07/2004, 12:19
Avatar de ¬...
¬...
 
Fecha de Ingreso: noviembre-2003
Ubicación: Guatemala
Mensajes: 742
Antigüedad: 20 años, 5 meses
Puntos: 4
aqui la cosa esta en un array, escribis las posiciones desde < a > dentro del array y ya
Código:
target_rotation=new Array(-20,-30,-25,-10,10,25,30,20);//aqui las posiciones
largo_array=target_rotation.length;
elemento_del_array=4;//la mitad empezando por +
i_btn.onPress = function (){
if (elemento_del_array>0) {
	elemento_del_array-=1;
	trotation=target_rotation[elemento_del_array];
	trace("girando a "+trotation+" es el elemento "+elemento_del_array+" del array");
bot_btn._rotation =trotation;
}
}


d_btn.onPress = function (){
if(elemento_del_array<largo_array-1) {
	elemento_del_array+=1;
	trotation=target_rotation[elemento_del_array];
	trace("girando a "+target_rotation[elemento_del_array]+" es el elemento "+elemento_del_array+" del array");
bot_btn._rotation =trotation;
}
}
__________________
'_'

...