3 Replies Latest reply on Aug 31, 2010 11:21 PM by PJSB_DK

    Scroll Pane.....

    HTIMS.G

      When I insert my object into my scroll pane it does not center. How do i fix this?

       

      Thanks,

      G

        • 1. Re: Scroll Pane.....
          PJSB_DK Level 3

          Hi...

           

          ???

          Looking for this?

           

          var sp:ScrollPane;
          var mo:MovieClip;

           

          sp.source = mo;

           

          mo.x = (sp.width/2) - (mo.width /2);

           

          Best regards

          Peter

          • 2. Re: Scroll Pane.....
            HTIMS.G Level 1

            Hi, thanks Peter for taking the time to answer my question.

             

            I applied your could; giving my scrollpane and instance of sp and my object instance of mo. I continue to get and error:  An conflict exist with definition of sp in namespace internal. var sp:ScrollPane;

            • 3. Re: Scroll Pane.....
              PJSB_DK Level 3

              Hi again.

               

               

               

              I'm using CS5 now so "var sp:ScrollPane;" and "var mo:MovieClip;" are

              nessessary.

               

              If you're using CS4, simply omitt the above mentioned..

               

              sp.source = mo;

              mo.x = (sp.width/2) - (mo.width /2);

               

              Best regards

              Peter