onClipEvent (load) { testo2 = "made by sephiroth" // testo di riconoscimento pos_x = 10 // posizione x del testo pos_y = 10 // posizione y del testo // testo di output output = "CREDITS: ALESSANDRO CRUGNOLA"; pausa = 1000; // pasua max tra i digit alex = new Array(); for(var h=0 ; h < testo2.length; h++){ alex[h] = testo2.charCodeAt(h); } keys = new Array (); oldtt = getTimer(); i = 0; } onClipEvent (keyDown) { tt = getTimer(); if ((tt - oldtt) > pausa) { controllo = false; keys = new Array (); } if (Key.isDown) { keys.push(key.getAscii()); i++; oldtt = tt; } i = 0; while (i < alex.length) { if (keys.length == alex.length) { num_a = alex[i]; num_b = keys[i]; if (num_a == num_b) { controllo = true; } else { controllo = false; break; } } i++; } if (controllo) { _root.attachMovie("by", "by", 2000); _root.by.txt = output; _root.by._x = pos_x; _root.by._y = pos_y; } else { removeMovieClip (_root.by); } }