# Help with scaling action script mx 2004

**URL:** <https://forum.kirupa.com/t/help-with-scaling-action-script-mx-2004/88195>\
**Category:** Uncategorized\
**Created:** [April 27, 2005, 2:00pm UTC](https://forum.kirupa.com/t/help-with-scaling-action-script-mx-2004/88195 "2005-04-27T14:00:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![snowysnowpops](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@snowysnowpops](https://forum.kirupa.com/u/snowysnowpops)\
**Post date:** [April 27, 2005, 2:00pm UTC](https://forum.kirupa.com/t/help-with-scaling-action-script-mx-2004/88195/1 "2005-04-27T14:00:01Z")

</div>

I have a problem with a scaler script that I have created with some help but I am having problem in that I cannot see the scalling object when the swf is launched I need to declare some sort of initial size preferably the size on button one below. The main object **‘shirt6’** becomes visable when I mouse over the buttons of the scaler so the scaler works I need help with the initial size.

**This is the script I have on the frame;**

current\_x = \_root.shirt6.\_xscale  
new\_x = Number(\_root.new\_X)  
diff\_x = current\_x - new\_x  
move\_x = diff\_x/3  
\_root.shirt6.\_xscale = Number(new\_x)+Number(move\_x)  
current\_y = \_root.shirt6.\_yscale  
new\_y = Number(\_root.new\_y)  
diff\_y = current\_y - new\_y  
move\_y = diff\_y/3  
\_root.shirt6.\_yscale = Number(new\_y)+Number(move\_y)

**This is the script I have on the buttons of the would be scaler;**

button 1.

on (rollOver) {  
new\_x = 50  
new\_y = Number(new\_x)  
}

Button 2

on (rollOver) {  
new\_x = 55  
new\_y = Number(new\_x)  
}

Button 3

on (rollOver) {  
new\_x = 60  
new\_y = Number(new\_x)  
}

and so on up to

Button 10

on (rollOver) {  
new\_x = 100  
new\_y = Number(new\_x)  
}

I dont know where I’m going wrong or how to solve this problem

any help at all is well appreciated.

snowie
