all groups > flash actionscript > october 2006 >
You're in the

flash actionscript

group:

escape key / swf menu


escape key / swf menu shutiri
10/5/2006 7:44:54 PM
flash actionscript:
Hi,

I'm creating an enhanced CD and I would like to do 2 things:
1. get rid of the movie menu: I've seen other projector files that don't have
the "file / view / control / help" menu on top

2. I've created a "starter" that opens my swf file with two sets of actions in
it:

***1
this.onLoad = function() {
fscommand("fullscreen", true);
fscommand("allowscale", false);
};

***2
loadMovieNum("fscommand/main.swf",0);
stop();

-------> so now my movie loads the main.swf in full screen and respects the
size os the original. BUT when I click on the escape key, it takes me to the
movie with the menu; HOW DO I attach an action to tell the movie that when the
escape key is pressed, it has to QUIT ?

I've already did a QUIT button.

thank you,
shutiri.


loadMovieNum("fscommand/main.swf",0);
stop();
Re: escape key / swf menu shutiri
10/5/2006 7:56:00 PM
I've seen this on another topic:

fscommand("trapallkeys",true);

I tried it and it worked (for the second question), but still I would prefer
that the escape key would do a QUIT (instead of mothing).

thanks



Re: escape key / swf menu ggshow
10/6/2006 12:00:00 AM
Re: escape key / swf menu coldMiner
10/6/2006 12:00:00 AM
Yea, you can disable the right click menu if you manipulate the exe file.
But I don't know if this is legal, so I will not post the solution.

Is it legal to do this (remove right click menu from flash exe), anyone?
Re: escape key / swf menu shutiri
10/6/2006 12:13:21 AM
anyone, please ?

thanks.
Re: escape key / swf menu ggshow
10/6/2006 3:03:14 AM
try this:

fscommand("fullscreen", true);
fscommand("allowscale", false);
fscommand("trapallkeys", true);
var keyListener_obj:Object = new Object();
keyListener_obj.onKeyDown = function() {
if (Key.getCode() == Key.ESCAPE) {
fscommand("quit", "");
}
};
Key.addListener(keyListener_obj);

Re: escape key / swf menu shutiri
10/6/2006 3:45:18 AM
yes, great ! it worked.

do you know how to remove the top menu on the player ? I have some
applications that open the .exe file in a player which has the window info
(file name and so) and the X to close. under that is the movie, without the
top menu ("file / view / control / help").

I'm affraid this is done with director :o( .... anyway to have this with
flash ?

another one: I'm using "Stage.showMenu = false;" to turn the right-click menu
off, but I still have settings and about. Is there any way to get rid of those
too ?

thanks,
shutiri.

Re: escape key / swf menu AnandMX
10/6/2006 12:37:16 PM
Re: escape key / swf menu shutiri
10/6/2006 5:45:54 PM
thank you ggshow, it worked;

coldminer, it seems legal (according to AnandMX) ;o) can you tell me how to do it ?

thanks.
Re: escape key / swf menu coldMiner
10/7/2006 12:01:20 AM
if you need to disable the right-click menu in a Flash .exe file, use 'Resource
Hacker' (freeware) to open the file.
Select 'Menu', '604', '1033' and replace the function with:
604 MENU
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
{
}

continue to remove the menus you want (languages),
there are quite a few.
AddThis Social Bookmark Button