动作脚本错误#1009 [英] Actionscript error #1009
问题描述
我的横幅中有一些嵌套的电影剪辑,无法实现如何防止跑步时出现错误。有一个movieclip运行3次,还有一个嵌套movieclip也运行3次,因此嵌套movieclip总共运行9次。当嵌套的动画片段第四次运行时,它会给我带来错误,但是一切都会按需进行-横幅广告中使用动作脚本制作的主要内容是更改文本字段。
我附上了源文件,请看一下。我只是不知道该怎么办!一切似乎都还好,只有几行脚本。
文件位于此处:源文件
I have some nested movieclips in my banner and can't realize how to prevent error it gives me while running. There is a movieclip that runs 3 times and there is a nested movieclip that runs 3 times too, so the nested movieclip runs 9 times totally. When the nested movieclip runs 4th time, it gives me error, but everything works as it's needed - the main thing made in actionscript in the banner is changing text fields. I attach a source file, please have a look it this. I just don't know what to do! Everything seems to be ok, there is just a few actionscript lines. The file is located here: source file
这也可以,只是防止在浏览器中运行时出现错误消息。实际上,我什至不需要解决问题的方法,只需要隐藏那个烦人的窗口即可。
It would be also ok just to prevent the error message appearing while running in browser. Actually I don't even need to solve the problem right way, I just need to hide that annoying window.
推荐答案
我看不到可能是什么问题,但是如果您执行空的try / catch语句,则不会在Flash Player调试版本上触发错误。
Well, I can't see what could be the problem, but if you make an empty try/catch statement your errors will not be triggered on the flash player debug version.
try{
functionThatStartWhateverYouChanged();
} catch(e:Error){
//When you're really debugging an application, you can use here to drop a log message in the console
}
请记住,标准版本的Flash Player在运行时不会显示此错误。调试Flash Player。
And just to remember, the standard version of flash player won't show this errors you're seeing when you're running the debug flash player.
这篇关于动作脚本错误#1009的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!