CliveCarrington
10-20-2008, 06:28 PM
I have looked for this all over the internet but never found what I was looking for. It seems like no one has encountered this problem, so I assume it's a very simple one and I just missed something.
The problem is, when I run the SWF, even outside Flash, I can still use shortcuts. For example, [Ctrl + Right Arrow] to go to the next frame or [Ctrl + Enter] to play.
I didn't find a way to disable this, not script-wise, not through the Publish Settings menu and not by exporting the movie properly (through the menus).
This is a serious problem for me, since I'm making a game, and I can't possibly afford that players will be able to go through the frames as they like, because it makes a big mess in the script.
If there is no way to disable the keyboard shortcuts, the only way to prevent players from messing up the game is to change the structure of the timeline, and completely re-write almost all of the code.
I must also add:
I know that when you run the SWF in the internet browser the shortcuts I'm talking about are disabled, but that's not a solution. I want the game to be also played offline, on the local machine.
I thought that by disabling the contextMenu default items it might also disable the shortcuts to the actions that these items execute, but I was proved false.
What did I miss?
Thanks very much to anyone who helps!
EDIT: The version of Flash that I am using is CS3, but the version of ActionScript I work with is 2.0.
The problem is, when I run the SWF, even outside Flash, I can still use shortcuts. For example, [Ctrl + Right Arrow] to go to the next frame or [Ctrl + Enter] to play.
I didn't find a way to disable this, not script-wise, not through the Publish Settings menu and not by exporting the movie properly (through the menus).
This is a serious problem for me, since I'm making a game, and I can't possibly afford that players will be able to go through the frames as they like, because it makes a big mess in the script.
If there is no way to disable the keyboard shortcuts, the only way to prevent players from messing up the game is to change the structure of the timeline, and completely re-write almost all of the code.
I must also add:
I know that when you run the SWF in the internet browser the shortcuts I'm talking about are disabled, but that's not a solution. I want the game to be also played offline, on the local machine.
I thought that by disabling the contextMenu default items it might also disable the shortcuts to the actions that these items execute, but I was proved false.
What did I miss?
Thanks very much to anyone who helps!
EDIT: The version of Flash that I am using is CS3, but the version of ActionScript I work with is 2.0.