Dunque, vediamo se riesco a spiegarmi.
Carico in un campo di testo dinamico un file.txt e lo trasformo in array:
codice:
function carica() {
	vedi = new LoadVars();
	vedi.load("esempio.txt");
	vedi.onLoad = function() {
		dati.text = this.dati;
		Array = this.dati.split(" ");
	};
}
_root.carica();
poi effettuo una ricerca all'interno di questo array e fin qui tutto funziona.
nel primo frame
codice:
n = 0;
// content, start && end with a space to make it work properly:
database = Array;
// negative search result gives database[1] (see frame 2):
database[1] = "please try again";
// continue looping after finding a space (" ") && break "database" apart into it's individual charachters:
for (m=1; m<database[0].length; m++) {
	// search for spaces (" ")
	for (m; database[0].charAt(m) != " "; m++) {
		// make words of individual characters between spaces (" ")
		word = word+database[0].charAt(m);
	}
	// reset for next loop
	n = n+1;
	database[n+1] = word;
	word = "";
}
e nel secondo frame:
codice:
// search function, loop through database records:
for (m=database.length; input != database[m] && m>0; --m) {
	// output search result, if search result is negative, output = database[1]
	if (m>2) {
		output = "result: "+database[m-1];
	} else {
		output = database[1];
	}
}
stop();
poi c'è un pulsante con:
codice:
on (release, keyPress "<Enter>") {
	gotoAndPlay(1);
}
in un campo di testo input inserisco la parola da cercare e lui me la restituisce in un altro campo di testo.
Ora però io vorrei che nel campo che visualizza tutto il testo, a ricerca effettuata si spostasse la visualizzazione in corrispondenza della parola trovata...
Secondo voi si può fare? e se si .. come?
Grazie