Flash loading script

Out of context: Reply #2

  • Started
  • Last post
  • 23 Responses
  • PonyBoy0

    simply put... use this equation at the beginning of your site:

    pctLoaded = Math.round(getBytesLoaded()/getB...

    someConstant can be any number - but... the final number (once bytesTotal == bytesLoad) will be THAT number...

    ... so if you made someConstant = 100... you'd get a 1-100 scenario...

    ... make sense?

    so... create an interval that checks that variable every few milliseconds - you can base the size of your loadbar on that someConstant variable... or you can tell a movieclip to gotoAndStop(someConstant);

    ... there's lots of ways. :) ... but that little equation will give you the power over all the data in your fla (as long as you're not loading in external data).

    • So in other words the "bar drawing" is not part of a existent function in Flash?SoulFly
    • nope... just the ability to provide 'your bar' the variables you need to make it larger/smallerPonyBoy

View thread