Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

How to get the "loading bar" at the start of flash movie

Options
  • 06-04-2008 6:12pm
    #1
    Closed Accounts Posts: 401 ✭✭


    When ever there is a flash movie on the internet , it says loading at the start until all of the movie has loaded . - normally a percentage or loading bar. Where can i get one of these - there is some code in action script to inform someboby how far the loading has progressed or do people just design a "loading bar" for the sake of it???


Comments

  • Registered Users Posts: 35,524 ✭✭✭✭Gordon


    It's down to the getBytesLoaded() and getBytesTotal() commands in Actionscript. Essentialy you are telling flash that on the first frame you want to play your preloader. Now when you get to frame two flash has to check and see if the bytesloaded is less than the bytestotal. If it is then go back to frame one. Kinda.

    Google for "preloader" ,and here is a semi decent tutorial on making a preloader.


Advertisement