-
music/movie swf problems
First the problem...I have bg music playing for all of my externally loaded swf files from the main timeline except for the video_content.swf... I want my music to play continuously between all the pages (except for video_content.swf) but stop when a user goes the video page - (since the video has its own audio).
When a user leaves the video page I want the audio from the video to stop. The only way i know how to do this is with the SoundMixer.stopAll();...the hang up is that this also causes the bg music to stop playing as someone navigates from page to page which is not what I want.
Here is the code found on the maintimeline as of now:
//Set the Loader Class Object and Load the External Home Content File
var movieLoader:Loader = new Loader ();
movieLoader.load(new URLRequest("home_content.swf"));
addChild(movieLoader);
//Load the Content Movie for each when the function is called
//Navigation Functions
function toHome(event:MouseEvent):void {
movieLoader.load(new URLRequest("home_content.swf"));
SoundMixer.stopAll();
}
function toDolphin(event:MouseEvent):void {
movieLoader.load(new URLRequest("dolphin_content.swf"));
SoundMixer.stopAll();
}
function toShark(event:MouseEvent):void {
movieLoader.load(new URLRequest("shark_content.swf"));
SoundMixer.stopAll();
}
function toContact(event:MouseEvent):void {
movieLoader.load(new URLRequest("contact_content.swf"));
SoundMixer.stopAll();
}
function toSquid(event:MouseEvent):void {
movieLoader.load(new URLRequest("squid_content.swf"));
SoundMixer.stopAll();
}
function toVideo(event:MouseEvent):void {
movieLoader.load(new URLRequest("video_content.swf"));
}
//Event Listeners
home_btn.addEventListener(MouseEvent.CLICK, toHome);
dolphin_btn.addEventListener(MouseEvent.CLICK, toDolphin);
shark_btn.addEventListener(MouseEvent.CLICK, toShark);
squid_btn.addEventListener(MouseEvent.CLICK, toSquid);
contact_btn.addEventListener(MouseEvent.CLICK, toContact);
video_btn.addEventListener(MouseEvent.CLICK, toVideo);
If someone could help me solve this I'd be VERY VERY thankful!!!
-
Thanks for more good ideas guys...u r doing good job
I'm very glad to visit this attractive site after completing my hectic training session.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules