Tutorials Books Videos Forums

Change the theme! Search!
Rambo ftw!

Customize Theme


Color

Background


Done

Projector Commands

filed under Flash and ActionScript

This is an archived tutorial from the kirupa.com legacy collection. It covers software that may no longer be available, but it is kept online because the ideas still hold up.

Unlike Flash animations, projector files are different in that projector files have a different file extension and they use common Flash commands differently. You can use this little guide to refer to when working with projector files.

Launching Files (exec)

Because projectors are usually placed in a CD-Rom, a common use of projectors is to use them to open files and other data contained in the CD-Rom. While in Flash you would use getURL, you would use the exec command in a projector:

on (release) {
   fscommand ("exec", "file.exe");
}

Full Screen

To make a projector animation display in full screen, you would use the following syntax:

fscommand("fullscreen", "true");

Scaling Movies

When a projector is displayed, the user has full freedom in resizing the projector animation to her/his liking. There are situations where you would not want your users to resize the movie. Problems associated with users resizing movies are: text might become illegible, images might pixelate, and the frame rate might decrease (if the projector window is scaled up).

By default, projector movies allow your users to resize the movie. If you decide to disable the resizing of a projector movie, use the following syntax:

fscommand("allowscale", "false");

Disabling Menu on Right-Click

To disable the Flash menu that appears when you right-click on a projector, use the following syntax:

fscommand("showmenu", "false");

Note: You will still see the About Macromedia Flash Player when you right click on a movie with the fscommand disabled.
 

Closing Projector Movies

Because projector movies run in their own window separate from the Web browser, you can allow your visitors to close the movie. While in Flash you could use JavaScript and a window close statement, you would use the following syntax for enabling your visitors to close the projector movie:

on (release) {
   fscommand("quit");
}

I hope the information helped. If you have any questions or comments, please don't hesitate to post them on the kirupa.com Forums. Just post your question and I, or our friendly forum helpers, will help answer it.

The following is a list of related tutorial and help resources that you may find useful:

How to use the Forums
New, Upcoming, and In-Progress Tutorials
How to Help out kirupa.com
Writing Tutorials
Cheers!
Kirupa Chinnathambi
kirupaBlog

Just a final word before we wrap up. What you've seen here is freshly baked content without added preservatives, artificial intelligence, ads, and algorithm-driven doodads. A huge thank you to all of you who buy kirupa's books, became a paid subscriber, watch the videos, and/or interact on the forums.

Your support keeps this site going! 😇

The KIRUPA Newsletter

Thought provoking content that lives at the intersection of design 🎨, development 🤖, and business 💰 - delivered weekly to over a bazillion subscribers!

SUBSCRIBE NOW

Creating engaging and entertaining content for designers and developers since 1998.

Follow:

Popular

Loose Ends

:: Copyright KIRUPA 2026 //--