对于 Flash Action Script 3.0,将多个影片剪辑功能合并到单个 swc 文件或 MXP 文件中?

发布于 2024-08-21 10:49:17 字数 375 浏览 10 评论 0原文

我必须为 Flash(不是 Flex)构建一个 MXP 包。但我有多个组件,例如 HelpSymbolMovieClips(在课堂上有它的),一个图像支架。等等。我需要将 swc 文件合并到一个 MXP 文件中。是否可以?

或者

我如何在单个 SWC 文件中制作所有这些多 movieClip 功能。我对具有多个功能/MoiveClips 的组件的结构有点困惑。就像(图片库组件。

我对如何创建 SWC 有一点了解。我在 教程 所以请帮助我。

I have to build one MXP package for Flash (not Flex). But i have multiple components, somthing like HelpSymbolMovieClips(have its on class), one image holder. etc. I need to combine there swc file into a single MXP file. Is it possible?

or

How can i make a all these multi movieClip functionality in a single SWC file. Am bit confused about the structure of the component which is having multiple functions/MoiveClips. like (Image gallery components.

I have a little knowledge about how to create a swc. and i created one component from the help of a tutorial so please help me.

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

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

发布评论

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

评论(1

樱花落人离去 2024-08-28 10:49:17

看来您可以使用 Flash CS4 附带的 Flex SDK 来处理 Flash 应用程序中的资源,然后导出为 swc 文件。类似于:

[Embed("bullet_star.png")]

您应该能够使用 swf 影片剪辑而不是图像。

例如:

在 Flash CS4 中,选择“文件”>“文件”>“文件”。新建并选择“Flash 文件 (ActionScript 3.0)”。
将 .FLA 文档保存到硬盘驱动器,并将名为bullet_star.png 的 .PNG 文件粘贴到与 .FLA 文件相同的目录中。
将以下代码粘贴到“操作”面板中:

// ActionScript 3.0
/**
 *  Note: This example assumes the bullet_star.png file
 *  is in the same directory as your .FLA file.
 */

[Embed("bullet_star.png")]
const BulletStar:Class;

var starIcon:DisplayObject = new BulletStar();
starIcon.x = 10;
starIcon.y = 10;
addChild(starIcon);

这将提示您正在使用需要 Flex SDK 的功能。

要了解如何执行此操作,请参阅:http ://actionscriptexamples.com/2008/10/26/using-the-flex-sdk-with-flash-cs4/

It appears you can use the Flex SDK that ships with Flash CS4 to assets within your Flash application and then export as a swc file. Something like:

[Embed("bullet_star.png")]

You should be able to use your swf movie clips instead of an image.

For example:

In Flash CS4, select File > New and select “Flash File (ActionScript 3.0)”.
Save the .FLA document to your hard drive and paste a .PNG file named bullet_star.png in the same directory as the .FLA file.
Paste the following code into the Actions panel:

// ActionScript 3.0
/**
 *  Note: This example assumes the bullet_star.png file
 *  is in the same directory as your .FLA file.
 */

[Embed("bullet_star.png")]
const BulletStar:Class;

var starIcon:DisplayObject = new BulletStar();
starIcon.x = 10;
starIcon.y = 10;
addChild(starIcon);

This will prompt you that you are using a feature that requires the Flex SDK.

To learn how to do this see: http://actionscriptexamples.com/2008/10/26/using-the-flex-sdk-with-flash-cs4/

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