Forum Topic: pausing movie clips

(124 views • 14 replies)

This topic is 1 page long.

<< < > >>
None

junipe

Reply To Post Reply & Quote

Posted at: 8/20/08 03:24 PM

junipe LIGHT LEVEL 07

Sign-Up: 10/02/07

Posts: 358

im having a problem with my pause button and basically my pause button is in my V-Cam so it can stay in the corner of the screen and it works in the main time line but any movie clip that is in the main time line still plays.the action script in the pause button is as follows

on (press) {
_root.stop();
}

can i change that so it will also stop movie clips from playing

feel odd... feel very odd

BBS Signature

None

LonLonRanch

Reply To Post Reply & Quote

Posted at: 8/20/08 03:34 PM

LonLonRanch LIGHT LEVEL 17

Sign-Up: 05/22/05

Posts: 320

Yes, but you would have to tell each movieClip individually to stop as well:

_root.otherMovieClip.stop();

_root.stop(); just tells the main timeline to stop, anything that is in its own timeline will keep on playing


None

junipe

Reply To Post Reply & Quote

Posted at: 8/20/08 04:00 PM

junipe LIGHT LEVEL 07

Sign-Up: 10/02/07

Posts: 358

At 8/20/08 03:34 PM, LonLonRanch wrote: Yes, but you would have to tell each movieClip individually to stop as well:

_root.otherMovieClip.stop();

_root.stop(); just tells the main timeline to stop, anything that is in its own timeline will keep on playing

so sould i just delete _root.stop(); or add that to it to make it

on (press) {
_root.stop();
_root.otherMovieClip.stop();
}

feel odd... feel very odd

BBS Signature

None

junipe

Reply To Post Reply & Quote

Posted at: 8/20/08 08:11 PM

junipe LIGHT LEVEL 07

Sign-Up: 10/02/07

Posts: 358

At 8/20/08 03:34 PM, LonLonRanch wrote: Yes, but you would have to tell each movieClip individually to stop as well:

_root.otherMovieClip.stop();

_root.stop(); just tells the main timeline to stop, anything that is in its own timeline will keep on playing

well then where do i at least put the code

feel odd... feel very odd

BBS Signature

None

CaiWengi

Reply To Post Reply & Quote

Posted at: 8/20/08 08:14 PM

CaiWengi EVIL LEVEL 07

Sign-Up: 09/17/04

Posts: 1,517

On your button

on(press) {
_root.movieclipinstancename.stop();
}

Sig by ApothicFlash <3

BBS Signature

None

junipe

Reply To Post Reply & Quote

Posted at: 8/20/08 08:18 PM

junipe LIGHT LEVEL 07

Sign-Up: 10/02/07

Posts: 358

At 8/20/08 08:14 PM, CaiWengi wrote: On your button

on(press) {
_root.movieclipinstancename.stop();
}

but the problem is that only works for one movie clip is there a way i can change it so it can change it so it can stop all movie clips

feel odd... feel very odd

BBS Signature

None

CaiWengi

Reply To Post Reply & Quote

Posted at: 8/20/08 08:21 PM

CaiWengi EVIL LEVEL 07

Sign-Up: 09/17/04

Posts: 1,517

Something like this

on(press) {
 for(i in _root){
  if(_root[i].instanceof(MovieClip)){
     _root[i].stop();
  }
 }
}

Sig by ApothicFlash <3

BBS Signature

None

junipe

Reply To Post Reply & Quote

Posted at: 8/20/08 08:26 PM

junipe LIGHT LEVEL 07

Sign-Up: 10/02/07

Posts: 358

At 8/20/08 08:14 PM, CaiWengi wrote: On your button

on(press) {
_root.movieclipinstancename.stop();
}

never mind i figured it out

feel odd... feel very odd

BBS Signature

None

mooseisloose

Reply To Post Reply & Quote

Posted at: 8/20/08 08:26 PM

mooseisloose FAB LEVEL 34

Sign-Up: 12/06/04

Posts: 2,403

At 8/20/08 08:18 PM, junipe wrote: but the problem is that only works for one movie clip is there a way i can change it so it can change it so it can stop all movie clips

there are ways to do this which use far less code and are just far more professional............ however i am far from pro so this is the n00b way:

on (press) {
_root.stop();
_root.firstmovieclip.stop();
_root.secondmovieclip.stop();
_root.thirdmovieclip.stop();
_root.fourthmovieclip.stop();
}

and so on xD


None

junipe

Reply To Post Reply & Quote

Posted at: 8/20/08 08:28 PM

junipe LIGHT LEVEL 07

Sign-Up: 10/02/07

Posts: 358

actually if you could also tell me how toput script in buttons to make it jumpa certain number of frames either forward or backwards

feel odd... feel very odd

BBS Signature

None

CaiWengi

Reply To Post Reply & Quote

Posted at: 8/20/08 08:38 PM

CaiWengi EVIL LEVEL 07

Sign-Up: 09/17/04

Posts: 1,517

gotoAndPlay((_currentframe+5))

to go 5 in front

Sig by ApothicFlash <3

BBS Signature

None

junipe

Reply To Post Reply & Quote

Posted at: 8/20/08 08:49 PM

junipe LIGHT LEVEL 07

Sign-Up: 10/02/07

Posts: 358

At 8/20/08 08:38 PM, CaiWengi wrote: gotoAndPlay((_currentframe+5))

to go 5 in front

its not working i posted it at this so it would work but twhen i click it nothing happens

on (press) {
_root.gotoAndPlay((_currentframe-5))
}

feel odd... feel very odd

BBS Signature

None

mooseisloose

Reply To Post Reply & Quote

Posted at: 8/20/08 08:53 PM

mooseisloose FAB LEVEL 34

Sign-Up: 12/06/04

Posts: 2,403

on (press) {
_root.gotoAndPlay((_currentframe+=5));
}

obviously replace + with - to go back 5


None

junipe

Reply To Post Reply & Quote

Posted at: 8/20/08 08:58 PM

junipe LIGHT LEVEL 07

Sign-Up: 10/02/07

Posts: 358

At 8/20/08 08:53 PM, mooseisloose wrote: on (press) {
_root.gotoAndPlay((_currentframe+=5));
}

obviously replace + with - to go back 5

its not working when i click it i think all thats happening is its flashing a frame five frams ahead of it and gos back and continues playing

feel odd... feel very odd

BBS Signature

None

mooseisloose

Reply To Post Reply & Quote

Posted at: 8/20/08 09:59 PM

mooseisloose FAB LEVEL 34

Sign-Up: 12/06/04

Posts: 2,403

That shouldn't be happening... if you trust me not to steal your work then you can send the .fla to me via e-mail and I can fix it... if not then try and explain everything, the total number of frames, what frame this button is on, what EXACTLY is happening etc


All times are Eastern Standard Time (GMT -5) | Current Time: 01:23 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!