SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: sound on web
-
Jan 25, 2004, 14:42 #1
- 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?
-
Jan 26, 2004, 05:09 #2
- 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.
-
Jan 31, 2004, 15:19 #3
- 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!!
-
Feb 1, 2004, 12:11 #4
- 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(); }
-
Feb 2, 2004, 05:52 #5
- 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