Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Stopping enterfram triggerring COMPLETE?

Guest
Mar 22, 2013 Mar 22, 2013

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

TOPICS
ActionScript
487
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 22, 2013 Mar 22, 2013

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 22, 2013 Mar 22, 2013

Commenting out the enterframe listeners stops the complete tiggering.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 23, 2013 Mar 23, 2013
LATEST

That doesn't answer the question of how.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines