ActionScript 2.0 :: Stop The Background Music When One Loads A Specific Swf

Nov 24, 2006

1. I have a main.swf that loads external swfs. I am trying to stop the background music when one loads a specfic swf, and start the music when one leaves that swf. Here's the code I came up with, but it doesn't work.

[Code]...

View 1 Replies


Similar Posts:


ActionScript 1/2 :: When File Loads In The Browser - Music Immediately Plays And Loops Until Click A Button To Stop The Music

Mar 30, 2009

I downloaded a flash template and have modified it to suit our company but there is something that I can't do. When the file loads in the browser, music immediately plays and loops until you click a button to stop the music. On our video page, we have video
that we need to play that has sound in it. How do I get the background music to stop when my video plays without having to go up and stop the music manually. The videos are loaded via an external XML document and there are no buttons in the FLA file to link code to. the website is [URL]

View 4 Replies

Movie Clips And Background Music - Unable To Stop Music At The End Of The Animation?

Apr 30, 2011

I'm working on an animation where I have my "dog" fighting the evil vacuum cleaner. I got most of it to work the way I want it to.

1) I have movie clips entitled pepper_mc (where my dog is supposed to be walking), swirl (where a swirly-type symbol is supposed to spin over the dead vacuum's head), and vacuum_mc (where the evil vacuum is supposed to have a swinging arm (called vacuumarm_mc) that I created using the bone tool). When I add them to the stage and test them, the animations within the movie clips don't happen.

2) I have background music that I'd like to stop playing at the end of the animation, but I'm not sure how to do that. (using the stop(); actionscript doesn't help).Where am I going wrong? I'm using Flash Pro CS5.

Here's the file --> Pepper and the Vacuum of DOOM!

View 1 Replies

ActionScript 2.0 :: Stop All Sounds Except Background Music?

Feb 20, 2011

I have created a simple soundboard, with multiple buttons that play sounds upon release. These sounds are embedded within the 'hit' frames of the buttons. Only one can be played at once, so this has been applied to each button:

on (press){stopAllSounds ();}

This all works as planned so far. However, I would like to have a background music feature that would be exempt from the "stopAllSounds" command and thus able to keep playing regardless of what buttons were pressed (or until a designated stop button was pressed).

View 2 Replies

ActionScript 3.0 :: Stop All Sounds Except Background Music?

Jun 17, 2011

I am working on a website that has 11 sounds in one frame. All of the sounds are external, meaning I have to call each one of them every time I want them to play, which happens when I click on specific MCs in my stage. Each MC I click all sounds stop and the new one starts playing. So far, so good.

But therein lies the problem: I want this to happen but keep background music playing. I have no idea where to start from.

View 1 Replies

Professional :: Stop Background Music When Flv Starts AS2?

Apr 7, 2011

I have a flash game that I have videos between some, but not all questions.I would like to have background music that would play during the questions then mute, or turn off when the video is played, then turn back on when video is completed.If possible, but not required, a mute button could be created that would mute the music and would overide it turning back on as well.In other words the person takes the quiz, when the video plays it shuts off the music and starts it back up when video ends. And if possible, if they select to mute the music before the video plays it will not restart after the video completes.I did this in actionscript 2. The questions are on frames 1-50, the videos are on frames 100-110.I have it set up when a question is answered it goes to the video then back to the next frame for questions when it completes.

View 1 Replies

ActionScript 3.0 :: Stop And Start Background Music?

Feb 7, 2010

I have background music playing by using this code:

Code:
var request:URLRequest = new URLRequest("loop.swf");
var loader:Loader = new Loader()
loader.load(request);

this works great for playing the music but I don't know how to have a pause and restart button for the music.

View 7 Replies

ActionScript 2.0 :: How To Stop Background Music On Certain Event

Apr 11, 2010

I have music player when the swf starts and loops continuously or until "music off" button is activated. I would like the music to stop when a certain page is called or if that can't be done then when any button of the main menu is selected.

View 6 Replies

ActionScript 2.0 :: Stop One Sound With Background Music?

Apr 20, 2011

I'm triying to stop a sound of a button, while you hear a background music. The music is assigned in the timeline for the animation. When the animation stop at a specific frame (activity), the button are showed. At this point is all ok.

I don't understand... I am very specific to wich sound must stop. Is there a bug?

In AS 3.0 is more easy when you use the SoundChannel, but in AS 2.0 ?

View 3 Replies

ActionScript 2.0 :: Music Separate From Flash File / Still Have Start Stop Music Buttons?

Oct 11, 2009

I want a site to have background music, but when I attach the music to the file it makes it quite large ...3 meg and the site is slow to load. Is there any way of having the music separate from the flash file and still have start stop music buttons?

View 2 Replies

ActionScript 2.0 :: Music To Continue Playing But The GetURL Function Seems To Stop The Music

Dec 13, 2005

When the movies performs the getURL action, I want the music to continue playing, but the getURL function seems to stop the music at frame 152 (where the getURL action is placed), when I wanted the music to continue to frame 257 (the end of the movie). I hope I've explained this clearly

View 3 Replies

ActionScript 3.0 :: Music Player - Loads An External File?

Apr 16, 2009

I've made a a music player in as3 that loads an external file:

var music:Sound = new Sound(new URLRequest("walk.mp3"));
var sc:SoundChannel;
var isPlaying:Boolean = false;[code]............

But i wanted the music to start as soon as you open the movie... how do i do it?

View 1 Replies

CS3 :: Looping Music For Background

Apr 24, 2009

I am used to working in Flash MX but now have CS4. You use to be able to just drop an mp3 file onto a layer and it would loop continously now it's not doing that.I need help in a big way to loop this mp3 file in CS4.

View 3 Replies

ActionScript 3.0 :: Possible To Use Background Music?

Oct 22, 2009

I've been working with Actionscript 3.0 for over 6 months now but I've never used background music in any of my projects before. This time I decided to add a sound loop to play in the background while the visitor is viewing the site. So, basically I want this sound to loop over and over again, but there will be two buttons on the stage, one that plays it if it's stopped, and another one that stops it (just in case the visitor doesn't want to hear the music). My knowledge about using sounds is minimal, all I know that I should load the sound, then put it into a soundChannel and then play/stop the sound channel... but I'm not sure how to keep looping the sound and not just play it once (the sound file is 16 seconds long only).

