gskinner / SPL

Spelling Plus Library
Other
38 stars 9 forks source link

WordListLoader woes #2

Open javamon opened 11 years ago

javamon commented 11 years ago

Using SPL in Actionscript with TLFTextField. Attempting to load word list with this code:

        wordListLoader.addEventListener("complete", loaderComplete);
        wordListLoader.addEventListener("httpStatus", loaderStatus);
        wordListLoader.addEventListener("ioError", loaderError);
        wordListLoader.addEventListener("open", loaderOpen);
        wordListLoader.addEventListener("securityError", loaderError);
        wordListLoader.load( new URLRequest( wordListURL ) );

Sometimes the list loads and other times it does not. When it does not there will be an "open" and a 200 status followed by silence. The request seems to be eaten.

Is there a good documentation source for Actionscript usage? Have searched but not found a good reason for the loading issues.

Thank you.

wdamien commented 11 years ago

Usually when a request is "eaten" that means that the GC has cleared out the loader, from your description I'm pretty sure thats whats happening. So do you have a reference to your wordListLoader somewhere, i.e var'ed on your class? Also if you post a functional sample I could take a look at it for you. I'm not sure off-hand if theres a straight Actionscript sample, but the demos are a good starting point for help.