Help - Search - Members - Calendar
Full Version: HTML passes a parameter to a shockwave movie
HTMLHelp Forums > Web Authoring > Graphics, Flash and Multimedia
jordan123
Hi, I am using this code to pass the users name to the shockwave movie by calling a handler in adobe director.

I had this working on my trail run but now I cant get it to work. hope somone can help.
The code below was what was given to us to use and is the only real variable as the shockwave movie is not the problem.



[/code]<!-- javascript function. you may copy this and paste into the head tag. change the 'ParamEg1' value to the name of your shockwave movie -->
<!-- you may also copy the code at the bottom for the input field -->


<script language="Javascript">
function setPlayer(){
shockMovie=ParamEgB;
shockMovie.EvalScript(inputForm.playerName.value);
return 0;
}

</script>




<!-- you may also copy these three lines to set up the input field and paste into the body tag -->

<form name="inputForm" method=POST>
<input type="text" id="playerName" value="Player name">
<input type="button" value="Submit" onClick="setPlayer()">

[code]
Darin McGrew
This looks like it belongs in the Graphics, Flash and Multimedia section, rather than in the Markup section.
script_monkey
whats the actionscript look like?
in the movie or frames it should allow that form info to be pulled into actionscript but I cant remember the code for it as I dont use flash much. I'm sure there's a GOOGLE tutorial on that somewhere out there.
try "passing form variables to Flash" or something similar
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.