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?

kglad
Community Expert
Community Expert
October 4, 2012

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....


there's a limit of 16000 frames total for any timeline.  but you have not reached that or you would not have seen that trace (assuming you tested your movie and not tested the scene).

remove that sound and replace it with another sound that plays correctly in a previous scene.  does that work in your tiger scene?