devil78inc
09-30-2002, 04:26 PM
Hello everyone,
basically i'm aiming to create a small text menu that when the mouse is placed over it it will scale up and i think i'm going to add some elasticity to it also, but i don't understand why my scaling won't increment.
I'm using the following code:
on (rollOver) {
insname._xscale = insname._xscale+10;
insname._yscale = insname._yscale+10;
if (insname._xscale>=200) {
insname._xscale = 200;
}
if (insname._yscale>=200) {
insname._yscale = 200;
}
}
and reversing the process for the rollOut, it only scales up first of all and i have to repeatedly roll the mouse over the mc to get this to happen.
I know that i've got the same principle working (to slide images along the x axis on a ClipEvent) but don't understand why i can't get it working with this - once i've done this i think i can get the elasticity working (fingers crossed!)
I'd appreciate if someone could show me the error of my ways, i've had real trouble concentrating this monday....
thanks in anticipation
basically i'm aiming to create a small text menu that when the mouse is placed over it it will scale up and i think i'm going to add some elasticity to it also, but i don't understand why my scaling won't increment.
I'm using the following code:
on (rollOver) {
insname._xscale = insname._xscale+10;
insname._yscale = insname._yscale+10;
if (insname._xscale>=200) {
insname._xscale = 200;
}
if (insname._yscale>=200) {
insname._yscale = 200;
}
}
and reversing the process for the rollOut, it only scales up first of all and i have to repeatedly roll the mouse over the mc to get this to happen.
I know that i've got the same principle working (to slide images along the x axis on a ClipEvent) but don't understand why i can't get it working with this - once i've done this i think i can get the elasticity working (fingers crossed!)
I'd appreciate if someone could show me the error of my ways, i've had real trouble concentrating this monday....
thanks in anticipation