I'm using the flexlib ButtonScrollingCanvas component and am trying to resolve 2 issues. First an apology, I have a firewall problem at work that keeps me from posting there, (my posts seem to work, but they never show up on the list) so I am writing this w/o the code in front of me.
I start with an image in the scrolling canvas that is the same size as the canvas so no scrolling. I have a zoom function that loads a larger image and use the scrolling canvas to scroll around it. When the larger image loads its upper left corner is visible. I want it to load so that its middle is visible. So I set the horizontal and vertiacal scroll positions. While the values of the h and v scroll positions for the scrolling canvas and the inner canvas get set to these values, it doesn't affect the display which is still in the top left corner. Obviously there is a timing issue. It either doesnt know its contents are big enough to scroll, or it doesn't know its scroll position should be moved at the point it is rendering. Any suggestions. The second issue is I want to display an overview image, which is a small version of the large image, with a rectangle overlay showing portion of the image that is currently visible. I have this working, but I'm wondering if there is a better way to do this. I made the horizontalScrollPosition and verticalScollPostion setters Bindable, and then changed the 4 scroll methods to call the setter instead of setting innerCanvas values directly. Since the setters and scroll methods each call enableOrDisableButtons I commented the call out in the scroll methods and changed the call in the setters to a direct call rather than via callLater. Again this works, but I'm wondering if there is a more efficient way to do this and if making the call to enableOrDisableButtons directly instead of via callLater in the setters will cause a problem elsewhere.

