3/6/2011 3:13:11 PM
Title:
Question re: Audio fade in and fade out in flash. How to tutorial and example
Thank you for your excellent example.
I see that in the Flex mx:SoundEffect class there is a "loop" property with which I can control the number of times the mx:SoundEffect plays.
For example:
loops="0"
plays the SoundEffect once.
How can I achieve the same effect of playing the sound _ONLY_ once, as in your example
//play music
function btnPlayClick(evt:Event):void {
channel=snd.play(0,20);
}
many thanks!
Rayan
Points: 700
Posts:0
3/8/2011 9:47:11 AM
use value 0 instead of 20. It defines the number of times sound should play.
channel=snd.play(0,0);