2 Replies Latest reply on Mar 19, 2007 11:05 AM by Ryan@imart

    Flex Ajax Bridge Question

    Ryan@imart
      How can I gather information from objects within the application. Ely's demo had a slider with an event listener attached to trace the value when it changed. The callback event was fired and the js function wrote the traced value. I have tried the same thing with a working application and the example code he provided.

      Javascript:

      function getSlider(){

      var flexApp = FABridge.flash.root();

      trace(flexApp.getMyslider().getValue());


      }


      If i trace the value of flexApp.getMyslider() I receive a valid javascript object. When I try to getValue() of the slider its dying.

      My MXML is extreamly strait forward


      MXML:

      <mx:HSlider snapInterval=".01" id="slider" liveDragging="true" x="32" y="190"/>
      <bridge:FABridge bridgeName="flash" id="flash"/>


      I have other examples working just fine with event listeners, did the function name for retreiving values change? What am I doing wrong? :)

      Thankyou!
      -Ryan @ iMart.com