A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Byte size of clips loaded using loadMovie()

  1. #1
    Member
    Join Date
    Nov 2004
    Posts
    46

    Byte size of clips loaded using loadMovie()

    I made preloaders for dynamically loaded SWF files, and realised that the getBytesLoaded() and getBytesTotal() do not return the actual SWF file size.

    It is typically twice the actual file size... I suspect its because the reported size has the file loaded in URL encoded format.

    But question here is... was the file transmitted in URL encoded format, or did Flash just compute the BytesTotal based on the encoded content?

    Right now I'm just showing percentage loaded, as the kB display would be misleading to the visitor!

  2. #2
    imagination through stupidity
    Join Date
    Apr 2001
    Location
    P3X-3113
    Posts
    1,238
    umn..

    url encoded is just a way of converting standard text (aka cleartext) into a format that won't effect normal operations of variable seperation. (ie, ?s=variable&seq=newvariable&text=this%20is%20my%20 text )

    Files are always transfered as packets of data, either as ASCII or Binary.
    Nothing to see here, move along.

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