FLASH与JS通信:当FLASH有讯息时IE窗口高亮显示

FLASH与JS通信:当FLASH有消息时IE窗口高亮显示

当FLASH有消息时,让IE窗口高亮显示。打开此窗口,然后切换到另一个窗口。。。稍等片刻...
http://www.taoshaw.com/taoshaw/study/iechangit/IEtiaodong.html
在HTML中添加代码:
JavaScript">
function windowstiao(){
        window.focus();
}
在FLASH添加调用函数。请留意加粗部分。
[1b]import flash.external.ExternalInterface;[/1b]
function textadd():Void {
        my_text.text += "加一个先!";
        [1b]ExternalInterface.call("windowstiao");[/1b]
}
my_id = setInterval(textadd, 3000);
function clearit():Void {
        clearInterval(my_id);
}
my_id2 = setInterval(clearit, 30000);
源文件下载:
FLASH与JS通信:当FLASH有讯息时IE窗口高亮显示
 
iechangit.rar
   
本文转自:http://www.5uflash.com/flashjiaocheng/Flashyuweb/4467.html