5 Replies Latest reply on Feb 23, 2012 6:01 AM by jck_drmjn

    global script issue

    jck_drmjn Level 1

      In Document_1 I placed "global.radius = 2;" under button.

       

      In Document_2 I placed following script in document level script.

       

      global.subscribe("radius", RadiusChanged);

      function RadiusChanged(x)// callback function

      {

      var V = (4/3) * Math.PI * Math.pow(x,3);

      this.getField("Text2").value = V;// Put value in text field

      }

       

      Also "Enable global object security policy” is not checked.

       

      However, nothing happen when I click on button. Where am I making mistake?