error-handling - Action 3错误1009

标签 error-handling actionscript helper

当我将应用程序导出到设备中央设备时,在输出窗口中不断 pop 此错误“TypeError:错误#1009:无法访问空对象引用的属性或方法。ats​​quareslide_fla::MainTimeline/test()
这是我现在拥有的代码:

`import flash.events.Event;

import flash.events.TouchEvent; 
import flash.ui.Multitouch;
import flash.ui.MultitouchInputMode; 
stage.addEventListener(Event.ENTER_FRAME,loop);
function loop(e:Event)
{  
rock1.rotation +=10;
rock2.rotation +=10;
rock3.rotation +=10;
rock4.rotation +=10;
rock5.rotation +=10; 
widerock.rotation +=10;
rock1.y +=10;
rock2.y +=10;
rock3.y +=10;
rock4.y +=10;
rock5.y +=10;  
widerock.y +=10;
if (rock1.y >= 872.9)
{
    rock1.y = -46.75;
} 
if (rock2.y >= 872.9)
{
    rock2.y = -84.75;
}
if (rock3.y >= 872.9)
{
    rock3.y = -69.75;
}
if (rock4.y >= 872.9)
{
    rock4.y = -230.9;
}
if (rock5.y >= 872.9)
{
    rock5.y = -230.9;
} 
if (widerock.y >= 872.9)
{
    widerock.y = -547.8;
} 
}`

一块岩石显然有问题,但我不知道它是什么或如何修复。
请帮忙!

最佳答案

试试这个event

将所有内容添加到舞台时将触发。

关于error-handling - Action 3错误1009,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17073528/

相关文章:

python - 处理 Python 套接字中的超时错误

delphi - 我们如何从 Delphi Form 欺骗 Windows 帮助系统来执行我们自己的表单?

ruby-on-rails - rails : fields_for select

haskell - 跨守卫模式共享定义

python - 在列表中找到非唯一值时接收错误代码

powershell - 尝试使用Add-QADGroupMember捕获错误

c# - 自定义属性以处理错误

flash - AS3 : Does `FullScreenEvent` temporarily add things to the display list?

actionscript - 如何在 JSFL 文件中包含一些 js 文件?

javascript - 带外部 FLV 播放器的外部接口(interface)