AS3 - 通过“导入视频”添加 FLVPlayback 时出现错误 #1009进入另一个场景
在 Flash CS4 中,如果我创建一个新的 AS3 文件并使用 File >导入>导入视频以引入 mp4 视频,效果非常好。但是,如果我创建一个新场景并将视频导入其中,我会在运行时立即收到此错误:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Untitled_fla::MainTimeline/__setProp___id0__Scene2_Layer1_0()
at Untitled_fla::MainTimeline/frame1()
这是正常行为吗?我使用 AS2 时没有收到此错误。如何将 FLVPlayback 对象添加到 AS3 中的不同场景而不发生爆炸?
In Flash CS4, if I create a new AS3 file and use File > Import > Import Video to bring in an mp4 video it works great. However, if I create a new scene and import the video into that, I instantly get this error at runtime:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Untitled_fla::MainTimeline/__setProp___id0__Scene2_Layer1_0()
at Untitled_fla::MainTimeline/frame1()
Is this normal behaviour? I don't get this error using AS2. How can I add the FLVPlayback object to a different scene in AS3 without explosions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
永远、永远、永远、永远、永远使用场景,它们本质上是邪恶的,会让你的生活变得悲惨。
抱歉,但这是我得到的最好答案。
Never EVER, EVER, ever, EvEr, eVER use scenes, they are inherently evil and will make your life miserable.
I'm sorry, but that's the best answer I've got.