Test communication between Shockwave and a brower. Sending messages to shockwave with EvalScript seems to fail with Firefox and Safari
The lingo is as follows:
on
EvalScript
(astring)
member("Incoming").text =
aString
end
on SendMessage ()
aString = member("ToSend").text
member("ToSend").text = ""
goToNetPage("javascript:VOID(ShowMessage('"&aString&"'))")
end
The Javascript is:
function ShowMessage (whatChoice) {
document.form1.textfield.value = "Received: " + whatChoice;
}
function SendMessage () {
setTimeout('doSendMessage()', 100);
}
function doSendMessage () {
var data = document.form1.textfield2.value;
document.form1.textfield2.value = "";
var sw = document.getElementById('javascriptcommtest');
sw.EvalScript(data);
}