A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: making right click options in flash

  1. #1
    Senior Member hanszorg2's Avatar
    Join Date
    Sep 2004
    Posts
    308

    making right click options in flash

    visit the following link

    http://www.digitalmash.com/

    If you right click on the face u get options like kisser, officer etc i want to know how its been done. I use flash MX.

    Help me Guru's

  2. #2
    Banned wbwd's Avatar
    Join Date
    Dec 2004
    Location
    Timisoara Country[EU]: Romania
    Posts
    860
    Code:
    var rightMenu = new ContextMenu();
    rightMenu.hideBuiltInItems();
    var website = new ContextMenuItem("click here for my website", action);
    rightMenu.customItems.push(website);
    function action() {
    getURL("http://www.plenarycreation.com");
    }
    var email = new ContextMenuItem("e-mail me", action2);
    rightMenu.customItems.push(email);
    function action2() {
    getURL("mailto:[email protected]");
    }
    _root.menu = rightMenu;
    stop();
    You can adjust it as you wish and add even more menus...
    Hope it helped.

    Good Luck,
    Biro

  3. #3
    Senior Member hanszorg2's Avatar
    Join Date
    Sep 2004
    Posts
    308
    Thanx for ur valuable time,

    how to use it in button, i tried but not getting expected options, geting normal flash right click options

  4. #4
    Banned wbwd's Avatar
    Join Date
    Dec 2004
    Location
    Timisoara Country[EU]: Romania
    Posts
    860
    Quote Originally Posted by hanszorg2
    Thanx for ur valuable time,

    how to use it in button, i tried but not getting expected options, geting normal flash right click options
    What do you mean by using it on buttons ? You use that code on frame... You just place it on your first frame of the stage and it should work... atleast it works for me... The site you linked to is based on the same criteria ( instead of getURL you can use any other command, like gotoAndPlay(); or anything else )... Use your imagination...

    Good Luck,
    Biro

  5. #5
    Senior Member hanszorg2's Avatar
    Join Date
    Sep 2004
    Posts
    308
    I am using flash mx, seems its not compatible with it. R u using the same version ?

  6. #6
    Banned wbwd's Avatar
    Join Date
    Dec 2004
    Location
    Timisoara Country[EU]: Romania
    Posts
    860
    Ok, so i'm using Flash Pro 8, but before this i was using Flash MX Pro 2004 and it worked fine on that... I know only this way of customizing your flash menu ( and don't think that any other way it possible, but not sure... ).

    Anyways, i attached a .fla file here saved for MX PRO 2004, hope MX 2004 opens it, and hope it works...

    Good Luck,
    Biro
    Attached Files Attached Files

  7. #7
    Senior Member hanszorg2's Avatar
    Join Date
    Sep 2004
    Posts
    308
    Thanx for your help, will check after some time.

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