VC内嵌flash并相互通信的方法

来源:互联网 发布:vnc远程控制软件 编辑:程序博客网 时间:2024/06/02 01:07


在"进入系统"按钮触发时,产生一个事件,在flash里写上以下这个语句即可实现和VC的通信

on (release) {

fscommand("bt","enter");

}

同时在VC里写上这一句,便可接收来自flash触发的消息

OnFSCommandShockwaveflash1(LPCTSTR command, LPCTSTR args) 
{
// TODO: Add your control notification handler code here
if( 0 == strcmp(command,"bt") )
{
if( 0 == strcmp(args,"enter"))
{
MessageBox("欢迎进入系统!");
}
}

}

原创粉丝点击