4 Replies Latest reply on Jun 1, 2011 3:05 AM by TommyAnt

    Using this.getField to hide multiple buttons...

    TommyAnt

      Hello all,

       

      I'm a relative newb to scipting, but I'm sure there's not better way to learn than jumping in at the deep end! Anyway, I'm putting some script into a pdf I want to hide multiple buttins using this.getField... Is it possible to have script like


      this.getField("buttons1").display=display.hidden

      this.getField("buttons2").display=display.hidden

      this.getField("buttons3").display=display.hidden

      this.getField("buttons4").display=display.hidden

       

      etc..?

       

      My only problem is that I have this scipt (only a bit longer) under a button and it only seems to execute the first line, then the rest of the script (which includes some OCG visibility) doesn't