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:
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: