8 Replies Latest reply on Jan 17, 2010 7:46 AM by kglad

    Please Help!! Thumbnails will not scroll!!

    MTLWebDesigns

      Hi I am trying to build a slideshow with scrolling thumbnails and mouse control. I am fallowing a you tube tutorial.

      http://www.youtube.com/watch?v=2TrIQqu2MkU&feature=fvw

      I have done everything that he says to do and I can not get it to scroll. He builds this in AS2 and I have changed my publish settings to AS2. The thing that confuses me is that he is able to get it to scroll before he puts the code in. I have done everything he says to do and still can not get it to scroll.

        • 1. Re: Please Help!! Thumbnails will not scroll!!
          kglad Adobe Community Professional & MVP

          do you have code that's supposed to cause the thumbnails to scroll?  if so, copy and paste (only) that code.

          • 2. Re: Please Help!! Thumbnails will not scroll!!
            MTLWebDesigns Level 1

            See I think that is the problem. The video does not seem to have that code which is retarted. The video does have a response but it is the same thing, just for as3. I googled flash scrolling thumbnail code and found this code.

             

            panel.onRollOver = panelOver;

            function panelOver( )  {
               
            this.onEnterFrame = scrollPanel;
                
            delete this.onRollOver;
            }

            var b = stroke.getBounds (_root);

            function scrollPanel ()  {
               
            if(_xmouse<b.xMin || _xmouse>b.xMax  || _mouse<b.yMin || _ymouse>b.yMax)  {
                   
            this.onRollOver = panelOver;  
                   
            delete this.onEnterFrame;
                
            }
                
            if(panel._x >=25.9)  {
                       panel
            ._x = 25.9;
                
            }
               
               
            if(panel._x <=-4143.4)  {
                       panel
            ._x = -4143.4;
                
            }
                
            var xdist = _xmouse - 250;
                
                 panel
            ._x += -xdist /3
            ;
                
            }

             

             

            I have not tried this code yest as I am not sure where to put it. He doesn't talk about a code or where to put a code to make it scroll. He has you set up the thumbnails and make rollover states for all of the buttons, then he has you make the thumbnails into a movie clip and then into another movie clip. Then inside of imageBar he has you copy the frames and drag them out. Then he has you add the motion tween and tests the movie. At this point his thumbnails are scrolling but mine are not. I am sure it is because he is skipping over the code for some reason but since I am a beginner, i lose him. I really want to understand what I am doing wrong so that I can be abe to make this. Also I really feel like if I give up than I won't learn and I really want to learn this. Thanks so much for helping me!! It really is appreciated!!

             

            Meegs

            • 3. Re: Please Help!! Thumbnails will not scroll!!
              MTLWebDesigns Level 1

              I found another code that is supposed to make it scroll.

               

              panel.onRollOver = panelOver;

              function panelOver(){
                 this.onEnterFrame = scrollPanel;
                 delete this.onRollOver;
              }

              var b = stroke.getBounds(_root);

              function scrollPanel(){
                 if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax){
                    this.onRollOver = panelOver;
                    delete this.onEnterFrame;
                 }

                 var xdist = _xmouse - 250;
                 panel._x += -xdist / 7;
                
                 if(panel._x >= 89){
                    panel._x = 89;

                 }
                 if(panel._x <=  -751){
                    panel._x =  -751;
                 }
              }

               

              It is from another tutorial for making a thumbnail bar that scrolls. Here is the tutorial.

               

              http://library.creativecow.net/articles/brimelow_lee/scrolling_thumbnail_panel.php

              • 4. Re: Please Help!! Thumbnails will not scroll!!
                kglad Adobe Community Professional & MVP

                both code snippets leave something to be desired but they should get you started as long as you name the parent of your thumbnails, panel.

                • 5. Re: Please Help!! Thumbnails will not scroll!!
                  MTLWebDesigns Level 1

                  Thank you, I will try that.

                  • 6. Re: Please Help!! Thumbnails will not scroll!!
                    kglad Adobe Community Professional & MVP

                    p.s.  any tutorial by brimelow is, almost certainly, going to be good.  you would be better off following his tutorial than using those code snippets.

                    1 person found this helpful
                    • 7. Re: Please Help!! Thumbnails will not scroll!!
                      MTLWebDesigns Level 1

                      Kglad I just have to thank you so much for all of your help! I used the second tutorial and started over with that and it works!! My thumbnails are scrolling and now I am ready to make it into a slideshow! Thank you, thank you, thanks you! You’re a life saver! I was about to pull my hair out… not really but felt like it every time it wouldn’t scroll lol. Thanks again,

                      Meegs