title: Tweening with TimeLine animation
body: <p>Easy one for you guys but new to me. I have an animated walking character called mcPlayer. Inside of it's timeline I have frame labels at various animated states "walkingLeft","walkingRight" and "Idle". The walking animations are of him walking in one spot. I want to be able to use buttons to move the character with actionscript to various targets on the stage and have the corresponding animation play as it moves.So the most direct way I could think to do it is like this...</p>
  
  <pre><code>import com.greensock.*;
  
  btnRight.addEventListener(MouseEvent.CLICK, moveRight);
  btnLeft.addEventListener(MouseEvent.CLICK, moveLeft);
  
  function moveRight(Evt:MouseEvent):void{
  TweenLite.to(mcPlayer,2,{x:450});
  mcPlayer.gotoAndPlay("walkingRight");
  }
  function moveLeft(Evt:MouseEvent):void{
  TweenLite.to(mcPlayer,2,{x:450});
  mcPlayer.gotoAndPlay("walkingLeft");
  }
  </code></pre>
  
  <p>I have tried different commands on the mcPlayer timeline,like, putting a stop(); at the beginning of each anima. I have tried putting a gotoandplay(); at the end of each anima so it will go to the beginning and loop.I would like to use the timeline as little as possible.</p>
  
  <p>How do I...
  1. Have the animation play continuously while the tween is in motion 
  2. Have the animation stop when it has reached its destination
  and finally have the anima"idle" play after mcPLayer has reached its target.</p>