Windbrand
Windbrand

Reputation: 575

Export everything into swf?

I have linked music into my .fla with this actionscript:

public var chpt1Theme:Sound = new Sound(new URLRequest('Interlude1.mp3'));

public var chpt1ThemeSC:SoundChannel;

How do I package the music into the swf so the swf is completely independent? When I export -> movie, the sound is not included?

Thanks.

Upvotes: 1

Views: 181

Answers (1)

brandon.l
brandon.l

Reputation: 58

If you want the sound file included within the SWF file you will need to import/embed it into your FLA's library and reference the class name for that sound. The following example is taken from the first resource I posted below:

var drum:DrumSound = new DrumSound(); 
var channel:SoundChannel = drum.play();

Here are some further resources:

Working with embedded sounds

Using Flash Professional - Sound

Upvotes: 2

Related Questions