Effects -> Sound

Many users have asked us how they can implement sound into DHTML Menu Builder and we found a rather simple way.
In this example you'll notice that when you move your mouse over the menu items a sound is played. This sound is actually a Flash movie being played every time a menu item is selected.

Follow these instructions to setup the sound support for your menu items:

  1. First of all you will need to provide one or two Flash movies which play a sound when the movie is played.
    The first frame of the movie should be simply an action to play a sound.
  2. Next, insert the code for the movies in your HTML documents.
    Here's how the code should look like:

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0"
    id="Sound1" width="1" height="1">
    <param name="movie" value="Sound1.swf">
    <param name="quality" value="high">
    <param name="bgcolor" value="#6633CC">
    <param name="autostart" value="false">
    <embed name="Sound1" src="Sound1.swf"
    quality="high" bgcolor="#6633CC" width="0"
    height="0" type="application/x-shockwave-flash"
    pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
    </embed>
    </object>


    Notice these paramaters on the code above:
    1. autostart: this must be set to false so the sound is not played when the movie is loaded.
    2. name: this must be set a unique name which identifies this movie

  3. Next, download and install the AddIn.

  4. Configure your project to use the AddIn: Click File->Project Properties->Advanced and select the AddIn from the list.
  5. Now you need to configure the AddIn:
    1. Click on the AddIn Parameters button ()
    2. Set the MenuItemSound and ToolbarItemSound paramaters to the name of the Flash movies.
      If you're going to use just one movie, then use the name of that movie for both parameters.
      In this sample we used two movies. One of the movies is called "Sound1" and the other "Sound2".

  6. Finally, simply compile your project (Tools->Compile)

...enjoy the sound on your menus!