Intensive script - Flash unresponsive

I’ve written a tool to perform a complex iterative process on images. It’s working well, other than the fact that the UI becomes unresponsive because the process is computationally intensive. I’m using the “Enter Frame” event to perform one iteration at a time, and each iteration takes about half a second. But it always kills the UI, even if I make it stop after just the first iteration - the TextInput and Button components never respond again after it starts running. Any ideas? Thanks for the help…