Wednesday 01 February

 

Today we will import sound(s)

You can find sounds and musical clips on the Web. Be sure you reference where you got your sound piece from and that you get one that is free to use.

 

These are the formats that Flash MX will support;

Your best best is Wav or MP3 because you can find so many on the Web. Firstly, of course you need to have saved something as a (in this case) WAV file. Find a sound on the web and import it (remember you will need a reference page to keep track of where you got the sound from) then import to the library

 

NEXT - be sure you have a new layer to put your sound on. Have your Property Inspector open as below,

 

Right Click on your sound thingy in the library so that we can give the sound file an Identifier. The box below will open up an actions dialogue box. Chose 'Linkage'.

 

One of the choices when you click on Linkage' is 'Export for ActionScript'. (See next to the 'Identifier' 'music.mp3' so that this sound will be accessible by the ActionScript'

 

 

If you do not have an action layer make a new layer called Actions and click on that. Open you 'Actions' window and you will see,

 

 

Actions are located in the Actions Folder under 'Objects' > 'Movie' > 'Sound' > 'Methods' (see image below the below image)

 

 

 

Double click the attachSound label and we will attach our sound to the object - in this case we label it 'sound' and put the name of our file (here we have 'music.mp3') in the box following 'Parameters'

 

 

Then we can click on behaviors (under Methods).

If through some miracle we actually have a sound in our library and inserted in our Sounds layer then we can look at some effects (properties menu);

 

 

If you click on CUSTOM you get the box below that shows the wave form. The left volume is on top and the right volume is on the right. The volume line is on top. If you click on the line in the right hand corner you can adjust the sound,

 

By clicking on the box where the arrow is on (above) you can adjust the line to have fade in and fade out effects at different points on your sound. Double click on the box to get the box showing the 'presets' as below to show,

 

 

Of course, as you would know, this only effects this particular instance of your sound - what is in the library stays the same. Your timeline should begin to look something like this,

 

The next thing to look at is how it will play and load. For example you can have it 'stream' into your movie or you can have it loop as shown below.

\