Director FAQ || Notes ~ Short Index ~ Full Index ~ Search || Prev ~ Next ||

[16] Projectors


Director FAQ [16] Projectors

[16.1] What works in a Director movie but not in a projector?

[top]


Director FAQ [16] Projectors

[16.2] What works in a projector but not in a Director movie?

[top]


Director FAQ [16] Projectors

[16.3] Is there any way around these limits?

[top]


Director FAQ [16] Projectors

[16.4] Can I stop people quitting my projector using command-Q or ALT-F4?

Yes. The following line of code
    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:

    on keyDown
      if the key = "Q" and the commandDown then
        cleanMeUp
        quit
      end if
    end keyDown
The exitlock property has no effect when running in the Director application itself.

[top]


Director FAQ [16] Projectors

[16.5] How can I change the stage size between movies in my projector?

[top]


Director FAQ [16] Projectors

[16.6] Is it a bad idea to use a really big projector?

[top]


Director FAQ [16] Projectors

[16.7] Can I keep movies externally and still protect them?

Certainly. To protect movies, use the File | Update Movies menu command and check the Protect Movies checkbox. Protected movie files are crossplatform just like unprotected movies, but protected Director movies on Windows should have a .DXR extension rather than a .DIR extension.

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:

     set the filename of myWindow = "diddums.dir"
then when you protect "diddums" the code will need to be changed to:
     set the filename of myWindow = "diddums.dxr"
whereas if you just use:
     set the filename of myWindow = "diddums"
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.

[top]


Director FAQ [16] Projectors

[16.8] If I play an external movie, how do I go back to the projector?

[top]


Director Web: Director FAQ: [16] Projectors

Maricopa Center for Learning and Instruction (MCLI)
Maricopa County Community College District
HTML by Paul Farry, p.farry@cqu.edu.au

The Internet Connection at MCLI is Alan Levine --}
Comments to levine@maricopa.edu

URL: http://www.mcli.dist.maricopa.edu/director/faq/faq16.html