# Quit confirmation msg box

**URL:** <https://forum.kirupa.com/t/quit-confirmation-msg-box/26090>\
**Category:** Uncategorized\
**Created:** [July 19, 2003, 8:57am UTC](https://forum.kirupa.com/t/quit-confirmation-msg-box/26090 "2003-07-19T08:57:28Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![nasih](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@nasih](https://forum.kirupa.com/u/nasih)\
**Post date:** [July 19, 2003, 8:57am UTC](https://forum.kirupa.com/t/quit-confirmation-msg-box/26090/1 "2003-07-19T08:57:28Z")

</div>

Hi ,  
Thanks for your time.

I am creating a CD presentation. and got stuck on one error.

Problem :

when user clicking on “Close Presentation” button , this script works :

on (release){  
\_root.createEmptyMovieClip(“MCclose”, 4);  
\_root.MCclose.loadMovie(“MCclose.swf”);  
\_root.MCclose.\_x = 0;  
\_root.MCclose.\_y = 0;

}

and it loads a “MCclose.swf” asking that “Are you sure to Quit ?”. Upto this part its working fine.

## And in this clip, there is two button, one for QUIT and the other for CANCEL.

The script used for Quit button is :

## on (release) { fscommand(“quit”); }

The script used for CANCEL button is :

on (release) {  
MCclose.removeMovieClip();  
}

* * *

But its not working…Please help me

xpecting help,  
Nasih

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 19, 2003, 8:59am UTC](https://forum.kirupa.com/t/quit-confirmation-msg-box/26090/2 "2003-07-19T08:59:52Z")

</div>

Which part is not working, the fscommand or removeMovieClip (or neither of both?)? :-\

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 19, 2003, 9:14am UTC](https://forum.kirupa.com/t/quit-confirmation-msg-box/26090/3 "2003-07-19T09:14:47Z")

</div>

thanks,

Both buttons are not working…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 19, 2003, 9:19am UTC](https://forum.kirupa.com/t/quit-confirmation-msg-box/26090/4 "2003-07-19T09:19:36Z")

</div>

1. Did you test the movie as a Projector? I think it won’t work in SWF format.

2. Probably it’s an addressing issue, try adding \_root before the instance name:  
[AS]\_root.MCclose.removeMovieClip();[/AS]  
**EDIT.** Forget about suggestion 1, it does work. 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 19, 2003, 9:58am UTC](https://forum.kirupa.com/t/quit-confirmation-msg-box/26090/5 "2003-07-19T09:58:41Z")

</div>

Yeah…I treid with making Projector also…but still not

Here I am attaching a .zip file , the Fla files.

Please check .

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 19, 2003, 10:04am UTC](https://forum.kirupa.com/t/quit-confirmation-msg-box/26090/6 "2003-07-19T10:04:16Z")

</div>

There are no files in the ZIP… ? :sleep:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 19, 2003, 10:44am UTC](https://forum.kirupa.com/t/quit-confirmation-msg-box/26090/7 "2003-07-19T10:44:26Z")

</div>

Sorry kode…  
Acutually my file size was over than alowed,  
now I made it smaller.

please look

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 19, 2003, 11:26am UTC](https://forum.kirupa.com/t/quit-confirmation-msg-box/26090/8 "2003-07-19T11:26:56Z")

</div>

WOW!! You had a lot of Buttons in there. 😛

I removed them (I didn’t remove them from the Library though), it works now. 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 19, 2003, 12:27pm UTC](https://forum.kirupa.com/t/quit-confirmation-msg-box/26090/9 "2003-07-19T12:27:37Z")

</div>

Hi kode,

Thanks a lot… thanks  
especially for your fast response.

my project was going smoothly…but got stuck on the last moment for this closing part.

now i can go ahead and complete…

cheers  
Nasih

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 19, 2003, 12:31pm UTC](https://forum.kirupa.com/t/quit-confirmation-msg-box/26090/10 "2003-07-19T12:31:40Z")

</div>

No problem, Nasih. =)

Glad I could help! :beam:
