title: Change button function during animation
body: <p>I need to change button function during animation playback
  @JulianoNunesSilvaOliveria said that I can  change it by flag variable :</p>
  
  <pre><code>boolean something = false; if (something) { doA(); something = false;} else { doB(); }
  </code></pre>
  
  <p>but how i  use it?
  i start animation like this</p>
  
  <pre><code>oilcan.startAnimation(seq1)
  </code></pre>