title: Flash CS5: exported swf does not play [AS 3.0]
body: <p>Well I'm really new to this actionscript stuff. Is there anything wrong in the following code? Whenever I export this, the .swf movie doesn't play, it just shows the 1st frame. Is the if() condition even possible in a function?</p>
  
  <pre><code>import flash.events.MouseEvent;
  
  play();
  if(currentFrame == 138)
  gotoAndStop(138);
  pers_btn.addEventListener(MouseEvent.CLICK,pers);
  function pers (event:MouseEvent):void
  {
      gotoAndPlay(161);
      if(currentFrame == 220)
      stop();
  }
  kent_btn.addEventListener(MouseEvent.CLICK,kent);
  function kent (event:MouseEvent):void
  {
      gotoAndPlay(161);
      if(currentFrame == 205)
      gotoAndPlay(236);
      if(currentFrame == 251)
      stop();
  }
  lebe_btn.addEventListener(MouseEvent.CLICK,lebe);
  function lebe (event:MouseEvent):void
  {
      gotoAndPlay(161);
      if(currentFrame == 205)
      gotoAndPlay(221);
      if(currentFrame == 235)
      stop();
  }
  refe_btn.addEventListener(MouseEvent.CLICK,refe);
  function refe (event:MouseEvent):void
  {
      gotoAndPlay(161);
      if(currentFrame == 205)
      gotoAndPlay(252);
      if(currentFrame == 265)
      stop();
  }
  zuru_btn.addEventListener(MouseEvent.CLICK,zuru);
  function zuru (event:MouseEvent):void
  {
      gotoAndStop(138)
  }
  </code></pre>