i have explained everything diacritically in this fla movie. Please help.
Click here to Download Fla
dude… this is the txt in the fla
“Everything is working fine here, but when click the off button
i dont want this button to start the sound. but when i click
this button i want this button to start the sound.”
The off button doesnt start any sounds it stops the sound! It’s not very clear what your question is.
Well,
the on and off button are working fine.
but i do have 4 four button the stage, among them one of the button is stop button ( which stop the sound) and rest is start button ( which ever button you click it will start the sound) Till here everything is working fine.
but from the on off button which is location on the top of the screen , if i click the off button and
then if i click one of the three start button ( which on the stage) ,i dont want the sound to start.
I hope i am clear enough.
errm simple solution is when you click the off button is to disable the 3 start buttons and when you click on you enable them again.
you give the 3 start buttons instance names and this code goes into the mcSound off button
on (release) {
_root.start1.enabled = false;
_root.start2.enabled = false;
_root.start3.enabled = false;
gotoAndStop(2);
}
in the on button you set the same code lines but then with true…
Now you cannot start the sound before you press the on button
i dont think you are getting what i am trying to say… any way thanks dude for your instant reply.
i dont want the three start button to disable but once i click the off button , i dont want the three start buttons to start the sound all over again. but i want the three buttons to be active.
Some one clould help me with an statement?
something like… if the bgsound is off then start the sound bgSound. and if it on the dont start all over again.( thats anoying , it keeps on repeating) .
Ok, start again and put each sound into it’s on movie clip and give instance names ie; sound1_MC etc etc. Then add this code to your buttons eg:button1:
on (release) {
sound1_MC.play();
sound2_MC.stop();
sound3_MC.stop();
}
button2:
on (release) {
sound1_MC.stop();
sound2_MC.play();
sound3_MC.stop();
}
button3:
on (release) {
sound1_MC.stop();
sound2_MC.stop();
sound3_MC.play();
}
This way the sound won’t start from the beginning but just be paused at a frame in the individual movie clip and will play from where it was stopped when re-activated. The way that you’ve got it set up at the moment (jumping between frames) will start the sound from the beginning. There’s no need to do that. Hope this helps.
Just to clarify a couple of other points for this to work - there’ll need to be an empty keyframe on frame 1 of each sounds clip with stop(); on it and the sound starts on frame 2. You’ll need to change the sync option to stream instead of event for each sound in it’s individual movie clip, and also add a keyframe for the end of each sound ie; so there are enough frames to cover the length of the sound.
Yes that will be helping me in not repeating the sound but here the situation little difference its fully expained in this file, please download and help me to solve the problem. Download
It seems as though you are making the function of this “player” more complicated than it needs to be - but to help with the other part of your problem just read back to the post from Pascal on enabling and disabling the buttons. And as far as I can see - along with what I’ve already posted, that’s all your points covered and dealt with.
thank you all , and sorry for the trouble.