ci provo, anche se è un po' un casotto.![]()
spiego:
mi creo per ognuna delle 2 righe 2 mc che si accodano quando il precedente è arrivato alla massima larghezza. questo mi permette il continuo loop.
onClipEvent(enterFrame){
_root.my_text1._x -= 2;
_root.my_text2._x -= 2;
_root.my_text1V._x -= 2;
_root.my_text2V._x -= 2;
//lunghezza massima riga
ritorno = _root.maskOriz._x;
ritornoV = _root.maskV._x;
if(_root.my_text1._x + _root.my_text1._width < ritorno){
_root.my_text1._x = _root.my_text2._x + _root.my_text2._width
var temp1 = var_1
var temp2 = var_2
_root.my_text1 = temp2
_root.my_text2 = temp1
}
if(_root.my_text2._x + _root.my_text2._width < ritorno){
_root.my_text2._x = _root.my_text1._x + _root.my_text1._width
var temp1 = var_1
var temp2 = var_2
_root.my_text2 = temp2
_root.my_text1 = temp1
}
//if per la seconda
if(_root.my_text1V._x + _root.my_text1V._width < ritornoV){
_root.my_text1V._x = _root.my_text2V._x + _root.my_text2V._width;
var temp1V = var_1V;
var temp2V = var_2V;
_root.my_text1V = temp2V;
_root.my_text2V = temp1V;
}
if(_root.my_text2V._x + _root.my_text2V._width< ritornoV){
_root.my_text2V._x = _root.my_text1V._x + _root.my_text1V._width;
var temp1V = var_1V;
var temp2V = var_2V;
_root.my_text2V = temp2V;
_root.my_text1V = temp1V;
}
}
dovrebbe essere tutto quello necessario.
grazie![]()