A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Progress Bar Component

  1. #1
    Does anyone have a simple tutorial or quick guide on how to set up this new MX component? I have 6 scenes, the 1st being the preload scene.

    Thanks

  2. #2
    Senior Member
    Join Date
    Mar 2002
    Posts
    334
    Put your progress bar on the stage and give it a name like myLoader

    then put this in your first frame AS

    Code:
    myLoader.setLoadTarget(this);
    myLoader.setChangeHandler("onProgress");
    
    function onProgress()
    {
      if(myLoader.getPercentComplete() == 100)
       {
        gotoAndPlay(nextScene);
       }
    }

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