View Full Version : Custom Context Menus in Flash
vip3r
December 7th, 2002, 06:59 PM
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? :)
lostinbeta
December 7th, 2002, 08:20 PM
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.
vip3r
December 7th, 2002, 09:47 PM
that sucks...
thanx anyways :goatee:
lostinbeta
December 7th, 2002, 10:16 PM
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.
lostinbeta
December 7th, 2002, 10:16 PM
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.
buzic
December 8th, 2002, 01:05 AM
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
lostinbeta
December 8th, 2002, 01:06 AM
You can change the context menu with Javascript for an HTML site, but not for a Flash file.
Marz
December 9th, 2002, 04:41 PM
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 <:}
vip3r
December 9th, 2002, 04:45 PM
you mean like putting that into flash? how would it work?
thanx :)
Marz
December 9th, 2002, 05:04 PM
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 ::
vip3r
December 10th, 2002, 04:20 PM
i think i actually got it.. thanks :)
Marz
December 10th, 2002, 05:17 PM
Coo deal man.. I'd like to see your work sometime.. Throw up a .swf if you gte the chance.. *lol*
:: Marz ::
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.