neehar

I am creating a web page for which I need to add an ActiveX control (a windows media plugin)
in to IE7. I tried th following sample code.


<object id="Player"
classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<param name="FileName" value="videos/king.wmv" />
<param name="autostart" value="false"/>

</object><!-- Create an INPUT control to get a file path from the user. -->
<INPUT Type = "TEXT" ID = "inputURL">

<!-- Create a BUTTON control to execute the script. -->
<INPUT Type = "BUTTON" ID = "openMedia" VALUE = "Open Media"
onClick = "

/* Specify the URL obtained from user input. */
Player.URL = inputURL.value;

/* Start the Player. */
Player.controls.play();
">
when i ran this code, the IE shows this error message
"Error: 'Player.controls' is null or not an object"
Can anybody please help..i ve to deliver this code by Monday.

Thanks