spacer
Yehuda Shiran April 6, 2001
Sonifying Event Handlers
Tips: April 2001

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
Google Chrome Playing Catch-Up on Extensions
Open Solutions Alliance Gets New Leadership
Red Hat Spacewalk Expands Linux Management
In order to invoke a Flash sound when a link is clicked, use a regular Anchor tag with HREF="javascript://", and set the onclick event handler to call the FlashSound JavaScript API's TGotoAndPlay() method. The following link shows the text "Play the sound" and directs the play head to go to the label "start" in the "/beamscan" frame:

<A HREF="javascript://" onclick="mySoundObj.TGotoAndPlay('/beamscan', 'start')">Play the sound</A>

The following link shows the text "Stop the sound" and directs the play head to go to the label "stop" in the same "/beamscan" frame:

<A HREF="javascript://" onclick="mySoundObj.TGotoAndPlay('/beamscan', 'stop')">Stop the sound</A>


People who read this tip also read these tips:

Look for similar tips by subject:

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
MS Access and MySQL · Cisco AutoQoS: VoIP QoS for Mere Mortals · While VoIP Adoption Explodes in Enterprise, Carrier Spending Lags