1 Reply Latest reply on May 4, 2007 6:59 AM by Chunick

    on EvalScript textfrombrowser

    npo rule
      Hi

      I have this handler which takes a users name which they enter on a browser page into a shockwave game I have created:

      on EvalScript textfrombrowser
      statement(s)
      put "Welcome " && textfrombrowser into field "name"
      end

      However I dont know what the statement(s) part is or what I should put in there. Also does this part go in the movie script?

      Thanks
        • 1. Re: on EvalScript textfrombrowser
          Chunick Level 3
          it looks like you got the general syntax/structure from the help docs:
          on EvalScript aParam
          statement(s)
          end

          "statements(s)" simply refer to any of the code you want to run in the handler, so your line: put "Welcome " && textfrombrowser into field "name" would be considered the "statement(s)". Based off of what the help docs say that handler does I would first try it in a moviescript.