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