AS3 - 通过“导入视频”添加 FLVPlayback 时出现错误 #1009进入另一个场景

发布于 2024-08-15 08:28:47 字数 411 浏览 1 评论 0原文

在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

若相惜即相离 2024-08-22 08:28:47

永远、永远、永远、永远、永远使用场景,它们本质上是邪恶的,会让你的生活变得悲惨。
抱歉,但这是我得到的最好答案。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文