Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing Windows System sounds

Status
Not open for further replies.

dwhalen

Programmer
Feb 22, 2002
105
0
0
CA
I was wondering if anybody knew how to access the system sounds of the user through javascript (or html). Or am I going to have to just embed my own sound and play it. (I want to make a sound trigger on the submit so the user knows that the form is processing)

Thanks
 

Hello,

The best solution I know to trigger sounds
is to make a small flash file (eg: 10px/10px) with
the same backgroud as your body (or windowless)
and to insert one mp3 file (smaller than .wav!) on each layer in flash.
Then, you can trigger each sound with javascript events holders.

Won't work on IE5 Mac, but won't produce javascript errors in any case.
Ask me if you need the code.

Have a good day.

 
Thanks for your reply. I decided to just use an embeded sound file (.wav) and use the play() method of the sound. But I have been thinking about trying to do some things with javascript and flash but I didn't know you could do it! Could you send me just a little snippet of that code, just in case I want to mix some javascript with my flash? What about ActionScript and javascript? Can you access ActionScript through javascript and vice versa? Thanks

Later
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top