all groups > flash actionscript > december 2004 >
You're in the

flash actionscript

group:

Controlling quality and time in sounds


Controlling quality and time in sounds german01
12/22/2004 9:05:16 PM
flash actionscript:
:confused; Hi: Someone help me!!!! I have two different problems with sounds:
1) I have MP3s that when play in the library sound pretty well, but when
inserted into a movie clip or placed on the main time line they sound with echo
or the sound is distorted. Why is the sound on the main time line or in a movie
clip producing this rare effects? Suggestions to better handle sounds? 2) I
am working with various lengths of sounds. For example in a 2 minute sound,
which has a series of other sounds, I would like to start at 20 seconds and
finish at 24 seconds. Then, start again at 25 seconds and stop at 29 seconds.
The sound is being attached from the library. I'm using a button to control the
sound and this is the script on the button. on(Press){ mySound= new Sound();
mySound.attachSound('exercise'); mySound.start(20); } This starts the sound at
20 seconds, but how do I stop the sound at 24 seconds? Thanks German
Re: Controlling quality and time in sounds Blade alSlayer
12/23/2004 10:02:19 PM
Check out your Flash export settings for sounds:
File -> Publish Settings -> Flash
You should rather use different files for the different sounds (not
necessarily mp3 - they could be wav).
But there is a way to stop your sond properly:
When you start it, use setInterval() method to call a function after 4 seconds
(4000 miliseconds) that would stop your sound.
AddThis Social Bookmark Button