I've got a situation here where I have a vertically long mc inside a scrollpane and a menu with links that act as named anchors with the scrollpane's long content mc. The problem is that when you click on the anchor links that would set the scrollpane's vPosition, if the scrollpane is too tall it will not allow some of the lower anchors to be set to the top of the pane as there is not enough content underneath that point in the mc to fill the pane.

I've tried something like this as a solution, but it is not working out for me and I'm having trouble figuring out what direction to take (this is not the original AS, I don't have that file with me right now):

var endPosition:Number = 1210;
this.onEnterFrame = function() {
	my_pane.setSize(550, (Stage.height-100));
beginButt.onRelease = function() {
	my_pane.vPosition = 0;
endButt.onRelease = function() {
	if ((my_pane.content._height-_root.endPosition)<my_pane._height) {
		my_pane.vPosition = (my_pane.content._height-my_pane._height);
	} else {
		my_pane.vPosition = _root.endPosition;
...any thoughts? Thanks!