View 6 Replies

ActionScript 3.0 :: Turning Off The Background Music?

Dec 26, 2008

I have a few frames presentation in flash and a music in background playing. I have a button and this code attached to it:

When I'm hitting the button music is restarting not stopping. Everything is fine when presentaion lasts 1 frame.

View 7 Replies

ActionScript 2.0 :: Not Restart Background Music After You Off?

Jul 22, 2002

Well I have this website where I have put background music at the beginning, of course the music can be off and on, but when I come to main page again it starts playing. How to make it so that once I off it, it will stay off till I on it again? My file is at

View 2 Replies

ActionScript 2.0 :: Random Background Music?

May 3, 2003

how to write a code that play background music randomly?i write these in the frame

bgmusic = new Sound();
bgmusic.loadSound("1.mp3", true);
in the movie

[code]......

View 5 Replies

ActionScript 1/2 :: Add Background Music In Game?

May 7, 2008

i'm trying to add background music in my game, but i don't know how to play and pause it...

View 3 Replies

ActionScript 3.0 :: Make Functions Available Only If Specific SWF Loads?

Jun 21, 2011

I'm creating a Flash file which pulls in external SWFs onto a container. The main SWF which has the container clip is called Main.swf then we have external swf's.

So basically, we have Main.swf, English.swf, French.swf, More.swf

More.swf has a load of buttons on it (contact.swf, about,swf etc etc)

To make things neater, I wanted to put all of my button code in the Main.swf, and I've got it sorted so that English.swf, French.swf and More.swf load correctly into holder_MC which is on Main.swf

Now, to get the buttons working, I can either have the code situated in More.swf (in which case, can I change the contents of holder_MC which is located in Main.swf from within More.swf? If so, how?)

Or, I can have an event listener to say that when Main.swf is loaded, create these functions to link to contact.swf, about,swf etc etc)

View 1 Replies

ActionScript 3.0 :: Background Music: Looping, Stopping?

Sep 1, 2009

I've got a few questions about background music. Such as...

- How do you get music to loop in the background of a stopped frame (or multiple stopped frames)?

- How do you get the looping background music playing in a stopped frame to stop when a certain button is clicked?

