SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: sound on web

  1. #1
    SitePoint Evangelist
    Join Date
    Jan 2001
    Location
    earth
    Posts
    501
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    sound on web

    Hello.

    Is the ".aif" the correct format to introduce sound on a web page to ear it on MAC and PC?

    And what is the MHZ correct to web? 22Mhz?


  2. #2
    SitePoint Zealot
    Join Date
    Oct 2003
    Location
    San Diego, CA USA
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    AIF works primarly on a MAC. For web you have to go WAV. 22 is fine for the Hz. I suggest editing your sound, importing in flash as a 1 x 1 PX document, then exporting and putting that on your web page. Its faster, and you can load in MP3s

    Mike Lynch -- President of CMCStudios
    Coming soon at mikejlynch.net Photoshop, Illustrator, Final Cut Pro, LiveType, After Effects, Fireworks, Dreamweaver, Building a PC, and Home Networking Tutorials.

  3. #3
    SitePoint Evangelist
    Join Date
    Jan 2001
    Location
    earth
    Posts
    501
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello.
    I did that.
    And the problem is .. well the two problems are: the sound doesn't loop and when I clicked on 'play' more than one time it repeats the instance as if it is an event sound.

    Bye!!

  4. #4
    SitePoint Evangelist
    Join Date
    Jan 2001
    Location
    earth
    Posts
    501
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is the code to play:

    Code:
    on (release) {
        s = new Sound();
        s.attachSound("sound");
        s.start();
    }

  5. #5
    SitePoint Zealot
    Join Date
    Oct 2003
    Location
    San Diego, CA USA
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You have to set it the number of loops that you want. I haven't written that code in a long time. I think there is a tutorial on http://www.werehere.com that shows how its done. Thats where I got it from.

    You might also want to read this article: http://archive.devx.com/webdev/artic...hp082201-1.asp

    Mike Lynch -- President of CMCStudios
    Coming soon at mikejlynch.net Photoshop, Illustrator, Final Cut Pro, LiveType, After Effects, Fireworks, Dreamweaver, Building a PC, and Home Networking Tutorials.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •