I'm very close. I still need help with the scrollBar so that the 
scrollBar reaches the bottom when you reach the bottom of the scroll 
area of the Canvas. Any suggestions?

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 
layout="absolute" creationComplete="init();">

     <mx:Script>
        <![CDATA[
    
            import mx.events.ScrollEvent;
    
                private function init():void {
                        myCanvas.verticalScrollPosition = 
vBar.maxScrollPosition;
                        myCanvas.verticalScrollPosition = 
vBar.minScrollPosition;
                }
    
            private function myScroll(event:ScrollEvent):void {
                myCanvas.verticalScrollPosition = 
event.currentTarget.scrollPosition;
            }
        ]]>
    </mx:Script> 
    <mx:Canvas width="100%" height="100%">
        <mx:Canvas id="myCanvas" left="0" top="0" right="15" 
bottom="0" verticalScrollPolicy="off" horizontalScrollPolicy="off">
            <mx:Button label="Button 1" left="10" top="0"/>
            <mx:Button label="Button 2" left="10" top="250"/>
            <mx:Button label="Button 3" left="10" top="1250"/>
            <mx:Button y="2500" label="Button 4" left="10" 
includeInLayout="false"/>
        </mx:Canvas>
        <mx:VScrollBar id="vBar" minScrollPosition="250" 
maxScrollPosition="1250" lineScrollSize="35" pageScrollSize="50" 
repeatDelay="1000" repeatInterval="500" scrollPosition="250" 
scroll="myScroll(event);" right="0" top="0" bottom="0"/>
    </mx:Canvas>
</mx:Application>
--- In [email protected], "jmfillman" <jmfill...@...> wrote:
>
> I have a Canvas that with a height of 3000. For some users, I only 
want 
> them to be able to view and scroll a portion of the height of the 
> canvas, say 1200-2200. It can vary from user to user, and some will 
> need to see the entire height. I'm at a loss as to whether or not 
this 
> is even possible, and if so, how.
>


Reply via email to