Copy link to clipboard
Copied
hi , well i know some basic Info about Play and Stop sounds in AS3
but i really confused and weak in using sound for Flash sites and Project ...
in Flash Site and Project there are some Pages ( frames ) that containe playing Videos or Sound ( like Animation , Movies , Clips , mp3 music and ... )
and most of the Flash sites have Background music ( playing one or multi choose music )
So whats Your Best suggestion for do something like that ??
how can i set my background music to pause in Frames that Containe Videos and Sound ? and how can i Resume and play again after Exit from these Frames !!
am i must use multi Scene or some other Tips to do that ?!
use the sound class to create sound instances and then use the methods and properties of the sound and soundchannel class to control your sound(s).
var s:Sound = new YourSound();
var sc:SoundChannel=s.play();
any time you want to stop your sound, use:
sc.stop;
when restarting your sound, use:
sc = s.play(sc.position);
Copy link to clipboard
Copied
use the sound class to create sound instances and then use the methods and properties of the sound and soundchannel class to control your sound(s).
var s:Sound = new YourSound();
var sc:SoundChannel=s.play();
any time you want to stop your sound, use:
sc.stop;
when restarting your sound, use:
sc = s.play(sc.position);
Find more inspiration, events, and resources on the new Adobe Community
Explore Now