在ActionScript 3,我让使用为Javascript调用:ExternalInterface调用崩溃的浏览器
ExternalInterface.call('javascriptFunction');
如果在Javascript中,有一个错误或阻塞调用,整个浏览器将冻结。我无法在Firefox中使用Firebug进行调试,因为通过回调进行的操作也会使浏览器崩溃。我如何去调试呢?
function javascriptFunction() {
alert('called from AS3');
// OR
nonExistent.madeUp();
}
在ActionScript 3,我做出的Javascript调用使用:
ExternalInterface.call('javascriptFunction');
如果在Javascript中,有一个错误或阻塞调用,整个浏览器将冻结。我无法在Firefox中使用Firebug进行调试,因为通过回调进行的操作也会使浏览器崩溃。我如何去调试呢?
function javascriptFunction() {
alert('called from AS3');
// OR
nonExistent.madeUp();
}
您好!希望这个增加的信息将有助于保持这个问题活着:)。我正在使用Flash多媒体专业版8的Actionscript 2,并且我也遇到了Firefox的这个崩溃错误。我进口的flash.external.ExternalInterface,并且这两个功能我用的都是
//confirmation dialog
function confirmationDialog(mesg:String) {
return ExternalInterface.call("confirm", mesg);
}
//alert dialog
function alertDialog(mesg) {
return ExternalInterface.call("alert", mesg);
}
我的代码调用每个函数总是看起来是这样的..
//if i need an alert to continue on the page
if (abc == ''){
alertDialog("Message Here");
return;
}
//if the user has the option of continuing or returning
if (abc2 == 'hello') {
var response = confirmationDialog("New Message Here");
if (colorChoise == false){
return;
}else{
//do nothing and continue forward
}
}
我与惠普的桌面上Windows 7,Firefox 5.0,IE9和Chrome 12.0.742.122。任何一次警报呼叫都会随机导致Firefox冻结......实际上它通常会发生在一堆,它会连续冻结几次(显然每次都重新启动Firefox),然后停止几个小时并保持正常。它还没有崩溃的IE9或Chrome,但我还没有测试过它与Chrome广泛。使用Firefox控制台并没有帮助,因为Firefox只是一起崩溃。如果有人能够说明这一点,那会很棒!