# Changing Movie Clip Properties

**URL:** <https://forum.kirupa.com/t/changing-movie-clip-properties/237144>\
**Category:** flash\
**Created:** [August 27, 2007, 5:32pm UTC](https://forum.kirupa.com/t/changing-movie-clip-properties/237144 "2007-08-27T17:32:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alemieux34](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@alemieux34](https://forum.kirupa.com/u/alemieux34)\
**Post date:** [August 27, 2007, 5:32pm UTC](https://forum.kirupa.com/t/changing-movie-clip-properties/237144/1 "2007-08-27T17:32:38Z")

</div>

I have a movie clip on the stage called ball\_mc. I have a button called yscale\_btn with an input text field next to it called yscale\_txt. I’d like to take the input value to transform the scaleY property of ball\_mc. Here’s my code:

```auto
var yscale_txt:Number;

yscale_btn.addEventListener(MouseEvent.CLICK, yScale);
function yScale(event:MouseEvent):void {
    ball_mc.scaleY = yscale_txt;
} 

```

There are no compile or script errors. When I test the movie though, any value that I put into the text field, even 0.0002, makes the scaleY so great that the clip goes off the stage. What am I doing wrong here?
