Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.18 / 5.00 3,534 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.80 / 5.00 4,200 ViewsI made a thread earlier about how to make subtitles. Basically, what I did was I made a button that when click hide all of anything associated to do with subtitles.
I still have one problem though that I've had since the beginning. When I click the "play" or "stop" button when the movie is playing, it stops the movie but not the movieclip of subtitles, they keep going.
I think I nee some action-script that will also stop the subtitles movieclip.
Thanks in advance.
Hello there
Here is an example of what I'm talking about.
Try to push "play" or "stop". Also, I'm changing the "Menu" button to "show"...
I hope this gives you a better idea of what I'm talking about
Hello there
can't you just put this in on your subtitles movieclip?
onClipEvent(enterFrame){
if (your show button is pressed)){
this.stop();
}
} At 5/15/10 02:54 PM, Bum-Secks wrote: can't you just put this in on your subtitles movieclip?
I'm terrible with AS, so I wouldn't know. This is what I have so far...
>onClipEvent(enterFrame){
if (_root.bttnstop._What goes here?){
this.stop();
}
}
Also wouldn't that mean that whenever the stop button is pushed it would stop it. What would I put for the coding for the play button-and for that matter, where would I place it?
Thanks for the help so far.
Hello there
At 5/15/10 03:30 PM, physicpebble wrote:
actually, you can just add this to your button lol
on(press){
_root.subtitles.stop();
} At 5/15/10 03:30 PM, physicpebble wrote:
Also wouldn't that mean that whenever the stop button is pushed it would stop it. What would I put for the coding for the play button-and for that matter, where would I place it?
oh woops, i should finish reading peoples posts XD
here's what i would do:
put this in the button
on(press){
if(_root.substop==true){
_root.subtitles.stop();
_root.substop=false;
}
else if(substop==false){
_root.subtitles.play();
_root.substop=true;
}
}
and put this on the main timeline
substop = true; Hello there
Actually one second. If that was the AS for the stop button, what would be the AS for the play?
Sorry if I sound stupid, but I've been trying to find out how to get the play button to work with no luck.
Thanks for the help so far, though.
Hello there
At 5/15/10 04:30 PM, physicpebble wrote: Actually one second. If that was the AS for the stop button, what would be the AS for the play?
Sorry if I sound stupid, but I've been trying to find out how to get the play button to work with no luck.
Thanks for the help so far, though.
ah that script is for pausing/ playing with a single button.
pause button:
on(press){
_root.subtitles.stop();
}
play button:
on(press){
_root.subtitles.play();
}
and you won't be needing that substop=true; on the main timeline anymore
Thanks. My problem was that I also needed the button(s) to stop the over all movie too.
Here is what I have now, it's fixed.
STOP
on(press){
_root.Subtitles.stop();
stop();
}
PLAY
on(press){
_root.Subtitles.play();
play();
}
Thanks though, I'll be sure to credit you for your help.
Hello there