• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. Using Preloading Sequences > Using getBytesLoaded() and getBytesTot...

Using getBytesLoaded() and getBytesTotal()

With the introduction of the Movie Clip object in Flash 5 came some new methods, notably getBytesLoaded() and getBytesTotal(). For the first time, you can accurately determine how much of your movie has downloaded. If you’re going to be building preloaders in Flash, you want to get to know these methods well:

  • getBytesLoaded(). The total number of bytes that have currently loaded. The syntax is movieclip.getBytesLoaded().

  • getBytesTotal(). The total number of bytes for the entire movie, including all movie clips. The syntax is movieclip.getBytesTotal().


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint