PDA

View Full Version : Flash HTML interaction help


dvelez
06-11-2007, 04:41 AM
I am hoping someone can answer this question for me.

I have this javascript code:


function getMovieName(movieName)
{
if (navigator.appName.indexOf("Microsoft") != -1)
{
return parent.frameName.window[movieName];
}
else
{
return parent.frameName.document[movieName];
}
}


I have another javascript function that calls a function from within flash using the ExternalInterface. The the only thing the flash function does is
getURL("javascript: parent.frameName.form1.text.value = variable");

My problem is that the first time that I call the flash function works fine and it set the text box value correctly, but the second time the function getMovieName(movieName) returns null thereafter. Is there a reason for this and how can I fix it? I appreciate any help. Thank You.