We use MD5 and understand the issue completely. We use classes that look
at the file a chunk at a time as we don't want to load 60+MB MP4 files
into a ByteArray. Our solution did help in keeping the general memory
overhead under control. The issue becomes one of time as although our
Air client can usually bring a large file down in a reasonable amount of
time (let's say 1-3 or so minutes for a broadband connection) the sticky
point is the MD5 typically ate another 2+ minutes to complete. Likewise
hoping to implement a progress indicator, MD5 (or any CRC like
mechanism) is processor heavy leaving you with the challenge the balance
of running an animation at the same time you want your processor to be
handling your check with the more animation, the slower your CRC will
be. 

 

If your mention of Asynchronous means you want this to run on its own
thread, then you need to realize that the Flash Player is single
threaded (but read about HTTP traffic).

 

KFB

 

From: [email protected] [mailto:[email protected]] On
Behalf Of nathanpdaniel
Sent: Friday, January 02, 2009 2:03 PM
To: [email protected]
Subject: [flexcoders] Creating Asynchronous Classes

 

Is there a "primer" on creating asynchronous classes? I've been 
building an app that runs a CRC32 check on each file (which requires 
looking at every byte of every file). It doesn't cause issues when the 
files are small text files, but when they're 40mb video files, the app 
hangs till complete. I want the app to be able to update other things 
while waiting on the CRC32 functionality completes. Actually, all I 
need is some visual progress indicator (some way to update the 
display). 
Anyone with any suggestions! I'm all ears! :D

-N. D.

 

<<image001.jpg>>

<<image002.jpg>>

Reply via email to