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

How to make the background sound auto replay when user return to the page?

Guest
Dec 08, 2015 Dec 08, 2015

Hi. I am making a flash project by using Adobe Flash CS6 and AS3. I insert background sound in every scene. However, I had put one command for the bg sound to stop in every scene. But the problem is when user return back to the previous page, the sound doesnt play. Anyone know how to make the background sound replaying when user return without any on/off button etc? Thanks in advance!

TOPICS
ActionScript
517
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

Enthusiast , Dec 08, 2015 Dec 08, 2015

var mySound:Sound = new Sound();
mySound.load(new URLRequest("sound.mp3"));
mySound.play();

Translate
Enthusiast ,
Dec 08, 2015 Dec 08, 2015

var mySound:Sound = new Sound();
mySound.load(new URLRequest("sound.mp3"));
mySound.play();

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
Guest
Dec 08, 2015 Dec 08, 2015

Thank you for your help!

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
Enthusiast ,
Dec 08, 2015 Dec 08, 2015
LATEST

You're welcome.

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