Ciao A tutti, sono molto poco ferrato su actionscript ed ho questo grossissimo problema.
Ho trovato su un sito uno script anche abbastanza semplice che mi riproduce un effetto sonoro + testo della macchina da scrivere.
Lo script è questo
stop();
// inizializzazione variabili
i = 0;
// velocità battitura
speed = 100;
// impostazioni suono
type = new Sound();
type.attachSound("type");
type.setVolume(30);
// testo da battere
str = ""
str += "Ci sono desideri che si inseguono per anni.... \n";
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();
gotoAndPlay (2);
} else if (substring(str, i, 1)!=" " && substring(str, i, 1)!="\n"){
type.start();
}
}
Alla fine dello script vengo reinderizzato come nell'esempio sopra, al frame 2 il quale contiene un movie clip che al "on (realise)" dovrebbe far partire l'animazione, ma qui si blocca e non riesco a procedere.
Sapete dirmi cosa può causare questa cosa
Ciao e grazie

Rispondi quotando