spacer
Yehuda Shiran April 3, 2001
The FlashSound JavaScript API
Tips: April 2001

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
OpenOffice 3.2 Lands Amid Critical Changes
Red Hat, IBM Firmly in KVM Virtualization Camp
Red Hat Talks Up Open Source Cloud Plans

You can control the Flash player with JavaScript. The Sonify organization promotes standards in using interactive audio for the web, wireless, and consoles. They developed the FlashSound JavaScript API. This API (Application Procedural Interface) enables you to add simple interactive sound to your conventional HTML page, without relying upon any graphic presentation. The FlashSound JavaScript API (FJA) is an excellent way to ramp up on how to control Flash with Javascript. When you add sound to your page, you actually sonify your page.

The FJA is implemented in flashsound.js. Right-click this link and save the script to your hard drive. In any usage of FJA, you need to source this JavaScript file in the HEAD section of your page:

<HEAD>
  <SCRIPT SRC="flashsound.js"></SCRIPT>
</HEAD>

You also need to create a new sound object that will provide you with all FJA's properties and methods. The constructor function is called FlashSound(). Here is the modified HEAD section:

<HEAD>
  <SCRIPT SRC="flashsound.js"></SCRIPT>
  <SCRIPT>
    var mySoundObj = new FlashSound();
  </SCRIPT>
</HEAD>


People who read this tip also read these tips:

Look for similar tips by subject:


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

webref The latest from WebReference.com Browse >
Are Google's Language Translation Web Services Ready for Prime Time? · Installing and Using Meeplace, the Business Review CMS · Sending an HTML and Plain Text E-newsletter with ASP.NET, Part 2
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
ANSI SQL Hierarchical Data Processing Basics · Top 10 Threats to Wireless Security · Nuvio Intros NuvioFlex Virtual PBX