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 3, 2012

Thank you Kglad. I am very new to Flash and I have no idea what you mean by trace output. However, I did copy and paste the code that you gave me, and it still did not produce any sound. I did notice that in "output" which is next to timeline, this was shown _level0 184. I have no clue what this means, but I have added 2 screenshots that I hope can help you:

Please let me know if you need any more information.

Thanks once again.

Lana


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.