Flash 场景 - 比使用 mcs 或框架更高效?
我正在制作一款游戏,想知道场景是否具有任何效率/性能目的,或者它们是否只是为了让 Flash 更有组织性?
I am making a game and was wondering whether scenes have any efficiency/performance purpose or if they're just there to make Flash more organized?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果你正在制作游戏,我想会涉及到一些编码。在 Flash 社区中,除了 swf MOVIES 之外不使用场景是常见的惯例,但我不记得有人长期使用场景。
场景可能不会增加性能开销,但它们会使您的应用程序更加复杂。它们不能用代码创建,您必须确保您的 MovieClip 不仅位于正确的帧,而且位于正确的场景中。还有更多。在与无法解释的行为进行绝望的斗争后,我很久以前就不再使用场景了。如果您是 Flash 新手,我建议您不要使用别人可能会说的场景。
If you are making a game I guess there is some coding involved. In flash community it is common convention not to use scenes except for swf MOVIES and yet I don't remember anyone using scenes for a long time.
Scenes might not add performance overhead but they make your app more complicated. They can't be created with code, you have to be sure that your MovieClip is not only at the right frame but is in the right scene. And there are more. I stopped using scenes long time ago after desperate struggling with unexplainable behavior. And if you are new to flash I advise you just not to use scenes whatever someone might say.
它们的存在只是为了使 Flash 电影更有条理。它们根本没有任何性能优势。
They're are there only to make Flash movies more organized. They have no performance benefit at all.