Hey!
I will like to know how do I send an event to a specific player please?
I got 2 players on the same page.
(id: player1, player2)
Hey!
I will like to know how do I send an event to a specific player please?
I got 2 players on the same page.
(id: player1, player2)
OK after trying so much with no clue of what I'm doing,
I got it!
<script type="text/javascript">
var player = null;
var playerz;
function stopPlayer(player)
{
playerz = player;
playerz.sendEvent('STOP');
};
</script>
and then call it like this:
<a href="#" onclick="stopPlayer(player1);">STOP PLAYER 1</a>
<br />
<a href="#" onclick="stopPlayer(player2);">STOP PLAYER 2</a>
See http://www.longtailvideo.com/support/forum/JavaScript-Interaction/20276/How-to-separate-two-players-...