Windows Media Player SDK banner art
PreviousNext

External Events

When users click a button or press a key, you can respond to their input with event handlers. An event handler is a section of code that runs whenever the event is triggered.

The following events are supported by skin elements:

See the Skin Programming Reference for more details about specific events.

A typical external event handler would name the event and define the code that will run. For example, if you want to create code to start Windows Media Player when the user clicks on a button, you would put the following line in your button code.

onclick = "JScript: player.URL = 'file:laure.wma' ; "

This will play the file named laure.wma. Note that you add the word "on" to specific events.

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.