View Full Version : Disable Right-Click ?
bobohob
03-16-2005, 05:04 AM
How to disable right-click at SWF ? or at least only the "About Macromedia...." still persist ?
P.S : without Jugglor.
Thank you very much.
CyanBlue
03-16-2005, 05:32 AM
You cannot unless you have your own Flash Player not the one from the Macromedia...
Flash Gordon
03-16-2005, 05:45 AM
Cyan knows A LOT more than I do but i could swear i read something about that in my Flash MX 2004 book. I'll let you know if i actually do find it. It may have something to do with setting up a listner for a RIGHT KEY click.
bobohob
03-16-2005, 05:55 AM
Is there any Flash Player that is not from Macromedia (equal to version 7.0) ?
FYI, my final product will be in CD media instead of WEB.
Is there any Flash Player that is not from Macromedia (equal to version 7.0) ?
There is not any Flash player that is not from Macromedia.
merlinvicki
03-16-2005, 07:30 AM
Is there any Flash Player that is not from Macromedia (equal to version 7.0) ?
FYI, my final product will be in CD media instead of WEB.
Since u want the final product viewed on a projector. you can use a small software called exescope to customise right click functions(including removing about macromedia-- blah, blah..).
Find it on the net its only about 2ookb or something. If u cant find it , let me know. I will send it.
bye
:)
bobohob
03-16-2005, 11:12 AM
I've downloaded it from http://hp.vector.co.jp/authors/VA003525/emysoft.htm#6
Version : 6.41. It's a shareware. I'll see if it really works for me.
Thank you very much.
hangalot
03-16-2005, 11:20 AM
actually there are players not done by macromedia (check sourceforge) but that current version is 6
saumya
03-16-2005, 11:49 AM
you can do this with new ContextMenu class which is new to flash mx 2004.but you can not disable seetings and about macromedia player.
just type in this in the first frame of the first scene and before anyother thing
//Hiding Builtin ContextMenus
var myMenu:ContextMenu = new ContextMenu();
myMenu.hideBuiltInItems();
this.menu = myMenu;
hope that works
saumya
bobohob
03-17-2005, 05:37 AM
I've seen the top navigation bar at www.macromedia.com, the right-click menu is only the "About macromedia...".
Is there anybody know how does it done ?
simonboris
03-17-2005, 05:47 AM
Can you assign your own movieclip as your contect menu, like an empty mc ?
merlinvicki
03-17-2005, 05:56 AM
hi,
you cannot add your own movieclip in flash on rt click, however u can
do a lot of stuffs in the context menu in fl player 7.
I have added a link in my right click on my website at: www.merlinvicki.com.
There are some bugs like it wont show up unless u right click on an editable text area...
But eventually I think I will solve that.
simonboris
03-17-2005, 05:58 AM
Yes but if you can assign your own mc as the contextmenu and that mc is empty then you just disable the right click...
merlinvicki
03-17-2005, 06:00 AM
even if you hide the built in items the "about macromedia stays" and so the provision has not been provided
simonboris
03-17-2005, 06:01 AM
is it possible ?
merlinvicki
03-17-2005, 06:07 AM
disabling right-click in not possible
You can only play around with the menu to get ur own desired menus.
mmm..pi..3.14..
03-17-2005, 06:13 AM
try this...It's not perfect, but might give you a start.
It's modified from the book: Flash MX 2004 Actionscript - Training from the source, by Derek Franklin and Jobe Makar. Lesson 21 if you go to a library and check it out :)
var myContextMenu:ContextMenu = new ContextMenu(Handler);
function Handler() {
trace("You right clicked");
}
function SelectedItem() {
trace("You selected something...I don't know what, but you do");
}
myContextMenu.hideBuiltInItems();
for (i=1; i<=6; i++) {
myContextMenu.customItems.push(new ContextMenuItem("Item "+i, SelectedItem));
}
this.menu = myContextMenu; //set the custom menu to open up on a certain mc, in this case it will display whenever the stage is right clicked
Eric :)
Flash Gordon
03-17-2005, 05:35 PM
that's what i was looking for. Thanks pi.
BTW, you can quasi disable it using javaScript (in html don't know about flash) by having an alert box jump up when right mouse is clicked
mmm..pi..3.14..
03-17-2005, 07:12 PM
your welcome :)
also, you don't need to have an alert box pop-up when someone right-clicks the page. I've seen a few web pages that just don't allow right-click, so when you do right-click the page, nothing happens. That could also be an option ;)
Eric
i have this link
BUT coudn't get it to work !?
http://flashmove.com/forum/archive/index.php/t-17441
if somebody wana try it and get it to work let me know
vijkomara
04-21-2005, 12:15 PM
you can do this with new ContextMenu class which is new to flash mx 2004.but you can not disable seetings and about macromedia player.
just type in this in the first frame of the first scene and before anyother thing
//Hiding Builtin ContextMenus
var myMenu:ContextMenu = new ContextMenu();
myMenu.hideBuiltInItems();
this.menu = myMenu;
hope that works
saumya
Saumya...for disabling right click..
stage.showmenu = false..also will do. I did so
vijay komraagiri (vijkomaragiri)
Jozzle
04-21-2005, 03:47 PM
@ Xeef
That script only works in HTML, not when rightclicking over a flash object. I've got a simular script working that way.
Jozzle
Chewie
10-06-2005, 10:56 PM
Can you change the text on the main window, where it says macromedia flash player 7. I know you can using mdm zinc, but can you change it within flash mx2004
CyanBlue
10-07-2005, 01:34 AM
That's an easy one to answer... No, you cannot do that in Flash, Chewie...
Chewie
10-07-2005, 09:35 AM
Thanks CyanBlue
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.