Skip to main content
March 23, 2013
Question

Stopping enterfram triggerring COMPLETE?

  • March 23, 2013
  • 1 reply
  • 513 views

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

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
March 23, 2013

How does the ENTER_FRAME code trigger the COMPLETE event?  What can you show as evidence that it is the ENTER_FRAME code?

March 23, 2013

Commenting out the enterframe listeners stops the complete tiggering.

Ned Murphy
Legend
March 23, 2013

That doesn't answer the question of how.