A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: loading bar starting very late

Hybrid View

  1. #1
    Senior Member
    Join Date
    Aug 2001
    Location
    New York City
    Posts
    409

    loading bar starting very late

    This happens every time I use a preloader...it starts the load bar late...in this instance a i meg swf doesn't show the load bar and progress until 50%
    http://www.urbancolortheory.com/beta07

    can anyone offer a solution ?
    here's the code:
    stop();
    onEnterFrame = function () {
    totalBytes = _parent.getBytesTotal();
    loadedBytes = _parent.getBytesLoaded();
    percent = Math.ceil((loadedBytes/totalBytes)*100);
    gotoAndStop(percent);
    info_txt.text = percent+" %";
    if (percent>=100) {
    _parent.gotoAndPlay("Main");
    delete this.onEnterFrame;
    }
    };

  2. #2
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,876
    have a look at http://www.senocular.com/flash/tutorials/preloading/

    it addresses this issue
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  3. #3
    Senior Member
    Join Date
    Aug 2001
    Location
    New York City
    Posts
    409
    wow...that is a great article by senocular. very helpful, thanks!

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