Practice 2
Integration of sound files

We will now make a variant of the previous activity that will let us hear the sound of each animal.

- Activate the File - New... - Association menu again. The working directory is the same as in the previous exercise.

- Mark the Explore mode kind and set a layout of 2 rows and 2 columns.

- Drop the list of files for grid A and select PHOTOSAN.TXT

- Click on the NEW TEXT button for grid B and call it SOUNDSAN. In the Windows notepad write:<=P>

{elephant.wav}
{leopard.wav}
{wolf.wav}
{dolfin.wav}

- Save the text file and close the notepad.

- Write the following text in Welcome message:

Listen to the sound of each animal

- Select an A above B type distribution.

- Confirm everything and test the activity.

As before, we find ourselves with cells that are too small. This time, instead of changing the parameters that control the appearance of the activity one by one, we will just copy them from the previous exercise:

- Go to Activity options (CTRL+O) and click on the Copy style from...button.

- In the window that appears click on the ANIMALS1.ASS file and accept.

- The graphical appearance is very similar to that of the first activity. We only have to unmark the Delimit cells option for grids A and B in the edit activity window (CTRL+E).

On clicking on the photo of each animal, its sound will be heard and a speaker icon is shown in grid B. Instead of this speaker, we could make each animal's name appear:

- Edit the activity (CTRL+E) and click on the EDIT CONTENTS button for grid B. You should open the Windows notepad with the SOUNDSAN.TXT file.

- Change this text file so that it ends up like this:

Elephant{elephant.wav}
Leopard{leopard.wav}
Wolf{wolf.wav}
Dolphin{dolfin.wav}

- Still in the Windows notepad, activate the Files - Name and save menu (or File - Save as...) and change the file name to NAMESOAN.TXT. Once that is done close the Windows notepad.

- In Clic's edit window, drop the list for grid B and select the file you have just created: NAMESOAN.TXT.

- Check the activity and save it as ANIMALS2.ASS