34 Replies Latest reply on Dec 23, 2011 8:21 PM by kglad

    Cant hide or get rid of pre loader bar. Please help

    Joey_Feliney

      [b]Ok why wont this work?

       

      Trying to do a

       

      Navigation bar button , to preloader to abour me page with a photo component.

       

      Not on the pre loader page the bar works, only it wont disappear.[/b]

       

      [pre]s[color=blue]iteLoader.loadMovie("AboutMe5.swf",4);

       

       

      Frame_movie._alpha = 100;

      loadingBar._alpha = 100;

       

       

      loadingBar._xscale = 1;

       

      loadingBar.onEnterFrame = function()

      {

          kBytesLoaded = this._parent.siteLoader.getBytesLoaded() / 1024;

          kBytesTotal = this._parent.siteLoader.getBytesTotal() / 1024;

          percentage = Math.round(kBytesLoaded / kBytesTotal * 100);

          this._xscale = percentage;

         

      if ("percentage" ==99) {

       

         

          loadingBar._alpha=0;

          Frame_movie._alpha=0;

       

              delete this.onEnterFrame;

          }

      [/color]

      }[/pre]

       

      [b]The nav bar has the following script[/b]

       

      [pre][color=blue] Button_AboutMe.onRelease = function(){

      unloadMovie(4);

      loadMovie("AboutMe_Loader.swf",4);

      }[/color][/pre]

       

       

      [b]The loaded film used to just have  as the script [/b]

       

      [color=blue]stop();[/color]

       

      [b]now I added this script to the final AboutMe5.swf file to try and hide the bar but does not work, also tried using different layers and the unloadMovie(4); script. It did not work.

       

      [/b]

       

      [pre][color=blue] unloadMovie(4);

      loadingBar._alpha=25;

      Frame_movie._alpha=25;

       

      SiteLoader._alpha = 10

      //    loadingBar._alpha=1;

      //    this._alpha=1;

          //Frame_movie._alpha=1;[/color][/pre]

       

      [b]Now Frame_move is a mov (and tried button) and  the laoding bar is a mov file. I can make these fade by adusting the alpah but this only works accross the film. I cannot trigger it with the line.

       

      [/b]

       

      [color=blue][pre]if ("percentage" ==99) {[/pre][/color]

       

      Ive tried with and without single and double quotes. and plane.

       

      tried replacing percentage with

       

      this._xscale

      loading bar

       

       

      Nothing works.

       

      it appears to be the if script thats the problem not triggering the fad or gettig red of the pre loader altogether.

       

       

      Please help

        • 1. Re: Cant hide or get rid of pre loader bar. Please help
          kglad Adobe Community Professional & MVP

          use:

           

          if (percentage >=99) {

          • 2. Re: Cant hide or get rid of pre loader bar. Please help
            Joey_Feliney Level 1

            Already tried that it says syntax error on that line

             

            if (percentage >=99) {

            • 3. Re: Cant hide or get rid of pre loader bar. Please help
              kglad Adobe Community Professional & MVP

              copy and paste the code you're using.

              • 4. Re: Cant hide or get rid of pre loader bar. Please help
                Joey_Feliney Level 1

                siteLoader.loadMovie("AboutMe5.swf",4);

                 

                 

                Frame_movie._alpha = 100;

                loadingBar._alpha = 100;

                 

                 

                loadingBar._xscale = 1;

                 

                loadingBar.onEnterFrame = function()

                {

                    kBytesLoaded = this._parent.siteLoader.getBytesLoaded() / 1024;

                    kBytesTotal = this._parent.siteLoader.getBytesTotal() / 1024;

                    percentage = Math.round(kBytesLoaded / kBytesTotal * 100);

                    this._xscale = percentage;

                   

                if (percentage >= 99) {

                 

                   

                    loadingBar._alpha=0;

                    Frame_movie._alpha=0;

                 

                        delete this.onEnterFrame;

                    }

                 

                }

                 

                 

                Also tried

                 

                if (percentage = 99) {

                if (percentage == 99) {

                if ('percentage' == 99) {

                if ("percentage"== 99) {

                if (this._xscale = 99) {

                • 5. Re: Cant hide or get rid of pre loader bar. Please help
                  Joey_Feliney Level 1

                  the site is www.chriscreativity.com

                   

                   

                  Once I get the about me pre loader it will be copied to others.

                   

                  Also any advice on website please?

                  • 6. Re: Cant hide or get rid of pre loader bar. Please help
                    kglad Adobe Community Professional & MVP

                    1.  make sure you're publishing for as2.

                     

                    2. copy and paste the complete error message when using the code i suggested.  highlight the line of text mentioned in the error message.

                    • 7. Re: Cant hide or get rid of pre loader bar. Please help
                      Joey_Feliney Level 1

                      Scene=scene 1, layer=Actions, frame=1, line 11  Syntax error

                       

                      line 11 was Function loadingBar.onEnterFrame():

                       

                       

                       

                       

                      I then altered the scrtipt to this which got rid of the error but now no pre loader bar at all:-

                       

                      if the if line is

                       

                       

                      if (percentage >= 99) {

                       

                      You get no bar

                       

                      if I write the line as

                       

                      if (percentage == 99) {

                       

                      You get stuck with the bar perminantly

                       

                      Now how do i get the bar pre loading and loose it when loaded please.

                       

                      ***************************************current script****************

                       

                       

                      siteLoader.loadMovie("AboutMe5.swf",4);

                       

                       

                      Frame_movie._alpha = 100;

                      loadingBar._alpha = 100;

                       

                       

                      loadingBar._xscale = 1;

                       

                      loadingBar.onEnterFrame = function()

                      //Function loadingBar.onEnterFrame():

                          {

                          kBytesLoaded = this._parent.siteLoader.getBytesLoaded() / 1024;

                          kBytesTotal = this._parent.siteLoader.getBytesTotal() / 1024;

                          percentage = Math.round(kBytesLoaded / kBytesTotal * 100);

                          this._xscale = percentage;

                       

                          if (percentage >= 99) {

                          loadingBar._alpha=0;

                          Frame_movie._alpha=0;

                      //delete this.onEnterFrame;

                          delete Frame_movie;

                          }

                       

                      }

                      • 8. Re: Cant hide or get rid of pre loader bar. Please help
                        kglad Adobe Community Professional & MVP

                        i don't see

                         

                        Function loadingBar.onEnterFrame():

                         

                        in your original post so i don't see how the correction i suggested would cause that error.  ie, don't make changes to suggestions and then report errors as if the suggestion caused the error.

                         

                        what's the trace output (copy and paste), using:

                         

                         

                        siteLoader.loadMovie("AboutMe5.swf");

                         

                        Frame_movie._alpha = 100;

                        loadingBar._alpha = 100;

                         

                        loadingBar._xscale = 1;

                         

                        loadingBar.onEnterFrame = function()

                        {

                            kBytesLoaded = this._parent.siteLoader.getBytesLoaded() / 1024;

                            kBytesTotal = this._parent.siteLoader.getBytesTotal() / 1024;

                            percentage = Math.round(kBytesLoaded / kBytesTotal * 100);

                            this._xscale = percentage;

                        trace(this+" "+this._xscale);

                         

                            if (percentage >= 99) {

                            loadingBar._alpha=0;

                            Frame_movie._alpha=0;

                        //delete this.onEnterFrame;

                            delete Frame_movie;

                            }

                         

                        }

                        • 9. Re: Cant hide or get rid of pre loader bar. Please help
                          Joey_Feliney Level 1

                          Tried it. it did not work First:

                           

                          siteLoader.loadMovie("AboutMe5.swf");

                           

                          Frame_movie._alpha = 100;

                          loadingBar._alpha = 100;

                           

                          loadingBar._xscale = 1;

                           

                          loadingBar.onEnterFrame = function()

                          {

                              kBytesLoaded = this._parent.siteLoader.getBytesLoaded() / 1024;

                              kBytesTotal = this._parent.siteLoader.getBytesTotal() / 1024;

                              percentage = Math.round(kBytesLoaded / kBytesTotal * 100);

                              this._xscale = percentage;

                          trace(this+" "+this._xscale);

                           

                              if (percentage >= 99) {

                              loadingBar._alpha=0;

                              Frame_movie._alpha=0;

                          //delete this.onEnterFrame;

                              delete Frame_movie;

                              }

                           

                          }

                          If left as it was the bar does not move and does not disappear

                           

                            if (percentage >= 99) {

                           

                          this produced the output

                           

                          _level0.loadingBar 100

                           

                          But no loading bar at all. Likewise: (the rest is left constant just changing the bottom section)

                           

                          if (percentage >= 99) {

                           

                          //    loadingBar._alpha=0;

                          //    Frame_movie._alpha=0;

                           

                          //delete this.onEnterFrame;

                           

                             delete Frame_movie;

                             delete loadingBar;

                           

                          }

                           

                          and this produces a adding out output ie

                           

                          _level0.loadingBar 1

                          _level0.loadingBar2 but no bar

                           

                           

                          if (percentage >= 99) {

                           

                              loadingBar._alpha=0;

                              Frame_movie._alpha=0;

                           

                          //delete this.onEnterFrame;

                           

                          //   delete Frame_movie;

                          //   delete loadingBar;

                           

                          }

                           

                          the following just produced 3 lines of _level0.loadingBar 100,and no bar

                           

                          if (percentage >= 99) {

                           

                          //    loadingBar._alpha=0;

                          //    Frame_movie._alpha=0;

                           

                          //delete this.onEnterFrame;

                           

                          //   delete Frame_movie;

                          //   delete loadingBar;

                           

                          unloadMovie(loadingBar);

                          unloadMovie(Frame_movie);

                           

                          }

                          • 10. Re: Cant hide or get rid of pre loader bar. Please help
                            Joey_Feliney Level 1

                            if I change the If statement to

                             

                            if (percentage == 100) {

                             

                            if (percentage == 100) {

                             

                            //    loadingBar._alpha=0;

                            //    Frame_movie._alpha=0;

                               delete Frame_movie;

                               delete loadingBar;

                             

                            //unloadMovie(loadingBar);

                            //unloadMovie(Frame_movie);

                            delete this.onEnterFrame;

                             

                            }}

                             

                            this has a constant bar and you get 3 lines of

                             

                            _level0.loadingBar 100

                             

                            It has a constant on bar that does not dissappear

                             

                             

                            ******************

                             

                            siteLoader.loadMovie("AboutMe5.swf");

                             

                            Frame_movie._alpha = 100;

                            loadingBar._alpha = 100;

                            loadingBar._xscale = 1;

                             

                            loadingBar.onEnterFrame = function(){

                                kBytesLoaded = this._parent.siteLoader.getBytesLoaded() / 1024;

                                kBytesTotal = this._parent.siteLoader.getBytesTotal() / 1024;

                                percentage = Math.round(kBytesLoaded / kBytesTotal * 100);

                                this._xscale = percentage;

                                trace(this+" "+this._xscale);

                             

                            if (percentage == 99) {

                             

                            //   loadingBar._alpha=0;

                            //    Frame_movie._alpha=0;

                            //   delete Frame_movie;

                            //   delete loadingBar;

                             

                            unloadMovie(loadingBar);

                            unloadMovie(Frame_movie);

                            //delete this.onEnterFrame;

                             

                            }}

                             

                             

                            The above appears to work with the bar moving then diappearing when i use the test movie simulate download. But only at slow speed ie 56k

                             

                            If I just do just testmovie or set the speed to dsl  the bar does not diasspear when its supposed to. Why different effects ie bar or no bar dependant on speed?

                             

                            when uploaded online the same file does not show the loading bar just the frame..

                             

                            Im confused whey is same script actign differently

                            • 11. Re: Cant hide or get rid of pre loader bar. Please help
                              kglad Adobe Community Professional & MVP

                              you're making this more difficult than it should be.  again,

                               

                              what's the trace output (copy and paste), using:

                               

                               

                              siteLoader.loadMovie("AboutMe5.swf");

                               

                              Frame_movie._alpha = 100;

                              loadingBar._alpha = 100;

                               

                              loadingBar._xscale = 1;

                               

                              loadingBar.onEnterFrame = function()

                              {

                                  kBytesLoaded = this._parent.siteLoader.getBytesLoaded() / 1024;

                                  kBytesTotal = this._parent.siteLoader.getBytesTotal() / 1024;

                                  percentage = Math.round(kBytesLoaded / kBytesTotal * 100);

                                  this._xscale = percentage;

                              trace(this+" "+this._xscale);

                               

                                  if (percentage >= 99) {

                                  loadingBar._alpha=0;

                                  Frame_movie._alpha=0;

                              //delete this.onEnterFrame;

                                  delete Frame_movie;

                                  }

                               

                              }

                              • 12. Re: Cant hide or get rid of pre loader bar. Please help
                                Joey_Feliney Level 1

                                _level0.loadingBar 100

                                _level0.loadingBar 100

                                _level0.loadingBar 100

                                _level0.loadingBar 100

                                _level0.loadingBar 100

                                _level0.loadingBar 100

                                _level0.loadingBar 100

                                _level0.loadingBar 100

                                _level0.loadingBar 100

                                _level0.loadingBar 100

                                _level0.loadingBar 100

                                _level0.loadingBar 100

                                _level0.loadingBar 100

                                _level0.loadingBar 100

                                _l

                                • 13. Re: Cant hide or get rid of pre loader bar. Please help
                                  Joey_Feliney Level 1

                                  Now the above was a regualr download speed, ie just set to test movie. The below was 56k speed. Note when slowed you have an incremental section. Now this mirrors when the bar works . It tends to only workd with slow speeds on simulate download.

                                   

                                  In neither case with a straight copy and paste of your script could a pre loading bar could be seen.

                                   

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 1

                                  _level0.loadingBar 1

                                  _level0.loadingBar 2

                                  _level0.loadingBar 3

                                  _level0.loadingBar 4

                                  _level0.loadingBar 5

                                  _level0.loadingBar 5

                                  _level0.loadingBar 6

                                  _level0.loadingBar 7

                                  _level0.loadingBar 8

                                  _level0.loadingBar 8

                                  _level0.loadingBar 8

                                  _level0.loadingBar 9

                                  _level0.loadingBar 9

                                  _level0.loadingBar 10

                                  _level0.loadingBar 10

                                  _level0.loadingBar 11

                                  _level0.loadingBar 11

                                  _level0.loadingBar 12

                                  _level0.loadingBar 13

                                  _level0.loadingBar 14

                                  _level0.loadingBar 15

                                  _level0.loadingBar 16

                                  _level0.loadingBar 16

                                  _level0.loadingBar 17

                                  _level0.loadingBar 18

                                  _level0.loadingBar 19

                                  _level0.loadingBar 20

                                  _level0.loadingBar 21

                                  _level0.loadingBar 22

                                  _level0.loadingBar 23

                                  _level0.loadingBar 24

                                  _level0.loadingBar 25

                                  _level0.loadingBar 26

                                  _level0.loadingBar 28

                                  _level0.loadingBar 29

                                  _level0.loadingBar 31

                                  _level0.loadingBar 32

                                  _level0.loadingBar 33

                                  _level0.loadingBar 35

                                  _level0.loadingBar 36

                                  _level0.loadingBar 37

                                  _level0.loadingBar 38

                                  _level0.loadingBar 40

                                  _level0.loadingBar 42

                                  _level0.loadingBar 44

                                  _level0.loadingBar 46

                                  _level0.loadingBar 48

                                  _level0.loadingBar 49

                                  _level0.loadingBar 51

                                  _level0.loadingBar 53

                                  _level0.loadingBar 56

                                  _level0.loadingBar 57

                                  _level0.loadingBar 59

                                  _level0.loadingBar 60

                                  _level0.loadingBar 61

                                  _level0.loadingBar 65

                                  _level0.loadingBar 67

                                  _level0.loadingBar 69

                                  _level0.loadingBar 71

                                  _level0.loadingBar 76

                                  _level0.loadingBar 78

                                  _level0.loadingBar 84

                                  _level0.loadingBar 88

                                  _level0.loadingBar 90

                                  _level0.loadingBar 92

                                  _level0.loadingBar 93

                                  _level0.loadingBar 94

                                  _level0.loadingBar 95

                                  _level0.loadingBar 97

                                  _level0.loadingBar 99

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  _level0.loadingBar 100

                                  • 14. Re: Cant hide or get rid of pre loader bar. Please help
                                    kglad Adobe Community Professional & MVP

                                    is the frame that contains that code looping?

                                    • 15. Re: Cant hide or get rid of pre loader bar. Please help
                                      Joey_Feliney Level 1

                                      Not that i can see

                                       

                                      There are 2 frames.

                                       

                                      Frame one

                                       

                                       

                                      siteLoader.loadMovie("AboutMe5.swf");

                                       

                                      Frame_movie._alpha = 100;

                                      loadingBar._alpha = 100;

                                      loadingBar._xscale = 1;

                                       

                                      loadingBar.onEnterFrame = function(){

                                          kBytesLoaded = this._parent.siteLoader.getBytesLoaded() / 1024;

                                          kBytesTotal = this._parent.siteLoader.getBytesTotal() / 1024;

                                          percentage = Math.round(kBytesLoaded / kBytesTotal * 100);

                                          this._xscale = percentage;

                                          trace(this+" "+this._xscale);

                                       

                                      if (percentage == 99) {

                                       

                                      //   loadingBar._alpha=0;

                                      //    Frame_movie._alpha=0;

                                      //   delete Frame_movie;

                                      //   delete loadingBar;

                                       

                                      unloadMovie(loadingBar);

                                      unloadMovie(Frame_movie);

                                      //delete this.onEnterFrame;

                                       

                                      }}

                                       

                                       

                                       

                                      frame 2

                                       

                                      stop();

                                       

                                      So should not loop.

                                       

                                      As said whats strange is if you click test move you are stuck with the bar.

                                       

                                      if you simulate download as a slow speed it seems to work but with an output like above.

                                       

                                      Surely it should just be slower/

                                       

                                       

                                      Also of it goes straight to 100 it would miss the 99 bar hider

                                       

                                      But if you set it to 100 you dont get a bar at all

                                       

                                      and >= does not work at all

                                       

                                       

                                       

                                       

                                       

                                      Also flash keeps crashing sayign a script is goign to make it run slowly do you want to abort the script? whatever you say it crashes and quits

                                      • 16. Re: Cant hide or get rid of pre loader bar. Please help
                                        kglad Adobe Community Professional & MVP

                                        copy and paste the trace() output from:

                                         

                                        stop();

                                        siteLoader.loadMovie("AboutMe5.swf");

                                         

                                        Frame_movie._alpha = 100;

                                        loadingBar._alpha = 100;

                                        loadingBar._xscale = 1;

                                         

                                        loadingBar.onEnterFrame = function(){

                                            kBytesLoaded = this._parent.siteLoader.getBytesLoaded() / 1024;

                                            kBytesTotal = this._parent.siteLoader.getBytesTotal() / 1024;

                                        if(kBytesLoaded>100){

                                            percentage = Math.round(kBytesLoaded / kBytesTotal * 100);

                                            this._xscale = percentage;

                                            trace(this+" "+this._xscale);

                                         

                                        if (percentage == 99) {

                                         

                                        loadingBar.swapDepths(this._parent.getNextHighestDepth());

                                        loadingBar.removeMovieClip();

                                        Frame_movie.swapDepths(this._parent.getNextHighestDepth());

                                        Frame_movie.removeMovieClip();

                                        this._parent.nextFrame();

                                        delete this.onEnterFrame;

                                         

                                        }}

                                        }

                                        • 17. Re: Cant hide or get rid of pre loader bar. Please help
                                          Joey_Feliney Level 1

                                          Tried it. No output at all. And I see the frame before nd after buut no progress bar

                                          • 18. Re: Cant hide or get rid of pre loader bar. Please help
                                            Joey_Feliney Level 1

                                            I turned the greater than to less than sign on line

                                             

                                            if(kBytesLoaded>100){

                                             


                                            &got output

                                             

                                             

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 0

                                            _level0.loadingBar 1

                                            _level0.loadingBar 2

                                            _level0.loadingBar 3

                                            _level0.loadingBar 4

                                            _level0.loadingBar 5

                                            _level0.loadingBar 5

                                            _level0.loadingBar 6

                                            _level0.loadingBar 7

                                            _level0.loadingBar 7

                                            _level0.loadingBar 8

                                            _level0.loadingBar 8

                                            _level0.loadingBar 9

                                            _level0.loadingBar 9

                                            _level0.loadingBar 10

                                            _level0.loadingBar 10

                                            _level0.loadingBar 11

                                            _level0.loadingBar 11

                                            _level0.loadingBar 12

                                            _level0.loadingBar 13

                                            _level0.loadingBar 14

                                            _level0.loadingBar 15

                                            _level0.loadingBar 15

                                            _level0.loadingBar 16

                                            _level0.loadingBar 17

                                            _level0.loadingBar 18

                                            _level0.loadingBar 19

                                            _level0.loadingBar 20

                                            _level0.loadingBar 20

                                            _level0.loadingBar 22

                                            _level0.loadingBar 23

                                            _level0.loadingBar 24

                                            _level0.loadingBar 25

                                            _level0.loadingBar 27

                                            _level0.loadingBar 28

                                            _level0.loadingBar 29

                                            _level0.loadingBar 31

                                            _level0.loadingBar 32

                                            _level0.loadingBar 33

                                            _level0.loadingBar 35

                                            _level0.loadingBar 36

                                            _level0.loadingBar 37

                                            _level0.loadingBar 38

                                            _level0.loadingBar 39

                                            _level0.loadingBar 41

                                            _level0.loadingBar 44

                                            _level0.loadingBar 46

                                            _level0.loadingBar 48

                                            _level0.loadingBar 49

                                            _level0.loadingBar 51

                                            _level0.loadingBar 53

                                            _level0.loadingBar 56

                                            _level0.loadingBar 58

                                            _level0.loadingBar 58

                                            _level0.loadingBar 60

                                            _level0.loadingBar 61

                                            _level0.loadingBar 63

                                            _level0.loadingBar 66

                                            _level0.loadingBar 69

                                            _level0.loadingBar 70

                                            _level0.loadingBar 76

                                            _level0.loadingBar 77

                                            _level0.loadingBar 83

                                            _level0.loadingBar 87

                                            _level0.loadingBar 91

                                            _level0.loadingBar 92

                                            _level0.loadingBar 93

                                            _level0.loadingBar 94

                                            _level0.loadingBar 95

                                            _level0.loadingBar 97

                                            _level0.loadingBar 98

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            _level0.loadingBar 100

                                            • 19. Re: Cant hide or get rid of pre loader bar. Please help
                                              kglad Adobe Community Professional & MVP

                                              just copy and paste.  don't change anything:

                                               

                                               

                                               

                                              stop();

                                              siteLoader.loadMovie("AboutMe5.swf");

                                               

                                              Frame_movie._alpha = 100;

                                              loadingBar._alpha = 100;

                                              loadingBar._xscale = 1;

                                               

                                              loadingBar.onEnterFrame = function(){

                                                  kBytesLoaded = this._parent.siteLoader.getBytesLoaded() / 1024;

                                                  kBytesTotal = this._parent.siteLoader.getBytesTotal() / 1024;

                                              if(kBytesLoaded>1){

                                                  percentage = Math.round(kBytesLoaded / kBytesTotal * 100);

                                                  this._xscale = percentage;

                                                  trace(this+" "+this._xscale);

                                               

                                              if (percentage >= 99) {

                                               

                                              loadingBar.swapDepths(this._parent.getNextHighestDepth());

                                              loadingBar.removeMovieClip();

                                              Frame_movie.swapDepths(this._parent.getNextHighestDepth());

                                              Frame_movie.removeMovieClip();

                                              this._parent.nextFrame();

                                              delete this.onEnterFrame;

                                               

                                              }}

                                              }

                                              • 20. Re: Cant hide or get rid of pre loader bar. Please help
                                                Joey_Feliney Level 1

                                                _level0.loadingBar 100

                                                 

                                                The loading bar works  but the frame does not dissapear which is the frame mov

                                                • 21. Re: Cant hide or get rid of pre loader bar. Please help
                                                  kglad Adobe Community Professional & MVP

                                                  copy and paste:

                                                   

                                                   

                                                  stop();

                                                  siteLoader.loadMovie("AboutMe5.swf");

                                                   

                                                  Frame_movie._alpha = 100;

                                                  loadingBar._alpha = 100;

                                                  loadingBar._xscale = 1;

                                                   

                                                  loadingBar.onEnterFrame = function(){

                                                      kBytesLoaded = this._parent.siteLoader.getBytesLoaded() / 1024;

                                                      kBytesTotal = this._parent.siteLoader.getBytesTotal() / 1024;

                                                  if(kBytesLoaded>1){

                                                      percentage = Math.round(kBytesLoaded / kBytesTotal * 100);

                                                      this._xscale = percentage;

                                                  if (percentage >= 99) {

                                                   

                                                  loadingBar.swapDepths(this._parent.getNextHighestDepth());

                                                  loadingBar.removeMovieClip();

                                                  Frame_movie.swapDepths(this._parent.getNextHighestDepth());

                                                  trace(Frame_movie+" "+this._parent.getNextHighestDepth());

                                                  Frame_movie.removeMovieClip();

                                                  this._parent.nextFrame();

                                                  delete this.onEnterFrame;

                                                   

                                                  }}

                                                  }

                                                  • 22. Re: Cant hide or get rid of pre loader bar. Please help
                                                    Joey_Feliney Level 1

                                                    Output

                                                     

                                                    undefined undefined

                                                     

                                                    And you get stuck with the white frame around the loading bar

                                                     

                                                    see www.chriscreativity.com

                                                    • 23. Re: Cant hide or get rid of pre loader bar. Please help
                                                      kglad Adobe Community Professional & MVP

                                                      what flash player version are you publishing for?

                                                       

                                                       

                                                      and copy and paste:

                                                      ///////////////////////////////

                                                      stop();

                                                      siteLoader.loadMovie("AboutMe5.swf");

                                                       

                                                      trace(Frame_movie);

                                                      Frame_movie._alpha = 100;

                                                      loadingBar._alpha = 100;

                                                      loadingBar._xscale = 1;

                                                       

                                                      loadingBar.onEnterFrame = function(){

                                                          kBytesLoaded = this._parent.siteLoader.getBytesLoaded() / 1024;

                                                          kBytesTotal = this._parent.siteLoader.getBytesTotal() / 1024;

                                                      if(kBytesLoaded>1){

                                                          percentage = Math.round(kBytesLoaded / kBytesTotal * 100);

                                                          this._xscale = percentage;

                                                      if (percentage >= 99) {

                                                       

                                                      loadingBar.swapDepths(this._parent.getNextHighestDepth());

                                                      loadingBar.removeMovieClip();

                                                      Frame_movie.swapDepths(this._parent.getNextHighestDepth());

                                                       

                                                      Frame_movie.removeMovieClip();

                                                      this._parent.nextFrame();

                                                      delete this.onEnterFrame;

                                                       

                                                      }}

                                                      }

                                                      • 24. Re: Cant hide or get rid of pre loader bar. Please help
                                                        Joey_Feliney Level 1

                                                        The result is the same as before. If I just test movie I see a white frame for the bar (the Frame_Movie) under the loaded content

                                                         

                                                        Output

                                                        _level0.Frame_button

                                                         

                                                        If I simulate download I see the loading bar move but then it disappears leaving the frame. under the loaded content

                                                         

                                                        Ive checked to see if it was left over shape frame under the frame button symbol (ie the frame dissapearign but leaving a drawing) but that was already cleared, i have aslo done a version where the frame mov is replaced by a frame button here

                                                         

                                                        OUTPUT

                                                        _level0.Frame_button

                                                         

                                                        There was no different to how they worked

                                                         

                                                        stop();

                                                        siteLoader.loadMovie("AboutMe5.swf");

                                                         

                                                        trace(Frame_movie);

                                                         

                                                        //Frame_movie._alpha = 100;

                                                        Frame_button._alpha = 100;

                                                         

                                                        loadingBar._alpha = 100;

                                                        loadingBar._xscale = 1;

                                                         

                                                        loadingBar.onEnterFrame = function(){

                                                            kBytesLoaded = this._parent.siteLoader.getBytesLoaded() / 1024;

                                                            kBytesTotal = this._parent.siteLoader.getBytesTotal() / 1024;

                                                         

                                                        if(kBytesLoaded>1){

                                                            percentage = Math.round(kBytesLoaded / kBytesTotal * 100);

                                                            this._xscale = percentage;

                                                         

                                                        if (percentage >= 99) {

                                                         

                                                        loadingBar.swapDepths(this._parent.getNextHighestDepth());

                                                        loadingBar.removeMovieClip();

                                                         

                                                        //Frame_movie.swapDepths(this._parent.getNextHighestDepth());

                                                        Frame_button.swapDepths(this._parent.getNextHighestDepth());

                                                         

                                                         

                                                        //Frame_movie.removeMovieClip();

                                                        Frame_button.removeMovieClip()

                                                        this._parent.nextFrame();

                                                         

                                                        delete this.onEnterFrame;

                                                         

                                                        }}

                                                         

                                                        }

                                                         

                                                        Your script

                                                        stop();

                                                        siteLoader.loadMovie("AboutMe5.swf");

                                                         

                                                        trace(Frame_movie);

                                                        Frame_movie._alpha = 100;

                                                        loadingBar._alpha = 100;

                                                        loadingBar._xscale = 1;

                                                         

                                                        loadingBar.onEnterFrame = function(){

                                                            kBytesLoaded = this._parent.siteLoader.getBytesLoaded() / 1024;

                                                            kBytesTotal = this._parent.siteLoader.getBytesTotal() / 1024;

                                                        if(kBytesLoaded>1){

                                                            percentage = Math.round(kBytesLoaded / kBytesTotal * 100);

                                                            this._xscale = percentage;

                                                        if (percentage >= 99) {

                                                         

                                                        loadingBar.swapDepths(this._parent.getNextHighestDepth());

                                                        loadingBar.removeMovieClip();

                                                        Frame_movie.swapDepths(this._parent.getNextHighestDepth());

                                                         

                                                        Frame_movie.removeMovieClip();

                                                        this._parent.nextFrame();

                                                        delete this.onEnterFrame;

                                                         

                                                        }}

                                                        }

                                                         

                                                        Produced the output

                                                        undefined

                                                         

                                                         

                                                        the flash publisher is set to flash 10 action script 2

                                                        • 25. Re: Cant hide or get rid of pre loader bar. Please help
                                                          kglad Adobe Community Professional & MVP

                                                          that's illogical:

                                                           

                                                          //your code

                                                          stop();

                                                          siteLoader.loadMovie("AboutMe5.swf");

                                                           

                                                          trace(Frame_movie);  // output:  _level0.Frame_button, makes no sense

                                                           

                                                          //my code

                                                          stop();

                                                          siteLoader.loadMovie("AboutMe5.swf");

                                                           

                                                          trace(Frame_movie); // output:  undefined, also makes no sense.

                                                           

                                                           

                                                          so, you don't have a movieclip named Frame_movie. 

                                                          • 26. Re: Cant hide or get rid of pre loader bar. Please help
                                                            Joey_Feliney Level 1

                                                            The below is something that seems to semi work.

                                                             

                                                             

                                                              [CODE]stop();

                                                             

                                                              siteLoader.loadMovie("AboutMe5.swf");

                                                             

                                                              //trace(Frame_button);

                                                             

                                                              Frame_button._alpha = 100;

                                                              loadingBar._alpha = 100;

                                                              loadingBar._xscale = 1;

                                                              percentage = 1;

                                                             

                                                              loadingBar.onEnterFrame = function(){

                                                                  kBytesLoaded = this._parent.siteLoader.getBytesLoaded() / 1024;

                                                                  kBytesTotal = this._parent.siteLoader.getBytesTotal() / 1024;

                                                                  percentage = Math.round(kBytesLoaded / kBytesTotal * 100);

                                                                  this._xscale = percentage;

                                                                  trace(this+" "+this._xscale);

                                                             

                                                              if (percentage == 99) {

                                                             

                                                                 loadingBar._alpha=0;

                                                                  Frame_button._alpha=0;

                                                              //   delete Frame_movie;

                                                              //   delete loadingBar;

                                                             

                                                              //unloadMovie(loadingBar);

                                                              //unloadMovie(Frame_button);

                                                              delete this.onEnterFrame;

                                                             

                                                              }[/CODE]

                                                             

                                                              If

                                                              

                                                               the percentage line is

                                                              

                                                               if (percentage == 99) {

                                                              

                                                               Then in the test movie control test shows the bar under the loaded page.

                                                               output

                                                               [CODE]_level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 100

                                                               _level0.loadingBar 0

                                                               _level0.loadingBar 1

                                                               _level0.loadingBar 2

                                                               _level0.loadingBar 3

                                                               _level0.loadingBar 4

                                                               _level0.loadingBar 5

                                                               _level0.loadingBar 5

                                                               _level0.loadingBar 6

                                                               _level0.loadingBar 7

                                                               _level0.loadingBar 7

                                                               _level0.loadingBar 8

                                                               _level0.loadingBar 8

                                                               _level0.loadingBar 9

                                                               _level0.loadingBar 9

                                                               _level0.loadingBar 10

                                                               _level0.loadingBar 10

                                                               _level0.loadingBar 11

                                                               _level0.loadingBar 11

                                                               _level0.loadingBar 12

                                                               _level0.loadingBar 13

                                                               _level0.loadingBar 14

                                                               _level0.loadingBar 15

                                                               _level0.loadingBar 16

                                                               _level0.loadingBar 16

                                                               _level0.loadingBar 17

                                                               _level0.loadingBar 18

                                                               _level0.loadingBar 19

                                                               _level0.loadingBar 20

                                                               _level0.loadingBar 21

                                                               _level0.loadingBar 22

                                                               _level0.loadingBar 23

                                                               _level0.loadingBar 24

                                                               _level0.loadingBar 25

                                                               _level0.loadingBar 26

                                                               _level0.loadingBar 28

                                                               _level0.loadingBar 29

                                                               _level0.loadingBar 30

                                                               _level0.loadingBar 32

                                                               _level0.loadingBar 33

                                                               _level0.loadingBar 35

                                                               _level0.loadingBar 36

                                                               _level0.loadingBar 37

                                                               _level0.loadingBar 38

                                                               _level0.loadingBar 40

                                                               _level0.loadingBar 42

                                                               _level0.loadingBar 44

                                                               _level0.loadingBar 46

                                                               _level0.loadingBar 48

                                                               _level0.loadingBar 49

                                                               _level0.loadingBar 51

                                                               _level0.loadingBar 53

                                                               _level0.loadingBar 56

                                                               _level0.loadingBar 57

                                                               _level0.loadingBar 59

                                                               _level0.loadingBar 60

                                                               _level0.loadingBar 61

                                                               _level0.loadingBar 65

                                                               _level0.loadingBar 67

                                                               _level0.loadingBar 69

                                                               _level0.loadingBar 71

                                                               _level0.loadingBar 76

                                                               _level0.loadingBar 78

                                                               _level0.loadingBar 84

                                                               _level0.loadingBar 88

                                                               _level0.loadingBar 90

                                                               _level0.loadingBar 92

                                                               _level0.loadingBar 93

                                                               _level0.loadingBar 94

                                                               _level0.loadingBar 95

                                                               _level0.loadingBar 97

                                                               _level0.loadingBar 99[/CODE]

                                                               Id you go to simulate download and set slower speed you see it work and disappear.

                                                              

                                                              

                                                               but if you set it to

                                                               if (percentage >= 99) {

                                                               or

                                                               if (percentage == 100) {

                                                              

                                                               Then you get stuck with the bar and frame whihc stays and the output is

                                                              

                                                               _level0.loadingBar 100

                                                            • 27. Re: Cant hide or get rid of pre loader bar. Please help
                                                              Joey_Feliney Level 1

                                                              I was trying to see if it would work with the frame being a button not a movie symbol

                                                               

                                                               

                                                               

                                                              So tried making a frame button to try and fade it thats all. It made no difference.

                                                               

                                                              The above seems to work the best but It appears to work in a simulated download then it loads the bar then removes it but if just test movie you get stuck with the bar.

                                                               

                                                              Any idea why this works differently?

                                                               

                                                              also why does the loading bar not start at 0? why 100 then 0 then go up?

                                                               

                                                              I can change it back to a movie

                                                              • 28. Re: Cant hide or get rid of pre loader bar. Please help
                                                                Joey_Feliney Level 1

                                                                is there a way I can sent the fla and swf files? and photos

                                                                • 29. Re: Cant hide or get rid of pre loader bar. Please help
                                                                  Joey_Feliney Level 1

                                                                  Ive made a temp yahoo account to act as a cloud drive to transfer the flash files with photos so you can see whats happening. you can download the files here.

                                                                   

                                                                  Dont use your email use the accounts own email below so it only sends to itself for security

                                                                   

                                                                   

                                                                  adobeforumfiletransfer@yahoo.co.uk

                                                                   

                                                                  Pass

                                                                   

                                                                  PreLoader

                                                                  • 30. Re: Cant hide or get rid of pre loader bar. Please help
                                                                    kglad Adobe Community Professional & MVP

                                                                    use:

                                                                     

                                                                    stop();

                                                                     

                                                                    siteLoader.loadMovie("AboutMe5.swf");

                                                                     

                                                                    Frame_movie._alpha = 100;

                                                                    loadingBar._alpha = 100;

                                                                    loadingBar._xscale = 1;

                                                                     

                                                                    loadingBar.onEnterFrame = function() {

                                                                        kBytesLoaded = this._parent.siteLoader.getBytesLoaded()/1024;

                                                                        kBytesTotal = this._parent.siteLoader.getBytesTotal()/1024;

                                                                       

                                                                        if (kBytesLoaded>1) {

                                                                            percentage = Math.round(kBytesLoaded/kBytesTotal*100);

                                                                            this._xscale = percentage;

                                                                            if (percentage>=99) {

                                                                                Frame_movie.swapDepths(this._parent.getNextHighestDepth());

                                                                                Frame_movie.removeMovieClip();

                                                                                this._parent.nextFrame();

                                                                                delete this.onEnterFrame;

                                                                                loadingBar.swapDepths(this._parent.getNextHighestDepth());

                                                                               loadingBar.removeMovieClip();

                                                                            }

                                                                        }

                                                                    };

                                                                     

                                                                     

                                                                    p.s.  please mark helpful/correct responses.

                                                                    1 person found this helpful
                                                                    • 31. Re: Cant hide or get rid of pre loader bar. Please help
                                                                      Joey_Feliney Level 1

                                                                      Im looking at the output either

                                                                       

                                                                      100

                                                                      100

                                                                      100

                                                                       

                                                                      or when simulating download

                                                                       

                                                                      100

                                                                      100

                                                                      100

                                                                       

                                                                      then

                                                                      1

                                                                      2

                                                                      3

                                                                      4

                                                                      etc

                                                                       

                                                                      And wonderign how do we get it to start at 0 not 100

                                                                       

                                                                      As then can set the percentage to change at 100

                                                                      • 32. Re: Cant hide or get rid of pre loader bar. Please help
                                                                        kglad Adobe Community Professional & MVP

                                                                        siteLoader has to be an empty movieclip.

                                                                         

                                                                        then you can use:

                                                                         

                                                                           if (kBytesLoaded>0) {

                                                                        1 person found this helpful
                                                                        • 33. Re: Cant hide or get rid of pre loader bar. Please help
                                                                          Joey_Feliney Level 1

                                                                          THANK YOU VERY VERY MUCH

                                                                           

                                                                          Finally got it working.

                                                                           

                                                                          What on earth were we doing wrong all this time?

                                                                           

                                                                          Could you explain that so know what Im doing for next time rather than cutting and pasting your script please. Think others would benefir from that.

                                                                           

                                                                           

                                                                          the working script is

                                                                           

                                                                          stop();

                                                                          siteLoader.loadMovie("Aboutme5.swf",4);

                                                                          Frame_movie._alpha = 100;

                                                                          loadingBar._alpha = 100;

                                                                          loadingBar._xscale = 1;

                                                                           

                                                                          loadingBar.onEnterFrame = function() {

                                                                           

                                                                              kBytesLoaded = this._parent.siteLoader.getBytesLoaded()/1024;

                                                                              kBytesTotal = this._parent.siteLoader.getBytesTotal()/1024;

                                                                            

                                                                              if (kBytesLoaded>1) {

                                                                           

                                                                                  percentage = Math.round(kBytesLoaded/kBytesTotal*100);

                                                                                  this._xscale = percentage;

                                                                           

                                                                                  if (percentage>=99) {

                                                                           

                                                                                      Frame_movie.swapDepths(this._parent.getNextHighestDepth());

                                                                                      Frame_movie.removeMovieClip();

                                                                                      this._parent.nextFrame();

                                                                                      delete this.onEnterFrame;

                                                                                      loadingBar.swapDepths(this._parent.getNextHighestDepth());

                                                                                     loadingBar.removeMovieClip();

                                                                                  }

                                                                              }

                                                                          };

                                                                           

                                                                          Left it on the yahoo email drop box mentioned above

                                                                          • 34. Re: Cant hide or get rid of pre loader bar. Please help
                                                                            kglad Adobe Community Professional & MVP

                                                                            you had numerous problems which i was correcting one or two at a time.  but then you would regress and fail to continue using correct code so you would re-introduce a previously solved problem.

                                                                             

                                                                            the last problem was caused by removing loadingBar before all the code was executed.