Custom Context Menus in Flash

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? :slight_smile:

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.

that sucks…

thanx anyways :goatee:

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 :frowning:

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

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 :frowning:

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

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…:slight_smile: :slight_smile: =) =)
i am new on flash so…
it was just idea./theory

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

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 <:}

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

thanx :slight_smile:

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 ::

i think i actually got it… thanks :slight_smile:

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

:: Marz ::