all groups > flash data integration > january 2005 >
You're in the

flash data integration

group:

How do I add music to a new layer, using Flash MX 2004 professional?


How do I add music to a new layer, using Flash MX 2004 professional? carsonauto
1/30/2005 6:05:36 AM
flash data integration:
:confused;I just like making simple .swf animations. But I would lke to know
how to add music to them. I can get music into the library, and understand the
kbps and all that condensing, but how do I actually add that music to the
animation? I get the music off of limewire, and comes already in a MP3 format.
Is this affecting it? But overall, how do I take the music from the library, to
a new layer, or in general, to the flash?
Re: How do I add music to a new layer, using Flash MX 2004 professional? derobinson
1/30/2005 5:36:22 PM
Create a new later in the timeline, drag the sound file from the Library onto
the stage itself. You won't see anything on the stage, but you'll see the sound
waveform in the timeline. You will probably have to add frames to the timeline
until you see the end of the waveform.

Or you can do it in code. Something like this:

var my_sound:Sound = new Sound();
my_sound.attachSound("myMP3file");
my_sound.start();

You have to make sure to give the sound file in the Library the linkage name
"myMP3file" in this example.

Hope that helps!


Re: How do I add music to a new layer, using Flash MX 2004 professional? carsonauto
1/30/2005 11:12:17 PM
AddThis Social Bookmark Button