I have a simple plugin working that utilizes the jquery.flash plugin. I am using my plugin to load a flash file that has around 20 flashvars. (i only listed a few here).
Most of the time the default flashvars are fine..but sometimes I need to modify only certain flashvariables... but not all of them. My question is how do I change only one of the flashvars so I dont have to add every single flashvar to every methodcall.? my plugin code: jQuery.fn.test = function(options) { var settings = jQuery.extend({ src: "Viewer.swf", menu: false, wmode: 'Opaque', width: 270, height: 280, flashvars: { ImagePath: "/myImagePath/", xmlPath : "/mtyXmlPath/", intX: 0, intY: 0 // ... Plus around 16 other vars. } }, options); $(this).flash(settings,{ version: 9 }); }; --------------------- If I use: $('#mydiv').test({flashvars: { ImagePath : "/myImagePath/" }); It overwrites all the default flashvars. and of course this wont work either: $('#mydiv').test({flashvars.ImagePath : "/myImagePath/" }); There must be some way to access just one of the flashvars. Anyone know of a way to do this? Thanks!