A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: Right click menu disable

  1. #1
    Member
    Join Date
    Jan 2002
    Posts
    46

    Right click menu disable

    Hi guyz,

    How do I disable the right click menu of flash file completely? FS Command does everything except, "About Macromedia Flash Player..."

    I don't want even that. Completely nothing. How do I achieve it? Kindly revert back as soon as possible. However I use Flash MX, will the solution be compatible to Flash ver 5 too?

    With warm regards,

    Parag
    Keep on flashing guys

  2. #2
    Master of disaster jugomkd75's Avatar
    Join Date
    Feb 2004
    Location
    I'm here, why? You don't see me yet?
    Posts
    333
    this could resolve your issue, but in Interenet browser not in Flash, but anyway i guess you will use your movie for internet so take a look at and ask if you need more help.

    Note; you could remove alert window as well, just remove aler("text") from function
    Attached Files Attached Files

    there is no handcraft without tool!
    www.jugoars.com

  3. #3
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    That disables the right-click on the rest of the html, but not on the Flash movie itself.

  4. #4
    Master of disaster jugomkd75's Avatar
    Join Date
    Feb 2004
    Location
    I'm here, why? You don't see me yet?
    Posts
    333

    re

    YEP, i must say that oldnewbie is right as many times before, but i think that for flashMovie there is no way that will disable right-click, except if you scrap or break Manual-Physical user's mouse right button, hehehehe

    there is no handcraft without tool!
    www.jugoars.com

  5. #5
    Member
    Join Date
    Jan 2002
    Posts
    46
    Hi,

    Well it won't solve the problem as I have to put my swf in a visual basic movie where it always shows atleast "About...".

    Anyways, please get back or I will if solution is found in a near future.

    Thanx however for the reply.

    Regards,

    Parag Shah
    Keep on flashing guys

  6. #6
    Registered User Bzdero's Avatar
    Join Date
    Feb 2001
    Location
    Split, Croatia
    Posts
    488
    I am sure that it won't be hard in Visual basic to remove "about". I have done it in Delphi (wich I higly recomend) by using application events component.
    Is there similar component in VB?

  7. #7
    FK Slacker
    Join Date
    Jun 2000
    Location
    vancouver
    Posts
    3,208
    This may not be much help if you're using older versions of Flash, but FWIW, if you use MX2004/Actionscript 2 you can do this:

    var cm=new ContextMenu;
    cm.hideBuiltInItems();
    _root.menu=cm;

    This removes everything but Settings from the context menu...

    K.

  8. #8
    Junior Member
    Join Date
    Jun 2004
    Posts
    5
    Stage.showmenu = false

    put that ^ in the AS of the first frame on your swf to remove the menu

  9. #9
    Member
    Join Date
    Jan 2002
    Posts
    46

    It doesn't work

    Hi,

    None of the methods mentioned by elemental and deadbeat worked on flash mx 2004 even. It removes everything but still leaves Settings.... as well as About Macromedia......


    I am attaching the fla for your kind reference. Kindly help me.

    With warm regards,

    Parag
    Attached Files Attached Files
    Keep on flashing guys

  10. #10
    FK Slacker
    Join Date
    Jun 2000
    Location
    vancouver
    Posts
    3,208
    You cannot completely disable the context menu...only to the extent possible with the above methods...(Settings and About will always be visible)


    K.
    Last edited by deadbeat; 07-06-2004 at 11:37 PM.

  11. #11
    Member
    Join Date
    Jan 2002
    Posts
    46

    Another approach

    Hi,

    Though, it is not possible to completely disable the right click menu, isn't there any way in flash mx 2004 to open up another menu on right click, some sort of trapping etc.?

    Regards,

    Parag Shah
    Keep on flashing guys

  12. #12
    Member
    Join Date
    Jul 2004
    Location
    Hell
    Posts
    66
    Hey, I know two ways to do this. The first way is for flash that you open on your computer(not the internet).

    To do it that way, put this action on the first frame of your movie

    fscommand ("showmenu", "false");

    The other way is for internet use. Simply add this line to the end of the html of your flash file

    menu="false"

    an example would be

    <embed src="http://bloodshed.**********/bsd/flash/banner3.swf"pluginspage="http://www.macromedia.com/shockwave/download/" width="495" height="80" type="application/x-shockwave-flash" quality="high" wmode="transparent" menu="false"></embed>


    If you are woundering, the

    wmode="transparent"

    line makes it so the flash background is transparent. Which is a cool effect for your flash.

    You can mix the two ways if you want. I usually do.


    on the html for the flash,for some reason it blurred out the name of it, it is "s y t e s . n e t", without any spaces inbetween.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center