Thanks David,
That's essentially the solution that I used. Since every variable is
different (some have ranges in the hundreds, while others have ranges
in the ten-thousandths) I evaluate the default value of each variable,
and multiply accordingly.
Meanwhile, however, if the Slider has a native way of handling this,
I'd sure like to know what it is!
-Jim
--- In flexcoders@yahoogroups.com, David Steele [EMAIL PROTECTED] wrote:
Jim --
Looks like you're really going from 89 to 1000 if we lop off a few
zeros. :)
The slider has a labels array propery, which is an array of strings.
So why not multiply your variable values by 100 -- you'd then
effectively show the values moving from 89 to 1000. Your minimum
value would be 89; your maximum would be 1000. The corresponding
*labels*, though -- the numbers that appear on the slider -- you could
set to be .89 - .000100
Hope this helps,
David
- Original Message
From: Jim Robson [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, January 9, 2007 8:41:51 AM
Subject: [flexcoders] Maximum Precision of a Slider? (Flex 2)
Anyone know what the maximum precision of a Slider component is? I'm
building an app where the users need to manipulate values that are
very small. For example, the range of possible values for one variable
is 0.89 - 0.000100. When I set the Slider.minimum = 0.89 and
the Slider.maximum = 0.000100, the Slider appears to interpret both
values as zeroes. So the thumb sits at the left end of the slider, no
matter what Slider.value is. And when you drag the thumb to the right,
it snaps back to the left as soon as you release the mouse button.
Does anyone have a way of overcoming this limitation? (Am I missing
something obvious in the docs?)
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com