2 Replies Latest reply on Feb 18, 2014 11:38 PM by SuhasYogin
      • 1. Re: Creating a game progress bar?
        moccamaximum Level 5

        1.create a MovieClip that will be a container for your progressbar, name it "progressBar"

        2.Inside (Double click to get inside) you can make a tween that holds the animation of your progress.

        3.Put stopframes on every keyframe of the animation

        4.create a variable that you use to save the users progress




        //var progress:int=0;


        then everytime the user scores







        and your update function on the main timeline/first frame


        function update(_progress:int):void{

        //you want to avoid the situatuon that Flash tries to jump somewhere impossible

        // the sign "&&" stands for LOGICAL AND

        if(_progress>=1 && _progress<=_progressBar.totalFrames){




        1 person found this helpful
        • 2. Re: Creating a game progress bar?
          SuhasYogin Adobe Employee

          Moved this thread from Flash Pro FAQ sub-forum to Flash Pro - General sub-forum.