K, patriot and I are trying to put together the menu for the SSBB collab and our AS knowledge is very limited. We've been trying to finish this whole thing since... april I think and it's time we finish this thing once and for all so I need your help guys, really really bad.
What I want to know is:
1. Is there a way to stop a specific sound? Not stopallsounds() but a certain .mp3 file.
2. The collab has 3 parts (sad), a button for each part of the collab and a play all button, is there a way I can apply a command where the 3 parts play completely: one after another when I use the play all button but when I use the button for a certain part of the collab it goes back to the menu when that specific part ends?
I hope i'm making myself clear, my head fucking hurts. Please guys, HEEEEEEEEELP!
1. Depends on what is playing it (event, stream, sound object). If its event there is not way to stop it (other than stopAllSounds()). If it is streaming then just go to a frame without music. I doubt you are using sound objects.
2. A variable that changes depending on which button you pressed. Then depending on what the variable is, that will define what happens next. You would need to add code at the end of each part to check the value of the variable and perform the desired action.
Can't go into detail at the moment, but you can catch me on AIM tomorrow if you need more help.
Oh Roman, thanks a lot! I'll catch you on AIM tomarrow :).
for the variable, wouldn't the button have to be
on(Release){
gotoAndPlay();
var num=x;
}
and then at the end of each part have a piece of code that either continues to the next one or goes to the menu depending on the value of num, right?
Quote from: ScrewdriverClock;1342650for the variable, wouldn't the button have to be
on(Release){
gotoAndPlay();
var num=x;
}
and then at the end of each part have a piece of code that either continues to the next one or goes to the menu depending on the value of num, right?
Basically
on(release){
gotoAndPlay(frameNumber);
var=value;
}
if(var==value){
gotoAndPlay(frameNumber);
var=value;
}
Quote from: RomanClock;1342657Basically
on(release){
gotoAndPlay(frameNumber);
var=value;
}
if(var==value){
gotoAndPlay(frameNumber);
var=value;
}
Good, good, I remember a bit from that book i bought.
I don't know what variables I should use... But I kinda get the idea.
The variable name can be any thing as long as it starts with a letter and contains only alphanumeric characters.
You should only need 3 values:
0 for nothing
1 to play only that selection then return to the menu
2 to play all of them, and on the last frame return to the menu
I always did the easy solution when I wanted to stop specific loops from playing: Stream the whole thing in a graphic-less movieclip, then use actionscript to stop the movieclip.
Quote from: ArgoonKlok;1342788I always did the easy solution when I wanted to stop specific loops from playing: Stream the whole thing in a graphic-less movieclip, then use actionscript to stop the movieclip.
Yes I tried that, I have problems streaming the sound of the menu, it only plays as an event :confused: