This content has been marked as final. Show 4 replies
Try using halt() to close down the projector. (Quit() will also work, but it can be annoying during development as it will close down Director).
Instead of using a MIAW, you could use the MUI xtra to display a dialog. You can find a number of ready-made scripts for the MUI xtra at http://nonlinear.openspark.com/tips/xtras/mui/dialogs/.
I took your advice and tried using quit() and halt() however they didn't seem to work. quit appeared to be a valid option as it came up in green, but halt was blue (apologies for the bad description, but i'm new to director, so I'm just describing it).
Unfortunately, both methods came up with the same script error message. This is exactly what happened with close() and forget().
In the behaviour for miaw_quit, I am using the following script attached to a mouse over button:
on mouseUp me
changing close() for all of the possibilities: close, forget, quit, halt. I also change between "educationalCD" and "miaw_quit"
Check the docs for 'quit' and 'halt' - they don't require a window
reference. You could try:
on mouseUp me
Also, if you see an error message it's often useful to post the dialog
text as it usually provides a clue about the problem
Thanks for the help. the quit() did the job perfectly.
You can lock this now if you want to.