title: Action When Button is Pressed Down Cocos2d 3.0
body: <p>How would i trigger <code>- (void)onRightButtonClicked:(id)sender</code> when the button is <strong>being</strong> pressed, not when it has <strong>been</strong> pressed (let go).</p>
  
  <p>This is the code for the button</p>
  
  <pre><code>rightButton = [CCButton buttonWithTitle:@"" spriteFrame:[CCSpriteFrame frameWithImageNamed:@"right.png"]];
  rightButton.position = ccp(self.contentSize.width/3.65, self.contentSize.height/10);
  [rightButton setTarget:self selector:@selector(onRightButtonClicked:)];
  [self addChild:rightButton];
  </code></pre>
  
  <p>And then what happens after the button has been pressed.</p>
  
  <pre><code>- (void)onRightButtonClicked:(id)sender
  {
  CCActionAnimate *animationAction = [CCActionAnimate actionWithAnimation:walkAnim];
  CCActionRepeatForever *repeatingAnimation = [CCActionRepeatForever actionWithAction:animationAction];
  [dino runAction:repeatingAnimation];
  }
  </code></pre>