bj8341
10-24-2001, 04:39 PM
I need help with some button programming.
Let me describe this part of my project. I have a stationery device with another part that slides up and down on it. I have two buttons labeled "on" and "off". When I push "on" I want the slider to travel up to the end and stop. When I push "off" I want the slider to travel down to the other end and stop.
My problem is that when the "on" button is pushed, instead of staying where it is (because it is already "on") it travels immediately back to "off" and then travels to "on" again. The same is true with the "off" movement.
I am familiar with "Basic" programming but very new to ActionScript. I would greatly appreciate help from anywhere!
Thanks in advance for any response.
Let me describe this part of my project. I have a stationery device with another part that slides up and down on it. I have two buttons labeled "on" and "off". When I push "on" I want the slider to travel up to the end and stop. When I push "off" I want the slider to travel down to the other end and stop.
My problem is that when the "on" button is pushed, instead of staying where it is (because it is already "on") it travels immediately back to "off" and then travels to "on" again. The same is true with the "off" movement.
I am familiar with "Basic" programming but very new to ActionScript. I would greatly appreciate help from anywhere!
Thanks in advance for any response.