# scaleTo problem!

**URL:** <https://forum.kirupa.com/t/scaleto-problem/195586>\
**Category:** flash\
**Created:** [August 1, 2006, 7:50pm UTC](https://forum.kirupa.com/t/scaleto-problem/195586 "2006-08-01T19:50:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![this](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/this/32/669_2.png) [@this](https://forum.kirupa.com/u/this)\
**Post date:** [August 1, 2006, 7:50pm UTC](https://forum.kirupa.com/t/scaleto-problem/195586/1 "2006-08-01T19:50:34Z")

</div>

i wanna that the clips on mouse roll over these scale x and y to 100% and roll out scale to initial %…  
below my tryed code:

```auto

var clipAr:Array = [clip1,clip2,clip3,clip4,clip5];
// scale
var rAl:Array = [100,60,75,80,90];
// alpha 
var clipAlpha:Array = [100,70,60,80,90]
for(q=0;q<clipAr.length;q++) {
    //var rAl:Number = (Math.floor(Math.random() * (100 - 70)) + 70);
    clipAr[q]._alpha = 0;
    clipAr[q].alphaTo(clipAlpha[q],1);
    clipAr[q].scaleTo(100,0);
    clipAr[q].scaleTo(rAl[q],.5);
    clipAr[q].onRollOver = sover;
    clipAr[q].onRollOut = sout;
}
function sover() {
    var sold:Number = this.scale;
    var aold:Number = this._alpha;
    this.scaleTo(100,1);
    this.alphaTo(100,1);
}
function sout() {
    this.scaleTo(sold,1);
    this.alphaTo(aold,1);
}

```

if possible help me!  
:crying:
