A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Progress Bars

  1. #1
    Junior Member
    Join Date
    Apr 2007
    Posts
    19

    Progress Bars

    Hi ive pretty much finished my site www.coriolis-effect.co.uk and need some directions to progress bars. I can't find much simple stuff on here (yes im stupid at flash) any tutorials that I may have missed? thanks

  2. #2
    junior master chef j_hunter182's Avatar
    Join Date
    Jun 2003
    Location
    Hull, East Yorkshire, UK
    Posts
    556
    Code:
    //PRELOADER
    loadbar_mc._xscale = 1
    myInterval = setInterval(preloader, 10);
    function preloader() {
    	if (getBytesLoaded()>=getBytesTotal()) {
    		gotoAndStop(2);
    		clearInterval(myInterval);
    	}
    	loadbar_mc._xscale += (((getBytesLoaded()/getBytesTotal())*100)-loadbar_mc._xscale)/5
    	percentage_mc.percentage_txt.text = Math.round(getBytesLoaded()/getBytesTotal()*100)+"%";
    }
    On the first frame of your FLA make a rectangular movieclip and name it loadbar_mc. Paste this code into the first frame in your actionscript layer.
    Jamie

  3. #3
    Junior Member
    Join Date
    Apr 2007
    Posts
    19
    hi i can't get this to work for ****. here is the file
    www.purgeme.co.uk/lewis/coriolis/test.fla

    am i doing something wrong? it just freezes with a rectangle there.

  4. #4
    junior master chef j_hunter182's Avatar
    Join Date
    Jun 2003
    Location
    Hull, East Yorkshire, UK
    Posts
    556
    Link doesn't work.

  5. #5
    Junior Member
    Join Date
    Apr 2007
    Posts
    19

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