torzep / custom-context-menu

Automatically exported from code.google.com/p/custom-context-menu
Other
0 stars 0 forks source link

Does it work with swfObject v2.1? #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I can't seem to get this to work when used with swfObject v2.1. Can this be
verified or am I doing something wrong?

Original issue reported on code.google.com by intoxo...@gmail.com on 27 Jan 2009 at 11:11

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Yes, it does work well.

//Example
            // Globals
            var major = 10;
            var minor = 0;
            var release = 22;

            // CONTAINER ATTRIBUTES
            //id: "ID",
            //name: "NAME",
            //align: "middle"
            //class: "" 
            var attributes = {
            id: "ID_OF_FLASHOBJECT",
            name: "NAME_OF_FLASHOBJECT"
            };
            // FLASH PARAMETERS
            // scale: "",
            // salign: "",
            // seamlesstabbing: "",
            // base: "",
            // swliveconnect: "",
            // flashvars: "",
            // devicefont: "",
            //wmode: "window|opaque|transparent|direct|gpu"
            var params = {
            play: "true",
            loop: "false",
            menu: "true",
            quality: "high",
            wmode: "opaque",
            bgcolor: "#869ca7",
            allowscriptaccess: "always",
            allowfullscreen: "true"
            //allownetworking: "true"
            };
            // FLASH VARS
            var flashvars = {};
            //SWFObject 2.1 - dynamic       
            swfobject.embedSWF("FILENAME.swf", "myContent", "100%", "100%", 
                "10.0.22", "expressInstall.swf",
                flashvars,
                params,
                attributes
                );

Goodbye from Russia,
gumengangler.

Original comment by gumengangler on 30 May 2009 at 12:38

GoogleCodeExporter commented 8 years ago
Your flash ID = "ID_OF_FLASHOBJECT" change the menu JS to reflect that :

this.FlashObjectID = "ID_OF_FLASHOBJECT";

Then adjust the "call: function() {" to this :

var obj = swfobject.getObjectById(this.FlashObjectID);
obj.rightClick();

Hope that helps.

Original comment by Johnny.J...@gmail.com on 29 Dec 2011 at 2:39