# Custom Context Menus in Flash

**URL:** <https://forum.kirupa.com/t/custom-context-menus-in-flash/9239>\
**Category:** flash\
**Created:** [December 7, 2002, 11:59pm UTC](https://forum.kirupa.com/t/custom-context-menus-in-flash/9239 "2002-12-07T23:59:46Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![vip3r](https://avatars.discourse-cdn.com/v4/letter/v/c2a13f/32.png) [@vip3r](https://forum.kirupa.com/u/vip3r)\
**Post date:** [December 7, 2002, 11:59pm UTC](https://forum.kirupa.com/t/custom-context-menus-in-flash/9239/1 "2002-12-07T23:59:46Z")

</div>

Anybody know how to create a custome context menu (right click menu) in Flash?

If it’s not possible, wouldn’t it be a good idea for Macromedia to put some kind of event or something in there? 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 8, 2002, 1:20am UTC](https://forum.kirupa.com/t/custom-context-menus-in-flash/9239/2 "2002-12-08T01:20:38Z")

</div>

It isn’t possible. And Macromedia uses that content menu to have their “About Macromedia” link, so I am pretty sure they won’t remove that ability.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 8, 2002, 2:47am UTC](https://forum.kirupa.com/t/custom-context-menus-in-flash/9239/3 "2002-12-08T02:47:18Z")

</div>

that sucks…

thanx anyways :goatee:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 8, 2002, 3:16am UTC](https://forum.kirupa.com/t/custom-context-menus-in-flash/9239/4 "2002-12-08T03:16:48Z")

</div>

Yeah it does. And you never know though, maybe Macromedia will decide to do it, but considering it would make them take out their only signature in the flash movie, I highly doubt it ☹

It is way better then them embedding their logo in your page directly though.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 8, 2002, 3:16am UTC](https://forum.kirupa.com/t/custom-context-menus-in-flash/9239/5 "2002-12-08T03:16:49Z")

</div>

Yeah it does. And you never know though, maybe Macromedia will decide to do it, but considering it would make them take out their only signature in the flash movie, I highly doubt it ☹

It is way better then them embedding their logo in your page directly though.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 8, 2002, 6:05am UTC](https://forum.kirupa.com/t/custom-context-menus-in-flash/9239/6 "2002-12-08T06:05:22Z")

</div>

i thiks it is possible to made right mouse click menu…  
but how?heh… i have seen one site thet uses menu like that…but  
i don´t remember the url. to site…  
maybe y must to remove macromedia menu,somehow,maybe with scripting?  
then made script that can read right click on mouse…  
or somthing…🙂 🙂 =) =)  
i am new on flash so…  
it was just idea./theory

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 8, 2002, 6:06am UTC](https://forum.kirupa.com/t/custom-context-menus-in-flash/9239/7 "2002-12-08T06:06:31Z")

</div>

You can change the context menu with Javascript for an HTML site, but not for a Flash file.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 9, 2002, 9:41pm UTC](https://forum.kirupa.com/t/custom-context-menus-in-flash/9239/8 "2002-12-09T21:41:33Z")

</div>

Well… You probably can’t change it in Flash but check this out… How about implementing something like this:

Hold Down Shift  
Click the Left Mouse Button

Then this will load up a movie… Might be a good way around it… Then you’ll just have to create your own type of menu… Which you could fully customize.

Peace out.  
Marz \<:}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 9, 2002, 9:45pm UTC](https://forum.kirupa.com/t/custom-context-menus-in-flash/9239/9 "2002-12-09T21:45:11Z")

</div>

you mean like putting that into flash? how would it work?

thanx 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 9, 2002, 10:04pm UTC](https://forum.kirupa.com/t/custom-context-menus-in-flash/9239/10 "2002-12-09T22:04:25Z")

</div>

I’ll work on that mroe later tonight…

I’d show you what I’ve got working right now but I’ve gotta jet for a few minutes… _lol_… I’m starving and haven’t eatten all day…

But if you wnat an algorithm to work on while I’m gone try this out:

Perform an if test for when the key is hit. Set some variable that stores whether or not the shift key is down of not.

:: This is just an algorithm. Not actual code ::

if (shift key is down)  
{  
set variable to true;  
}  
else  
{  
set variable to false;  
}

Then have the frame that you wnat this to happen at hold information about when the mouse button is clicked and do this.

:: Another Algorithm ::

if (mousebutton is hit and variable is true)  
{  
load the menu MC with buttons and such;  
move MC to mouse pointer location;  
}

Then if you want, you can add tests to see whether the mouse pointer goes outside of the menu. If it does, remove the MC and you are back to normal…

Hopefully this will help you out.

Peace Out,  
:: Marz ::

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 10, 2002, 9:20pm UTC](https://forum.kirupa.com/t/custom-context-menus-in-flash/9239/11 "2002-12-10T21:20:21Z")

</div>

i think i actually got it… thanks 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 10, 2002, 10:17pm UTC](https://forum.kirupa.com/t/custom-context-menus-in-flash/9239/12 "2002-12-10T22:17:43Z")

</div>

Coo deal man… I’d like to see your work sometime… Throw up a .swf if you gte the chance… _lol_

:: Marz ::
