0

Hi I'm trying to pass in a function to change the tool tip for a HSlider in flex 4 but I keep getting the following error no matter how I try defining the function: Error #1006: value is not a function

Here's the code

function positiveNumberTips(value:Number):Number
            {
                return calculations.roundToPrecision((value * -1),2);
            }

            metricSlider.dataTipFormatFunction(positiveNumberTips);

6 MetricSliders, which are HSliders, are created dynamically so that is why I cannot define the dataTipFormatFunction in a declaration as usual.

The positiveNumerTips function is being used by other static sliders and it is working correctly.

Thanks for any help.

Anto
  • 419
  • 2
  • 9
  • 19

1 Answers1

2

Try this: Your Syntax is wrong.

metricSlider.dataTipFormatFunction=positiveNumberTips;
Santhosh Nayak
  • 2,312
  • 3
  • 35
  • 65