Hey guys, got another question for ya. Been a while since I posted, but I am stumped again. On my navigation bar at the bottom of my page, I have a translucent rectangle that follows my mouse when I roll over the nav bar. I have had it change the width to match the link. Such as the width for Home is 50, and the width for Network Installation is 150. The only problem is that it does not look very professional when it the rectangle jumps from 50 to 150. I want it to “grow” from 50 to 150. Here is what I have so far.
The name of the rectanlge is “slider”
if (_root.slider._width<100) {
_root.slider._width += 1;
}
if (_root.slider._width>100) {
_root.slider._width -= 1;
}
This does not work. What am I doing wrong. The old script I had was…
_root.slider._width = 100;
This works, but it not what I want. Any suggestions?