Baseball Game help?

Hi, I’m trying to write a program that will simulate an inning of a baseball game. Basically, it returns a random pitch…( either a ball or strike) and keeps track of the count…(balls, strikes, outs)… I have the code working fine. It will keep looping through, until it reaches 3 outs… What I want to do with this… Is display the pitch result after each pitch on the screen. Nothing too crazy, just… Strike 1, ball 1 etc. This is where I’m stuck??
I’m not sure how to tie it all together??

I also have another .swf file that simulates the baseball being pitched. It’s just a quick image of a ball coming out towards the front of the screen, like someone was pitching to you and you are the batter. I would like to generate this .swf to play on each pitch, if possible?

Any suggestions would be appreciated.

Thanks, John.