![]() |
Previous | Next |
You often will want to see what is happening inside your skin. You can do this through a text control or through a log file.
You can create a TEXT element and place it on a part of your skin temporarily. For example, you could use the following code to create your TEXT element:
<!-- debugging control -- remove later -->
<TEXT
id = "debug"
foregroundColor = "white"
backgroundColor = "black"
value = "debug"
top = "100"
left = "50"
height = "15"
width = "100"
z-order = "5" />
<!-- end debugging control -->
Then, for example, if you want to see the current position of the media content in Windows Media Player, you could use code similar to the following to display the current position in the text box.
<PLAYER
id = "myplayer">
<CONTROLS
id = "mycontrols"
currentPosition_onchange="value=player.controls.currentPosition"/>
</PLAYER>
Previous | Next |