Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Best way to stop every frame in an MC?...

Status
Not open for further replies.

WhiteTiger

Programmer
Jun 26, 2001
605
US
How can I have a stop in every frame in an MC without having to make key frames all over the place? Regards,
Anth:cool:ny
----------------------------------------
"You say [red]insanity[/red] like it's a BAD THING!"
"Dont yell at me if I'm wrong!...I'm at least trying to help!"
 
I don't think I quite understand what you want to do.

From what I think you mean, you could use the GoToAndStop action when you go to the desired frame inside the movie clip.
 
No, what I'm trying to do, is there are 2 buttons...up and down...as I press them I want them to advance an MC 1 frame forwards or backwards...how could I accomplish this? Regards,
Anth:cool:ny
----------------------------------------
"You say [red]insanity[/red] like it's a BAD THING!"
"Dont yell at me if I'm wrong!...I'm at least trying to help!"
 
Try this code on your buttons...

on(release){
gotoAndStop(_currentframe-1);
}


or

on(release){
gotoAndStop(_currentframe+1);
}


...if it's movieClip specific use...

myClip.gotoAndStop(_currentframe+1);
 
but will the movie stop in the next frame if there is no stop action?

i think your answer is, no there is no easy way..you have to add them all manually..you can't tween a stop action..but you can make a new layer right..goto the last frame of the movie and add your key frame..that will stretch the keyframe the entire length of the movie..that way you can add a stop action in each frame without having to add a keyframe plus stop action in each frame..


make sense?
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
gotoAndStop() does stop the playhead... otherwise there would be no need for a gotoAndPlay().
 
indeed..just tried it..works sweet..i'll sit over here and be quite now..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Thanks wangbar, next is the continuous feedback buttons and I'll be all set...I'm not ready to get into the scrollbar complications just yet...a up and down button should do me fine...=)

And thank you virt for being polite this time...

And ORLANDO media solutions...as in Florida? Regards,
Anth:cool:ny
----------------------------------------
"You say [red]insanity[/red] like it's a BAD THING!"
"Dont yell at me if I'm wrong!...I'm at least trying to help!"
 
orlando florida yes..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top