Palyne,

Here is what is under the HTML Reference Documentation in CFStudio...
Another way you might do it is import them into their own flash movie and
control them from there...

<BGSOUND...> 
The <BGSOUND> element allows authors to create pages that will play sound
clips, or background soundtracks while the page is being viewed Sounds can
either be samples (.WAV or .AU format) or MIDI (.MID format). 

The HTML used to insert a background sound into a page is: 

<BGSOUND SRC="start.wav"> 
The BGSOUND element accepts the following attributes. 

BALANCE=Stereo balancing
The BALANCE attribute can be used to change the stereo balance when the
sound file is played. It accepts values between '-10000' and '10000'. The
effect of the two extreme values depends on the sound settings on the users
system, but using either of the extreme values will force the sound to play
from one speaker only. 

CLASS=n
The CLASS attribute is used to specify the <DIR> element as using a
particular style sheet class. See the Style Sheets topic for details. 

ID=n
The ID attribute can be used to either reference a unique style sheet
identifier, or to provide a unique name for the <DIR> element for scripting
purposes. Any <DIR> element with an ID attribute can be directly manipulated
in script by referencing its ID attribute, rather than working through the
All collection to determine the element. See the Scripting introduction
topic for more information. 

LANG=n
The LANG attribute can be used to specify what language the <DIR> element is
using. It accepts any valid ISO standard language abbreviation (for example
"en" for English, "de" for German etc.) For more details, see the Document
Localisation section for more details. 

LOOP=n
This attribute specifies how many times a sound will loop when activated. If
n=-1 or LOOP=INFINITE is specified, the sound will loop indefinitely. 

SRC
This attribute specifies the address of a sound to be played. 

TITLE=n
The Internet Explorer 4.0 (and above) specific TITLE attribute is used for
informational purposes. The <BGSOUND> attribute presents nothing on the
screen, so no 'ToolTip' is provided by the TITLE attribute. 

VOLUME=n
The VOLUME attribute accepts values between '-10000' and 0 and can be used
to set the volume at which the sound file will play. Note that using '0'
(i.e. maximum volume), will play the sound file at 100% of the users current
volume settings. There is no way in HTML that you can force a sound file to
play at a volume indecent to the user. They will always have total control. 

Example
This page has a background soundtrack playing if you are using Internet
Explorer. The code used is: 

<BGSOUND SRC="../Dynamic_Documents/clouds.mid"> 
NOTE : Internet Explorer now fully supports use of Netscape plug-ins using
the <EMBED...> element. Therefore, using : 

<EMBED SRC="../Dynamic_Documents/clouds.mid" HIDDEN="True"> 
will produce the same effect as using the above <BGSOUND...> element (and
will also work in Netscape (3.0 and above)). The actual <BGSOUND...> element
is still Internet Explorer specific though. 



----------------------------------------------------------------------------
----

Every <BGSOUND> element in a document is an object that can be manipulated
through scripting. Note that scripting of the <BGSOUND> element/object is
only supported by Internet Explorer 4.0, as only Internet Explorer supports
the <BGSOUND> element. 

<BGSOUND...> Properties
The <BGSOUND...> element/object supports all of the standard Dynamic HTML
properties (i.e. className, document, id, innerHTML, innerText, isTextEdit,
lang, language, offsetHeight, offsetLeft, offsetParent, offsetTop,
offsetWidth, outerHTML, outerText, parentElement, parentTextEdit,
sourceIndex, style, tagName and title). Details of these can be found in the
standard Dynamic HTML properties topics.
Also, the <BGSOUND> element supports the balance, loop, src and volume
properties, which directly reflect their attribute settings (see above). 

<BGSOUND...> Methods
The <BGSOUND...> element/object supports some of the standard Dynamic HTML
methods (i.e. contains, getAttribute, removeAttribute and setAttribute).
Details of these can be found in the standard Dynamic HTML Methods topics. 

<BGSOUND...> Events
The <BGSOUND...> element/object doesn't support any events 


-----Original Message-----
From: Palyne Gaenir [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 2:42 PM
To: [EMAIL PROTECTED]
Subject: RE: Can CF play .wav's?


I can't find any reference to this in my documentation, under this or
cfbgsound 
or anything like that.  Can you give me a little more info?
Palyne

On 13 Feb 2002 at 14:15, Eli Sanders wrote:

From:                   Eli Sanders <[EMAIL PROTECTED]>
To:                     [EMAIL PROTECTED]
Subject:                RE: Can CF play .wav's?
Date sent:              Wed, 13 Feb 2002 14:15:07 -0600
Send reply to:          [EMAIL PROTECTED]

Use <bgsound>

-----Original Message-----
From: Palyne Gaenir [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 2:05 PM
To: [EMAIL PROTECTED]
Subject: Can CF play .wav's?


I need to build an application that will play .wav files.  Short
clips, in a loop, pulled from a given directory with various specs,
and the timing needs to be

settable.  I only know CF (no java). Is there any way to do this sort
of thing with CF?  I looked through my books and didn't find any
mention of such a thing.

Regards,
Palyne

---------------------------------------------------------------------
---- This email server is running an evaluation copy of the
MailShield anti- spam software. Please contact your email
administrator if you have any questions about this message.
MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

---------------------------------------------------------------------
---- This email server is running an evaluation copy of the
MailShield anti- spam software. Please contact your email
administrator if you have any questions about this message.
MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org


-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to