dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Preload Movie...

  1. #1
    Junior Member
    Join Date
    Apr 2002
    Posts
    19
    I know this is a stupid question... but... how do I make a preloader... and how do I create a percent bar..?

  2. #2
    always for rent
    Join Date
    Oct 2000
    Location
    Seattle
    Posts
    307
    frame 1:
    _root.createEmptyMovieClip("progress",1);
    _root.progress._y=200;
    _root.progress._xscale=0;
    _root.progress.beginFill(0xff0000,100);
    _root.progress.moveTo(0,-5);
    _root.progress.lineTo(0,5);
    _root.progress.lineTo(550,5);
    _root.progress.lineTo(550,-5);
    _root.progress.lineTo(0,-5);
    _root.progress.endFill();

    frame 3:
    nPercent=(_root.getBytesLoaded()/_root.getBytesTotal())*100;
    _root.progress._xscale=nPercent;
    if(nPercent<100){
    _root.gotoAndPlay(_currentframe-1);
    } else {
    play();
    }

    that's code from a preloader i made the other day.

    jeremy

    p.s. the stage is at the default 550x400.

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