title: AS3 Compiler error 1083: problem with else syntax
body: <p>I'm creating a simple click and scroll for a future menu for my personal site. I have a box, I called it thing_mc, and I have 3 positions for it. I have a next and prev. button that will control thing_mc position. I'm using TweenLite to animate thing_mc, if that makes a difference.</p>
  
  <p>I get a 1083 error (...else is unexpected) and (...rightparen is unexpected).</p>
  
  <p>Can anyone tell me why and how I can resolve this?</p>
  
  <p>Thanks</p>
  
  <pre><code>    import gs.TweenLite;
  
  next_mc.addEventListener(MouseEvent.CLICK, nextListener);
  prev_mc.addEventListener(MouseEvent.CLICK, prevListener);
  
  //prev_mc.visible = false;
  
  function nextListener(event:MouseEvent):void
  {
      if(thing_mc.x == 400);
      {
      TweenLite.to(thing_mc, .5, {x:50, y:50});
      }
      else if //// i get error 1083 here (...else is unexpected)
      {
      TweenLite.to(thing_mc, .5, {x:-100, y:50}); //// i get error 1083 here (...rightparen is unexpected)
      }
  }
  
  function prevListener(event:MouseEvent):void
  {
      if(thing_mc.x == -100);
      {
      TweenLite.to(thing_mc, .5, {x:400, y:50});
      }
      else if //// i get error 1083 here (...else is unexpected)
      {
      TweenLite.to(thing_mc, .5, {x:500, y:50}); //// i get error 1083 here (...rightparen is unexpected)
      }
  }   
  
  next_mc.buttonMode = true;
  prev_mc.buttonMode = true;
  </code></pre>