1 Reply Latest reply on Nov 30, 2011 8:34 PM by shining.finger

    canvas max scrollbar

    shining.finger

      i have a problem with canvas maximum scroll bar

      Untitled.png

      it supposed to reach maximum scroll position but it's not

      the picture shows the maxHorizontalScrollPosition

      how to fix it since maxHorizontalScrollPosition read-only attribute

       

      thanks

        • 1. Re: canvas max scrollbar
          shining.finger Level 1

          solved i just need to add enter frame event then add update horizontalScrollPosition function

          private function onEnter(e:Event):void {

                      updateScrollPosition();

                      removeEventListener(Event.ENTER_FRAME, onEnter);

                  }

          private function updateScrollPosition():void

                  {

                      horizontalScrollPosition = maxHorizontalScrollPosition;

                  }