- and How do you get music to stop playing in regular, non-stopped frames when a certain button is clicked (although it's probably the same as the above question...)?

View 3 Replies

Professional :: Mask Background Music On Flash?

Apr 25, 2010

Is it possible to mask the background music in my flash website so it stops when I have my videos running?

View 5 Replies

Professional :: Background Music In A Flash Presentation?

Jul 18, 2010

I have made a corporate presentation in Flash (CS3). The structure is as follows. The main timeline just 6 key frames. 1 intro and 5 content. Each of the 6 key frames has a movie clip with relevant content on it.
 
After the introduction in key frame 1, the timeline stops at the next key frame.From here, one can navigate forward and backward between the 5 content key frames, using buttons.These buttons are available throughout these five key frames.
 
Each of the key frames contains a relevant movie clip, with content.And also a sound clip to introduce what that key frame contains. Since a user can navigate forward and backward at any point of time, all these keyframes have the frame action:

[Code]...

View 2 Replies

Html :: Play Background Music Continuously?

May 22, 2010

I am playing a background on my webpage by using miniswfloopplayer, now I want the music to play continuously throughout the website, currently the music starts all over again when a page loads which is quite obvious. I am looking for a approach where I can avoid the above situation.

View 1 Replies

ActionScript 3.0 :: Efficient Way To Load Background Music?

Aug 14, 2009

Ok, so I've tried a lot of different ways of loading background music in Flash, and now I'm wondering what the most efficient way of doing it really is.

I have my DocumentClass, and I have a MusicPlayer class. The MusicPlayer class controls the volume and mute function, as well as holding all the visible elements of the music player.

Where should I load the music initially? From the DocumentClass at the startup? Or in the MusicPlayer after the site has initially loaded? I want the music to start playing as soon as the initial loading process has finished.

View 3 Replies

Actionscript 2.0 :: Background Music Fadeout/in Effect?

Feb 6, 2009

I bought a flash template and I want the background music to fade out automatically when it changes to the DEMO page so the person can hear the video clip without the background music that brought the template. I am new on flash CS3 so I know a little bit of AS 2.0. I just want the same concept like the webpage www.doubt-themovie.com when it hit the VIDEO page that the music fade out.

View 1 Replies

ActionScript 3.0 :: Music Player - Play / Pause Specific Song

Nov 27, 2010

At the moment, I am attempting to make a music player that will play a specific song of my choosing. I am stuck at the part where you can pause the sound, and then play it in the same place. I have tried many things such as using the timer utilities. Right now, when I pause it, it stops, and when I press play, it plays from the beginning.
stop();
var channel:SoundChannel;
var soundCheck:Boolean = true;
var song:Sound = new Sound(new URLRequest("song.mp3"));
channel = song.play();
[Code] .....

View 1 Replies

ActionScript 2.0 :: Button That Loads And Then Plays A Specific Cuepoint?

Jul 30, 2009

This should be simple but...I have several buttons "Questions" on the main timeline. The answers to these Questions are at specific cuepoints in the flv. This .flv has nav.cuepoints inserted during encoding.Click the button needs to load the flv,then automatically go to the specific cuepoint. Then it needs to run, eventually, to the end of the flv.I dont want the user to have to load the video first then use the cuepoints.I also dont want the video to load at the start, only after one of the questions(buttons) have been clicked.

Will the flv buffer from the cuepoint or does it have to buffer from the start of the video regardless of the cuepoints?

code Im playing with:

import mx.video.FLVPlayback;
//play at start
var my_flvPb:FLVPlayback;my_flvPb.autoPlay = true;[code].....

View 2 Replies

ActionScript 3.0 :: Resume Background Music Playback Out Of Frame

Mar 6, 2011

So I have a Flash CS5 presentation which uses ActionScript 3.0, and currently is completely finished except for the addition of background music.

One of the pages has audio files which the user can select and listen to, and another page has video files for the user to select and watch.

As a result, I will need the background music to pause/stop itself before it reaches those frames in the movie, and start itself when leaving those frames.

Alternatively, a button for the user to click and the background music will pause or resume.

I have tried multiple methods, and currently have the background music playing from frame 1 (with the "pause/resume button" event listener) to the end. The pause button will work anywhere in the movie, but the background music will not resume at all - not even from the beginning.

I assume that this is because the song isnt loaded past frame 1?

View 3 Replies

ActionScript 3.0 :: Pausing Background Music In Parent Movie?

Sep 7, 2009

I've got a single scene Flash movie with a number of embedded MovieClips. In the parent movie, on the first Actions frame, I have the following script to get the background music to play:

[Code]....

View 3 Replies

ActionScript 1/2 :: Control A Background Music Volume Using This Code?

Apr 6, 2010

I tried to control a background music volume using this code

soundInstance = new Sound();
soundInstance.attachSound("1");
soundInstance.start(0,999);[code]....

"1" is a linkage identifier. everything works perfect...music plays and volume decreases.but not only the attached sound... the whole movie volume changes even the swf I've loaded in my clip. I just need to control the background music("1" linkage) not all the sounds. what's the problem here? how can I make this happen?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved