Calling a javascript function in Value attribute of param
Hi,
I want to set a TLF text field in SWF file through HTML page. So I used flashvar, by calling a javascript function for it attribute "value" as follows.
<param name=FlashVars value="'+ SetFlashMovieParam() +'" id="message" />
SetFlashMovieParam() is a javascript function as follows.
function SetFlashMovieParam() {
document.getElementById("message").setAttribute("value", "msgText=Start");
}
Even though this doesn't work, when I set the text value directly to "value" attribute, it worked.
<param name=FlashVars value="msgText=Here%20is%20the%20text" id="message" />
I think this is because a syntax error in javascript function calling in param tag. Can anyone help to call that function correctly...
Thanks.