Projector
Commands
 
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
 



SUPPORTERS:

kirupa.com's fast and reliable hosting provided by Media Temple.