#1  
Old 11-28-2006, 08:58 PM
Photics's Avatar
Photics Photics is offline
Webmaster
 
Join Date: May 2005
Location: Staten Island, NY
Posts: 3,222
Blog Entries: 63
Photics is on a distinguished road
Default Disabiling the Right-Click Menu for Flash Games

Flash is a very powerful tool for making video games. Yet, as with other games, there will be players who will try to cheat. That's why it's a smart decision to disable the right click menu in Flash. To do that, simply add the follow line of code in the first frame of your movie.

Code:
Stage.showMenu = False;
That's all there is to it. Simply export your Flash project to .swf, load it up, then right click the screen. A menu should still appear, but the Zoom, Play, Forward and many other commands will be disabled. This prevents players from skipping certain parts of your game. It also prevents the players from causing weird errors to happen, as rewinding and playing a Flash Game can have undesired results.

Players might be able to compromise your game, if they are allowed menu control.

You can visit the Adobe / Macromedia ActionScript Dictionary for details on the Stage.showMenu command.
__________________
Michael Garofalo
Webmaster - http://photics.com
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wii Menu Version 3.3 Photics Wii 1 06-18-2008 09:55 PM
Photics Arcade: Guild Wars Flash Games Reset Photics Guild Wars 2 03-22-2007 10:36 PM
Let's Make A Flash Game! Photics Animation and Game Development 11 02-01-2007 10:28 AM
The Idea: Photics.com Flash Arcade Photics Animation and Game Development 0 11-14-2006 10:57 PM
The Open Source Alternative to Flash Nemisari Animation and Game Development 3 11-05-2006 10:18 PM


Portions of this website are part of the Guild Wars Fansite Program. Guild Wars is a trademark of NCsoft Corporation. All rights reserved. Arena.net, ArenaNet and the ArenaNet logo are trademarks or registered trademarks of NCsoft Corporation in the U.S. and/or other countries. The Photics.com webserver is powered by HostRocket.
All times are GMT -4. The time now is 03:48 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.