# Can't get Scrollbar to resize to movieclip content

**URL:** <https://forum.kirupa.com/t/cant-get-scrollbar-to-resize-to-movieclip-content/220395>\
**Category:** flash\
**Created:** [March 26, 2007, 12:14am UTC](https://forum.kirupa.com/t/cant-get-scrollbar-to-resize-to-movieclip-content/220395 "2007-03-26T00:14:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IanSpangler](https://avatars.discourse-cdn.com/v4/letter/i/bcef8e/32.png) [@IanSpangler](https://forum.kirupa.com/u/IanSpangler)\
**Post date:** [March 26, 2007, 12:14am UTC](https://forum.kirupa.com/t/cant-get-scrollbar-to-resize-to-movieclip-content/220395/1 "2007-03-26T00:14:10Z")

</div>

Hi,

I have been using AS (for student projects) for a little over a year now, and am currently hung up on a basic problem with the scrollpane component which I am not too familiar with. I’ve read all the documentation, and searched around a lot online, but can’t get the scrollbar’s size to respond to the content of the scrollpane. Any help would be greatly appreciated.

Here is my code:

var i = 1; //index for URL entries  
var URLY = 0;  
var URL\_num = 1;  
var URL\_list;

URL\_pane.onLoad = function() {

```
this.contentPath = "URLPaneBG"; //holder mc linkage name
URL_list = this.content;

```

}

addURL\_btn.onRelease = function() {

```
URL_list.attachMovie("URLEntry", "URLEntry"+i, i);
URL_list["URLEntry"+i]._x = 0;
URL_list["URLEntry"+i]._y = URLY;
URL_list["URLEntry"+i].URL_num.text = URL_num;
	
i++;
URLY += 28;
URL_num++;

```

}

Ian
