Be a Supporter!

I Have Another Problem With As 2.0

  • 300 Views
  • 9 Replies
New Topic Respond to this Topic
physicpebble
physicpebble
  • Member since: May. 14, 2007
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
I Have Another Problem With As 2.0 2010-05-15 14:21:34 Reply

I 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

physicpebble
physicpebble
  • Member since: May. 14, 2007
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to I Have Another Problem With As 2.0 2010-05-15 14:29:57 Reply

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

Bum-Secks
Bum-Secks
  • Member since: Oct. 12, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to I Have Another Problem With As 2.0 2010-05-15 14:54:29 Reply

can't you just put this in on your subtitles movieclip?

onClipEvent(enterFrame){
if (your show button is pressed)){
this.stop();
}
}
physicpebble
physicpebble
  • Member since: May. 14, 2007
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to I Have Another Problem With As 2.0 2010-05-15 15:30:29 Reply

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

Bum-Secks
Bum-Secks
  • Member since: Oct. 12, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to I Have Another Problem With As 2.0 2010-05-15 15:48:28 Reply

At 5/15/10 03:30 PM, physicpebble wrote:

actually, you can just add this to your button lol

on(press){
	_root.subtitles.stop();
}
Bum-Secks
Bum-Secks
  • Member since: Oct. 12, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to I Have Another Problem With As 2.0 2010-05-15 15:57:13 Reply

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;
physicpebble
physicpebble
  • Member since: May. 14, 2007
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to I Have Another Problem With As 2.0 2010-05-15 16:16:34 Reply

Thanks for all the help!


Hello there

physicpebble
physicpebble
  • Member since: May. 14, 2007
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to I Have Another Problem With As 2.0 2010-05-15 16:30:56 Reply

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

Bum-Secks
Bum-Secks
  • Member since: Oct. 12, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to I Have Another Problem With As 2.0 2010-05-15 17:03:05 Reply

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

physicpebble
physicpebble
  • Member since: May. 14, 2007
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to I Have Another Problem With As 2.0 2010-05-15 17:18:52 Reply

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