当FLASH有消息时,让IE窗口高亮显示。打开此窗口,然后切换到另一个窗口。。。稍等片刻...
[url=http://www.taoshaw.com/taoshaw/study/iechangit/IEtiaodong.html]http://www.taoshaw.com/taoshaw/study/iechangit/IEtiaodong.html[/url]
在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);
源文件下载:
[img]http://www2.flash8.net/x/webx/Images/file/rar.gif[/img]
[url=http://www2.flash8.net/UploadTeach/200809/20080926161123573.rar]iechangit.rar[/url]
本文转自:http://www.5uflash.com/flashjiaocheng/Flashyuweb/4467.html
[url=http://www.taoshaw.com/taoshaw/study/iechangit/IEtiaodong.html]http://www.taoshaw.com/taoshaw/study/iechangit/IEtiaodong.html[/url]
在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);
源文件下载:
[img]http://www2.flash8.net/x/webx/Images/file/rar.gif[/img]
[url=http://www2.flash8.net/UploadTeach/200809/20080926161123573.rar]iechangit.rar[/url]
本文转自:http://www.5uflash.com/flashjiaocheng/Flashyuweb/4467.html