title: on(release) {...} or myButton.onRelease = function() {...} - action script 2 issues
body: <p>I am having real confusion with some flash banners I'm creating and making the button into a clickable object which opens a web page.</p>
  
  <p>I have been using this code for a while below, which works...</p>
  
  <pre><code>on(release){
      getURL("http://www.the-dude.co.uk", "_blank");
  }
  </code></pre>
  
  <p>And I placed this code on actual button within the actions panel</p>
  
  <p><br /></p>
  
  <p>However I have been told the code above is very old and that I should use action script like below...</p>
  
  <pre><code>buttonInstance.onRelease = function() {
      getURL("http://www.the-dude.co.uk", "_blank");
  }
  </code></pre>
  
  <p>So I've tried to get this method below to work but nothing happens when I click the button, and I get one error, this...</p>
  
  <p><img src="https://i.stack.imgur.com/TwLzX.png" alt="Scene=Scene 1, layer=button, frame=1, Line 1 Statement must appear within on handler"></p>
  
  <p>So in a nutshell I cannot get this newer code to work! Ahh</p>
  
  <p><br /></p>
  
  <p>Can anyone please help me understand where I am going wrong?</p>
  
  <p>I have tried placing the new code in the Scene 1 of my actions. No worky..</p>
  
  <p>And I've also tried placing the code below, actually on my button within the actions panel...</p>
  
  <pre><code>this.onRelease = function() {
      getURL("http://www.the-dude.co.uk", "_blank");
  }
  </code></pre>
  
  <p>Still not working.</p>
  
  <p><br /></p>
  
  <p>My scene settings are alway this...</p>
  
  <p><img src="https://i.stack.imgur.com/pzyJZ.png" alt="enter image description here"></p>
  
  <p><br /></p>
  
  <p>Any help would be great thanks.</p>