set the exitLock = true
will disable automatic quitting with command-Q or command-. on the Mac. In
Windows it prevents quitting with ctrl-Q, but not quitting with Esc;
nor
will it disable process-switching via Alt-Tab, making it a pretty useless
feature on the PC (how many Windows users are gonna reach for ctrl-Q to quit
in the first place?).
By convention, disabling of command-Q should generally be restricted to kiosks and similar applications where you want to prevent the public from getting at the host machine. For consumer products, preventing people from quitting by the standard means tends to only piss them off.
The exitlock does provide a useful way of trapping direct quitting if you
need to do additional cleaning up first, but you should still quit once
that's taken care of (listen to me, I sound like the Apple Thought Police).
To trap for command-Q you can use the exitlock in conjuction with a keyDown
script like this:
The exitlock property has no effect when running in the Director application
itself.
on keyDown
if the key = "Q" and the commandDown then
cleanMeUp
quit
end if
end keyDown
When referring to movies in your Lingo code, if you leave the extension off Director will match the same name against both .DIR and .DXR extensions, so that you don't have to rejig your code to match the new names when you finalize and protect your movies.
ie, if your code says:
then when you protect "diddums" the code will need to be changed to:
set the filename of myWindow = "diddums.dir"
whereas if you just use:
set the filename of myWindow = "diddums.dxr"
then the code will work in both cases. This is true for both Mac and Windows
versions of Director, though on the Mac the extensions are unnecessary.
set the filename of myWindow = "diddums"
Maricopa Center for Learning and Instruction (MCLI)
The Internet Connection at MCLI is
Alan Levine --}
Comments to
levine@maricopa.edu
URL: http://www.mcli.dist.maricopa.edu/director/faq/faq16.html