0 Replies Latest reply on Aug 6, 2009 9:49 AM by vpxav

    [DEGRAFA: GAUGE] click event not working

    vpxav

      Hello every one;

      i'm using the degrafa gauge component (http://form-function.blogspot.com/2008/07/gauge-component-new-features-v04.html).

      I can use it to display another component's value but now, I need to update the element's value with the one the Gauge receives when I click on it.

      My problem is that the click event doesn't seem to work.

       

      Here's my code:

      <controls:DegrafaGauge     id="desiredValueGauge"
                                      diameter="150"
                                      liveDragging="true"
                                      horizontalCenter="0"
                                      useBounceEffect="true"
                                      verticalCenter="0"
                                      styleName="gauge"
                                      startAngle="45"
                                      minimum="0" maximum="100"               
                                      backgroundColor="0x303030"
                                      indicatorCrownColor="0xFFFFFF"
                                      endAngle="315"
                                      labelStyleName="gaugeLabel"
                                      labelFormatter="{formatter}"
                                      click="updateValue()"
                                      />

      The updateValue() fonction is never called.

      But if i call it from another component's click event, it works.

      I guess I forgot to do something to be enable the Gauge's click event but I don't know what and how.

      Thanks for your help.