Copy link to clipboard
Copied
Gidday
I have a text parser class that freezes the UI, so I'm chunking down the loop into sets of 500 by using enterframe and other code to keep track of where the process is up to. I've used this pseudo-threading code a few times before without any problems.
The difference this time is that text parser ( var textData ) is called using URLRequest ( I load a txt file into the parser), and the problem is that the enterframe code within the chunking process seems to be triggering the COMPLETE event before the parsing is actually done:
textData.addEventListener( Event.COMPLETE, completeHandler,false,0,true);
Is there a way to prevent the enterframe from triggering the COMPLETE?
Cheers
Copy link to clipboard
Copied
How does the ENTER_FRAME code trigger the COMPLETE event? What can you show as evidence that it is the ENTER_FRAME code?
Copy link to clipboard
Copied
Commenting out the enterframe listeners stops the complete tiggering.
Copy link to clipboard
Copied
That doesn't answer the question of how.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now