[jQuery] changing value of a object sub variable

[jQuery] changing value of a object sub variable

<div>I have a simple plugin working that utilizes the jquery.flash plugin.</div>
<div> </div>
<div>I am using my plugin to load a flash file that has around 20 flashvars. (i only listed a few here).</div>
<div> </div>
<div>Most of the time the default flashvars are fine..but sometimes I need to modify only certain flashvariables... but not all of them.</div>
<div> </div>
<div>My question is how do I change only one of the flashvars so I dont have to add every single flashvar to every methodcall.?</div>
<div> </div>
<div>my plugin code:</div>
<div> </div>
<div> 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 </div>
<div>              // ... Plus around 16 other vars.
                     }
            }, options);
   
    $(this).flash(settings,{ version: 9 });
   
    };</div>
<div>---------------------</div>
<div> </div>
<div>If I use: </div>
<div> </div>
<div>  $('#mydiv').test({flashvars: { ImagePath : "/myImagePath/"  });</div>
<div> </div>
<div>It overwrites all the default flashvars.</div>
<div> </div>
<div>and of course this wont work either:</div>
<div> </div>
<div>   $('#mydiv').test({flashvars.ImagePath : "/myImagePath/"  });</div>
<div> </div>
<div>There must be some way to access just one of the flashvars.</div>
<div> </div>
<div>Anyone know of a way to do this?</div>
<div> </div>
<div>Thanks!</div>
<div> </div>
<div> </div>
<div> </div>
<div><br clear="all">
 </div>