title: jwplayer - detecting the start
body: <p>I am trying to detect a start click in jwplayer. I am embedding it via swfobject so the method is slightly different from the example in the api, <a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/16024/listening-for-player-events" rel="nofollow">http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/16024/listening-for-player-events</a></p>
  
  <p>I have tried </p>
  
  <pre><code>var flashvars = {
      'file':'xxx',
      'streamer':'xxxxxx',
  'image':'xxxxx',
  'plugins':'xxxxx',
  'gapro.accountid':'xxxx',
  'gapro.trackstarts':'xxxx',
  'gapro.trackpercentage':'xxxx',
  'gapro.tracktime':'xxxx',
  'logo.file':'xxxxx',
  'logo.link':'xxxx',
  'logo.hide':'xxxx',
  'logo.position':'xxxx'
  </code></pre>
  
  <p>};</p>
  
  <pre><code>jwplayer().onPlay(function() {alert('it has started'});
  </code></pre>
  
  <p>jwplayer() is not defined, how do I defined an object to detect the click?</p>