HTML passes a parameter to a shockwave movie |
HTML passes a parameter to a shockwave movie |
jordan123 |
Apr 27 2012, 12:13 PM
Post
#1
|
Group: Members Posts: 2 Joined: 19-March 12 Member No.: 16,744 |
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 |
Apr 27 2012, 04:09 PM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
This looks like it belongs in the Graphics, Flash and Multimedia section, rather than in the Markup section.
|
script_monkey |
May 2 2012, 02:37 PM
Post
#3
|
Newbie Group: Members Posts: 14 Joined: 2-May 12 Member No.: 17,029 |
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 |
Lo-Fi Version | Time is now: 27th April 2024 - 02:04 AM |