View Full Version : Function locks up

09-11-2008, 02:57 PM
I'm using actionscript 3 in flash to create an air app. At one point in the script I use a while loop with indexOf() and lastindexOf() to search through a large string of roughly 40 million characters. Surprisingly this takes only about 4 - 10 seconds depending on the query although the app locks up during this process. Is there a way to have this loop run in the background like in a different thread without breaking it up? Could I somehow run a second swf invisibly and delegate the searching to it? I'm pretty new to as3 and AIR so I have no idea about the new functionality available. Thanks