dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: URLLoader and bytesTotal

  1. #1
    Junior Member
    Join Date
    Jul 2008
    Posts
    4

    URLLoader and bytesTotal

    Hi guys,

    I'm registering for the ProgressEvent.PROGRESS event on a URLLoader object. The URLLoader object is loading a fairly large xml file (50KB).

    It appears that the bytesTotal (and perhaps bytesLoaded) value is incorrect. It seems fine locally but as soon as I put the swf on a web server it's wrong.

    I've attached my source .as file and some trace output. I'd really appreciate it if somebody took a quick look. Thanks!
    Attached Files Attached Files

  2. #2
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    The bytesTotal is going up as the file downloads...which means the server isn't reporting the file size when you request it...

  3. #3
    Junior Member
    Join Date
    Jul 2008
    Posts
    4
    Thanks. So bytesTotal isn't always guaranteed to work? It's server dependent?

    Quote Originally Posted by neznein9
    The bytesTotal is going up as the file downloads...which means the server isn't reporting the file size when you request it...

  4. #4
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    I think it's pretty rare...like when you download a file and it just tells you the amount downloaded but it can't tell you the percent or how much is left...infrequent but you do see it now and again.

    Any server guys out here know more about this stuff?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center