PDA

View Full Version : confused!!


kmf
09-30-2002, 02:13 PM
I have a javascript program which contains a variable called "score". I want to grab the value of this variable once the program has finished running. I want to put this value into a form as a static field that cannot be altered by the user. The user will then fill in a few other details and submit the form. Does anyone know how I can grab this variable and write it to the form??

Ta!!

Jesse
10-01-2002, 02:38 PM
Ahh you haven't mentioned Flash anywhere there but I assume you mean a Flash based form. Your "static" field which actualyl have to be a dynamic field, then you can pass in the value for the field as a variable with a set name. You can pass ing the variables in a few ways. See the FSCommand Libraryr tutorial and the Passing Variables Around tutorial. Take your pick. FSCommands sounds more appropriaate for this application.