2 Replies Latest reply on Mar 9, 2010 8:44 AM by tehxike1

    How do I make a skin show a scrollbar when necessary?

    tehxike1 Level 1

      I'm trying to get the contentGroup of my skin to scroll whenever it exceeds the bounds of the skin.  The dimensions are percentage-based, so I can't just set max content sizes to trigger the scroll.  How do I need to adjust this so my content will scroll when necessary?





      <?xml version="1.0" encoding="utf-8"?>
      <s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009"
              alpha.disabled="0.5" height="100%" width="100%">
              <s:State name="normal" />
              <s:State name="disabled" />
          <s:Group id="contents" left="0" right="0" top="0" bottom="0">
              <s:RichText id="titleDisplay" color="#7b8086" fontFamily="myriad-bold" fontWeight="bold" fontSize="16.67" />
              <s:Scroller top="30" left="0" right="0" bottom="0">
                  <s:Group id="contentGroup" left="0" right="0" top="0" bottom="0" clipAndEnableScrolling="true"/>