A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: getBytesLoaded() of a txt-file?

  1. #1
    Junior Member
    Join Date
    Feb 2002
    Posts
    2
    How can I get the getBytesTotal and getBytesLoaded() of a external loaded .txt file?

  2. #2
    Senior Member
    Join Date
    May 2001
    Posts
    335
    Flash 5 doesn't provide that possibility...

    It only applies to Movie Clips or anything you are trying to load using LoadMovie()

    i think it's possible to write something like that
    loadMovie("give_text.php",_root.test);

    give_test.php should create .swf file with your text dynamically and return it to flash.
    and you could be able to use getBytesTotal() and getBytesLoaded()

    i think i'll try to create such script when i have free time... If MusicMan haven't already created it


  3. #3
    Junior Member
    Join Date
    Feb 2002
    Posts
    2

    thanks

    thanks, but now Ill put a exta var into the txt-file, and scan thatone with an if statement. Not nice, but it works....

  4. #4
    Senior Member
    Join Date
    Feb 2001
    Posts
    475
    If you just want to know if the text (data, variables, movie or whatever) is loaded use the

    onClipEvent (data)

    handler. this event only happens when the data is fully loaded = text-file is in. i think this is a cleaner approach then appending a variable and check for it...

    my 2 euro-cents
    Yours
    HTD

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