Hi all,

I would need little help performing a search feature inside a swf using actionscript 3. The idea would be to find and hilight in dynamic text a word written in text input box. If word is mentioned twice, go through all of those by pressing the search button again.

Here's what I have got ths far but do not know how to proceed:
Code:
import flash.events.MouseEvent;

stop();
//instances:
//searchField (text input field)
//searchButton (button)
//textField (dynamic text)

searchButton.addEventListener(MouseEvent.CLICK, search);
function search(evt:MouseEvent){
	trace(searchField.text);
}
Thanks.