Play Wave

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dennis M. Marks

    Play Wave

    This is a simple question. How do I preload a wave file and play it on
    command?

    --
    Dennis M. Marks


    -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
    http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
    -----== Over 100,000 Newsgroups - 19 Different Servers! =-----
  • Dennis M. Marks

    #2
    Re: Play Wave - more info

    In article <13122003145704 4840%denmarks@d csi.net>, Dennis M. Marks
    <denmarks@dcsi. net> wrote:
    [color=blue]
    > This is a simple question. How do I preload a wave file and play it on
    > command?[/color]

    My web page opens with a train entering from the left and stopping in
    the center of the heading where it stays. I want a sound saying "all
    aboard": to play at this time. Not sooner or later. I would like to
    preload it so there is no delay after the train stops. I can't figure
    out how to start a sound at a specific point in a javascript function.
    The function does multiple setTimeouts until the train is centered.

    --
    Dennis M. Marks


    -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
    http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
    -----== Over 100,000 Newsgroups - 19 Different Servers! =-----

    Comment

    • BCCPM

      #3
      Re: Play Wave - more info

      how about checking the x,y coordinateswith an if statement when tue play wave

      Comment

      • Thomas 'PointedEars' Lahn

        #4
        Re: Play Wave

        Dennis M. Marks wrote:
        [color=blue]
        > This is a simple question. How do I preload a wave file and play it on
        > command?[/color]

        This is a simple answer: You cannot do that with client-side JavaScript.


        PointedEars

        Comment

        • HikksNotAtHome

          #5
          Re: Play Wave

          In article <3FDCE0C9.30208 08@PointedEars. de>, Thomas 'PointedEars' Lahn
          <PointedEars@we b.de> writes:
          [color=blue]
          >Dennis M. Marks wrote:
          >[color=green]
          >> This is a simple question. How do I preload a wave file and play it on
          >> command?[/color]
          >
          >This is a simple answer: You cannot do that with client-side JavaScript.[/color]

          So you can't set the src of an image (JS image object) to a .wav file and then
          dynamically insert the code to make it play? WOW!
          --
          Randy

          Comment

          Working...