3 Replies Latest reply on Feb 5, 2013 6:20 PM by Ned Murphy

    Movie Clip starts on load

    AP-2011

      If anyone can please help, I am grateful. I am working on a site located at www.mariteacosta.com and I have a flash navigation. I have linked the navigation pages to other HTML pages with some flash slideshows. I have a problem with one slideshow under the Portfolio ----> Food section where the thumbnails can scroll and act as buttons to view the main picture. What happens is the thumbnails are not supposed to move as I have added a stop action, however on pageload the thumbs scroll until I move the mouse around. I used the concept from this site: http://tutvid.com/scrolling-thumbnails-photo-gallery-actionscript-2-0-flash-tutorial/   

       

      I have a feeling it either has to do with the nav bar or the scroll area but at this point I have a very unhappy client.

        • 1. Re: Movie Clip starts on load
          Ned Murphy Adobe Community Professional & MVP

          Show the code you have for the scrolling thumbnails.

          • 2. Re: Movie Clip starts on load
            AP-2011 Level 1

            This is on the root:

            I have three layers ....1. is the photos, 2 is the scroll and 3.  is the actionscript

            stop();

            _root.onEnterFrame = function(){

                if(_root._xmouse<691){

                myVar=false;

                }

                if(_root._xmouse>692){

                myVar=true;

                }

                if(_root._ymouse>255 and myVar==true){

                    imgBar.nextFrame();

                }

                if(_root._ymouse<255 and myVar==true){

                    imgBar.prevFrame();

                    }

            }

            • 3. Re: Movie Clip starts on load
              Ned Murphy Adobe Community Professional & MVP

              The first thing you oughta try is to make sure you have a stop() command inside the first frame of your imgBar movieclip.  If not, you can add a line to your code to make it so...  imgBar.stop();

               

               

              There are probably a number of ways to work this out so I am just going to suggest one way that doesn't have the enter frame activity always active...

               

              stop();

               

              _root.onMouseMove = function(){
                  if(_root._xmouse<691){  // turn off the enter frame
                      if(_root.onEnterFrame){
                          delete _root.onEnterFrame;
                      }
                  } else {  // turn on the enter frame
                      _root.onEnterFrame = moveImages;
                  }
              }

               

              function moveImages(){
                  if(_root._ymouse>255){
                      imgBar.nextFrame();
                  } else {
                      imgBar.prevFrame();
                  }
              }