-
How to make movie stop and wait for key/click
Hello! How can I make a movie stop an a certain image and only continiue if the user clicks the movie or pushes a key?
-
Senior Member
In the frame you want the movie to stop on add a movie clip, on this movie clip attach the actions
onClipEvent(load) {
_parent.stop();
}
onClipEvent(mouseDown) {
_parent.play(); // play if the mouse is clicked
}
onClipEvent(keyDown) {
_parent.play(); // or if a key is pressed
}
-
Hi catbert303,
thanx this works. I got antoher question: I have several places where I need the movie to stop and play again like this. Do I have to write this code for every instance of my invisible movie-clip or is there a better way?
-
Senior Member
Once you write the code once, if you copy and paste the movie clips to the other frames you want to pause, the code will stay attached to them. So you only need to type it once
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|