开发者

Preload sound AS3

开发者 https://www.devze.com 2023-02-06 04:35 出处:网络
I have AS3 project, made with FlashBuilder. I\'m using MovieClips from an external .SWC-file. In a MovieClip from the .SWF-file, I want to use an audio-file.

I have AS3 project, made with FlashBuilder. I'm using MovieClips from an external .SWC-file. In a MovieClip from the .SWF-file, I want to use an audio-file.

Is it possible to preload a sound-file (e.g. .MP3) in my FlashBui开发者_StackOverflow社区lder project, and access it in a MovieClip inside the .SWC?

Thanks a lot!


Yes, I don't know hoe you create your swc's but I'll tell you my setup which always works.

I create an asset FLA which would have the mp3 among other things. I compile using FlashDevelop, and use the preloader template. Never had problems with that.

What you can't do is use SWCs run-time.

0

精彩评论

暂无评论...
验证码 换一张
取 消