title: 2 next frame previous frame in flash AS3
body: <p>im a novice in AS3 it is possible to place 2  next frame button in a single AS3 code/frame this is my code pls help thanks </p>
  
  <pre><code>up1.addEventListener(MouseEvent.CLICK, gotoNextFrame);
  
  function gotoNextFrame(evt:Event){
      ,leftbody.nextFrame();
  }
  up1.addEventListener(MouseEvent.CLICK, gotoNextFrame);
  
  function gotoNextFrame(evt:Event){
      ,leftbody.nextFrame();
  }
  
  down1.addEventListener(MouseEvent.CLICK, gotoPreviousFrame);
  
  function gotoPreviousFrame(evt:Event){
      rightbody.prevFrame();
  
  }
  down2.addEventListener(MouseEvent.CLICK, gotoPreviousFrame);
  
  function gotoPreviousFrame(evt:Event){
      leftbody.prevFrame();
  
  }
  </code></pre>