# Making an mc grow in size...another easy function issue

**URL:** <https://forum.kirupa.com/t/making-an-mc-grow-in-size-another-easy-function-issue/162116>\
**Category:** Uncategorized\
**Created:** [September 9, 2005, 7:31pm UTC](https://forum.kirupa.com/t/making-an-mc-grow-in-size-another-easy-function-issue/162116 "2005-09-09T19:31:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lariat1997](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@lariat1997](https://forum.kirupa.com/u/lariat1997)\
**Post date:** [September 9, 2005, 7:31pm UTC](https://forum.kirupa.com/t/making-an-mc-grow-in-size-another-easy-function-issue/162116/1 "2005-09-09T19:31:27Z")

</div>

[color=black]Hey All,[/color]

The coffee that I had today must have never kicked in as I am having difficulty getting something accomplished.

I would like to have an mc grow when the user’s mouse is over the mc. I can get it to increase instantly, but I want to see it gradually grow from 100% to 110%. If you are familiar with Mac OS X, the icons at the bottom grow when hovered over. I am trying to accomplish the same sort of thing. The initial state of the mc is 70%. I’ve turned the trouble script to red.

Thanks!

////////SCRIPT IS BELOW////////  
[color=black][/color]  
[color=black]onClipEvent(load) {  
this.\_xscale = 70;  
this.\_yscale = 70;  
}[/color]  
[color=red][color=red]on(rollOver)[/color] {  
function growMovie(){  
var i:Number = 0;  
var grow:Number = 100;

while(i\<10){  
this.\_xscale = grow;  
this.\_yscale = grow;  
i++;  
grow += i;  
}  
}  
growMovie();  
}[/color]

[color=black]on(rollOut) {  
this.\_xscale = 70;  
this.\_yscale = 70;  
}[/color]
