Para que sea mas claro les dejo la animacion
[flash width=1024 height=768]http://www.d2mdesigns.com/prueba.swf[/flash]
osea quiero q ya cuando llegue a 6, otra vez salga el 1
y pues los numeros son botones, dentro de un movie clip, el codigo que use es
afuera
Código ActionScript :
onClipEvent (load) { xfinal = _x; } onClipEvent (enterFrame) { if (arrastrar) { x = _root._xmouse+xd; if (x>-360){ trace("menor que 4"); } if (x<-360){ trace("mayor que 4"); } } else { x = xfinal+xd; } _x = _x+(x-_x)/8; }
y adentro al fondo:
Código ActionScript :
this.fondo.onPress=function () { arrastrar = true; xd = _x-_root._xmouse; yd = _y-_root._ymouse; } this.fondo.onRelease=function () { arrastrar = false; xfinal = _root._xmouse; yfinal = _root._ymouse; } this.fondo.onReleaseOutside=function () { arrastrar = false; xfinal = _root._xmouse; yfinal = _root._ymouse; }
alguna idea de como lo puedo hacer cíclico?
intente con duplicate movie Clip pero los botones dejan de funcionar y pasan cosas muy raras
Alguna ayuda????