HVH Forums

Havaha Forums

You are not logged in.

#1 2008-02-05 11:35:53

super gerbil
Super Mod Gerbil Guy
From: (Not always)Great Britain
Registered: 2007-12-03
Posts: 237

Right clicking in flash?

ive always wondered how you edit the options from when you right click in flash as normally some of them can mess up your game or movie(rewind and forward)
im not sure whether this came under coding or flash so move if you want


http://newsimg.ngfiles.com/29000/29281_gerbil_grounds_final.jpg

Offline

 

#2 2008-02-05 11:46:05

BasV
Actionscript Guru
From: The Netherlands
Registered: 2007-11-27
Posts: 191
Website

Re: Right clicking in flash?

to display as few options as possible, use this:

Code:

var menu:ContextMenu = new ContextMenu();
menu.hideBuiltInItems();
contextMenu = menu;

I always use this too; it hides the mouse again after a right click. (normally, a right click automatically shows the mouse).

Code:

menu.addEventListener(ContextMenuEvent.MENU_SELECT,context);

private function context(e:ContextMenuEvent):void {
            //for the contextmenu; When something is selected, this will make the mouse disappear again
                    Mouse.hide();
}

for other options, and adding custom items, check flash help.

Offline

 

#3 2009-10-18 20:28:34

mdjhomes
Member
Registered: 2009-10-06
Posts: 28

Re: Right clicking in flash?

Thanks for this site very helpful.


Have you ever bought a runescape accounts with all the skills more than fifty?That sounds impossible but it is true.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson