我想写一个函数接收falsh传出来的值判断 这个falsh的点击率应该如何实现请高手指教!期盼你们的回复谢谢 最好能注释清楚点 网上查了很多只有代码实在是看不懂 谢谢~!

解决方案 »

  1.   

    可以使用swfobject读取flash变量
      

  2.   

    我要的是通过JavaScript来接收 具体找了很多资料都不懂
      

  3.   

    在flash的as写ExternalInterface.call就可以了
      

  4.   

    在点击flash中的按扭关闭flash时会传出一个数(比如说是int类型) 我要用JavaScript代码去接收这个值应该怎么去接收。flash中的代码是如何实现的我不知道
    var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
    function myFlash_DoFSCommand(command, args)
    {
    var myFlashObj = InternetExplorer ? myFlash : document.myFlash;
       if(command=="sendDate")
       {
          alert (args);
       }
    }

    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 myFlash_FSCommand(ByVal command, ByVal args)\n');
    document.write(' call myFlash_DoFSCommand(command, args)\n');
    document.write('end sub\n');
    document.write('</SCRIPT\> \n');
    } 这样写是不是正确的.....
      

  5.   

    FScommand()命令是Flash用来和支持它的其他应用程序互相传达命令的工具
    Scommand()命令的使用方法是:FScommand(command,argument)
    Command是命令字符串;argument是参数字符串。
    Command命令字符串可以是:
    “Quit”             退出播放
    “FullScreen”       是否全屏播放
    “Exec”             运行指定的程序或调用函数
    “Show Menu”        显示播放器菜单
    这个是我查询的相关资料,有哪位大侠懂的告诉小弟一下  谢谢
      

  6.   

    as中  ExternalInterface.call('js的方法名', 参数1, 参数2,...);
      

  7.   


     能不能具体说清楚点啊? 我不懂flash 你们说的方法是JavaScript中的吗?