PDA

View Full Version : Concerning Music and Button Functions -- URGENT


3brand
11-17-2002, 06:45 PM
Ok, sorry, I'm a n3wb and not l33t like some of you...so....

I wish to have buttons make a sound when you click on them like the file name is bass.wav. Its already imported to the library.

Also, I wish to play an mp3 continuously from a different location on the website and also allow the user to mute it and also to be able to switch tracks from lets say songs:

take5.mp3
feeljazz.mp3

How can I do these things?

tedc83
11-17-2002, 09:25 PM
Check out this thread, it should help you out:

http://www.actionscript.org/forums/showthread.php3?s=&threadid=18752

3brand
11-17-2002, 10:31 PM
i dont think that helps...its just the images to an mp3 player...i need to know how to make it do all that (the actionscript and such).

maybe there was action script in there but i'm a newb and i dont know this stuff.

dallas
11-18-2002, 03:49 AM
Create a swf file (music.swf)

frame1 = place a stop action, label "stopMusic"

frame 2 = place a stop action and sound and set to loop 1000 times, label "music1"

frame 3 = place a stop action and another sound and set to loop 1000 times, label "music2"

Go to your main swf file and in frame 5 (whatever), add the following:

loadMovieNum("music.swf", 20);

which loads the "music.swf" into your main movie and places it at level 20....


Now create a Music 1 button and add the following action to it:

_root.Level20.gotoAndStop("music1");

which og cause goes to the swf file on level 20 (music20.swf) and plays what evers on it...

To make the music stop:

_root.Level20.gotoAndStop("stopMusic");


Very basic, but you can go on from there I think...

Dallas

Good luck

3brand
11-18-2002, 04:06 AM
thanks but I already figured out a volumed controlled, start/stop, thing from a tutorial off a website. I just had to do some major guess and check procedures to get it to work right.

Thanks anyway though!

dallas
11-18-2002, 04:11 AM
It's the thrill of finding out yourself isn't it.....

Well, your not so lost anymore.... The new statement you should put under your name should be:

"I am found but no not where to go" hahahahaahahaha

so, I'm in a crazy mood today...

Dallas

3brand
11-18-2002, 06:01 AM
your right about figuring something out on your own :)