0 Replies Latest reply on Aug 23, 2008 9:52 PM by DigitalFuel

    ExternalInterface.call Acrobat 9

    DigitalFuel Level 2
      I am having trouble with this script. I can not get it to pick up text from the pdf. Not sure if the problem is on the Java side or the AS side but I think the AS2.0.

      Acrobat 9
      /* JavaScript */
      var GuestNamez = this.getField("TestText");

      // Get hold of the first Flash object on the second page
      var annot = getAnnotsRichMedia(0)[1];

      if ( annot )
      // if exists, call the function called "GuestNam"
      // and pass an item ID as an argument
      annot.callAS( "GuestNam", GuestNamez.value);

      /* ActionScript 2.0*/
      import flash.external.*;

      var realFunction:Function = setState;
      ExternalInterface.addCallback("GuestNam", null, realFunction);

      function setState(stateData:String):Void {
      GuestsNames.text = stateData;

      Any help would be great thanks.