Trying to get access to a FlashVar

Trying to get access to a FlashVar

I'm sure this is fairly simple but i'm still a newb when it comes to jQuery. I'm trying to get access to the flashvar element on my page. The code looks like this:
 
  1. <object id="kdp3" class="player" height="348" width="620" type="application/x-shockwave-flash" name="kdp3" data="..." style="visibility: visible;">
  2.   <param name="quality" value="best">
  3.   <param name="wmode" value="opaque">
  4.   <param name="allowfullscreen" value="true">
  5.   <param name="allowscriptaccess" value="always">
  6.   <param name="flashvars" value="...the data i need is here...">
  7. </object>
 
I've tried the following alerts to get access to it to no avail:
 
  1.     alert($("#kdp3 param[@name=flashvars]").val());
        alert($("#kdp3 param[@name=flashvars]").attr("value"));
        alert($('#kdp3 param[@name=flashvars].val()'));

 
Any help?