A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Built In Preloader Component

  1. #1
    Senior Member
    Join Date
    Dec 2000
    Posts
    222
    Does Flash MX offer any kind of in box Pre-Loader component? It seems to me it should, that'd make a lot of sense...

  2. #2
    Junior Member
    Join Date
    Jan 2002
    Posts
    4
    Download the Flash UI Components 2 from Flash Exchange on Macromedia's site.

  3. #3
    Senior Member
    Join Date
    Jun 2001
    Location
    Ottawa, Canada
    Posts
    304
    there is a new extension manager to install the mx components available from MM

  4. #4
    Junior Member
    Join Date
    Aug 2001
    Posts
    8

    but

    how do you actually use the built in preloader component?

  5. #5
    Senior Member
    Join Date
    Sep 2001
    Posts
    123
    i think its better off using you own code, its easier to me.

  6. #6

    You guys should read the reference panel once you've got your hands on the ProgressBar. It's pretty easy. Here's some code, assuming you're preloading on the _root and you've got a progressBar named, oh, let's say, progressBar.

    Code:
    progressBar.setChangeHandler("onProgress");
    progressBar.setLoadTarget(_root);
    stop();
    
    function onProgress()
    {
      if (progressBar.getPercentComplete()>=60) {
         play();
      }
    }
    You can use the changeHandler to drive any kind of progress indication you want. It's definitely less work than using getBytesLoaded / total.

    nig
    [email protected]

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