USERNAME:
PASSWORD:
Save Info!
Logging in…
This topic is 1 page long.
[ Profile | Posts | Contact ]
Posted at: 8/20/08 03:24 PM
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
Posted at: 8/20/08 03:34 PM
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
Posted at: 8/20/08 04:00 PM
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(); }
Posted at: 8/20/08 08:11 PM
well then where do i at least put the code
Posted at: 8/20/08 08:14 PM
Sign-Up: 09/17/04
Posts: 1,517
On your button
on(press) { _root.movieclipinstancename.stop(); }
Sig by ApothicFlash <3
Posted at: 8/20/08 08:18 PM
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
Posted at: 8/20/08 08:21 PM
Something like this
on(press) { for(i in _root){ if(_root[i].instanceof(MovieClip)){ _root[i].stop(); } } }
Posted at: 8/20/08 08:26 PM
never mind i figured it out
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
If you want to win $10,000 just for playing flash games click here!!! My site: www.omglaserspewpew.com
Posted at: 8/20/08 08:28 PM
actually if you could also tell me how toput script in buttons to make it jumpa certain number of frames either forward or backwards
Posted at: 8/20/08 08:38 PM
gotoAndPlay((_currentframe+5))
to go 5 in front
Posted at: 8/20/08 08:49 PM
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)) }
Posted at: 8/20/08 08:53 PM
on (press) { _root.gotoAndPlay((_currentframe+=5)); }
obviously replace + with - to go back 5
Posted at: 8/20/08 08:58 PM
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
Posted at: 8/20/08 09:59 PM
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