# MovieClip Scrolling creates Problem

**URL:** https://forum.kirupa.com/t/movieclip-scrolling-creates-problem/317927
**Category:** flash
**Created:** [January 6, 2011, 6:35am UTC](https://forum.kirupa.com/t/movieclip-scrolling-creates-problem/317927 "2011-01-06T06:35:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Milan\_vaja](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@Milan\_vaja](https://forum.kirupa.com/u/Milan_vaja)
#### Post date: [January 6, 2011, 6:35am UTC](https://forum.kirupa.com/t/movieclip-scrolling-creates-problem/317927/1 "2011-01-06T06:35:52Z")

</div>

Hi here is the my problem…  
i am making scrollBar

i have one MovieClip named “ScrollBar”

it Contains two MovieClip named “base” and “thumb”

scroll Bar contains Both MovieClip:

initially  
’  
ScrollBar Height is of 400;  
base height is of 400;  
and thumb is of 75;

when i scalled “scrollBar” all are scaled its ok and it also looks scaled  
but still it preserve its origionall height;  
when i check its property it gives its origionally height as 400 bt phisically it looks small…

for scrollBar purpose when i check thumb is not outside movieCip’s height it checks with “scrollBar’s” height bt it behaves with respect to “base” height.

mean with respect to my this code it misBehaves :  
mean “thumb” stop even it is not reached to end of “base”  
so that is my problem.

```auto

_Height = height - 2;
init_Pos_Thumb = y+1;

if (thumb_mc.y + thumb_mc.height + scrollAmount > _Height)
			{
				thumb_mc.y = (_Height - 1) - thumb_mc.height ;
				_source.y = y + height - _source.height;
				isUP = true;
				isDOWN = false;
			}

			if (thumb_mc.y < init_Pos_Thumb)
			{
				thumb_mc.y = init_Pos_Thumb;
				_source.y = y;
				isUP = false;
				isDOWN = true;
			}

```

plz help me  
thnx in advance

here is start scroll thumb position

here is endScroll thumb position
