00:00
00:00
Newgrounds Background Image Theme

Mekatov just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

AS: Swf right-click Menu

15,299 Views | 57 Replies
New Topic Respond to this Topic

Response to AS: Swf right-click Menu 2006-03-22 06:58:23


Very useful thanks :)

Response to AS: Swf right-click Menu 2006-04-13 13:13:04


At 10/29/05 06:06 PM, authorblacks wrote: Thanks so much sir -liam-

I'm confused, it's the second old thread I see him called liam. Changed his sig + sig pic and renamed himself, eh?

I was just wondering if there's a way to completley delete the right click menu. I've managed to delete the play, stop (etc) options + add an action being executed when you right click but the menu still shows with 'settings' and 'show redraw regions'. :(


BBS Signature

Response to AS: Swf right-click Menu 2006-05-05 17:58:12


yay

Response to AS: Swf right-click Menu 2006-06-11 05:50:03


At 7/1/05 10:44 AM, Inglor wrote: very good denvish, just for further reference use Stage.showMenu=false; instead of FScommand, it's newer and "faster"

yeah, in flash 8 i couldn't get the old one to work.

Response to AS: Swf right-click Menu 2006-06-11 06:25:00


At 6/11/06 05:50 AM, doodle_flash wrote:
At 7/1/05 10:44 AM, Inglor wrote: very good denvish, just for further reference use Stage.showMenu=false; instead of FScommand, it's newer and "faster"
yeah, in flash 8 i couldn't get the old one to work.

That's quite a time lapse to agree with someone over O.o

Just a quick point; I find it makes thing look quite a bit neater when coded if you specify all the functions in one block of code, menu items in another, deal with the array in yet another, e.t.c.


BBS Signature

Response to AS: Swf right-click Menu 2006-06-30 16:13:26


i have a question why doesnt it work at al, in flash 8 pro?

Response to AS: Swf right-click Menu 2006-06-30 16:17:41


At 6/30/06 04:13 PM, Allen1288 wrote: i have a question why doesnt it work at al, in flash 8 pro?

You're doing it wrong.

Response to AS: Swf right-click Menu 2006-08-03 20:47:33


omfg denvish copy pasted!
lol we all do somtimes


OS: Ace, coming soon to Newgrounds. Keep an eye out for it.

BBS Signature

Response to AS: Swf right-click Menu 2006-08-03 21:12:09


At 8/3/06 08:47 PM, Elementrat wrote: omfg denvish copy pasted!
lol we all do somtimes

What are you talking about?

Response to AS: Swf right-click Menu 2007-06-12 14:16:42


Looks great. I'll try it out in a bit. Very proffessional; bookmarked!!!


Don't eat yellow snow, Pepsi and coke are the same thing, etc. Visit my webpage! (go on)

Can I eat your brain? pleeeaaase?

You now have a duty in life!!! Clean up Newgrounds!!

BBS Signature

Response to AS: Swf right-click Menu 2007-07-23 09:54:53


WARNING NOOB QUESTION!!!

Does it work with Flash 8? (I don't know if Flash 8 is higher than Flash MX 2004)


BBS Signature

Response to AS: Swf right-click Menu 2007-08-06 15:30:01


Ok. I have this code, and it's working and all, but I want it so that the part that says Copyright (C) Joe Alcorn so that when you click it, it doesn't go anywhere, because at the moment it goes to my website which is on the link before. Here is the code:

var myMenu=new ContextMenu();
myMenu.hideBuiltInItems();
function itemHandler1(obj, item){getURL("http://monkeyboymedia.tk")
;}
item1=new ContextMenuItem("Visit MonkeyBoyMedia!", itemHandler1);
myMenu.customItems.push(item1);
_root.menu=myMenu;
item1=new ContextMenuItem("Copyright © Joe Alcorn 2007", itemHandler1);
myMenu.customItems.push(item1);
_root.menu=myMenu;


BBS Signature

Response to AS: Swf right-click Menu 2007-08-07 10:02:43


At 8/6/07 03:30 PM, Monkey-Boy wrote: Ok. I have this code, and it's working and all, but I want it so that the part that says Copyright (C) Joe Alcorn so that when you click it, it doesn't go anywhere, because at the moment it goes to my website which is on the link before. Here is the code:

var myMenu=new ContextMenu();
myMenu.hideBuiltInItems();
function itemHandler1(obj, item){getURL("http://monkeyboymedia.tk")
;}
item1=new ContextMenuItem("Visit MonkeyBoyMedia!", itemHandler1);
myMenu.customItems.push(item1);
_root.menu=myMenu;
item1=new ContextMenuItem("Copyright © Joe Alcorn 2007", itemHandler1);
myMenu.customItems.push(item1);
_root.menu=myMenu;

Anybody help?

If you want to see the problem look at
this submission. You can see that when you click the copyright part it takes you to my site.

Once again this is my code:

var myMenu=new ContextMenu();
myMenu.hideBuiltInItems();
function itemHandler1(obj, item){getURL("http://monkeyboymedia.tk")
;}
item1=new ContextMenuItem("Visit MonkeyBoyMedia!", itemHandler1);
myMenu.customItems.push(item1);
_root.menu=myMenu;
item1=new ContextMenuItem("Copyright © Joe Alcorn 2007", itemHandler1);
myMenu.customItems.push(item1);
_root.menu=myMenu;


BBS Signature

Response to AS: Swf right-click Menu 2007-08-07 18:33:54


At 8/7/07 10:02 AM, Monkey-Boy wrote: My problem

Somebody must know!


BBS Signature

Response to AS: Swf right-click Menu 2007-08-07 20:06:38


Try this..

var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
function itemHandler1(obj, item) {
getURL("http://monkeyboymedia.tk");
}
item1 = new ContextMenuItem("Visit MonkeyBoyMedia!", itemHandler1);
myMenu.customItems.push(item1);
_root.menu = myMenu;
item1 = new ContextMenuItem("Copyright © Joe Alcorn 2007", itemHandler1);
item1.enabled = false;
myMenu.customItems.push(item1);
_root.menu = myMenu;


Gorilla Studios || A game is like sex, its better when its free

BBS Signature

Response to AS: Swf right-click Menu 2007-08-07 21:38:13


At 8/7/07 08:06 PM, Gorilla-Studios wrote: Try this..

Thanks!

Is there any way to make it so that when a person clicks it, it takes you too a certain frame in that flash?


BBS Signature

Response to AS: Swf right-click Menu 2007-08-08 01:05:03


it is THANK YOU!!!!!!!!!!!!


PM me if you think im cool

5 people think im cool ;_;

BBS Signature

Response to AS: Swf right-click Menu 2007-08-08 10:43:50


At 8/7/07 09:38 PM, Monkey-Boy wrote:
At 8/7/07 08:06 PM, Gorilla-Studios wrote: Try this..
Thanks!

Is there any way to make it so that when a person clicks it, it takes you too a certain frame in that flash?

While its disabled, no.

var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
function itemHandler1(obj, item) {
getURL("http://monkeyboymedia.tk");
}
function itemHandler2(obj, item) {
_root.gotoAndPlay("myFrame");
// change this to whatever
}
item1 = new ContextMenuItem("Visit MonkeyBoyMedia!", itemHandler1);
item2 = new ContextMenuItem("Copyright © Joe Alcorn 2007", itemHandler2);
item2.enabled = false;
myMenu.customItems.push(item1, item2);
_root.menu = myMenu;

You can change the code item2.enabled = false; to item2.enabled = true; and then the function itemHandler2 will work aswell.

Enjoy!


Gorilla Studios || A game is like sex, its better when its free

BBS Signature

Response to AS: Swf right-click Menu 2007-08-08 10:57:27


Thanks. I used this for my website. I edited the code and got this:

var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
function itemHandler2(obj, item) {
_root.gotoAndPlay("affiliates");
// change this to whatever
}
item2 = new ContextMenuItem("Want to affiliate?", itemHandler2);
item2.enabled = true;
myMenu.customItems.push(item1, item2);
_root.menu = myMenu;

Then when it went to that frame, if I right clicked and clicked it again, it would take me to a different frame, so I put the code on the affiliaes frame and edited it to this:

var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
function itemHandler2(obj, item) {
_root.gotoAndPlay("affiliates");
// change this to whatever
}
item2 = new ContextMenuItem("Want to affiliate?", itemHandler2);
item2.enabled = false;
myMenu.customItems.push(item1, item2);
_root.menu = myMenu;

Thanks for this.

I was looking for this yesterday, and the thing I didn't have was _root.


BBS Signature

Response to AS: Swf right-click Menu 2007-08-08 11:20:47


Well there you go, you got help from your fellow monkey friend!


Gorilla Studios || A game is like sex, its better when its free

BBS Signature

Response to AS: Swf right-click Menu 2007-09-30 13:26:21


At 7/23/07 09:54 AM, Pkmn2 wrote: WARNING NOOB QUESTION!!!

Does it work with Flash 8? (I don't know if Flash 8 is higher than Flash MX 2004)

8 is higher but uses the same actionscript.


I can't actually imagine why you're looking down here, but while you are...

MSN: acidsoldier@gmail.com, Steam: boomman123321

BBS Signature

Response to AS: Swf right-click Menu 2007-09-30 13:48:55


At 9/30/07 01:26 PM, AcidSoldier wrote:
At 7/23/07 09:54 AM, Pkmn2 wrote: WARNING NOOB QUESTION!!!

Does it work with Flash 8? (I don't know if Flash 8 is higher than Flash MX 2004)
8 is higher but uses the same actionscript.

Im sure he still cares.


=3

Response to AS: Swf right-click Menu 2007-10-30 09:25:07


At 9/30/07 01:26 PM, AcidSoldier wrote:
At 7/23/07 09:54 AM, Pkmn2 wrote: WARNING NOOB QUESTION!!!

Does it work with Flash 8? (I don't know if Flash 8 is higher than Flash MX 2004)
8 is higher but uses the same actionscript.

I'm using Flash 8 and it doesn't work for me. O_O

Response to AS: Swf right-click Menu 2008-02-01 12:52:44


so how do you completely hide the right click menu, ya know for mose avoiders n that stuff?

Response to AS: Swf right-click Menu 2008-02-19 20:50:06


At 2/1/08 12:52 PM, PurpleFace wrote: so how do you completely hide the right click menu, ya know for mose avoiders n that stuff?

Stage.showmenu = False();

Btw, How do you add the Zoom Command to the custom menu?
It's been bothering me....


French tanks have six gears, 5 reverse, and one forward in case they are ever attacked from behind

BBS Signature

Response to AS: Swf right-click Menu 2008-05-03 20:55:43


thanks man, very helpful

Response to AS: Swf right-click Menu 2008-05-03 21:21:17


What's with all the old topics being bumped these days !

Response to AS: Swf right-click Menu 2008-08-07 17:10:43


very useful.. tx!