Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Creating Flash Pop-Up Windows with the attachMovie method
Author: Elizabeth Whalen
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, you’ll 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: 8.48 Votes: 110
Hits: 3981
|
| » Author |
|
Elizabeth Whalen is a technical writer interested in Flash and the Web.
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (8 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|