0 Replies Latest reply on Jul 19, 2007 10:25 AM by CameronI

    FABridge And Javascript object

    CameronI
      I am using the flex Ajax Bridge to communicate with my flex application. I have a javascript method that is receiving an object. I want to send this object to my flex application. Only thing is I am not sure what to set the in put param for my actionscript function. The sayHello method will not get called. I am not sure how to handle this when result is javascript object. Any help would be greatly appreciated.


      i..e
      --Javascript

      function helloActionScript(result) {
      var flexApp = FABridge.flash.root();
      flexApp.sayHello(result);
      }


      --ActionScript

      //This method is not getting called from the preceding javascript.
      public function sayHello(result: Object): void {
      Alert.show("Hi");
      }

      Thanks!!