使用 Adob​​e Flash 发布 SWF

发布于 2024-09-05 10:19:48 字数 330 浏览 2 评论 0原文

我有一个包含图像(1 个关键帧)的 SWF 文件,并且还包含一个具有以下代码的 AS3 文件:

var loader:Loader=new Loader();
var ur:URLRequest=new URLRequest("1.swf");
loader.load(ur);
addChild(loader);

我试图在显示图像时播放 swf 文件(1.swf - 音频)。我想知道的是如何才能将此项目发布到 SWF 文件中,即使没有原始 1.swf 文件,该文件仍然可以按预期播放。我现在可以发布 SWF,但是当我删除 1.swf 文件时,我生成的 swf 只能显示图像。

I have a SWF file which contains of an image (1keyframe) and also, it contains an AS3 file with the following codes:

var loader:Loader=new Loader();
var ur:URLRequest=new URLRequest("1.swf");
loader.load(ur);
addChild(loader);

I am trying to play the swf file (1.swf - an audio) while the image is being displayed. What I want to know is how will I be able to publish this project into an SWF file which can still play as expected even without the raw 1.swf file. I can publish SWF right now but when I delete the 1.swf file, my generated swf can only display the image.

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

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

发布评论

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

评论(1

停顿的约定 2024-09-12 10:19:48

如果您能够在实际 URL 上托管文件 1.swf,则可以更改 AS3 代码以通过网络从该特定 URL 获取该文件。

If you are able to host your file 1.swf at an actual URL, you could change your AS3 code to fetch the file, over the network, from that specific URL.

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