nel primo frame metti
codice:
my_mc._x = 600;
limitesinistro = 300;
limitedestro = my_mc._x;
function ss () {
my_mc._x--;
if (my_mc._x<=limitesinistro) {
clearInterval(ID_ss);
}
}
function sd () {
my_mc._x++;
if (my_mc._x>=limitedestro) {
clearInterval(ID_sd);
}
}
dove my_mc e' il nome istanza della clip che contiene le foto.
sul bottone:
codice:
on (release) {
ID_ss = setInterval(ss, 10);
}
sull'altro:
codice:
on (release) {
ID_sd = setInterval(sd, 10);
}
cosi' te lo muove in orizzonrtale per il verticale imposta la _y.