Skip to main content
Participant
February 12, 2020
Question

Background sound keeps starting from the start when using gotoandplay

  • February 12, 2020
  • 1 reply
  • 365 views

Hi,

I am creating a visual novel on flash cs6 Action script 3. I need some help regarding the background music. 

I have made a seperate movie clips layer and inserted sound in the movie clip layer. Ive done this so that the music keeps on playing irrespective of the frames im on. 

Ive also added a simple gotoandplay command to play the scene from the 1st frame until NEXT button is clicked. 

The problem Im having is although one instance of background music is playing irrespective of frame however as soon as the frame, on which goto command is located, is reached; another instance of background music starts and then another and another whenever goto command frames are reached.

How do i keep a single instance of background music to be played.

 

Any help would be greatly appreciated.

This topic has been closed for replies.

1 reply

Legend
February 12, 2020

The documentation is your friend:

 

"Select a synchronization option from the Sync pop-up menu:

Start: The same as Event, except that if the sound is already playing, no new instance of the sound plays."

 

https://helpx.adobe.com/animate/using/using-sounds.html

 

Participant
February 17, 2020

Thanks for the reply.

I found that putting sounds in timeline is not a good idea. Its better to use actionscript for background sounds.