FLASH中按钮的动作(Application)中有一个fscommand项,打开它,在命令一栏写上
比如“dosth”,其它设置让它默认就可以了,生成*.swf文件。当你点击*.swf中的按钮
时就会发送一个“dosth”的fscommand命令。
DELPHI中接收:ShockwaveFlash控件中有一个on fscommand事件,写上:
if command='dosth' then
showmessage('success!');
编译运行后,你点击FLASH中的按钮,就会showmessage()了。