<- Last Tutorial Home Next ->

Add Audio

We need an audio control, so when we press Play Audio something happens. Then we need an exit point so when we press the Exit button we actually do exit.

The Best way to do this and other kind of programming of interactions like this is through the Map or flowchart view.
Open that view. Use the Top menu bar Window ->New Map Window or select this icon map.jpg (1018 bytes)

A new window opens and it should look like this:


map1.jpg (21803 bytes)

 

Put in the audio.

  1. Select the first or top button icon in the map view so you can see the proxy handles.
  2. Locate the WAV control on the Control Palette. wav.jpg (1061 bytes)
  3. Drag-and-drop in into the Map View.
  4. You have just inserted the Wav control between the 2 buttons.
  5. You will notice that the Wav icon has been connected to the buttons. Your map should look something like this.map2.jpg (23639 bytes)

  6. Double click on the the WAV icon.
  7. Find the Filename property and double click on that.
  8. Use the common dialogue to choose a .WAV file to play at your command.
  9. Click on the Methods tab.
  10. Click on the first blank line.
  11. Click on the [...]
  12. Use the drop down list to select Play
  13. Click OK

logo5gif.gif (1878 bytes)
Home