3 Replies Latest reply on Aug 21, 2007 7:45 AM by Newsgroup_User

    How can I force a specific content size in a ScrollPane? -- REPOST

    Level 7
      See http://www.seanberry.com/scrollPaneInTheAss.html for reference

      Have an interesting situation here. I am using a scrollpane to hold a
      loaded movieclip (scrollContent_mc for reference) which contains several
      mask/image combinations. The images within scrollContent_mc can be
      resized by using a scale tool. When the ScrollPane redraws, it uses the
      total width of scrollContent_mc which includes this resized image
      sitting behind a mask. The result is that the viewable size of
      scrollContent_mc does not change (because you are only seeing images
      through masks), but the total size does change since the images can
      extend beyond the viewable bounds of scrollContent_mc.

      Is there a way to handle this? Thanks for any help.
        • 1. Re: How can I force a specific content size in a ScrollPane? -- REPOST
          Level 7
          sberry wrote:
          > See http://www.seanberry.com/scrollPaneInTheAss.html for reference
          >
          > Have an interesting situation here. I am using a scrollpane to hold a
          > loaded movieclip (scrollContent_mc for reference) which contains several
          > mask/image combinations. The images within scrollContent_mc can be
          > resized by using a scale tool. When the ScrollPane redraws, it uses the
          > total width of scrollContent_mc which includes this resized image
          > sitting behind a mask. The result is that the viewable size of
          > scrollContent_mc does not change (because you are only seeing images
          > through masks), but the total size does change since the images can
          > extend beyond the viewable bounds of scrollContent_mc.
          >
          > Is there a way to handle this? Thanks for any help.

          If nobody has an answer (which appears to be the case) then does anyone
          know of an AS2 classed ScrollPane for purchase or as an example. It
          appears that I am going to have to build a custom scrollpane for this
          and want to get as much of a head start as possible.

          Thanks
          • 2. Re: How can I force a specific content size in a ScrollPane? -- REPOST
            Level 7
            sberry wrote:
            > See http://www.seanberry.com/scrollPaneInTheAss.html for reference
            >
            > Have an interesting situation here. I am using a scrollpane to hold a
            > loaded movieclip (scrollContent_mc for reference) which contains several
            > mask/image combinations. The images within scrollContent_mc can be
            > resized by using a scale tool. When the ScrollPane redraws, it uses the
            > total width of scrollContent_mc which includes this resized image
            > sitting behind a mask. The result is that the viewable size of
            > scrollContent_mc does not change (because you are only seeing images
            > through masks), but the total size does change since the images can
            > extend beyond the viewable bounds of scrollContent_mc.
            >
            > Is there a way to handle this? Thanks for any help.

            Perhaps this will help explain what the problem is...

            http://seanberry.com/cheerios/holder.html

            I have a compiled movie called cheerios.swf. It is a 200x200px movie
            with two items... a 300x300 jpg of a bowl of cheerios with a 200x200px
            mask sitting on top of it.

            Then, in my holder movie I load the cheerios.swf into a scrollpane. The
            contents of the scrollpane is determined to be 300x300px, hence the
            100px of white space on top and bottom.

            I want the scrollpane to only target the visible portion of the MC
            instead of the complete contents... any ideas?
            • 3. Re: How can I force a specific content size in a ScrollPane? -- REPOST
              Level 7
              sberry wrote:
              > See http://www.seanberry.com/scrollPaneInTheAss.html for reference
              >
              > Have an interesting situation here. I am using a scrollpane to hold a
              > loaded movieclip (scrollContent_mc for reference) which contains several
              > mask/image combinations. The images within scrollContent_mc can be
              > resized by using a scale tool. When the ScrollPane redraws, it uses the
              > total width of scrollContent_mc which includes this resized image
              > sitting behind a mask. The result is that the viewable size of
              > scrollContent_mc does not change (because you are only seeing images
              > through masks), but the total size does change since the images can
              > extend beyond the viewable bounds of scrollContent_mc.
              >
              > Is there a way to handle this? Thanks for any help.


              Wow. Don't think I have ever had a question go unanswered for so long
              on here. Usually I at least get a few "can't be done" comments.

              Anyone?