将类附加到深度 30 的动作脚本中的影片剪辑时出现问题
我在 as2 中有一个数字键盘组件。该组件具有 0-9 的按钮。它们都是单独的影片剪辑,附加了代码,使它们可以充当按钮。按钮的每种状态(按下、按下、不可用)都是不同的关键帧,使用 goto 和 stop 来设置状态。 我的问题是,深度 30 处的小键盘按钮不断播放,就好像无法找到附加到该符号的类一样。如果我右键单击该符号并选择向后发送,它会起作用,但它旁边的按钮会失败。我已经从 swf 中获取了数据,并且可以将深度为 30 的按钮设置为失败的按钮。有人见过这种行为吗?
I have a number pad component in as2. This component has buttons for 0-9. All of them are separate movie clips with code attached that allows them to act as a button. Each state of the button (up,pressed,unavailable) are different keyframes and gotoandstop is used to set the state.
My problem is that the numpad button at depth 30 constantly play as if the class attached to that symbol can not be found. If I right click on that symbol and select send backwards it works and the button next to it fails. I have bumped the data from the swf and I can set that whichever button is at depth 30 is the one that fails. Has anyone seen this behavior?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来这是一个编译失败,导致类定义无法附加到影片剪辑。奇怪的是,这种情况只发生在一个剪辑上,特别是因为失败的课程并不是我要附加的课程。我猜这是一个时间问题,或者类似的问题。不管怎样,现在它可以工作了。
Looks like it was a compilation failure that kept the class definition from attaching to the movie clip. It's weird that this only happened to the one clip, especially since the class that was failing wasn't the class I was attaching anyways. I'm guessing it a timing issue, or something similar. Either way It works now.