title: Flash button click event
body: <p>I am just confused with flash actionscript. I know PH &amp; C#. Just trying to figure out to make a simple test flash game.</p>
  
  <p>Using flash textbox I wrote some text as "click here" and made a right click on it and chosen "Convert to Symbol" and named it as "startbutton".</p>
  
  <p>I created a second frame (blank frame) and I gave a right click on the first frame (keyframe) and in actionscript.</p>
  
  <pre><code>import flash.events.MouseEvent;
  stop();
  startbutton.addEventListener(MouseEvent.CLICK, startgame);
  function startgame(event:MouseEvent):void{
    nextFrame();
  }
  </code></pre>
  
  <p>That's all is my FULL CODE. I really don't even know the header files in ActionScript too. Can anyone correct my code and should I need anymore lines on top or bottom?</p>
  
  <p>The above code's output is keep on blinking. i.e. guess the two frames are keep on repeating.</p>