
Код:
<HTML>
<HEAD>
<TITLE>:: Send vars exapmle ::</TITLE>
<script language=JavaScript>
<!--
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
var d=document;
// Handle all the FSCommand messages in a Flash movie
function control_DoFSCommand(command, args) {
var controlObj = InternetExplorer ? control : d.control;
if (command == "key") {
controlObj.focus();
// То, что Вас интересовало
controlObj.SetVariable("sessionKey","1234567");
}
}
// Hook for Internet Explorer
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write('<SCRIPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('Sub control_FSCommand(ByVal command, ByVal args)\n');
document.write(' call control_DoFSCommand(command, args)\n');
document.write('end sub\n');
document.write("</SCRIPT\> \n");
}
function initialize(){
// Prevent caching
control.movie = "/loaderExample.swf?rnd=" + Math.floor(Math.random()*1000000);
}
//-->
</script>
</HEAD>
<BODY onLoad="initialize();">
<!-- Flash 7 ActiveX Object-->
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="/intensiv/misc/swflash.cab#version=7,0,0,0"
WIDTH=100% HEIGHT=100% id="control">
<PARAM NAME=movie VALUE="foo.swf">
</OBJECT>
</table>
</BODY>
</HTML>