Author Topic: Changing Variable when Slider changes?  (Read 2185 times)

Is it possible to change a certain variable when a slider has been changed?
(Don't tell me to schedule a loop to check it every often)

rudyman

  • Guest
Yes.
For example:

Code: [Select]
MySlider.command="blah();";
function blah(){$currValue=MySlider.getValue();}

This will assign the new value of the slider to $currValue every time you change it.
« Last Edit: March 04, 2007, 04:33:22 PM by rudyman »

Thank you very much  :cookie:

Thats a stupid way.

Just set the mySlider.variable to $YourVariable and its automatically set to that and updated each time the gui is opened/changed. Stupid rudyman.

Rudy's way works better for me. No offence you can have cookie for trying to help though :D ::cookie::

rudyman

  • Guest
Thats a stupid way
 ...
Stupid rudyman.

I was just trying to help...
« Last Edit: March 05, 2007, 06:14:18 PM by rudyman »