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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stopping a scene

Status
Not open for further replies.

t5amec

Programmer
Aug 14, 2003
112
GB
I am learning Flash from square 1 so please forgive such a newb question.

I want to play a scene that goes:
1
2
STOP
below the stop is a play button when the user clicks the button it says
WEEEEEEE
and below it is a stop button and if a user clicks this button i want it to go back to the stop scene with the play button OR when the weeee gets to five frames it goes back to the stop screen...

so how do you stop a scene from when it gets to a frame, set it to the next frame if the button is clicked and then send it back to the stop frame when another button is clicked or reached the end?!

Make Sense? I hope so (-:
 
To stop a movie add:

stop();

to the frame you want to stop on. To have the framehead move to the next scene when a button is pressed add this to your button:

on (release) {
nextFrame ();
}

To have the framehead move to a different frame once it's been reached, add:

gotoAndPlay(2); - or whatever frame you want it to bounce back to.

Adam
 
Just one thing Adam... nextFrame(); is not a play(); action, the playhead moves to the next frame and stops just as with prevFrame(); or nextScene();, etc...

To have the movie play, you would simply use...

on (release) {
play();
}
 
Cheers dudes,

I will work on it tonight (am at work now, boorrring) and I will get back to you with any mis-haps!



Make Sense? I hope so (-:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top