Running a sequence of methods
<p>When I push a button I would like to run a sequence of methods   methodOne then methodTwo then methodThree.  When I run it now I only get the last method to run.  I would like them to run in order.  What am i doing wrong.</p>

<pre><code>@implementation JackAnimationViewController
@synthesize color;



- (IBAction)button:(id)sender {
    [self methodOne];
    [self methodTwo];
    [self methodThree];
}

-(void) methodOne{
    color.animationImages = [NSArray arrayWithObjects:
            [UIImage imageNamed:@"greenDim.png"],
            [UIImage imageNamed:@"GreenPressed.png"],
            [UIImage imageNamed:@"greenDim.png"],
            [UIImage imageNamed:@"GreenPressed.png"],nil];      
    [color setAnimationRepeatCount:2];
    color.animationDuration = 1;
    [color startAnimating];}

-(void) methodTwo{
    color.animationImages = [NSArray arrayWithObjects:
            [UIImage imageNamed:@"yellowDim.png"],
            [UIImage imageNamed:@"YellowPressed.png"],
            [UIImage imageNamed:@"yellowDim.png"],
            [UIImage imageNamed:@"YellowPressed.png"],nil];      
    [color setAnimationRepeatCount:2];
    color.animationDuration = 1;
    [color startAnimating];}

-(void) methodThree{
    color.animationImages = [NSArray arrayWithObjects:
            [UIImage imageNamed:@"yellowDim.png"],
            [UIImage imageNamed:@"GreenPressed.png"],
            [UIImage imageNamed:@"yellowDim.png"],
            [UIImage imageNamed:@"GreenPressed.png"],nil];      
    [color setAnimationRepeatCount:2];
    color.animationDuration = 1;
    [color startAnimating];}


@end
</code></pre>
