Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Participant ,
Mar 05, 2013 Mar 05, 2013

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

TOPICS
ActionScript
374
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 05, 2013 Mar 05, 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);

Translate
Community Expert ,
Mar 05, 2013 Mar 05, 2013
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines