Quit confirmation msg box

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

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

thanks,

Both buttons are not working…

  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. :stuck_out_tongue:

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

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

Please check .

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

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

please look

WOW!! You had a lot of Buttons in there. :stuck_out_tongue:

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

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

No problem, Nasih. =)

Glad I could help! :beam: