[COLOR=#333333][FONT=Helvetica Neue]When the game starts. I have toggle button. I can play a sound or stop sound. When i play the sound, of course its not muted so even if i go to the next page. I can reason out that the sounds will still play.
[/FONT][/COLOR]
[COLOR=#333333][FONT=Helvetica Neue]But if i press the no sound,so it means it must be muted… on the first screen, the sound stops. But when I go the next frames and to others. The sounds are playing. The sound on the starting screen[/FONT][/COLOR]
[COLOR=#333333][FONT=Helvetica Neue]was like [/FONT][/COLOR]
[COLOR=#333333][FONT=Helvetica Neue]var test:Sound = new NameOfSound();[/FONT][/COLOR]
[COLOR=#333333][FONT=Helvetica Neue]
[/FONT][/COLOR]
[COLOR=#333333][FONT=Helvetica Neue]but in the next frames… the sound is in the frame itself… no declaring like the first screen…[/FONT][/COLOR]
[COLOR=#333333][FONT=Helvetica Neue]and also some sounds is playing when something happens or for example if the bullet hits the target collsion…sound play…
[/FONT][/COLOR]
[COLOR=#333333][FONT=Helvetica Neue]
[/FONT][/COLOR]
[COLOR=#333333][FONT=Helvetica Neue]i tried to have solution like on the first screen if for example it is muted… ill set it to trueStop… then on the next frames… i would put:[/FONT][/COLOR]
[COLOR=#333333][FONT=Helvetica Neue]if(trueStop == true){[/FONT][/COLOR]
[COLOR=#333333][FONT=Helvetica Neue] SoundMixer.stopAll();
[/FONT][/COLOR]
[COLOR=#333333][FONT=Helvetica Neue]}[/FONT][/COLOR]
[COLOR=#333333][FONT=Helvetica Neue]
[/FONT][/COLOR]
[COLOR=#333333][FONT=Helvetica Neue]that way the frame sounds stopped and working… but the sounds attach to the function when like i said if a collision happens, the sound is still playing… arrgghh i cant explain clearly… i hope you understand my problem…
[/FONT][/COLOR]
[COLOR=#333333][FONT=Helvetica Neue]any ideas?[/FONT][/COLOR]