Código ActionScript :
on (press) {
arrastrar = true;
xd = _x-_root._xmouse;
}
on (rollOver) {
this.useHandCursor = false;
}
on (release, releaseOutside) {
arrastrar = false;
xfinal = _root._xmouse;
}
onClipEvent (load) {
xfinal = _x;
}
onClipEvent (enterFrame) {
if (_root.mover == 1) {
if (arrastrar) {
x = _root._xmouse+xd;
} else {
x = xfinal+xd;
}
_x = _x+(x-_x)/15;
if (_x<-2860) {
_x = -2860;
} else if (_x>0) {
_x = 0;
}
trace (_x);
}
}Yo pude hacerlo por ahora con la libreria "McTween" con este código en el boton de "About us".
Código ActionScript :
on (release) {
_root.mover = 0;
_root.fondo.tween("_x",-595,1.5,"easeInOutCubic");
_root.fondo.onTweenComplete = function(propName) {
_root.mover = 1;
};
}Les paso el ejemplo colgado!
http://www.qcs.com.ar/clientes/magissim
Si alguien nesecita el .FLA se lo mando por mail. Gracias!
