我如何导出和导出将 SWC 用于 RSL 和 Flash Pro CS5?

发布于 2024-09-09 05:43:02 字数 593 浏览 2 评论 0原文

我想使用 Flash Pro CS5 创建 RSL,然后将其与另一个 Flash 文件一起使用。我创建了以下示例:

RSLLib.fla

  • 创建文件
  • 创建一个名为 Circle 的新 MovieClip 元件,将其导出为 ActionScript 作为 Circle 并勾选“导出以进行运行时共享”值为“RSLLib.swf”
  • 在发布设置中勾选“导出 SWC”
  • 导出文件,现在我们有“RSLLib.swc”和“RSLLib.swf”

User.fla

  • 创建文件
  • 在时间线的第一帧上添加以下 ActionScript

    addChild(new Circle());

  • 在 ActionScript 设置中,在库路径中创建指向 RSLLib.swc 的条目,然后选择链接类型:“运行时共享库​​”,RSL URL 为“RSLLib.swf”

  • 导出文件,您将看到 Flash Pro CS5 崩溃

我在这里做错了什么吗?...任何指针赞赏。

I want to create a RSL with Flash Pro CS5 and then use it with another Flash file. I've created the following example:

RSLLib.fla

  • Create the file
  • Create a new MovieClip symbol called Circle, export it for ActionScript as Circle and tick "Export for runtime sharing" with the value "RSLLib.swf"
  • In publish settings tick "Export SWC"
  • Export the file and now we have "RSLLib.swc" and "RSLLib.swf"

User.fla

  • Create the file
  • On the first frame of the timeline add the following ActionScript

    addChild(new Circle());

  • In ActionScript Settings, in the Library Path create and entry pointing to RSLLib.swc and choose Link Type: "Runtime shared library" with RSL URL "RSLLib.swf"

  • Export the file and you'll see that Flash Pro CS5 crashes

Am I doing anything wrong here?... Any pointers appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

动次打次papapa 2024-09-16 05:43:02

一切对我来说都很好。听起来更像是系统/沙箱问题,也许尝试更改文件夹或通过 http 启动它。

另外,我在您的示例中注意到了一些细节:如果您通过 SWC 等处理导入,则不必在库中勾选“导出运行时共享”。无论如何都不应该使闪存崩溃,但只是让您知道; )

All works fine for me. Sounds more like a system/sand-box problem, maybe try changing folders or launching it via http.

Also, little detail I noticed in your example : you don't have to tick the "Export for runtime-sharing" in the library if you are handling the import via SWC etc. Shouldn't crash flash anyway but just so you know ; )

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