@Vincent/Nathan - thanks for pointing out the details. I hadn't looked into the original custom context menu project link (having assumed that anyone wanting to control Flash's context menu would do so as Nathan suggests through the built in API in Flash)
If you would like to persist in helping, then by all means... I see no ExternalInterface function definition in the original posted code, so there seems to be a bit of basic foundations missing to get this working in regarsd to the steps outlined by http://code.google.com/p/custom-context-menu/ A On Sat, Mar 13, 2010 at 1:59 AM, Nathan Mynarcik <[email protected]> wrote: > Why not just do the custom contextMenu in the actionscript? You can > even pull the contents for it from an XML file so it is easily > maintainable. > > http://bit.ly/ayNUhk > > Nathan Mynarcik > Interactive Web Developer > [email protected] > 254.749.2525 > www.mynarcik.com > > > > On Fri, Mar 12, 2010 at 3:47 AM, Vincent Polite > <[email protected]> wrote: > > I'm too tired to go into the detail, so maybe in the morning, but the > point > > of his project is to create a custom menu. The concept is explained on > the > > custom-menu project page using the following methodology. > > > > 1. Display a Flash Object. > > 2. Turn off the default context menu. (hence params.menu probably > should > > remain false) > > 3. Trap the right click and call a custom Actionscript function that is > > responsible for displaying a custom context menu, either directly in > > Actionscript or using Javascript. > > > > Since there are certainly some differences in how SWFObject1.5 and 2.x > treat > > the DOM in relation to the embedded flash, it's certainly possible that > > there's some API breakage between what the original project using SWF1.5 > > applies vs. trying to "port" it using SWF2.x. > > > > By examining his source code, we should be able to note whether or not > this > > is a simple syntax issue or something more underpinnings based due to the > > SWFObject version history. > > > > Just my 2 cents. Will try to contribute more tomorrow. > > > > Vincent > > > > On Thu, Mar 11, 2010 at 8:09 PM, Aran Rhee <[email protected]> wrote: > >> > >> So, like I said in my first email, the only thing you can change in > >> SWFObject is the "menu" param. In your code, you are specifically > turning > >> off the context menu! > >> Change > >> params.menu = "false"; > >> to > >> params.menu = "true"; > >> > >> Aran > >> > >> On Fri, Mar 12, 2010 at 2:26 PM, jnjortn <[email protected]> wrote: > >>> > >>> Aran, > >>> Let me explain the situation better. > >>> I grabbed the sample code for the custom-context-menu project on > >>> code.google.com. The sample code uses swfobject 1.5. I am trying to > >>> modify the sample code to use swfobject 2.2. Seems like it should be > >>> straightforward, but I have been unsuccessfull. > >>> > >>> Here is my sample html using swfobject 2.2 > >>> > >>> > >>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// > >>> www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > >>> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> > >>> <head> > >>> <title></title> > >>> <meta http-equiv="Content-Type" content="text/html; > >>> charset=iso-8859-1" /> > >>> <script type="text/javascript" > >>> src="swfobject.js"></script> > >>> <script type="text/javascript" > >>> src="rightClick.js"></script> > >>> <script type="text/javascript"> > >>> var flashvars = false; > >>> var params = {}; > >>> params.quality = "high"; > >>> params.allowscriptaccess = "always"; > >>> params.wmode = "opaque"; > >>> params.menu = "false"; > >>> var attributes = {}; > >>> attribute.id = "flashcontent"; > >>> attribute.name = "flashcontent"; > >>> swfobject.embedSWF("RightClick.swf", > >>> "flashcontent", "560", "420", > >>> "9.0.0",false,false,params,attributes); > >>> </script> > >>> </head> > >>> <body> > >>> <div id="flashcontent"> > >>> <a href="http://www.adobe.com/go/getflashplayer > "> > >>> <img > >>> src="http://www.adobe.com/images/shared/download_buttons/ > >>> get_flash_player.gif" alt="Get Adobe Flash player" /> > >>> </a> > >>> </div> > >>> </body> > >>> </html> > >>> > >>> Jeff > >>> > >>> On Mar 11, 5:31 pm, Aran Rhee <[email protected]> wrote: > >>> > swfobject does not control the context menu other than setting the > menu > >>> > parameter to true or false. (default is true). Are you using ststic > or > >>> > dynamic embed? > >>> > > >>> > Aran > >>> > > >>> > On Thu, Mar 11, 2010 at 6:07 PM, jnjortn <[email protected]> wrote: > >>> > > Has anyone been able to use swfobject 2.2 with the custom-context- > >>> > > menu ? I have tried to convert the basic example included with > >>> > > custom- > >>> > > context-menu but cannot get it working. I am working with Firefox > >>> > > 3.5.8 on Mac OSX 10.5.8. > >>> > > >>> > > -- > >>> > > You received this message because you are subscribed to the Google > >>> > > Groups > >>> > > "SWFObject" group. > >>> > > To post to this group, send email to [email protected]. > >>> > > To unsubscribe from this group, send email to > >>> > > > >>> > > [email protected]<swfobject%[email protected]> > <swfobject%[email protected]<swfobject%[email protected]> > > > >>> > > . > >>> > > For more options, visit this group at > >>> > >http://groups.google.com/group/swfobject?hl=en. > >>> > >>> -- > >>> You received this message because you are subscribed to the Google > Groups > >>> "SWFObject" group. > >>> To post to this group, send email to [email protected]. > >>> To unsubscribe from this group, send email to > >>> [email protected]<swfobject%[email protected]> > . > >>> For more options, visit this group at > >>> http://groups.google.com/group/swfobject?hl=en. > >>> > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "SWFObject" group. > >> To post to this group, send email to [email protected]. > >> To unsubscribe from this group, send email to > >> [email protected]<swfobject%[email protected]> > . > >> For more options, visit this group at > >> http://groups.google.com/group/swfobject?hl=en. > > > > -- > > You received this message because you are subscribed to the Google Groups > > "SWFObject" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<swfobject%[email protected]> > . > > For more options, visit this group at > > http://groups.google.com/group/swfobject?hl=en. > > > > -- > You received this message because you are subscribed to the Google Groups > "SWFObject" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<swfobject%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/swfobject?hl=en. > > -- You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.
