Skip to main content
Participating Frequently
Aug 31, 2009 6:13 AM UTC
Question

Avoid Freezing

Hi.

When loading a long text using TextFilter.importToFlow, it freezes. (even with TextFlow.addChild(BIG_ELEMENT))

Could anyone tell me how to avoid it or if it is possible or not?

Thanks.

Yoshiki

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Participating Frequently
Sep 6, 2009 12:16 AM UTC

I figured out one cause of freezing.

In BaseTextLayoutImporter.as:431,
//var whiteArray:Array = txt.match(/^[\s]+$/);
strip = txt.search(/^[\u0009\u000a\u000d\u0020]+$/) != -1;

My code seems like working, but could anyone confirm this?

Also, in 409, if "for each" is replaced with "setInterval" or something, then it might be better for freezing, I think. I will try when I have time...

Thanks.

Yoshiki Okawa

Translate
Inspiring
Sep 1, 2009 5:50 PM UTC

How much markup are you importing?

You may need to divide your markup into smaller units - like chapters.  Check out the pagination example here:

http://blogs.adobe.com/tlf/2008/12/

Thanks,

Richard

Translate