|
April 25, 2001 Hiding the FlashSound Object Tips: April 2001
Yehuda Shiran, Ph.D.
|
|
The FlashSound JavaScript API embeds a FlashSound object in the page with the embedSWF() method. But where is this object in the page? How come we don't see it? FlashSound hides the object. In Internet Explorer it makes it transparent. In Netscape Navigator (v4.x) it assigns its color to be the exact same color of the page. You can change the color of the object in Netscape Navigator, by setting the bgcolor property.
As a reminder, in order to sonify your page, follow this recipe:
The following link plays a scale passage when moused over in Internet Explorer 4+ or Netscape Navigator 4.x. Try it: (a colored dot should appear in the beginning of this line in Netscape Navigator) We created the FlashSound object as follows:
Look carefully now in Netscape Navigator and notice a small dot below the "Play a Scale" link above. You notice it because its color is no longer equal to the page's background color.
Here is the source code:
Here are links you can use to download
People who read this tip also read these tips: Look for similar tips by subject: |