# Help closing a movieclip

**URL:** https://forum.kirupa.com/t/help-closing-a-movieclip/265866
**Category:** flash
**Created:** [July 13, 2008, 10:43pm UTC](https://forum.kirupa.com/t/help-closing-a-movieclip/265866 "2008-07-13T22:43:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mvadesigns](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mvadesigns](https://forum.kirupa.com/u/mvadesigns)
#### Post date: [July 13, 2008, 10:43pm UTC](https://forum.kirupa.com/t/help-closing-a-movieclip/265866/1 "2008-07-13T22:43:55Z")

</div>

I know that lightbox effects were created if Flash wasn’t present and I’m not attempting to learn how to use lighbox … but I’m trying to create that same feeling of a movie clip when it opens for my online portfolio.

I have a button instance that opens a black screen at 95% opacity covering the entire site and showing one piece of my work. What I need to know how to do is create a code that will close that black screen just by clicking on it and going back to the previous screen.

[www.mvadesigns.com](http://www.mvadesigns.com)

That’s my site and right now all thats there are images that are really only 3x4inches and thats not big enough and I want them to be able to be viewed larger. Hence why I want them to be opened in a lightbox type screen, but I can’t figure out how to return to my previous screen once the lightboxish screen is loaded …

---

<div class="post-metadata">

### Author: ![mvadesigns](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mvadesigns](https://forum.kirupa.com/u/mvadesigns)
#### Post date: [July 13, 2008, 10:47pm UTC](https://forum.kirupa.com/t/help-closing-a-movieclip/265866/2 "2008-07-13T22:47:30Z")

</div>

so that fast I found it out and it was freaking simple and I feel dumb, but anyone else who’s wondering the code is beyond simple and im sure everyone already knows it

just create a button over the image on its hit state and just use

on(release)  
{  
this.unloadMovie();  
}

---

<div class="post-metadata">

### Author: ![gigaboost](https://avatars.discourse-cdn.com/v4/letter/g/58956e/32.png) [@gigaboost](https://forum.kirupa.com/u/gigaboost)
#### Post date: [July 13, 2008, 11:17pm UTC](https://forum.kirupa.com/t/help-closing-a-movieclip/265866/3 "2008-07-13T23:17:02Z")

</div>

There are simpler and more efficient ways to do it. on(release) can be replaced by an onclipevent (or one of those scary AS3 eventlistener thingamabobs)

EDIT: So you don’t have to use an invisible button.
