Ciao ho due pulsanti con i quali scrollo un testo e purtroppo devo rimanere due pulsanti come behavior ...
Il codice assegnato è il seguente:
Lo scroll funziona ma chiaramente, cosi' impostato bisogna cliccare ogni volta, come posso fare perchè tenendo premuto, il pulsante mi scrolli continuamente?codice:down_btn.onPress = function(){ testo_txt.scroll++ if (testo_txt.scroll == testo_txt.maxscroll){ testo_txt.scroll+= 0; }else{ testo_txt.scroll+= 1; } } up_btn.onPress = function(){ testo_txt.scroll-- if (testo_txt.scroll == testo_txt.maxscroll){ testo_txt.scroll-= 0; }else{ testo_txt.scroll-= 1; } }
Non posso usare enterFrame() su questi bottoni ...
:gren:


Rispondi quotando
