# A.S BUTTONS CHANGING MOVIECLIP.. help plz?

**URL:** <https://forum.kirupa.com/t/a-s-buttons-changing-movieclip-help-plz/206246>\
**Category:** Uncategorized\
**Created:** [November 6, 2006, 3:56pm UTC](https://forum.kirupa.com/t/a-s-buttons-changing-movieclip-help-plz/206246 "2006-11-06T15:56:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HandyMan](https://avatars.discourse-cdn.com/v4/letter/h/a587f6/32.png) [@HandyMan](https://forum.kirupa.com/u/HandyMan)\
**Post date:** [November 6, 2006, 3:56pm UTC](https://forum.kirupa.com/t/a-s-buttons-changing-movieclip-help-plz/206246/1 "2006-11-06T15:56:18Z")

</div>

Can anyone see anyting wrong with this code ? It´s suppose to change the height of a  
box that is containing some text, and I just want it to go from one state to another using simple AS. Is that not possible ?

Kissies and Huggies to the SOLVER =)

btn\_small.onRelease = smallRelease;  
btn\_Big.onRelease = bigRelease;

function smallRelease() {  
delete this.onEnterFrame;  
this.onEnterFrame = function(){  
if(mc\_box.\_yscale \> 200){  
mc\_box.\_yscale -= 10;  
}  
}  
}

function bigRelease() {  
delete this.onEnterFrame;  
this.onEnterFrame = function(){  
if(mc\_box.\_yscale \< 400){  
mc\_box.\_yscale += 10;  
}  
}  
}
