# Resizing movieclip with scrollbar text

**URL:** https://forum.kirupa.com/t/resizing-movieclip-with-scrollbar-text/314709
**Category:** Uncategorized
**Created:** [October 6, 2010, 6:16pm UTC](https://forum.kirupa.com/t/resizing-movieclip-with-scrollbar-text/314709 "2010-10-06T18:16:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pnsrinivasreddy](https://avatars.discourse-cdn.com/v4/letter/p/f14d63/32.png) [@pnsrinivasreddy](https://forum.kirupa.com/u/pnsrinivasreddy)
#### Post date: [October 6, 2010, 6:16pm UTC](https://forum.kirupa.com/t/resizing-movieclip-with-scrollbar-text/314709/1 "2010-10-06T18:16:13Z")

</div>

Hi Experts,

Here I am trying to re-size a movie clip which contains some dynamic text with scroll-bar in a swf using mouse. I am able to re-size the movie clip using “setProperty”. But unable to control the behavior of the scroll-bar. when I am increasing the size of the movie clip the scroll-bar should automatically disappear. But I am unable to do so. Can anyone help me??

Here is the link of the swf I am working on:

[http://qs1252.pair.com/monarchm/test1/](http://qs1252.pair.com/monarchm/test1/)

Here is the code I have used for the resizer:

if (this.\_x \<= 20) {  
setProperty(\_root.cont.frames, \_width, 20);  
setProperty(this, \_x, 20);  
} else {  
setProperty(\_root.cont.frames, \_width, this.\_x);  
}  
if (this.\_y \<=20) {  
setProperty(\_root.cont.frames, \_height, 20);  
setProperty(this, \_y, 20);  
} else {  
setProperty(\_root.cont.frames, \_height, this.\_y);  
}

Help me!!  
srinivas
