flash button for right click
- Started
- Last post
- 7 Responses
- wwfc
...does anyone know if it is possible to open the context menu from a button in flash as opposed to using the right click / ctrl click method?
I tried this:
this.onRelease=function(){
fscommand("showmenu");
}
and
this.onRelease=function(){
fscommand("showmenu", "true");
}but neither seem to work.
Anyone done this before? Is this even possible? How do I do it?
- harmsie0
Not quite sure I understand what your trying to do? From my expierence though FScommand was mainly used for Projectors and is a little ropy in browsers.
- WeLoveNoise0
u mean have a menu on right click ? like windows ?
- wwfc0
...thanks for the reply -
I need to put some script into a mc button that opens the context menu either on rollover, press or release
By context menu I mean the menu that comes up from a rightclick
- wwfc0
"u mean have a menu on right click ? like windows ?"
...sort of - ideally if the mouse rolls over the button, the context/right click menu opens...
is that possible?
- u get itWeLoveNoise
- ...not able to get into that email addy :(wwfc
- prick
well how am i suppose to know ur email thenWeLoveNoise
- harmsie0
The right click browser menu?
- Mishga0
Ok, i was skeptical about the right click be able to interact with a movieclip, after a research, i found this:
my_mc._alpha = 0;
var rootMenu = new ContextMenu();
rootMenu.hideBuiltInItems();
_root.menu = rootMenu;
_root.onEnterFrame = function() {
if (Key.isDown(2)) {
trace("Right Mouse button has been hit");
my_mc._alpha = 100;
}
};Works for me...Now, you need to find a way to disable the native flash context menu, which i think it's not feasible..
via http://flashmove.com/forum/archiā¦- check the link and try the javascript method displayed by FrozenMedia
Mishga
- check the link and try the javascript method displayed by FrozenMedia
- wwfc0
...aaah! sorry folks I think I have explained this a bit back to front.
I have a custom context menu - which is created with this as:
http://pastebin.com/m1ae0210fthere are two functions to be found in the context menu - the first is the admin login - this is fine as it is.
But the second is to edit a selected object in the swf - the refs to it are "properties_item" and also "Element Properties" - but I don't know how I can adapt that script to being usable from a button?
So, in a back to front idea - I thought maybe I could have a button to open the context menu.