This content has been marked as final. Show 3 replies
The easiest way (probably) is to use Buddy API (baMsgBox function) which
allows you to present a Yes/No dialog box (and several others as well).
It's still free to use 2 functions, but once you see everything it does,
you'll likely want to buy it.
> I would like to create a quit button in director using lingo, i already know
> how to quit but i would like for director to prompt me with an alert that says
> do i really want to quit. So that when i press yes its quits or if i press no
> it doesn't. I have been trying to find a way to do this on the help section but
> i cannot come up with an answer, any help would be appreciated
> The easiest way (probably) is to use Buddy API (baMsgBox function) which
> allows you to present a Yes/No dialog box (and several others as well).
> It's still free to use 2 functions, but once you see everything it does,
> you'll likely want to buy it.
Of course, you can also just make your own messageBox with buttons that
appears when you want to. Just need a graphic for the backdrop and a couple
buttons, the "No" button scripted to make the messageBox go away and the
"Yes" button with a "halt" command to quit the movie. (I always use "halt"
instead of "quit" - the only difference is that in Authoring Mode, "quit"
will attempt to quit Director, and not just stop playback. In a
Projector/Shockwave, they're identical.) Not as clean as Buddy API, but if
you don't want to use Xtras for some reason (or can't because you're in
Shockwave), or you're already using 2 functions and haven't bought the full
version, there are other ways around it. (I tend to save BuddyAPI for stuff
I can't easily do some other way, even though I do have the full version.)
You perhaps wnat to set the exitLock to TRUE and capture/intercept close
requests with an 'on closeRequest' handler in a #movie script