spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column82


Embedding Sound with Flash, Part II: Playing Variations

Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

Amplifying Looping Sounds

Using the event sync may be problematic when you use it for looping sounds. You can assign a sound to loop via the Flash editor. When you play several looping sounds in parallel, you get an amplifying effect, because there are no instances that stop -- all new instances are piling up. This effect may not be pleasant to your ears. Mouse over the left link below a few times. Hear the effect:

Start Looping Sound   Stop Looping Sound

<HTML>
<HEAD>
  <SCRIPT SRC="flashsound.js"></SCRIPT>
  <SCRIPT>
    var mySoundObj = new FlashSound();
  </SCRIPT>
</HEAD>
<BODY>
<A HREF="javascript://"
  onmouseover="mySoundObj.TGotoAndPlay
  ('/loop-event','start')">Start Looping Sound</A>
<A HREF="javascript://"
  onmouseover="mySoundObj.TGotoAndPlay
  ('/loop-event','stop')">Stop Looping Sound</A>
<SCRIPT>
  mySoundObj.embedSWF("loop.swf");
</SCRIPT>
</BODY>
</HTML>

Next: How to distinguish between event sync and start sync

http://www.internet.com

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

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

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint


Produced by Yehuda Shiran and Tomer Shiran
All Rights Reserved. Legal Notices.
Created: April 23, 2001
Revised: April 23, 2001

URL: http://www.webreference.com/js/column82/5.html