Preload sound AS3
-
16-10-2019 - |
Question
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 FlashBuilder project, and access it in a MovieClip inside the .SWC?
Thanks a lot!
Solution
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow