0 Replies Latest reply on Mar 5, 2012 12:35 PM by dazaweb

    Flex Panel and call on jsx file


      I am new to the scene and learning to develop PS panels designed in Flex. I am trying to create a simple function in a jsx file that will be called on when clicking a button. Here is what I have that I cannot get to work. I have both the swf file and the jsx file in the proper directory and named the same.


      import com.adobe.csxs.core.CSXSInterface;
      protected function jsButton():void {
      var result:SyncRequestResult = CSXSInterface.instance.evalScript("sayHello");
      <mx:Button x="183" y="121" label="Open " width="82" click="jsButton()"/>


      from the jsx file

      function sayHello () {