So, lets say my first movie clip has a button taking it to a new scene and the code is :
MeleeCSLCTBTN1MC.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_27);
function fl_ClickToGoToScene_27(event:MouseEvent):void
{
MovieClip(this.root).gotoAndPlay(1, "HallwayScene1M");
and i have a stop at the end of the movie clip.
Do i turn it into
import flash.media.SoundMixer;
MeleeCSLCTBTN1MC.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_27);
function fl_ClickToGoToScene_27(event:MouseEvent):void
{
MovieClip(this.root).gotoAndPlay(1, "HallwayScene1M");
}
and the at the end add the soudmixer stop?
If you are making the change to where you have a set of frames with one movieclip on each frame, instead of having multiple scenes, this line would change:
MovieClip(this.root).gotoAndPlay(1, "HallwayScene1M");
You could put the different movieclips spread out more in the timeline, and use frame labels, that are the same as your current scene names. Then that line of code would become:
MovieClip(this.root).gotoAndStop("HallwayScene1M");
The movieclip will play itself automatically, so no need to tell it to play with code. The full script, with the sound code as well, would be:
import flash.media.SoundMixer;
MeleeCSLCTBTN1MC.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_27);
function fl_ClickToGoToScene_27(event:MouseEvent):void
{
SoundMixer.stopAll();
MovieClip(this.root).gotoAndStop("HallwayScene1M");
}