Skip to main content
Arioman
Inspiring
March 5, 2013
解決済み

Help to Use Sound in Flash sites in Pro Way ...

  • March 5, 2013
  • 返信数 1.
  • 404 ビュー

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 ?!

このトピックへの返信は締め切られました。
解決に役立った回答 kglad

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);

返信数 1

kglad
Community Expert
kgladCommunity Expert解決!
Community Expert
March 5, 2013

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);