# Problem changing the size of an MC with AS

**URL:** <https://forum.kirupa.com/t/problem-changing-the-size-of-an-mc-with-as/245036>\
**Category:** Uncategorized\
**Created:** [November 25, 2007, 6:17pm UTC](https://forum.kirupa.com/t/problem-changing-the-size-of-an-mc-with-as/245036 "2007-11-25T18:17:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![baalthazar](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@baalthazar](https://forum.kirupa.com/u/baalthazar)\
**Post date:** [November 25, 2007, 6:17pm UTC](https://forum.kirupa.com/t/problem-changing-the-size-of-an-mc-with-as/245036/1 "2007-11-25T18:17:24Z")

</div>

greetings everyone…  
i am trying to change the size of an MC with this script:

```auto
onClipEvent(load){
  this.onRollOver = function(){
          this._height = this._height*2;
        this._width = this._width*2;
          }
} 
onClipEvent(load){
  this.onRollOut = function(){
          this._height = this._height/2;
        this._width = this._width/2;
          }
} 

```

this code is on a MC… the problem is… that it had some motion animation with the frames… but now that it has this script, it doesnt animate…  
i also kinda have been noticing that i should put the AS on the frames and not in the objects… why should i take that advice? is there any big diference?
