如何在.swf中嵌入.png以在Flash应用程序中显示(DIY地图)

发布于 2024-07-30 04:56:15 字数 660 浏览 4 评论 0原文

我正在使用很酷的地图制作程序 DIY 地图,我想将我的观点保留为图像。 但是,您只能将 .swfs 和 jpg 设置为图像点。 该程序的作者引用如下内容:

遗憾的是,Flash 无法动态加载 GIF 或 PNG,但您可以将它们嵌入到 SWF 中。 嵌入到 SWF 中的 PNG 也能很好地显示其 Alpha 通道。 我的默认信息图标是带有一点透明阴影的 PNG。 请注意,位图图像在 Flash 中缩放时往往会显得有点脆,因此请避免精细的边框和细节。

不过我想知道如何将 .png 放入 .swf 中来使用它。 抱歉,如果这是一个菜鸟问题,我对闪存一无所知。

例如,我想将其保留为具有透明度的 .swf: 替代文本 http://www.onecool.com/images/icons/server.png< /a>

编辑: 这是该计划的网站: http://backspace.com/mapapp/

I am using the cool map making program DIY map and i want to keep my points as images. However, you can only set .swfs and jpgs as image points. The author of the program says quote:

Unfortunately, Flash can not load GIF’s or PNG’s dynamically, but you can embed these into an SWF. PNG’s embedded into an SWF will also display their alpha channel nicely. My default info icon is a PNG with a little transparent shadow. Note, bitmap images tend to show up a little crunchy when scaled in Flash so avoid fine borders and detail.

However I am wondering how i actually get my .png in a .swf to use it. Sorry if this is a noob question, I know nothing about flash.

For example, I want to keep this as a .swf with the transparency:
alt text http://www.onecool.com/images/icons/server.png

EDIT:
this is the programs website:
http://backspace.com/mapapp/

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

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

发布评论

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

评论(2

青瓷清茶倾城歌 2024-08-06 04:56:15

这个问题的答案实际上非常简单。 下载 Flash CS4 Professional,将要转换为 .swf 的 .png 导入到板上,然后将其导出为 .swf。 我想我找不到这个问题的答案的原因是因为它太微不足道了。

This question is actually deceivingly simple in its answer. Download Flash CS4 Professional, import the .png you want to convert to .swf onto the board and just export it as a .swf. I guess the reason I couldn't find an answer to this problem was because it was so trivial.

我喜欢麦丽素 2024-08-06 04:56:15

这是 Flash CS4 专业版吗? Flash CS3专业版? Flex 3.3 SDK? Flex 4 SDK? 如果您使用的是某些版本的 Flash,则只需将图像嵌入到 Flash (*.fla) 文件中即可。 如果您使用某些版本的 Flex,您可以使用 [Embed(source="path/to/source/image.png")] 嵌入图像。 请参阅此链接

Is this Flash CS4 Professional? Flash CS3 Professional? Flex 3.3 SDK? Flex 4 SDK? If you are using some version of Flash, then you can just embed the image in your Flash (*.fla) file. If you are using some version of Flex, you can use the [Embed(source="path/to/source/image.png")] to embed the image. See this link.

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