title: How do I get the scene update handler to break when the action is up (AndEngine)?
body: <p>I'm trying to increase the scale of a sprite using an update handler. It doesn't, however, allow for the scene action up event to be called, so the sprite continues increasing in size. How do I get the update handler to break when the action is up? This is what I have:</p>
  
  <p>The update handler:</p>
  
  <pre><code>scene.registerUpdateHandler(new IUpdateHandler() {
  
          @Override
          public void reset() {         
          }
  
          @Override
          public void onUpdate(float pSecondsElapsed) {
              if(fillerNum&gt;-1){
                  if(filler[fillerNum].active){
  
                      mPhysicsWorld.unregisterPhysicsConnector(mPhysicsWorld.getPhysicsConnectorManager().findPhysicsConnectorByShape(filler[fillerNum].sprite));
                      mPhysicsWorld.destroyBody(filler[fillerNum].body);
  
                      filler[fillerNum].sprite.setScale(filler[fillerNum].scale+=pSecondsElapsed*3);
  
                      filler[fillerNum].body = PhysicsFactory.createCircleBody(mPhysicsWorld, filler[fillerNum].sprite, BodyType.DynamicBody, FIXTURE_DEF);
                      mPhysicsWorld.registerPhysicsConnector(new PhysicsConnector(filler[fillerNum].sprite, filler[fillerNum].body, true, true));
                  }
              }               
          }
      });
  </code></pre>
  
  <p>And the scene touch event:</p>
  
  <pre><code>@Override
  public boolean onSceneTouchEvent(Scene pScene, TouchEvent pSceneTouchEvent) {
       if(this.mPhysicsWorld != null) {
              if(pSceneTouchEvent.isActionDown()) {
                  createFiller(pSceneTouchEvent.getX(), pSceneTouchEvent.getY());
                  return true;
              }
              if(pSceneTouchEvent.isActionUp()){
                  Log.e("Action UP", Boolean.toString(filler[fillerNum].active));
                  createStationaryFiller();
              }
          }
      return false;
  }
  </code></pre>