A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Help with a Preloader

Hybrid View

  1. #1
    Junior Member
    Join Date
    Dec 2003
    Posts
    8

    Help with a Preloader

    I'm wnating to build a preloader for my website, that shows a loading bar to display just how much data is still left to be loaded, but I don't have a clue how to start. Can someone give me detailed instructions, or point me to a good tutorial, to help me with this problem.

    Thanks,

    Mouse

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    There is a Tutorial section right here on this site.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    Flaxcreatures flaxdyzam's Avatar
    Join Date
    Jun 2003
    Location
    Belgium - Limburg - Hasselt
    Posts
    147
    You should have a look at some tutorials, it'll help alot.

    Here is some of my code:

    PHP Code:
    onClipEvent (enterFrame) {
    loaded _root._level2.getBytesLoaded(); //the number of bytes that's already loaded
    total _root._level2.getBytesTotal(); //the total of bytes
    var percent
    percent 
    = (loaded/total)*100//generates the percent var
    showpercent Math.round(percent)+"%"//shows a percent and %
    this.preloadbalk._width = (this.preloaderbar._width/100)*percent//changes the width of your bar 
    if (percent == 100){ //if the var percent is equal to 100 this.nextFrame() will be executed
        
    this.nextFrame()
        }

    Hope it helps you...


    Kind regards
    Pieter van Stee
    alias Flax
    Mail me @ pietervanstee@skynet.be
    Add me at MSN

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397

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