Online Advertising News
Online advertising trends, news, stats and stories.

Home arrow Help documents arrow How to import music for your flash file
How to import music for your flash file
How to import music for your flash file

You are required to have a Macromedia Flash application (download the 30 days tryout version) to be able import WAV (Windows only), AIFF (Macintosh only), MP3 (Windows or Macintosh), and open this Source file

Let's start:

Open musicX.fla with Macromedia Flash, You will see two layer on the time line

1. "just a note for you" layer
2. "your wave/mp3 file" layer

Click the first frame on the second layer
Right Click > Property
will open a Property Panel

If you look on the right side, you will see a drop down menu for Sound and the setting of the sound file that we use called "my wave file"

Before we make any changes, let export the file

File > Export movie
or the short cut to do this
Hit Control + Enter

Be sure your speaker is ON, you should hear the music.
if you look at the folder where you put this source code, you should see a file call the same name
but with different extention.

You will use musicX.swf, however you have to rename them

To rename your musicX
Right click the name of the file, then rename the file to music (Right Click > Rename)

For our template design to recognize your file you need to rename the file as "music",
Some of our design have 5 background music included
you need to name them music1..music2....through 5.

That's it you just create swf music file.

Now to import your own wave or mp3 file.
For music loop:
it is recommended to use an audio loop for your flash presentation, because the file usually small.

1. Choose File > Import .... look for your sound file.
2. In the Timeline, select the first frame on the second layer that contains the sound file.
3. Choose Window > Properties and click the arrow in the lower right corner to expand the Property inspector.
4. In the Property inspector, choose the sound file from the Sound pop-up menu.
5. Keep Sync at "Event" and loop at any number you want.
6. Choose File > Export movie

For streaming audio:
You need to have enough frame for the wave/mp3 file to stream, add frame to second layer as much as the file needed.

1. In the Timeline, select the any frame on the second layer that contains the sound file.
Hit F5 or Insert > Frame till you have enough frames for the music file.
streaming sound need alot of frames ex 3000 frames.
2. In the Property inspector, choose the sound file from the Sound pop-up menu.
3. Keep Sync at "Stream" no loop
4. Choose File > Export movie