Search tutorials
3: Add a button to your movie clip to close the pop-up window
The next step is to add a close button to your pop-up window. To do this, youll add a little more script to your movie clip.
- Open your movie clip for the pop-up window.
- Create or add a close button.
- Add the following script to your close button:
on (press) {
this.removeMovieclip("window");
}
The above script removes the "window" instance of your movie clip off the stage once the close button is pressed.
Enjoy your pop-up windows!
| » Level Intermediate |
|
Added: 2003-03-01 Rating: 7.97 Votes: 118 |
| » Author |
| Elizabeth Whalen is a technical writer interested in Flash and the Web. |
| » Download |
| Download the files used in this tutorial. |
| Download (8 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!