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!

Play to a specified frame?

Status
Not open for further replies.

cire600

Technical User
Sep 25, 2001
2
US
Hello,
Instead of jumping to a specified frame, I'd like to play until that specified frame. Is this possible?
Thanks alot
-Eric
 
don't really understand your question..if ya wanted a movie to stop at a certain frame then just put a stop action in the frame that you want it to stop at..if your targeting the clip from something else it would still be the same..all you would do is target the clip with telltarget, the with command, or the _root. syntax..either way once you have targeted your instance and begun to play it all you would have to do is place a stop action in the frame where ya want it to stop..


unless i am misunderstanding!
e.gif


carlsatterwhite@endangeredgraphics.com
 
Guess you could allways use something like:

if (_root._currentFrame < 15) {
play();
}

...But as Carl said, if you don't have a stop action, the movie won't stop, it'll just keep on playing past frame 15!

This might be used in a case like this:
On first keyframe...

if (_root._currentFrame<20) {
_root._visible = false;
}
On key frame 20...

if (_root._currentFrame>19) {
_root._visible = true;
}

This way the movie will start not visible, and become visible on frame 20. But what's the point you don't need the conditional statement to achieve this!
You could control other mcs in the same manner with:

_root.mymovieclip._visible = true;
mywink.gif
ldnewbie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top