# Resizing Multiple MC's

**URL:** <https://forum.kirupa.com/t/resizing-multiple-mcs/113843>\
**Category:** Uncategorized\
**Created:** [June 22, 2004, 10:56am UTC](https://forum.kirupa.com/t/resizing-multiple-mcs/113843 "2004-06-22T10:56:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hedake](https://avatars.discourse-cdn.com/v4/letter/h/ed8c4c/32.png) [@hedake](https://forum.kirupa.com/u/hedake)\
**Post date:** [June 22, 2004, 10:56am UTC](https://forum.kirupa.com/t/resizing-multiple-mcs/113843/1 "2004-06-22T10:56:10Z")

</div>

Alright i have two Movie Clips on 2 different layers…One has the instance name panel and the other has the instance name panel2.

Now, on the timeline panel is suppose to grow to 210x480 and then stop.

A few frames later panel2 is supposed to resize to 150x480 but when panel2 resizes the other MC (panel) resizes to panel2’s size…

here is the code for panel:

```auto
onClipEvent(load){
// Define initial height
_root.high = 210;
// Define initial width
_root.wide = 480;
}

onClipEvent(enterFrame){

// Panel
with(_root.panel){

// Height
if(_height > _root.high){
_height -= (_height - _root.high)/2;

} else {
_height += (_root.high - _height)/2;

}
// Width
if(_width > _root.wide){
_width -= (_width - _root.wide)/2;

} else {
_width += (_root.wide - _width)/2;
}

}

}

```

and here is the code for panel2:

```auto
onClipEvent(load){
// Define initial height
_root.high = 150;
// Define initial width
_root.wide = 480;
}

onClipEvent(enterFrame){

// Panel
with(_root.panel2){

// Height
if(_height > _root.high){
_height -= (_height - _root.high)/2;

} else {
_height += (_root.high - _height)/2;

}
// Width
if(_width > _root.wide){
_width -= (_width - _root.wide)/2;

} else {
_width += (_root.wide - _width)/2;
}

}

}

```

thanks for any help
