Background music problem

Hi

I just finished a site and I am new to flash

http://www.choicesint.com/

I have a small problem I want to mute the music when a person clicks on the video page so they dont have to manually click the speaker to shut the sound off to hear the video.
As well when they leave the page I want the music to continue playing. The music does not have to start over again, I just want it to mute while on the video page.

I tried using this: SoundMixer.soundTransform = new SoundTransform(0);

But it even mutes the video sound.

And I tried this: SoundMixer.stopAll();

It does kill off the background music, but I dont know how to turn on the music again when you leave the video page.

I prefer to use: SoundMixer.soundTransform = new SoundTransform(0); as it is easier to work with and you can adjust the volume as you like.

Can somebody help me please, I have been looking all over the internet and I am really getting confused.:hurt:

I pasted some of my script below. The music script and the video script

[SIZE=4]This is my action script for the music:[/SIZE]
// Assign The URL to the mp3 to play
var req:URLRequest = new URLRequest(β€œ101-jakatta-american_dream_(afterlife_remix).mp3”);
// Boolean value for button functions, to switch in the conditionals
var isPlaying:Boolean = true;
// Create the sound object
var snd:Sound = new Sound(req);
// Assign a var name for the sound channel
var channel:SoundChannel;
// volume control
var myTransform = new SoundTransform();
// Pause position variable
var pausePosition:Number = 0;
// Start Playing
channel = snd.play(pausePosition);
// Make Play button change cursor to click hand
playBtn.buttonMode = true;
// Move the play/pause button movieclip to frame 2(active state)
playBtn.gotoAndStop(2);
// Play Button Listener
playBtn.addEventListener(MouseEvent.CLICK, playPause);
channel.addEventListener(Event.SOUND_COMPLETE, onPlaybackComplete);
// On playback complete function ///////////////////////////////////
function onPlaybackComplete(event:Event) {
//trace(β€œThe sound has finished playing.”);
pausePosition = 0;
channel = snd.play(pausePosition);
isPlaying = true;
channel.addEventListener(Event.SOUND_COMPLETE, onPlaybackComplete);

}
// Play/Pause button function ////////////////////////////////////////
function playPause(event:MouseEvent):void {
// This conditional makes the magic of our play/pause functionality
if (isPlaying == false) {
channel = snd.play(pausePosition); // Start playing
isPlaying = true; // Set the isPlaying Boolean to true
playBtn.gotoAndStop(2); // Move the play/pause button movieclip to frame 2
channel.addEventListener(Event.SOUND_COMPLETE, onPlaybackComplete);
} else {
pausePosition = channel.position;
channel.stop(); // Stop Playing
playBtn.gotoAndStop(1); // Move the play/pause button movieclip to frame 2(paused)
isPlaying = false; // Set the isPlaying Boolean to false
}
}

[SIZE=4]and this if the scipt for the video[/SIZE]

import fl.video.VideoEvent;
myPoster.addEventListener(MouseEvent.CLICK, playMovie);
function showPosterFrame(event:Event):void {
myPoster.visible = true;
}
function hidePosterFrame(event:Event):void {
myPoster.visible = false;
}
function playMovie(event:MouseEvent):void {
choicesvideo.play();
}
choicesvideo.addEventListener(VideoEvent.PLAYING_STATE_ENTERED, hidePosterFrame);
choicesvideo.addEventListener(VideoEvent.COMPLETE, showPosterFrame);
choicesvideo.addEventListener(Event.REMOVED_FROM_STAGE, stopPlay);
function stopPlay(e:Event)
{
choicesvideo.stop();
}