Salve a tutti, ho scaricao un fla che presenta queste caratteristiche associate ad una mc:
onClipEvent (load) {
_x = 175
_y = 175
x = _x;
y = _y;
x_fin = _x;
y_fin = _y;
drag = false;
}
onClipEvent (enterFrame) {
if (!drag) {
diff_x = (diff_x + ((x_fin - x) / 20))/1.1;
diff_y = (diff_y + ((y_fin - y) / 20))/1.1;
x += diff_x;
y += diff_y;
_x = x;
_y = y;
if(y >= 310){
y = 310
}
}
}
onClipEvent (mouseDown) {
if (hitTest(_root._xmouse, _root._ymouse)) {
drag = true;
startDrag (this, true);
}
}
onClipEvent (mouseUp) {
x = _x;
y = _y;
drag = false;
stopDrag();
}
questo script serve a far ritornare in posizione un oggetto draggato.
se esporto in flash mx funziona, se esporto in flash 8 invece non mi dà l'effetto
qualcuno può aiutatarmi a convertire il codice per farlo funzionare anche in flash 8
Grazie mille