Skip to main content
Participating Frequently
October 2, 2012
Question

Sound playing issue

  • October 2, 2012
  • 1 reply
  • 1915 views

Hi there! Im new to this, so please excuse me if I have done something incorrect. I am having troubles with sound on my flash game. The weird thing is, the sound plays perfectly fine when I test the scene but not when I test the movie. The previous scenes work fine and I have used the same coding and actions, but for some reason its just this scene.I am willing to send my file to anyone willing to help if it would help them understand what i mean. Please help!

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
October 2, 2012

what code do you use to play your sound or, is your sound attached to a timeline?

Participating Frequently
October 3, 2012

Hi Kglad.

Thank you so very much for responding. I hope you can help! I have the sound attached on the timeline, I think. I just created a new layer then dragged the sound file from the library to the stage. On previous scenes the sound plays automatically, but for some reason from this scene onwards it does not. On the previous scene of this one, I have used the code for the "next" button:

on (press) {stopAllSounds();

}

I originally thought this was the problem because I am stopping all sounds, but it just doesnt make sense to me because I have the exact code on other scenes and the following scene plays sound automatically with no problem.

Would it be easier if I sent you the file?

Participating Frequently
October 3, 2012

you can removed that code.  it just confirms that the frame that contains that code (which should be the same as the one that contains your sound), plays.

now, in the properties panel you showed, change sync from event to stream and retest.


Nope. Still does not work. Would it being too long have anything to do with it? For the scene before, and others, sound goes on till like the 100th frame or around then....this is goes to the 500th scene. When I checked it, for some weird reason, just the sound layer was up to a number very close to 5000! and the rest of the layers were at 500. So i shortened the sound layer to make it the same length of frames as the others, and it still does not work....