Peter wrote:
 
HTTP 206 Partial Content and LoadMovie
 
This is a nasty bug, and a little arcane, but  I'd greatly appreciate any
help.
 
I have a flash application (created in Flash MX 2004, Actionscript 2.0,
saved as flash 6) which is loading a number of swfs (100 or so).  The SWFs
make up some character animations, and we kick many of them off
simultaneously. We then have a loader that flips through them checking if
they are loaded, and once they are all loaded, starts the application.
 
99.9% of the time it works fine, but every so often it hangs on the load
screen and never leaves.
 
I've only been able to confirm this happening in firefox, but one of our
testers claims it happened in IE as well.
 
I finally got some hard evidence was going on by looking at the headers
(courtesy of the cool livehttpheaders firefox extension).
 
An example is pasted in below (scroll to bottom), here's the order of
events:
-Flash app loads objects.swfs a couple times
-First GET request is met with a happy HTTP/1.x 200 OK
-Second GET request is met with not so happy HTTP/1.x 206 Partial Content
 
And that's it, stuff pretty much just stops after that, movie never finishes
loading, so presumably objects.swf is never really complete.
 
My theory is flash is part of the way through getting the first objects.swf
when it requests the second one, which results in turn in a PARTIAL CONTENT
request, which for some reason isn't working as advertised in this
situation.
 
QUESTIONS:
1. Is my theory right? If not, any other ideas?
 
2. I can think of two possible "fixes":
-Switch to flash 7, use the MovieLoaderClass and use the onLoadError to
trigger an attempted reload of the swfs.  This would suck because the app is
working fine in flash 6 now otherwise.
-Tack "?foo=" + Math.random() on the end of every swf load, so we get no
caching. Downside is we get no caching, and we are loading a lot of swfs
repeatedly.
Anyone got any other bright ideas?
 
I'd GREATLY appreciate any help or advice!
 
_peter
 
206 Partial Content should mean either the file can not be completely
downloaded because it is still being uploaded or the web server or file
system is being overloaded and does not have the resources to access the
entire file. Hows the server load? What do the web server error logs say?
Are you using a PHP script to serve the file (I noticed the PHPSESSID)?
If so is it getting overloaded or not handling file locks properly?
 
I know this all sounds like stuff that should effect all browsers but
sometimes it's just timing and also how different browsers handle
different situations and errors.
 
 
-=- RuneImp
ImpTech - Web Design & Hosting

 

 

 

I have found the same problem getting HTTP statuscode 206 Partial Content
and the flash / movie is stopping before end.

My datacenter could not help me. Is there any answer to the above mentioned
issues.

 

Thanks in advance

 

Søren

 

 

 

Med venlig hilsen

 

Søren Bjarne Jensen

SBJ Consult ApS

 

Vivaldisvej 111, 9200  Aalborg SV

Telefon: 98 13 92 70

Email: [EMAIL PROTECTED]

www.sbjconsult.dk

 

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to