codice:stop(); // inizializzazione variabili i = 0; // velocità battitura speed = 28; // testo da battere str = "" str += "bLA bLA"+newline; str += ""+newline; str += "bLA bLA."+newline; str += ""+newline; setInterval(scrive, speed, str); // funzione che scrive il testo nell'areaTesto function scrive(str) { i++; testo = substring(str, 0, i); output = testo; if (output == str) { type.stop(); gotoAndStop(2); } else { type.start(); } }
![]()