0 Replies Latest reply on Apr 24, 2006 9:21 AM by gaz_84

    EvalScript

    gaz_84
      can anyone tell me why this is not working!!?

      <!-- -->
      <!-- -->
      <HTML>
      <HEAD>
      <TITLE>game231</TITLE>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
      </HEAD>
      <BODY bgColor="#336600">
      <center>
      <TABLE border=0 width=100% height=100%>
      <TR><TD valign=middle align=center>
      <OBJECT classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000"
      codebase=" http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0"
      ID=game231 WIDTH=640 HEIGHT=400>
      <param name=src value="game231.dcr">
      <PARAM NAME=swStretchStyle VALUE=none>
      <param name=swRemote value="swSaveEnabled='true' swVolume='true' swRestart='true' swPausePlay='true' swFastForward='true' swSendUrl='www.game2.html' swContextMenu='true' ">
      <PARAM NAME=bgColor VALUE=#336600>
      <EMBED SRC="game231.dcr" bgColor=#336600 WIDTH=640 HEIGHT=400 swRemote="swSaveEnabled='true' swVolume='true' swRestart='true' swPausePlay='true' swFastForward='true' swSendUrl='www.game2.html' swContextMenu='true' " swStretchStyle=none
      TYPE="application/x-director" PLUGINSPAGE=" http://www.macromedia.com/shockwave/download/"></EMBED>
      </OBJECT>
      </TD>
      </TR>
      </TABLE>
      </CENTER>

      <CENTER>
      <SCRIPT>
      function EvaluateIt() {
      theArgs = document.theForm.entry1.value + ",
      document.game231.EvalScript(theArgs)
      }
      </SCRIPT>

      <FORM name=theForm><INPUT value="ENTER NAME" name=entry1> <INPUT onclick=EvaluateIt() type=button value=SUBMIT>
      </FORM></CENTER></BODY></HTML>

      the lingo code i have is as follows

      on evalScript argString
      set the text of field "display" to item 1 of argString

      end