Groups | Blog | Home
all groups > flash (macromedia) > july 2005 >

flash (macromedia) : opening page music


mr_magicman
7/31/2005 6:02:58 PM
i have created a flash file in which i have managed to figure out most
everything but one thing. when the opening screen appears i have music playing
but when i click on my navigation buttons to jump to that new area (which has
its own music) the the opening music is still playing. i can not seem to figure
out how to get it to stop after the nav buttons are clicked on. thanks in
advance for any input on how to solve this.
louis
El Jay Kay
7/31/2005 6:06:33 PM
Hi -
Check the "I need help" thread. ;-)

mr_magicman
7/31/2005 6:36:21 PM
El Jay Kay
where is the "i need help" thread at? This my first time to come here for help.
thanks,
lumeeguvnor
7/31/2005 8:02:32 PM
on the nav button put
on(release) {
stopAllSounds();
mr_magicman
7/31/2005 8:56:33 PM
lumeeguvnor...
thank you so much for the tip. i appreciate it.
lumeeguvnor
7/31/2005 9:17:19 PM
mr_magicman
8/1/2005 12:37:18 AM
lumeeguvnor...
i did what you suggested and your solution worked like a charm. you solved a problem that was stumping me since yesterday.
again thanks for your help.
El Jay Kay
8/17/2005 12:00:00 AM
Hi -
Just discovered your pm today - sorry about that.
Are you loading a sound file into Flash - or attaching it from the library?

If a sound is set to be an 'event' sound, it'll play only when done
downloading & may overlap other
sounds as a result. If it's set to 'stream', will play as soon as it can &
less chance of overlap.

How are you implementing the sound - with frame insertion on the t-line,
or creating Sound objects w/ actionscript? I think the 2nd method gives the
best control. So, let's
say your opening page music is an external .mp3 in the same folder as your
movie's .swf:

introMusic = new Sound();
introMusic.loadSound("intro.mp3", true);
introMusic.start();
//this is on the main timeline, where the 2nd param. for loading the sound is
'isStreaming'.

on your buttons that go to another clip [& where you're having troubles w/
overlap, try:]
on(press){
//go to this location;
introMusic.stop();
}

Good luck,
El

El
mr_magicman
8/17/2005 12:00:00 AM
Thank you El for answering my question. Right now I have the sound inported and
placed into the timeline. It is about 300k in size but will be cut down to loop
to save even more space. I gather that the action script solution you suggested
is best because it seems like it will keep the file size down as that sound
file is not actually imported and placed into the timeline but resides in the
same folder as everything else and will be called on when needed. Is that true?
If that is true, then maybe I can do all the sound that way. I am new to this
however, I find that by working on a real project (this one being for a friend)
you can learn a lot. It is great that users like yourself are willing to help
us newbies out when we encounter some problems along the way. It is much
appreciated.
Take care...
Louis
AddThis Social Bookmark Button