PDA

View Full Version : Dynamic Flash Movie


snoopy81
08-20-2005, 05:22 AM
How do I call the flash movie dynamically? I would like to change the value "Untitled-1.swf" according to the value passed in by the javascript function getName(movieName).

Is it possible?

<param name="movie" value="Untitled-1.swf" />

My javascript function:


function getName(movieName)
{
name = movieName;
}

billystyx
08-23-2005, 09:17 AM
You can use document.write to write out the object tags with the variable movie name added inside it. Open in a new window or add the function to the onLoad event of the html body.

don't have any code on hand, but this should get you started.

billystyx