首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Flash >

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

2012-11-06 
FLASH与JS通信:当FLASH有消息时IE窗口高亮显示当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);
源文件下载:

?
iechangit.rar
???
本文转自:http://www.5uflash.com/flashjiaocheng/Flashyuweb/4467.html

热点排行